/* Oqio's marketing page and privacy policy (docs/SITE.md), after the design's
   Marketing frame (design/Oqio Marketing.dc.html). Everything is served from
   this origin: system type for the copy, Josefin Sans Bold (SIL OFL, beside
   the font) for the wordmark only. No inline styles anywhere — the CSP in
   site/vercel.json allows style-src 'self'. Every text colour meets WCAG AA
   on its ground (CLAUDE.md §1), so the frame's fainter footer, note, stat
   labels and half-clear nav pill are raised to label-2 and strong glass. */
@font-face {
  font-family: "Josefin Sans";
  src: url("fonts/JosefinSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* design/ds/tokens/colors.css, Oqio's set */
  --ink: #101620;
  --paper: #E6EDF3;
  --accent: #47F6AD;
  --label-dark: #E6EDF3;
  --label2-dark: rgba(230, 237, 243, .6);
  --label2-light: rgba(16, 22, 32, .62);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  --brand: "Josefin Sans", "Futura", -apple-system, sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Smooth jumps to a section only for people who have not asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--label-dark);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
/* The accent reads 1.2:1 on Alice Blue; light grounds take the ink ring. */
.section--light a:focus-visible, .policy a:focus-visible { outline-color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }

.wordmark { font-family: var(--brand); font-weight: 700; letter-spacing: -.05em; }
.icon { display: block; flex: none; }

/* Nav: the glass pill, sticky at the top. */
.nav { position: sticky; top: 0; z-index: 100; display: flex; justify-content: center; padding: 14px 20px; pointer-events: none; }
.nav__pill {
  display: flex; align-items: center; gap: 26px; padding: 9px 10px 9px 20px; border-radius: 999px; pointer-events: auto;
  background: rgba(29, 35, 45, .84); backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: .5px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 30px rgba(16, 22, 32, .4), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.nav__brand { display: flex; align-items: center; gap: 9px; color: #fff; }
.nav__brand .wordmark { font-size: 22px; line-height: 1; padding-top: 3px; }
.nav__links { display: flex; gap: 22px; font-size: 13.5px; color: rgba(230, 237, 243, .78); letter-spacing: -.01em; }
.button-accent {
  padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
}
.button-accent:hover { color: var(--ink); }

/* Apple's App Store badge as Apple supplies it, a quarter of its height clear
   around it (spec R-56 (12)); hidden until the store ID exists. */
.store { display: inline-block; margin: 10px; line-height: 0; }
.store[hidden] { display: none; }
.store img { display: block; width: 120px; height: 40px; }

/* Hero */
.hero { position: relative; padding: 78px var(--gutter) 0; max-width: 1240px; margin: 0 auto; text-align: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: .5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  font-size: 12.5px; color: rgba(230, 237, 243, .6); letter-spacing: -.005em; white-space: nowrap;
}
.chip__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex: none; }
.hero h1 {
  margin: 26px auto 0; max-width: 16ch; font-size: 80px; line-height: 1.02; font-weight: 600; letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__lede {
  margin: 24px auto 0; max-width: 56ch; font-size: 19px; line-height: 1.5; color: var(--label2-dark);
  letter-spacing: -.012em; text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero__note { font-size: 13px; color: var(--label2-dark); letter-spacing: -.005em; }

.stage { position: relative; margin-top: 64px; padding: 0 var(--gutter) 96px; overflow: hidden; }
.stage__glow {
  position: absolute; left: 50%; top: 120px; transform: translateX(-50%); width: min(1100px, 92vw); height: 420px;
  border-radius: 999px; background: radial-gradient(closest-side, rgba(71, 246, 173, .16), rgba(71, 246, 173, 0)); filter: blur(20px);
}
.stage__phones {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 402px)); justify-content: center;
  gap: 34px; align-items: end;
}
.stage__phones .phone--side { transform: translateY(34px) scale(.9); opacity: .72; }

/* A phone: the capture under the island, on the frame's corners. */
.phone {
  position: relative; margin: 0; width: 100%; aspect-ratio: 402 / 874; border-radius: 11.94% / 5.49%; overflow: hidden;
  background: #000; box-shadow: 0 40px 80px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .12);
}
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__island {
  position: absolute; top: 1.26%; left: 50%; transform: translateX(-50%); width: 31.34%; height: 4.23%;
  border-radius: 999px; background: #000;
}

/* Sections */
.section { padding: 110px var(--gutter); }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--ink); color: var(--label-dark); }
.section--flush { padding-bottom: 0; }
.wrap { max-width: 1160px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: .1em; }
.section--dark .eyebrow { color: var(--accent); }
.section--light .eyebrow { color: var(--ink); }
.headline {
  margin-top: 18px; font-size: 56px; line-height: 1.06; font-weight: 600; letter-spacing: -.04em; text-wrap: balance;
}
.headline--first { margin-top: 0; }
.headline--map { max-width: 22ch; }
.headline--viewer { max-width: 18ch; }
.headline--desktop { max-width: 20ch; }
.headline--privacy { max-width: 20ch; margin: 0 auto; }
.lede { margin-top: 22px; max-width: 58ch; font-size: 18px; line-height: 1.55; letter-spacing: -.012em; text-wrap: pretty; }
.section--light .lede, .section--light .body { color: var(--label2-light); }
.section--dark .lede, .section--dark .body { color: var(--label2-dark); }
.lede--viewer { max-width: 52ch; }
.lede--centred { margin-left: auto; margin-right: auto; }
.centred { text-align: center; }

.map-card {
  position: relative; max-width: 1160px; margin: 52px auto 0; border-radius: 28px; overflow: hidden;
  border: .5px solid rgba(16, 22, 32, .08); box-shadow: 0 1px 3px rgba(16, 22, 32, .06), 0 24px 64px rgba(16, 22, 32, .1);
  background: var(--ink);
}
.map-card img { width: 100%; height: auto; }
.map-caption { max-width: 1160px; margin: 10px auto 0; font-size: 12px; color: var(--label2-light); text-align: right; }

.features { max-width: 1160px; margin: 0 auto; padding: 96px 0 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.feature__icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--ink); }
.feature__title { margin-top: 20px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.body { margin-top: 10px; font-size: 15px; line-height: 1.6; text-wrap: pretty; }

.viewer { display: grid; grid-template-columns: 1fr 402px; gap: 80px; align-items: center; }
.stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stat__value { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-family: ui-rounded, "SF Pro Rounded", var(--sans); }
.stat__key { margin-top: 5px; font-size: 13.5px; color: var(--label2-dark); }

.window { max-width: 1100px; margin: 52px auto 0; }
.window img { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(16, 22, 32, .22)) drop-shadow(0 0 1px rgba(16, 22, 32, .3)); }
.points { max-width: 1160px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.point__title { font-size: 19px; font-weight: 600; letter-spacing: -.024em; }
.point .body { margin-top: 9px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.card { padding: 28px; border-radius: 22px; background: var(--paper); border: .5px solid rgba(16, 22, 32, .05); }
.card__title { font-size: 18px; font-weight: 600; letter-spacing: -.022em; }
.card .body { font-size: 14.5px; }

/* Closing call and footer */
.closing { background: var(--ink); padding: 110px var(--gutter) 0; text-align: center; }
.closing .app-icon { margin: 0 auto; }
.closing__title {
  margin: 32px auto 0; max-width: 18ch; font-size: 52px; line-height: 1.07; font-weight: 600; letter-spacing: -.04em; text-wrap: balance;
}
.footer {
  max-width: 1160px; margin: 96px auto 0; padding: 26px 0 40px; border-top: .5px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--label2-dark); letter-spacing: -.005em;
}
.footer__links { display: flex; gap: 22px; }
.footer__credit { flex-basis: 100%; text-align: left; }

/* The privacy policy page */
.policy { background: var(--paper); color: var(--ink); min-height: 100vh; padding: 56px var(--gutter) 80px; }
.policy__home { display: inline-flex; align-items: center; gap: 9px; }
.policy__home .wordmark { font-size: 22px; padding-top: 3px; }
.policy h1 { margin-top: 48px; font-size: 44px; line-height: 1.08; font-weight: 600; letter-spacing: -.035em; }
.policy__text { max-width: 62ch; margin-top: 28px; }
.policy__text p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: rgba(16, 22, 32, .82); }
.policy__site { margin-top: 32px; padding-top: 24px; border-top: .5px solid rgba(16, 22, 32, .16); }
.policy__back { display: inline-block; margin-top: 40px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.policy a:hover { color: var(--ink); }

/* Under 820 px every grid is one column, and the viewer's phone goes under its text. */
@media (max-width: 820px) {
  .features, .points, .cards { grid-template-columns: 1fr; gap: 32px; }
  .viewer { grid-template-columns: 1fr; gap: 56px; }
  .viewer .phone { max-width: 340px; margin: 0 auto; }
  .headline { font-size: 44px; }
  .closing__title { font-size: 42px; }
  .section { padding-top: 84px; padding-bottom: 84px; }
  .features { padding: 72px 0 84px; }
}

/* Under 640 px the nav keeps the brand and Download, and the hero scales by width. */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav__links { display: none; }
  .nav__pill { gap: 16px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(44px, 11vw, 80px); }
  .hero__lede { font-size: 17px; }
  .stage { margin-top: 44px; padding-bottom: 64px; }
  .stage__phones { gap: 10px; }
  .stage__phones .phone--side { transform: translateY(12px) scale(.9); }
  .headline { font-size: 36px; }
  .lede { font-size: 17px; }
  .map-card { border-radius: 18px; margin-top: 36px; }
  .stats { gap: 28px; }
  .closing__title { font-size: 36px; }
  .footer { margin-top: 64px; }
  .policy h1 { font-size: 34px; }
}
