/* ============================================================
   Diaspora Readiness Score, TDA company-site design (Oct 2026)
   Matches thediasporaacademy.com: floating pill header, navy
   heroes with lattice, gold pills, cream bands, navy footer.
   Fonts are self-hosted; the folder's security policy allows no
   outside fonts or images.
   ============================================================ */
@font-face { font-family: "Agrandir"; src: url("fonts/PPAgrandirNormalVariable.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Agrandir Wide"; src: url("fonts/PPAgrandirWideVariable.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Circe"; src: url("fonts/Circe-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("fonts/PlayfairDisplay-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --navy: #04395b; --navy-deep: #02253b; --gold: #e6a038; --gold-hover: #cf8f2b;
  --teal: #0c728d; --maroon: #72164e; --cream: #fdf6e3; --mist: #eaf3f4;
  --body: #2d3238; --muted: #5f6b73; --line: #e9e0c9; --page-bg: #fff;
  --head: "Agrandir", Arial, sans-serif; --wide: "Agrandir Wide", Arial, sans-serif;
  --text: "Circe", Arial, Helvetica, sans-serif; --script: "Playfair", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
#start-cta { scroll-margin-top: 24px; }
body { font-family: var(--text); color: var(--body); font-size: 18px; line-height: 1.6; background: #fff; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--teal); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; left: -9999px; }

/* ---------- Header: the company site's floating pill ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 28px; background: #fff; }
.nav-pill { max-width: 1380px; margin: 0 auto; display: flex; align-items: center; gap: 22px; background: #fff; border-radius: 999px; padding: 10px 28px 10px 44px; box-shadow: 0 1px 8px rgba(2,37,59,.28); }
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-main { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav-main > a, .nav-drop > button { font-family: var(--head); font-size: 16px; color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.nav-main > a:hover, .nav-drop > button:hover { color: var(--gold-hover); }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ""; display: inline-block; margin-left: 8px; vertical-align: 2px; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.nav-sub { display: none; position: absolute; top: 100%; left: -14px; min-width: 250px; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 10px 28px rgba(2,37,59,.2); }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { display: block; }
.nav-sub a { display: block; padding: 8px 10px; border-radius: 8px; font-family: var(--head); font-size: 15px; color: var(--navy); text-decoration: none; }
.nav-sub a:hover { background: var(--cream); }
.nav-cta { background: var(--gold); color: var(--navy-deep); border-radius: 999px; padding: 11px 28px; font-family: var(--wide); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: var(--gold-hover); }
.nav-mobile { display: none; margin-left: auto; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 8px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
.nav-mobile-panel { position: absolute; right: 0; top: 46px; width: 260px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 10px 28px rgba(2,37,59,.25); }
.nav-mobile-panel a { display: block; padding: 10px 12px; font-family: var(--head); font-size: 15px; color: var(--navy); text-decoration: none; }
@media (max-width: 1040px) {
  .site-header { padding: 10px 12px; }
  .nav-main, .nav-cta { display: none; }
  .nav-mobile { display: block; }
  .nav-pill { padding: 6px 14px 6px 22px; }
  .nav-logo img { height: 40px; }
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--head); color: var(--navy); font-weight: 700; }
h1 { font-size: 34px; line-height: 1.12; margin-bottom: 14px; letter-spacing: -.3px; }
h2 { font-size: 28px; line-height: 1.16; margin-bottom: 14px; letter-spacing: -.2px; }
h3 { font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
.eyebrow, .section-label { font-family: var(--text); color: var(--teal); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; font-weight: 400; }
.eyebrow.gold { color: var(--gold); }
.meta { color: var(--muted); font-size: 15px; }
p + p { margin-top: 12px; }
.rule, .gold-rule { border: 0; border-top: 2px solid var(--gold); width: 74%; max-width: 420px; margin: 18px 0; }
.gold-rule { width: 72px; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary { display: block; width: 100%; text-align: center; text-decoration: none; font-family: var(--wide); font-weight: 600; font-size: 15px; letter-spacing: .4px; border-radius: 999px; cursor: pointer; padding: 17px 32px; line-height: 1.25; transition: background .15s ease, color .15s ease; }
.btn-primary { background: var(--gold); color: var(--navy-deep); border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-primary:disabled, .btn-secondary:disabled { opacity: .45; cursor: not-allowed; }
.btn-note { color: var(--muted); font-size: 15px; margin-top: 10px; }
.btn-note.small { font-size: 14px; margin-top: 4px; }
.btn-stack .btn-secondary { margin-top: 12px; }
@media (min-width: 700px) {
  .btn-primary, .btn-secondary { display: inline-block; width: auto; min-width: 240px; }
}

/* ---------- Hero: navy, lattice, gold pill, as on /quiz ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 600px at 12% 8%, #0c728d66, transparent 70%), radial-gradient(800px 600px at 92% 100%, #72164e55, transparent 70%), linear-gradient(160deg, #04395b, #02253b); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("assets/brand/world-dots.png") center 62% / 1500px auto no-repeat; opacity: .13; }
.hero::after { content: ""; position: absolute; top: -40px; right: -70px; width: 240px; height: 300px; background: url("assets/brand/lattice-web.png") 0 0 / 240px; opacity: .55; -webkit-mask-image: linear-gradient(200deg, #000 30%, transparent 92%); mask-image: linear-gradient(200deg, #000 30%, transparent 92%); }
.hero-grid { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 44px 24px 56px; display: grid; gap: 40px; }
.pill-label { display: inline-block; background: var(--gold); color: var(--navy-deep); border-radius: 999px; padding: 6px 15px; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { color: #fff; text-transform: uppercase; font-size: 36px; line-height: 1.06; }
.hero-lede { font-size: 19px; color: #f2f5f7; max-width: 560px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 22px 0 24px; font-size: 16px; }
.hero-stats b { font-family: var(--head); color: var(--gold); font-size: 22px; margin-right: 3px; }
.hero-stats .free { border: 1px solid var(--gold); border-radius: 999px; padding: 3px 14px; color: #fff; font-size: 15px; }
.hero .btn-note { color: #cfdbe3; }
.hero-pages { position: relative; height: 380px; max-width: 460px; width: 100%; margin: 0 auto; }
.hp { position: absolute; width: 56%; border-radius: 6px; box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.hp-front { left: 3%; top: 10px; transform: rotate(-5deg); z-index: 2; outline: 1px solid rgba(255,255,255,.25); }
.hp-back { right: 3%; top: 34px; transform: rotate(5deg); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: center; padding: 64px 40px 80px; gap: 50px; }
  .hero h1 { font-size: 54px; }
  .hero-pages { height: 560px; max-width: 540px; }
  .hp { width: 62%; }
}

/* ---------- Founder note ---------- */
.founder { padding: 60px 0; }
.founder-grid { max-width: 1040px; margin: 0 auto; padding: 0 24px; display: grid; gap: 34px; }
.founder-frame { position: relative; width: 230px; }
.founder-frame::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 2px solid var(--gold); z-index: -1; }
.founder-frame img { display: block; width: 100%; }
.founder { position: relative; z-index: 0; }
.founder-quote { font-size: 20px; line-height: 1.65; }
.script { display: block; font-family: var(--script); font-style: italic; color: var(--maroon); font-size: 32px; line-height: 1.2; margin-bottom: 10px; }
.founder-sig { display: block; height: 84px; width: auto; margin-top: 14px; }
@media (min-width: 800px) { .founder-grid { grid-template-columns: 260px 1fr; align-items: center; gap: 56px; } .founder { padding: 84px 0; } }

/* ---------- Bands ---------- */
.band { padding: 60px 0; position: relative; }
.band-cream { background: var(--cream); }
.band-navy { background: linear-gradient(160deg, #04395b, #02253b); color: #fff; }
.band-navy h2 { color: #fff; }
.band-navy .btn-note { color: #cfdbe3; }
.lattice-right { overflow: hidden; }
.lattice-right::after { content: ""; position: absolute; top: -30px; right: -60px; width: 220px; height: 240px; background: url("assets/brand/lattice-web.png") 0 0 / 220px; opacity: .9; }
.lattice-right .wrap { position: relative; z-index: 1; }
.lattice-right::after { -webkit-mask-image: linear-gradient(200deg, #000 35%, transparent 90%); mask-image: linear-gradient(200deg, #000 35%, transparent 90%); }
@media (max-width: 760px) { .lattice-right::after { width: 130px; height: 150px; background-size: 130px; opacity: .55; right: -30px; } }
@media (min-width: 700px) { h1 { font-size: 42px; } h2 { font-size: 36px; } .band { padding: 84px 0; } }
.dims { display: grid; gap: 16px; margin-top: 26px; }
.dim { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.dim p { font-size: 17px; }
.num { display: inline-block; font-family: var(--head); font-weight: 700; color: var(--navy); border: 1.5px solid var(--gold); border-radius: 999px; padding: 2px 13px; font-size: 13px; margin-bottom: 12px; }
@media (min-width: 760px) { .dims { grid-template-columns: repeat(6, 1fr); } .dim { grid-column: span 2; } .dim:nth-child(4), .dim:nth-child(5) { grid-column: span 3; } }

/* ---------- Featured result pages ---------- */
.page-gallery { display: flex; gap: 20px; margin: 30px -24px 0; padding: 4px 24px 18px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.page-card { flex: 0 0 72%; max-width: 300px; scroll-snap-align: center; }
.page-card img { display: block; width: 100%; border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.page-card figcaption { margin-top: 12px; font-size: 15px; color: #dfe7ec; }
@media (min-width: 1000px) { .page-gallery { overflow: visible; margin: 34px 0 0; padding: 0; } .page-card { flex: 1 1 0; max-width: none; } }

/* ---------- Walk away / built for ---------- */
.two-col { display: grid; gap: 34px; }
.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 38px; margin: 18px 0; font-size: 19px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); }
.checklist li::after { content: ""; position: absolute; left: 8px; top: 9px; width: 7px; height: 11px; border: solid var(--navy-deep); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.built-for { background: var(--mist); border-radius: 18px; padding: 30px; font-size: 19px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; } }
.why { font-size: 20px; max-width: 760px; }

/* ---------- Testimonials ---------- */
.testimonial-slider { position: relative; overflow: hidden; margin-top: 26px; }
.testimonial-track { display: flex; transition: transform .55s ease; }
.testimonial { flex: 0 0 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.testimonial p { font-family: var(--script); font-style: italic; color: var(--navy); font-size: 21px; line-height: 1.5; }
.testimonial cite { display: block; margin-top: 16px; font-style: normal; color: var(--teal); font-size: 16px; }
.testimonial cite strong { font-family: var(--head); color: var(--navy); }
.testimonial-dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.tdot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #e2d7b9; cursor: pointer; padding: 0; }
.tdot.active { background: var(--gold); }
@media (min-width: 700px) { .testimonial { padding: 38px 48px; } .testimonial p { font-size: 25px; } }
.final-cta { text-align: center; overflow: hidden; }
.final-cta .wrap { position: relative; }
.final-cta h2 { margin-bottom: 24px; }

/* ---------- Footer: matches the company site ---------- */
.site-footer { background: linear-gradient(120deg, #04395b, #02253b); color: #fff; padding: 56px 24px 22px; font-size: 16px; }
.foot-grid { max-width: 1240px; margin: 0 auto; display: grid; gap: 34px; }
.foot-brand img { width: 190px; display: block; margin-left: -14px; }
.foot-tag { font-family: var(--script); font-style: italic; color: var(--gold); margin-top: 8px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 14px; }
.site-footer h4 { font-family: var(--head); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.site-footer h4.gold { color: var(--gold); font-size: 23px; line-height: 1.15; }
.site-footer a { color: #fff; }
.foot-grid > div:not(.foot-brand) a { display: block; margin: 7px 0; }
.foot-news p { font-size: 15px; margin-bottom: 14px; }
.foot-news input { width: 100%; background: transparent; color: #fff; border: 0; border-bottom: 1px solid #fff; padding: 12px 14px; font-family: var(--text); font-size: 15px; }
.foot-news input::placeholder { color: #cfdbe3; }
.foot-news button { width: 100%; margin-top: 12px; background: var(--gold); color: var(--navy-deep); border: 0; padding: 13px; font-family: var(--head); font-weight: 700; font-size: 15px; cursor: pointer; }
.foot-legal { max-width: 1240px; margin: 34px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.35); text-align: right; font-size: 14px; color: #dfe7ec; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.1fr .8fr .9fr 1.4fr; gap: 44px; } }

/* ---------- Cookie card ---------- */
.cookie-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 9999; max-width: 380px; background: #fff; color: var(--navy-deep); border-top: 6px solid var(--gold); border-radius: 16px; padding: 18px 20px; box-shadow: 0 14px 40px rgba(2,37,59,.3); display: none; }
.cookie-banner.show { display: block; }
.cookie-banner .wrap { padding: 0; display: block; }
.cookie-banner p { font-size: 15px; line-height: 1.45; margin-bottom: 12px; }
.cookie-banner a { color: var(--navy); }
.cookie-banner .cookie-btns { display: flex; gap: 10px; }
.cookie-banner button { flex: 1; font-family: var(--wide); font-weight: 600; font-size: 13px; border-radius: 999px; padding: 11px 14px; cursor: pointer; border: 2px solid var(--gold); }
.cookie-accept { background: var(--gold); color: var(--navy-deep); }
/* compact cookie card on phones */
@media (max-width: 640px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 12px 14px; border-top-width: 4px; } .cookie-banner p { font-size: 13px; margin-bottom: 8px; } .cookie-banner button { padding: 8px 12px; font-size: 12px; } }
.cookie-decline { background: #fff; color: var(--navy); border-color: var(--navy) !important; }

/* ---------- Assessment and results pages ---------- */
body[data-page="assess"] main, body[data-page="results"] main, .legal-body-page main { background: var(--cream); padding: 40px 0 70px; --page-bg: var(--cream); }
body[data-page="assess"] main .wrap, body[data-page="results"] main .wrap { max-width: 820px; }
body[data-page="assess"] h1 { font-size: 34px; }
.banner-photo { display: block; width: 100%; border-radius: 16px; object-fit: cover; }
.photo { display: block; width: 100%; border-radius: 16px; object-fit: cover; }
.field-group { margin-bottom: 18px; }
.field-group label { display: block; font-family: var(--head); font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 16px; }
.field-group input[type=text], .field-group input[type=email] { width: 100%; padding: 14px 16px; font-size: 17px; font-family: var(--text); border: 1px solid #cfc7ae; border-radius: 10px; background: #fff; color: var(--body); }
.field-group input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field-error { color: #b91c1c; font-size: 14px; margin-top: 6px; display: none; }
.consent-group { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 18px 0; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.consent-row:last-child { margin-bottom: 0; }
.consent-row input[type=checkbox] { margin-top: 4px; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--gold); }
.consent-row label { font-size: 15px; line-height: 1.5; }
.progress-track { background: #fff; border: 1px solid var(--line); border-radius: 999px; height: 12px; overflow: hidden; margin: 8px 0 10px; }
.progress-fill { background: var(--gold); height: 100%; width: 0%; border-radius: 999px; transition: width .3s ease; }
.progress-count { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.domain-label { color: var(--teal); font-size: 13.5px; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 8px; }
.question-stem { font-family: var(--head); color: var(--navy); font-size: 25px; line-height: 1.25; font-weight: 700; margin-bottom: 22px; }
.option-btn { display: block; width: 100%; text-align: left; font-family: var(--text); font-size: 17px; line-height: 1.45; color: var(--body); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.option-btn:hover { border-color: var(--gold); }
.option-btn.selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.assess-nav { display: flex; gap: 12px; margin-top: 22px; }
.assess-nav .btn-secondary { flex: 0 0 38%; min-width: 0; }
.assess-nav .btn-primary { flex: 1; min-width: 0; }
.save-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 15px; }
.save-note .link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--teal); font-family: var(--text); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.save-note span { margin-left: 6px; }
.resume-banner, .saved-link-box { background: #fff; border: 1px solid var(--gold); border-radius: 12px; padding: 12px 18px; margin-bottom: 16px; color: var(--navy); font-size: 16px; }
.saved-link-label { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.saved-link { word-break: break-all; color: var(--teal); }

.score-hero { display: flex; align-items: center; gap: 28px; background: linear-gradient(150deg, #04395b, #02253b); color: #fff; border-radius: 20px; padding: 30px; margin: 22px 0 8px; }
.score-badge { flex: 0 0 auto; width: 148px; height: 148px; border-radius: 50%; border: 8px solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; color: #fff; }
.score-badge #score-number { font-size: 48px; line-height: 1; }
.score-badge .score-outof { font-size: 13px; color: #cfdbe3; margin-top: 4px; }
.score-caption-label { color: var(--gold); text-transform: uppercase; letter-spacing: 1.6px; font-size: 13px; }
.score-level { font-family: var(--head); color: #fff; font-size: 30px; font-weight: 700; text-transform: uppercase; margin-top: 4px; line-height: 1.1; }
.score-desc { font-size: 17px; line-height: 1.5; margin-top: 10px; color: #eef3f6; }
@media (max-width: 600px) { .score-hero { flex-direction: column; text-align: center; gap: 16px; padding: 26px 22px; } }
.results-teaser { position: relative; max-height: 190px; overflow: hidden; margin: 8px 0 18px; }
.results-teaser #teaser-text { font-size: 19px; line-height: 1.55; }
.results-teaser::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, rgba(253,246,227,0), var(--page-bg)); pointer-events: none; }
.result-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 14px 0; }
.result-card h3 { font-size: 18px; }
.result-card p { font-size: 17px; line-height: 1.5; }
.card-lock { color: var(--muted); margin-top: 8px; font-size: 14px !important; }
.card-full { margin-top: 10px; }
.badge { border-radius: 999px; padding: 6px 14px; font-family: var(--head); font-weight: 700; font-size: 13px; white-space: nowrap; }
.badge-Discovering { background: var(--teal); color: #fff; }
.badge-Designing { background: var(--gold); color: var(--navy-deep); }
.badge-Building { background: var(--navy); color: #fff; }
@media (max-width: 699px) { .result-card { flex-direction: column; } }
.challenge-item { margin: 16px 0; }
.challenge-label { font-family: var(--head); color: var(--navy); font-weight: 700; font-size: 18px; margin-bottom: 2px; }
.retake-note { margin: 28px auto 8px; color: var(--muted); font-size: 16px; text-align: center; max-width: 60ch; }
.nextmove { background: #fff; border: 1.5px solid var(--gold); border-radius: 18px; padding: 28px; margin: 26px 0; }
.pdf-gate { background: var(--navy); color: #fff; border-radius: 18px; padding: 30px; margin: 26px 0; }
.pdf-gate h2 { color: #fff; font-size: 24px; }
.pdf-gate a { color: var(--gold); }
.pdf-gate .btn-primary { color: var(--navy-deep); }
.pdf-gate .btn-note { color: #cfdbe3; }
.pdf-gate label { color: #fff !important; }
.pdf-gate .btn-secondary { color: #fff; border-color: #fff; }
.pdf-gate .btn-secondary:hover { background: #fff; color: var(--navy); }
.pdf-or { text-align: center; color: #cfdbe3; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin: 16px 0; }
.btn-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-stack .btn-secondary, .btn-stack .btn-primary { margin: 0 !important; }
.btn-stack .btn-note { flex-basis: 100%; }

/* Legal pages */
.legal-body h2 { margin-top: 28px; font-size: 22px; }
.legal-body h3 { margin-top: 20px; }
.legal-body p, .legal-body li { font-size: 16px; margin-top: 10px; }
.legal-body ul { margin: 8px 0 8px 22px; }
.legal-draft { background: #fff4d6; border: 2px solid var(--gold); border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: 14px; color: #7a5a12; }

/* Scroll reveal */
.reveal-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .22s; } .reveal.d4 { transition-delay: .3s; } .reveal.d5 { transition-delay: .38s; }
@media (prefers-reduced-motion: reduce) { .reveal-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
@media print { .no-print { display: none !important; } }

/* Results: same formula as the PDF workbook */
.result-card { display: block; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-full { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 4px; }
.card-full summary { cursor: pointer; font-family: var(--head); font-weight: 700; color: var(--teal); font-size: 15px; padding: 12px 0; }
.card-kicker { font-family: var(--text); color: var(--teal); font-size: 13px !important; letter-spacing: 1.6px; text-transform: uppercase; margin: 20px 0 6px; }
.card-source { color: var(--muted); font-size: 14px !important; margin-top: 6px; }
.frame-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.frame-tile { background: var(--cream); border-top: 3px solid var(--gold); border-radius: 10px; padding: 14px; }
.frame-tile h4 { font-family: var(--head); color: var(--navy); font-size: 15px; margin: 0 0 6px; }
.frame-tile p { font-size: 15px !important; line-height: 1.45; }
.card-ask { background: var(--mist); border-radius: 12px; padding: 4px 18px 16px; margin-top: 20px; }
.card-ask p { margin-top: 8px; }
.card-ask .card-kicker { margin-top: 14px; }
.card-moves { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card-moves ol { margin: 0; padding-left: 20px; }
.card-moves li { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
.define-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
.define-tool { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 14px; padding: 20px; }
.define-teal { border-top-color: var(--teal); }
.define-tool h3 { font-size: 16px; margin-bottom: 10px; }
.define-tool p { font-size: 16px; line-height: 1.4; padding: 8px 0; border-bottom: 1px solid var(--line); }
.define-tool p:last-child { border-bottom: 0; }
.next-steps { margin-top: 32px; }
.step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.step-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 14px; padding: 22px; }
.step-num { font-family: var(--head); font-weight: 700; color: var(--gold); font-size: 22px; line-height: 1; }
.step-card h3 { font-size: 17px; }
.step-card p { font-size: 16px; line-height: 1.45; flex: 1 1 auto; }
.step-card .btn-note { flex: none; color: var(--teal); font-weight: 700; }
.step-card .btn-secondary { display: block; width: 100%; min-width: 0; margin-top: 8px; }
@media (max-width: 699px) {
  .card-top { flex-direction: column; }
  .frame-tiles, .card-moves, .define-tools, .step-grid { grid-template-columns: 1fr; }
}
@media print { .card-full { display: block !important; } }
.results-teaser.is-open { max-height: none; overflow: visible; }
.results-teaser.is-open::after { display: none; }
