/* MegaYatzy marketing + legal pages. Static, no third-party requests.
   Tokens follow DESIGN.md: Cobalt #2C4DFF with white label, accent text #2440D9 (light) / #8FA4FF (dark),
   matte ivory dice with dark pips. Fonts are the system stack: pages make no font requests. */

:root {
  color-scheme: light dark;
  --bg: #F6F4EF; --bg2: #EFEBE1; --surface: #FDFCFA; --border: #E4E0D6; --hairline: #EDE9E0;
  --text: #23211C; --text2: #5C584E; --text3: #6E6A5F;
  --fill: #2C4DFF; --onfill: #FFFFFF; --accent: #2440D9; --accent-soft: rgba(44,77,255,.12);
  --ocean: #2FB6E8; --focus: #0B5C80;
  --table-a: #DFE6EC; --table-b: #C2CDD8; --table-edge: #B3C0CD; --glow: rgba(255,255,255,.75);
  --shadow: 0 1px 2px rgba(35,19,1,.06), 0 18px 40px -18px rgba(35,19,1,.28);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17150F; --bg2: #13110C; --surface: #201D16; --border: #332F25; --hairline: #2A271E;
    --text: #F2EEE4; --text2: #A8A192; --text3: #918A7A;
    --accent: #8FA4FF; --accent-soft: rgba(143,164,255,.16); --focus: #7CD3F3;
    --table-a: #2A2E2B; --table-b: #171A18; --table-edge: #353B37; --glow: rgba(132,170,138,.2);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 22px 44px -18px rgba(0,0,0,.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1160px, 100% - 64px); } }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--fill); color: var(--onfill); padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--hairline); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 75px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; min-height: 48px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--text2); padding: 12px 12px; border-radius: 10px; font-size: .9375rem; }
.nav a:hover { color: var(--text); background: var(--accent-soft); }
@media (max-width: 859px) { .nav .hide-s { display: none; } }
@media (max-width: 480px) { .nav .btn { padding-inline: 14px; } .brand span { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--fill); border-color: transparent; color: var(--onfill); }
.btn.primary:hover { background: var(--fill); filter: brightness(1.12); }
.btn.small { min-height: 44px; padding-inline: 18px; }
.nav .btn { margin-left: 4px; }
.nav .btn.primary { color: var(--onfill); }

/* Dice */
.die { --s: 72px; position: relative; flex: none; width: var(--s); height: var(--s); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: calc(var(--s) * .16); border-radius: calc(var(--s) * .24);
  background: radial-gradient(120% 120% at 26% 18%, #FCF9EE 0%, #F2EBD7 52%, #E1D8BF 100%);
  box-shadow: inset 0 calc(var(--s) * -.05) calc(var(--s) * .09) rgba(90,66,20,.22), inset 0 2px 2px rgba(255,255,255,.95), 0 1px 1px rgba(0,0,0,.28), 0 calc(var(--s) * .22) calc(var(--s) * .3) calc(var(--s) * -.12) rgba(0,0,0,.5); }
.die i { place-self: center; width: calc(var(--s) * .18); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a3a26, #231301 70%); box-shadow: inset 0 1px 1px rgba(0,0,0,.6); }
.die .tl { grid-area: 1/1 } .die .tr { grid-area: 1/3 } .die .ml { grid-area: 2/1 } .die .mc { grid-area: 2/2 } .die .mr { grid-area: 2/3 } .die .bl { grid-area: 3/1 } .die .br { grid-area: 3/3 }
.die.held::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: calc(var(--s) * -.2); height: 5px; border-radius: 3px; background: var(--fill); }
.die.sm { --s: clamp(34px, 9vw, 40px); } .die.md { --s: clamp(40px, 11vw, 56px); }

/* Table material (Liquid light / Midnight felt) */
.table { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--table-edge); border-radius: 28px;
  background: radial-gradient(70% 80% at 18% 0%, var(--glow), transparent 62%), linear-gradient(155deg, var(--table-a), var(--table-b)); box-shadow: var(--shadow); }
.table::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(40% 30% at 70% 30%, var(--glow), transparent 70%); opacity: .7; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-8%, 10%, 0) scale(1.12); } }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; } }
.eyebrow { font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 6.2vw, 5rem); letter-spacing: -.04em; margin: 14px 0 20px; line-height: 1.02; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--text2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { margin-top: 18px; font: 400 .8125rem/1.5 var(--mono); color: var(--text3); }
.stage { aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 6%; }
.stage .row { display: flex; flex-wrap: nowrap; justify-content: center; gap: clamp(10px, 2.2vw, 20px); --ds: clamp(40px, 11vw, 68px); }
.stage .die { --s: var(--ds); }
.stage .score { position: absolute; left: 50%; bottom: 8%; translate: -50% 0; display: flex; align-items: baseline; gap: 14px; padding: 12px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); white-space: nowrap; }
.stage .score b { font: 600 .8125rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.stage .score span { font: 500 1.75rem/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.die { animation: drop 1s both; animation-delay: calc(var(--n, 0) * 110ms); }
.die.tumble { animation: tumble 1.5s both; animation-delay: 1s; }
.score { animation: rise .6s 2.35s both; }
@keyframes drop {
  0% { transform: translateY(-190%) rotate(-24deg); opacity: 0; animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  45% { transform: translateY(0) rotate(4deg); opacity: 1; animation-timing-function: ease-out; }
  62% { transform: translateY(-16%) rotate(-2deg); animation-timing-function: ease-in; }
  78% { transform: translateY(0) rotate(0); animation-timing-function: ease-out; }
  88% { transform: translateY(-4%); animation-timing-function: ease-in; }
  100% { transform: none; opacity: 1; }
}
@keyframes tumble {
  0% { transform: translate(210%, -90%) rotate(-620deg); opacity: 0; animation-timing-function: cubic-bezier(.3, .5, .6, 1); }
  15% { opacity: 1; }
  58% { transform: translate(-6%, 0) rotate(14deg); animation-timing-function: ease-out; }
  76% { transform: translate(3%, -10%) rotate(-6deg); animation-timing-function: ease-in; }
  90% { transform: translate(0, 0) rotate(2deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Proof strip */
.proof { padding: 0 0 clamp(56px, 8vw, 104px); }
.proof ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
@media (min-width: 860px) { .proof ul { grid-template-columns: repeat(4, 1fr); } }
.proof li { background: var(--surface); padding: 22px 24px; }
.num { display: block; font: 500 clamp(2rem, 1.4rem + 2vw, 2.75rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.proof small { display: block; margin-top: 8px; color: var(--text2); font-size: .875rem; line-height: 1.4; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.25rem); margin: 10px 0 14px; }
.head p { color: var(--text2); font-size: 1.0625rem; }
.alt { background: var(--bg2); border-block: 1px solid var(--hairline); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.375rem; margin-bottom: 10px; }
.card p { color: var(--text2); }
.grid3 { display: grid; gap: 16px; }
@media (min-width: 860px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.dice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; align-items: center; min-height: 64px; }
.tag { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 500 .8125rem/1.2 var(--mono); }

/* Score sheet */
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } .split.flip > :first-child { order: 2; } }
.sheet { border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.sheet caption { text-align: left; padding: 18px 22px; font: 500 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.sheet th, .sheet td { padding: 11px 22px; border-top: 1px solid var(--hairline); text-align: left; font-weight: 400; }
.sheet td { text-align: right; font: 500 1.125rem var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.sheet tr.hl th, .sheet tr.hl td { background: var(--accent-soft); font-weight: 600; }
.sheet tfoot th, .sheet tfoot td { border-top: 2px solid var(--border); font-weight: 650; }

/* Online */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; margin-top: 24px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: var(--text2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); color: var(--onfill); font: 600 .9375rem var(--mono); }
.steps b { color: var(--text); font-weight: 650; }
.room { padding: clamp(22px, 4vw, 40px); }
.room .lbl { font: 500 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.code { display: flex; gap: clamp(6px, 1.6vw, 12px); margin: 14px 0 26px; }
.code span { flex: 1; max-width: 72px; aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font: 500 clamp(1.5rem, 1rem + 3vw, 2.5rem)/1 var(--mono); }
.peers { display: grid; gap: 8px; }
.peers div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: .9375rem; }
.peers b { font: 600 .875rem var(--mono); letter-spacing: .04em; }
.peers span { color: var(--text3); font: 400 .8125rem var(--mono); }

/* AI meter */
.meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; align-items: end; height: 120px; margin: 22px 0 12px; }
.meter i { border-radius: 6px; background: var(--border); height: calc(var(--h) * 1%); }
.meter i.on { background: var(--fill); }
.meterlbl { display: flex; justify-content: space-between; font: 400 .8125rem var(--mono); color: var(--text3); }

/* Screens */
.shots { display: grid; gap: 20px; align-items: end; }
@media (min-width: 900px) { .shots { grid-template-columns: 2.2fr 1fr 1fr; } }
.frame { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--table-edge); background: radial-gradient(70% 80% at 18% 0%, var(--glow), transparent 62%), linear-gradient(155deg, var(--table-a), var(--table-b)); box-shadow: var(--shadow); }
.frame.wide { aspect-ratio: 16 / 10; }
.frame.phone { aspect-ratio: 9 / 19.5; max-width: 320px; width: 100%; margin-inline: auto; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { position: absolute; left: 16px; bottom: 14px; font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.cap { margin-top: 10px; color: var(--text3); font-size: .875rem; text-align: center; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .themes { grid-template-columns: repeat(4, 1fr); } }
.theme { border-radius: 20px; padding: 18px; display: grid; gap: 22px; min-height: 160px; align-content: space-between; border: 1px solid rgba(128,128,128,.35); }
.theme .die { --s: 34px; }
.theme b { font-weight: 650; }
.theme small { display: block; opacity: .75; font-size: .8125rem; }
.t-light { background: linear-gradient(155deg, #DFE6EC, #C2CDD8); color: #1B2430; }
.t-dark { background: linear-gradient(155deg, #2A2E2B, #171A18); color: #EDEBE4; }
.t-black { background: radial-gradient(60% 50% at 30% 0, rgba(132,170,138,.12), #050605 70%); color: #E8E6DF; }
.t-ocean { background: linear-gradient(155deg, #3A58FF, #2038D8); color: #FFFFFF; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .875rem; color: var(--text2); }

/* Accessibility list */
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .ticks.two { grid-template-columns: 1fr 1fr; gap: 14px 40px; } }
.ticks li { position: relative; padding-left: 34px; color: var(--text2); }
.ticks li b { color: var(--text); font-weight: 650; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--fill); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.25em + 4px); width: 5px; height: 9px; border: solid var(--onfill); border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* Privacy band */
.band { background: var(--fill); color: var(--onfill); border-radius: 32px; padding: clamp(32px, 6vw, 72px); display: grid; gap: 32px; }
.band h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); letter-spacing: -.035em; }
.band p { max-width: 36em; font-size: 1.0625rem; }
.band ul { list-style: none; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.band a { font-weight: 650; }
@media (min-width: 900px) { .band { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.band .btn { background: var(--onfill); color: var(--fill); border-color: transparent; margin-top: 8px; }

/* Get */
.stores { display: grid; gap: 14px; }
@media (min-width: 760px) { .stores { grid-template-columns: repeat(4, 1fr); } }
.store { display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store.soon, .store.soon:hover { transform: none; box-shadow: none; background: transparent; border-style: dashed; }
.store small { font: 400 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.store b { font-size: 1.1875rem; letter-spacing: -.01em; }
.store span { font-size: .8125rem; color: var(--text3); }
.store.primary { background: var(--fill); border-color: transparent; color: var(--onfill); }
.store.primary small, .store.primary span { color: var(--onfill); opacity: .8; }

/* FAQ */
.faq { max-width: 48rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font: 400 1.5rem var(--mono); color: var(--accent); transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 40px 22px 0; color: var(--text2); }

/* Footer */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--hairline); color: var(--text2); font-size: .9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { padding: 10px 0; text-decoration: none; }
.foot nav a:hover, .foot a.u:hover { text-decoration: underline; }
.foot .fb { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
.foot .fb img { width: 28px; height: 28px; border-radius: 8px; }
.foot small { display: block; color: var(--text3); margin-top: 4px; font-weight: 400; }

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 80px) 0 72px; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); letter-spacing: -.035em; }
.legal .upd { margin: 12px 0 28px; font: 400 .8125rem var(--mono); color: var(--text3); }
.legal h2 { font-size: 1.375rem; margin: 44px 0 12px; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--text2); }
.legal p { margin-top: 12px; } .legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal strong { color: var(--text); font-weight: 650; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal code { font: .875em var(--mono); background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; }
.legal .box { margin: 24px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--fill); }
.legal .box p:first-child { margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--border); color: var(--text2); }
.legal th { color: var(--text); font-weight: 600; width: 34%; }

/* Scroll reveal: only where scroll-driven animations exist and motion is allowed */
@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  @keyframes rv { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .die { border: 2px solid CanvasText; } .die i { background: CanvasText; }
}
