:root {
  --indigo: #455696;
  --indigo-deep: #2a376d;
  --indigo-ink: #222d5d;
  --navy: #172663;
  --indigo-soft: #465494;
  --surface: #fff;
  --surface-muted: #ecedf0;
  --border: #c1c3cf;
  --ink: #2b2f3d;
  --ink-muted: #666b82;
  --cta: #ff9d00;
  --positive: #00e449;
  --negative: #f10260;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(17, 24, 60, 0.25);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { background: var(--indigo-ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { height: 28px; width: auto; fill: #fff; display: block; }
.header-link { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .9; }
.header-link:hover { opacity: 1; text-decoration: underline; }

/* hero */
.hero {
  color: #fff;
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.2fr .8fr; align-items: center; }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .92; max-width: 34em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-bottom: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 6px; font-weight: 700; text-decoration: none;
  font-size: 1rem; transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-cta { background: var(--cta); color: #1d1300; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }

/* the dice card */
.dice-card {
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; display: grid; gap: 18px;
}
.dice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dice-grid > div { background: var(--surface-muted); border-radius: 8px; padding: 12px 14px; }
.dice-grid span { display: block; font-size: .78rem; color: var(--ink-muted); font-weight: 600; }
.dice-grid strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.dice-track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--negative) 0 50.49%, var(--positive) 50.49% 100%); margin: 26px 8px 8px; }
.dice-track i {
  position: absolute; top: 50%; left: 50.49%; width: 46px; height: 34px; margin: -17px 0 0 -23px;
  background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  background-image: repeating-linear-gradient(90deg, var(--border) 0 2px, transparent 2px 6px);
  background-size: 16px 14px; background-repeat: no-repeat; background-position: center;
}
.dice-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-muted); padding-inline: 8px; }
.dice-cta { display: block; text-align: center; background: var(--cta); color: #1d1300; font-weight: 800; letter-spacing: .04em; padding: 16px; border-radius: 6px; text-decoration: none; }

/* sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { max-width: 42em; margin-bottom: 32px; }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.cards > *, .fair .steps > div, .hero .wrap > * { min-width: 0; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(17, 24, 60, .06); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--indigo-soft); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--cta); border: 3px solid var(--surface-muted); }
.timeline time { display: block; font-weight: 800; color: var(--indigo); font-size: 1.05rem; }

/* fairness */
.fair { background: var(--navy); color: #fff; }
.fair h2, .fair h3 { color: #fff; }
.fair .steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); counter-reset: step; }
.fair .steps > div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px; }
.fair .steps > div::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cta); color: #1d1300; font-weight: 800; margin-bottom: 12px; }
.fair code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.fair a { color: #fff; }

/* faq */
.faq details { background: var(--surface); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(17, 24, 60, .06); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--indigo); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-muted); }

/* family */
.brand-card { display: grid; gap: 8px; text-decoration: none; border: 1px solid transparent; transition: border-color .12s ease, transform .12s ease; }
.brand-card:hover { border-color: var(--indigo-soft); transform: translateY(-2px); }
.brand-card strong { font-size: 1.25rem; color: var(--indigo); }
.brand-card .muted { font-size: .95rem; margin: 0; }
.brand-card em { font-style: normal; font-weight: 600; color: var(--indigo); }

/* footer */
.site-footer { background: var(--indigo-ink); color: #fff; padding: 40px 0 28px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: 1.2fr 1fr 1fr; }
.site-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #fff; text-decoration: none; opacity: .9; }
.site-footer a:hover { text-decoration: underline; opacity: 1; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .85rem; opacity: .75; }
.site-footer .legal p { margin: 0 0 6px; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; font-weight: 800; font-size: .8rem; margin-right: 10px; vertical-align: middle; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .dice-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .dice-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .brand-card { transition: none; } }
