/* ==========================================================================
   trexiptv.click — "THE TRANSACTION"
   Light paper, hairline rules, flat surfaces, 4px geometry.
   Emphasis is created by INVERSION (ink block) and WEIGHT — never by glow.
   The price is the loudest object on every page.
   Type: Space Grotesk (display + numerals) / Inter (UI + body)
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap">
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* paper + ink */
  --paper:      #ffffff;
  --paper-2:    #f4f5f7;   /* banded sections */
  --paper-3:    #eceff3;   /* wells, table heads */
  --ink:        #0b0d12;   /* body text — 19.43:1 on paper */
  --ink-soft:   #2a3039;
  --mut:        #5a6472;   /* 6.00:1 on paper, 5.50:1 on paper-2 */
  --line:       #dfe3e9;   /* decorative dividers */
  --line-mid:   #ccd2db;   /* structural edges (cards, chips) */
  --line-hard:  #78828f;   /* control boundaries — 3.90:1 paper / 3.57:1 alt / 3.38:1 well */

  /* brand */
  --brand:      #0b5cff;   /* fills — #fff on it = 5.26:1 */
  --brand-deep: #0a4fe0;   /* hover */
  --brand-ink:  #0a47d6;   /* brand as TEXT — 7.28:1 on paper */
  --brand-wash: #eef3ff;
  --pos:        #067647;
  --pos-wash:   #e8f5ee;
  --neg:        #b42318;
  --neg-wash:   #fdf0ef;

  /* inverted surfaces (band, featured plan) */
  --band-bg:    #0b0d12;
  --band-fg:    #f2f4f8;
  --band-mut:   #a3adbd;
  --band-line:  rgba(255,255,255,.14);

  --feat-bg:    #0b0d12;
  --feat-fg:    #f2f4f8;
  --feat-mut:   #a3adbd;   /* 8.58:1 on #0b0d12 */
  --feat-line:  rgba(255,255,255,.13);
  --feat-accent:#7fa6ff;   /* 8.14:1 on #0b0d12 */
  --feat-btn-bg:#ffffff;
  --feat-btn-fg:#0b0d12;
  --feat-tag-bg:#ffffff;
  --feat-tag-fg:#0b0d12;
  --feat-pos-fg:#7be3a8;
  --feat-pos-bg:rgba(123,227,168,.12);

  --focus:      #0a47d6;
  --ring:       0 0 0 3px rgba(11,92,255,.22);

  /* select caret — a drawn chevron, not a pair of corner gradients */
  --caret: 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 1.6 6 6.4 11 1.6' fill='none' stroke='%235a6472' stroke-width='1.9' stroke-linecap='square'/%3E%3C/svg%3E");

  /* geometry — small radii, hairlines, tight 4px rhythm */
  --r:     4px;
  --r-lg:  8px;
  --hair:  1px solid var(--line);
  --wrap:  1140px;
  --gut:   20px;
  --pad-section: 60px;

  --ff-ui:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-dis: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #0b0d12;
    --paper-2:    #12161d;
    --paper-3:    #171d26;
    --ink:        #e9edf4;   /* 16.55:1 on #0b0d12 */
    --ink-soft:   #cdd5e0;
    --mut:        #9aa5b5;   /* 7.14:1 on #12161d */
    --line:       #242b36;
    --line-mid:   #2f3744;
    --line-hard:  #5c6675;   /* 3.34:1 on the dark ground */

    --brand:      #0b5cff;
    --brand-deep: #2a63f5;   /* #fff on it = 5.00:1 (was #2f6bff, 4.50:1 — failed) */
    --brand-ink:  #8fb0ff;
    --brand-wash: #12203c;
    --pos:        #5dd39e;
    --pos-wash:   #10241c;
    --neg:        #ff8d82;
    --neg-wash:   #2a1614;

    --band-bg:    #151a23;
    --band-fg:    #eef1f7;
    --band-mut:   #9aa5b5;
    --band-line:  rgba(255,255,255,.10);

    /* in dark the featured plan inverts the OTHER way: a paper block */
    --feat-bg:    #f4f7fc;
    --feat-fg:    #0b0d12;
    --feat-mut:   #5a6472;
    --feat-line:  #dde2ea;
    --feat-accent:#0a47d6;
    --feat-btn-bg:#0b5cff;
    --feat-btn-fg:#ffffff;
    --feat-tag-bg:#0b0d12;
    --feat-tag-fg:#ffffff;
    --feat-pos-fg:#067647;
    --feat-pos-bg:#e8f5ee;

    --focus:      #8fb0ff;
    --ring:       0 0 0 3px rgba(42,99,245,.35);

    --caret: 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 1.6 6 6.4 11 1.6' fill='none' stroke='%239aa5b5' stroke-width='1.9' stroke-linecap='square'/%3E%3C/svg%3E");
  }
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-ui);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--ff-dis);
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 10px;
  line-height: 1.12;
  overflow-wrap: break-word;      /* no 360px overflow from long words */
}
p, li, td, .brand-text, .term, .per { overflow-wrap: break-word; }
h1 { font-size: clamp(30px, 5.4vw, 52px); letter-spacing: -.035em; line-height: 1.03; }
h2 { font-size: clamp(21px, 3.2vw, 29px); }
h3 { font-size: 18px; }
h4 { font-size: 13px; }
p  { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 12px; padding-left: 18px; }
li { margin: 0 0 4px; }

hr { border: 0; border-top: var(--hair); margin: 24px 0; }

::selection { background: var(--brand); color: #fff; }

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

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.small  { font-size: 13px; line-height: 1.5; }
.mut    { color: var(--mut); }
.center { text-align: center; }
.mb0    { margin-bottom: 0; }
.mt     { margin-top: 22px; }

/* a measure-capped paragraph inside a centred head must be centred too */
.center p,
.center .lede { margin-inline: auto; }

.mono {
  font-family: var(--ff-mono);
  font-size: .92em;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mut);
  background: var(--paper);
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  padding: 4px 8px;
  /* chips carry portal hosts / playlist URLs — they must never push the page wide */
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: var(--hair);
  border-radius: var(--r-lg);
  background: var(--paper);
  margin: 0 0 18px;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.table-wrap th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--mut);
  background: var(--paper-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-mid);
  white-space: nowrap;
}
.table-wrap td {
  padding: 11px 14px;
  border-bottom: var(--hair);
  font-variant-numeric: tabular-nums;
}
.table-wrap tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   4. SKIP LINK
   -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   5. HEADER / NAV — a payment bar: thin, sticky, hairline
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: var(--hair);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.brand-text {
  font-family: var(--ff-dis);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--mut);
  white-space: nowrap;
}
.brand-text strong { font-weight: 700; color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.nav a.on,
.nav a[aria-current] { color: var(--ink); font-weight: 600; }
.nav a.on::after,
.nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: -1px;
  height: 2px;
  background: var(--brand);
}
.nav a.nav-cta {
  margin-left: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--r);
}
.nav a.nav-cta:hover { background: var(--brand-deep); color: #fff; }
.nav a.nav-cta::after { display: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 34px;
  padding: 0 9px;
  background: var(--paper);
  border: 1px solid var(--line-hard);
  border-radius: var(--r);
  color: var(--ink);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .16s ease, opacity .1s ease;
}

/* open state — keyed off BOTH signals the shared JS may set: aria-expanded on
   the button and .open on #nav. 6px = this burger's own bar pitch (2px bar +
   4px gap). Written as two blocks so a browser without :has() keeps the first. */
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.burger[aria-expanded="true"] { border-color: var(--ink); }

.site-head:has(#nav.open) .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-head:has(#nav.open) .burger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.site-head:has(#nav.open) .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-head:has(#nav.open) .burger { border-color: var(--ink); }

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.005em;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .08s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--paper-3);
  border-color: var(--line-mid);
  color: var(--mut);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}
.btn:disabled::after,
.btn[aria-disabled="true"]::after { opacity: .5; }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;              /* 5.26:1 */
}
.btn-primary::after { content: "\2192"; font-size: 1.05em; line-height: 0; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

.btn-ghost {
  background: var(--paper);
  border-color: var(--line-hard);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn-block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   7. HERO — compact. Nothing is allowed to push the price below the fold.
   -------------------------------------------------------------------------- */
.hero {
  background: var(--paper);
  border-bottom: var(--hair);
}
.hero-inner { padding: 34px 0 30px; }

.hero-home {
  background:
    linear-gradient(180deg, var(--brand-wash) 0%, var(--paper) 66%);
}
/* Copy leads by a wide margin and the art is a fixed-width plate pinned to the
   right — a statement line + a receipt, not two balanced halves. */
.hero-home .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 52px;
  align-items: center;
  padding: 48px 0 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand);
  flex: none;
}

.hero-copy h1 { margin: 14px 0 12px; }
.lede {
  font-size: clamp(15px, 1.55vw, 17.5px);
  line-height: 1.5;
  color: var(--mut);
  max-width: 54ch;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 560px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   8. SECTIONS
   -------------------------------------------------------------------------- */
.section { padding: var(--pad-section) 0; }
.section.alt {
  background: var(--paper-2);
  border-top: var(--hair);
  border-bottom: var(--hair);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: var(--hair);
}
.section-head h2 { margin: 0; }
.section-head.center {
  justify-content: center;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 20px;
}

/* prose — dense panel grid, not a column of paragraphs */
.prose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 14px;
}
.block {
  background: var(--paper);
  border: var(--hair);
  border-radius: var(--r-lg);
  padding: 20px;
}
.block h2 {
  font-size: 16px;
  letter-spacing: -.015em;
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 2px solid var(--brand);
}
.block p { font-size: 14px; color: var(--mut); margin: 0; }
.block-alt { background: var(--paper-2); border-color: var(--line); }
.section.alt .block { background: var(--paper); }
.section.alt .block-alt { background: var(--paper-3); }

/* --------------------------------------------------------------------------
   9. PLANS — the hero of the whole site
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-lg);
  padding: 28px 20px 20px;
  isolation: isolate;
}

/* corner flag — square inner corner, echoes the logo tile */
.tag {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 0 var(--r-lg) 0 var(--r);
  z-index: 2;
}

.term {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 10px;
}

.save {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--pos);
  background: var(--pos-wash);
  border-radius: 2px;
  padding: 3px 7px;
  margin-bottom: 12px;
}

.price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--ff-dis);
  font-size: clamp(46px, 8.4vw, 64px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1;
  color: var(--ink);
  margin: 2px 0 0;
}
.price sup {
  position: relative;
  top: .16em;
  font-size: .34em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--brand-ink);
  vertical-align: baseline;
}

.per {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mut);
  margin-top: 8px;
  letter-spacing: .01em;
}

.plan ul {
  list-style: none;
  margin: 16px 0 18px;
  padding: 0;
  border-top: var(--hair);
  flex: 1 1 auto;
}
.plan li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 20px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink-soft);
  border-bottom: var(--hair);
}
/* line-item marker: a solid 4px-geometry square, the same square the tile,
   the chip and the corner flag are cut from — no tick, no glyph */
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  background: var(--brand);
}

.plan .btn { margin-top: auto; }

/* the one inverted block on the page */
.plan.featured {
  background: var(--feat-bg);
  border-color: var(--feat-bg);
  color: var(--feat-fg);
  box-shadow: 0 18px 38px -20px rgba(11, 13, 18, .55);
}
.plan.featured .tag { background: var(--feat-tag-bg); color: var(--feat-tag-fg); }
.plan.featured .term { color: var(--feat-mut); }
.plan.featured .price { color: var(--feat-fg); }
.plan.featured .price sup { color: var(--feat-accent); }
.plan.featured .per { color: var(--feat-mut); }
.plan.featured .save { color: var(--feat-pos-fg); background: var(--feat-pos-bg); }
.plan.featured ul { border-top-color: var(--feat-line); }
.plan.featured li { color: var(--feat-fg); border-bottom-color: var(--feat-line); }
.plan.featured li::before { background: var(--feat-accent); }
.plan.featured .btn {
  background: var(--feat-btn-bg);
  border-color: var(--feat-btn-bg);
  color: var(--feat-btn-fg);
}
.plan.featured .btn:hover { opacity: .88; }
.plan.featured .btn:disabled,
.plan.featured .btn[aria-disabled="true"] {
  background: transparent;
  border-color: var(--feat-line);
  color: var(--feat-mut);
}

/* --------------------------------------------------------------------------
   10. FAQ — hairline rows, CSS-only marker
   -------------------------------------------------------------------------- */
.faq {
  border-top: var(--hair);
  max-width: 820px;
}
.faq details { border-bottom: var(--hair); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 40px 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 11px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 11px no-repeat;
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand-ink); }
.faq .body { padding: 0 40px 18px 0; }
.faq .body p { font-size: 14px; color: var(--mut); }

/* --------------------------------------------------------------------------
   11. BAND — full-bleed inverted closer
   -------------------------------------------------------------------------- */
.band {
  background: var(--band-bg);
  color: var(--band-fg);
  border-top: 1px solid var(--band-line);
  border-bottom: 1px solid var(--band-line);
}
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}
.band h2 { color: var(--band-fg); margin: 0 0 4px; font-size: clamp(20px, 2.6vw, 26px); }
.band p { color: var(--band-mut); font-size: 14.5px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.band .btn-ghost {
  background: transparent;
  border-color: var(--band-line);
  color: var(--band-fg);
}
.band .btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--band-fg); }

/* --------------------------------------------------------------------------
   12. NOTICES
   -------------------------------------------------------------------------- */
.notice {
  border: var(--hair);
  border-left: 3px solid var(--mut);
  border-radius: var(--r);
  background: var(--paper-2);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}
.notice.bad  { border-left-color: var(--neg);   background: var(--neg-wash);   color: var(--neg); }
.notice.ok   { border-left-color: var(--pos);   background: var(--pos-wash);   color: var(--pos); }
.notice.info { border-left-color: var(--brand); background: var(--brand-wash); color: var(--brand-ink); }
.notice a { color: inherit; text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. FORMS — the checkout
   -------------------------------------------------------------------------- */
.form { max-width: 660px; }

.field { margin: 0 0 16px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 6px;
}
.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea,
.form input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-hard);
  border-radius: var(--r);
  padding: 11px 12px;
  transition: border-color .14s ease, box-shadow .14s ease;
  appearance: none;
}
.field textarea, .form textarea { min-height: 110px; resize: vertical; }
.field select, .form select {
  background-image: var(--caret);
  background-position: right 13px center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field input:focus, .field select:focus, .field textarea:focus,
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.field input::placeholder, .form input::placeholder, .form textarea::placeholder { color: var(--mut); opacity: .75; }
.hint { display: block; font-size: 12px; color: var(--mut); margin-top: 5px; }

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 2px 11px;
  border: 1px solid var(--line-hard);
  border-radius: var(--r);
  background: var(--paper);
  padding: 12px 14px;
  margin: 0 0 8px;
  cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}
.choice label { display: contents; }  /* tolerate a nested label wrapper */
.choice input { grid-row: span 2; margin: 3px 0 0; accent-color: var(--brand); width: 16px; height: 16px; }
.choice .t { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.choice .d { font-size: 12.5px; color: var(--mut); grid-column: 2; }
.choice:hover { border-color: var(--mut); }

/* the selected row INVERTS, like .plan.featured — this theme never marks a
   selection with a tint and an inset accent line */
.choice:has(input:checked) {
  border-color: var(--feat-bg);
  background: var(--feat-bg);
}
.choice:has(input:checked) .t { color: var(--feat-fg); }
.choice:has(input:checked) .d { color: var(--feat-mut); }
.choice:has(input:checked) input { accent-color: var(--feat-accent); }
/* no-:has() fallback keeps the label legible without the inversion */
.choice input:checked ~ .t { font-weight: 700; }
.choice:focus-within { box-shadow: var(--ring); }

.summary-box {
  border: 1px solid var(--line-mid);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: 6px 18px 16px;
  margin: 0 0 18px;
}
.line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--mut);
  border-bottom: 1px dashed var(--line);
  font-variant-numeric: tabular-nums;
}
.line > :last-child { color: var(--ink); font-weight: 500; text-align: right; }
.line:last-child { border-bottom: 0; }
.line.total {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  margin-top: 6px;
  padding-top: 14px;
  font-family: var(--ff-dis);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.line.total > :last-child { font-weight: 700; font-size: 24px; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-foot {
  background: var(--paper-2);
  border-top: var(--hair);
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 42px 0 30px;
}
.foot-about .brand-text { font-size: 17px; display: inline-block; margin-bottom: 10px; }
.foot-note { font-size: 13px; color: var(--mut); max-width: 42ch; margin: 0 0 10px; }
.foot-note.foot-small { font-size: 11.5px; line-height: 1.5; opacity: .85; }

.site-foot h4 {
  font-family: var(--ff-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 10px;
}
.site-foot h4.mt { margin-top: 22px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0; }
.site-foot li a {
  display: block;
  padding: 3px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-foot li a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

.foot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 18px;
  border-top: var(--hair);
  font-size: 12px;
  color: var(--mut);
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-home .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 36px; }
  .hero-art { order: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .band-inner { flex-direction: column; align-items: flex-start; }
  .band-actions { width: 100%; }
}

/* nav collapses behind the burger — JS sets .open on #nav AND
   aria-expanded on .burger; either one opens it, both drive the cross */
@media (max-width: 779px) {
  :root { --pad-section: 44px; --gut: 16px; }

  .burger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-hard);
    box-shadow: 0 14px 26px -18px rgba(11, 13, 18, .5);
    padding: 6px 16px 14px;
  }
  /* open on either signal, so one shared JS can drive all three themes.
     Kept as two rules: a browser without :has() must still honour .open. */
  .nav.open { display: flex; }
  .site-head:has(.burger[aria-expanded="true"]) .nav { display: flex; }
  .nav a {
    padding: 12px 2px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: var(--hair);
  }
  .nav a:hover { background: transparent; }
  .nav a.on::after,
  .nav a[aria-current]::after { left: 0; right: auto; bottom: 8px; width: 18px; }
  .nav a.nav-cta {
    margin: 12px 0 0;
    justify-content: center;
    padding: 13px 16px;
    border-bottom: 0;
  }

  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head.center { align-items: center; }
}

@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; padding: 32px 0 22px; }
  .foot-base { flex-direction: column; align-items: flex-start; gap: 4px; }
  .actions .btn, .band-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  body { font-size: 14.5px; }
  .plan { padding: 26px 16px 16px; }
  .summary-box { padding: 4px 14px 14px; }
  .brand-text { font-size: 16px; }
  .hero-home .hero-inner { padding: 32px 0 30px; }
}

/* --------------------------------------------------------------------------
   16. MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:active { transform: none; }
}

/* --------------------------------------------------------------------------
   17. PAGE HOOKS — body.site-click / body.page-<slug>
   Transactional pages run tighter: nothing decorative above the form.
   -------------------------------------------------------------------------- */
body.site-click { accent-color: var(--brand); }

body.page-checkout .hero-inner,
body.page-order-status .hero-inner,
body.page-thanks .hero-inner { padding: 28px 0 22px; }

body.page-checkout .section,
body.page-order-status .section,
body.page-thanks .section { padding-top: 34px; }

body.page-checkout .hero .lede,
body.page-order-status .hero .lede { max-width: 46ch; }

body.page-pricing .section:first-of-type,
body.page-plans .section:first-of-type { padding-top: 36px; }

/* --------------------------------------------------------------------------
   18. PRINT (receipts get printed)
   -------------------------------------------------------------------------- */
@media print {
  .site-head, .burger, .band, .site-foot, .hero-art { display: none !important; }
  body { background: #fff; color: #000; }
  .plan, .summary-box, .block { border: 1px solid #999; box-shadow: none; }
  .plan.featured { background: #fff; color: #000; }
  .plan.featured .price, .plan.featured li { color: #000; }
}

