/* Herald site: same tokens as the app (Figma: Herald — Design). Light-first, brand surfaces dark. */
:root {
  color-scheme: light;
  --canvas: #EDEDED;
  --surface: #FFFFFF;
  --sunken: #F5F5F5;
  --ink: #0D0D0D;
  --body: #383838;
  --muted: #757575;
  --faint: #9C9C9C;
  --hairline: #DEDEDE;
  --ground: #262626;
  --ground-deep: #1A1A1A;
  --slab: #FFFFFF;
  --slab-mid: #4F4F4F;
  --display: "Cal Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --r-lg: 20px;
  --r-xl: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 700px; }

/* Header */
.bar { display: flex; align-items: center; gap: 14px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { font-family: var(--display); font-size: 24px; letter-spacing: -0.3px; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }
.on-dark .wordmark, .on-dark .nav a { color: var(--slab); }
.on-dark .nav a { color: #C4C4C4; }
.on-dark .nav a:hover { color: var(--slab); }

/* Type */
h1, h2, h3 { color: var(--ink); font-weight: 400; margin: 0; }
h1 { font-family: var(--display); font-size: clamp(46px, 8vw, 88px); line-height: 1; letter-spacing: -1.5px; }
h2 { font-family: var(--display); font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.8px; }
h3 { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; max-width: 34ch; }

/* Buttons and badge */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  font-weight: 500; text-decoration: none; font-size: 16px; background: var(--ink); color: var(--slab);
}
.btn.light { background: var(--slab); color: var(--ink); }
.play-badge { display: inline-block; padding: 14px; margin-left: -14px; }
.play-badge img { height: 56px; width: auto; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid #4F4F4F; color: #DEDEDE; font-weight: 500; font-size: 15px;
}
.soon .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--slab); }

/* Cards */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.icon { width: 44px; height: 44px; border-radius: 22px; background: var(--sunken); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

section { padding-block: 72px; }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 640px; }

/* Brand surfaces */
.dark { background: var(--ground); color: #C4C4C4; position: relative; overflow: hidden; }
.dark h1, .dark h2, .dark h3 { color: var(--slab); }
.dark .eyebrow { color: #9C9C9C; }
.slabs { position: absolute; inset: 0; pointer-events: none; }

/* Footer */
footer { background: var(--ink); color: #9C9C9C; }
footer .wrap { padding-block: 48px 28px; }
.foot-top { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer h4 { color: var(--slab); font-size: 13px; font-weight: 500; margin: 0 0 12px; letter-spacing: 0.4px; text-transform: uppercase; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: #C4C4C4; text-decoration: none; font-size: 15px; }
footer a:hover { color: var(--slab); }
footer .tag { font-size: 15px; max-width: 28ch; margin-top: 12px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid #383838; margin-top: 40px; padding-top: 20px; font-size: 13px; }
.venture { color: var(--slab); font-weight: 500; }

/* Legal pages */
.doc main { padding-block: 24px 80px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; margin: 22px 0 6px; }
.doc p { margin: 0 0 16px; max-width: 66ch; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.note { background: var(--surface); border-radius: 16px; padding: 18px 20px; margin: 8px 0 20px; }
.note p { margin: 0; }
details.faq { background: var(--surface); border-radius: 16px; padding: 18px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p:first-of-type { margin-top: 12px; }
