/* fragment-api.net - one stylesheet for both languages.
   Direction: cool paper, navy ink, one gold star. Type does the talking (Onest), code is
   code (JetBrains Mono). Motion: one orchestrated hero moment, quiet reveals after it. */

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f8fa;
  --surface: #ffffff;
  --ink: #0b1526;
  --ink-soft: #16233b;
  --slate: #56617a;
  --mist: #aab3c4;
  --line: rgba(11, 21, 38, 0.09);
  --line-strong: rgba(11, 21, 38, 0.16);
  --signal: #1668e3;
  --signal-deep: #0f4fb8;
  --gold: #f2b01e;
  --gold-soft: #f7d774;
  --ok: #138a52;

  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 13vw, 168px);

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-float: 0 1px 2px rgba(11, 21, 38, 0.04), 0 18px 40px -18px rgba(11, 21, 38, 0.22), 0 48px 96px -48px rgba(22, 104, 227, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.012em; }
code, pre, .mono { font-family: var(--mono); }
::selection { background: rgba(22, 104, 227, 0.16); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  transition: top 0.3s var(--ease-out);
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section { padding: var(--section) 0; }
.head { max-width: 760px; }
.head p { margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: var(--slate); max-width: 56ch; }

/* ---------------------------------------------------------------- nav (the only glass) */
.nav {
  position: fixed; inset: 16px 0 auto; z-index: 40;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  width: min(100%, 1040px);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(247, 248, 250, 0.7);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(11, 21, 38, 0.25);
  transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px -20px rgba(11, 21, 38, 0.32);
}
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  font-weight: 650; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.brand .mark { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--slate); text-decoration: none;
  transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: rgba(11, 21, 38, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.lang {
  display: grid; place-items: center; min-width: 44px; height: 40px; padding: 0 12px;
  border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.lang:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 550; text-decoration: none;
  transition: transform 0.5s var(--ease-spring), background-color 0.3s var(--ease-out);
}
.nav-cta:hover { background: var(--ink-soft); }
.nav-cta:active { transform: scale(0.96); }
.burger {
  display: none; position: relative; width: 44px; height: 40px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; cursor: pointer;
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.55s var(--ease-spring), opacity 0.3s var(--ease-out);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 35;
  padding: 120px var(--gutter) 40px;
  background: rgba(247, 248, 250, 0.9);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  visibility: hidden; opacity: 0;
  transition: opacity 0.45s var(--ease-out), visibility 0s 0.45s;
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity 0.45s var(--ease-out); }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu a {
  font-size: 34px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; padding: 8px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-spring);
}
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .menu a:nth-child(5) { transition-delay: 0.2s; }
.menu-open .menu a:nth-child(6) { transition-delay: 0.25s; }

/* ---------------------------------------------------------------- buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 56px;
  padding: 0 24px; border-radius: 999px; border: 0;
  font: 550 16px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform 0.6s var(--ease-spring), background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: #fff; padding-right: 8px; }
.btn-primary:hover { background: var(--ink-soft); }
.btn-primary .ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.6s var(--ease-spring), background-color 0.35s var(--ease-out);
}
.btn-primary:hover .ic { transform: translate(2px, -2px) scale(1.06); background: var(--gold); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-quiet:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.btn svg { width: 18px; height: 18px; }

.link {
  color: var(--signal); font-weight: 550; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s var(--ease-out);
}
.link:hover { background-size: 100% 1.5px; color: var(--signal-deep); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(128px, 13vw, 176px) 0 clamp(96px, 11vw, 150px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  inset: -20% -10% auto auto; width: min(900px, 90vw); aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(22, 104, 227, 0.12), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(242, 176, 30, 0.1), transparent 72%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 5.7vw, 84px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 620;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .w > span { display: inline-block; }
.lead { margin: 0 0 40px; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--slate); max-width: 34em; }
.install {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  height: 44px; padding: 0 6px 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(11, 21, 38, 0.045); color: var(--ink);
  font: 500 14px/1 var(--mono);
  transition: background-color 0.35s var(--ease-out), transform 0.6s var(--ease-spring);
}
.install:hover { background: rgba(11, 21, 38, 0.08); }
.install:active { transform: scale(0.97); }
.install .dollar { color: var(--slate); }
.install .ic { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.install .ic svg { width: 15px; height: 15px; transition: opacity 0.25s var(--ease-out), transform 0.5s var(--ease-spring); }
.install .ic .i-done { position: absolute; opacity: 0; transform: scale(0.6); color: var(--ok); }
.install.copied .ic .i-copy { opacity: 0; transform: scale(0.6); }
.install.copied .ic .i-done { opacity: 1; transform: none; }

/* the star behind the order: drawn once on load */
.hero-visual { position: relative; }
.star-line {
  position: absolute; left: 50%; top: 50%; width: 168%; height: auto; pointer-events: none;
  transform: translate(-55%, -51%) rotate(-12deg);
}
.star-line path { fill: none; stroke: url(#starStroke); stroke-width: 0.42; stroke-linejoin: round; }

/* ---------------------------------------------------------------- the order (hero demo) */
.order {
  position: relative; z-index: 1; max-width: 440px; margin-left: auto;
  padding: 8px; border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-float);
}
.order-core {
  border-radius: calc(var(--r-xl) - 8px); background: var(--surface);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(11, 21, 38, 0.04);
  padding: 22px 22px 18px;
}
.order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.order-id { font-size: 13px; color: var(--slate); }
.order-id b { display: block; font-size: 17px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 550; color: var(--slate); background: rgba(11, 21, 38, 0.05);
  transition: color 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.status i { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.status .t { display: none; }
.order[data-state="draft"] .status .t-draft,
.order[data-state="ready"] .status .t-ready,
.order[data-state="signing"] .status .t-ready,
.order[data-state="signed"] .status .t-signed,
.order[data-state="paid"] .status .t-paid { display: inline; }
.order[data-state="draft"] .status i { animation: pulse 1.2s var(--ease-out) infinite; }
.order[data-state="signed"] .status { color: var(--signal); background: rgba(22, 104, 227, 0.09); }
.order[data-state="paid"] .status { color: var(--ok); background: rgba(19, 138, 82, 0.1); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.rows { margin: 0; }
.row {
  display: flex; justify-content: space-between; gap: 16px; padding: 11px 0;
  border-top: 1px solid var(--line); font-size: 15px;
}
.row dt { color: var(--slate); }
.row dd { margin: 0; font-weight: 550; font-variant-numeric: tabular-nums; }
.row.total { padding-top: 14px; font-size: 17px; }
.row.total dd { font-weight: 650; }
.sign {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; margin-top: 16px; border-radius: var(--r-md);
  background: rgba(11, 21, 38, 0.06); color: var(--mist);
  font-size: 15px; font-weight: 600; overflow: hidden;
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), transform 0.5s var(--ease-spring);
}
.sign .t { display: none; }
.sign svg { width: 17px; height: 17px; }
.sign .chk path { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.6s var(--ease-out) 0.15s; }
.order[data-state="draft"] .sign .t-idle,
.order[data-state="ready"] .sign .t-idle,
.order[data-state="signing"] .sign .t-idle { display: inline; }
.order[data-state="signed"] .sign .t-done,
.order[data-state="paid"] .sign .t-done { display: inline-flex; align-items: center; gap: 8px; }
.order[data-state="ready"] .sign { background: var(--ink); color: #fff; }
.order[data-state="signing"] .sign { background: var(--ink); color: #fff; transform: scale(0.97); }
.order[data-state="signed"] .sign,
.order[data-state="paid"] .sign { background: var(--signal); color: #fff; }
.order[data-state="signed"] .sign .chk path,
.order[data-state="paid"] .sign .chk path { stroke-dashoffset: 0; }
.order-foot {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; min-height: 20px;
  font-size: 13px; color: var(--slate);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-spring);
}
.order-foot .mono { font-size: 12.5px; }
.order[data-state="paid"] .order-foot { opacity: 1; transform: none; }
.stamp {
  position: absolute; z-index: 2; right: -18px; top: -18px; width: 64px; height: 64px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--ink); box-shadow: 0 12px 30px -10px rgba(11, 21, 38, 0.5);
  opacity: 0; transform: scale(0.4) rotate(-40deg);
  transition: opacity 0.4s var(--ease-out), transform 0.9s var(--ease-spring);
}
.stamp svg { width: 30px; height: 30px; }
.order[data-state="paid"] .stamp { opacity: 1; transform: none; }
.order.resetting .order-core > * { opacity: 0; transition: opacity 0.35s var(--ease-out); }

/* ---------------------------------------------------------------- features: a spec sheet */
.spec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); }
.spec .head { position: sticky; top: 128px; align-self: start; }
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 22px; align-items: start;
  padding: 28px 12px 28px 4px; border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease-out);
}
.spec-row:hover { background: rgba(255, 255, 255, 0.7); }
.spec-ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink);
  transition: transform 0.6s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}
.spec-ic svg { width: 21px; height: 21px; }
.spec-row:hover .spec-ic { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-strong), 0 10px 20px -12px rgba(11, 21, 38, 0.3); }
.spec-row h3 { margin: 1px 0 6px; }
.spec-row p { margin: 0; color: var(--slate); max-width: 48ch; }
.chip {
  margin-top: 4px; padding: 7px 10px; border-radius: 8px; white-space: nowrap;
  font: 500 13px/1 var(--mono); color: var(--ink-soft); background: rgba(11, 21, 38, 0.05);
  transition: color 0.4s var(--ease-out), background-color 0.4s var(--ease-out), transform 0.6s var(--ease-spring);
}
.spec-row:hover .chip { color: var(--signal-deep); background: rgba(22, 104, 227, 0.08); transform: translateX(-4px); }
.gold { color: #c98d00; }

/* ---------------------------------------------------------------- how it works: a real sequence */
.how { padding-top: 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; list-style: none; }
.track { position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line-strong); }
.track i { position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out) 0.2s; }
.steps.in .track i { transform: scaleX(1); }
.step { position: relative; }
.num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.steps.in .num { background: var(--ink); color: #fff; box-shadow: none; }
.steps.in .step:nth-child(3) .num { transition-delay: 0.7s; }
.steps.in .step:nth-child(4) .num { transition-delay: 1.3s; }
.step-body { margin-top: 28px; padding: 28px; border-radius: var(--r-lg); }
.step.you .step-body { background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
.who { font-size: 14px; font-weight: 550; color: var(--slate); margin-bottom: 10px; }
.step.you .who { color: var(--signal); }
.step h3 { font-size: 22px; margin-bottom: 16px; }
.step ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step li { position: relative; padding-left: 22px; color: var(--slate); font-size: 16px; line-height: 1.5; }
.step li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 1.5px; background: var(--mist); }
.step.you li::before { background: var(--signal); }

/* ---------------------------------------------------------------- the promise (dark band) */
.band-wrap { padding: 0 clamp(8px, 1.6vw, 20px); }
.band {
  position: relative; overflow: hidden; border-radius: clamp(28px, 3.4vw, 44px);
  background: var(--ink); color: #c9d3e4; padding: var(--section) 0;
}
.band::before {
  content: ""; position: absolute; pointer-events: none; left: -15%; bottom: -55%; width: 75%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(22, 104, 227, 0.32), transparent 72%);
}
.band .wrap { position: relative; }
.band h2 { color: #fff; font-size: clamp(38px, 5.8vw, 84px); line-height: 1; letter-spacing: -0.045em; max-width: 18ch; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); margin-top: clamp(64px, 8vw, 104px); }
.point { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.point svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 20px; }
.point h3 { color: #fff; margin-bottom: 10px; }
.point p { margin: 0; font-size: 16px; line-height: 1.6; color: #a9b4c8; }

/* ---------------------------------------------------------------- quick start */
.code-shell {
  margin-top: clamp(48px, 6vw, 72px); padding: 8px; border-radius: var(--r-xl);
  background: rgba(11, 21, 38, 0.04); box-shadow: 0 0 0 1px var(--line);
}
.code-core { border-radius: calc(var(--r-xl) - 8px); background: var(--ink); color: #d9e2f2; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.tab {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  font: 550 14px/1 var(--sans); color: #a9b4c8; transition: color 0.35s var(--ease-out);
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab-ind {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 100px; border-radius: 999px; background: #fff;
  transform-origin: left; transition: transform 0.55s var(--ease-spring);
}
.copy {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); color: #d9e2f2; cursor: pointer; font: 550 14px/1 var(--sans);
  transition: background-color 0.3s var(--ease-out), transform 0.5s var(--ease-spring);
}
.copy:hover { background: rgba(255, 255, 255, 0.12); }
.copy:active { transform: scale(0.96); }
.copy svg { width: 15px; height: 15px; }
.copy .done { display: none; color: #7ee2b0; }
.copy.copied .copy-ic { display: none; }
.copy.copied .done { display: block; }
.panel[hidden] { display: none; }
.cmd { padding: 18px 28px 0; font: 500 14px/1.6 var(--mono); color: #a9b4c8; }
.cmd b { color: var(--gold); font-weight: 500; margin-right: 10px; }
pre { margin: 0; padding: 16px 28px 30px; overflow-x: auto; font: 400 14px/1.8 var(--mono); tab-size: 2; }
pre .k { color: #8ab4ff; }
pre .s { color: #f7d774; }
pre .n { color: #ffb86b; }
pre .c { color: #6b7a95; }
.after { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.plan { padding: 8px; border-radius: var(--r-xl); background: rgba(11, 21, 38, 0.035); box-shadow: 0 0 0 1px var(--line); }
.plan-core {
  height: 100%; padding: clamp(28px, 3.4vw, 44px); border-radius: calc(var(--r-xl) - 8px);
  background: var(--surface); box-shadow: inset 0 1px 0 #fff;
}
.plan.featured .plan-core { background: var(--ink); color: #c9d3e4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.price b { font-size: clamp(80px, 10vw, 136px); line-height: 0.85; letter-spacing: -0.065em; font-weight: 500; color: var(--ink); }
.plan.featured .price b { color: #fff; }
.price span { font-size: 15px; color: var(--slate); }
.plan.featured .price span { color: #a9b4c8; }
.plan h3 { font-size: 22px; }
.plan.featured h3 { color: #fff; }
.plan .sub { margin: 6px 0 28px; color: var(--slate); }
.plan.featured .sub { color: #a9b4c8; }
.plan ul { list-style: none; margin: 0; padding: 24px 0 0; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.plan.featured ul { border-color: rgba(255, 255, 255, 0.12); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--signal); }
.plan.featured li svg { color: var(--gold); }
.note { margin: 28px 0 0; color: var(--slate); font-size: 16px; }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); }
.faq .head { align-self: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0;
  list-style: none; cursor: pointer; font-size: 19px; font-weight: 550; letter-spacing: -0.012em;
  transition: color 0.3s var(--ease-out);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--signal-deep); }
.plus {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 999px; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 0.6s var(--ease-spring), background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; border-radius: 2px;
  background: currentColor; transform: translate(-50%, -50%);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.6s var(--ease-spring); }
.qa[open] .plus { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(180deg); }
.qa[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.ans { overflow: hidden; }
.ans p { margin: 0; padding: 0 64px 28px 0; color: var(--slate); max-width: 62ch; }

/* ---------------------------------------------------------------- closing + footer */
.final { position: relative; padding-top: 0; }
.final-inner { position: relative; padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(44px, 7vw, 104px); line-height: 0.96; letter-spacing: -0.05em; max-width: 12ch; }
.final p { margin: 28px 0 40px; font-size: 19px; color: var(--slate); max-width: 44ch; }
.final .star-mini { position: absolute; right: 0; top: clamp(40px, 6vw, 80px); width: clamp(88px, 12vw, 160px); height: auto; }
.final .star-mini path { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; }

footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--slate); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; transition: color 0.3s var(--ease-out); }
.foot a:hover { color: var(--ink); }
.disclaimer { margin: 28px 0 0; font-size: 14px; color: #7a849a; }

/* ---------------------------------------------------------------- motion (only with JS, never with reduced motion) */
.js .hero h1 .w > span { transform: translateY(125%); }
.js.ready .hero h1 .w > span { transform: none; transition: transform 1.1s var(--ease-out); }
.js.ready .hero h1 .w:nth-child(2) > span { transition-delay: 0.06s; }
.js.ready .hero h1 .w:nth-child(3) > span { transition-delay: 0.12s; }
.js.ready .hero h1 .w:nth-child(4) > span { transition-delay: 0.18s; }
.js.ready .hero h1 .w:nth-child(5) > span { transition-delay: 0.24s; }
.js.ready .hero h1 .w:nth-child(6) > span { transition-delay: 0.3s; }
.js.ready .hero h1 .w:nth-child(7) > span { transition-delay: 0.36s; }
.js.ready .hero h1 .w:nth-child(8) > span { transition-delay: 0.42s; }
.js.ready .hero h1 .w:nth-child(9) > span { transition-delay: 0.48s; }

.js .hero .fade { opacity: 0; transform: translateY(14px); }
.js.ready .hero .fade { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) 0.5s, transform 1.2s var(--ease-out) 0.5s; }
.js.ready .hero .fade.late { transition-delay: 0.65s; }
.js .order { opacity: 0; transform: translateY(28px) scale(0.98); }
.js.ready .order { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) 0.35s, transform 1.3s var(--ease-spring) 0.35s; }
.js .star-line path { stroke-dasharray: 420; stroke-dashoffset: 420; }
.js.ready .star-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease-out) 0.2s; }

.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .hero h1 .w > span, .js .hero .fade, .js .order, .js [data-reveal] { opacity: 1; transform: none; }
  .js .star-line path { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .order { margin: 24px auto 0; }
  .star-line { width: 120%; transform: translate(-50%, -52%) rotate(-12deg); }
  .spec, .faq { grid-template-columns: 1fr; }
  .spec .head { position: static; }
  .points { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .head p, .final p { font-size: 17px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .track { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .track i { transform: scaleY(0); transform-origin: top; }
  .steps.in .track i { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
  .step-body { margin-top: 0; padding: 4px 0 24px; }
  .step.you .step-body { padding: 22px; }
  .plans { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; }
  .spec-ic { width: 40px; height: 40px; }
  .chip { grid-column: 2; justify-self: start; margin-top: 12px; }
  .ans p { padding-right: 0; }
  .btn { height: 52px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .btn-primary { justify-content: space-between; }
  .final .star-mini { display: none; }
  .stamp { right: 10px; top: -22px; width: 56px; height: 56px; }
  .nav { inset: 12px 0 auto; padding: 0 12px; }
}
