/* galivo.app — tokens and layout recreated from web/design/project/Galivo Landing.dc.html */

:root {
  --night: 0;
  --bg-l: 0.972;
  --fg: #121216;
  --sub: rgba(60, 60, 67, 0.8);
  --line: rgba(0, 0, 0, 0.08);
  --chip: rgba(0, 0, 0, 0.05);
  --accent: oklch(0.52 0.2 268);
  --card: #fff;
  --wm-dot: #4364df;
  --night-fg: #f4f4f6;
  --night-sub: rgba(235, 235, 245, 0.74);
  --night-line: rgba(255, 255, 255, 0.12);
  --night-accent: oklch(0.74 0.14 268);
  --night-cell: rgba(255, 255, 255, 0.04);
  --night-band: oklch(0.205 0.012 272);
  --tg-bg: rgba(255, 255, 255, 0.65);
  --tg-edge: rgba(0, 0, 0, 0.08);
  --tg-on: #fff;
  --tg-on-fg: #121216;
  --tg-fg: rgba(60, 60, 67, 0.8);
  --bg: oklch(calc(0.972 - 0.767 * var(--night)) calc(0.003 + 0.009 * var(--night)) calc(280 - 8 * var(--night)));
  --sel: color-mix(in oklch, var(--accent) 22%, transparent);
  /* hero photo tiles */
  --tile-rim: #fff;
  --tile-shadow: 0 14px 34px -10px rgba(20, 24, 60, 0.32), 0 3px 8px rgba(20, 24, 60, 0.1);
  --tile-filter: saturate(0.82);
  --tile-filter-edge: saturate(0.62) contrast(0.94);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

/* Dark theme — the same values whether picked by the system (auto) or by the toggle. */
:root[data-theme='dark'] {
  --fg: #f4f4f6;
  --sub: rgba(235, 235, 245, 0.74);
  --line: rgba(255, 255, 255, 0.12);
  --chip: rgba(255, 255, 255, 0.08);
  --accent: oklch(0.74 0.14 268);
  --card: oklch(0.29 0.013 272);
  --wm-dot: #587cf1;
  /* Soft dark (#1c1e24), not black; night sections one step deeper (#15171d). */
  --bg: oklch(calc(0.235 - 0.03 * var(--night)) 0.012 272);
  --night-band: transparent;
  --tile-rim: rgba(255, 255, 255, 0.86);
  --tile-shadow: 0 16px 38px -10px rgba(0, 0, 0, 0.7), 0 3px 8px rgba(0, 0, 0, 0.4);
  --tile-filter: brightness(0.74) saturate(0.88);
  --tile-filter-edge: brightness(0.64) saturate(0.78);
  color-scheme: dark;
}
/* No-JS fallback: follow the system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --fg: #f4f4f6;
    --sub: rgba(235, 235, 245, 0.74);
    --line: rgba(255, 255, 255, 0.12);
    --chip: rgba(255, 255, 255, 0.08);
    --accent: oklch(0.74 0.14 268);
    --card: oklch(0.29 0.013 272);
    --wm-dot: #587cf1;
    --bg: oklch(0.235 0.012 272);
    --night-band: transparent;
    --tile-rim: rgba(255, 255, 255, 0.86);
    --tile-shadow: 0 16px 38px -10px rgba(0, 0, 0, 0.7), 0 3px 8px rgba(0, 0, 0, 0.4);
    --tile-filter: brightness(0.74) saturate(0.88);
    --tile-filter-edge: brightness(0.64) saturate(0.78);
    color-scheme: dark;
  }
  :root:not([data-theme]) .scr-light { display: none; }
}
:root:not([data-theme]) .scr-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .scr-dark { display: block; } }
:root[data-theme='light'] .scr-dark,
:root[data-theme='dark'] .scr-light { display: none; }

/* Toggle chrome over the night sections (light mode) or in dark mode. */
:root[data-theme='dark'],
:root[data-night='1'] {
  --tg-bg: rgba(52, 55, 66, 0.6);
  --tg-edge: rgba(255, 255, 255, 0.14);
  --tg-on: rgba(255, 255, 255, 0.18);
  --tg-on-fg: #fff;
  --tg-fg: rgba(235, 235, 245, 0.72);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  scrollbar-color: color-mix(in oklch, var(--fg) 28%, transparent) transparent;
}
body { margin: 0; background: var(--bg); min-height: 100vh; }
::selection { background: var(--sel); color: inherit; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.92em; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 80;
  padding: 10px 16px; border-radius: 12px; background: var(--card); color: var(--fg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- fixed theme toggle */
.theme-toggle {
  position: fixed; top: 16px; right: 16px; z-index: 60;
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--tg-bg);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 0.5px var(--tg-edge), 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: background 0.2s linear;
}
.theme-toggle { align-items: center; }
.tg-modes { display: flex; gap: 2px; }
:root:not(.js) .tg-modes, :root:not(.js) .tg-sep { display: none; }
.tg-sep { width: 1px; height: 18px; margin: 0 3px; background: var(--tg-edge); }
.tg-lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 32px; padding: 0 12px 0 10px; border-radius: 16px;
  font-size: 13px; font-weight: 600; color: var(--tg-on-fg); background: var(--tg-on); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.tg-lang:hover { text-decoration: none; color: var(--accent); }
.tg-lang:focus-visible { outline-offset: 1px; border-radius: 16px; }
.theme-toggle button {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--tg-fg);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.theme-toggle button:hover { color: var(--tg-on-fg); }
.theme-toggle button[aria-pressed='true'] { background: var(--tg-on); color: var(--tg-on-fg); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
:root[data-theme='dark'] .theme-toggle button[aria-pressed='true'],
:root[data-night='1'] .theme-toggle button[aria-pressed='true'] { box-shadow: none; }
.theme-toggle button:focus-visible { outline-offset: 1px; border-radius: 16px; }

/* ---------------------------------------------------------------- top bar */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 214px 0 max(20px, env(safe-area-inset-left)); max-width: 1260px; margin: 0 auto;
}
.top-brand { display: block; color: var(--fg); }
.top-brand:hover { text-decoration: none; opacity: 0.8; }
.wordmark .wm-dot { fill: var(--wm-dot); }
.wm-top { height: 30px; width: auto; }

/* ---------------------------------------------------------------- landing story */
.story { position: relative; display: block; }
.panel {
  position: relative; z-index: 3;
  max-width: 1180px; margin: 0 auto; padding: 72px 20px;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
}
.panel.hero { padding-top: 104px; }
.copy { max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.hero .copy { gap: 24px; }
.copy-b { grid-column: 1; }

h1 { margin: 0; font-size: clamp(44px, 6.2vw, 80px); line-height: 0.96; font-weight: 700; letter-spacing: -0.04em; }
h2 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
h2.h-big { font-size: clamp(40px, 5.4vw, 72px); line-height: 0.98; letter-spacing: -0.04em; }
.lead { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--sub); max-width: 62ch; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); }
/* The hero h1 is the full concept sentence (Urun-Konsepti-Silme), so it runs a step smaller than a slogan would. */
.hero h1 { font-size: clamp(34px, 3.75vw, 54px); line-height: 1; }
.fine { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sub); }

.points { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.points li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.points strong { font-size: 16px; font-weight: 600; }
.points span { font-size: 15px; line-height: 1.45; color: var(--sub); }

.cells {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--night-line); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--night-line);
}
.cells li { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; background: var(--night-band); }
.cells strong { font-size: 16px; font-weight: 600; }
.cells span { font-size: 14px; line-height: 1.4; color: var(--night-sub); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { height: 32px; padding: 0 14px; border-radius: 16px; display: flex; align-items: center; font-size: 14px; font-weight: 500; background: var(--chip); }

/* Night sections (voice, privacy): light text on the dark band. */
.night { color: var(--night-fg); background: var(--night-band); max-width: none; }
.night .lead, .night .points span { color: var(--night-sub); }
.night .points, .night .points li { border-color: var(--night-line); }
.night .copy { margin: 0 auto; width: 100%; }
.night ::selection { background: color-mix(in oklch, var(--night-accent) 35%, transparent); }
.night a { color: var(--night-accent); }

/* App Store badge: Apple's official artwork as an image, unchanged (no rim, shadow or recolour added). */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge { display: inline-block; line-height: 0; }
.badge img { display: block; height: 56px; width: auto; }
a.badge:hover { text-decoration: none; opacity: 0.85; }
/* Before launch: a dimmed, inert badge with the reason on the line below (no tap action). */
.badge-soon { opacity: 0.4; cursor: default; user-select: none; }
.soon { flex-basis: 100%; margin: 0; font-size: 15px; font-weight: 600; color: var(--sub); }
/* Campaign line: its own row under the badge, clear space ≥ ¼ badge height (Apple badge rule). */
.offer { flex-basis: 100%; margin: 0; font-size: 15px; font-weight: 600; color: var(--accent); }

/* Hero icon: the app icon image (heroIcon() in build.mjs). */
.hero-mark { display: flex; align-items: center; gap: 16px; color: var(--fg); }
.wm-hero { height: 52px; width: auto; }
.landing .top-brand, .entry-page .top-brand { visibility: hidden; }
.app-icon { flex: none; width: 76px; height: 76px; border-radius: 17px; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(20, 24, 60, 0.16); }
.app-icon img { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- phone */
.phone {
  width: 424px; height: 896px; padding: 11px; border-radius: 66px; background: #0c0c0e;
  box-shadow: 0 0 0 1.5px #3a3a3f, 0 40px 90px rgba(0, 0, 0, 0.28);
}
.phone-screen { position: relative; width: 402px; height: 874px; border-radius: 55px; overflow: hidden; background: #000; }
.scr, .vid, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid video { z-index: 1; }

/* Mobile / narrow: one inline phone per section, sized with the viewport (container units keep the bezel proportional). */
.phone-inline {
  width: min(424px, calc(100vw - 40px), calc(88vh * 424 / 896)); aspect-ratio: 424 / 896;
  margin: 48px auto 0; container-type: inline-size;
}
.phone-inline .phone { width: 100%; height: 100%; padding: 2.594cqw; border-radius: 15.566cqw; }
.phone-inline .phone-screen { width: 100%; height: 100%; border-radius: 12.972cqw; }
.night .phone { box-shadow: 0 0 0 1.5px #3a3a3f, 0 40px 90px rgba(0, 0, 0, 0.4); }

.pin { display: none; }

/* ---------------------------------------------------------------- device frames
   Entry cards and the iPad / Mac / iPhone Duo pages. The stage is a size container; each screen takes the
   largest height that fits it (--sh) and keeps its aspect ratio. Bezels are box-shadow spreads that follow
   the screen's corner radius, so they add no layout. */
.dev-stage {
  container-type: size; width: 100%; height: calc(min(100vw - 40px, 680px) * 0.82 + var(--cap));
  display: flex; align-items: center; justify-content: center; gap: 5cqw;
  --cap: 0px; --H: calc(100cqh - var(--cap) - 24px); --W: 90cqw;
  --bz: #0c0c0e; --rim: #3a3a3f; --drop: 0 30px 60px -24px rgba(20, 24, 60, 0.45);
}
.dev { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dev figcaption { font-size: 13px; font-weight: 500; line-height: 18px; color: var(--sub); }
.dev-screen { position: relative; overflow: hidden; background: #000; height: var(--sh); }
.dev-iphone .dev-screen {
  --sh: min(var(--H), var(--W) / 0.4601); aspect-ratio: 600 / 1304; border-radius: 13.7% / 6.3%;
  box-shadow: 0 0 0 calc(var(--sh) * 0.0125) var(--bz), 0 0 0 calc(var(--sh) * 0.0125 + 1.5px) var(--rim), var(--drop);
}
.dev-outer .dev-screen {
  --sh: min(var(--H), var(--W) / 0.6873); aspect-ratio: 600 / 873; border-radius: 9% / 6.2%;
  box-shadow: 0 0 0 calc(var(--sh) * 0.016) var(--bz), 0 0 0 calc(var(--sh) * 0.016 + 1.5px) var(--rim), var(--drop);
}
.dev-duo .dev-screen {
  --sh: min(var(--H), var(--W) / 1.4212); aspect-ratio: 1100 / 774; border-radius: 3% / 4.2%;
  box-shadow: 0 0 0 calc(var(--sh) * 0.022) var(--bz), 0 0 0 calc(var(--sh) * 0.022 + 1.5px) var(--rim), var(--drop);
}
.dev-ipad .dev-screen {
  --sh: min(var(--H), var(--W) / 1.3317); aspect-ratio: 1100 / 826; border-radius: 2% / 2.66%;
  box-shadow: 0 0 0 calc(var(--sh) * 0.03) var(--bz), 0 0 0 calc(var(--sh) * 0.03 + 1.5px) var(--rim), var(--drop);
}
/* Mac: the window itself (corner radius measured from the capture's alpha: 34 px of 2304 × 2006). */
.dev-mac .dev-screen {
  --sh: min(var(--H), var(--W) / 1.1474); aspect-ratio: 1152 / 1004; border-radius: 1.5% / 1.72%; background: #f5f4f7;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), 0 28px 70px -20px rgba(20, 24, 60, 0.42);
}
/* iPhone Duo folded + open: both screens are the same height on the device. */
.dev-stage-fold .dev-screen { --sh: min(var(--H), 41cqw); }
:root[data-theme='dark'] .dev-stage { --rim: #4a4a50; --drop: 0 30px 70px -20px rgba(0, 0, 0, 0.6); }
:root[data-theme='dark'] .dev-mac .dev-screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 28px 70px -20px rgba(0, 0, 0, 0.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .dev-stage { --rim: #4a4a50; --drop: 0 30px 70px -20px rgba(0, 0, 0, 0.6); }
  :root:not([data-theme]) .dev-mac .dev-screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 28px 70px -20px rgba(0, 0, 0, 0.6); }
}

/* ---------------------------------------------------------------- entry page (/) */
.entry { max-width: 1180px; margin: 0 auto; padding: 104px 20px 72px; }
.ehero { display: flex; flex-direction: column; gap: 24px; }
.ehero h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1; text-wrap: balance; }
.ehero .lead { max-width: 78ch; }
.platforms { margin-top: 72px; display: flex; flex-direction: column; gap: 28px; }
.platforms h2 { font-size: clamp(28px, 3vw, 40px); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; border-radius: 24px;
  background: var(--card); color: var(--fg); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(20, 24, 60, 0.3);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(20, 24, 60, 0.4); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-stage { height: 190px; margin-bottom: 14px; --W: 88cqw; }
.card-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.card-os { font-size: 14px; color: var(--sub); }
.card-cta { margin-top: auto; padding-top: 10px; font-size: 15px; font-weight: 600; color: var(--accent); }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .card-stage { height: 240px; }
}
@media (max-width: 520px) { .card { padding: 14px 14px 16px; } .card-stage { height: 150px; } .card-name { font-size: 17px; } }

/* ---------------------------------------------------------------- entry: device line-up on a flat surface
   One size container; every length is in cqw so the group scales as one picture. Devices stand on the same
   floor line (bottom), overlap front to back, and lift a little on hover / focus. */
.lineup { display: flex; flex-direction: column; gap: 20px; }
.ld-stage { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 100 / 42; }
.ld { position: absolute; bottom: 4cqw; display: block; transition: transform 0.3s var(--ease-out); filter: drop-shadow(0 1.4cqw 1.4cqw rgba(20, 24, 60, 0.28)); }
.ld:hover, .ld:focus-visible { transform: translateY(-0.9cqw); text-decoration: none; }
.ld:focus-visible { outline: none; }
.ld:focus-visible .ld-screen, .ld:focus-visible .mb-lid { outline: 0.35cqw solid var(--accent); outline-offset: 0.6cqw; }
.ld img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ld-screen { display: block; overflow: hidden; background: #000; }
/* MacBook: lid (black bezel, screen with a desktop and the Galivo window) on an aluminium base. */
.ld-mac { left: 16cqw; width: 50cqw; z-index: 1; }
.mb-lid { display: block; width: 46cqw; margin: 0 auto; padding: 1.1cqw 1.1cqw 1.6cqw; border-radius: 1.8cqw 1.8cqw 0 0; background: #0c0c0e; box-shadow: inset 0 0 0 0.12cqw #3a3a3f; }
.mb-screen {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1.54; overflow: hidden; border-radius: 0.6cqw 0.6cqw 0 0;
  background: linear-gradient(135deg, oklch(0.72 0.12 300), oklch(0.64 0.15 268) 45%, oklch(0.8 0.1 40));
}
.mb-screen img { width: auto; height: 86%; aspect-ratio: 1152 / 1004; border-radius: 1.3% / 1.5%; box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, 0.35); }
.mb-base { display: block; width: 50cqw; height: 1.4cqw; border-radius: 0 0 1.2cqw 1.2cqw; background: linear-gradient(#e4e4e8, #b9bac0); box-shadow: inset 0 0.25cqw 0 #f5f5f7; position: relative; }
.mb-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 7cqw; height: 0.45cqw; transform: translateX(-50%); border-radius: 0 0 0.6cqw 0.6cqw; background: #a3a4aa; }
.ld-ipad { left: 54cqw; width: 34cqw; z-index: 2; }
.ld-ipad .ld-screen { aspect-ratio: 1100 / 826; border-radius: 1.3cqw; box-shadow: 0 0 0 0.95cqw #0c0c0e, 0 0 0 1.07cqw #3a3a3f; }
.ld-duo { left: 6cqw; width: 22cqw; z-index: 3; }
.ld-duo .ld-screen { aspect-ratio: 1100 / 774; border-radius: 1cqw; box-shadow: 0 0 0 0.7cqw #0c0c0e, 0 0 0 0.82cqw #3a3a3f; }
.ld-iphone { left: 83.5cqw; width: 9.6cqw; z-index: 3; }
.ld-iphone .ld-screen { aspect-ratio: 600 / 1304; border-radius: 1.35cqw; box-shadow: 0 0 0 0.5cqw #0c0c0e, 0 0 0 0.62cqw #3a3a3f; }
.ld-names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ld-names a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; color: var(--fg); }
.ld-names a:hover { text-decoration: none; background: color-mix(in oklch, var(--fg) 6%, transparent); }
.ld-names strong { font-size: 17px; font-weight: 700; }
.ld-names span { font-size: 13px; color: var(--sub); }
@media (min-width: 900px) {
  .ld-names { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- iPad / Mac / iPhone Duo story poses
   The sticky box (.phone-pinned) is transparent; each layer draws a device in a pose (build.mjs devicePage):
   iPad, iPhone Duo open / folded / half open, Mac as a MacBook or the bare window. A pose is a size container
   and every device is drawn in % of it, so the pinned box and the inline (phone layout) frames share the
   drawing. Box sizes must match DEVICE_STORY.box (landing.js scales the box). */
.wkind { margin: -6px 0 0; font-size: 17px; font-weight: 600; color: var(--accent); }
.story[data-device] .phone { width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.story[data-device='iphone'] .phone-pinned { width: 424px; height: 896px; }
.story[data-device='ipad'] .phone-pinned { width: 896px; height: 682px; }
.story[data-device='duo'] .phone-pinned { width: 848px; height: 605px; }
.story[data-device='mac'] .phone-pinned { width: 1000px; height: 760px; }
.story[data-device] .phone-inline { width: min(100vw - 40px, 720px); }
.story[data-device='iphone'] .phone-inline { aspect-ratio: 424 / 896; width: min(424px, calc(100vw - 40px), calc(88vh * 424 / 896)); }
.story[data-device='ipad'] .phone-inline { aspect-ratio: 896 / 682; }
.story[data-device='duo'] .phone-inline { aspect-ratio: 848 / 605; }
.story[data-device='mac'] .phone-inline { aspect-ratio: 1000 / 760; }
/* Phone layout: the inline box follows the pose, so a folded Duo or the Mac window fills the width. */
.story[data-device] .phone-inline.is-folded { aspect-ratio: 432 / 605; width: min(64vw, 340px); }
.story[data-device] .phone-inline.is-half { aspect-ratio: 848 / 605; }
.story[data-device] .phone-inline.is-window { aspect-ratio: 1152 / 1004; }
.story[data-device] .phone-inline.is-book { aspect-ratio: 1080 / 699; }
.pose { container-type: size; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; --bz: #0c0c0e; --rim: #3a3a3f; --drop: 0 40px 90px -24px rgba(20, 24, 60, 0.42); }
:root[data-theme='dark'] .pose { --rim: #4a4a50; --drop: 0 40px 90px -20px rgba(0, 0, 0, 0.65); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .pose { --rim: #4a4a50; --drop: 0 40px 90px -20px rgba(0, 0, 0, 0.65); } }
.pose-scr { position: absolute; overflow: hidden; background: #000; }
.pz-phone, .pz-ipad, .pz-open, .pz-folded, .pz-window { position: relative; flex: none; background: var(--bz); box-shadow: inset 0 0 0 1.5px var(--rim), var(--drop); }
.pz-phone { width: min(100cqw, 100cqh * 0.4732); aspect-ratio: 424 / 896; border-radius: 15.57% / 7.37%; }
.pz-phone .pose-scr { inset: 1.23% 2.59%; border-radius: 13.68% / 6.29%; }
.pz-ipad { width: min(100cqw, 100cqh * 1.3138); aspect-ratio: 896 / 682; border-radius: 4.24% / 5.57%; }
.pz-ipad .pose-scr { inset: 2.64% 2.01%; border-radius: 2.3% / 3.1%; }
.pz-open { width: min(100cqw, 100cqh * 1.4017); aspect-ratio: 848 / 605; border-radius: 4% / 5.6%; }
.pz-open .pose-scr { inset: 2.31% 1.65%; border-radius: 2.7% / 3.8%; }
.pz-folded { width: min(100cqw, 100cqh * 0.714); aspect-ratio: 432 / 605; border-radius: 12% / 8.6%; }
.pz-folded .pose-scr { inset: 2.31% 3.24%; border-radius: 9% / 6.2%; }
.pz-window { width: min(100cqw, 100cqh * 1.1474); aspect-ratio: 1152 / 1004; border-radius: 1.5% / 1.72%; background: #f5f4f7; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), var(--drop); }
.pz-window .pose-scr { inset: 0; border-radius: inherit; background: #f5f4f7; }
:root[data-theme='dark'] .pz-window { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), var(--drop); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .pz-window { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), var(--drop); } }
/* iPhone Duo half open: the left pane faces the viewer, the right pane opens toward the viewer along the hinge. */
.half { position: relative; display: flex; width: min(100cqw, 100cqh * 1.4017); aspect-ratio: 848 / 605; perspective: 1700px; transform: translateX(-4%) scale(0.92); }
.half-l, .half-r { position: relative; width: 50%; height: 100%; background: var(--bz); box-shadow: inset 0 0 0 1.5px var(--rim); }
.half-l { border-radius: 8% 0 0 8% / 5.6% 0 0 5.6%; box-shadow: inset 0 0 0 1.5px var(--rim), var(--drop); }
.half-r { border-radius: 0 8% 8% 0 / 0 5.6% 5.6% 0; transform-origin: left center; transform: rotateY(-38deg); }
/* The angled pane is out of focus (depth), not darkened. */
.half-r .half-img { filter: blur(1.6px); }
.half-l .pose-scr { inset: 3.3% 0 3.3% 3.3%; border-radius: 5.4% 0 0 5.4% / 3.8% 0 0 3.8%; }
.half-r .pose-scr { inset: 3.3% 3.3% 3.3% 0; border-radius: 0 5.4% 5.4% 0 / 0 3.8% 3.8% 0; }
.half-img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover; }
.half-l .half-img { left: 0; }
.half-r .half-img { left: -100%; }
/* Mac as a MacBook: black lid → desktop wallpaper → the Galivo window, on an aluminium base wider than the lid. */
.mbk { position: relative; flex: none; width: min(100cqw, 100cqh * 1.545); aspect-ratio: 1080 / 699; }
.mbk-lid { position: absolute; left: 3.7%; top: 0; width: 92.6%; height: 96.3%; border-radius: 3.2% 3.2% 0 0 / 4.8% 4.8% 0 0; background: var(--bz); box-shadow: inset 0 0 0 1.5px var(--rim), var(--drop); }
.mbk-display {
  position: absolute; inset: 3.2% 2.16% 4.46%; overflow: hidden; border-radius: 0.8% 0.8% 0 0 / 1.2% 1.2% 0 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, oklch(0.72 0.12 300), oklch(0.64 0.15 268) 45%, oklch(0.8 0.1 40));
}
.mbk-window { position: relative; height: 92%; aspect-ratio: 1152 / 1004; overflow: hidden; border-radius: 1.5% / 1.72%; background: #f5f4f7; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.mbk-base { position: absolute; left: 0; bottom: 0; width: 100%; height: 3.72%; border-radius: 0 0 2.4% 2.4% / 0 0 60% 60%; background: linear-gradient(#e4e4e8, #b9bac0); box-shadow: inset 0 2px 0 #f5f5f7, 0 20px 40px -16px rgba(20, 24, 60, 0.35); }
.mbk-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 14%; height: 34%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #a3a4aa; }
/* Mac: a narrower copy column (DEVICE_STORY.mac.box[3]) leaves the window most of the row. */
@media (min-width: 860px) {
  .story[data-device='mac'] .panel[data-side='1'] { grid-template-columns: 420px minmax(0, 1fr); }
  .story[data-device='mac'] .panel[data-side='-1'] { grid-template-columns: minmax(0, 1fr) 420px; }
  .story[data-device='mac'] .panel .copy { max-width: 420px; }
  .story[data-device='mac'] .hero h1 { font-size: clamp(30px, 2.9vw, 42px); }
}
.others { max-width: 1180px; margin: 0 auto; padding: 72px 20px 24px; display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line); }
.others h2 { font-size: clamp(26px, 2.6vw, 34px); }
.cards-small .card-stage { height: 150px; }
@media (min-width: 900px) {
  .cards-small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-small .card-stage { height: 190px; }
}

/* Top bar platform switch (platform pages). */
.top-plat { display: none; }
@media (min-width: 900px) {
  .top-plat { display: flex; gap: 2px; padding: 4px; border-radius: 999px; margin-left: auto; margin-right: 12px; background: var(--tg-bg); box-shadow: inset 0 0 0 1px var(--tg-edge); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
  .top-plat a { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--sub); }
  .top-plat a:hover { text-decoration: none; color: var(--fg); }
  .top-plat a[aria-current='page'] { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
}

/* ---------------------------------------------------------------- desktop: sticky phone story */
@media (min-width: 860px) {
  .panel { height: 100vh; min-height: 760px; padding: 0 40px; grid-template-columns: 1fr 1fr; }
  .panel.hero { padding-top: 0; }
  .copy { max-width: 480px; }
  .hero .copy { max-width: 520px; }
  .copy-a { grid-column: 1; }
  .copy-b { grid-column: 2; }
  .night { max-width: 1180px; }
  :root.js .night { background: transparent; }
  .night .copy { margin: 0; }
  .phone-inline { display: none; }
  :root.js .pin { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
  :root.js .night { --night-band: rgba(255, 255, 255, 0.04); }
  .pin-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .phone-pinned { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.8); will-change: transform; }
  .layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
  .layer.is-on { opacity: 1; visibility: visible; }
  /* Without JS the inline phones stay, laid out in the second column. */
  :root:not(.js) .phone-inline { display: block; grid-row: 1; margin: 0 auto; width: min(340px, calc((100vh - 150px) * 424 / 896)); }
  :root:not(.js) .copy-a + .phone-inline { grid-column: 2; }
  :root:not(.js) .copy-b + .phone-inline { grid-column: 1; }
}

/* ---------------------------------------------------------------- hero photo tiles (decorative, aria-hidden)
   Scattered behind the copy and the phone, densest at the corners; never under the wordmark/headline/lead/badge
   (clean zone = the copy box + 24 px). Images: tools/web/hero_tiles.py. Motion: landing.js (parallax + fade-out on
   scroll: `translate` + `scale` on each .tile, opacity on .tiles) + the idle float below. Desktop coordinates are
   offsets from the hero centre because the copy column and the phone are centred (max 1180 px) at every width ≥ 1180. */
.tiles {
  position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 1;
  overflow-x: clip; pointer-events: none;
}
.tile { position: absolute; width: var(--w); rotate: var(--r); display: none; opacity: 0.5; }
/* The photo tiles stay in the background: half opacity, less colour, so the device in front reads first. */
.tile img {
  width: 100%; height: auto; border-radius: 20px; border: 3px solid var(--tile-rim);
  box-shadow: var(--tile-shadow); filter: var(--tile-filter); background: var(--chip);
}
.t1 img, .t6 img, .t8 img, .t12 img, .t13 img { filter: var(--tile-filter-edge); }
@media (prefers-reduced-motion: no-preference) {
  .tile img { animation: tileFloat var(--f, 11s) ease-in-out var(--fd, 0s) infinite alternate; }
}
@keyframes tileFloat { from { transform: translate3d(0, -4px, 0) rotate(-0.4deg); } to { transform: translate3d(0, 5px, 0) rotate(0.5deg); } }
.t1 { --f: 12s; --fd: -3s; } .t2 { --f: 9s; --fd: -6s; } .t3 { --f: 13s; --fd: -1s; } .t4 { --f: 10s; --fd: -4s; }
.t5 { --f: 14s; --fd: -9s; } .t6 { --f: 11s; --fd: -2s; } .t7 { --f: 8.5s; --fd: -5s; } .t8 { --f: 12.5s; --fd: -7s; }
.t9 { --f: 10.5s; --fd: -3s; } .t10 { --f: 9.5s; --fd: -8s; } .t11 { --f: 13.5s; --fd: -2s; } .t12 { --f: 11.5s; --fd: -6s; }
.t13 { --f: 10s; --fd: -1s; }

/* Mobile / narrow (< 860): a fanned strip of five above the wordmark; the hero copy moves down to make room. */
@media (max-width: 859px) {
  .panel.hero { padding-top: calc(104px + min(36vw, 150px)); }
  .tiles .t1, .tiles .t2, .tiles .t4, .tiles .t7, .tiles .t12 { display: block; }
  .t1 { left: -7%; top: 92px; --w: min(31%, 170px); --r: -8deg; }
  .t7 { left: 19%; top: 70px; --w: min(23%, 124px); --r: 5deg; }
  .t2 { left: 41%; top: 84px; --w: min(21%, 116px); --r: -4deg; }
  .t4 { left: 60%; top: 76px; --w: min(30%, 168px); --r: 7deg; }
  .t12 { left: 83%; top: 112px; --w: min(30%, 168px); --r: -6deg; }
  .tile img { border-radius: 14px; border-width: 2px; }
}

/* Tablet (860–1179): eight cards along the top band, the right edge and the bottom band. */
@media (min-width: 860px) and (max-width: 1179px) {
  .tiles { height: max(100vh, 760px); }
  .t1, .t2, .t3, .t4, .t6, .t8, .t10, .t12 { display: block; }
  .t1 { left: -3%; top: -34px; --w: 180px; --r: -7deg; }
  .t2 { left: 25%; top: -46px; --w: 104px; --r: 6deg; }
  .t3 { left: 40%; top: -30px; --w: 110px; --r: -5deg; }
  .t4 { left: 57%; top: -20px; --w: 170px; --r: 4deg; }
  .t6 { right: -34px; top: 22%; --w: 140px; --r: -6deg; }
  .t8 { right: -44px; bottom: 12%; --w: 200px; --r: -8deg; }
  .t10 { left: 30%; bottom: -40px; --w: 170px; --r: -5deg; }
  .t12 { left: -30px; bottom: -34px; --w: 190px; --r: 6deg; }
}

/* Desktop (≥ 1180): all thirteen (twelve below 1360 px). */
@media (min-width: 1180px) {
  .tiles { height: max(100vh, 760px); }
  .tile { display: block; left: calc(50% + var(--x)); top: calc(50% + var(--y)); }
  .t1 { --x: -820px; --y: -470px; --w: 240px; --r: -7deg; }
  .t2 { --x: -520px; --y: -500px; --w: 130px; --r: 6deg; }
  .t3 { --x: -250px; --y: -482px; --w: 140px; --r: -5deg; }
  .t4 { --x: -10px; --y: -452px; --w: 200px; --r: 4deg; }
  .t5 { --x: 262px; --y: -482px; --w: 150px; --r: 7deg; }
  .t6 { --x: 540px; --y: -330px; --w: 180px; --r: -6deg; }
  .t7 { --x: 490px; --y: -40px; --w: 170px; --r: 5deg; }
  .t8 { --x: 520px; --y: 230px; --w: 240px; --r: -8deg; }
  .t9 { --x: 180px; --y: 330px; --w: 220px; --r: 4deg; }
  .t10 { --x: -120px; --y: 318px; --w: 200px; --r: -5deg; }
  .t11 { --x: -430px; --y: 330px; --w: 190px; --r: 6deg; }
  .t12 { --x: -830px; --y: 250px; --w: 230px; --r: -6deg; }
  .t13 { --x: -760px; --y: -120px; --w: 150px; --r: 7deg; }
}
@media (min-width: 1180px) and (max-width: 1359px) { .t13 { display: none; } }

/* ---------------------------------------------------------------- footer */
.foot {
  position: relative; z-index: 3; max-width: 1180px; margin: 0 auto; padding: 40px 32px 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--sub);
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.foot-icon { border-radius: 7px; }
.wm-foot { height: 24px; width: auto; }
.foot-legal { margin: 0; flex: 1 1 260px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
/* Touch: footer and table-of-contents links get a 44 px tall hit area without changing the layout much. */
@media (pointer: coarse) {
  .foot-nav { gap: 0 14px; }
  .foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .toc li { padding: 0; }
  .toc a { display: inline-block; padding: 10px 0; }
}

/* ---------------------------------------------------------------- reading pages (privacy, support, 404) */
.reading .top { position: relative; }
.doc { max-width: 1180px; margin: 0 auto; padding: 32px 20px 96px; }
.doc-head { max-width: 68ch; margin-bottom: 40px; }
.doc h1 { font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -0.04em; line-height: 1; }
.doc-date { margin: 16px 0 0; font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--fg); margin: 20px 0 0; max-width: 62ch; }
.doc-body { max-width: 68ch; font-size: 17px; line-height: 1.65; }
.doc-body h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin: 56px 0 12px; scroll-margin-top: 24px; }
.doc-body section:first-child h2 { margin-top: 0; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc-body li { margin: 6px 0; }
.doc-body li::marker { color: var(--sub); }
.doc-body a, .lede a { text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--accent) 45%, transparent); }
.doc-body a:hover, .lede a:hover { text-decoration-color: currentColor; }

.toc { margin: 0 0 40px; padding: 18px 20px; border-radius: 16px; background: var(--chip); max-width: 68ch; }
.toc h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--sub); }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 16rem; column-gap: 28px; font-size: 15px; line-height: 1.5; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc li::marker { color: var(--sub); font-variant-numeric: tabular-nums; }
.toc a { color: var(--fg); }
.toc a:hover { color: var(--accent); }
.doc-body section { counter-increment: sec; }
.doc-toc .doc-body h2::before { content: counter(sec) '. '; color: var(--sub); font-variant-numeric: tabular-nums; }

@media (min-width: 1100px) {
  .doc-toc { display: grid; grid-template-columns: minmax(0, 68ch) 15rem; column-gap: 72px; align-items: start; }
  .doc-toc .doc-head { grid-column: 1; }
  .doc-toc .doc-body { grid-column: 1; grid-row: 2; }
  .doc-toc .toc { grid-column: 2; grid-row: 2; position: sticky; top: 72px; background: none; padding: 0; margin: 0; }
  .doc-toc .toc ol { columns: 1; padding-left: 1.6em; }
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px; border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover h3 { color: var(--accent); }
.faq .answer { padding: 0 2px 18px; color: var(--sub); }
.faq .answer strong { color: var(--fg); }
.lost { min-height: 60vh; }

/* Short desktop windows (≤ 760 px tall): tighter headings and lists so a section's copy fits the screen. */
@media (min-width: 860px) and (max-height: 760px) {
  h2 { font-size: clamp(32px, 3.8vw, 48px); }
  .copy { gap: 14px; }
  .points li { padding: 10px 0; }
  .lead { font-size: 16px; }
}

/* Phones: the theme switch scrolls away with the top bar instead of floating over the content. */
@media (max-width: 859px) {
  .theme-toggle { position: absolute; }
  .ld-stage { width: calc(100% + 40px); margin: 0 -20px; }
  .lineup { gap: 12px; }
}
@media (max-width: 520px) {
  .top { padding-right: 204px; height: 64px; }
  .wm-top { height: 26px; }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .foot { padding: 32px 20px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
