/* ==========================================================================
   TokenWake — tokenwake.com
   House style carried over from the Tier Zero decks. Do not invent a new look.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --navy:       #0E1E38;  /* primary dark background            */
  --gold:       #D4A843;  /* accent, rules, numbers            */
  --dark-gold:  #B8860B;  /* gold text on light backgrounds    */
  --cream:      #F5F3F0;  /* light section background          */
  --warm-tint:  #FBF7EC;  /* alternating rows / cards          */
  --body:       #4A4A4A;  /* body text on light                */
  --gray:       #8A8A8A;  /* captions                          */
  --light-blue: #C9D2E0;  /* body text on navy                 */
  --border:     #E2E0DC;  /* hairline card borders             */

  --serif: Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --mono:  "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --shadow-card: 0 1px 2px rgba(14, 30, 56, .04), 0 8px 24px rgba(14, 30, 56, .06);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--dark-gold); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--navy); }

/* ---- The gold rule at the top of every page ----------------------------- */
.goldrule { height: 6px; background: var(--gold); width: 100%; }

/* ---- Layout ------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* Alternating section themes */
.sec-cream { background: var(--cream); color: var(--body); }
.sec-navy  { background: var(--navy);  color: var(--light-blue); }
.sec-navy h1, .sec-navy h2, .sec-navy h3 { color: #fff; }
.sec-warm  { background: var(--warm-tint); color: var(--body); }

/* ---- Kicker + gold tick ------------------------------------------------- */
.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--dark-gold);
  margin: 0 0 1rem;
}
.sec-navy .kicker { color: var(--gold); }
.kicker::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.6rem;
}

/* ---- Type scale --------------------------------------------------------- */
.display { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -0.01em; margin: 0 0 1rem; }
h2       { font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 0 0 1rem; }
h3       { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin: 0 0 0.5rem; }
.lede    { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.5; }
.sec-navy .lede { color: var(--light-blue); }
.caption { color: var(--gray); font-size: 0.9rem; }
.sec-navy .caption { color: #93a2bd; }

.mono-num { font-family: var(--mono); color: var(--dark-gold); }
.sec-navy .mono-num { color: var(--gold); }

/* ---- Hero lead / punch (curve-fitting message) ------------------------- */
.hero-lead {
  font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(1.4rem, 3.2vw, 2.15rem); line-height: 1.2;
  margin: 0.25rem 0 3.5rem;
}
.hero-punch {
  font-family: var(--serif); font-weight: 700; color: var(--gold);
  font-size: clamp(2.5rem, 6.5vw, 4.25rem); line-height: 0.95; margin: 0 0 1.5rem;
  white-space: nowrap;
}
.sec-navy .hero-punch { color: var(--gold); }   /* out-specify .sec-navy h1 (#fff) */
.hero-punch::after {
  content: ""; display: block; width: 240px; max-width: 55%;
  height: 3px; background: var(--gold); margin-top: 1.1rem;
}
.hero-tags {
  font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; margin: 2.25rem 0 0;
}
.hero-tags span { display: block; white-space: nowrap; }

/* ---- Split hero: text panel left (tight left margin), photo bleeds right - */
.hero {
  display: flex; flex-direction: column; background: var(--navy);
  min-height: calc(100vh - 96px);   /* fill the screen below the nav (goldrule 6 + nav ~90) */
  padding-block: 0;                 /* kill the inherited section padding (the top gap) */
}
.hero-split { display: flex; align-items: stretch; flex: 1 1 auto; }
.hero-cred {
  display: flex; justify-content: flex-start; align-items: center;
  gap: 0.5rem 2rem; flex-wrap: wrap;
  padding: 0.9rem var(--gutter);
  border-top: 1px solid rgba(212, 168, 67, 0.28);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; color: var(--light-blue);
}
.hero-cred span + span {
  padding-left: 2rem; border-left: 1px solid rgba(212, 168, 67, 0.3);
}
.hero-split .hero-text {
  flex: 0 1 auto;                /* size to the text; let the photo take the rest */
  display: flex; align-items: center;
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
  padding-right: var(--gutter);
  padding-left: var(--gutter);   /* tight to the left edge */
}
.hero-content { max-width: 48rem; }
.hero-content .lede { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.hero-split .hero-photo {
  flex: 1 1 420px; align-self: stretch; min-height: 440px;
  background-color: var(--navy);
  /* soft navy fade on the seam so the split isn't a hard line */
  background-image:
    linear-gradient(90deg, var(--navy) 0%, rgba(14, 30, 56, 0) 15%),
    image-set(url("token-pipe.webp") type("image/webp"),
              url("token-pipe.jpg")  type("image/jpeg"));
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, center;
}

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-split { flex-direction: column; }
  .hero-split .hero-photo { min-height: 240px; }
  .hero-punch { white-space: normal; }
  .hero-cred span + span { border-left: 0; padding-left: 0; }
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--dark-gold); border-color: var(--dark-gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.sec-navy .btn-ghost { color: #fff; }
.btn-ghost:hover { background: var(--gold); color: var(--navy); }
.btn:focus-visible { outline: 3px solid var(--dark-gold); outline-offset: 3px; }

/* ---- Nav ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 30, 56, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(212, 168, 67, .18);
}
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.9rem; max-width: none; }
.nav-brand {
  display: flex; align-items: center;
  text-decoration: none; margin-right: auto;
}
.nav-brand img { height: 60px; width: auto; display: block; }
.nav-links { display: flex; gap: 1.4rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.72rem; color: var(--light-blue); text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-cta { padding: 0.5rem 1rem; font-size: 0.9rem; }
.nav-links a.nav-cta { color: var(--navy); }         /* navy on gold, not the nav link color */
.nav-links a.nav-cta:hover { color: #fff; }          /* white on the darker gold hover */
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: .25rem; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(212,168,67,.18);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav-links[hidden] { display: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 0; font-size: 0.85rem; }
  .nav-cta { margin-top: 0.5rem; }
}

/* ---- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.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: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  color: var(--body);            /* keep card text dark even on navy sections */
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}
.card .kicker { font-size: 0.7rem; }
.card h3 { margin-top: 0; color: var(--navy); }
.card .kicker { color: var(--dark-gold); }   /* keep card labels readable on any section */
.card .caption { color: var(--gray); }
.card p:last-child { margin-bottom: 0; }

.card-num {
  font-family: var(--serif); font-weight: 700; font-size: 2.5rem;
  color: var(--navy); line-height: 1; margin-bottom: 0.5rem;
}

/* ---- The cost-inversion signature element ------------------------------- */
.inversion {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; text-align: center;
  margin-block: 2rem;
}
.inversion figure { margin: 0; }
.inversion .label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; color: var(--gray); margin-bottom: 0.5rem;
}
.sec-navy .inversion .label { color: #93a2bd; }
.inversion .sticker { font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--gray); }
.inversion .arrow { font-family: var(--mono); color: var(--gold); font-size: 1.5rem; align-self: center; }
.inversion .true {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 7rem); color: var(--dark-gold); line-height: 0.9;
}
.sec-navy .inversion .true { color: var(--gold); }

/* ---- Tables ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.catalog { border-collapse: collapse; width: 100%; min-width: 640px; background: #fff; }
table.catalog caption { text-align: left; }
table.catalog th, table.catalog td {
  text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
table.catalog thead th {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.7rem; color: var(--dark-gold); border-bottom: 2px solid var(--gold);
}
table.catalog tbody tr:nth-child(even) { background: var(--warm-tint); }
table.catalog td.price { font-family: var(--mono); white-space: nowrap; }

/* ---- Numbered step list ------------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: 3px;
  box-shadow: var(--shadow-card); padding: 1.5rem 1.5rem 1.5rem 4.5rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.35rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  color: var(--gold); width: 2rem; text-align: center;
}

/* ---- Big date banner (models page) -------------------------------------- */
.date-banner {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  border: 2px solid var(--gold); color: var(--navy); background: var(--warm-tint);
  padding: 1rem 1.5rem; display: inline-block; font-size: 0.95rem; font-weight: 600;
}

/* ---- Forms -------------------------------------------------------------- */
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.72rem; color: var(--navy);
  margin-bottom: 0.4rem; font-weight: 600;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--body);
  padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: 2px;
  background: #fff;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.form-note { font-size: 0.85rem; color: var(--gray); margin-top: 0.35rem; }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.25rem; }
.form-check input { width: auto; margin-top: 0.25rem; flex: none; }
.form-check label { font-family: var(--sans); text-transform: none; letter-spacing: normal; font-size: 0.95rem; font-weight: 400; color: var(--body); margin: 0; }

/* ---- Workflow step table (intake) --------------------------------------- */
.steps-head { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 2px solid var(--gold); }
.step-table-scroll { overflow-x: auto; margin-top: 1rem; }
.step-table { width: 100%; border-collapse: collapse; }
.step-table thead th {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.68rem; font-weight: 700; color: var(--navy); text-align: left;
  padding: 0 0.5rem 0.5rem; border-bottom: 1px solid var(--gold); white-space: nowrap;
}
.step-table td { padding: 0.4rem 0.5rem; vertical-align: middle; border-bottom: 1px solid var(--border); }
.step-table .step-num {
  font-family: var(--mono); font-weight: 700; color: var(--dark-gold); text-align: center;
  font-size: 1rem; width: 2.2rem; vertical-align: middle; border-bottom: 1px solid var(--border);
}
.step-table input, .step-table select {
  width: 100%; font-family: var(--sans); font-size: 0.92rem; color: var(--body);
  padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: 2px; background: #fff;
}
.step-table input:focus, .step-table select:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.col-step { width: 2.2rem; }
.col-perf { width: 8.5rem; }
.col-fail { width: 9.5rem; }
.radio-pair { display: inline-flex; gap: 0.9rem; }
.radio-pair label {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--sans); font-size: 0.9rem; color: var(--body); white-space: nowrap;
}
.radio-pair input { width: auto; margin: 0; }
.example-row td { color: var(--body); font-style: italic; background: #FBEFC9; }
.example-row .step-num {
  color: var(--dark-gold); background: #FBEFC9; font-style: normal; font-weight: 700;
  font-size: 0.72rem; box-shadow: inset 3px 0 0 var(--gold);
}
.ex-tag {
  display: inline-block; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.62rem; font-weight: 700; color: var(--navy);
  background: var(--gold); border-radius: 2px;
  padding: 0.08rem 0.4rem; margin-right: 0.5rem; font-style: normal; vertical-align: middle;
}

/* Stack the step table into cards on narrow screens */
@media (max-width: 720px) {
  .step-table .example-row .step-num::before { content: none; }
  .step-table thead { position: absolute; left: -9999px; }
  .step-table, .step-table tbody, .step-table tr, .step-table td { display: block; width: 100%; }
  .step-table tr {
    border: 1px solid var(--border); border-radius: 3px; background: #fff;
    padding: 0.5rem 0.85rem 0.85rem; margin-top: 1rem;
  }
  .step-table .step-num {
    display: block; text-align: left; width: auto; border: 0; color: var(--dark-gold);
    padding: 0 0 0.35rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .step-table .step-num::before { content: "Step "; }
  .step-table td { border: 0; padding: 0.35rem 0; }
  .step-table td::before {
    content: attr(data-label); display: block;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.66rem; color: var(--navy); margin-bottom: 0.3rem; font-weight: 600;
  }
}

/* ---- Moat bullets (gold marker + claim) --------------------------------- */
.moat {
  list-style: none; margin: 2rem auto 0; padding: 0; max-width: 42rem;
  text-align: left; display: grid; gap: 1rem;
}
.moat li { position: relative; padding-left: 1.9rem; line-height: 1.5; }
.moat li::before { content: "\2726"; position: absolute; left: 0; top: 0; color: var(--gold); }
.sec-navy .moat strong { color: #fff; }

/* ---- Proven Math: navy receipts panel (gold number + claim) ------------- */
.receipts {
  background: var(--navy); border-radius: 4px; margin-top: 2rem;
  padding: 0.25rem clamp(1.25rem, 4vw, 2.5rem);
}
.receipt {
  display: grid; grid-template-columns: minmax(0, 8rem) 1fr; gap: 1.75rem;
  align-items: baseline; padding: 1.4rem 0;
  border-bottom: 1px solid rgba(212, 168, 67, 0.18);
}
.receipt:last-child { border-bottom: 0; }
.receipt-num {
  font-family: var(--serif); font-weight: 700; color: var(--gold);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1; text-align: right;
}
.receipt-txt { color: var(--light-blue); font-size: 1rem; line-height: 1.5; }
.receipt-txt strong { color: #fff; }
@media (max-width: 640px) {
  .receipt { grid-template-columns: 1fr; gap: 0.3rem; }
  .receipt-num { text-align: left; }
}

/* ---- Legal document pages ----------------------------------------------- */
.legal h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.legal h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.legal p, .legal li { line-height: 1.7; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal .caption { margin-top: -0.5rem; }

/* ---- Callout ------------------------------------------------------------ */
.callout {
  border-left: 3px solid var(--gold); background: var(--warm-tint);
  padding: 1rem 1.25rem; margin: 1.25rem 0;
}
.callout strong { color: var(--navy); }

/* ---- Gated / lead-magnet block ------------------------------------------ */
.gated {
  border: 1px dashed var(--gold); background: rgba(212,168,67,.06);
  padding: 2rem; border-radius: 3px;
}

/* ---- CTA band (repeated at foot of every page) -------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band .lede { max-width: 44ch; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Introductory-offer badge + one-line forecast line (pricing CTA) */
.cta-band .cta-forecast-line { max-width: none; margin-bottom: 1.25rem; }
@media (min-width: 861px) { .cta-band .cta-forecast-line { white-space: nowrap; } }
.intro-badge {
  display: inline-block; border: 1.5px solid var(--gold); color: var(--gold);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.8rem; padding: 0.5rem 1.1rem; border-radius: 2px;
}
.intro-badge .mono-num { color: var(--gold); font-size: 1.05rem; letter-spacing: 0; }

/* Brand tagline, featured on the home closing panel */
.home-tagline {
  font-family: var(--serif); font-weight: 700; color: var(--dark-gold);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.12; margin: 0 0 1rem;
}
.sec-navy .home-tagline { color: var(--gold); }   /* brighter on navy */

/* ---- Footer ------------------------------------------------------------- */
.footer { background: var(--navy); color: var(--light-blue); padding-block: 2.5rem; font-size: 0.9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal { margin: 0 0 0 auto; }
.footer a { color: var(--light-blue); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .tagline { font-family: var(--serif); font-style: italic; color: #fff; margin-right: auto; }
.footer .fine { color: #93a2bd; font-size: 0.8rem; width: 100%; margin-top: 0.5rem; }

/* ---- Utilities ---------------------------------------------------------- */
.center { text-align: center; }
.gold { color: var(--dark-gold); }
.sec-navy .gold { color: var(--gold); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.narrow { max-width: 68ch; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 0.5rem 1rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Quiet scroll reveal (respects reduced-motion via block above) ------ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
