/* ==========================================================================
   Unsub Development Studios — unsub.dev
   Dark technical. Two accents with a job:
     acid   = what you gain / what you own
     flare  = what gets cancelled
   ========================================================================== */

:root {
  --ink:      #08090B;
  --ink-2:    #0C0E11;
  --ink-3:    #111418;
  --ink-4:    #171B20;
  --line:     #23272C;
  --line-2:   #31373E;

  --fg:       #E9E6DF;
  --fg-dim:   #A2A8AE;
  --fg-mute:  #8A939E;

  --acid:     #CBF551;
  --acid-2:   #A8CE3C;
  --flare:    #FF4A22;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --sect: clamp(72px, 11vw, 140px);

  --ease: cubic-bezier(.2, .7, .2, 1);

  /* flavor-swappable derived tokens */
  --display: var(--sans);
  --acid-rgb: 203,245,81;
  --flare-rgb: 255,74,34;
  --acid-hover: #D6FF64;
  --err-fg: #FFB9A6;
  --grid-line: rgba(255,255,255,.045);
  --grain-o: .5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.032em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 700; color: var(--fg); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); }
.flare { color: var(--flare); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--acid); color: var(--ink); padding: 12px 18px;
  font-family: var(--mono); font-size: 12px; text-decoration: none;
}
.skip:focus { left: 0; }

:where(a, button, input, select, textarea, label.check, label.radio):focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- film grain ---------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 9; pointer-events: none;
  opacity: var(--grain-o); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

/* --- shared type --------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 22px;
}

.h2 {
  font-size: clamp(34px, 5.4vw, 60px);
  margin-bottom: .55em;
  text-wrap: balance;
}
.h2--big { font-size: clamp(40px, 7.2vw, 84px); }
.h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--acid); }

.lede {
  font-size: clamp(17px, 1.75vw, 21px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 58ch;
}
.lede--center { margin-inline: auto; text-align: center; }

.cite {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  vertical-align: super; margin-left: 2px;
  color: var(--acid); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.cite:hover { border-bottom-color: var(--acid); }

.section { padding-block: var(--sect); position: relative; }
/* The topbar is sticky, so #anchor jumps would tuck a section's heading
   underneath it without this. */
section[id], footer[id] { scroll-margin-top: 90px; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 17px 26px; border: 1px solid var(--line-2); border-radius: 0;
  background: var(--btn-bg); color: var(--fg);
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--sm { padding: 11px 16px; font-size: 10.5px; }
.btn--lg { padding: 21px 34px; font-size: 13px; }
/* nowrap exists for the topbar CTA; a long submit label (the 'Merica flavor's
   "Freedom Audit") must be allowed to wrap on phones or it widens the page. */
@media (max-width: 600px) { .btn--lg { white-space: normal; } }

/* Martian Mono is wide — the full topbar label wraps to two lines on a phone
   and shoves the brand off. Swap in a short label instead of dropping the CTA. */
.btn__short { display: inline; }
.btn__full { display: none; }
@media (min-width: 560px) {
  .btn__short { display: none; }
  .btn__full { display: inline; }
}

.btn--primary {
  background: var(--acid); border-color: var(--acid); color: var(--ink);
  font-weight: 600;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px -12px rgba(var(--acid-rgb),.65);
  background: var(--acid-hover); border-color: var(--acid-hover);
}
.btn--ghost:hover {
  border-color: var(--acid); color: var(--acid); transform: translateY(-2px);
}
.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: none; }

/* --- topbar -------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--gut);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--ink) 92%, transparent); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 26px; height: 26px; flex: none; color: var(--acid); }
.mark__strike { stroke: var(--flare); fill: none; }
.brand__name {
  font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: -.02em;
}
.brand__tld { color: var(--fg-mute); }

.topbar__status {
  display: none; align-items: center; gap: 9px; margin: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-mute);
}
@media (min-width: 1200px) { .topbar__status { display: flex; } }

.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(var(--acid-rgb),.6); animation: pulse 2.6s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--acid-rgb),.5); }
  70%  { box-shadow: 0 0 0 8px rgba(var(--acid-rgb),0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--acid-rgb),0); }
}

/* --- hero ---------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(70px, 12vw, 130px) clamp(60px, 9vw, 110px); overflow: hidden; }

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 20% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 0%, transparent 72%);
}
.hero__glow {
  position: absolute; top: -34vh; left: 42%; width: 96vw; height: 96vh;
  background: radial-gradient(circle at 30% 42%, rgba(var(--acid-rgb),.12), transparent 58%),
              radial-gradient(circle at 68% 30%, rgba(var(--flare-rgb),.09), transparent 55%);
  filter: blur(30px); pointer-events: none;
}
.hero__inner { position: relative; }

.hero__h1 {
  font-size: clamp(38px, 7.4vw, 92px);
  font-weight: 800;
  letter-spacing: -.04em;
  max-width: 17ch;
  margin-bottom: 30px;
  text-wrap: balance;
}

/* Struck word by word. Each word is its own inline-block so the rule always
   sits on the word's own line — a single bar across the phrase would float
   between lines as soon as the headline wraps. .strike stays inline so the
   trailing period doesn't get orphaned onto a line of its own. */
.strike { color: var(--fg-mute); }
.sw { position: relative; display: inline-block; }
.sw::after {
  content: ""; position: absolute; left: -.04em; right: -.04em;
  top: 54%; height: max(3px, .055em);
  background: var(--flare);
  transform: scaleX(0); transform-origin: left center;
  animation: strikeIn .42s var(--ease) forwards;
  box-shadow: 0 0 18px rgba(var(--flare-rgb),.55);
}
.sw:nth-of-type(1)::after { animation-delay: 1s; }
.sw:nth-of-type(2)::after { animation-delay: 1.16s; }
.sw:nth-of-type(3)::after { animation-delay: 1.32s; }
@keyframes strikeIn { to { transform: scaleX(1); } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__facts {
  display: grid; gap: 1px; margin: clamp(52px, 8vw, 88px) 0 0;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 720px) { .hero__facts { grid-template-columns: repeat(3, 1fr); } }
.hero__facts > div { background: var(--ink); padding: 22px 24px; }
.hero__facts dt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-mute); margin-bottom: 10px;
}
.hero__facts dd {
  margin: 0; font-family: var(--mono); font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600; letter-spacing: -.02em; color: var(--fg);
}
.hero__facts > div:first-child dd { color: var(--flare); }
.hero__facts > div:last-child dd { color: var(--flare); }

/* reveal on load */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__inner > .reveal:nth-child(1) { --d: 0s; }
.hero__inner > .reveal:nth-child(2) { --d: .08s; }
.hero__inner > .reveal:nth-child(3) { --d: .16s; }
.hero__inner > .reveal:nth-child(4) { --d: .24s; }
.hero__inner > .reveal:nth-child(5) { --d: .32s; }

/* --- split / problem ----------------------------------------------------- */
.split { display: grid; gap: clamp(44px, 6vw, 76px); align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } }

/* Must exclude .eyebrow: a bare `.split__copy p` out-specifies `.eyebrow`
   and silently turns this section's label grey while every other one is acid. */
.split__copy > p:not(.eyebrow) { color: var(--fg-dim); max-width: 54ch; }
.pull {
  border-left: 2px solid var(--flare);
  padding-left: 20px; margin-top: 28px;
  font-size: 1.06em;
}

/* --- receipt ------------------------------------------------------------- */
.receipt {
  margin: 0; position: relative;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.03);
}
@media (min-width: 940px) { .receipt { position: sticky; top: 96px; } }

.receipt__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute);
}
.receipt__badge {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  border: 1px solid var(--line-2); padding: 4px 9px; color: var(--fg-dim);
}

.receipt__list { list-style: none; margin: 0; padding: 8px 0; }
.ri {
  display: grid; grid-template-columns: 1fr auto auto; align-items: baseline;
  gap: 10px 14px; padding: 9px 20px;
  font-family: var(--mono); font-size: 12px;
  position: relative;
  transition: opacity .45s var(--ease), color .45s var(--ease);
}
/* One absolutely-positioned rule per row means a wrapped name strands the
   bar between lines (same failure as the hero headline). Keep rows to one
   line; ellipsis is a guard if an item name ever grows. */
.ri__name { color: var(--fg); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri__qty  { color: var(--fg-mute); font-size: 10.5px; letter-spacing: .04em; }
.ri__cost { color: var(--fg-dim); min-width: 62px; text-align: right; }

.ri::after {
  content: ""; position: absolute; left: 18px; right: 18px; top: 50%;
  height: 1.5px; background: var(--flare);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .42s var(--ease);
}
.ri.is-cancelled { opacity: .38; }
.ri.is-cancelled .ri__name, .ri.is-cancelled .ri__cost { color: var(--fg-mute); }
.ri.is-cancelled::after { transform: scaleX(1); }

.receipt__totals { border-top: 1px solid var(--line); padding: 16px 20px 14px; }
.rt { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.rt--sub { margin-top: 6px; }
.rt__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-mute);
}
.rt__val {
  font-family: var(--mono); font-weight: 600; font-size: 26px;
  letter-spacing: -.03em; color: var(--flare);
  font-variant-numeric: tabular-nums;
  transition: color .5s var(--ease);
}
.rt--sub .rt__val { font-size: 15px; font-weight: 400; color: var(--fg-mute); }
/* At zero the old stack is gone, not alarming — hand the red off to the
   acid line below, which is the number that now matters. */
.receipt.is-done .rt__val { color: var(--fg-mute); }

.receipt__after {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-top: 1px solid var(--line);
  background: rgba(var(--acid-rgb),.05);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
/* Only hidden when JS has armed the animation, so it still shows without JS. */
.receipt.is-armed .receipt__after { opacity: 0; transform: translateY(6px); }
.receipt.is-armed.is-done .receipt__after { opacity: 1; transform: none; }
.receipt__after .mono { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--acid-2); max-width: 26ch; line-height: 1.6; }
.receipt__zero {
  font-family: var(--mono); font-weight: 600; font-size: 26px;
  letter-spacing: -.03em; color: var(--acid);
}
.receipt__zero small { font-size: 12px; font-weight: 400; color: var(--fg-mute); }

.receipt__note {
  margin: 0; padding: 13px 20px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.5; color: var(--fg-mute);
}

/* --- band / terminal ----------------------------------------------------- */
.band {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
  text-align: center;
}
.band .eyebrow { text-align: center; }
.band .h2 { max-width: 16ch; margin-inline: auto; }

.term {
  max-width: 720px; margin: clamp(38px, 5vw, 60px) auto 0;
  text-align: left;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -60px rgba(0,0,0,1);
}
.term__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.term__led { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.term__led:first-child { background: #3A2622; }
.term__bar p { margin: 0 0 0 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); }

.term__body { padding: 22px clamp(16px, 3vw, 28px) 26px; font-family: var(--mono); font-size: clamp(12px, 1.35vw, 13.5px); line-height: 1.85; }
.term__in { color: var(--fg-mute); margin: 0 0 4px; }
.term__caret { color: var(--flare); margin-right: 8px; }
.term__out { color: var(--fg); margin: 0 0 16px; padding-left: 22px; }
.term__out--acid { color: var(--acid); margin-bottom: 0; }
.term__cursor {
  display: inline-block; width: .55em; height: 1.05em; margin-left: 4px;
  background: var(--acid); vertical-align: text-bottom;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.band__kicker {
  margin: clamp(30px, 4vw, 44px) 0 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--fg-mute);
}

/* --- benefit cards ------------------------------------------------------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
@media (min-width: 860px) {
  .cards { grid-template-columns: 1fr 1fr; }
  /* Full-bleed row: split it internally so the right half isn't dead space. */
  .card--wide {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 1.1fr .9fr;
    column-gap: clamp(32px, 5vw, 72px);
    align-content: start;
  }
  .card--wide .card__num { grid-column: 1 / -1; }
  .card--wide .card__h,
  .card--wide > p:not(.card__note) { grid-column: 1; }
  .card--wide .card__note {
    grid-column: 2; grid-row: 2 / 4;
    margin-top: 0; padding-top: 0; border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: clamp(20px, 2.4vw, 32px);
    align-self: start;
  }
}

.card {
  background: var(--ink); padding: clamp(28px, 3.6vw, 44px);
  transition: background .35s var(--ease);
  position: relative;
}
.card:hover { background: var(--ink-3); }
.card__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  color: var(--fg-mute); margin-bottom: 26px;
  transition: color .35s var(--ease);
}
.card:hover .card__num { color: var(--acid); }
.card__h { font-size: clamp(22px, 2.5vw, 30px); margin-bottom: .55em; }
/* Same specificity trap as .split__copy — name the exclusions explicitly. */
.card > p:not(.card__num):not(.card__stat):not(.card__note) { color: var(--fg-dim); max-width: 56ch; }
.card__stat, .card__note {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--fg-mute);
}
.card__note { font-style: italic; }
.card--wide .card__note { border-top-color: var(--line); }

/* --- process ------------------------------------------------------------- */
.section--cta { text-align: center; }
.cta .eyebrow { text-align: center; }
.cta .h2 { max-width: 14ch; margin-inline: auto; }

.steps {
  list-style: none; margin: clamp(46px, 6vw, 74px) 0 clamp(40px, 5vw, 58px); padding: 0;
  display: grid; gap: 1px; text-align: left;
  background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--ink); padding: 30px 28px 34px; }
.steps__n {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; color: var(--acid); margin-bottom: 18px;
}
.steps h3 { font-size: 20px; margin-bottom: .5em; }
.steps p { margin: 0; font-size: 14.5px; color: var(--fg-dim); }

/* --- form ---------------------------------------------------------------- */
.form-wrap { display: grid; gap: clamp(40px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .form-wrap { grid-template-columns: minmax(260px, 340px) 1fr; } }
.form-wrap.is-sent { grid-template-columns: 1fr; }

.form-intro__p { color: var(--fg-dim); max-width: 40ch; }
@media (min-width: 1000px) { .form-intro { position: sticky; top: 96px; } }

.form-nav { list-style: none; margin: 34px 0 0; padding: 0; display: none; }
@media (min-width: 1000px) { .form-nav { display: block; } }
.form-nav li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--fg-mute);
  transition: color .3s var(--ease);
}
.form-nav li:last-child { border-bottom: 1px solid var(--line); }
.form-nav__n { color: var(--fg-mute); transition: color .3s var(--ease); }
.form-nav li.is-active { color: var(--fg); }
.form-nav li.is-active .form-nav__n { color: var(--acid); }
.form-nav li.is-complete .form-nav__n { color: var(--acid-2); }
.form-nav li.is-complete .form-nav__n::after { content: " ✓"; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fs {
  border: 1px solid var(--line); border-radius: 0;
  margin: 0 0 18px; padding: clamp(24px, 3.2vw, 34px);
  background: var(--ink-2);
  transition: border-color .3s var(--ease);
}
.fs:focus-within { border-color: var(--line-2); }
.fs legend {
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px; margin-left: -12px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
}
.fs__n { color: var(--acid); }
.fs__help { margin: 16px 0 22px; font-size: 14.5px; color: var(--fg-dim); max-width: 60ch; }

.row { display: grid; gap: 18px; }
.row--2 { margin-top: 20px; }
@media (min-width: 620px) { .row--2 { grid-template-columns: 1fr 1fr; } }

.field { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--fg-dim); line-height: 1.6;
}
.req { color: var(--flare); }

input[type="text"], input[type="email"], select, textarea {
  font-family: var(--sans); font-size: 15px; color: var(--fg);
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 0;
  padding: 14px 15px; width: 100%;
  transition: border-color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; font-family: var(--sans); }
input::placeholder, textarea::placeholder { color: var(--fg-mute); opacity: 1; }

input:hover, select:hover, textarea:hover { border-color: #3D444C; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--acid); background: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(var(--acid-rgb),.12);
}
input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: var(--flare); box-shadow: 0 0 0 3px rgba(var(--flare-rgb),.12);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A2A8AE' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 40px; cursor: pointer;
}
select:invalid { color: var(--fg-mute); }
select option { background: var(--ink-3); color: var(--fg); }

/* checkboxes */
.checks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.check {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; background: var(--ink); cursor: pointer;
  transition: background .22s var(--ease);
}
.check:hover { background: var(--ink-3); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex: none; width: 18px; height: 18px; margin-top: 3px;
  border: 1px solid var(--line-2); background: var(--ink-2);
  display: grid; place-items: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.check__box::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg) scale(0); transform-origin: center;
  transition: transform .2s var(--ease);
  margin-top: -2px;
}
.check input:checked + .check__box { background: var(--acid); border-color: var(--acid); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--acid); outline-offset: 2px; }
.check__text { font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); }
.check input:checked ~ .check__text { color: var(--fg); }

/* radios */
.radios { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.radios.is-invalid { border-color: var(--flare); box-shadow: 0 0 0 3px rgba(var(--flare-rgb),.12); }
.radio {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--ink); cursor: pointer;
  transition: background .22s var(--ease);
}
.radio:hover { background: var(--ink-3); }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio__dot {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--ink-2);
  display: grid; place-items: center;
  transition: border-color .2s var(--ease);
}
.radio__dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acid);
  transform: scale(0); transition: transform .2s var(--ease);
}
.radio input:checked + .radio__dot { border-color: var(--acid); }
.radio input:checked + .radio__dot::after { transform: scale(1); }
.radio input:focus-visible + .radio__dot { outline: 2px solid var(--acid); outline-offset: 2px; }
.radio__text { font-size: 14.5px; color: var(--fg-dim); }
.radio__text strong {
  display: inline-block; min-width: 74px; font-family: var(--mono);
  font-size: 12px; font-weight: 600; color: var(--fg); letter-spacing: -.01em;
}
.radio input:checked ~ .radio__text { color: var(--fg); }

.form__foot { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.form__fine { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute); }
.form__error {
  margin: 0; width: 100%; padding: 13px 16px;
  border: 1px solid var(--flare); background: rgba(var(--flare-rgb),.08);
  color: var(--err-fg); font-size: 14px;
}
.is-loading .btn__label::after {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 10px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite; vertical-align: -1px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* success */
.done {
  border: 1px solid var(--acid-2); background: rgba(var(--acid-rgb),.05);
  padding: clamp(34px, 5vw, 60px); text-align: center;
}
.done__mark {
  width: 54px; height: 54px; margin: 0 auto 24px;
  display: grid; place-items: center;
  border: 1px solid var(--acid); color: var(--acid);
  font-size: 24px; line-height: 1;
}
.done p { color: var(--fg-dim); max-width: 46ch; margin-inline: auto; }
.done .btn { margin-top: 28px; }

/* --- footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); padding-top: clamp(48px, 6vw, 76px); }
.footer__inner { display: grid; gap: 40px; padding-bottom: clamp(40px, 5vw, 60px); }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.2fr 1fr; } }
.footer__brand .brand__mark { width: 28px; height: 28px; color: var(--acid); margin-bottom: 20px; }
.footer__brand p { color: var(--fg-dim); font-size: 14.5px; max-width: 34ch; }
.footer__mail { margin-top: 14px; }
.footer__mail a {
  font-family: var(--mono); font-size: 13px; color: var(--acid);
  text-decoration: none; border-bottom: 1px solid rgba(var(--acid-rgb),.3);
}
.footer__mail a:hover { border-bottom-color: var(--acid); }

.footer__h {
  font-family: var(--mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 18px; letter-spacing: .16em;
}
.footer__sources ol { margin: 0; padding-left: 18px; color: var(--fg-mute); font-size: 13.5px; line-height: 1.9; }
.footer__sources em { color: var(--fg-dim); font-style: italic; }

.footer__base {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  padding-block: 20px 26px; border-top: 1px solid var(--line);
}
.footer__base p { margin: 0; font-size: 12px; color: var(--fg-mute); }
.footer__base .mono { font-size: 11px; letter-spacing: .1em; }

/* --- scroll reveal for sections ------------------------------------------ */
.section .eyebrow, .section .h2, .section .lede,
.cards, .steps, .receipt, .term, .split__copy p, .form, .form-intro {
  --sr-y: 18px;
}
.sr { opacity: 0; transform: translateY(var(--sr-y, 18px)); }
.sr.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* --- reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .sr { opacity: 1; transform: none; }
  .sw::after { transform: scaleX(1); }
  .ri.is-cancelled::after { transform: scaleX(1); }
  .receipt__after { opacity: 1; transform: none; }
}

/* ==========================================================================
   Flavors — Tech Bros (default), Serious Business, 'Merica
   Palette + typography swap via html[data-theme]; the copy swap lives in
   main.js. Tech Bros needs no block: it IS the :root tokens.
   ========================================================================== */

.tswitch {
  display: flex; align-items: stretch;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--ink-2) 70%, transparent);
}
.tswitch__label {
  display: none; align-self: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg-mute);
  padding: 0 11px;
}
@media (min-width: 980px) { .tswitch__label { display: block; } }
.tswitch__btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  color: var(--fg-mute); padding: 10px 13px;
  border-left: 1px solid var(--line);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tswitch__btn:first-of-type { border-left: 0; }
.tswitch__btn:hover { color: var(--fg); }
.tswitch__btn.is-on { background: var(--acid); color: var(--ink); }
@media (max-width: 719px) {
  .topbar { flex-wrap: wrap; }
  .tswitch { order: 5; flex-basis: 100%; }
  .tswitch__btn { flex: 1; }
  .tswitch__label { display: none; }
}

/* --- Serious Business: enterprise-grade (IBM/Oracle/PwC language) ----------
   Pure white, charcoal, one decisive blue, hard-squared corners, flat 1px
   hairlines, IBM Plex. The joke matured: it now looks indistinguishable from
   a Fortune 500 consulting page. */
html[data-theme="business"] {
  --ink: #FFFFFF; --ink-2: #F4F4F4; --ink-3: #EDEDED; --ink-4: #E0E0E0;
  --line: #E0E0E0; --line-2: #C6C6C6;
  --fg: #161616; --fg-dim: #474747; --fg-mute: #595959;
  --acid: #0F62FE; --acid-2: #0043CE; --acid-rgb: 15,98,254; --acid-hover: #0353E9;
  --flare: #DA1E28; --flare-rgb: 218,30,40; --err-fg: #A2191F;
  --grid-line: rgba(22,22,22,.05); --grain-o: 0;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --serif: "IBM Plex Sans", Arial, sans-serif;
}
html[data-theme="business"] h1,
html[data-theme="business"] h2,
html[data-theme="business"] h3,
html[data-theme="business"] .hero__h1 { font-weight: 600; letter-spacing: -.02em; }
/* weight contrast instead of italics: the enterprise em is Plex Light in blue */
html[data-theme="business"] .h2 em {
  font-family: var(--sans); font-style: normal; font-weight: 300;
  letter-spacing: -.02em; color: var(--acid);
}
/* flat tiles, no theatrics */
html[data-theme="business"] .receipt,
html[data-theme="business"] .term { box-shadow: none; background: var(--ink); }
/* buttons drop the mono-caps voice: sentence case, Plex, Carbon blue */
html[data-theme="business"] .btn {
  font-family: var(--sans); text-transform: none; letter-spacing: 0;
  font-size: 14.5px; font-weight: 500;
}
html[data-theme="business"] .btn--sm { font-size: 12.5px; }
html[data-theme="business"] .btn--lg { font-size: 15.5px; }
html[data-theme="business"] .btn--ghost { border-color: var(--acid); color: var(--acid); }
html[data-theme="business"] .btn--ghost:hover { background: rgba(var(--acid-rgb),.08); }

/* --- 'Merica: strike down the subscription agenda -------------------------- */
/* Red, white and blue carry the theme; gold is demoted to small accents
   (eyebrows, section numerals, completed ticks, the receipt's closing line). */
html[data-theme="merica"] {
  --ink: #0C1B45; --ink-2: #102150; --ink-3: #152A5C; --ink-4: #1B3468;
  --line: #2A3F7A; --line-2: #3D5494;
  --fg: #FAFBFF; --fg-dim: #C3CCE8; --fg-mute: #8B98C4;
  --acid: #FFFFFF; --acid-2: #E2B93B; --acid-rgb: 255,255,255; --acid-hover: #E9EEF9;
  --flare: #ED2B3E; --flare-rgb: 237,43,62; --err-fg: #FFB4AE;
  --grid-line: rgba(255,255,255,.06); --grain-o: .4;
  --display: "Anton", "Archivo", sans-serif;
}
html[data-theme="merica"] h1,
html[data-theme="merica"] h2 {
  font-weight: 400; letter-spacing: .02em; line-height: 1.1;
  text-transform: uppercase;
}
html[data-theme="merica"] .h2 em { text-transform: none; letter-spacing: 0; color: var(--flare); }
html[data-theme="merica"] h3 { font-family: var(--sans); }
html[data-theme="merica"] .hero__h1 { max-width: 15ch; }

/* the ribbon: a thin Old Glory band pinned above the topbar */
html[data-theme="merica"] body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 60;
  background: linear-gradient(180deg, #C8102E 0 33.3%, #FFFFFF 33.3% 66.6%, #4964D8 66.6% 100%);
}

/* gold, sparingly: the small typographic hardware */
html[data-theme="merica"] .eyebrow,
html[data-theme="merica"] .fs__n,
html[data-theme="merica"] .steps__n,
html[data-theme="merica"] .form-nav li.is-active .form-nav__n,
html[data-theme="merica"] .card:hover .card__num,
html[data-theme="merica"] .term__out--acid { color: var(--acid-2); }

/* CTAs go classic flag red with white type; everything else acid-driven
   (checks, $0, selection, focus) stays white */
html[data-theme="merica"] .btn--primary {
  background: #C8102E; border-color: #C8102E; color: #FFFFFF;
}
html[data-theme="merica"] .btn--primary:hover {
  background: #E0233B; border-color: #E0233B;
  box-shadow: 0 10px 34px -12px rgba(237,43,62,.6);
}

/* --- phones ---------------------------------------------------------------
   Receipt rows tighten so the longest item name still fits on one line, and
   touch targets grow to a thumb-friendly size. */
@media (max-width: 540px) {
  .ri { font-size: 11px; gap: 8px 10px; padding-inline: 16px; }
  .ri__qty { font-size: 9.5px; }
  .ri__cost { min-width: 50px; }
  .ri::after { left: 14px; right: 14px; }
  .receipt__head, .receipt__totals, .receipt__after, .receipt__note { padding-inline: 16px; }
}

@media (max-width: 719px) {
  /* 32px was under the 44px tap minimum */
  .tswitch__btn { padding: 16px 13px; }
}

/* iOS Safari force-zooms the page when a focused field is under 16px, and
   often doesn't zoom back — so every field tap jolts the layout. */
@media (max-width: 719px) {
  input[type="text"], input[type="email"], select, textarea { font-size: 16px; }
}

/* Citation superscripts are ~6x12px of ink — expand the hit area without
   moving the glyph (negative margins cancel the padding's layout effect). */
.cite { padding: 10px 5px; margin: -10px -5px -10px -3px; }
.footer__mail a { display: inline-block; padding: 6px 0; }
