/* Flick website — light, Apple-style product page. Accent gradient = the Daybreak app icon. No framework.
   All product motion is real screen recordings of Flick (media/*.mp4); see main.js for playback. */

:root {
  --bg: #FFFFFF;
  --soft: #F5F5F7;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --line: #E5E5EA;
  --blue: #0071E3;
  --blue-hover: #0077ED;
  --link: #0066CC;
  --card-shadow: 0 0 0 1px #ECECF0, 0 12px 32px -24px rgba(0, 0, 0, 0.18);
  --clip-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 28px 56px -30px rgba(0, 0, 0, 0.42);
  --clip-empty: linear-gradient(150deg, #F3F3F6 0%, #E7E7EC 100%);
  --daybreak: linear-gradient(90deg, #F5A524 0%, #FF6B4A 35%, #F0387B 68%, #A53CD6 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --content: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -48px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50; height: 48px;
  background: rgba(22, 22, 23, 0.86);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav { position: relative; max-width: var(--content); height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #F5F5F7; font-weight: 600; font-size: 16px; }
.brand img { border-radius: 5px; }
.brand-dark { color: var(--ink); }
.nav-menu { display: flex; align-items: center; margin-left: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: rgba(245, 245, 247, 0.8); font-size: 13px; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] {
  color: #fff; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}
.nav-menu-download { display: none; }
.nav-toggle { display: none; }

/* ---------- Buttons & links ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 11px 22px; border-radius: 980px;
  background: var(--blue); color: #fff; text-decoration: none; font-size: 17px; white-space: nowrap;
  transition: background 0.2s ease, transform 0.12s ease;
}
.pill:hover { background: var(--blue-hover); }
.pill:active { transform: scale(0.98); }
.pill-small { min-height: 28px; padding: 4px 13px; font-size: 12px; }
.text-link { color: var(--link); text-decoration: none; font-size: 17px; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.gradient-text { background: var(--daybreak); -webkit-background-clip: text; background-clip: text; color: transparent; }

kbd {
  min-width: 40px; height: 36px; padding: 0 10px; border-radius: 9px; display: inline-grid; place-items: center;
  font: 600 15px/1 var(--font); color: var(--ink); background: linear-gradient(#FFFFFF, #F1F1F4);
  box-shadow: 0 0 0 1px #D9D9DE, 0 2px 0 #C9C9CF; white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero { max-width: var(--content); margin: 0 auto; padding: 44px 24px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 1px #E6E6EA, 0 6px 18px -10px rgba(0, 0, 0, 0.25);
  font-size: 14px; color: var(--ink); text-decoration: none; margin-bottom: 30px;
}
.announce svg { color: var(--ink-2); }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--daybreak); }
.hero-icon { margin-bottom: 18px; filter: drop-shadow(0 10px 22px rgba(240, 56, 123, 0.28)); }
h1 { font-size: clamp(44px, 6.6vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.lede { margin: 18px 0 0; max-width: 660px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.42; color: var(--ink-2); }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 28px; scroll-margin-top: 90px; }
.cta-left { justify-content: flex-start; }
.fine { margin: 14px 0 0; font-size: 12px; color: var(--ink-2); }

/* ---------- Clips: rounded cards holding a real recording ---------- */

/* The box keeps its aspect ratio (from media/manifest.json when present) whether or not the recording loads,
   so a missing clip never moves the layout. Until a poster arrives it is a quiet neutral surface. */
.clip {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: var(--ar, 16 / 10);
  border-radius: 22px; background: var(--clip-empty); box-shadow: var(--clip-shadow);
}
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.clip[data-state="missing"] video { visibility: hidden; }
.clip[data-state="missing"]::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 11px;
  background: url("assets/flick-icon-256.png") center / contain no-repeat; opacity: 0.28; filter: grayscale(1);
}

/* Big round play button: shown when a clip is paused by choice, by Reduce Motion, or by the browser. */
.clip-play {
  position: absolute; z-index: 6; inset: 0; margin: auto; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: transform 0.15s ease, background 0.2s ease;
}
.clip-play:hover { transform: scale(1.05); background: rgba(255, 255, 255, 0.9); }
.clip-play:focus-visible { outline-offset: 4px; border-radius: 50%; }
.clip-play svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }

/* Pause / play toggle, one per group of clips. */
.media-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 28px; }
.media-bar-end { justify-content: flex-end; }
.media-note { margin: 0; display: inline-flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-2); }
.media-note .rec-dot { margin-top: 6px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.16); flex: none; }
.media-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 15px 0 11px; border: 0; border-radius: 999px;
  background: #E8E8ED; color: var(--ink); font: 500 14px/1 var(--font); letter-spacing: -0.01em; cursor: pointer;
  transition: background 0.2s ease;
}
.media-toggle:hover { background: #DDDDE3; }
.media-toggle svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.media-toggle .i-play, .media-toggle[data-paused="true"] .i-pause { display: none; }
.media-toggle[data-paused="true"] .i-play { display: block; }
.media-toggle-quiet { margin-top: 22px; background: #E3E3E8; }
.media-toggle-glass {
  width: 38px; height: 38px; min-height: 0; padding: 0; justify-content: center; color: #fff;
  background: rgba(30, 30, 32, 0.5); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.media-toggle-glass:hover { background: rgba(30, 30, 32, 0.68); }

/* ---------- The film (hero) ---------- */

.film { margin: 52px 0 0; width: 100%; max-width: 1040px; }
.film-frame {
  position: relative; aspect-ratio: var(--ar, 16 / 10); border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #000; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.45); transform-origin: 50% 40%;
}
.clip-hero { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #000; }
.clip-hero[data-state="missing"]::after { display: none; } /* the title card is the hero's placeholder */
.film-player { position: absolute; inset: 0; z-index: 8; width: 100%; height: 100%; object-fit: contain; background: #000; }

.film-title {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
  background: #000; color: #fff; pointer-events: none; transition: opacity 0.7s ease, visibility 0s linear 0s;
}
.film-title.is-hidden { opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.film-kicker { margin: 0; font-size: clamp(18px, 2.4vw, 28px); color: rgba(255, 255, 255, 0.55); font-weight: 600; letter-spacing: -0.02em; }
.film-headline { margin: 6px 0 0; font-size: clamp(30px, 5vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }

.film-bar {
  position: absolute; z-index: 7; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.film-bar > * { pointer-events: auto; }
.film-bar .media-toggle-glass { margin-left: auto; }
.film-play {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 18px 0 6px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--font); letter-spacing: -0.01em; color: var(--ink);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.15s ease, background 0.2s ease;
}
.film-play:hover { background: rgba(255, 255, 255, 0.95); }
.film-play:active { transform: scale(0.98); }
.film-play-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.film-play-icon svg { width: 13px; height: 13px; margin-left: 2px; fill: currentColor; }
.film-duration { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.film-close {
  position: absolute; z-index: 9; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(30, 30, 32, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.film-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.film-frame.is-film .film-bar, .film-frame.is-film .film-title, .film-frame.is-film .clip-play { display: none; }
.film-frame.is-film { animation: none; transform: none; opacity: 1; } /* the film always plays at full size */

.keys-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; color: var(--ink-2); font-size: 14px; }
.keys-hint span { margin-left: 8px; }

/* Scroll-linked entrance: the frame settles from 94% to full size as it scrolls into view.
   CSS scroll-driven animations where supported; main.js sets the same values elsewhere. */
@keyframes film-in {
  from { transform: scale(0.94); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .film-frame { animation: film-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}

/* ---------- Sections ---------- */

.section { padding: 120px 0; }
.section.soft { background: var(--soft); }
.section-title { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.section-sub { margin: 14px 0 0; max-width: 620px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.42; color: var(--ink-2); }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

/* Gentle rise-in for tour rows and moment cards (only with JS, never with Reduce Motion). */
.reveal { transition: opacity 0.8s ease, transform 0.8s var(--ease-out); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(32px); }

/* Tour: one row per step, copy beside its own clip, alternating sides. */
.tour-list { display: grid; gap: clamp(72px, 9vw, 120px); margin-top: 64px; }
.tour-row { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.28fr); gap: 64px; align-items: center; }
.tour-row:nth-child(even) { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.82fr); }
.tour-row:nth-child(even) .tour-copy { order: 2; }
.tour-copy h3 { font-size: 28px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 10px; }
.tour-copy p { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 420px; }
.tour-copy .step-keys { display: flex; gap: 6px; margin: 0 0 20px; }
.step-keys kbd, .card .step-keys kbd, .callout .step-keys kbd { min-width: 32px; height: 30px; padding: 0 9px; margin: 0; border-radius: 8px; font-size: 13px; vertical-align: 0; box-shadow: 0 0 0 1px #D9D9DE, 0 2px 0 #C9C9CF; }
.keys { display: inline-flex; gap: 3px; white-space: nowrap; vertical-align: 1px; }
.keys kbd { margin: 0; }
.keys + .keys { margin-left: 8px; }
.card .tour-copy p { max-width: none; }
.tour-aside { margin: clamp(80px, 10vw, 128px) auto 0; max-width: 620px; text-align: center; }
.tour-aside h3 { font-size: 28px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 10px; }
.tour-aside p { margin: 0; font-size: 19px; color: var(--ink-2); }

/* Pick your side: three recordings stacked, crossfaded by the segmented control. */
.look-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.segmented {
  display: inline-flex; gap: 2px; padding: 3px; margin-top: 28px; border-radius: 999px; background: #E8E8ED;
}
.segmented button {
  min-height: 40px; min-width: 86px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  font: 500 15px/1 var(--font); color: var(--ink-2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.segmented button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.segmented-small { margin-top: 10px; }
.segmented-small button { min-height: 34px; min-width: 76px; font-size: 14px; }
.look-note { margin: 18px 0 0; color: var(--ink-2); }
.look-note strong { color: var(--ink); }
.look-copy { display: flex; flex-direction: column; align-items: flex-start; }
.look-media {
  position: relative; aspect-ratio: var(--ar, 16 / 10); border-radius: 22px; overflow: hidden; isolation: isolate;
  background: var(--clip-empty); box-shadow: var(--clip-shadow);
}
.look-media .clip {
  position: absolute; inset: 0; z-index: 1; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: var(--clip-empty);
  opacity: 0; visibility: hidden; transition: opacity 0s linear 0.5s, visibility 0s linear 0.5s;
}
.look-media .clip.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity 0.45s ease; }

/* Moments: three small clips in the "Everything it does" section. */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.moment { margin: 0; }
.moment .clip { border-radius: 18px; }
.moment figcaption { margin-top: 14px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.moment figcaption strong { color: var(--ink); font-weight: 600; }
.moment:nth-child(2) { transition-delay: 0.08s; }
.moment:nth-child(3) { transition-delay: 0.16s; }

/* Toolbox */
.toolbox { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.tool-card { padding: 22px 24px 10px; border-radius: 22px; background: #fff; box-shadow: var(--card-shadow); }
.tool-group { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.tool-card ul { list-style: none; margin: 0; padding: 0; }
.tool-card li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid #F0F0F3; }
.tool-card li:first-child { border-top: 0; }
.tool-card li strong { display: block; font-size: 16px; font-weight: 600; }
.tool-card li span:not(.tool-icon):not(.badge) { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.tool-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.tool-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ti-sun { background: linear-gradient(#FFC24D, #F59E0B); }
.ti-coral { background: linear-gradient(#FF8A6B, #F2553C); }
.ti-pink { background: linear-gradient(#FF77A8, #E0336F); }
.ti-violet { background: linear-gradient(#C084FC, #8B3FD9); }
.ti-blue { background: linear-gradient(#5AA9FF, #1E6FE0); }
.ti-gray { background: linear-gradient(#B4B4BC, #86868E); }
.tool-card-soon { background: linear-gradient(#FFFFFF, #FBFBFD); }

/* Privacy cards */
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { padding: 32px; border-radius: 22px; background: #fff; box-shadow: var(--card-shadow); }
.card-icon { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card a { color: var(--link); }

/* Pricing */
.price-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-top: 40px; border-radius: 22px; background: #fff; box-shadow: var(--card-shadow); overflow: hidden; }
.price-main { padding: 40px; }
.price-name { margin: 0; font-weight: 600; font-size: 17px; }
.price-label { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.price { margin: 18px 0 0; font-size: clamp(52px, 7vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price small { font-size: 16px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-2); }
.price-fine { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; }
.price-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid #F0F0F3; }
.price-stats div { padding: 32px; border-bottom: 1px solid #F0F0F3; }
.price-stats div:nth-child(odd) { border-right: 1px solid #F0F0F3; }
.price-stats div:nth-last-child(-n + 2) { border-bottom: 0; }
.price-stats dt { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.price-stats dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid #D2D2D7; }
.faq details { border-bottom: 1px solid #D2D2D7; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-2); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--ink-2); max-width: 680px; }
.faq + .text-link { display: inline-block; margin-top: 24px; }
.faq + p, .faq + .callout { margin-top: 24px; }
.faq summary, .tool-card li span:not(.tool-icon):not(.badge), figcaption, .prose li { text-wrap: pretty; }
.faq a, .section-sub a { color: var(--link); text-decoration: none; }
.faq a:hover, .section-sub a:hover { text-decoration: underline; }

/* Closing */
.closing { padding: 120px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing img { margin-bottom: 18px; }
.closing h2 { font-size: clamp(44px, 6vw, 64px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.closing p { margin: 12px 0 0; font-size: 21px; color: var(--ink-2); }
.closing .fine { margin-top: 16px; font-size: 12px; }

/* Footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 44px 0 40px; font-size: 12px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px 24px; padding-bottom: 32px; }
.footer-brand p { margin: 10px 0 0; max-width: 260px; }
.footer-download { display: inline-block; margin-top: 12px; color: var(--link); text-decoration: none; font-size: 13px; }
.footer-download:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer nav h2 { margin: 0 0 3px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; color: var(--ink); }
.site-footer nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #D2D2D7; }
.legal-note { margin: 0; max-width: 780px; }
.copyright { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  /* The header links fold into a sheet under the bar, opened by the menu button (main.js). */
  .nav { gap: 16px; }
  .nav-buy { margin-left: auto; }
  .nav-menu { display: none; }
  .js .nav-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; margin-right: -10px; padding: 0; border: 0; border-radius: 10px;
    background: transparent; color: #F5F5F7; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 17px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
  }
  .nav-toggle-bars { position: relative; background: transparent; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -3.5px; }
  .nav-toggle-bars::after { top: 3.5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header.is-open { background: #161617; }
  .site-header.is-open .nav-menu {
    position: absolute; top: 48px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch;
    max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 4px 24px 28px;
    background: #161617; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6); animation: menu-in 0.24s var(--ease-out);
  }
  .site-header.is-open .nav-links { flex-direction: column; gap: 0; }
  .site-header.is-open .nav-links a { display: block; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 19px; font-weight: 500; color: rgba(245, 245, 247, 0.92); }
  .site-header.is-open .nav-links a[aria-current="page"] { color: #fff; text-decoration: none; }
  .site-header.is-open .nav-links a[aria-current="page"]::after { content: " •"; color: #F0387B; }
  .site-header.is-open .nav-menu-download { display: inline-flex; gap: 6px; margin-top: 20px; font-size: 17px; color: #2997FF; text-decoration: none; }
  .tour-row, .tour-row:nth-child(even), .look-grid, .price-card, .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .tour-row { gap: 28px; }
  .tour-row:nth-child(even) .tour-copy { order: 0; }
  .tour-list { margin-top: 48px; gap: 72px; }
  .moments { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .moment:nth-child(n) { transition-delay: 0s; }
  .toolbox { grid-template-columns: minmax(0, 1fr); }
  .price-stats { border-left: 0; border-top: 1px solid #F0F0F3; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 88px 0; }
}

@media (max-width: 600px) {
  .container, .nav { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .film { margin-top: 40px; }
  .film-frame, .clip, .look-media { border-radius: 16px; }
  .clip-hero, .look-media .clip { border-radius: 0; }
  .film-bar { left: 10px; right: 10px; bottom: 10px; }
  .film-play { min-height: 36px; padding: 0 13px 0 4px; gap: 7px; font-size: 13px; }
  .film-play-icon { width: 28px; height: 28px; }
  .media-toggle-glass { width: 34px; height: 34px; }
  .film-close { top: 10px; right: 10px; width: 34px; height: 34px; }
  .film-kicker { font-size: 15px; }
  .film-headline { font-size: 26px; }
  .clip-play { width: 54px; height: 54px; }
  .tour-copy h3, .tour-aside h3 { font-size: 24px; }
  .tour-copy p, .tour-aside p { font-size: 17px; }
  .site-header.is-open .nav-menu { padding-left: 16px; padding-right: 16px; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media print {
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
  .film-frame { animation: none; transform: none; opacity: 1; }
  .look-media .clip, .look-media .clip.is-active { transition: none; }
  .film-title, .film-title.is-hidden { transition: none; }
  .site-header.is-open .nav-menu { animation: none; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after, .link-card { transition: none; }
}

/* ---------- Legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 80px 24px 120px; }
.legal h1 { margin: 0 0 8px; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.05; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--link); }
.legal .fine { margin-bottom: 40px; }

/* ---------- Pages (everything except the home page) ----------
   Markup patterns: design/website/page-template.html. Shared header/footer: scripts/sync-site-chrome.py. */

.page-hero { max-width: var(--content); margin: 0 auto; padding: 76px 24px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.035em; }
.page-hero .lede { max-width: 640px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero-icon { margin-bottom: 18px; filter: drop-shadow(0 10px 22px rgba(240, 56, 123, 0.26)); }
.page-hero + .section, .page-hero + .section-tight { padding-top: 64px; }
.section-tight { padding: 80px 0; }
.section-tight.soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; line-height: 1.3;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2);
}
.chip strong { color: var(--ink); font-weight: 600; }
a.chip { color: var(--ink); text-decoration: none; transition: background 0.2s ease, box-shadow 0.2s ease; }
a.chip:hover { background: var(--soft); text-decoration: none; box-shadow: inset 0 0 0 1px #D2D2D7; }
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; vertical-align: 2px;
  font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1.3; background: #E8F1FD; color: #0058B9;
}
.badge-new { background: #E5F6EA; color: #13733A; }
.badge-improved { background: #E8F1FD; color: #0058B9; }
.badge-fixed { background: #FFF0E3; color: #A4500E; }
.badge-soon { background: #EFEFF2; color: #5E5E63; }

/* Docs layout: "On this page" beside long-form text. main.js marks the section being read. */
.doc-layout { max-width: var(--content); margin: 0 auto; padding: 56px 24px 120px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: 80px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; }
.toc h2 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--blue); font-weight: 500; }

/* Long-form text */
.prose { max-width: 720px; min-width: 0; color: #3A3A3C; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 72px 0 14px; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.022em; font-weight: 600; color: var(--ink); scroll-margin-top: 76px; }
.prose h3 { margin: 36px 0 8px; font-size: 20px; line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; color: var(--ink); scroll-margin-top: 76px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--ink-2); }
.prose a { color: var(--link); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { margin: 56px 0; border: 0; border-top: 1px solid var(--line); }
.prose .lead { font-size: 19px; color: var(--ink-2); }
.prose figure { margin: 28px 0; }
.prose figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.prose .steps { margin: 32px 0; padding-left: 0; }
.prose .steps > li { margin: 0; }
.prose .spec, .prose .card-grid, .prose .cards-2 { margin: 24px 0; }
.prose .link-card, .prose .link-card:hover { color: var(--ink); text-decoration: none; }
.prose .link-card h3 { margin: 0; }
.prose .link-card p { margin: 0; }
.prose .link-card .more { color: var(--link); }
.prose .faq { margin: 24px 0; }
.prose .media-bar { margin: 0 0 20px; }
.prose .clip + .media-bar { margin: 14px 0 0; }
.section-tight + .doc-layout { padding-top: 0; }
.visually-hidden + .price-card { margin-top: 0; }
code { font: 0.88em/1.4 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: var(--soft); color: var(--ink); overflow-wrap: anywhere; }
pre { margin: 0; padding: 16px 18px; border-radius: 14px; background: #1D1D1F; color: #F5F5F7; overflow-x: auto; font-size: 14px; line-height: 1.55; }
pre code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; }

/* Small inline keys inside text, tables and lists */
.prose kbd, .table kbd, .callout kbd, kbd.key, .faq kbd, .link-card kbd, .card kbd {
  min-width: 24px; height: 24px; padding: 0 6px; margin: 0 1px; border-radius: 6px; vertical-align: 1px;
  font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px #D9D9DE, 0 1.5px 0 #C9C9CF;
}

/* A command with a copy button (button added by main.js) */
.code-block { position: relative; margin: 20px 0; }
.code-block pre { padding-right: 84px; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; min-height: 28px; padding: 0 11px; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #F5F5F7; font: 500 12px/1 var(--font); transition: background 0.2s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* Callouts */
.callout { display: flex; gap: 14px; margin: 24px 0; padding: 18px 20px; border-radius: 16px; background: #EEF5FF; color: var(--ink); font-size: 16px; }
.callout > svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout p { margin: 0; color: var(--ink); }
.callout p + p { margin-top: 8px; }
.callout a { color: var(--link); }
.callout .pill, .callout .pill:hover { color: #fff; text-decoration: none; }
.callout a:not(.pill) { text-decoration: none; }
.callout a:not(.pill):hover { text-decoration: underline; }
.callout-title { display: block; margin-bottom: 3px; font-weight: 600; }
.callout-warn { background: #FFF5E1; }
.callout-warn > svg { stroke: #C26E00; }
.callout-ok { background: #EAF7EE; }
.callout-ok > svg { stroke: #1F8A44; }

/* Numbered steps with a connecting line */
.steps { list-style: none; margin: 32px 0; padding: 0; counter-reset: step; }
.steps > li { position: relative; margin: 0; padding: 0 0 44px 64px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 17px; font-weight: 600;
}
.steps > li::after { content: ""; position: absolute; left: 19.5px; top: 50px; bottom: 8px; width: 1px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 7px 0 8px; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.steps p { margin: 0 0 12px; }
.steps .callout, .steps .code-block { margin: 14px 0; }

/* Tables */
.table-wrap { margin: 24px 0; overflow-x: auto; border-radius: 18px; background: #fff; box-shadow: var(--card-shadow); -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.table caption { padding: 16px 18px 0; text-align: left; font-size: 14px; color: var(--ink-2); }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid #F0F0F3; }
.table thead th { padding-top: 12px; padding-bottom: 12px; background: #FAFAFC; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td { color: var(--ink-2); }
.table tbody th, .table td.strong { color: var(--ink); font-weight: 500; }
.table-keys tbody th { width: 1%; white-space: nowrap; }
.table-compare th:not(:first-child), .table-compare td:not(:first-child) { text-align: center; }
.table-compare tbody th[colspan] { padding-top: 20px; padding-bottom: 8px; text-align: left; background: #FAFAFC; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.table-compare thead th:first-child, .table-compare tbody th:not([colspan]) { position: sticky; left: 0; z-index: 1; background: #fff; }
.table-compare thead th:first-child { background: #FAFAFC; }
.table-compare .col-flick, .table-plans .col-flick { background: #F4F8FF; }
.table-plans thead .col-flick { color: var(--blue); background: #EAF2FF; }
.table-compare thead .col-flick { color: var(--blue); background: #EAF2FF; }
.mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mark-yes { background: #E3F5E8; color: #1F8A44; }
.mark-no { background: #F1F1F4; color: #6E6E73; }
.mark-part { background: #FFF2DC; color: #B26A00; }
.mark-note { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); }

/* Cards that link somewhere */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-card {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 24px; border-radius: 22px; background: #fff; color: var(--ink);
  text-decoration: none; box-shadow: var(--card-shadow); transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.link-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #E2E2E8, 0 20px 40px -24px rgba(0, 0, 0, 0.3); }
.link-card .tool-icon { margin-bottom: 8px; }
.link-card h3 { font-size: 19px; letter-spacing: -0.015em; font-weight: 600; }
.link-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.link-card .more { margin-top: auto; padding-top: 10px; font-size: 15px; color: var(--link); }

/* Key facts (requirements, what's included) */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-radius: 22px; background: #fff; box-shadow: var(--card-shadow); overflow: hidden; }
.spec > div { padding: 22px 26px; border-bottom: 1px solid #F0F0F3; }
.spec > div:nth-child(odd) { border-right: 1px solid #F0F0F3; }
.spec > div:nth-last-child(-n + 2):nth-child(odd), .spec > div:last-child { border-bottom: 0; }
.spec dt { font-size: 13px; color: var(--ink-2); }
.spec dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.spec-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-3 > div:nth-child(odd) { border-right: 0; }
.spec-3 > div:not(:nth-child(3n)) { border-right: 1px solid #F0F0F3; }
.spec-3 > div:nth-last-child(-n + 3) { border-bottom: 0; }

/* Changelog */
.release { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.release:first-child { border-top: 0; padding-top: 0; }
.release-meta h2 { font-size: 28px; letter-spacing: -0.02em; font-weight: 600; scroll-margin-top: 76px; }
.release-meta p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.release-meta .badge { margin-top: 10px; }
.release-body h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 17px; }
.release-body ul { margin: 0 0 26px; padding-left: 20px; color: #3A3A3C; }
.release-body p { margin: 0 0 20px; color: var(--ink-2); }
.release-body li { margin: 6px 0; }
.release-body > :last-child { margin-bottom: 0; }

/* Previous / next page */
.page-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-nav a { display: flex; flex-direction: column; gap: 2px; color: var(--link); text-decoration: none; font-size: 17px; }
.page-nav a:hover span { text-decoration: underline; }
.page-nav small { font-size: 13px; color: var(--ink-2); }
.page-nav a[rel="next"] { margin-left: auto; text-align: right; }

/* 404 */
.not-found { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 96px 24px; text-align: center; }
.not-found-code { margin: 0 0 8px; font-size: clamp(96px, 16vw, 168px); font-weight: 800; line-height: 1; letter-spacing: -0.06em; }
.not-found h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; }
.not-found .lede { max-width: 520px; }

@media (min-width: 901px) {
  /* The three home moments have different aspect ratios: line their captions up anyway. */
  .moments { grid-template-rows: auto auto; row-gap: 0; }
  .moment { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .moment .clip { align-self: end; }
}

@media (min-width: 601px) {
  .prose .table:not(.table-compare):not(.table-keys) tbody th { width: 30%; }
}

@media (max-width: 900px) {
  .legal { padding-top: 56px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .toc { position: static; max-height: none; padding: 18px 20px 14px; border-radius: 18px; background: var(--soft); }
  .card-grid, .card-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .release { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .spec-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-3 > div { border-right: 0 !important; border-bottom: 1px solid #F0F0F3 !important; }
  .spec-3 > div:nth-child(odd) { border-right: 1px solid #F0F0F3 !important; }
  .page-hero { padding-top: 56px; }
  .section-tight { padding: 64px 0; }
}

@media (max-width: 600px) {
  .page-hero, .doc-layout, .legal { padding-left: 16px; padding-right: 16px; }
  .price-main { padding: 28px 24px; }
  .price-stats div { padding: 20px 22px; }
  .price-stats dt { font-size: 21px; }
  .table-compare { min-width: 600px; }
  .table-compare caption { position: sticky; left: 0; width: calc(100vw - 32px); }
  .table-plans td.col-flick { margin: 2px -8px; padding: 4px 8px; border-radius: 8px; }
  .spec, .spec-3 { grid-template-columns: minmax(0, 1fr); }
  .spec > div, .spec-3 > div { border-right: 0 !important; border-bottom: 1px solid #F0F0F3 !important; }
  .spec > div:last-child, .spec-3 > div:last-child { border-bottom: 0 !important; }
  /* Reference tables read as stacked rows on phones (comparison tables scroll sideways instead). */
  .table:not(.table-compare) { min-width: 0; }
  .table:not(.table-compare) thead { display: none; }
  .table:not(.table-compare) tr { display: block; padding: 12px 16px; border-bottom: 1px solid #F0F0F3; }
  .table:not(.table-compare) tbody tr:last-child { border-bottom: 0; }
  .table:not(.table-compare) th, .table:not(.table-compare) td { display: block; padding: 2px 0; border: 0; }
  .table:not(.table-compare) tbody th { width: auto; white-space: normal; }
  .table:not(.table-compare) td[data-label]::before { content: attr(data-label) ": "; color: var(--ink); font-weight: 500; }
  .table-compare th, .table-compare td { padding: 12px 12px; }
  .steps > li { padding-left: 54px; }
  .steps > li::before { width: 34px; height: 34px; font-size: 15px; }
  .steps > li::after { left: 16.5px; top: 42px; }
  .page-nav { flex-direction: column; }
  .page-nav a[rel="next"] { margin-left: 0; text-align: left; }
}
