/* GrowthViral: the one stylesheet. GrowthRouter family (ink, Space Grotesk / Inter / JetBrains Mono), kept calm.
   Lime is the primary action on a screen and a few small details. Everything else is neutral. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@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; }

:root {
  --bg: #0e0f0e; --bg-2: #121312; --surface: #151615; --surface-2: #1b1c1b;
  --line: rgb(255 255 255 / .08); --line-2: rgb(255 255 255 / .15);
  --text: #ecece6; --muted: #a8a89e; --dim: #8d8d84;
  --lime: #d5ff00; --lime-hover: #deff3d; --lime-edge: #a9cc00; --lime-ink: #141a00; --detail: #d5ff00;
  --need: #ff7b6f; --need-bg: rgb(255 107 94 / .08); --need-line: rgb(255 107 94 / .38); --ok: #c8ee1a;
  --seg-1: rgb(236 236 230 / .92); --seg-2: rgb(236 236 230 / .56); --seg-3: rgb(236 236 230 / .34); --seg-4: rgb(236 236 230 / .2); --seg-5: rgb(236 236 230 / .12);
  --header-bg: rgb(14 15 14 / .84); --shadow: 0 24px 48px -28px rgb(0 0 0 / .7);
  --display: "Space Grotesk", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --text-xs: .8125rem; --text-sm: .9063rem; --text-md: 1.0625rem; --text-lg: 1.1875rem; --text-micro: .75rem;
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  --max: 1080px; --pad: clamp(1.25rem, 4vw, 2rem); --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f6f2; --bg-2: #f1f1ec; --surface: #ffffff; --surface-2: #f3f3ee;
  --line: rgb(22 22 16 / .1); --line-2: rgb(22 22 16 / .2);
  --text: #191917; --muted: #585851; --dim: #6c6c64;
  --lime-edge: #9dbf00; --detail: #4f7300;
  --need: #b3261a; --need-bg: rgb(179 38 26 / .06); --need-line: rgb(179 38 26 / .35); --ok: #4f7300;
  --seg-1: rgb(25 25 23 / .86); --seg-2: rgb(25 25 23 / .52); --seg-3: rgb(25 25 23 / .32); --seg-4: rgb(25 25 23 / .18); --seg-5: rgb(25 25 23 / .1);
  --header-bg: rgb(246 246 242 / .88); --shadow: 0 24px 48px -30px rgb(20 20 10 / .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--detail); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--lime-ink); padding: .5rem .9rem; border-radius: var(--r); z-index: 80; }
.skip:focus { left: 8px; }
.muted { color: var(--dim); }
.nw { white-space: nowrap; }
.accent { display: block; }

/* ---------- layout ---------- */
.wrap, .frame { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.sec, .band { padding-block: clamp(3.75rem, 9vw, 7rem); }
.sec + .sec, .band + .band { border-top: 1px solid var(--line); }
.sec.is-alt { background: var(--bg-2); }
.sec-head { display: grid; gap: .9rem; max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.h2, .sec-head h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; }
.sec-head p, .sec-sub { color: var(--muted); font-size: var(--text-md); max-width: 36em; }
.center-head { display: grid; gap: .9rem; max-width: 40rem; margin-bottom: 2.5rem; }
.slash, .counter { font-size: var(--text-sm); color: var(--dim); }
.counter b { font-weight: 400; }

/* ---------- header and footer ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 1.1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 500 1.02rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--text); margin-right: auto; }
.gv-mark { width: 24px; height: 24px; flex: none; }
.gv-mark rect { fill: var(--surface-2); stroke: var(--line-2); }
.gv-mark .gv-line, .gv-mark .gv-head { fill: none; stroke: var(--detail); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 1.5rem; }
.nav a, .nav-signin { font-size: var(--text-sm); color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover, .nav-signin:hover, .nav a[aria-current="page"] { color: var(--text); }
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.theme-btn:hover { color: var(--text); background: var(--surface-2); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .i-sun, :root[data-theme="light"] .theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .top .nav-signin { display: none; } }
.foot { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem 3rem; }
.foot-col { display: grid; gap: .7rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; }
.fam { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.fam .on { color: var(--text); }
.foot-theme { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: var(--text-sm); }
.foot-theme:hover { color: var(--text); }

/* ---------- buttons, links, small pieces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem; border-radius: var(--r); border: 1px solid var(--lime-edge); background: var(--lime); color: var(--lime-ink); font: 600 var(--text-sm)/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--lime-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); font-weight: 500; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: .4rem .85rem; font-size: var(--text-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"], .btn.is-off { opacity: .55; cursor: default; pointer-events: none; }
.btn-quiet, .link, .note a, .doc a, .faq a, .form-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.btn-quiet:hover, .link:hover, .note a:hover, .doc a:hover, .faq a:hover, .form-note a:hover { text-decoration-color: var(--text); }
.btn-quiet { background: none; border: 0; padding: 0; font: 500 var(--text-sm)/1.4 var(--body); cursor: pointer; }
.btn-danger { background: transparent; color: var(--need); border-color: var(--need-line); }
.btn-danger:hover { background: var(--need-bg); }
.acts { display: flex; flex-wrap: wrap; gap: .6rem .9rem; align-items: center; }
.note, .form-note { font-size: var(--text-xs); color: var(--dim); }
.form-note.is-ok { color: var(--text); }
.err { font-size: var(--text-sm); color: var(--need); }
.lbl { font-size: var(--text-xs); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: .35rem; font: 400 var(--text-micro)/1 var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: .32rem .6rem; white-space: nowrap; }
.tag.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.tag.is-need { color: var(--need); border-color: var(--need-line); background: var(--need-bg); }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line-2); border-top-color: var(--text); display: inline-block; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field > span, .field > label { font-size: var(--text-xs); color: var(--muted); }
.inp, .ta, .sel, .hero-try-input { width: 100%; min-width: 0; font: 400 16px/1.45 var(--body); color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: .68rem .85rem; transition: border-color .15s, box-shadow .15s; }
.ta { resize: vertical; min-height: 5.5rem; }
.inp:focus, .ta:focus, .sel:focus, .hero-try-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--line); }
.inp::placeholder, .ta::placeholder, .hero-try-input::placeholder { color: var(--dim); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.rows { display: grid; gap: .6rem; }
.num-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: .5rem; }
@media (max-width: 560px) { .num-row { grid-template-columns: minmax(0, 1fr) auto; } .num-row [data-num-label] { grid-column: 1 / -1; } }
.x-btn { width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.x-btn:hover { color: var(--text); border-color: var(--line-2); }
.switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-size: var(--text-sm); }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background-color .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background-color .15s; }
.switch input:checked { background: var(--lime); border-color: var(--lime-edge); }
.switch input:checked::after { transform: translateX(18px); background: var(--lime-ink); }
.switch input:disabled { opacity: .5; cursor: default; }
.hero-try { display: flex; gap: .5rem; max-width: 33rem; }
.hero-try .hero-try-input { flex: 1; min-height: 48px; }
.hero-try .btn { flex: none; min-height: 48px; }
@media (max-width: 520px) { .hero-try { flex-direction: column; } }
.mail-row { display: flex; gap: .5rem; }
.mail-row .inp { flex: 1; }
@media (max-width: 480px) { .mail-row { flex-direction: column; } }
.or { display: flex; align-items: center; gap: .8rem; font-size: var(--text-micro); color: var(--dim); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-box { display: grid; gap: .8rem; max-width: 26rem; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 46px; padding: 0 1.1rem; border-radius: var(--r); background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font: 600 var(--text-sm)/1 var(--body); text-decoration: none; }
.g-btn:hover { background: #f4f4f4; }
.g-btn svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-btn { font: 400 var(--text-xs)/1 var(--body); color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 99px; padding: .5rem .8rem; cursor: pointer; }
.chip-btn[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }

/* ---------- reveal on scroll (only when the script is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- landing: hero ---------- */
.hero { padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3.5rem, 9vw, 6.5rem); }
.hero-in { display: grid; gap: 1.6rem; max-width: 58rem; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; }
.hero-lede { font-size: var(--text-lg); color: var(--muted); max-width: 34em; line-height: 1.5; }
.hero-honest { font-size: var(--text-sm); color: var(--muted); }
.hero-cta { display: grid; gap: .8rem; margin-top: .4rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-in > * { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .js .hero-in > :nth-child(2) { --i: 1; } .js .hero-in > :nth-child(3) { --i: 2; } .js .hero-in > :nth-child(4) { --i: 3; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- landing: the guided setup ---------- */
.setup { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.rail { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1rem; }
.rail-title { font-size: var(--text-xs); color: var(--dim); }
.rail-list { position: relative; }
.rail ol { display: grid; gap: 0; padding-left: 1.5rem; }
.rail-list::before, .rail-fill { content: ""; position: absolute; left: 4px; top: 1rem; bottom: 1rem; width: 1px; background: var(--line-2); }
.rail-fill { bottom: auto; height: calc((100% - 2rem) * var(--done, 0)); background: var(--detail); transition: height .7s var(--ease); }
.rail li { position: relative; padding: .42rem 0; font-size: var(--text-sm); color: var(--dim); transition: color .3s; }
.rail li::before { content: ""; position: absolute; left: calc(-1.5rem + 1px); top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background-color .3s, border-color .3s; }
.sec.is-alt .rail li::before { background: var(--bg-2); }
.rail li.is-done { color: var(--muted); }
.rail li.is-done::before { background: var(--detail); border-color: var(--detail); }
.rail li.is-active { color: var(--text); }
.rail li.is-active::before { border-color: var(--text); background: var(--text); }
.rail a { color: inherit; text-decoration: none; }
@media (max-width: 900px) { .setup { grid-template-columns: 1fr; } .rail { display: none; } }

.ob { display: grid; }
.ob-step { padding: 1.6rem 0 1.7rem; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.ob-step:first-child { border-top: 0; padding-top: 0; }
.ob-head { display: flex; align-items: baseline; gap: .8rem; }
.ob-head h3 { font-size: 1.35rem; line-height: 1.2; flex: 1; min-width: 0; transition: color .3s; }
.ob-n { flex: none; width: 1.4rem; font: 400 var(--text-sm)/1 var(--mono); color: var(--dim); }
.ob-step.is-active .ob-n { color: var(--text); }
.ob-step.is-done .ob-n { color: var(--detail); }
.ob-sub, .ob-summary, .ob-why, .ob-body { margin-left: 2.2rem; }
.ob-sub { margin-top: .4rem; color: var(--muted); font-size: var(--text-sm); max-width: 40em; }
.ob-body { margin-top: 1.3rem; display: grid; gap: 1.1rem; }
.ob-why { margin-top: 1rem; font-size: var(--text-sm); color: var(--dim); max-width: 42em; padding-left: .9rem; border-left: 1px solid var(--line-2); }
.ob-step.is-locked .ob-head h3 { color: var(--dim); }
.ob-step.is-locked { padding-block: 1.05rem; }
.ob-step.is-locked .ob-body, .ob-step.is-locked .ob-sub, .ob-step.is-locked .ob-why, .ob-step.is-done:not(.is-open) .ob-body { display: none; }
.ob-step.is-active .ob-why { display: none; }
.ob-step.is-done.is-open .ob-why { display: none; }
.ob-summary { display: none; margin-top: .35rem; font-size: var(--text-sm); color: var(--muted); }
.ob-step.is-done:not(.is-open) .ob-summary { display: block; }
.ob-step.is-done:not(.is-open) .ob-sub { display: none; }
.ob-edit { display: none; }
.ob-step.is-done:not(.is-open) .ob-edit { display: inline; }
@media (prefers-reduced-motion: no-preference) { .ob-step.is-active .ob-body { animation: rise .5s var(--ease) both; } }
@media (max-width: 640px) { .ob-sub, .ob-summary, .ob-why, .ob-body { margin-left: 0; } }

.niches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 900px) { .niches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .niches { grid-template-columns: 1fr; } }
.niche { position: relative; display: flex; flex-direction: column; gap: .25rem; text-align: left; padding: .85rem 1rem .95rem; background: transparent; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; color: var(--text); transition: border-color .15s, background-color .15s; }
.niche:hover { border-color: var(--line-2); }
.niche[aria-checked="true"] { border-color: var(--text); background: var(--surface); }
.niche b { font: 500 var(--text-md)/1.25 var(--display); letter-spacing: -.01em; }
.niche span { font-size: var(--text-sm); color: var(--muted); }
.niche i { margin-top: .3rem; font-style: normal; font-size: var(--text-micro); color: var(--dim); }
.niche em { position: absolute; right: .8rem; top: .8rem; font-style: normal; font-size: var(--text-micro); color: var(--detail); }

/* ---------- source cards and "how it is built" ---------- */
.srcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
@media (max-width: 980px) { .srcs { grid-template-columns: 1fr; } }
.src { display: flex; flex-direction: column; gap: .7rem; min-width: 0; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.src-who { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.ava { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font: 500 var(--text-xs)/1 var(--display); color: var(--muted); text-transform: uppercase; }
.src-who > div { min-width: 0; }
.src-who b { display: block; font: 600 var(--text-sm)/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-who div span { display: block; font-size: var(--text-micro); line-height: 1.35; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-label { font: 500 var(--text-md)/1.35 var(--display); letter-spacing: -.01em; }
.src-nums { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font: 500 var(--text-sm)/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.src-nums b { font-weight: 500; }
.src-nums small { display: block; font: 400 var(--text-micro)/1.4 var(--body); color: var(--dim); }
.src-theirs { font-size: var(--text-micro); color: var(--dim); }
.src-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding-top: .2rem; font-size: var(--text-sm); }
.built { border-top: 1px solid var(--line); padding-top: .8rem; }
.built-k { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-micro); color: var(--dim); }
.built dl { margin: .7rem 0 0; display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .35rem .6rem; font-size: var(--text-xs); line-height: 1.45; }
.built dt { color: var(--dim); }
.built dd { color: var(--text); }
.bars, .ex-bar, .ex-card-bar { display: flex; gap: 2px; height: 8px; margin-top: .7rem; border-radius: 2px; overflow: hidden; }
.bars i, .ex-seg { display: block; height: 100%; min-width: 3px; background: var(--seg-5); transform-origin: left; }
.bars i:nth-child(1), .ex-seg:nth-child(1) { background: var(--seg-1); } .bars i:nth-child(2), .ex-seg:nth-child(2) { background: var(--seg-2); }
.bars i:nth-child(3), .ex-seg:nth-child(3) { background: var(--seg-3); } .bars i:nth-child(4), .ex-seg:nth-child(4) { background: var(--seg-4); }
@media (prefers-reduced-motion: no-preference) { .bars i { animation: bar-in .7s var(--ease) both; } .bars i:nth-child(2) { animation-delay: .07s; } .bars i:nth-child(3) { animation-delay: .14s; } .bars i:nth-child(n+4) { animation-delay: .21s; } }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: none; } }
.bars-key { margin-top: .45rem; font-size: var(--text-micro); line-height: 1.5; color: var(--dim); }

/* ---------- the X Article look ---------- */
.xa { --xa-bg: #000; --xa-text: #e7e9ea; --xa-muted: #8b9198; --xa-line: #2f3336; background: var(--xa-bg); color: var(--xa-text); border: 1px solid var(--xa-line); border-radius: var(--r-lg); overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
:root[data-theme="light"] .xa { --xa-bg: #fff; --xa-text: #0f1419; --xa-muted: #536471; --xa-line: #e6ecf0; }
.xa-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--xa-line); font-size: 13px; color: var(--xa-muted); }
.xa-bar b { color: var(--xa-text); font-weight: 700; font-size: 15px; }
.xa-in { max-width: 680px; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.75rem); }
.xa-title { font-family: inherit; font-size: clamp(1.6rem, 4.2vw, 2.125rem); line-height: 1.18; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.xa-by { display: flex; align-items: center; gap: .65rem; margin-top: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--xa-line); }
.xa-by .ava { width: 40px; height: 40px; background: #1d9bf0; color: #fff; font-size: var(--text-sm); }
.xa-by b { display: block; font-size: 15px; line-height: 1.3; font-weight: 700; }
.xa-by div span { display: block; font-size: 15px; line-height: 1.3; color: var(--xa-muted); }
.xa-body { margin-top: 1.4rem; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.xa-body > * + * { margin-top: 1.05em; }
.xa-body h1, .xa-body h2, .xa-body h3 { font-family: inherit; font-weight: 800; letter-spacing: -.005em; line-height: 1.25; margin-top: 1.7em; text-wrap: balance; }
.xa-body h2 { font-size: 1.5rem; } .xa-body h3 { font-size: 1.2rem; } .xa-body h1 { font-size: 1.7rem; }
.xa-body ul, .xa-body ol { padding-left: 1.4em; display: grid; gap: .45em; }
.xa-body ul { list-style: disc; } .xa-body ol { list-style: decimal; }
.xa-body blockquote { margin-inline: 0; padding-left: 1rem; border-left: 3px solid var(--xa-line); color: var(--xa-muted); }
.xa-body a { color: #1d9bf0; }
.xa-body strong, .xa-body b { font-weight: 700; }
mark.slot { background: var(--need-bg); color: var(--need); border: 1px solid var(--need-line); border-radius: 4px; padding: .05em .3em; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.xa mark.slot { background: rgb(244 33 46 / .14); color: #ff6b74; border-color: rgb(244 33 46 / .55); }
:root[data-theme="light"] .xa mark.slot { color: #c4111d; background: rgb(244 33 46 / .08); }
.xa-rest { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px dashed var(--xa-line); }
.xa-rest p { font-size: 13px; color: var(--xa-muted); }
.xa-rest ol { margin-top: .7rem; display: grid; gap: .55rem; counter-reset: o; }
.xa-rest li { counter-increment: o; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); font-size: 16px; font-weight: 700; color: var(--xa-muted); }
.xa-rest li::before { content: counter(o); font-weight: 400; }

/* ---------- landing: how it works (scroll-driven; the markup alone shows the end state) ---------- */
.how-pin { padding-block: clamp(3.75rem, 9vw, 7rem); }
.how-grid { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; width: 100%; }
.how-copy { display: grid; gap: 1.6rem; }
.how-copy h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; }
.how-steps { display: grid; counter-reset: h; }
.how-steps li { counter-increment: h; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0 .2rem; padding: .8rem 0; border-top: 1px solid var(--line); transition: color .4s, opacity .4s; }
.how-steps li::before { content: counter(h); font: 400 var(--text-sm)/1.7 var(--mono); color: var(--dim); }
.how-steps b { font: 500 var(--text-md)/1.4 var(--display); letter-spacing: -.01em; }
.how-steps span { grid-column: 2; font-size: var(--text-sm); color: var(--muted); }
.how-stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.how-left { display: grid; gap: .6rem; align-content: center; }
.hp { position: relative; height: 26px; transition: height .7s var(--ease), transform .8s var(--ease), opacity .5s; }
.hp-card { position: absolute; inset: 0; display: grid; align-content: center; gap: .3rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); opacity: 0; transform: scaleY(.3); transition: opacity .35s, transform .6s var(--ease); pointer-events: none; min-width: 0; }
.hp-who { display: flex; align-items: center; gap: .5rem; min-width: 0; font-size: var(--text-xs); }
.hp-who .ava { width: 22px; height: 22px; font-size: 10px; }
.hp-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-label { font-size: var(--text-xs); line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hp-num { font: 500 var(--text-xs)/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.hp-num small { font: 400 var(--text-micro)/1.3 var(--body); color: var(--dim); margin-left: .3rem; }
.hp-bar { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; display: flex; gap: 2px; border-radius: 2px; overflow: hidden; transition: opacity .5s, transform .7s var(--ease), height .5s; transform-origin: left; }
.hp-bar i { height: 100%; min-width: 3px; background: var(--seg-4); transition: background-color .6s, flex-grow .8s var(--ease); }
.hp-bar i:nth-child(1) { background: var(--seg-1); } .hp-bar i:nth-child(2) { background: var(--seg-2); } .hp-bar i:nth-child(3) { background: var(--seg-3); }
.hp:nth-child(1) { transform: translateY(calc(26px + .6rem)); } .hp:nth-child(3) { transform: translateY(calc(-26px - .6rem)); }
.hp:nth-child(1) .hp-bar, .hp:nth-child(3) .hp-bar { opacity: 0; }
.hp:nth-child(2) .hp-bar i:nth-child(1) { background: var(--detail); }
.how-outline { display: grid; gap: .1rem; margin-top: calc(-26px - .5rem); overflow: hidden; max-height: 12rem; transition: max-height .7s var(--ease), opacity .6s .15s; }
.how-outline li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .6rem; padding: .34rem 0; font-size: var(--text-xs); line-height: 1.4; border-top: 1px solid var(--line); }
.how-outline li:first-child { border-top: 0; }
.how-outline b { font-weight: 400; color: var(--dim); }
.how-theirs { font-size: var(--text-micro); color: var(--dim); margin-top: .5rem; }
.how-page { height: 25rem; }
.how-page .xa-in { padding: 1.4rem 1.4rem 1.6rem; }
.how-page .xa-title { font-size: 1.3rem; min-height: 2.4em; }
.how-page .xa-by { margin-top: .8rem; padding-bottom: .8rem; }
.how-page .xa-by .ava { width: 30px; height: 30px; }
.how-page .xa-by b, .how-page .xa-by div span { font-size: 13px; }
.how-page .xa-body { margin-top: 1rem; font-size: 14.5px; line-height: 1.6; }
.how-page mark.slot { transition: background-color .5s, color .5s, border-color .5s; }
.how-page mark.slot.is-filled { background: transparent; color: var(--xa-text); border-color: transparent; font-weight: 700; box-shadow: inset 0 -2px 0 var(--detail); border-radius: 0; padding-inline: 0; }
.how-fill-note { font-size: var(--text-micro); color: var(--dim); margin-top: .6rem; transition: opacity .5s; }
.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.how.is-live { height: calc(100svh + 230vh); }
.how.is-live .how-pin { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 1.25rem; overflow: hidden; }
.how.is-live .how-steps li { color: var(--dim); opacity: .55; }
.how.is-live .how-steps li.is-on { color: var(--text); opacity: 1; }
/* phase 0: nothing yet. 1: three posts are in. 2: each is read down to its bar. 3: one outline. 4: writing. 5: the slot is filled. */
.how[data-phase="0"] .hp, .how[data-phase="1"] .hp { height: 5.6rem; transform: none; }
.how[data-phase="0"] .hp-card, .how[data-phase="1"] .hp-card { opacity: 1; transform: none; }
.how[data-phase="0"] .hp-bar, .how[data-phase="1"] .hp-bar { opacity: 0; transform: scaleX(.5); }
.how[data-phase="0"] .hp { opacity: 0; transform: translateX(-28px); }
.how[data-phase="1"] .hp:nth-child(2) { transition-delay: .12s; } .how[data-phase="1"] .hp:nth-child(3) { transition-delay: .24s; }
.how[data-phase="2"] .hp { transform: none; }
.how[data-phase="2"] .hp .hp-bar { opacity: 1; }
.how[data-phase="2"] .hp:nth-child(2) .hp-bar i:nth-child(1) { background: var(--seg-1); }
.how[data-phase="0"] .how-outline, .how[data-phase="1"] .how-outline, .how[data-phase="2"] .how-outline { max-height: 0; opacity: 0; transition-delay: 0s; }
.how[data-phase="0"] .how-theirs, .how[data-phase="3"] .how-theirs, .how[data-phase="4"] .how-theirs, .how[data-phase="5"] .how-theirs { opacity: 0; }
.how-theirs { transition: opacity .4s; }
.how.is-live:not([data-phase="5"]) .how-fill-note { opacity: 0; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 1.1rem; align-content: start; }
  .how.is-live .how-pin { align-items: flex-start; }
  .how-copy { gap: .8rem; }
  .how.is-live .how-copy h2 { font-size: 1.45rem; }
  .how.is-live .how-steps li { display: none; border-top: 0; padding: 0; min-height: 4.6rem; align-content: start; grid-template-columns: 1fr; }
  .how.is-live .how-steps li::before { content: none; }
  .how.is-live .how-steps span { grid-column: 1; }
  .how.is-live .how-fill-note { display: none; }
  .how.is-live .how-steps li.is-now { display: grid; }
  .how-stage { grid-template-columns: 1fr; gap: .9rem; }
  .how[data-phase="0"] .hp, .how[data-phase="1"] .hp { height: 3.5rem; }
  .how.is-live .hp-label { display: none; }
  .hp-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: .5rem .8rem; }
  .how-page { height: 17rem; }
  .how.is-live .how-page { height: min(15rem, calc(100svh - var(--header-h) - 28rem)); min-height: 10rem; }
  .how-page .xa-bar { display: none; }
  .how-page .xa-in { padding: 1rem 1rem 1.2rem; }
  .how-page .xa-title { font-size: 1.1rem; }
  .how-page .xa-by { display: none; }
  .how-page .xa-body { margin-top: .7rem; font-size: 13.5px; }
  .how-outline li { padding: .22rem 0; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .how-page { height: auto; } }
.how:not(.is-live) .how-page { height: auto; }

/* ---------- landing: what you get, and the checks ---------- */
.gets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .gets { grid-template-columns: 1fr; } }
.gets h3 { font: 400 var(--text-sm)/1.4 var(--body); letter-spacing: 0; color: var(--dim); margin-bottom: .6rem; }
.gets-list li { display: grid; gap: .15rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.gets-list b { font: 500 var(--text-md)/1.3 var(--display); letter-spacing: -.01em; }
.gets-list span { font-size: var(--text-sm); color: var(--muted); }
.tick-list li { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: .15rem 0; padding: .95rem 0; border-top: 1px solid var(--line); }
.tick-list svg { width: 18px; height: 18px; margin-top: .2rem; }
.tick-list svg circle { fill: none; stroke: var(--line-2); stroke-width: 1.2; transition: stroke .5s; }
.tick-list svg path { fill: none; stroke: var(--detail); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 0; }
.tick-list b { font: 500 var(--text-md)/1.3 var(--display); letter-spacing: -.01em; }
.tick-list span { grid-column: 2; font-size: var(--text-sm); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .js .tick-list li { opacity: .45; transition: opacity .5s; }
  .js .tick-list li svg path { stroke-dashoffset: 14; transition: stroke-dashoffset .5s var(--ease) .1s; }
  .js .tick-list li.is-on { opacity: 1; }
  .js .tick-list li.is-on svg path { stroke-dashoffset: 0; }
}

/* ---------- landing: proof ---------- */
.proofs { display: grid; }
.proof { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 2rem; align-items: baseline; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.proof h3 { font-size: 1.3rem; line-height: 1.2; }
.proof h3 small { font: 400 var(--text-sm)/1.4 var(--body); letter-spacing: 0; color: var(--dim); margin-left: .5rem; }
.proof-label { grid-column: 1; color: var(--muted); font-size: var(--text-sm); }
.proof-num { grid-column: 2; grid-row: 1 / span 2; text-align: right; font: 500 1.7rem/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.proof-num small { display: block; margin-top: .3rem; font: 400 var(--text-micro)/1.4 var(--body); letter-spacing: 0; color: var(--dim); }
.proof-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: var(--text-xs); color: var(--dim); margin-top: .3rem; }
.proof-foot .link { font-size: var(--text-sm); }
@media (max-width: 640px) { .proof { grid-template-columns: 1fr; } .proof-num { grid-column: 1; grid-row: auto; text-align: left; margin-top: .4rem; } }
.proof-more { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: baseline; font-size: var(--text-sm); color: var(--dim); }
.proof-more .link { font-size: var(--text-md); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tier { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-left: 1px solid var(--line); min-width: 0; }
.tier:first-child { border-left: 0; }
.tier h3 { font: 500 var(--text-md)/1.3 var(--display); letter-spacing: -.01em; }
.price { display: flex; align-items: baseline; gap: .45rem; }
.price b { font: 500 2.6rem/1 var(--display); letter-spacing: -.04em; }
.price span { font-size: var(--text-sm); color: var(--muted); }
.tier ul { display: grid; gap: .45rem; font-size: var(--text-sm); color: var(--muted); flex: 1; }
.tier ul li { padding-left: 1rem; position: relative; }
.tier ul li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tier { border-left: 0; border-top: 1px solid var(--line); } .tier:first-child { border-top: 0; } }
.tiers-note { margin-top: 1.2rem; font-size: var(--text-sm); color: var(--muted); }
.tiers-note b { font-weight: 500; color: var(--text); }
.costs { display: grid; margin-top: clamp(2.5rem, 6vw, 4rem); }
.costs li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; gap: .2rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); font-size: var(--text-sm); align-items: baseline; }
.costs b { font: 500 var(--text-md)/1.3 var(--display); }
.costs span { color: var(--muted); }
.costs strong { font: 500 var(--text-sm)/1.3 var(--mono); }
@media (max-width: 700px) { .costs li { grid-template-columns: minmax(0, 1fr) auto; } .costs span { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- questions ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; cursor: pointer; list-style: none; font: 500 var(--text-md)/1.35 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-top: .35rem; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 2rem 1.2rem 0; color: var(--muted); font-size: var(--text-sm); max-width: 44em; }

/* ---------- final call, and the slim step bar ---------- */
.final-in { display: grid; gap: 1.5rem; max-width: 40rem; }
.final h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.05; letter-spacing: -.035em; }
.stepbar { position: fixed; left: 50%; bottom: 1rem; z-index: 45; width: min(34rem, calc(100vw - 1.5rem)); transform: translate(-50%, 140%); opacity: 0; display: flex; align-items: center; gap: .9rem; padding: .5rem .5rem .5rem 1rem; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); transition: transform .45s var(--ease), opacity .3s; overflow: hidden; }
.stepbar.is-on { transform: translate(-50%, 0); opacity: 1; }
.stepbar-text { flex: 1; min-width: 0; display: grid; font-size: var(--text-sm); line-height: 1.3; }
.stepbar-text small { font-size: var(--text-micro); color: var(--dim); }
.stepbar-text b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepbar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(100% * var(--done, 0)); background: var(--detail); transition: width .7s var(--ease); }
@media (prefers-reduced-motion: reduce) { .stepbar { transition: none; } }
body.has-stepbar .toasts { bottom: 5.5rem; }

/* ---------- pages made on the server: examples, niches, guides ---------- */
.ex-head { display: grid; gap: 1rem; max-width: 44rem; }
.ex-head h1, .doc h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.06; letter-spacing: -.035em; }
.ex-intro { font-size: var(--text-lg); line-height: 1.5; color: var(--muted); }
.ex-crumb { font-size: var(--text-sm); color: var(--dim); }
.ex-crumb a { color: var(--muted); text-decoration: none; }
.ex-crumb a:hover { color: var(--text); }
.ex-by { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; font-size: var(--text-sm); color: var(--muted); }
.ex-by b { color: var(--text); font-weight: 600; }
.ex-nums { display: flex; flex-wrap: wrap; gap: .8rem 2.5rem; margin-top: .4rem; }
.ex-nums div { display: grid; }
.ex-nums b { font: 500 1.7rem/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ex-nums span { font-size: var(--text-xs); color: var(--dim); }
.ex-theirs { font-size: var(--text-xs); color: var(--dim); }
.ex-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (max-width: 860px) { .ex-main { grid-template-columns: 1fr; } }
.ex-block { display: grid; gap: .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ex-block + .ex-block { margin-top: 2.2rem; }
.ex-block h2 { font-size: 1.35rem; line-height: 1.2; }
.ex-block > p { color: var(--muted); max-width: 40em; }
.ex-bar { height: 12px; margin-top: .2rem; }
.ex-seg { flex: none; }
.ex-rows { display: grid; }
.ex-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.ex-row:first-child { border-top: 0; }
.ex-row dt { color: var(--dim); }
.ex-list { display: grid; gap: .6rem; counter-reset: e; }
.ex-list li { counter-increment: e; display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); color: var(--text); }
.ex-list li::before { content: counter(e); font: 400 var(--text-sm)/1.75 var(--mono); color: var(--dim); }
.ex-side { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 860px) { .ex-side { position: static; } }
.ex-links { display: grid; gap: .5rem; font-size: var(--text-sm); }
.ex-links a { color: var(--muted); text-decoration: none; }
.ex-links a:hover { color: var(--text); }
.ex-side h2 { font: 400 var(--text-sm)/1.4 var(--body); letter-spacing: 0; color: var(--dim); }
.ex-call { margin-top: clamp(3rem, 7vw, 5rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); display: grid; gap: 1.1rem; max-width: 38rem; }
.ex-call h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; }
.ex-call p { color: var(--muted); }
.ex-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: .7rem; margin-top: clamp(2rem, 5vw, 3rem); }
.ex-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .15s; min-width: 0; }
.ex-card:hover { border-color: var(--line-2); }
.ex-card-title { font: 500 var(--text-md)/1.35 var(--display); letter-spacing: -.01em; }
.ex-card-meta { font-size: var(--text-xs); color: var(--dim); }
.ex-card-bar { margin-top: auto; }
.ex-card-bar .ex-seg, .ex-card-bar > * { display: block; height: 100%; min-width: 3px; }
.ex-niches { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.ex-niches a { font-size: var(--text-sm); color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: .4rem .8rem; }
.ex-niches a:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- long text pages (privacy, terms, guides) ---------- */
.doc { max-width: 44rem; display: grid; gap: 1rem; }
.doc h2 { font-size: 1.35rem; line-height: 1.2; margin-top: 1.6rem; scroll-margin-top: 84px; }
.doc h3 { font-size: var(--text-md); margin-top: .8rem; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .45rem; }
.doc ol { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .45rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: .6rem .9rem .6rem 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.doc th { color: var(--text); font-weight: 500; border-top: 0; }
.doc-date { font-size: var(--text-sm); color: var(--dim); }

/* ---------- small centred pages (sign in, connect, 404) ---------- */
.solo { min-height: calc(100vh - var(--header-h) - 110px); display: grid; place-items: center; padding: clamp(2.5rem, 7vw, 5rem) var(--pad); }
.solo-card { width: 100%; max-width: 25rem; display: grid; gap: 1.1rem; }
.solo-card h1 { font-size: 1.8rem; letter-spacing: -.03em; line-height: 1.12; }
.solo-card p { color: var(--muted); font-size: var(--text-sm); }
.code-big { font: 500 1.8rem/1 var(--mono); letter-spacing: .12em; text-align: center; padding: 1.1rem; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); overflow-wrap: anywhere; }

/* ---------- app shell ---------- */
.app-top { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-top-in { display: flex; align-items: center; gap: .8rem; height: 56px; padding-inline: var(--pad); max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; }
.app-top-in .sp { margin-left: auto; }
.app-top-in .brand { margin-right: 0; }
.credit-chip { font-size: var(--text-xs); color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: .4rem .75rem; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.credit-chip:hover { color: var(--text); }
.app-nav-in { display: flex; gap: .2rem; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding: 0 calc(var(--pad) - .7rem); overflow-x: auto; scrollbar-width: none; }
.app-nav-in::-webkit-scrollbar { display: none; }
.app-nav a { flex: none; padding: .7rem .7rem .8rem; font-size: var(--text-sm); color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.app-nav a:hover { color: var(--text); }
.app-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }
.app-main { max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding: clamp(1.75rem, 4vw, 2.75rem) var(--pad) 5rem; display: grid; gap: 1.5rem; }
.app-main > * { min-width: 0; }
.app-stack { display: grid; gap: 1.1rem; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; flex-wrap: wrap; }
.page-h h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; }
.page-h p { margin-top: .4rem; color: var(--muted); font-size: var(--text-sm); max-width: 38em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.1rem, 2.6vw, 1.5rem); display: grid; gap: 1rem; min-width: 0; }
.panel > h2 { font-size: var(--text-lg); letter-spacing: -.02em; }
.panel > h2 + p, .panel-sub { color: var(--muted); font-size: var(--text-sm); margin-top: -.6rem; }
.panel .src, .panel .copy-item, .panel .pack { background: transparent; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.1rem; align-items: start; }
.cols > * { min-width: 0; display: grid; gap: 1.1rem; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.cols > .sticky-acts { position: sticky; top: 118px; }
@media (max-width: 1000px) { .cols > .sticky-acts { position: static; order: -1; } }
.need { border: 1px solid var(--need-line); background: var(--need-bg); border-radius: var(--r); padding: 1rem 1.1rem; display: grid; gap: .5rem; }
.need h2 { font: 500 var(--text-md)/1.3 var(--display); letter-spacing: -.01em; color: var(--need); }
.need ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: var(--text-sm); color: var(--text); }
.need p { font-size: var(--text-sm); color: var(--muted); }
.art-title { font: 500 clamp(1.3rem, 2.6vw, 1.7rem)/1.2 var(--display); letter-spacing: -.025em; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.prog { display: grid; gap: .1rem; }
.prog li { position: relative; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .4rem; padding: .45rem 0; font-size: var(--text-sm); color: var(--dim); transition: color .3s; }
.prog li::before { content: ""; width: 9px; height: 9px; margin-top: .42rem; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .3s, border-color .3s; }
.prog li.is-done { color: var(--muted); } .prog li.is-done::before { background: var(--detail); border-color: var(--detail); }
.prog li.is-now { color: var(--text); } .prog li.is-now::before { border-color: var(--text); background: var(--text); }
@media (prefers-reduced-motion: no-preference) { .prog li.is-now::before { animation: pulse 1.6s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .35; } }
.list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.list > li, .list > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: center; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background-color .15s; }
.list > :last-child { border-bottom: 0; }
.list > a:hover { background: var(--surface-2); }
.list b { font: 500 var(--text-md)/1.35 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.list small { display: block; margin-top: .2rem; font-size: var(--text-micro); line-height: 1.4; color: var(--dim); }
.empty { padding: 2rem 1.25rem; text-align: center; color: var(--muted); font-size: var(--text-sm); border: 1px dashed var(--line-2); border-radius: var(--r-lg); display: grid; gap: .8rem; justify-items: center; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; font-size: var(--text-sm); }
.kv dt { color: var(--muted); } .kv dd { font: 500 var(--text-sm)/1.6 var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.panel > h2 + p.big-num, .big-num { margin-top: 0; color: var(--text); font: 500 2.8rem/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.big-num small { font: 400 var(--text-sm)/1 var(--body); letter-spacing: 0; color: var(--muted); margin-left: .4rem; }
.checks-l { display: grid; gap: .6rem; }
.checks-l li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .4rem; font-size: var(--text-sm); }
.checks-l li::before { content: ""; width: 7px; height: 7px; margin-top: .5rem; border-radius: 50%; background: var(--ok); }
.checks-l li.is-bad::before { background: var(--need); }
.checks-l b { font-weight: 600; }
.checks-l span { display: block; color: var(--muted); font-size: var(--text-xs); margin-top: .1rem; overflow-wrap: anywhere; }
.copy-item { display: grid; gap: .55rem; padding: .85rem 0 0; border-top: 1px solid var(--line); }
.copy-item p { font-size: var(--text-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-item-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.copy-item-top span { font-size: var(--text-xs); color: var(--dim); }
.steps-how { counter-reset: s; display: grid; gap: .5rem; font-size: var(--text-sm); color: var(--muted); }
.steps-how li { counter-increment: s; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); }
.steps-how li::before { content: counter(s); font: 400 var(--text-xs)/1.9 var(--mono); color: var(--dim); }
.credit-l { display: grid; gap: .8rem; font-size: var(--text-sm); }
.credit-l li { display: grid; gap: .15rem; }
.credit-l small { font-size: var(--text-micro); line-height: 1.4; color: var(--dim); }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); }
.pack { display: flex; flex-direction: column; gap: .7rem; padding: 1.2rem; border-left: 1px solid var(--line); min-width: 0; }
.pack:first-child { border-left: 0; }
.pack h3 { font: 500 var(--text-md)/1.3 var(--display); letter-spacing: -.01em; }
.pack .price b { font-size: 2.2rem; }
.pack > p:not(.price) { font-size: var(--text-sm); color: var(--muted); flex: 1; }
@media (max-width: 560px) { .packs { grid-template-columns: 1fr; } .pack { border-left: 0; border-top: 1px solid var(--line); } .pack:first-child { border-top: 0; } }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 60; display: grid; gap: .5rem; width: min(26rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; padding: .75rem 1rem; border-radius: var(--r); background: #0b0b0b; color: #f1f1ec; border: 1px solid #343431; font-size: var(--text-sm); box-shadow: var(--shadow); animation: rise .3s var(--ease) both; }
.toast.is-err { border-color: var(--need-line); }
