/* Styles for the public site: home (index.html) and invite (invite/index.html).
   Colors and type come from design/tokens/tokens.json. Other web pages use sod.css. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;700&family=DM+Sans:wght@400;500;600&display=swap');
@import url('/tokens.css');

:root {
  /* Aliases for the generated tokens in tokens.css (design/tokens/tokens.json). */
  --bg: var(--sod-color-light-background);
  --surface: var(--sod-color-light-surface);
  --text: var(--sod-color-light-text);
  --muted: var(--sod-color-light-text-muted);
  --border: var(--sod-color-light-border);
  --accent: var(--sod-color-light-accent);
  --accent-tint: var(--sod-color-light-accent-tint);
  --night: var(--sod-color-night-background);
  --night-surface: var(--sod-color-night-surface);
  --night-border: var(--sod-color-night-border);
  --night-border-strong: var(--sod-color-night-border-strong);
  --night-text: var(--sod-color-night-text);
  --night-muted: var(--sod-color-night-text-muted);
  --night-dim: var(--sod-color-night-text-dim);
  --night-soft: var(--sod-color-night-text-soft);
  --amber: var(--sod-color-brand-amber);
  --badge: #0e0b17; /* store badge ground; replaced by official badge artwork */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --gutter: clamp(24px, 5vw, 80px);
  --section: clamp(72px, 9vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--body); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.night .eyebrow { color: var(--amber); }
.muted { color: var(--muted); }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { display: block; width: 43.226pt; height: 18.954pt; object-fit: contain; flex: none; }

/* Store badges (placeholders: swap in Apple's and Google's official badge artwork before launch) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 18px; border-radius: 14px; background: var(--badge); border: 1px solid var(--night-border-strong); color: #fff; text-decoration: none; }
.store svg { flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; color: var(--night-muted); }
.store strong { font-size: 18px; font-weight: 600; }
.store.compact { min-height: 52px; padding: 0 18px 0 14px; border-radius: 12px; background: var(--text); border-color: var(--text); gap: 10px; }
.store.compact small { font-size: 10px; color: var(--sod-color-light-border-strong); }
.store.compact strong { font-size: 16px; }

/* Night sections */
.night { background: var(--night); color: var(--night-text); }

/* Home: hero */
.hero { padding: 0 var(--gutter) var(--section); overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--night-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 22px; background: var(--amber); color: var(--text); font-weight: 600; }
.hero-body { padding-top: clamp(32px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 6vw, 96px); }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
.hero .lead { max-width: 540px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--night-muted); }
.hero .note { font-size: 14px; color: var(--night-dim); }

/* Home: phone showing the Today screen */
.device { flex: 0 1 300px; display: flex; justify-content: center; position: relative; margin: 0 auto; }
.story-tile { position: absolute; z-index: 1; left: -84px; top: 360px; width: 150px; height: 200px; border-radius: 16px; background: var(--amber); color: var(--text); padding: 16px; transform: rotate(-7deg); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.story-tile span:first-child { font-size: 11px; font-weight: 600; color: var(--night-border); }
.story-tile span:last-child { font: 700 19px/1.12 var(--display); letter-spacing: -0.3px; }
@media (max-width: 600px) {
  .story-tile { left: -16px; top: 400px; width: 132px; height: 176px; }
  .story-tile span:last-child { font-size: 17px; }
}
.phone { position: relative; width: 300px; min-height: 620px; border-radius: 46px; background: var(--night-surface); padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.screen { width: 100%; min-height: 600px; border-radius: 37px; background: var(--night); border: 1px solid var(--night-border); padding: 40px 20px 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.screen > * { flex-shrink: 0; }
.screen .over { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--night-muted); }
.screen .theme-chip { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--amber); color: var(--text); font-size: 11px; font-weight: 600; }
.screen .prompt { font: 700 34px/1 var(--display); letter-spacing: -0.9px; }
.screen .left { font-size: 12px; line-height: 1.4; color: var(--night-dim); }
.screen .label { font-size: 12px; font-weight: 600; color: var(--night-soft); padding-top: 6px; }
.screen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.screen li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--night-surface); border: 1px solid var(--night-border); font-size: 14px; font-weight: 600; }
.screen li i { width: 10px; height: 10px; border-radius: 50%; }
.screen li b { flex: 1; font-weight: 600; }
.screen .new { padding: 2px 8px; border-radius: 999px; background: var(--sod-color-circle-palette-orange-night); color: var(--text); font-size: 10px; font-weight: 600; }
.screen .cta { margin-top: 4px; min-height: 46px; border-radius: 23px; background: var(--amber); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.screen .tabs { margin: auto -20px 0; padding: 10px 18px 18px; border-top: 1px solid var(--night-border); display: flex; justify-content: space-between; }
.screen .tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--night-dim); font-size: 10px; font-weight: 500; }
.screen .tabs span.on { color: var(--amber); font-weight: 600; }

/* Home: sections */
.section { padding: var(--section) var(--gutter); }
.section.tight-top { padding-top: 0; }
.section.white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; gap: 48px; }
.heading { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.heading h2, .split h2, .cta-band h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
.heading p { color: var(--muted); font-size: 18px; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.split h2 { flex: 1 1 420px; }
.split p { flex: 1 1 320px; max-width: 440px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--night); color: var(--amber); display: flex; align-items: center; justify-content: center; font: 700 20px var(--display); }
.step h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.3px; }
.step p { color: var(--muted); }

.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.themes li { min-height: 168px; border-radius: 20px; padding: 20px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.themes li span { font-size: 13px; font-weight: 600; opacity: .9; }
.themes li strong { font: 700 26px var(--display); letter-spacing: -0.4px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.themes .peace { background: var(--sod-color-reflection-themes-peace-background); color: var(--sod-color-reflection-themes-peace-text); }
.themes .hope { background: var(--sod-color-reflection-themes-hope-background); color: var(--sod-color-reflection-themes-hope-text); }
.themes .joy { background: var(--sod-color-reflection-themes-joy-background); color: var(--sod-color-reflection-themes-joy-text); }
.themes .learning { background: var(--sod-color-reflection-themes-learning-background); color: var(--sod-color-reflection-themes-learning-text); }
.themes .love { background: var(--sod-color-reflection-themes-love-background); color: var(--sod-color-reflection-themes-love-text); }
.themes .gratitude { background: var(--sod-color-reflection-themes-gratitude-background); color: var(--sod-color-reflection-themes-gratitude-text); }
.themes .laughter { background: var(--sod-color-reflection-themes-laughter-background); color: var(--sod-color-reflection-themes-laughter-text); }
.themes .laughter span { opacity: 1; }

.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.goal { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--text); }
.goal h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.3px; }
.goal p { color: var(--muted); }
.goal.name { padding: 24px; border: 0; border-radius: 20px; background: var(--night); color: var(--night-text); }
.goal.name p { color: var(--night-muted); }
.goal.name b { color: var(--amber); font-weight: 600; }

.cta-band { border-radius: 32px; padding: clamp(36px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band > div:first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-band p { color: var(--night-muted); max-width: 520px; }

.footer { padding: 0 var(--gutter) 48px; }
.footer .wrap { padding-top: 32px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer .about { display: flex; flex-direction: column; gap: 6px; }

.footer .about span { font-size: 14px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }

/* Invite page */
.invite { font-size: 16px; padding: 0 24px 56px; }
.invite .col { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.invite header { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 8px; }
.invite header > a:last-child { color: var(--accent); font-size: 15px; font-weight: 500; }
.invite-card { border-radius: 28px; padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; }
.invite-card .badge { width: 64px; height: 64px; border-radius: 50%; background: var(--night-surface); display: flex; align-items: center; justify-content: center; color: var(--amber); }
.invite-card .copy { display: flex; flex-direction: column; gap: 10px; }
.invite-card h1 { font-size: clamp(30px, 4vw, 38px); line-height: 1.1; letter-spacing: -0.6px; }
.invite-card .copy p:last-child { color: var(--night-muted); }
.btn-amber { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 28px; background: var(--amber); color: var(--text); text-decoration: none; font-size: 17px; font-weight: 600; }
.invite-card .hint { text-align: center; font-size: 14px; color: var(--night-dim); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.panel h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.3px; }
.numbered { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.numbered li { display: flex; gap: 14px; }
.numbered .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.numbered .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.numbered .t b { font-weight: 600; }
.numbered .t .stores { margin-top: 10px; gap: 10px; }
.points { padding: 8px 4px 0; display: flex; flex-direction: column; gap: 16px; }
.points h2 { font-size: 20px; line-height: 1.25; letter-spacing: -0.2px; }
.points ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.points li svg { flex: none; color: var(--accent); margin-top: 1px; }
.points li b { color: var(--text); font-weight: 600; }
.invite footer { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.invite footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.invite footer a { color: var(--text); }
