/* Ruzeka — styles shared by index / privacy / support.
   Light, after the app's brand (design/ruzeka/brand/): a bright, airy page, the deep teal of the
   wordmark (#024B4D) and the teal of the icon. Video always sits on black, as in the app.
   System fonts only (no web fonts): the page is meant to be as light as the app. */

/* ---------------------------------------------------------------- Tokens */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f7f7;
  --panel: #ffffff;
  --ink: #0c1f21;
  --ink-2: #364b4d;
  --ink-3: #5c7072;                      /* 5:1 on white */
  --brand: #024B4D;                      /* the wordmark; 10:1 on white */
  --teal: #01ABA0;                       /* the icon; for shapes and lines, not for text on white */
  --teal-text: #027A73;                  /* 5.2:1 on white */
  --teal-soft: rgba(1, 171, 160, .12);
  --line: rgba(2, 75, 77, .12);
  --line-strong: rgba(2, 75, 77, .24);
  --shadow: 0 1px 2px rgba(2, 40, 42, .05), 0 8px 24px rgba(2, 40, 42, .06);
  --stage: #0b0f10;                      /* where video is shown */
  --live: #30d158;                       /* systemGreen (dark) */
  --glass: rgba(30, 32, 35, .62);        /* the app's controls float on the video */
  --glass-line: rgba(255, 255, 255, .14);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;

  --t-exit: .1s;                         /* the app hides its control bar in 0.1 s (Ruzeka spec D59) */
  --t-fast: .15s;
  --t: .2s;
  --t-slow: .3s;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --wrap: 1120px;
  --measure: 42rem;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(88px, 12vw, 160px);
  --nav-h: 60px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.7 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -.025em; }
h1, h2 { color: var(--brand); }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
kbd { font: 600 .8125em/1 var(--font); }
:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(1, 171, 160, .25); }

/* One language at a time. <html data-lang> is set before first paint. */
html[data-lang="ja"] [lang="en"]:not(html),
html[data-lang="en"] [lang="ja"]:not(html) { display: none !important; }

/* Japanese wraps only between phrases: <wbr> is written into the HTML by design/tools/ruzeka_wbr.py,
   and keep-all stops breaks anywhere else. */
:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.brand, .nav-links a, .lang button, .soon, .chip, .footer-links a, kbd, .key, .nw { white-space: nowrap; overflow-wrap: normal; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-s); background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { color: var(--teal-text); font-size: .875rem; font-weight: 650; letter-spacing: .04em; }
.eyebrow:lang(en) { letter-spacing: .08em; text-transform: uppercase; font-size: .8125rem; }
.section { padding-block: var(--section) 0; }
.section-head { max-width: 46rem; }
.section-head h2 { margin-top: 14px; font-size: clamp(2rem, 5.2vw, 3.5rem); }
.section-head p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
.note { color: var(--ink-3); font-size: .875rem; }

/* ---------------------------------------------------------------- Header */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .mark { width: 28px; height: 28px; }
.brand .wordmark { width: auto; height: 19px; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: .875rem; text-decoration: none; transition: color var(--t-fast), background var(--t-fast); }
@media (hover: hover) { .nav-links a:hover { color: var(--brand); background: var(--teal-soft); } }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: rgba(2, 75, 77, .08); }
.lang button { position: relative; z-index: 1; min-width: 40px; padding: 4px 10px; border: 0; background: none; color: var(--ink-3); font-size: .75rem; font-weight: 650; letter-spacing: .04em; cursor: pointer; transition: color var(--t); }
.lang button[aria-pressed="true"] { color: #fff; }
.lang-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--brand); transition: transform var(--t) var(--ease); }
html[data-lang="en"] .lang-thumb { transform: translateX(100%); }

/* ---------------------------------------------------------------- Buttons and the "coming soon" mark */
.soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 650; font-size: .9375rem;
  box-shadow: 0 6px 18px rgba(2, 75, 77, .22);
}
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(1, 171, 160, .3); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 650; font-size: .9375rem; text-decoration: none; }
.text-link::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t-fast) var(--ease); }
@media (hover: hover) { .text-link:hover::after { transform: rotate(45deg) translate(1px, 1px); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 650; font-size: .9375rem;
  text-decoration: none; cursor: pointer; transition: transform var(--t-fast) var(--ease), filter var(--t-fast);
}
@media (hover: hover) { .btn:hover { filter: brightness(1.15); } }
.btn:active { transform: scale(.98); }

/* ---------------------------------------------------------------- Hero
   Bright room light, as in the App Store header: soft beams across a pale floor. */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, .7) 18% 23%, transparent 23% 40%, rgba(255, 255, 255, .55) 40% 43%, transparent 43%),
    radial-gradient(70% 60% at 80% 40%, rgba(1, 171, 160, .1), transparent 70%),
    linear-gradient(180deg, #eef3f3 0%, #f7fafa 60%, #ffffff 100%);
}
.hero-wave { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; pointer-events: none; }
.hero-wave path { fill: none; stroke: var(--teal); stroke-linecap: round; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); }
.hero-copy { max-width: 64rem; }
.hero h1 { margin-top: 18px; font-size: clamp(2.75rem, 7.6vw, 6rem); line-height: 1.06; letter-spacing: -.02em; }
.hero h1:lang(en) { font-size: clamp(2.5rem, 6.6vw, 5.25rem); }
.hero h1 .accent { color: var(--teal-text); }
.hero .sub { margin-top: 26px; color: var(--brand); font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 650; line-height: 1.4; }
.lede { margin-top: 14px; max-width: 36rem; color: var(--ink-2); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 34px; }
.hero-meta { margin-top: 22px; color: var(--ink-3); font-size: .875rem; }

/* The desk: a few files and the Ruzeka window. The window opens with no animation, on purpose. */
.desk {
  position: relative; aspect-ratio: 16 / 8; min-height: 340px; border-radius: var(--r-l);
  background:
    radial-gradient(90% 80% at 85% 10%, rgba(1, 171, 160, .16), transparent 60%),
    linear-gradient(160deg, #e6f0ef, #f8fbfb 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px var(--line), 0 30px 60px -30px rgba(2, 60, 62, .35);
  overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.desk-files { position: absolute; left: 4%; top: 8%; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.file {
  display: grid; justify-items: center; gap: 6px; width: 96px; padding: 8px 4px; border: 0; border-radius: 10px;
  background: none; cursor: default; text-align: center;
}
.file .thumb { position: relative; width: 72px; aspect-ratio: 16 / 10; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 6px 14px rgba(2, 40, 42, .2); overflow: hidden; }
.file .fname { max-width: 100%; padding: 1px 6px; border-radius: 4px; font-size: .75rem; line-height: 1.4; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file.is-selected .thumb { box-shadow: 0 0 0 3px rgba(2, 75, 77, .25), 0 6px 14px rgba(2, 40, 42, .2); }
.file.is-selected .fname { background: #0a64d2; color: #fff; }
.desk-hint { position: absolute; left: 4%; bottom: 6%; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .8125rem; }
.desk-hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
html:not(.js) .desk-hint { display: none; }

.player {
  position: absolute; right: 4%; top: 8%; width: 70%; border-radius: 12px; overflow: hidden;
  background: #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 30px 60px rgba(2, 30, 32, .35), 0 8px 18px rgba(2, 30, 32, .25);
}
.player[hidden] { display: none; }
.player:focus { outline: none; }
.player:focus-visible { box-shadow: 0 0 0 3px var(--teal), 0 30px 60px rgba(2, 30, 32, .35); }
.titlebar {
  position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent);
  font-size: .75rem; color: rgba(255, 255, 255, .9);
  transition: opacity var(--t) var(--ease);
}
.lights { display: flex; gap: 6px; }
.lights i, .lights .close { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.lights .close { background: #ff5f57; cursor: pointer; }
.titlebar .ptitle { flex: 1; text-align: center; margin-right: 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }

/* The "videos": stills of the wave from the App Store header video (design/ruzeka/brand/). */
.scene { position: absolute; inset: 0; display: block; background: var(--stage) center / cover no-repeat; }
.scene-0 { background-image: url("../img/scene-wave.webp"); }
.scene-1 { background-image: url("../img/scene-break.webp"); }
.scene-2 { background-image: url("../img/scene-foam.webp"); }

/* Playing: the picture drifts a little. Stops with "reduce motion". */
@keyframes drift { from { transform: scale(1.03) translateX(-1%); } to { transform: scale(1.08) translateX(1.5%); } }
.player[data-playing="true"] .screen .scene { animation: drift 12s linear infinite alternate; }

/* The control bar: a glass capsule, as in the app (Ruzeka spec 03 3.5, 12.3). */
.bar {
  position: absolute; left: 50%; bottom: 7%; z-index: 3; display: flex; align-items: center; gap: 10px;
  width: min(88%, 420px); padding: 7px 12px; border-radius: 999px; transform: translateX(-50%);
  background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--glass-line);
  color: #fff; font-size: .6875rem; font-variant-numeric: tabular-nums;
  opacity: 1; transition: opacity var(--t) var(--ease);
}
.player[data-bar="hidden"] .bar, .player[data-bar="hidden"] .titlebar { opacity: 0; transition-duration: var(--t-exit); }
.player[data-bar="idle"] .bar, .player[data-bar="idle"] .titlebar { opacity: 0; transition-duration: var(--t-slow); }
.bar button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.bar button:focus-visible { outline-color: #fff; outline-offset: 1px; }
.bar svg { width: 14px; height: 14px; fill: currentColor; }
.bar .i-pause { display: none; }
.player[data-playing="true"] .bar .i-play { display: none; }
.player[data-playing="true"] .bar .i-pause { display: block; }
.seek { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.seek-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: rgba(255, 255, 255, .95); }

/* ---------------------------------------------------------------- Speed: a bold band
   Deep teal from the wordmark, the wave of the icon sweeping across, one big word. */
.rush {
  position: relative; overflow: hidden; margin-top: var(--section); padding-block: clamp(88px, 12vw, 152px);
  color: #fff; background:
    radial-gradient(60% 80% at 85% 10%, rgba(1, 171, 160, .55), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(1, 171, 160, .35), transparent 70%),
    linear-gradient(160deg, #035a5c, var(--brand) 55%, #013436);
}
.rush-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rush-lines path { fill: none; stroke: rgba(115, 236, 222, .5); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 0; }
.rush-lines path:nth-child(2) { stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
.rush-lines path:nth-child(3) { stroke: rgba(115, 236, 222, .25); stroke-width: 1; }
/* The lines sweep in once, fast, when the band comes into view (rush.js adds .is-in). */
.js .rush:not(.is-in) .rush-lines path { stroke-dashoffset: 2400; }
.js .rush.is-in .rush-lines path { transition: stroke-dashoffset .9s cubic-bezier(.3, .7, .1, 1); }
.js .rush.is-in .rush-lines path:nth-child(2) { transition-delay: .08s; }
.js .rush.is-in .rush-lines path:nth-child(3) { transition-delay: .16s; }
.rush > .wrap { position: relative; }
.rush .eyebrow { color: #7ff0e3; }
.rush-title { margin-top: 10px; color: #fff; font-size: clamp(4rem, 15vw, 11rem); line-height: .95; letter-spacing: -.03em; }
.rush-title:lang(en) { letter-spacing: -.045em; }
.rush-lede { margin-top: 28px; max-width: 44rem; color: rgba(255, 255, 255, .86); font-size: clamp(1.0625rem, 1.8vw, 1.3125rem); }

/* Scrub: drag and the picture follows at once (no transition, on purpose). */
.scrub { max-width: 920px; margin-top: clamp(48px, 7vw, 80px); }
.scrub-screen { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--r-l); background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 80px -30px rgba(0, 0, 0, .6); }
.scrub-screen .scene { opacity: 0; transform: scale(1.12); }
.scrub-screen .scene.is-on { opacity: 1; }
.scrub-time { position: absolute; right: 18px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); font: 600 .8125rem/1.2 var(--font); font-variant-numeric: tabular-nums; }
.scrub-bar { display: block; margin-top: 22px; }
.scrub-bar input { width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.scrub-bar input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--p, 12%), rgba(255, 255, 255, .25) var(--p, 12%)); }
.scrub-bar input::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.scrub-bar input::-moz-range-progress { height: 6px; border-radius: 3px; background: #fff; }
.scrub-bar input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(127, 240, 227, .35), 0 4px 10px rgba(0, 0, 0, .35); }
.scrub-bar input::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(127, 240, 227, .35), 0 4px 10px rgba(0, 0, 0, .35); }
.scrub-bar input:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 6px; }
.scrub-hint { margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: .9375rem; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Tiles (lightness, features) */
.trio, .grid6 { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { padding: 30px 28px 32px; border-radius: var(--r-l); background: var(--panel); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.tile svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--teal-soft); stroke: var(--teal-text); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-top: 18px; color: var(--ink); font-size: 1.1875rem; }
.tile p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }

/* ---------------------------------------------------------------- Cameras */
.cam-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cam-grid .note { margin-top: 14px; }
.cam { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: var(--stage); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 30px 60px -30px rgba(2, 40, 42, .45); }
.cam-label { position: absolute; left: 14px; top: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: .75rem; font-weight: 650; color: #fff; }
.cam-osd { position: absolute; right: 14px; top: 14px; z-index: 2; font: 600 .75rem/1 var(--mono); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(48, 209, 88, .3); }

/* ---------------------------------------------------------------- Formats */
.formats { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-strong); }
.formats > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.formats dt { color: var(--ink-3); font-size: .9375rem; font-weight: 650; }
.formats dd { margin: 0; color: var(--ink); }
.formats dd small { display: block; margin-top: 4px; color: var(--ink-3); font-size: .875rem; }
.formats .tagline { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-3); font-size: .75rem; vertical-align: 2px; }
.unsupported { margin-top: 24px; max-width: var(--measure); color: var(--ink-3); font-size: .9375rem; }

/* ---------------------------------------------------------------- Requirements */
.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.req { padding: 30px 28px; border-radius: var(--r-l); background: var(--panel); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.req h3 { color: var(--brand); font-size: 1.375rem; }
.req ul { margin: 16px 0 0; padding: 0; list-style: none; }
.req li { position: relative; padding: 8px 0 8px 20px; color: var(--ink-2); font-size: .9375rem; border-top: 1px solid var(--line); }
.req li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.req .note { margin-top: 14px; }
.common { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; color: var(--ink-3); font-size: .875rem; }

/* ---------------------------------------------------------------- Closing */
.closing {
  position: relative; margin-top: var(--section); padding-block: clamp(80px, 12vw, 152px); text-align: center; overflow: hidden;
  background:
    linear-gradient(118deg, transparent 0 30%, rgba(255, 255, 255, .85) 30% 35%, transparent 35%),
    radial-gradient(60% 70% at 50% 100%, rgba(1, 171, 160, .18), transparent 70%),
    linear-gradient(180deg, #ffffff, #eef4f4);
  border-top: 1px solid var(--line);
}
.closing .mark { width: 96px; height: 96px; margin: 0 auto; filter: drop-shadow(0 14px 24px rgba(2, 75, 77, .25)); }
.closing .wordmark { width: auto; height: 44px; margin: 26px auto 0; }
.closing h2 { margin-top: 18px; font-size: clamp(1.625rem, 4vw, 2.5rem); }
.closing p { margin-top: 12px; color: var(--ink-2); }
.closing .soon { margin-top: 32px; }

/* ---------------------------------------------------------------- Footer */
.footer { padding-block: 36px 48px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer .brand .mark { width: 22px; height: 22px; }
.footer .brand .wordmark { height: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-copy a { text-decoration: none; }
@media (hover: hover) { .footer-links a:hover, .footer-copy a:hover { color: var(--brand); } }
.footer-copy { margin-left: auto; }

/* ---------------------------------------------------------------- Documents (privacy, support) */
.doc { padding-bottom: clamp(72px, 10vw, 128px); }
.doc-head { padding-top: clamp(56px, 8vw, 104px); }
.doc-head h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
.doc-head .meta { margin-top: 12px; color: var(--ink-3); font-size: .9375rem; }
.doc-body { max-width: var(--measure); margin-top: 40px; }
.doc-body h2 { margin-top: 48px; color: var(--ink); font-size: 1.375rem; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h2 + p { margin-top: 12px; }
.doc-body p { color: var(--ink-2); }
.doc-body p + p { margin-top: 12px; }
.doc-body a, .answer a, .contact a { color: var(--teal-text); }

.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.faq-nav a { display: block; padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: .875rem; text-decoration: none; }
@media (hover: hover) { .faq-nav a:hover { color: var(--brand); background: var(--teal-soft); } }
.faq-group { margin-top: 64px; max-width: 48rem; }
.faq-group h2 { margin-bottom: 16px; font-size: 1.375rem; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; cursor: pointer; color: var(--ink); font-weight: 650; font-size: 1.0625rem; list-style: none; transition: color var(--t-fast); }
.qa summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .qa summary:hover { color: var(--teal-text); } }
.qa-icon { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); transition: transform var(--t-slow) var(--ease), background var(--t); }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.8px; margin: -.9px 0 0 -5px; border-radius: 1px; background: currentColor; }
.qa-icon::after { transform: rotate(90deg); }
.qa[open] .qa-icon { transform: rotate(45deg); background: var(--teal-soft); color: var(--teal-text); }
.qa .answer { max-width: 42rem; padding: 0 4px 22px; color: var(--ink-2); }
.qa .answer p + p, .qa .answer p + ul, .qa .answer ul + p { margin-top: 10px; }
.qa .answer ul { margin: 8px 0 0; padding-left: 1.25em; }
.qa .answer li + li { margin-top: 4px; }
.keylist { display: grid; gap: 0; margin-top: 12px; }
.keylist div { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.keylist dt { display: flex; gap: 4px; }
.keylist dd { margin: 0; }
.key { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 8px; border-radius: 7px; background: linear-gradient(180deg, #ffffff, #f1f4f4); box-shadow: inset 0 0 0 1px var(--line-strong), 0 2px 0 rgba(2, 40, 42, .12); font: 600 .8125rem/1 var(--font); color: var(--ink); }
.qa::details-content { block-size: 0; overflow-y: clip; transition: block-size var(--t-slow) ease, content-visibility var(--t-slow) allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* Contact form: structure comes from /form/contact.css; only the colours are set here. */
.contact { margin-top: 80px; max-width: 46rem; padding-top: 56px; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(1.625rem, 3vw, 2rem); }
.contact-lede { margin-top: 14px; color: var(--ink-2); }
.contact-open { margin-top: 28px; }
.contact noscript p { margin-top: 20px; color: var(--ink-3); }
.contact .cf-form {
  --cf-text: var(--ink);
  --cf-muted: var(--ink-3);
  --cf-field-bg: #fff;
  --cf-border: var(--line-strong);
  --cf-border-focus: var(--teal-text);
  --cf-accent: var(--teal-text);
  --cf-accent-soft: rgba(1, 171, 160, .16);
  --cf-error: #c62828;
  --cf-radius: 14px;
  margin-top: 36px;
}
.contact .btn[disabled] { opacity: .5; cursor: default; }
.cf-success { margin-top: 36px; padding: 28px 30px; border-radius: 22px; background: linear-gradient(180deg, rgba(1, 171, 160, .1), rgba(1, 171, 160, .03)); box-shadow: inset 0 0 0 1px rgba(1, 171, 160, .32); }
.cf-success h3 { font-size: 1.25rem; color: var(--brand); }
.cf-success h3:focus { outline: none; }
.cf-success p { margin-top: 10px; color: var(--ink-2); }

/* ---------------------------------------------------------------- Smaller screens */
@media (max-width: 1023px) {
  .desk { aspect-ratio: 16 / 10; }
  .cam-grid { grid-template-columns: minmax(0, 1fr); }
  .trio, .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scrub-screen { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .nav-links .opt { display: none; }
  .trio, .grid6, .req-grid { grid-template-columns: minmax(0, 1fr); }
  .formats > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .footer-copy { margin-left: 0; width: 100%; }
  .desk { aspect-ratio: auto; min-height: 0; height: 360px; }
  .desk-files { left: 50%; top: auto; bottom: 13%; display: flex; gap: 6px; transform: translateX(-50%); }
  .file { width: 88px; }
  .file .thumb { width: 64px; }
  .player { left: 5%; right: 5%; top: 6%; width: auto; }
  .desk-hint { left: 0; right: 0; bottom: 5%; justify-content: center; }
}
@media (max-width: 400px) {
  .qa summary { font-size: 1rem; }
  .tile { padding: 24px 22px 26px; }
}

/* ---------------------------------------------------------------- Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .player[data-playing="true"] .screen .scene { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bar, .scrub-time { background: #26282b; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #1e3133; --ink-3: #3d5153; --line: rgba(2, 75, 77, .3); --line-strong: rgba(2, 75, 77, .5); --glass-line: rgba(255, 255, 255, .5); }
}
