/* ==========================================================================
   RECODE — recode.ma
   Design system. Hand-written, zero dependencies, zero network requests.
   The site itself is the performance proof, so nothing loads from a CDN.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --paper:      #FBFAF8;
  --surface:    #FFFFFF;
  --surface-2:  #F4F2EE;
  --surface-3:  #EDEAE4;
  --ink:        #0F1114;
  --ink-2:      #3A3F46;
  --muted:      #6B7280;
  --line:       #E4E0D9;
  --line-2:     #D3CEC4;
  --accent:     #DC3F16;
  --accent-ink: #FFFFFF;
  --accent-soft:#FCEAE3;
  --ok:         #15724A;
  --ok-soft:    #E6F4ED;
  --warn:       #9A5B06;
  --bad:        #AE2A1C;
  --bad-soft:   #FBEBE8;

  --r-xs: 6px;  --r-s: 10px; --r: 14px; --r-l: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(16,18,20,.05), 0 1px 1px rgba(16,18,20,.04);
  --sh-2: 0 4px 16px rgba(16,18,20,.07), 0 1px 3px rgba(16,18,20,.05);
  --sh-3: 0 18px 48px rgba(16,18,20,.12), 0 2px 8px rgba(16,18,20,.06);

  --max: 1180px;
  --nav-h: 66px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0A0B0D;
    --surface:    #111317;
    --surface-2:  #171A1F;
    --surface-3:  #1E2228;
    --ink:        #EDEEF0;
    --ink-2:      #C3C7CD;
    --muted:      #878E97;
    --line:       #22262D;
    --line-2:     #2E333B;
    --accent:     #FF6B3D;
    --accent-ink: #14100E;
    --accent-soft:#2A1511;
    --ok:         #3DD68C;
    --ok-soft:    #10251C;
    --warn:       #E0A335;
    --bad:        #FF7A6B;
    --bad-soft:   #2A1413;
    --sh-1: 0 1px 2px rgba(0,0,0,.4);
    --sh-2: 0 4px 18px rgba(0,0,0,.45);
    --sh-3: 0 20px 56px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:#0A0B0D; --surface:#111317; --surface-2:#171A1F; --surface-3:#1E2228;
  --ink:#EDEEF0; --ink-2:#C3C7CD; --muted:#878E97; --line:#22262D; --line-2:#2E333B;
  --accent:#FF6B3D; --accent-ink:#14100E; --accent-soft:#2A1511;
  --ok:#3DD68C; --ok-soft:#10251C; --warn:#E0A335; --bad:#FF7A6B; --bad-soft:#2A1413;
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 4px 18px rgba(0,0,0,.45);
  --sh-3: 0 20px 56px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::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(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1,h2,h3,h4 { margin: 0; line-height: 1.1; letter-spacing: -.022em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* --- 3. Layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section--tight { padding: clamp(44px, 5vw, 70px) 0; }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.center .section__head { margin-inline: auto; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* --- 4. Type ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent); flex: none;
}
.h-xl { font-size: clamp(34px, 6.2vw, 62px); letter-spacing: -.034em; }
.h-l  { font-size: clamp(27px, 3.9vw, 42px); letter-spacing: -.028em; }
.h-m  { font-size: clamp(20px, 2.3vw, 26px); }
.h-s  { font-size: 17px; letter-spacing: -.012em; }
.lede { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); line-height: 1.62; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; }
.small { font-size: 13.5px; }
.section__head { max-width: 680px; display: grid; gap: 14px; margin-bottom: 42px; }

/* --- 5. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 560; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background .18s, border-color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--sh-2); }
.btn--primary:hover { box-shadow: var(--sh-3); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { opacity: .9; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .ar { transition: transform .2s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }

/* --- 6. Chips & badges -------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 12.5px; color: var(--ink-2); font-family: var(--mono);
}
.chip--accent { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }

.badge-sample {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; font-weight: 700;
  background: var(--warn); color: #fff; flex: none;
}

/* --- 7. Cards ----------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 26px; box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.card__ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
  font-family: var(--mono); font-size: 15px; font-weight: 700;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* --- 8. Navigation ------------------------------------------------------ */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 70; transition: width .1s linear;
}
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.nav__in { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }
.logo { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 700; font-size: 20.5px; letter-spacing: -.035em; flex: none; }
.logo b { color: var(--accent); font-weight: 700; }
.logo .tld { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 1px; }
.nav__links { display: flex; gap: 2px; margin-left: 12px; }
.nav__links a {
  padding: 8px 13px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--surface-2); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 560; background: var(--surface-2); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.nav__burger { display: none; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__end .btn { display: none; }
}

.drawer {
  position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto 1fr;
  background: var(--paper); transform: translateY(-100%);
  transition: transform .34s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; align-items: center; height: var(--nav-h); border-bottom: 1px solid var(--line); }
.drawer__top .wrap { display: flex; align-items: center; width: 100%; }
.drawer__links { padding: 10px 22px 30px; display: grid; gap: 2px; align-content: start; overflow-y: auto; }
.drawer__links a {
  padding: 15px 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em;
  border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
}
.drawer__links a span { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.drawer__cta { padding: 20px 22px 34px; }

/* --- 9. Hero ------------------------------------------------------------ */
.hero { position: relative; padding: clamp(50px, 7vw, 86px) 0 clamp(54px, 7vw, 92px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 85%;
  background:
    radial-gradient(60% 70% at 22% 40%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(50% 60% at 82% 20%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 72%);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 32%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 32%, #000 0%, transparent 78%);
  opacity: .5;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__title strong { color: var(--accent); font-weight: 650; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }

/* Terminal / score panel */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--sh-3); overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.panel__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.panel__bar b { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.panel__body { padding: 20px; }
.term { font-family: var(--mono); font-size: 12.6px; line-height: 1.85; color: var(--ink-2); }
.term .c { color: var(--muted); }
.term .k { color: var(--accent); }
.term .g { color: var(--ok); }
.term .s { color: var(--ink); }

.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.score { text-align: center; }
.score b { display: block; font-size: 21px; font-weight: 700; color: var(--ok); letter-spacing: -.02em; }
.score span { font-family: var(--mono); font-size: 9.6px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* --- 10. Stats ---------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); padding: 26px 22px; }
.stat b { display: block; font-size: clamp(27px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.stat > span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* --- 11. Comparison tables ---------------------------------------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); -webkit-overflow-scrolling: touch; }
table.ct { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
table.ct th, table.ct td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ct thead th {
  position: sticky; top: 0; background: var(--surface-2); font-size: 12px; font-family: var(--mono);
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; z-index: 1;
}
table.ct thead th.us { color: var(--accent); }
table.ct tbody tr:last-child td { border-bottom: 0; }
table.ct tbody td:first-child { font-weight: 560; color: var(--ink); }
table.ct col.us, table.ct td.us { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
table.ct td.us { color: var(--ink); font-weight: 520; }
.yes, .no, .mid { display: inline-flex; align-items: center; gap: 7px; }
.yes::before { content: "✓"; color: var(--ok); font-weight: 800; }
.no::before  { content: "✕"; color: var(--bad); font-weight: 800; }
.mid::before { content: "~"; color: var(--warn); font-weight: 800; }

/* --- 12. Pricing -------------------------------------------------------- */
.tabs { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; gap: 3px; }
.tab {
  padding: 9px 20px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  font-size: 14.5px; font-weight: 540; color: var(--muted); transition: background .18s, color .18s;
}
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.tabpanel[hidden] { display: none; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; display: grid; gap: 18px; }
.plan--best { border-color: var(--accent); box-shadow: var(--sh-3); }
.plan__flag {
  position: absolute; top: -11px; left: 26px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; font-weight: 700;
}
.plan__name { font-size: 17px; font-weight: 640; }
.plan__for { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.plan__price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.plan__price b { font-size: 33px; font-weight: 700; letter-spacing: -.035em; }
.plan__price i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.plan__from { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feat { display: grid; gap: 10px; font-size: 14.3px; color: var(--ink-2); }
.feat li { display: flex; gap: 10px; align-items: flex-start; }
.feat li::before { content: "✓"; color: var(--ok); font-weight: 800; flex: none; line-height: 1.5; }
.feat li.x { color: var(--muted); }
.feat li.x::before { content: "–"; color: var(--line-2); }

/* --- 13. Steps / process ------------------------------------------------ */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.step { background: var(--surface); padding: 26px; display: grid; grid-template-columns: 54px 1fr auto; gap: 20px; align-items: start; }
@media (max-width: 720px) { .step { grid-template-columns: 44px 1fr; } .step__meta { grid-column: 2; } }
.step__n { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 9px; height: 34px; display: grid; place-items: center; }
.step__meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; padding-top: 7px; }

/* --- 14. Accordion ------------------------------------------------------ */
.acc { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--surface); }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 19px 22px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-size: 16px; font-weight: 560; letter-spacing: -.012em; transition: background .15s;
}
.acc__btn:hover { background: var(--surface-2); }
.acc__btn i { font-style: normal; font-size: 21px; color: var(--accent); line-height: 1; transition: transform .22s var(--ease); flex: none; }
.acc__btn[aria-expanded="true"] i { transform: rotate(45deg); }
.acc__panel { padding: 0 22px 22px; color: var(--ink-2); font-size: 15px; max-width: 76ch; }
.acc__panel[hidden] { display: none; }

/* --- 15. Case / proof --------------------------------------------------- */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: grid; }
.case__top { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case__body { padding: 14px 24px 22px; display: grid; gap: 10px; }
.case__metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.case__metrics div { padding: 16px 18px; border-right: 1px solid var(--line); }
.case__metrics div:last-child { border-right: 0; }
.case__metrics b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.case__metrics span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; display: grid; gap: 16px; }
.quote p { font-size: 16.5px; letter-spacing: -.012em; color: var(--ink); line-height: 1.55; }
.quote__who { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.quote__av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }

/* --- 16. CTA band + footer ---------------------------------------------- */
.band { background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: clamp(34px, 5vw, 58px); display: grid; gap: 22px; justify-items: start; position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; inset: auto -10% -60% 40%; height: 150%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
  pointer-events: none;
}
.band > * { position: relative; z-index: 1; }
.band .lede { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.band .btn--ghost { border-color: color-mix(in srgb, var(--paper) 28%, transparent); color: var(--paper); }
.band .btn--ghost:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); }

.foot { border-top: 1px solid var(--line); background: var(--surface-2); padding: 54px 0 34px; margin-top: 0; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.foot ul { display: grid; gap: 9px; font-size: 14.3px; }
.foot ul a { color: var(--ink-2); }
.foot ul a:hover { color: var(--accent); }
.foot__btm { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cities { display: flex; flex-wrap: wrap; gap: 7px; }
.cities span { font-size: 12.3px; color: var(--muted); padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

/* --- 17. Forms ---------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 560; }
.field > label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-s);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--bad); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span {
  display: block; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-s);
  font-size: 14.3px; cursor: pointer; background: var(--surface); transition: all .15s;
}
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 560; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- 18. Misc ----------------------------------------------------------- */
.note {
  display: flex; gap: 13px; padding: 16px 18px; border-radius: var(--r);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 14.3px; color: var(--ink-2);
}
.note b { color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 13px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.3px; color: var(--ink-2); }
.ticks li b { color: var(--ink); font-weight: 580; }
.ticks li::before { content: "→"; color: var(--accent); font-weight: 700; flex: none; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags span { font-family: var(--mono); font-size: 12.5px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); }

/* --- 19. Reveal animation ----------------------------------------------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* --- 20. Sticky mobile CTA ---------------------------------------------- */
.mcta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: none;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 9px 9px 9px 20px;
  align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--sh-3);
  transform: translateY(140%); transition: transform .3s var(--ease);
}
.mcta.in { transform: none; }
.mcta b { font-size: 14px; }
.mcta .btn { padding: 10px 16px; font-size: 14px; }
@media (max-width: 760px) { .mcta { display: flex; } }

/* --- 21. Pre-final review panel (remove before launch) ------------------- */
.devtag {
  position: fixed; right: 14px; bottom: 14px; z-index: 90; cursor: pointer;
  background: var(--warn); color: #fff; border: 0; border-radius: 999px; padding: 9px 15px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; box-shadow: var(--sh-3);
}
@media (max-width: 760px) { .devtag { bottom: 74px; } }
.devpanel {
  position: fixed; right: 14px; bottom: 60px; z-index: 91; width: min(400px, calc(100vw - 28px));
  max-height: min(70vh, 560px); overflow-y: auto; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--sh-3); padding: 20px;
}
@media (max-width: 760px) { .devpanel { bottom: 120px; } }
.devpanel[hidden] { display: none; }
.devpanel h4 { font-size: 15px; margin-bottom: 4px; }
.devpanel ul { display: grid; gap: 9px; margin-top: 14px; font-size: 13.4px; color: var(--ink-2); }
.devpanel li { display: flex; gap: 9px; }
.devpanel li::before { content: "▢"; color: var(--warn); flex: none; }
.devpanel code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* --- 22. Small-screen refinements --------------------------------------- */
@media (max-width: 560px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .band .row { width: 100%; }
  .band .row .btn { width: 100%; }
  .section__head { margin-bottom: 30px; }
}

/* --- 23. Language switch ------------------------------------------------ */
.langswitch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 11px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-2); transition: background .15s, border-color .15s, color .15s;
}
.langswitch:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }

/* --- 24. PageSpeed proof ------------------------------------------------ */
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 520px) { .gauges { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.gauge { text-align: center; }
.gauge__ring { position: relative; width: 86px; height: 86px; margin-inline: auto; }
.gauge__ring svg { position: absolute; inset: 0; width: 86px; height: 86px; transform: rotate(-90deg); }
.gauge__ring circle { fill: none; stroke-width: 7; }
.gauge__ring .g-bg { stroke: color-mix(in srgb, var(--ok) 20%, transparent); }
.gauge__ring .g-fg {
  stroke: var(--ok); stroke-linecap: round;
  stroke-dasharray: calc(var(--v) * 3.2673) 400;
  transition: stroke-dasharray 1.2s var(--ease);
}
.gauge__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--ok); letter-spacing: -.03em; }
.gauge > span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .gauge__ring .g-fg { transition: none; } }

.shotframe {
  border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2);
  min-height: 190px; display: grid; place-items: center; text-align: center; padding: 26px; gap: 10px;
}
.shotframe img { border-radius: var(--r-s); border: 1px solid var(--line); }

/* --- 25. Two-path chooser ----------------------------------------------- */
.pathpick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .pathpick { grid-template-columns: 1fr; } }
.pathcard {
  display: flex; gap: 16px; align-items: flex-start; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 22px; font: inherit; color: inherit;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease), background .18s;
}
.pathcard:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-2); }
.pathcard[aria-selected="true"] {
  border-color: var(--accent); box-shadow: var(--sh-3);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.pathcard__ico {
  width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
  transition: background .18s, color .18s, border-color .18s;
}
.pathcard[aria-selected="true"] .pathcard__ico { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pathcard__body { display: grid; gap: 6px; }
.pathcard__body strong { font-size: 17px; font-weight: 640; letter-spacing: -.015em; }
.pathcard__body em { font-style: normal; font-size: 14.3px; color: var(--ink-2); line-height: 1.5; }
.pathcard__out { font-family: var(--mono); font-size: 11.8px; color: var(--muted); margin-top: 4px; }
.pathcard[aria-selected="true"] .pathcard__out { color: var(--accent); }

/* --- 26. Honeypot (must stay in the DOM, invisible to people) ------------ */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- 27. Form result states --------------------------------------------- */
.formdone { display: grid; gap: 14px; justify-items: start; padding: 4px 0; }
.formdone__ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); font-size: 20px; font-weight: 700;
}
.btn[aria-busy="true"] { opacity: .72; pointer-events: none; }
