/* ==========================================================================
   Migratify - landing page
   Aesthetic: one typeface, the tool's own. Everything is set in IBM Plex
   Mono on near-black -- headlines included -- because a CLI has no business
   introducing a second voice. The three match outcomes (accepted / review /
   not found) are the whole colour system, because they are the whole
   product.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg:        #08090c;
  --bg-2:      #0b0d11;
  --panel:     #0f1218;
  --panel-2:   #12161d;
  --line:      rgba(255, 255, 255, 0.085);
  --line-2:    rgba(255, 255, 255, 0.16);

  --ink:       #e9ecf2;
  --dim:       #98a2b1;
  --faint:     #69727f;

  /* phosphor teal: the block art in the CLI banner */
  --cyan:      #5fe3d4;
  --cyan-deep: #1d7e77;

  /* the three outcomes */
  --green:     #58d47c;
  --amber:     #f0c05a;
  --red:       #f0655f;

  --radius:    10px;
  --measure:   62ch;

  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas,
          "DejaVu Sans Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- atmosphere ---------------------------------------------------------- */

/* 1px grid + a single teal glow behind the hero. Fixed, so the page reads as
   a surface rather than a stack of boxes. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 12% -10%, rgba(95, 227, 212, 0.10), transparent 60%),
    radial-gradient(80% 50% at 100% 0%, rgba(240, 192, 90, 0.05), transparent 60%),
    linear-gradient(transparent 0 calc(100% - 1px), var(--line) calc(100% - 1px)) 0 0 / 100% 68px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), var(--line) calc(100% - 1px)) 0 0 / 68px 100%;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 92%);
}

/* fine grain, so large flat areas are never plastic */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- shell --------------------------------------------------------------- */

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

a { color: var(--cyan); text-decoration-color: rgba(95, 227, 212, 0.35); text-underline-offset: 3px; }
a:hover { color: #8df3e7; }

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

::selection { background: rgba(95, 227, 212, 0.25); color: #fff; }

.skip {
  position: absolute; left: -9999px;
  padding: 10px 16px; background: var(--cyan); color: #04120f;
  font-weight: 600; z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

/* --- type ---------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

/* monospaced headlines are wide, so they run smaller and tighter than a
   proportional face would */
h1 { font-size: clamp(1.8rem, 3.2vw, 2.45rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
h3 { font-size: clamp(1rem, 1.5vw, 1.15rem); }

/* No italics anywhere. IBM Plex Mono has no true italic here, and a slanted
   monospace reads as a rendering fault rather than emphasis -- so emphasis is
   colour. <i> is only ever a decorative block in this page. */
em, i { font-style: normal; }
em { color: var(--cyan); font-weight: 500; }
h1 em, h2 em { color: var(--cyan); font-weight: inherit; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: var(--dim);
  max-width: 56ch;
}

strong { font-weight: 600; color: #fff; }

.eyebrow, .label {
  font-size: 11px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.label b { color: var(--cyan); font-weight: 500; }

code, kbd, pre { font-family: var(--mono); }

code:not(pre code) {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.38em;
  font-size: 0.9em;
  color: #d7f7f2;
  white-space: nowrap;
}

/* --- nav ----------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(8, 9, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.brand svg { display: block; width: 22px; height: 22px; }
.brand .ver {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
}
.nav-links a:hover { color: var(--cyan); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.lang a, .lang span {
  padding: 4px 9px;
  text-decoration: none;
  color: var(--faint);
}
.lang [aria-current] { background: rgba(95, 227, 212, 0.12); color: var(--cyan); }
.lang a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}

/* --- sections ------------------------------------------------------------ */

section { padding: clamp(70px, 10vw, 128px) 0; }
section + section { border-top: 1px solid var(--line); }

.hero { padding-top: clamp(52px, 8vw, 92px); padding-bottom: clamp(56px, 8vw, 100px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero h1 { margin: 18px 0 24px; }

.services {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.sp { background: #1ed760; box-shadow: 0 0 10px rgba(30, 215, 96, 0.5); }
.dot.yt { background: #ff4e45; box-shadow: 0 0 10px rgba(255, 78, 69, 0.45); }
.arrows { color: var(--cyan); letter-spacing: 0; }

/* --- buttons ------------------------------------------------------------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, color 0.18s;
}
.btn:hover {
  border-color: rgba(95, 227, 212, 0.5);
  background: rgba(95, 227, 212, 0.07);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn small { color: var(--faint); font-size: 11px; letter-spacing: 0.04em; }

.btn.primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #041614;
  font-weight: 600;
}
.btn.primary small { color: rgba(4, 22, 20, 0.62); }
.btn.primary:hover {
  background: #7defdd;
  border-color: #7defdd;
  color: #041614;
}

/* --- copyable command --------------------------------------------------- */

.copy-row {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.copy-row code {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #cfe9e5;
  background: none;
  border: 0;
  /* wrap rather than clip: a command the reader cannot see in full is worse
     than one on two lines, and the copy button always takes the whole thing */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.copy-row code .p { color: var(--cyan-deep); -webkit-user-select: none; user-select: none; }
.copy-btn {
  flex: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 14px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.copy-btn:hover { color: var(--cyan); background: rgba(95, 227, 212, 0.08); }
.copy-btn[data-done="1"] { color: var(--green); }

.fineprint { color: var(--faint); font-size: 12px; margin-top: 12px; }

/* --- terminal ------------------------------------------------------------ */

.term {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(95, 227, 212, 0.045), transparent 22%),
    var(--panel);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.06em;
}
.term-bar .lamps { display: inline-flex; gap: 5px; }
.term-bar .lamps i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2);
  display: block;
}
.term-bar .lamps i:first-child { background: rgba(240, 101, 95, 0.55); }
.term-bar .lamps i:nth-child(2) { background: rgba(240, 192, 90, 0.5); }
.term-bar .lamps i:last-child  { background: rgba(88, 212, 124, 0.5); }
.term-bar b { color: var(--dim); font-weight: 400; }
.term-bar .right { margin-left: auto; }

/* The terminal body is one monospaced block, but the parts of the real output
   that are *drawn* by Rich -- the banner mark, the panels, the progress bar --
   are drawn here too, in SVG and CSS. Reproducing them with box-drawing
   characters looked right in a terminal and fell apart in a browser: whichever
   font supplies the glyphs a webfont is missing has its own advance width, so
   a border made of them never lines up with the ASCII beside it. */
.term-body {
  padding: 20px 18px 22px;
  font-size: 12px;
  line-height: 1.62;
  color: #cdd6e0;
  overflow-x: auto;
  font-variant-ligatures: none;
}
.term-body pre,
.term pre {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  tab-size: 2;
  color: inherit;
  /* a real terminal wraps a long line rather than hiding it, and so does
     this one -- a clipped URL in a screenshot reads as a broken layout */
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.term pre { padding: 20px 18px 22px; font-size: 12.5px; line-height: 1.62; overflow-x: auto; }
@media (max-width: 520px) {
  .term-body { font-size: 10.5px; padding: 16px 14px 18px; }
  .term pre { font-size: 10.5px; }
}

/* the CLI banner: block-art mark, note column, three live facts */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.bmark { width: 54px; height: 54px; flex: none; margin-top: -2px; }
.bnotes {
  flex: none;
  color: var(--amber);
  text-align: center;
  line-height: inherit;
}
.binfo { min-width: 0; }
.binfo b { color: #fff; font-weight: 600; }

/* a terminal shown on its own, rather than beside prose */
.term-narrow { max-width: 660px; margin-left: auto; margin-right: auto; }

/* a Rich panel */
.tpanel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 14px 16px 13px;
  margin: 16px 0;
  max-width: 42ch;
}
.tpanel-title {
  position: absolute;
  top: -0.8em;
  left: 12px;
  padding: 0 7px;
  background: var(--panel);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.tpanel .pad { margin-top: 1.62em; }

/* a Rich progress bar, finished */
.tprog {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.tprog .tbar {
  flex: 1;
  max-width: 22ch;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.tprog .tbar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
}

.c-dim   { color: var(--faint); }
.c-cyan  { color: var(--cyan); }
.c-green { color: var(--green); }
.c-amber { color: var(--amber); }
.c-red   { color: var(--red); }
.c-white { color: #fff; font-weight: 600; }
.c-prompt { color: var(--cyan-deep); }

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: -0.18em;
  background: var(--cyan);
  animation: blink 1.15s steps(1, end) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* --- outcome legend ------------------------------------------------------ */

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.outcomes li {
  list-style: none;
  padding: 18px 20px;
  background: var(--bg-2);
}
.outcomes .k {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 7px;
}
.outcomes .v { color: var(--dim); font-size: 13px; line-height: 1.6; }
.outcomes li:nth-child(1) .k { color: var(--green); }
.outcomes li:nth-child(2) .k { color: var(--amber); }
.outcomes li:nth-child(3) .k { color: var(--red); }
.outcomes .k::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}
@media (max-width: 760px) {
  .outcomes { grid-template-columns: minmax(0, 1fr); }
}

/* --- two-column section -------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 62px);
  align-items: start;
}
@media (max-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
.split h2 { margin-bottom: 20px; }
.split .body { color: var(--dim); }
.split .body strong { color: #fff; }

/* --- candidate / veto demo ---------------------------------------------- */

.match {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}
.match-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.match-head .q { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.match-head .t { color: #fff; font-weight: 500; margin-top: 5px; }
.match-head .m { color: var(--faint); font-size: 12px; }

.cand {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 14px;
  align-items: baseline;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s;
}
.cand:last-child { border-bottom: 0; }
.cand:hover { background: rgba(255, 255, 255, 0.022); }
.cand .name { font-size: 13.5px; color: var(--ink); }
.cand .name span { color: var(--faint); }
.cand .why {
  grid-column: 1;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.01em;
}
.cand .score {
  grid-row: span 2;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  align-self: center;
}
.cand.win .score { color: var(--green); border-color: rgba(88, 212, 124, 0.4); background: rgba(88, 212, 124, 0.09); }
.cand.mid .score { color: var(--amber); border-color: rgba(240, 192, 90, 0.35); background: rgba(240, 192, 90, 0.07); }
.cand.out .score { color: var(--red);   border-color: rgba(240, 101, 95, 0.35); background: rgba(240, 101, 95, 0.07); }
.cand.out .name { color: var(--dim); }
.cand.out .why { color: rgba(240, 101, 95, 0.82); }

.match-foot {
  padding: 13px 18px;
  border-top: 1px solid var(--line-2);
  background: rgba(88, 212, 124, 0.045);
  font-size: 12.5px;
  color: var(--dim);
}
.match-foot b { color: var(--green); font-weight: 600; }

/* --- steps --------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
  padding: 24px 22px 22px;
}
.step .n {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cyan-deep);
  display: block;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; }
.step h3 code {
  font-family: var(--mono);
  font-size: 0.72em;
  background: none; border: 0; padding: 0;
  color: var(--cyan);
}
.step p { color: var(--dim); font-size: 13.5px; margin: 0; max-width: none; }
.step .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.step .tag.ro { color: var(--green); background: rgba(88, 212, 124, 0.1); border: 1px solid rgba(88, 212, 124, 0.3); }
.step .tag.rw { color: var(--amber); background: rgba(240, 192, 90, 0.1); border: 1px solid rgba(240, 192, 90, 0.3); }

/* --- feature grid -------------------------------------------------------- */

.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.feat {
  background: var(--bg-2);
  padding: 26px 24px;
  transition: background 0.2s;
}
.feat:hover { background: var(--panel-2); }
.feat h3 {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.feat h3::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--cyan);
  transform: rotate(45deg);
  flex: none;
}
.feat p { font-size: 13px; color: var(--dim); margin: 0; max-width: none; }

@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feats { grid-template-columns: minmax(0, 1fr); } }

/* --- weights ------------------------------------------------------------- */

.weights { margin: 0; padding: 0; list-style: none; }
.weights li {
  display: grid;
  grid-template-columns: 13ch 1fr 5ch;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.weights li:last-child { border-bottom: 0; }
.weights .bar {
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.weights .bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  width: var(--w);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-in .weights .bar i { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .weights .bar i { transform: scaleX(1); transition: none; } }
.weights .n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  font-weight: 600;
}
.weights li.key .n { font-size: 15px; }
.weights .k { color: var(--dim); }
.weights li.key .k { color: #fff; }
@media (max-width: 560px) {
  .weights li { grid-template-columns: 11ch 1fr 4ch; gap: 10px; font-size: 12px; }
}

/* --- threshold rail ------------------------------------------------------ */

.rail-wrap { margin-top: 46px; }
.rail {
  display: grid;
  grid-template-columns: 70fr 18fr 12fr;
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.rail div {
  padding: 16px 16px 18px;
  min-height: 108px;
}
.rail .z1 { background: linear-gradient(180deg, rgba(240, 101, 95, 0.14), rgba(240, 101, 95, 0.05)); }
.rail .z2 { background: linear-gradient(180deg, rgba(240, 192, 90, 0.16), rgba(240, 192, 90, 0.05)); }
.rail .z3 { background: linear-gradient(180deg, rgba(88, 212, 124, 0.18), rgba(88, 212, 124, 0.06)); }
.rail .r { font-size: 11px; letter-spacing: 0.14em; color: var(--faint); font-variant-numeric: tabular-nums; }
.rail .o { display: block; margin-top: 6px; font-weight: 600; font-size: 13.5px; }
.rail .z1 .o { color: var(--red); }
.rail .z2 .o { color: var(--amber); }
.rail .z3 .o { color: var(--green); }
.rail .d { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); line-height: 1.5; }
@media (max-width: 760px) {
  .rail { grid-template-columns: minmax(0, 1fr); }
  .rail div { min-height: 0; }
}

.note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 2px solid var(--cyan);
  background: rgba(95, 227, 212, 0.05);
  font-size: 13px;
  color: var(--dim);
}
.note b { color: var(--cyan); font-weight: 600; }
.note p { max-width: none; }

/* --- table --------------------------------------------------------------- */

.tbl-scroll { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
  background: rgba(255, 255, 255, 0.022);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.018); }
td code { white-space: nowrap; }
td.w { text-align: center; font-weight: 600; width: 1%; white-space: nowrap; }
td.w[data-w="no"]  { color: var(--green); }
td.w[data-w="yes"] { color: var(--amber); }
.tdesc { color: var(--dim); }

/* --- install ------------------------------------------------------------- */

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 46px;
}
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 8px; }
.card .sub { color: var(--faint); font-size: 12px; margin-bottom: 18px; }
.card ul { margin: 16px 0 0; padding-left: 1.1em; color: var(--dim); font-size: 13px; }
.card li { margin-bottom: 7px; }
.card .copy-row { max-width: none; }
.card .copy-row + .copy-row { margin-top: 8px; }
.card .cta { margin: 0; }

.platform {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 40px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 11.5px;
  color: var(--dim);
}
.chip b { color: var(--ink); font-weight: 600; }

/* --- faq ----------------------------------------------------------------- */

.faq { margin-top: 42px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  list-style: none;
  transition: color 0.16s;
}
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary:hover { color: var(--cyan); }
summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 18px;
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details .a {
  padding: 0 0 22px;
  color: var(--dim);
  font-size: 13.5px;
}
details .a p { max-width: 78ch; }

/* --- final cta ----------------------------------------------------------- */

.final { text-align: center; }
.final h2 { margin-bottom: 18px; }
.final .lede { margin: 0 auto 30px; }
.final .cta { justify-content: center; }
.final .copy-row { margin: 0 auto; }
.final .fineprint { text-align: center; }

/* --- footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  position: relative;
  z-index: 1;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  font-size: 12px;
  color: var(--faint);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--cyan); }
.foot .disclaimer { flex-basis: 100%; line-height: 1.6; max-width: 78ch; }

/* --- reveal -------------------------------------------------------------- */

.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}
.no-js .rv { opacity: 1; transform: none; }

/* hero load-in, staggered */
.hero .rise { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .rise:nth-child(1) { animation-delay: 0.02s; }
.hero .rise:nth-child(2) { animation-delay: 0.10s; }
.hero .rise:nth-child(3) { animation-delay: 0.18s; }
.hero .rise:nth-child(4) { animation-delay: 0.26s; }
.hero .rise:nth-child(5) { animation-delay: 0.34s; }
.hero .rise:nth-child(6) { animation-delay: 0.42s; }
.hero .term { animation: rise 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .rise, .hero .term { animation: none; }
}
