/* Hentrad website: shared styles for the inner pages (public/site/*.html).
   The home page has its own (home.css); both follow the same idea, after
   joinoutsmart.com: one bold blue, white and soft-grey panels, black pill
   buttons, a chunky slanted wordmark, and Doji keeping you company. */
:root {
  color-scheme: light;
  --blue: #2F5BFF;
  --blue-deep: #1B3BCC;
  --blue-soft: #E1E8FF;
  --ink: #14182A;
  --grey: #F0F1F4;
  --soft: #F6F4F1;
  --card: #FFFFFF;
  --muted: #5A6075;
  --gold: #FFC83D;
  --green: #2FAE66;
  --green-deep: #1C8048;
  --red: #E5484D;
  --line: rgba(20, 24, 42, 0.10);
  --on-blue: #FFFFFF;
  --on-blue-muted: rgba(255, 255, 255, 0.82);
  --navy-line: rgba(20, 24, 42, 0.08); /* kept for older inline styles */
  --display: "Outfit", system-ui, sans-serif;
  --body: "Outfit", system-ui, sans-serif;
  --figures: "Outfit", "Segoe UI", system-ui, sans-serif; /* numbers: the body font, every digit the same width */
  --wordmark: "Fredoka", system-ui, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 18px 40px -24px rgba(20, 24, 42, 0.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--grey); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.mono { font-family: var(--figures); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; z-index: 200; top: 12px; left: 12px; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink); }
.wm { font-family: var(--wordmark); font-weight: 700; letter-spacing: -0.03em; display: inline-block; transform: skewX(-9deg); text-decoration: none; }

/* ---------- Buttons: black pills ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 14px; font-family: var(--display); font-size: 17px; font-weight: 600; text-decoration: none; border: 0; cursor: var(--pointer); transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), background .2s; }
.btn:hover { transform: scale(1.05); }
.btn-go { background: #0B0D14; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.on-blue .btn-ghost, .on-navy .btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header: over the blue, a white bar once you scroll ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 18px clamp(16px, 3vw, 36px); color: #fff; transition: background .3s, box-shadow .3s, color .3s, padding .3s; }
.nav.scrolled { background: rgba(255, 255, 255, 0.94); color: var(--ink); box-shadow: 0 10px 30px -18px rgba(20, 24, 42, .35); padding-block: 12px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-logo { font-size: 32px; color: inherit; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 16px; font-weight: 600; }
.nav-links a { text-decoration: none; opacity: .9; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: var(--gold); }
.nav-login { font-size: 16px; font-weight: 600; text-decoration: none; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15.5px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, 0.16); color: inherit; cursor: var(--pointer); }
.nav.scrolled .menu-btn { background: var(--grey); }
.menu-btn span { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: currentColor; margin: 4px auto; }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--blue); color: #fff; padding: 100px 24px 40px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-100%); transition: transform .5s var(--ease); overflow-y: auto; }
.menu.open { transform: none; }
.menu a { font-size: 38px; font-weight: 700; letter-spacing: -0.035em; text-decoration: none; padding: 6px 0; }
.menu a[aria-current="page"] { color: var(--gold); }
.menu .btn { font-size: 18px; }
.menu .social { margin-top: 24px; }
@media (max-width: 900px) {
  .nav-links, .nav-login, .nav > .btn { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Page hero: one bold blue, Doji on the ledge ---------- */
.page-hero, .legal-hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding-block: 150px 120px; border-radius: 0 0 56px 56px; isolation: isolate; }
.page-hero::after, .legal-hero::after { content: ""; position: absolute; right: max(20px, 7%); bottom: -4px; width: 200px; height: 164px; background: url("/brand/doji/peek.svg") bottom center / contain no-repeat; z-index: -1; }
.crumb { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.crumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.page-hero h1, .legal-hero h1 { margin-top: 18px; font-size: clamp(52px, 8.4vw, 112px); line-height: .94; letter-spacing: -0.05em; }
.legal-hero h1 { font-size: clamp(44px, 7vw, 88px); }
.page-hero h1 .line { display: block; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.js .page-hero h1 .line > span { display: inline-block; animation: rise .9s var(--ease) both; }
.js .page-hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.lede { margin-top: 24px; max-width: 34em; font-size: 20px; line-height: 1.5; color: var(--on-blue-muted); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; max-width: calc(100% - 200px); }
.jump a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); transition: background .2s; }
.jump a:hover { background: rgba(255, 255, 255, 0.26); }
.legal-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 13.5px; font-weight: 600; }
.legal-meta span { padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); }

/* ---------- Colour blocks ---------- */
.on-paper { background: #fff; color: var(--ink); }
.on-navy, .on-blue { background: var(--blue); color: #fff; }
.on-green { background: var(--gold); color: var(--ink); }
.page-hero + .on-paper, .page-hero + .on-navy, .page-hero + .chapter { margin-top: -56px; padding-top: 56px; }
.on-paper + .on-navy, div.on-navy { border-radius: 56px 56px 0 0; }
.on-navy + .cta-band { margin-top: 0; }
section.chapter { padding-block: 110px; position: relative; }
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: 50px; }
.chapter-head h2 { font-size: clamp(42px, 6vw, 80px); }
.chapter-head p { font-size: 18.5px; max-width: 30em; }
.on-paper .chapter-head p, .on-paper .muted { color: var(--muted); }
.on-blue .chapter-head p, .on-navy .chapter-head p { color: var(--on-blue-muted); }
.on-green .chapter-head p { color: rgba(20, 24, 42, 0.75); }

/* Reveal (pages are complete at rest; script only adds motion) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Long-form blocks ---------- */
.block { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; padding-block: 90px; border-top: 1px solid var(--line); }
.on-navy .block, .block.on-navy { border-color: rgba(255, 255, 255, 0.18); }
.block:first-child { border-top: 0; }
.block-side { position: sticky; top: 110px; align-self: start; }
.block-side .num { font-size: clamp(60px, 8vw, 110px); font-weight: 800; letter-spacing: -0.06em; line-height: .85; color: var(--blue); }
.on-navy .block-side .num { color: var(--gold); }
.block-side h2 { margin-top: 16px; font-size: clamp(34px, 4.4vw, 56px); }
.block-side .when { margin-top: 12px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.on-navy .block-side .when { color: var(--gold); }
.block-body > p { font-size: 19px; max-width: 36em; }
.block-body > p + p { margin-top: 16px; }
.on-paper .block-body > p { color: #2E3448; }
.on-navy .block-body > p { color: var(--on-blue-muted); }
.on-navy .block-body a { color: var(--gold) !important; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 30px; }
.fact { padding: 22px; border-radius: 24px; background: var(--soft); box-shadow: var(--shadow); }
.on-navy .fact { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.fact b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.fact span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.on-navy .fact span { color: var(--on-blue-muted); }
.fact.hl { background: var(--blue); color: #fff; }
.fact.hl span { color: rgba(255, 255, 255, .85); }
.fact.go { background: var(--gold); color: var(--ink); }
.fact.go span { color: rgba(20, 24, 42, .75); }

.checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--soft); font-size: 17px; }
.on-navy .checks li { background: rgba(255, 255, 255, 0.12); }
.checks li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }
.on-navy .checks li::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314182A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.checks li strong { font-weight: 700; }
.checks.x li::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Curriculum areas */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.area { padding: 22px; border-radius: 24px; background: var(--soft); transition: transform .3s var(--ease); }
.area:hover { transform: translateY(-4px) rotate(-.4deg); }
.area .tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-deep); }
.area ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.area li { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.area.cap { grid-column: 1 / -1; background: var(--blue); color: #fff; }
.area.cap .tag { background: var(--gold); color: var(--ink); }

/* Year timeline */
.year { margin-top: 40px; max-width: calc(100% - 200px); }
.year-bar { display: flex; height: 60px; border-radius: 16px; overflow: hidden; }
.year-bar > div { display: flex; align-items: center; padding-inline: 14px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; }
.year-bar .y1 { flex: 2; background: #fff; color: var(--blue-deep); }
.year-bar .y2 { flex: .6; background: var(--gold); color: var(--ink); }
.year-bar .y3 { flex: 1; background: #9DB4FF; color: var(--ink); }
.year-bar .y4 { flex: 49; background: var(--green); color: #fff; }
.js .year-bar > div { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.js .year.in .year-bar > div { transform: none; }
.year-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--on-blue-muted); }

/* ---------- Rules: try the line ---------- */
.rules { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.rules-side { display: flex; flex-direction: column; gap: 20px; }
.panel { border-radius: 30px; padding: 28px; background: rgba(255, 255, 255, 0.12); }
.panel h3 { font-size: 30px; }
.panel > p { margin-top: 10px; color: var(--on-blue-muted); font-size: 16.5px; }
.play-line { margin-top: 26px; }
.play-head { display: flex; justify-content: space-between; align-items: baseline; }
.play-head .pnl { font-family: var(--figures); font-size: 40px; font-weight: 600; }
.track { position: relative; height: 16px; border-radius: 999px; background: rgba(20, 24, 42, 0.3); margin-top: 14px; }
.track .fill { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-radius: 999px; background: var(--gold); transition: left .5s var(--ease), width .5s var(--ease), background .3s; }
.track .zero { position: absolute; top: -5px; bottom: -5px; left: 50%; width: 2px; background: #fff; opacity: .6; }
.track .dot { position: absolute; top: -7px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: #fff; border: 5px solid var(--gold); transition: left .5s var(--ease), border-color .3s; }
.scale { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--figures); font-size: 13px; color: var(--on-blue-muted); }
.play-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pbtn { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; font-family: var(--display); font-weight: 600; font-size: 16px; cursor: var(--pointer); transition: background .2s, transform .15s; }
.pbtn:hover { background: rgba(255, 255, 255, 0.28); }
.pbtn:active { transform: scale(.96); }
.pbtn:disabled { opacity: .45; cursor: not-allowed; }
.pbtn.reset { background: #0B0D14; color: #fff; }
.verdict { margin-top: 16px; min-height: 50px; padding: 13px 16px; border-radius: 16px; background: rgba(20, 24, 42, 0.25); font-size: 16px; }
.days { display: flex; gap: 10px; margin-top: 24px; }
.day { flex: 1; aspect-ratio: 1; max-width: 72px; border-radius: 18px; border: 2px dashed rgba(255, 255, 255, 0.55); background: transparent; color: #fff; font-family: var(--figures); font-size: 12px; font-weight: 600; cursor: var(--pointer); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background .25s, transform .15s; }
.day:active { transform: scale(.94); }
.day.win { background: var(--gold); color: var(--ink); border: 2px solid var(--gold); }
.day.loss { background: var(--red); border: 2px solid var(--red); }
.day small { font-size: 10px; opacity: .8; }
.stairs svg { width: 100%; height: auto; overflow: visible; }
.stairs .step { transform-box: fill-box; transform-origin: bottom; transition: transform 1s var(--ease); }
.js .stairs .step { transform: scaleY(.05); }
.js .stairs.in .step { transform: none; }

/* Specs, tickets, symbols */
.spec { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 16.5px; }
.spec th, .spec td { text-align: left; padding: 15px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.on-navy .spec th, .on-navy .spec td { border-color: rgba(255, 255, 255, 0.18); }
.spec th { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.on-navy .spec th { color: var(--on-blue-muted); }
.spec td.mono { font-weight: 600; white-space: nowrap; }
.spec .badge-name { font-weight: 700; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.symbols { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sym { font-family: var(--figures); font-weight: 600; font-size: 15px; padding: 11px 16px; border-radius: 14px; background: var(--soft); }
.on-navy .sym { background: rgba(255, 255, 255, 0.14); }
.sym small { font-family: var(--body); font-weight: 400; color: var(--muted); margin-left: 6px; }
.on-navy .sym small { color: var(--on-blue-muted); }
.ticket { margin-top: 30px; border-radius: 26px; padding: 22px; background: var(--soft); }
.on-navy .ticket { background: rgba(255, 255, 255, 0.12); }
.ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row .st { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 10px; background: rgba(47, 174, 102, .15); color: var(--green-deep); }
.js .ticket .ticket-row { opacity: .25; transition: opacity .5s; }
.js .ticket.in .ticket-row { opacity: 1; }

/* ---------- Profit share ---------- */
.share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.split { display: flex; height: 96px; border-radius: 24px; overflow: hidden; font-weight: 800; font-size: 22px; box-shadow: var(--shadow); }
.split > div { display: flex; align-items: center; padding: 0 22px; transition: flex-grow 1.4s var(--ease); white-space: nowrap; overflow: hidden; flex-basis: 0; min-width: 0; } /* widths follow the shares, not the labels */
.split .t { flex-grow: 75; background: var(--blue); color: #fff; }
.split .r { flex-grow: 5; background: #fff; color: var(--ink); justify-content: center; padding: 0; }
.split .c { flex-grow: 20; background: rgba(20, 24, 42, 0.12); color: var(--ink); justify-content: center; padding: 0 6px; }
.js .split:not(.in) .t, .js .split:not(.in) .r { flex-grow: 0.001; }
.js .split:not(.in) .c { flex-grow: 100; }
.key { display: grid; gap: 12px; margin-top: 22px; font-size: 17px; }
.weeks { border-radius: 24px; background: var(--soft); padding: 8px; }
.wk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 12px; align-items: center; padding: 16px; }
.wk + .wk { border-top: 1px solid var(--line); }
.wk .mono { font-size: 17px; font-weight: 600; }
.wk .yes { color: var(--green-deep); }
.wk span { font-size: 15px; color: var(--muted); }
.calc { margin-top: 30px; border-radius: 28px; padding: 26px; background: var(--blue); color: #fff; }
.calc label { display: block; font-size: 16px; color: var(--on-blue-muted); }
.calc output { display: block; font-family: var(--figures); font-size: 44px; font-weight: 600; margin-top: 6px; }
.calc input[type=range] { width: 100%; margin-top: 16px; accent-color: var(--gold); height: 28px; }
.calc-scale { display: flex; justify-content: space-between; font-family: var(--figures); font-size: 12.5px; color: var(--on-blue-muted); }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.calc-out div { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); }
.calc-out b { display: block; font-family: var(--figures); font-size: 24px; font-weight: 600; color: var(--gold); }
.calc-out span { font-size: 14px; color: var(--on-blue-muted); }
.calc-note { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(20, 24, 42, 0.2); font-size: 16px; min-height: 52px; }

/* ---------- Questions ---------- */
.faq { max-width: 880px; }
.faq-group + .faq-group { margin-top: 60px; }
.faq-group > h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.faq details { margin-top: 12px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: var(--pointer); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; transition: transform .3s var(--ease), background .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--gold); }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 46em; }
.safe { margin-top: 30px; padding: 22px; border-radius: 22px; background: #FFF1F1; color: var(--ink); font-size: 17px; }
.safe strong { color: #B4292E; }
.nots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.nots li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }

/* Contact list */
.contact-list { margin: 0; display: grid; }
.contact-list > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.contact-list dt { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; padding-top: 3px; }
.contact-list dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 2px solid var(--gold); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-weight: 700; font-size: 18px; text-decoration: none; padding-bottom: 4px; border-bottom: 3px solid currentColor; }

/* ---------- Closing call to action (light grey, like the home page) ---------- */
.cta-band, .cta-band.on-navy { background: var(--grey); color: var(--ink); padding-block: 110px 40px; text-align: center; border-top: 0 !important; }
.cta-band::before { content: ""; display: block; width: 180px; height: 148px; margin: 0 auto 10px; background: url("/brand/doji/wave.svg") bottom center / contain no-repeat; }
.cta-band h2 { font-size: clamp(42px, 6vw, 80px); letter-spacing: -0.05em; }
.cta-band p { margin: 18px auto 0; max-width: 30em; font-size: 19px; color: var(--muted); }
.cta-band .hero-ctas, .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.cta-band .btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }

/* ---------- Footer: one line, a giant wordmark ---------- */
.footer { background: var(--grey); color: var(--ink); padding: 60px 20px 36px; overflow: hidden; }
.footer .giant { display: block; text-align: center; font-size: min(23vw, 330px); line-height: .82; color: var(--blue); white-space: nowrap; margin-top: 10px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 50px; font-size: 15px; }
.foot h4 { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: #2E3448; }
.foot a:hover { color: var(--blue); }
.foot p { color: var(--muted); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(20, 24, 42, .4); transition: transform .2s; }
.social a:hover { transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.menu .social a { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.foot .social { margin-top: 18px; }
.follow-label:has(+ .safe) { display: none; }

/* ---------- Legal documents ---------- */
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 70px 100px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14.5px; }
.toc p { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); transition: background .2s, color .2s; }
.toc a:hover { background: #fff; color: var(--ink); }
.toc a.on { color: #fff; background: var(--blue); }
.doc { max-width: 760px; padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: #fff; box-shadow: var(--shadow); font-size: 17px; line-height: 1.7; color: #2E3448; }
.doc h2 { font-size: 28px; color: var(--ink); margin: 50px 0 14px; scroll-margin-top: 100px; display: flex; gap: 14px; align-items: baseline; }
.doc h2:first-child { margin-top: 0; }
.doc h2 .n { font-family: var(--figures); font-size: 14px; color: var(--blue); letter-spacing: 0; }
.doc h3 { font-size: 20px; color: var(--ink); margin: 26px 0 8px; letter-spacing: -0.02em; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0; padding-left: 22px; display: grid; gap: 6px; }
.doc a { color: var(--blue-deep); }
.doc strong { color: var(--ink); }
.doc .callout { margin: 22px 0; padding: 18px 20px; border-radius: 18px; background: var(--soft); border-left: 4px solid var(--blue); }
.doc .callout.warn { border-left-color: var(--red); background: #FFF1F1; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.doc .contact-list > div { border-color: var(--line); }
.doc .contact-list a { border-bottom-color: var(--blue); }
.legal-nav { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a { font-size: 14.5px; font-weight: 600; text-decoration: none; padding: 9px 14px; border-radius: 12px; background: var(--soft); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* The old site's custom cursor is retired: the real one is clearer. */
.cursor-dot, .cursor-ring { display: none !important; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label { cursor: auto; }
.has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label { cursor: var(--pointer); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .chapter-head, .rules, .share { grid-template-columns: minmax(0, 1fr); }
  .block { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 64px; }
  .block-side { position: static; }
  .page-hero, .legal-hero { padding-block: 120px 150px; }
  .page-hero::after, .legal-hero::after { width: 150px; height: 123px; }
  .jump, .year { max-width: none; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px 70px; }
  .toc { position: static; padding: 18px; border-radius: 22px; background: #fff; }
}
@media (max-width: 600px) {
  section.chapter { padding-block: 76px; }
  .areas, .calc-out { grid-template-columns: minmax(0, 1fr); }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .year-bar > div { font-size: 0; padding: 0; }
  .calc output { font-size: 36px; }
  .nots { grid-template-columns: minmax(0, 1fr); }
  .split { font-size: 17px; height: 78px; }
  .split > div { padding: 0 14px; }
  .split .c { padding: 0 4px; }
  .split .who { display: none; }
  .split .r { font-size: 11px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .ticket .ticket-row { opacity: 1; transform: none; }
  .js .stairs .step, .js .year-bar > div { transform: none; }
}

/* ---------- The invite page (/join/CODE) ---------- */
.join-hero { padding: 120px 0 72px; }
.join-wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .join-wrap { grid-template-columns: minmax(0, 1fr) 320px; } }
.join-card { background: #fff; color: var(--ink); border-radius: 32px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.join-who { display: flex; align-items: center; gap: 14px; }
.join-avatar { width: 64px; height: 64px; border-radius: 20px; overflow: hidden; flex-shrink: 0; }
.join-who .eyebrow { color: var(--blue); }
.join-card h1 { font-size: clamp(38px, 6vw, 62px); }
.join-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.join-points li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--grey); font-size: 15.5px; line-height: 1.45; }
.join-points b { font-family: var(--display); }
.join-cta { align-self: stretch; min-height: 62px; font-size: 19px; background: #0B0D14; }
.join-small { font-size: 14px; color: var(--muted); text-align: center; }
.join-small a { color: var(--blue); font-weight: 600; }
.join-doji { width: 100%; max-width: 300px; justify-self: center; filter: drop-shadow(0 24px 30px rgba(11, 13, 20, .25)); animation: join-bob 3.2s ease-in-out infinite; }
@keyframes join-bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.join-more { padding: 72px 0 120px; }
.join-more h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 24px; }
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.join-steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 16.5px; line-height: 1.5; }
.join-steps .num { width: 38px; height: 38px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.join-risk { margin-top: 28px; font-size: 14px; color: var(--muted); }
.join-dock { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -10px 30px -18px rgba(20, 24, 42, .35); display: flex; justify-content: center; transform: translateY(110%); transition: transform .3s var(--ease); }
.join-dock .btn { width: 100%; max-width: 520px; min-height: 58px; }
.join-page.docked .join-dock { transform: none; }
.join-page { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .join-doji { animation: none; } }
.join-who .eyebrow { text-transform: none; letter-spacing: 0.02em; font-size: 15px; }
@media (max-width: 520px) { .join-points li { grid-template-columns: 1fr; gap: 2px; } }
.symbols .sym-kind { flex-basis: 100%; margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.symbols .sym-kind:first-child { margin-top: 0; }
.sym small { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); }

/* Paper grain over everything, as on joinoutsmart.com */
body::after{content:"";position:fixed;inset:0;z-index:100;pointer-events:none;opacity:.07;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
.rate-box { margin-top: 26px; padding: 20px 22px; border-radius: 20px; background: var(--soft); display: grid; gap: 8px; }
.rate-box p { margin: 0; }
.rate-now { font-size: 18px; }
.rate-now span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.rate-now:empty { display: none; }

/* The candle cursor: the website only, and only with a mouse or trackpad.
   Gold over anything you can click; fields keep the normal text cursor. */
:root { --pointer: pointer; }
@media (hover: hover) and (pointer: fine) {
  :root { --pointer: url("/brand/cursor/candle-link.svg") 12 1, url("/brand/cursor/candle-link.png") 12 1, pointer; }
  html { cursor: url("/brand/cursor/candle.svg") 12 1, url("/brand/cursor/candle.png") 12 1, auto; }
  a, button, summary, label, select, [role="button"], input[type="range"], input[type="checkbox"], input[type="radio"] { cursor: var(--pointer); }
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), textarea { cursor: text; }
}
