@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* Ori marketing + legal site. Design tokens taken verbatim from the app theme
   (expo-app-template/src/theme/tokens.ts) — Ori ships a LIGHT, warm "paper" design:
   light gradient canvas, white cards with hairline borders + soft ink shadows, ink text,
   Ori-blue accent, warm category-colored glossy icon tiles, Fira Sans + Space Mono. */

:root {
  /* Canvas / surfaces */
  --bg: #f5f5f4;            /* appBg */
  --page-1: #fbfbfa;        /* page gradient (178deg) */
  --page-2: #f4f3f1;
  --page-3: #edece9;
  --paper: #ffffff;         /* cards, menus */
  --sunk: #efefed;          /* wells */
  --bubble: #edece9;

  /* Ink ramp */
  --ink: #1b1b19;
  --ink-2: #4e4d48;
  --ink-muted: #6a6963;
  --ink-quiet: #6f6e67;
  --ink-faint: #8a8983;

  /* Lines */
  --line-header: #e9e9e6;
  --line-card: #e4e4e1;
  --line-strong: #e0e0dd;

  /* Accent + semantic */
  --blue: #1f6feb;
  --blue-ink: #1755b8;
  --blue-wash: #e8f0fe;
  --warn: #b4553d;
  --amber: #c08a3c;

  /* Radii (handoff table) */
  --r-card: 20px;
  --r-media: 18px;
  --r-sm: 12px;
  --r-tile: 11px;
  --r-pill: 100px;

  --maxw: 1080px;
  --prose: 720px;
  --font: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Soft ink shadows (from ori.shadow / cardSkin) */
  --shadow-card: 0 10px 24px rgba(27, 27, 25, 0.07);
  --shadow-lift: 0 12px 30px rgba(27, 27, 25, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ── Header ───────────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(245, 245, 244, 0.82);
  border-bottom: 1px solid var(--line-header);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
/* Brand wordmark — the app's onboarding mark: "Ori" (Fira 600) + the ori-blue dot. */
.brand { display: inline-flex; align-items: flex-end; color: var(--ink); font-weight: 600; font-size: 21px; letter-spacing: -0.03em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand::after { content: ""; display: inline-block; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--blue); margin-left: 0.12em; margin-bottom: 0.14em; }
nav.top { display: flex; align-items: center; gap: 26px; }
nav.top a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
nav.top a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 680px) { nav.top a.navlink { display: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
/* Primary = ink pill (the app's primary button: ink fill, bone text). */
.btn-primary { color: #f5f5f4; background: var(--ink); }
.btn-primary:hover { background: #2c2c29; }
.btn-ghost { color: var(--ink); background: var(--paper); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.btn-ghost:hover { border-color: #cfcfca; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 92px 0 64px; text-align: center; overflow: hidden;
  background: linear-gradient(178deg, var(--page-1), var(--page-2) 46%, var(--page-3)); }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 480px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(31, 111, 235, 0.08), transparent 70%);
}
.eyebrow {
  font-family: var(--font); color: var(--ink-quiet);
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }
.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px); line-height: 1.06; letter-spacing: -0.03em;
  color: var(--ink); margin: 16px auto 0; max-width: 15ch; font-weight: 600;
}
.hero p.lead { color: var(--ink-2); font-size: clamp(17px, 2.1vw, 20px); max-width: 58ch; margin: 20px auto 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Store badges — dark pills (matches real store-badge convention on a light page). */
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: 12px; background: var(--ink); color: #f5f5f4;
}
.badge:hover { text-decoration: none; background: #2c2c29; }
/* Pre-launch: badges are informational, not links. */
.badge.is-soon { cursor: default; }
.badge.is-soon:hover { background: var(--ink); }
.badge small { display: block; color: rgba(245, 245, 244, 0.65); font-size: 10px; line-height: 1.1; font-family: var(--mono); letter-spacing: 0.02em; }
.badge strong { font-size: 15px; line-height: 1.25; font-weight: 600; }
.badge svg { width: 22px; height: 22px; }
.note { color: var(--ink-faint); font-size: 13px; margin-top: 12px; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
section { padding: 62px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0; font-weight: 600; color: var(--ink); }
.section-head p { color: var(--ink-muted); margin: 12px 0 0; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--paper);
  border: 1px solid var(--line-card); border-radius: var(--r-card);
  padding: 24px; box-shadow: var(--shadow-card);
}
.card h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.card p { color: var(--ink-muted); margin: 0; font-size: 14.5px; line-height: 1.62; }

/* Glossy category tile — mirrors cardSkin.iconFill: mix(color,white .3) → color → mix(color,ink .16),
   with the colored glow (tint(color,.42)) and a top sheen. Set --tile per card. */
.ic {
  width: 46px; height: 46px; border-radius: var(--r-tile); display: grid; place-items: center; color: #fff;
  background: linear-gradient(148deg,
    color-mix(in srgb, var(--tile) 70%, #ffffff),
    var(--tile) 62%,
    color-mix(in srgb, var(--tile) 84%, #1b1b19));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tile) 42%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.ic svg { width: 23px; height: 23px; }

/* CTA band — a soft blue-wash card. */
.band {
  text-align: center; background: linear-gradient(160deg, var(--blue-wash), #ffffff);
  border: 1px solid #dbe6fb; border-radius: var(--r-card); padding: 48px 24px; box-shadow: var(--shadow-card);
}
.band h2 { font-size: clamp(24px, 4vw, 33px); margin: 0 0 10px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.band p { color: var(--ink-muted); margin: 0 auto 24px; max-width: 52ch; font-size: 16px; }

/* ── Legal / prose pages ──────────────────────────────────────────────────── */
.prose { max-width: var(--prose); margin: 0 auto; padding: 44px 0 24px; }
.prose h1 { font-size: clamp(29px, 5vw, 40px); letter-spacing: -0.02em; margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.prose .meta { color: var(--ink-faint); font-size: 14px; margin: 0 0 26px; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }
.prose h3 { font-size: 16.5px; margin: 22px 0 6px; font-weight: 600; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-card); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose td { color: var(--ink-muted); }

.banner {
  background: rgba(192, 138, 60, 0.11); border: 1px solid rgba(192, 138, 60, 0.34);
  color: #8a5f22; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 0 0 26px;
}

/* Placeholder token — obvious before launch. */
.ph { background: rgba(192, 138, 60, 0.16); color: #7a531c; padding: 0 5px; border-radius: 4px; font-size: 0.94em; white-space: nowrap; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line-header); padding: 44px 0; margin-top: 44px; background: var(--page-1); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 680px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
footer.site h4 { color: var(--ink-quiet); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; font-weight: 600; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 8px 0; }
footer.site a { color: var(--ink-2); font-size: 15px; }
footer.site a:hover { color: var(--ink); text-decoration: none; }
footer.site .legal { color: var(--ink-faint); font-size: 13px; margin-top: 28px; }
.f-brand { display: inline-flex; align-items: flex-end; color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.f-brand::after { content: ""; display: inline-block; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--blue); margin-left: 0.12em; margin-bottom: 0.14em; }
.f-tag { color: var(--ink-muted); font-size: 14px; max-width: 34ch; }
