/* Matches the Taloo brand: pure black background, the yellow of the app icon as the accent,
   dark grey cards with hairline borders. The app is dark-only, so the site is too. */
:root {
  --bg: #000000;
  --surface: #121213;
  --surface-2: #1b1b1d;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: #2a2a2c;
  --accent: #ffc347;
  --accent-ink: #1a1400;
  --accent-text: #ffffff;
  --mark: #5a4a12;
  --radius: 14px;
  --max: 1080px;
  --prose: 760px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--muted); }
a:hover { text-decoration-thickness: 2px; }
mark { background: var(--mark); color: inherit; padding: 0 .2em; border-radius: 4px; }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .14em; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; align-items: center; }
.nav a.btn { color: var(--accent-ink); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; background: radial-gradient(ellipse 70% 60% at 50% 35%, #1f1f22 0%, var(--bg) 70%); }
.hero .kicker { text-transform: uppercase; letter-spacing: .06em; font-size: clamp(16px, 2.6vw, 22px); font-weight: 800; color: var(--text); margin: 0 0 28px; }
.hero h1 { font-size: clamp(56px, 13vw, 112px); line-height: 1; margin: 0 0 10px; letter-spacing: .1em; font-weight: 900; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn:hover { filter: brightness(1.08); }
.btn.disabled { opacity: .6; pointer-events: none; }
.age-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Sections */
section.block { padding: 48px 0; }
section.block h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; }
section.block > .wrap > p.sub { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* Legal / prose pages */
.doc { max-width: var(--prose); margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; padding-top: 8px; scroll-margin-top: 80px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; scroll-margin-top: 80px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc .summary { background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; }
.doc .summary p:first-child { margin-top: 0; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc .callout { border-left: 4px solid var(--accent); background: var(--surface); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 8px; }
.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; columns: 2; column-gap: 28px; font-size: 15px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
th:first-child, td:first-child { min-width: 8em; }
td { min-width: 6.5em; }
th { background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 12px 0; min-height: 32px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; background: var(--surface); }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: 14px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { font-size: 24px; }
.footer-brand .brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand p { margin: 8px 0 0; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav b { color: var(--text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-base { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .site-header .wrap { flex-wrap: nowrap; }
  /* Footer carries every link, so the phone header keeps just the brand and the app button. */
  .nav a:not(.btn) { display: none; }
}

@media print {
  .site-header, .site-footer, .toc { display: none; }
  body { background: #fff; color: #000; }
}
