/* Bravo Launcher — shared styles
   Self-contained: fonts, images and scripts are served from this folder.
   No CDNs, no third-party requests. Works from any directory. */

/* ---------- fonts (SIL OFL, see fonts/OFL-*.txt) ---------- */

@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  src: url(fonts/mona-sans-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  src: url(fonts/mona-sans-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  --bg: #060a13;
  --bg-band: #0a101d;
  --card: #0e1626;
  --card-hi: #121c31;
  --line: rgba(148, 178, 255, 0.12);
  --line-strong: rgba(148, 178, 255, 0.24);
  --ink: #edf2fb;
  --ink-dim: #a2afc6;
  --ink-faint: #6b7891;
  --accent: #5aa6ff;
  --accent-deep: #1a73e8;
  --accent-ink: #03122b;
  --amber: #ffb547;
  --good: #5dd39e;
  --glow-a: rgba(22, 128, 128, 0.30);
  --glow-b: rgba(46, 86, 214, 0.26);
  --glow-c: rgba(255, 181, 71, 0.10);
  --halo: rgba(90, 166, 255, 0.18);
  --shadow-device: 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(6, 10, 19, 0.72);
  --grain-opacity: 0.06;
  --radius: 18px;
  --sans: "Mona Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5fa;
    --bg-band: #e9eef7;
    --card: #ffffff;
    --card-hi: #f7f9fd;
    --line: rgba(20, 48, 110, 0.11);
    --line-strong: rgba(20, 48, 110, 0.22);
    --ink: #0d1626;
    --ink-dim: #45536b;
    --ink-faint: #76829a;
    --accent: #1a6ee0;
    --accent-deep: #1a73e8;
    --accent-ink: #ffffff;
    --amber: #b86a00;
    --good: #18855a;
    --glow-a: rgba(30, 150, 150, 0.14);
    --glow-b: rgba(60, 110, 240, 0.13);
    --glow-c: rgba(255, 170, 60, 0.12);
    --halo: rgba(26, 110, 224, 0.14);
    --shadow-device: 0 50px 80px -34px rgba(13, 30, 70, 0.45), 0 18px 34px -20px rgba(13, 30, 70, 0.35);
    --header-bg: rgba(243, 245, 250, 0.78);
    --grain-opacity: 0.035;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f5fa;
  --bg-band: #e9eef7;
  --card: #ffffff;
  --card-hi: #f7f9fd;
  --line: rgba(20, 48, 110, 0.11);
  --line-strong: rgba(20, 48, 110, 0.22);
  --ink: #0d1626;
  --ink-dim: #45536b;
  --ink-faint: #76829a;
  --accent: #1a6ee0;
  --accent-deep: #1a73e8;
  --accent-ink: #ffffff;
  --amber: #b86a00;
  --good: #18855a;
  --glow-a: rgba(30, 150, 150, 0.14);
  --glow-b: rgba(60, 110, 240, 0.13);
  --glow-c: rgba(255, 170, 60, 0.12);
  --halo: rgba(26, 110, 224, 0.14);
  --shadow-device: 0 50px 80px -34px rgba(13, 30, 70, 0.45), 0 18px 34px -20px rgba(13, 30, 70, 0.35);
  --header-bg: rgba(243, 245, 250, 0.78);
  --grain-opacity: 0.035;
  color-scheme: light;
}

/* ---------- base ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* atmosphere: the navy-teal glow of the Play listing graphics, plus a fine grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 640px at 8% -6%, var(--glow-a), transparent 62%),
    radial-gradient(760px 620px at 96% 12%, var(--glow-b), transparent 64%),
    radial-gradient(700px 500px at 60% 110%, var(--glow-c), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* tilted devices may poke past the edge: clip sideways without making main a scroll box */
main { overflow-x: clip; }

img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 12px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 750; font-stretch: 108%; letter-spacing: -0.01em; color: var(--ink);
  font-size: 17.5px; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.site-nav { margin-left: auto; display: flex; gap: 2px; }
.site-nav a {
  color: var(--ink-dim); font-size: 14.5px; font-weight: 560;
  padding: 7px 12px; border-radius: 999px;
}
.site-nav a:hover { color: var(--ink); background: var(--halo); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-dim);
  cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--halo); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: none; }
}
.menu-btn { display: none; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent); padding: 9px 16px; border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover { text-decoration: none; filter: brightness(1.08); }
.header-cta svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */

.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 720; font-size: 16.5px;
  padding: 15px 26px 15px 22px; border-radius: 999px;
  box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-play:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.07); }
.btn-play svg { width: 21px; height: 21px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 650; font-size: 16px;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-ghost:hover { text-decoration: none; background: var(--halo); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost svg { width: 17px; height: 17px; }

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.display {
  font-stretch: 116%; font-weight: 820; letter-spacing: -0.035em; line-height: 1;
}

/* ---------- device frames (real screenshots) ---------- */

.device {
  --w: 280px;
  position: relative; flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  /* screen radius + bezel, so the frame curve stays concentric with the screen */
  border-radius: calc(var(--w) * 0.094);
  background: linear-gradient(150deg, #3a4153 0%, #151a25 22%, #0a0d14 60%, #262c3a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 0 0 calc(var(--w) * 0.012) #05070b,
    var(--shadow-device);
}
.device > img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1080 / 2340; object-fit: cover;
  /* 6.8 % of the screen width: the status-bar clock and battery start ~3 % in, so a
     larger curve clips them (measured on every screenshot: anything over ~8.8 % cuts) */
  border-radius: calc(var(--w) * 0.064);
  background: #0b0f17;
}
/* punch-hole camera */
.device::after {
  content: ""; position: absolute;
  top: calc(var(--w) * 0.062); left: 50%;
  width: calc(var(--w) * 0.038); aspect-ratio: 1;
  border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 35% 35%, #1d2433, #020306 70%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}
/* side keys */
.device::before {
  content: ""; position: absolute;
  right: calc(var(--w) * -0.012); top: 22%;
  width: calc(var(--w) * 0.014); height: 14%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #1b202c, #3a4153);
}

.tablet {
  --w: 520px;
  position: relative; flex: none; width: var(--w);
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.05);
  background: linear-gradient(150deg, #3a4153 0%, #151a25 22%, #0a0d14 60%, #262c3a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), var(--shadow-device);
}
.tablet > img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--w) * 0.022);
  background: #0b0f17;
}
.tablet::after {
  content: ""; position: absolute; top: calc(var(--w) * 0.012); left: 50%;
  width: calc(var(--w) * 0.012); aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%); background: #020306;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.tablet.landscape::after { top: 50%; left: calc(var(--w) * 0.012); transform: translateY(-50%); }

/* ---------- hero ---------- */

.hero { position: relative; }
.hero .wrap {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 24px; align-items: center;
  padding-top: 64px; padding-bottom: 56px;
}
.hero h1 {
  font-size: clamp(44px, 5.2vw, 72px);
  margin-bottom: 26px;
}
.hero h1 .c-back { color: var(--accent); }
.hero h1 .c-side { color: var(--amber); }
.hero h1 .c-screen { color: var(--good); }
.hero .lede {
  font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-dim); max-width: 44ch;
  margin-bottom: 34px;
}
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint);
  list-style: none;
}
.cta-meta li { display: inline-flex; align-items: center; gap: 8px; }
.cta-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

.stage {
  position: relative;
  height: 640px;
  display: grid; place-items: center;
}
.stage::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 520px; height: 520px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--amber) 22%, transparent), transparent 75%);
  filter: blur(10px);
}
.stage .device { position: absolute; }
.stage .d-front { --w: 268px; z-index: 3; transform: rotate(-2deg); }
.stage .d-left  { --w: 220px; z-index: 1; transform: translate(-72%, 6%) rotate(-10deg); }
.stage .d-right { --w: 220px; z-index: 2; transform: translate(72%, 9%) rotate(9deg); }
.stage .d-left > img, .stage .d-right > img { filter: brightness(0.78) saturate(0.95); }

/* tap markers riding the front phone */
.tap {
  position: absolute; z-index: 4;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 22px var(--c);
}
.tap::before, .tap::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--c);
  animation: ripple 2.4s ease-out infinite; animation-delay: var(--d, 0s);
}
.tap::after { animation-delay: calc(var(--d, 0s) + 0.42s); }
@keyframes ripple {
  0% { transform: scale(0.6); opacity: 0.95; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}
.tap-label {
  position: absolute; z-index: 5; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--c);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.t-back   { --c: var(--accent); --d: 0s; }
.t-side   { --c: var(--amber); --d: 0.8s; }
.t-screen { --c: var(--good); --d: 1.6s; }
.tap.t-screen { left: 21%; top: 43%; }
.tap.t-side   { left: -3%; top: 30%; }
.tap.t-back   { left: 76%; top: 53%; }
.tap-label.t-screen { right: 84%; top: 41.4%; }
.tap-label.t-side   { right: 104%; top: 23.5%; }
.tap-label.t-back   { left: 99%; top: 51.4%; }
@media (prefers-reduced-motion: reduce) {
  .tap::before, .tap::after { animation: none; opacity: 0.35; transform: scale(1.7); }
}

/* load-in choreography (only when JS is on, so no-JS never hides content) */
.js .hero-copy > * { animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.3s; }
.js .stage .d-front { animation: rise-front 1s 0.1s cubic-bezier(.2, .7, .2, 1) both; }
.js .stage .d-left  { animation: rise-left 1.1s 0.28s cubic-bezier(.2, .7, .2, 1) both; }
.js .stage .d-right { animation: rise-right 1.1s 0.36s cubic-bezier(.2, .7, .2, 1) both; }
.js .stage .tap, .js .stage .tap-label { animation: fade 0.6s 1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-front { from { opacity: 0; transform: translateY(40px) rotate(-2deg); } }
@keyframes rise-left  { from { opacity: 0; transform: translate(-50%, 14%) rotate(-4deg); } }
@keyframes rise-right { from { opacity: 0; transform: translate(50%, 16%) rotate(3deg); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- proof strip ---------- */

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-band) 70%, transparent); }
.proof .wrap {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-top: 30px; padding-bottom: 30px;
}
.proof div { text-align: center; padding: 0 8px; }
.proof div + div { border-left: 1px solid var(--line); }
.proof b {
  display: block; font-size: 34px; font-weight: 800; font-stretch: 112%;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
}
.proof b.good { color: var(--good); }
.proof span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-dim);
}

/* ---------- sections ---------- */

.section { padding: 104px 0; position: relative; }
.section:not(.band) + .section:not(.band) { padding-top: 16px; }
.section.band { background: color-mix(in srgb, var(--bg-band) 72%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  margin-bottom: 18px;
}
/* the short amber rule under every headline, as on the Play graphics */
.section-head h2::after {
  content: ""; display: block; width: 52px; height: 4px; border-radius: 4px;
  background: var(--amber); margin-top: 20px;
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-dim); font-size: 18px; }

/* ---------- gestures ---------- */

.gesture-layout { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.gesture-list { display: grid; gap: 14px; }
.gesture-card {
  --c: var(--accent);
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 9%, var(--card)), var(--card) 60%);
}
.gesture-card.side { --c: var(--amber); }
.gesture-card.screen { --c: var(--good); }
.gesture-card .ring {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent);
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
}
.gesture-card h3 { font-size: 19px; font-stretch: 106%; letter-spacing: -0.01em; margin-bottom: 4px; }
.gesture-card p { color: var(--ink-dim); font-size: 15.5px; }
.gesture-media { display: flex; justify-content: center; }
.gesture-media .device { --w: 300px; transform: rotate(3deg); }

.chips-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin: 44px 0 14px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em;
  color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; background: var(--card);
}
.chip.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.gesture-note {
  margin-top: 40px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px;
  background: var(--card);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px;
}
.gesture-note h3 {
  grid-column: 1 / -1;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber);
}
.gesture-note p { color: var(--ink-dim); font-size: 15px; }
.gesture-note p + p { margin-top: 10px; }
.gesture-note strong { color: var(--ink); }

/* ---------- feature showcase ---------- */

.show {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  padding: 44px 0;
}
.show + .show { border-top: 1px solid var(--line); }
.show.flip .show-media { order: 2; }
.show-media {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 560px;
}
.show-media::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 440px; height: 440px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--halo), transparent 72%);
}
.show-media .device { --w: 262px; }
.show-media .device.back {
  position: absolute; --w: 222px;
  transform: translate(-58%, 5%) rotate(-8deg);
}
.show-media .device.back > img { filter: brightness(0.75); }
.show-media .device.front { transform: translateX(16%) rotate(3deg); }
.show-media .device.solo { transform: rotate(-2.5deg); }
.show-media .device.back.right { transform: translate(58%, 5%) rotate(8deg); }
.show-media .device.front.left { transform: translateX(-16%) rotate(-3deg); }

.show-copy .num {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber); display: block; margin-bottom: 14px;
}
.show-copy h3 {
  font-size: clamp(28px, 3.2vw, 40px); font-stretch: 112%; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px;
}
.show-copy > p { color: var(--ink-dim); font-size: 17px; }
.show-copy > p + p { margin-top: 12px; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li {
  position: relative; padding-left: 28px; color: var(--ink-dim); font-size: 15.5px;
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}
.ticks li strong { color: var(--ink); font-weight: 650; }
.show-copy .aside {
  margin-top: 20px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-faint); font-size: 14px;
}

/* tablets */
.tablet-media { min-height: 520px; }
.tablet-media .tablet.portrait { --w: 300px; transform: translateX(-30%) rotate(-3deg); z-index: 1; }
.tablet-media .tablet.landscape {
  --w: 400px; position: absolute; z-index: 2;
  transform: translate(26%, 30%) rotate(2deg);
}

/* ---------- bento ---------- */

.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  margin-top: 72px;
}
.tile {
  grid-column: span 2;
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(170deg, var(--card-hi), var(--card));
  padding: 28px 28px 30px;
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tile.wide { grid-column: span 3; padding-bottom: 0; display: flex; flex-direction: column; }
.tile .glyph {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 12px;
}
.tile h3 { font-size: 20px; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 8px; }
.tile p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.tile .peek {
  margin-top: auto; padding-top: 28px;
  display: flex; justify-content: center;
  height: 300px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
}
.tile .peek .device { --w: 270px; }
.tile.span4 { grid-column: span 4; }

/* ---------- gallery ---------- */

.gallery-shell { position: relative; }
.gallery {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100vw - 1160px) / 2 + 24px));
  padding: 8px max(24px, calc((100vw - 1160px) / 2 + 24px)) 26px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  list-style: none;
}
.gallery li { flex: none; scroll-snap-align: start; }
.shot {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong), 0 30px 60px -24px rgba(0, 0, 0, 0.7); }
.shot img { display: block; height: 460px; width: auto; aspect-ratio: var(--ar, 9 / 16); object-fit: cover; }
.gallery-controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: -8px; margin-bottom: 18px; }
.gallery-controls .icon-btn { width: 46px; height: 46px; }
.gallery-controls .icon-btn:disabled { opacity: 0.35; cursor: default; }

.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  color: #fff;
}
.lightbox::backdrop { background: rgba(3, 6, 12, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox figure { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 84px 8px; min-height: 0; }
.lightbox img {
  /* sized from the aspect ratio, not the pixels, so the full-size swap never jumps */
  width: min(100%, calc((100vh - 150px) * var(--ar, 0.5625))); height: auto;
  border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption { font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, 0.75); padding: 14px 16px 24px; text-align: center; }
.lightbox .icon-btn {
  position: fixed; color: #fff; border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06); width: 48px; height: 48px;
}
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- pricing ---------- */

.price-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line); border-radius: 24px;
  padding: 34px 34px 36px; background: var(--card);
}
.price-card.hi {
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  background:
    radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--amber) 13%, transparent), transparent 70%),
    var(--card);
}
.price-card .tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--good); display: block; margin-bottom: 10px;
}
.price-card.hi .tag { color: var(--amber); }
.price-card h3 { font-size: 28px; font-stretch: 112%; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 10px; }
.price-card > p { color: var(--ink-dim); font-size: 15.5px; }
.price-card .ticks { margin-top: 20px; }
.price-card:not(.hi) .ticks li::before { border-color: var(--good); }
.price-card.hi .ticks { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.price-foot {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint);
}

/* ---------- privacy banner ---------- */

.privacy-banner {
  border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
  background:
    radial-gradient(600px 300px at 0% 0%, color-mix(in srgb, var(--good) 12%, transparent), transparent 70%),
    var(--card);
  border-radius: 28px;
  padding: 52px 52px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.privacy-banner h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 18px; }
.privacy-banner h2 em { font-style: normal; color: var(--good); }
.privacy-banner p { color: var(--ink-dim); font-size: 17px; }
.privacy-banner .links { margin-top: 22px; display: flex; gap: 20px; font-weight: 650; font-size: 15.5px; }
.check-list { list-style: none; display: grid; gap: 13px; }
.check-list li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 15.5px; color: var(--ink);
}
.check-list li::before {
  content: "✓"; font-family: var(--mono); color: var(--good); font-weight: 700; flex: none;
}

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; font-weight: 650; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-dim); font-size: 15.5px; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- outlook / end-of-life statement ---------- */

.outlook { padding-bottom: 88px; }
.outlook-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.outlook-inner .eyebrow { margin-bottom: 18px; }
.outlook-inner .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.outlook-inner p { font-size: 19px; color: var(--ink-dim); line-height: 1.7; }
.outlook-inner strong { color: var(--ink); font-weight: 680; }

/* ---------- closing CTA ---------- */

.closer {
  position: relative; overflow: hidden;
  border-radius: 32px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 380px at 15% 0%, var(--glow-a), transparent 65%),
    radial-gradient(600px 380px at 100% 100%, var(--glow-b), transparent 65%),
    var(--card);
  padding: 64px 56px 0;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: end;
}
.closer-copy { padding-bottom: 64px; align-self: center; }
.closer h2 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 18px; }
.closer p { color: var(--ink-dim); font-size: 17.5px; margin-bottom: 30px; max-width: 42ch; }
.closer-media { display: flex; justify-content: center; height: 380px; overflow: hidden; }
.closer-media .device { --w: 270px; transform: translateY(40px) rotate(-4deg); }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 40px; }
.legal-head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-head .eyebrow { margin-bottom: 14px; }
.legal-head h1 {
  font-size: clamp(34px, 5vw, 52px); font-stretch: 114%; font-weight: 820;
  letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 16px;
}
.legal-meta { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.legal h2 {
  font-size: 22px; font-stretch: 108%; letter-spacing: -0.015em;
  margin: 46px 0 12px;
  scroll-margin-top: 84px;
}
.legal h2 .num { font-family: var(--mono); font-size: 14px; color: var(--amber); margin-right: 10px; }
.legal p, .legal li { color: var(--ink-dim); }
.legal p { margin-bottom: 14px; }
.legal strong { color: var(--ink); font-weight: 650; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 7px; }

.tldr {
  border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
  background: color-mix(in srgb, var(--good) 7%, var(--card));
  border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 36px;
}
.tldr .tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--good); display: block; margin-bottom: 6px;
}
.tldr p { color: var(--ink); margin: 0; font-size: 16.5px; }

.perm-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 14.5px; }
.perm-table th {
  text-align: left; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
  padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-strong);
}
.perm-table td {
  padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line);
  vertical-align: top; color: var(--ink-dim);
}
.perm-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 80px; background: color-mix(in srgb, var(--bg-band) 80%, transparent); }
.site-footer .wrap {
  padding-top: 44px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-stretch: 108%; color: var(--ink); }
.foot-brand:hover { text-decoration: none; }
.foot-brand svg { width: 40px; height: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.foot-links a { color: var(--ink-dim); }
.foot-links a:hover { color: var(--accent); }
.foot-note { width: 100%; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.foot-note + .foot-note { margin-top: -14px; }

/* ---------- scroll reveal (JS only) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .hero-copy > *, .js .stage .device, .js .stage .tap, .js .stage .tap-label { animation: none; }
  .tile, .shot, .btn-play { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .site-nav a { padding: 7px 9px; font-size: 14px; }
  .header-cta { display: none; }
  .stage { height: 580px; }
  .stage .d-front { --w: 240px; }
  .stage .d-left, .stage .d-right { --w: 196px; }
  .show { gap: 40px; }
  .gesture-layout { grid-template-columns: 1fr 300px; gap: 40px; }
  .gesture-media .device { --w: 270px; }
}

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 10px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.45);
    display: none;
  }
  .site-header.open .site-nav { display: flex; }
  .site-nav a { padding: 13px 12px; font-size: 16px; border-radius: 12px; }
  .header-actions { margin-left: auto; }

  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; gap: 8px; }
  .hero-copy { text-align: left; }
  .stage { height: 540px; }
  .section { padding: 76px 0; }
  .gesture-layout { grid-template-columns: 1fr; }
  .gesture-media { order: -1; }
  .gesture-note { grid-template-columns: 1fr; padding: 24px; }
  .show, .show.flip { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .show.flip .show-media { order: 0; }
  .show-media { min-height: 0; padding: 20px 0 10px; }
  .tablet-media { min-height: 460px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide, .tile.span4 { grid-column: span 1; }
  .tile.wide { grid-column: span 2; }
  .price-grid { grid-template-columns: 1fr; }
  .privacy-banner { grid-template-columns: 1fr; padding: 36px 28px; gap: 30px; }
  .closer { grid-template-columns: 1fr; padding: 48px 28px 0; text-align: left; }
  .closer-copy { padding-bottom: 8px; }
  .closer-media { height: 300px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand span { font-size: 16px; }
  .brand svg { width: 36px; height: 36px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .stage { height: 470px; }
  .stage::before { width: 360px; height: 360px; }
  .stage .d-front { --w: 206px; }
  .stage .d-left, .stage .d-right { --w: 160px; }
  .stage .d-left { transform: translate(-62%, 6%) rotate(-10deg); }
  .stage .d-right { transform: translate(62%, 9%) rotate(9deg); }
  @keyframes rise-left  { from { opacity: 0; transform: translate(-40%, 14%) rotate(-4deg); } }
  @keyframes rise-right { from { opacity: 0; transform: translate(40%, 16%) rotate(3deg); } }
  .tap-label { font-size: 11px; padding: 3px 8px; }
  .tap-label.t-side { right: auto; left: -8%; top: 21%; }
  .tap-label.t-back { left: auto; right: -6%; top: 71%; }
  .proof .wrap { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .proof div:nth-child(3), .proof div:nth-child(5) { border-left: 0; }
  .proof div:nth-child(4) { border-left: 1px solid var(--line); }
  .proof div:nth-child(5) { grid-column: 1 / -1; }
  .proof b { font-size: 28px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16.5px; }
  .gesture-card { grid-template-columns: 40px 1fr; padding: 18px; gap: 14px; }
  .gesture-card .ring { width: 40px; height: 40px; font-size: 12px; }
  .gesture-media .device { --w: 230px; }
  .show-media .device { --w: 210px; }
  .show-media .device.back { --w: 172px; }
  .tablet-media { min-height: 380px; }
  .tablet-media .tablet.portrait { --w: 210px; }
  .tablet-media .tablet.portrait { transform: translateX(-24%) rotate(-3deg); }
  .tablet-media .tablet.landscape { --w: 260px; transform: translate(20%, 28%) rotate(2deg); }
  .bento { grid-template-columns: 1fr; gap: 14px; margin-top: 48px; }
  .tile, .tile.wide, .tile.span4 { grid-column: span 1; padding: 24px 22px; }
  .tile.wide { padding-bottom: 0; }
  .tile .peek { height: 250px; }
  .tile .peek .device { --w: 220px; }
  .shot img { height: 380px; }
  .gallery-controls { display: none; }
  .lightbox figure { padding: 60px 8px 4px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox figcaption { padding-bottom: 76px; }
  .price-card { padding: 26px 22px 28px; }
  .price-card.hi .ticks { grid-template-columns: 1fr; }
  .privacy-banner { padding: 30px 22px; border-radius: 22px; }
  .closer { border-radius: 24px; padding: 40px 22px 0; }
  .closer-media .device { --w: 230px; }
  .faq summary { padding: 18px 18px; font-size: 16px; }
  .faq .answer { padding: 0 18px 18px; }
  .legal { padding: 52px 16px 32px; }
  .foot-links { gap: 10px 18px; }
}
