/* Protem landing page. Tokens mirror web/src/styles/tokens.css. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/public-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/public-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/public-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --font-ui: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --color-bg: #f8fafd;
  --color-surface: #ffffff;
  --color-subtle: #f2f4f6;
  --color-muted: #e8ebf1;
  --color-border: #dee2e7;
  --color-border-strong: #caced3;
  --color-text: #16191c;
  --color-text-secondary: #4a4d51;
  --color-text-tertiary: #6b6f73;
  --color-ink: #14181c;
  --color-accent: #1d5fa8;
  --color-accent-hover: #085098;
  --color-accent-ink: #ffffff;
  --color-accent-soft: #e4f0ff;
  --color-accent-text: #1d5fa8;
  --color-focus: #1d5fa8;
  --color-success: #1b9247;
  --color-success-soft: #e0fae4;
  --color-success-text: #007e39;
  --color-warning: #a06b00;
  --color-warning-soft: #ffefdb;
  --color-warning-text: #946200;
  --color-danger: #c35047;
  --color-danger-soft: #ffedeb;
  --color-danger-text: #ba473e;
  color-scheme: light;
}

html[data-theme="dark"],
html:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --color-bg: #0d1013;
    --color-surface: #15171b;
    --color-subtle: #1c1e22;
    --color-muted: #24272a;
    --color-border: #2b2e32;
    --color-border-strong: #3f4347;
    --color-text: #eef2f7;
    --color-text-secondary: #babec3;
    --color-text-tertiary: #8f9297;
    --color-ink: #eef2f7;
    --color-accent: #4888d5;
    --color-accent-hover: #5798e6;
    --color-accent-ink: #0f1215;
    --color-accent-soft: #1f2a38;
    --color-accent-text: #5494e2;
    --color-focus: #4888d5;
    --color-success: #45b164;
    --color-success-soft: #172c1c;
    --color-success-text: #45b164;
    --color-warning: #cb8900;
    --color-warning-soft: #32230e;
    --color-warning-text: #cb8900;
    --color-danger: #e66f64;
    --color-danger-soft: #381f1c;
    --color-danger-text: #e66f64;
    color-scheme: dark;
  }
}
html[data-theme="dark"] {
  --color-bg: #0d1013;
  --color-surface: #15171b;
  --color-subtle: #1c1e22;
  --color-muted: #24272a;
  --color-border: #2b2e32;
  --color-border-strong: #3f4347;
  --color-text: #eef2f7;
  --color-text-secondary: #babec3;
  --color-text-tertiary: #8f9297;
  --color-ink: #eef2f7;
  --color-accent: #4888d5;
  --color-accent-hover: #5798e6;
  --color-accent-ink: #0f1215;
  --color-accent-soft: #1f2a38;
  --color-accent-text: #5494e2;
  --color-focus: #4888d5;
  --color-success: #45b164;
  --color-success-soft: #172c1c;
  --color-success-text: #45b164;
  --color-warning: #cb8900;
  --color-warning-soft: #32230e;
  --color-warning-text: #cb8900;
  --color-danger: #e66f64;
  --color-danger-soft: #381f1c;
  --color-danger-text: #e66f64;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  transition: background-color 150ms ease, color 150ms ease;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent-text); }
code, pre, var { font-family: var(--font-mono); }
var { font-style: normal; color: var(--color-accent-text); }

::selection { background: var(--color-accent); color: var(--color-accent-ink); }
::-moz-selection { background: var(--color-accent); color: var(--color-accent-ink); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.75rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.75rem; }
.wrap.narrow { max-width: 760px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: 1.75rem; line-height: 1.25; }
h3 { font-size: 1.0625rem; }
p { margin: 0.6rem 0 0; color: var(--color-text-secondary); }
p:first-child { margin-top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.bar { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-text);
  text-decoration: none;
  margin-right: auto;
}
.brand .mark path { fill: var(--color-accent); }
.site-header nav ul, .site-footer nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--color-text-secondary); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.site-header nav a:hover { color: var(--color-text); }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
}
.icon-button:hover { background: var(--color-subtle); color: var(--color-text); }
.icon-button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-button .i-sun { display: none; }
html[data-theme="dark"] .icon-button .i-moon { display: none; }
html[data-theme="dark"] .icon-button .i-sun { display: block; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms, border-color 150ms;
}
.button.primary { background: var(--color-accent); color: var(--color-accent-ink); }
.button.primary:hover { background: var(--color-accent-hover); }
.button.secondary { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.button.secondary:hover { background: var(--color-subtle); }

/* ───────── Hero: the access time axis, from direction A ───────── */
.hero { padding: 2.75rem 0 3rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}
.hero .lede { margin-top: 1.1rem; font-size: 1.125rem; color: var(--color-text-secondary); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero .meta { font-size: 0.8125rem; color: var(--color-text-tertiary); margin-top: 1.25rem; }

.scene { margin: 0; min-width: 0; }
.scene-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--color-text-secondary); }
.who b { color: var(--color-text); font-weight: 600; }
.who code { font-size: 0.875em; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-accent-soft); color: var(--color-accent-text); font-weight: 600; font-size: 0.75rem; flex: none;
}
.left { display: grid; text-align: right; }
.left > span {
  grid-area: 1 / 1; opacity: 0;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--color-text);
}
.left > span small { font-size: 0.8125rem; font-weight: 500; color: var(--color-text-tertiary); letter-spacing: 0; margin-right: 8px; display: block; }
.left > .c1 { opacity: 1; }

.track { position: relative; height: 176px; margin-top: 18px; overflow: hidden; }
.tick { position: absolute; top: 0; bottom: 26px; border-left: 1px solid var(--color-border); }
.tick span {
  position: absolute; bottom: -24px; left: 0; transform: translateX(-50%);
  font-size: 0.75rem; color: var(--color-text-tertiary); white-space: nowrap;
}
.tick-start span { transform: none; }
.tick-end span { transform: translateX(-100%); }

.window { position: absolute; left: 24.583%; width: 50%; top: 20px; height: 120px; }
.window .piece { position: absolute; background: var(--color-accent); }
.v-left { left: 0; top: 0; bottom: 0; width: 12px; }
.v-right { right: 0; top: 0; bottom: 0; width: 12px; }
.arm-top { left: 0; top: 0; height: 12px; width: calc(100% - 32px); clip-path: inset(0 calc(100% - 60px) 0 0); }
.arm-bottom { right: 0; bottom: 0; height: 12px; width: calc(100% - 32px); clip-path: inset(0 0 0 calc(100% - 60px)); }
.inner { position: absolute; inset: 20px; }
.used { position: absolute; inset: 0; background: var(--color-muted); }
.fill {
  position: absolute; inset: 0; background: var(--color-accent); color: var(--color-accent-ink);
  display: flex; align-items: center; justify-content: flex-end; padding: 0 16px;
  clip-path: inset(0 0 0 15%);
  font-weight: 600; font-size: 0.8125rem; white-space: nowrap; overflow: hidden;
}
.pending, .gone {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  opacity: 0; color: var(--color-text-secondary); font-size: 0.8125rem; white-space: nowrap;
}
.pending { border: 2px dashed var(--color-border-strong); }
.gone { justify-content: flex-end; }
.gone s { text-decoration-thickness: 2px; color: var(--color-text-tertiary); }
.now {
  position: absolute; top: 0; bottom: 26px; left: 0; width: 100%; pointer-events: none;
  transform: translateX(calc(32.083% + 16px));
}
.now::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 0; width: 2px; background: var(--color-text); }
.now span {
  position: absolute; left: 0; top: 0; transform: translateX(-50%);
  background: var(--color-text); color: var(--color-bg); font-size: 0.6875rem; font-weight: 700;
  padding: 2px 6px; border-radius: 3px; letter-spacing: 0.02em;
}

.stages { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--color-border); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stages li { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: baseline; color: var(--color-text-tertiary); font-size: 0.8125rem; }
.stages li::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; align-self: center; }
.stages b { font-weight: 600; font-size: 0.875rem; }
.stages li span { grid-column: 2; }
.stages .st3 { color: var(--color-text); }
.stages .st3::before { background: var(--color-accent); border-color: var(--color-accent); }

@media (prefers-reduced-motion: no-preference) {
  :root { --loop: 11s; }
  .scene .piece { animation: piece var(--loop) linear infinite; }
  .scene .arm-top { animation: piece var(--loop) linear infinite, arm-top var(--loop) ease infinite; }
  .scene .arm-bottom { animation: piece var(--loop) linear infinite, arm-bottom var(--loop) ease infinite; }
  .scene .fill { animation: fill var(--loop) linear infinite; }
  .scene .used { animation: used var(--loop) linear infinite; }
  .scene .pending { animation: pending var(--loop) linear infinite; }
  .scene .gone { animation: gone var(--loop) ease infinite; }
  .scene .now { animation: now var(--loop) linear infinite; }
  .scene .c0 { animation: c0 var(--loop) step-end infinite; }
  .scene .c1 { animation: c1 var(--loop) step-end infinite; }
  .scene .c2 { animation: c2 var(--loop) step-end infinite; }
  .scene .c3 { animation: c3 var(--loop) step-end infinite; }
  .scene .c4 { animation: c4 var(--loop) step-end infinite; }
  .scene .st1 { animation: st1 var(--loop) step-end infinite; }
  .scene .st2 { animation: st2 var(--loop) step-end infinite; }
  .scene .st3 { animation: st3 var(--loop) step-end infinite; }
  .scene .st4 { animation: st4 var(--loop) step-end infinite; }
  .scene .st1::before { animation: mark1 var(--loop) step-end infinite; }
  .scene .st2::before { animation: mark2 var(--loop) step-end infinite; }
  .scene .st3::before { animation: mark3 var(--loop) step-end infinite; }
  .scene .st4::before { animation: mark4 var(--loop) step-end infinite; }
  .scene.paused * { animation-play-state: paused !important; }
  .pull { stroke-dasharray: 3 7; animation: dash 1.6s linear infinite; }
}
@keyframes piece { 0%, 10% { background: var(--color-border-strong); } 14%, 78% { background: var(--color-accent); } 82%, 100% { background: var(--color-text-tertiary); } }
@keyframes arm-top { 0%, 79% { clip-path: inset(0 calc(100% - 60px) 0 0); } 86%, 96% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 calc(100% - 60px) 0 0); } }
@keyframes arm-bottom { 0%, 79% { clip-path: inset(0 0 0 calc(100% - 60px)); } 86%, 96% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 calc(100% - 60px)); } }
@keyframes fill { 0%, 11% { opacity: 0; clip-path: inset(0 0 0 0); } 14%, 15% { opacity: 1; clip-path: inset(0 0 0 0); } 78% { opacity: 1; clip-path: inset(0 0 0 100%); } 100% { opacity: 0; clip-path: inset(0 0 0 100%); } }
@keyframes used { 0%, 13% { opacity: 0; } 15%, 78% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes pending { 0%, 10% { opacity: 1; } 14%, 100% { opacity: 0; } }
@keyframes gone { 0%, 78% { opacity: 0; } 83%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes now { 0%, 10% { transform: translateX(23.75%); } 15%, 16% { transform: translateX(calc(24.583% + 26px)); } 78%, 100% { transform: translateX(calc(74.583% - 26px)); } }
@keyframes c0 { 0% { opacity: 1; } 11% { opacity: 0; } }
@keyframes c1 { 0% { opacity: 0; } 11% { opacity: 1; } 25% { opacity: 0; } }
@keyframes c2 { 0% { opacity: 0; } 25% { opacity: 1; } 55% { opacity: 0; } }
@keyframes c3 { 0% { opacity: 0; } 55% { opacity: 1; } 78% { opacity: 0; } }
@keyframes c4 { 0% { opacity: 0; } 78% { opacity: 1; } }
@keyframes st1 { 0% { color: var(--color-text); } 11% { color: var(--color-text-tertiary); } }
@keyframes st2 { 0% { color: var(--color-text-tertiary); } 11% { color: var(--color-text); } 20% { color: var(--color-text-tertiary); } }
@keyframes st3 { 0% { color: var(--color-text-tertiary); } 20% { color: var(--color-text); } 78% { color: var(--color-text-tertiary); } }
@keyframes st4 { 0% { color: var(--color-text-tertiary); } 78% { color: var(--color-text); } }
@keyframes mark1 { 0% { background: var(--color-accent); border-color: var(--color-accent); } 11% { background: transparent; border-color: currentColor; } }
@keyframes mark2 { 0% { background: transparent; border-color: currentColor; } 11% { background: var(--color-accent); border-color: var(--color-accent); } 20% { background: transparent; border-color: currentColor; } }
@keyframes mark3 { 0% { background: transparent; border-color: currentColor; } 20% { background: var(--color-accent); border-color: var(--color-accent); } 78% { background: transparent; border-color: currentColor; } }
@keyframes mark4 { 0% { background: transparent; border-color: currentColor; } 78% { background: var(--color-text); border-color: var(--color-text); } }
@keyframes dash { to { stroke-dashoffset: 20; } }

/* ───────── Shared section opener ───────── */
.sec { padding: 4rem 0; border-top: 1px solid var(--color-border); }
.sec-head { max-width: 640px; margin-bottom: 2.25rem; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -0.025em; color: var(--color-ink); }
.sec-head p { margin-top: 0.75rem; font-size: 1.0625rem; color: var(--color-text-secondary); max-width: 56ch; }

/* ───────── Approve band: the staged request pane, from direction B ───────── */
.pane {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 16px 40px -16px rgb(0 0 0 / 0.18);
  font-size: 0.875rem; line-height: 1.45; position: relative;
}
.pane-head { padding: 1.1rem 1.35rem 0.9rem; border-bottom: 1px solid var(--color-border); }
.pane-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.pane-sub { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--color-text-secondary); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.badge .i { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge.pending { background: var(--color-warning-soft); color: var(--color-warning-text); }
.approvers { margin-top: 10px; color: var(--color-text-secondary); display: flex; gap: 6px; align-items: center; position: relative; flex-wrap: wrap; }
.approvers b { color: var(--color-text); font-weight: 600; }

.details { margin: 1rem 1.35rem 0; border: 1px solid var(--color-border); border-radius: 12px; padding: 4px 1rem; position: relative; }
.drow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 9px 0; position: relative; }
.drow + .drow { border-top: 1px solid var(--color-subtle); }
.dl { font-size: 0.75rem; color: var(--color-text-tertiary); }
.dv { font-size: 0.875rem; color: var(--color-text); margin-top: 1px; }
.dv.accent { color: var(--color-accent-text); }
.dv.mono { font-family: var(--font-mono); font-size: 0.8125rem; }
.tag { font-family: var(--font-mono); font-size: 0.75rem; background: var(--color-subtle); border: 1px solid var(--color-border); border-radius: 4px; padding: 0 5px; }
.hl { box-shadow: 0 0 0 2px var(--color-accent); border-radius: 4px; padding: 0 4px; margin-left: -4px; background: var(--color-accent-soft); }

.allows { padding: 1rem 1.35rem 0; position: relative; }
.allows-h { display: flex; align-items: baseline; gap: 8px; }
.allows-h b { font-size: 0.9375rem; font-weight: 600; }
.allows-h span { font-size: 0.75rem; color: var(--color-text-tertiary); }
.rules { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--color-border); border-radius: 12px; }
.rules li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 10px 14px; }
.rules li + li { border-top: 1px solid var(--color-border); }
.rules .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--color-danger); margin-top: 1px; }
.rules strong { font-weight: 600; font-size: 0.84375rem; display: block; }
.rules .res { font-family: var(--font-mono); font-size: 0.71875rem; color: var(--color-text-tertiary); margin-top: 2px; }

.decide { padding: 1rem 1.35rem 1.1rem; }
.fake-input { height: 36px; border: 1px solid var(--color-border-strong); border-radius: 8px; padding: 0 12px; display: flex; align-items: center; color: var(--color-text-tertiary); font-size: 0.8125rem; }
.btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.pbtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 8px; font: 600 0.84375rem/1 var(--font-ui); border: 1px solid; }
.pbtn .i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pbtn.reject { color: var(--color-danger-text); border-color: var(--color-danger-text); background: var(--color-surface); }
.pbtn.approve { color: var(--color-accent-ink); background: var(--color-accent); border-color: var(--color-accent); }
.note { display: flex; gap: 7px; align-items: flex-start; margin-top: 12px; font-size: 0.75rem; color: var(--color-text-tertiary); }
.note .i { width: 14px; height: 14px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.callout {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; line-height: 1.3; font-weight: 600; color: var(--color-ink);
  margin-top: 10px;
}
.callout::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex: none; }
.callout .line { display: none; }
.callout span { background: var(--color-accent-soft); border: 1px solid var(--color-border-strong); border-radius: 8px; padding: 6px 10px; }

/* ───────── Bento: six principles, from direction B ───────── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.tile { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.tile h3 { font-size: 1.1875rem; line-height: 1.22; letter-spacing: -0.015em; font-weight: 600; color: var(--color-ink); }
.tile .lede { margin-top: 0.4rem; font-size: 0.875rem; color: var(--color-text-secondary); max-width: 46ch; }
.tile .vig { margin-top: auto; }
.t-ends { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.t-fleet { grid-column: 8 / span 5; grid-row: 1 / span 2; }
.t-see { grid-column: 1 / span 5; }
.t-git { grid-column: 6 / span 7; }
.t-limit { grid-column: 1 / span 4; }
.t-rbac { grid-column: 5 / span 8; }

.grant-card { background: var(--color-subtle); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.1rem 1.2rem; }
.gc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gc-who { font-size: 0.9375rem; font-weight: 600; color: var(--color-text); }
.gc-what { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-tertiary); margin-top: 2px; }
.dk-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 0.75rem; font-weight: 600; background: var(--color-success-soft); color: var(--color-success-text); }
.track2 { position: relative; margin-top: 1.4rem; height: 48px; overflow: hidden; }
.track2 .rail { position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 4px; background: var(--color-muted); }
.track2 .elapsed { position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 4px; background: var(--color-accent); transform-origin: right; transform: scaleX(0.66); }
.track2 .outage { position: absolute; left: 42%; width: 26%; top: 0; height: 34px; border-radius: 6px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--color-text) 10%, transparent) 0 6px, transparent 6px 12px);
  border: 1px dashed var(--color-border-strong); }
.track2 .outage em { position: absolute; top: -22px; left: 0; white-space: nowrap; font-style: normal; font-size: 0.75rem; color: var(--color-text-secondary); }
.track2 .now2 { position: absolute; left: 0; right: 0; top: 8px; height: 26px; transform: translateX(34%); }
.track2 .now2::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 26px; background: var(--color-text); border-radius: 1px; }
.ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.75rem; color: var(--color-text-secondary); }
.ticks b { display: block; color: var(--color-text); font-weight: 600; font-size: 0.8125rem; }
.ticks div:last-child { text-align: right; }
.removed { margin-top: 1.1rem; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-secondary); border-top: 1px solid var(--color-border); padding-top: 1rem; }
.removed .i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.fleet-svg { width: 100%; height: auto; }
.fleet-svg text, .fit-svg text { font-family: var(--font-ui); }
.s-surface { fill: var(--color-surface); stroke: var(--color-border); }
.s-soft { fill: var(--color-accent-soft); }
.s-chip { fill: var(--color-surface); stroke: var(--color-border); }
.s-text { fill: var(--color-text); }
.s-text-2 { fill: var(--color-text-secondary); }
.s-text-3 { fill: var(--color-text-tertiary); }
.s-ink { fill: var(--color-ink); }
.s-accent-text { fill: var(--color-accent-text); }
.s-accent-fill { fill: var(--color-accent); }
.s-accent-fill-p { fill: var(--color-accent); }
.s-text-3-fill { fill: var(--color-text-tertiary); }
.s-accent-stroke { stroke: var(--color-accent); }
.s-text-stroke { stroke: var(--color-text); }
.s-text-3-stroke { stroke: var(--color-text-tertiary); }

.see-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--color-border); border-radius: 12px; font-size: 0.875rem; overflow: hidden; }
.see-list li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: start; padding: 0.7rem 1rem; }
.see-list li + li { border-top: 1px solid var(--color-border); }
.see-list .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.see-list .flag { background: var(--color-danger-soft); }
.see-list .flag .i { color: var(--color-danger); margin-top: 2px; }
.see-list .plain .i { color: var(--color-text-tertiary); margin-top: 2px; }
.see-list .plain { color: var(--color-text-secondary); }
.see-list .res { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-tertiary); }
.see-list .kind { font-size: 0.75rem; font-weight: 600; color: var(--color-danger-text); }

.tile .code { background: var(--color-subtle); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--color-border); font-size: 0.8125rem; }
.code-bar .file { font-family: var(--font-mono); color: var(--color-text-secondary); }
.lock { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--color-accent-soft); color: var(--color-accent-text); font-weight: 600; font-size: 0.75rem; }
.lock .i { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile .code pre { margin: 0; font-size: 0.8125rem; line-height: 1.65; color: var(--color-text); padding: 0.85rem 1.1rem; overflow: auto; }
.tile .code .k { color: var(--color-text-tertiary); }
.tile .code .v { color: var(--color-accent-text); }
.tile .code .s { color: var(--color-success-text); }
.code-foot { padding: 0.6rem 0.85rem; border-top: 1px solid var(--color-border); font-size: 0.8125rem; color: var(--color-text-secondary); }

.limit { border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem; }
.limit-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8125rem; color: var(--color-text-tertiary); }
.limit-h b { font-family: var(--font-mono); font-size: 0.875rem; color: var(--color-text); font-weight: 500; }
.roles { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 8px; }
.roles li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; }
.roles .i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.roles .r { font-family: var(--font-mono); font-size: 0.8125rem; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--color-border); background: var(--color-subtle); }
.roles .ok .i { color: var(--color-success); }
.roles .no { margin-top: 6px; padding-top: 0.75rem; border-top: 1px dashed var(--color-border-strong); flex-wrap: wrap; }
.roles .no .r { text-decoration: line-through; text-decoration-color: var(--color-danger); color: var(--color-text-secondary); background: var(--color-danger-soft); border-color: var(--color-danger-text); }
.roles .no .i { color: var(--color-danger); }
.roles .no .why { color: var(--color-danger-text); font-weight: 600; }

.term { background: var(--color-ink); border-radius: 12px; padding: 1rem 1.1rem; font: 400 0.8125rem/1.7 var(--font-mono); color: var(--color-bg); overflow: auto; white-space: pre; }
.term .p { color: var(--color-text-tertiary); }
.term .c { color: var(--color-bg); }
.term .y { color: var(--color-success); }
.term .h { color: var(--color-text-tertiary); }

/* ───────── Timeline band ───────── */
.band { background: var(--color-surface); }
.tl { border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; font-size: 0.8125rem; }
.tl-row { display: grid; grid-template-columns: 180px 1fr; min-height: 52px; }
.tl-row + .tl-row { border-top: 1px solid var(--color-border); }
.tl-name { padding: 0.75rem 1.1rem; border-right: 1px solid var(--color-border); }
.tl-name b { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; }
.tl-name span { display: block; font-size: 0.75rem; color: var(--color-text-tertiary); }
.tl-lane { position: relative; padding: 8px 0; display: grid; gap: 6px; align-content: center;
  background-image: linear-gradient(to right, var(--color-border) 1px, transparent 1px); background-size: 16.6667% 100%; background-position: 0 0; }
.tl-head .tl-lane { background: none; }
.tl-head { background: var(--color-bg); min-height: 40px; }
.tl-head .tl-name { font-size: 0.75rem; color: var(--color-text-tertiary); display: flex; align-items: center; }
.axis { display: flex; align-items: center; height: 100%; }
.axis span { flex: 1; font-size: 0.75rem; color: var(--color-text-tertiary); padding-left: 8px; }
.axis span.now { color: var(--color-accent-ink); }
.axis span.now em { font-style: normal; background: var(--color-ink); color: var(--color-bg); padding: 3px 7px; border-radius: 5px; font-weight: 600; margin-left: -8px; }
.g { position: relative; height: 22px; }
.g i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--color-accent); transform-origin: right; }
.g b { position: absolute; top: 0; height: 22px; display: flex; align-items: center; white-space: nowrap; font-weight: 500; font-size: 0.78125rem; color: var(--color-text); padding-left: 10px; }
.g b .m { font-family: var(--font-mono); color: var(--color-text-secondary); font-weight: 400; margin-left: 6px; }
.g.soon i { background: color-mix(in srgb, var(--color-accent) 70%, var(--color-text-secondary)); }
.none { color: var(--color-text-tertiary); padding-left: 12px; font-size: 0.78125rem; }
.nowline { position: absolute; top: 0; bottom: 0; left: 180px; width: 2px; background: var(--color-ink); pointer-events: none; }
.tl-wrap { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .g i { animation: shorten 90s linear forwards; }
  @keyframes shorten { to { transform: scaleX(0.93); } }
}

/* ───────── How it fits ───────── */
.fit-svg { width: 100%; height: auto; margin-top: 0.5rem; }

/* Defined in Git */
.git { padding: 4rem 0; border-top: 1px solid var(--color-border); }
.git-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
.git-copy p { max-width: 38ch; }
.code {
  background: var(--color-subtle);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
}
.copy {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.copy:hover { text-decoration: underline; }
.code pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  tab-size: 2;
}
.code .k { color: var(--color-accent-text); }
.code .s { color: var(--color-warning-text); }

/* Install */
.install { padding: 3rem 0 4rem; border-top: 1px solid var(--color-border); }
.install .code.command pre { white-space: pre-wrap; word-break: break-word; }
.install-links {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9375rem;
}
/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding: 2.5rem 0; }
.foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.site-footer .mark path { fill: var(--color-text-tertiary); }
.site-footer nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}
.site-footer nav a:hover { color: var(--color-text); }
.fine {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: 0.5rem;
  max-width: 70ch;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .git-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-ends, .t-fleet, .t-see, .t-git, .t-limit, .t-rbac { grid-column: auto; grid-row: auto; }
  .t-ends, .t-git, .t-rbac { grid-column: 1 / span 2; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 1.1rem; }
  .bar { height: 56px; gap: 1rem; }
  .site-header nav ul { gap: 1rem; }
  .hero { padding: 1.75rem 0 1.75rem; }
  .scene-head { flex-direction: column; align-items: start; gap: 10px; }
  .left { text-align: left; }
  .window { left: 10%; width: 70%; }
  .stages { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .t-ends, .t-git, .t-rbac { grid-column: auto; }
  .tl-row { grid-template-columns: 96px 1fr; }
  .nowline { display: none; }
  .tl-lane { background: none; padding: 10px 8px; }
  .axis { display: none; }
  .g { height: auto; }
  .g i { position: static; display: block; width: 100% !important; height: 6px; }
  .g b { position: static; display: flex; flex-direction: column; height: auto; padding: 2px 0 8px; white-space: normal; }
  .g b .m { margin-left: 0; }
  .drow { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
