/* ===========================================================
   AZDT Brand System — Prosperity Funnel
   Palette + type lifted from "AZDT | Brand Book and Templates"
   Edit tokens here; every page inherits.
   =========================================================== */

:root {
  /* Primary */
  --blue-ribbon:   #0044F9;
  --deep-koamaru:  #191772;
  --riptide:       #77E8CA;
  --elm:           #1C806D;

  /* Accent — alerts / critical only, never decoration */
  --valencia:      #D63933;

  /* Supporting bases */
  --ice-cold:      #A7F8DF;
  --white-ice:     #D4F7EC;
  --clear-day:     #EEFFFA;
  --white-lilac:   #F0F4FF;
  --tropical-blue: #CFDCFF;
  --perano:        #B3C5F6;

  /* Semantic */
  --ink:           var(--deep-koamaru);
  --ink-soft:      #4A4878;
  --ink-faint:     #6E6C96;
  --paper:         #FFFFFF;
  --paper-alt:     var(--white-lilac);
  --paper-mint:    var(--clear-day);
  --line:          #DDE4F7;
  --good:          var(--elm);
  --alert:         var(--valencia);

  /* Type */
  --font-display: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body:    'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-nerd:    'Courier Prime', ui-monospace, Menlo, monospace;

  /* Scale */
  --shell: 1120px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(25,23,114,.06), 0 4px 14px rgba(25,23,114,.06);
  --shadow-md: 0 2px 6px rgba(25,23,114,.08), 0 18px 46px rgba(25,23,114,.10);
}

/* --- reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-ribbon); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 700; letter-spacing: -0.012em; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
strong { font-weight: 700; color: var(--deep-koamaru); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-ribbon);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--riptide); }

.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }

/* --- layout ----------------------------------------------- */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band-alt  { background: var(--paper-alt); }
.band-mint { background: var(--paper-mint); }
.band-deep { background: var(--deep-koamaru); color: #fff; }
.band-deep h2, .band-deep h3, .band-deep strong { color: #fff; }
.band-deep .lede { color: var(--perano); }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.section-head { max-width: 70ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* --- nav -------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.wordmark {
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem;
  letter-spacing: -.02em; color: var(--deep-koamaru); text-decoration: none;
}
.wordmark span { color: var(--blue-ribbon); }
.nav__links { display: none; gap: 1.6rem; }
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__links a {
  color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500;
}
.nav__links a:hover { color: var(--blue-ribbon); }

/* --- buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--blue-ribbon); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #0039D6; box-shadow: var(--shadow-md); }
.btn--mint { background: var(--riptide); color: var(--deep-koamaru); }
.btn--mint:hover { background: var(--ice-cold); }
.btn--ghost { background: transparent; color: var(--deep-koamaru); border-color: var(--perano); }
.btn--ghost:hover { border-color: var(--blue-ribbon); color: var(--blue-ribbon); }
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-note { font-size: .82rem; color: var(--ink-faint); margin: .7rem 0 0; }

/* --- hero ------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 440px at 88% -8%, var(--white-ice) 0%, transparent 62%),
    radial-gradient(700px 400px at 2% 108%, var(--white-lilac) 0%, transparent 60%),
    var(--paper);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-bottom: .55em; }
.hero__proof { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }

.pill {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--white-ice); color: #14604F;
  padding: .4rem .8rem; border-radius: 999px; white-space: nowrap;
}
.pill--blue { background: var(--tropical-blue); color: var(--deep-koamaru); }

/* --- capture card ----------------------------------------- */
.capture {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-md);
}
.capture h3, .capture__title { margin-bottom: .35em; font-size: 1.25rem; font-weight: 900; letter-spacing: -.012em; }
.capture__sub { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.field { margin-bottom: .8rem; }
.field label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem;
  font-family: var(--font-mono);
}
.field input, .field select {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: .98rem;
  color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue-ribbon);
  box-shadow: 0 0 0 3px rgba(0,68,249,.14);
}
.form-msg { font-size: .9rem; margin: .8rem 0 0; min-height: 1.2em; }
.form-msg--ok   { color: var(--elm); font-weight: 600; }
.form-msg--err  { color: var(--valencia); font-weight: 600; }
.fineprint { font-size: .78rem; color: var(--ink-faint); margin: .9rem 0 0; line-height: 1.5; }

/* --- cards ------------------------------------------------ */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.4vw, 1.75rem); box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card__num {
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem; letter-spacing: .1em;
  color: var(--blue-ribbon); display: block; margin-bottom: .6rem;
}
.card p:last-child { margin-bottom: 0; }

/* step cards */
.step { position: relative; padding-top: 4.1rem; }
.step__badge {
  position: absolute; top: 1.3rem; left: clamp(1.3rem, 2.4vw, 1.75rem);
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--deep-koamaru); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: .95rem;
  display: grid; place-items: center;
}
.step--2 .step__badge { background: var(--blue-ribbon); }
.step--3 .step__badge { background: var(--elm); }

/* --- pain list -------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--riptide);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/88% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/88% no-repeat;
}
.checklist--x li::before {
  background: var(--valencia);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6 6 18M6 6l12 12' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6 6 18M6 6l12 12' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.band-deep .checklist li::before { background: var(--riptide); }

/* --- offer / pricing -------------------------------------- */
.tier {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.8vw, 2rem); display: flex; flex-direction: column;
}
.tier--featured { border-color: var(--blue-ribbon); box-shadow: var(--shadow-md); position: relative; }
.tier__flag {
  position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%);
  background: var(--blue-ribbon); color: #fff;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 999px; white-space: nowrap;
}
.tier__name { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; margin: 0 0 .25rem; }
.tier__for { font-size: .88rem; color: var(--ink-faint); margin: 0 0 1.1rem; }
.tier__price { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--deep-koamaru); }
.tier__price small { font-size: .85rem; font-weight: 500; color: var(--ink-faint); display: block; margin-top: .4rem; letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; font-size: .95rem; }
.tier ul li { position: relative; padding-left: 1.6rem; }
.tier ul li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .95rem; height: .95rem;
  background: var(--elm);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.tier .btn { margin-top: auto; }

/* --- curriculum ------------------------------------------- */
.module {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 1.25rem 1.4rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
}
.module__wk {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-ribbon);
  background: var(--white-lilac); padding: .35rem .6rem; border-radius: 6px; white-space: nowrap;
}
.module h3 { font-size: 1.05rem; margin-bottom: .25em; }
.module p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* --- quotes ----------------------------------------------- */
.quote {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: .35rem; right: 1rem;
  font-family: var(--font-display); font-weight: 900; font-size: 3rem;
  line-height: 1; color: var(--riptide); pointer-events: none;
}
.quote p { font-size: .98rem; margin-bottom: .8rem; }
.quote cite { font-style: normal; font-size: .85rem; color: var(--ink-faint); font-weight: 600; }
.band-deep .quote { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.band-deep .quote cite { color: var(--perano); }

/* --- "nerdy stuff" callout (brand book pattern) ----------- */
.nerdy {
  border: 1.5px dashed var(--perano); border-radius: var(--radius);
  background: var(--white-lilac); padding: 1.2rem 1.4rem;
  font-family: var(--font-nerd); font-size: .92rem;
}
.nerdy__tag {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-ribbon); display: block; margin-bottom: .5rem;
}
.nerdy p:last-child { margin-bottom: 0; }

/* --- faq -------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--line); padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--blue-ribbon); line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .9rem 0 0; color: var(--ink-soft); font-size: .96rem; }

/* --- footer ----------------------------------------------- */
.footer { background: var(--deep-koamaru); color: var(--perano); padding: 3rem 0 2.2rem; font-size: .9rem; }
.footer a { color: var(--riptide); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 1.6rem; margin-bottom: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: .78rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.4rem; font-size: .78rem; line-height: 1.6; color: #A3A1CC; }

/* --- legal pages ------------------------------------------ */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin: 2.6rem 0 .7rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.legal h3 { font-size: 1.02rem; margin: 1.6rem 0 .4rem; }
.legal p, .legal li { font-size: .97rem; color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .45rem; }
.legal__meta {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 2rem;
}
.legal__toc {
  background: var(--paper-alt); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; margin: 0 0 2.5rem;
}
.legal__toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .legal__toc ol { columns: 1; } }
.legal__toc li { font-size: .9rem; margin-bottom: .3rem; }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal thead th {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); border-bottom: 1.5px solid var(--line);
}
.legal .scroll { overflow-x: auto; }

/* --- sticky mobile CTA ------------------------------------
   The capture card sits below the fold on phones; this keeps
   the offer one tap away. Desktop never sees it.            */
.stickybar { display: none; }
@media (max-width: 759px) {
  .stickybar {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 18px rgba(25,23,114,.09);
  }
  .stickybar span {
    font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
    letter-spacing: .03em; color: var(--deep-koamaru); line-height: 1.3;
  }
  .stickybar .btn { flex: none; }
  body { padding-bottom: 4.5rem; }
}

/* --- utilities -------------------------------------------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
