/* ── Typeface: Inter (variable, self-hosted, SIL OFL) ─── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --accent: #e8b04a;
  --accent-dim: rgba(232, 176, 74, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Typography ──────────────────────────────────────── */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Headlines: solid white (Inter 600, tight tracking set above). */
.hero h1,
.section-header h1,
.section-header h2,
.feature-text h2,
.download h2 {
  color: #ffffff;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.subhead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 580px;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

/* ── Navigation ──────────────────────────────────────── */
/* Transparent over the hero. Once scrolled (.is-scrolled, set by js/nav.js) a soft
   gradient fades page content out underneath — no bar, no border line. */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 2rem;
}

nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

nav.is-scrolled::before {
  opacity: 1;
}

nav .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Centered menu: the items sit in the exact middle of the page, independent of logo/CTA widths. */
.nav-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

.nav-menu li {
  position: relative;
  z-index: 1;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.95rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: #ffffff;
}

/* One glass pill, moved by js/nav.js: slides between items on hover, rests on the active section. */
.nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  will-change: transform, width;
}

.nav-pill.is-visible {
  opacity: 1;
}

.nav-pill.no-transition {
  transition: opacity 0.22s ease;
}

/* Glass CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem 0.5rem 0.8rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-cta svg {
  width: 18px;
  height: 18px;
}

/* Download hover card: QR code to the App Store (Darkroom-style) */
.nav-download {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Menu button — same glass as .nav-cta. Shown only below 900px (see the breakpoint block). */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 100px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-qr {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;                                   /* centred under the button */
  width: 156px;
  padding: 10px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.96);
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.nav-qr::before {           /* invisible bridge so the card survives the gap under the button */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px !important;
  height: 36px !important;
  padding: 6px;
  transform: translate(-50%, -50%);
  background: #000000;
  border-radius: 9px;
}

.nav-download:hover .nav-qr,
.nav-download:focus-within .nav-qr {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

/* Gold tint on pointer hover only. It used to key off .nav-download:focus-within, which now also
   fires when the menu button beside it is tapped — on iOS that latches the pill gold. */
@media (hover: hover) {
  .nav-download:hover .nav-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: #000000;
  }
}

.nav-cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
}

@media (hover: none) {
  .nav-qr { display: none; }   /* touch devices: the button simply opens the App Store */
}

/* ── Sub-pages (whats-new / faq / about) ─────────────── */
.page > section:first-of-type {
  padding-top: 6rem;               /* = .hero padding-top, so the label sits where it does on Home */
}

/* ── Glass download button (Eagle-style) ─────────────── */
/* Dark glass pill with a gradient ring and a highlight that travels around the border.
   Ring + beam are an SVG stroke overlay (no CSS masks — Safari-safe). */
.dl-button {
  position: relative;
  z-index: 20;                 /* above the 3D canvas */
  display: inline-flex;
  align-items: stretch;
  height: 52px;
  border-radius: 100px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(170, 153, 255, 0.14) 0%, rgba(26, 179, 255, 0.12) 100%), #0c0d12;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.dl-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.dl-ring rect {
  fill: none;
  x: 0.75px;
  y: 0.75px;
  width: calc(100% - 1.5px);
  height: calc(100% - 1.5px);
  rx: 25.25px;                  /* = (52px − 1.5px) / 2 → true pill; SVG clamps rx/ry independently, so 100px would give an ellipse */
  ry: 25.25px;
  stroke-width: 1.5;
}

.dl-ring-base {                 /* static gradient ring — kept faint so the comet reads as a streak */
  stroke: url(#dl-ring-grad);
  opacity: 0.38;
  transition: opacity 0.25s ease;
}

/* Travelling shine: an angle-driven comet (Eagle's CometStyle). js/nav.js rotates a "conic" head
   around the button at constant angular speed — lingering mid-edge, whipping around the ends — and
   per frame maps it to ONE dash stroked by a real linear gradient (tail transparent → head bright),
   so the fade is perfectly smooth. The static values below are only the no-JS fallback. */
.dl-ring-beam {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-linecap: round;
  stroke-width: 1.6;
  stroke-dasharray: 10 90;
  stroke-dashoffset: -24;
}

/* While JS drives the canvas glint, the static SVG beam is hidden. */
.dl-button.beam-js .dl-ring-beam {
  display: none;
}

.dl-beam-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

.dl-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.dl-button:hover .dl-ring-base {
  opacity: 0.85;
}

.dl-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.75rem 0 1.5rem;
  border-radius: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
}

.dl-main::before {           /* static top shine */
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.8;
}

.dl-apple {
  width: 20px;
  height: 20px;
  margin-top: -2px;
}

.hero .dl-button {
  margin-bottom: 4rem;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 0;                 /* height = content, so the intro follows the phone directly on tall screens */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 0;             /* the intro's own padding sets the gap under the phone */
  position: relative;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 176, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.hero .subhead {
  margin: 0 auto 3rem;
}

/* Hero device mockup */
.hero-device {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.hero-device img {
  width: 100%;
  height: auto;
}

/* ── 3D phones (js/device-3d.js) ─────────────────────── */
/* One fixed WebGL canvas behind the page; each [data-phone] slot is a placeholder box the phone is
   drawn into. The slot keeps the layout; the fallback image shows only without WebGL / JS. */
#phone-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.phone-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.showcase-slot {
  width: calc(50% - 2rem);        /* same width as one .feature-row column (1fr 1fr, 4rem gap), so the phone matches the feature phones */
  margin: 0 auto;
}

.phone-fallback {
  display: none;
  width: 100%;
  height: auto;
}

.no-webgl .phone-fallback {
  display: block;
}

.phone-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}

/* ── Intro / Tagline Section ─────────────────────────── */
.intro {
  text-align: center;
  padding: 5rem 0 8rem;
}

.intro p {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 500;
}

.intro strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Feature Sections (alternating) ──────────────────── */
.feature-section {
  padding: 6rem 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-text {
  max-width: 480px;
}

.feature-text .label {
  color: var(--accent);           /* .feature-text p would otherwise override the label gold */
}

.feature-text h2 {
  margin-bottom: 1.25rem;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-visual {
  position: relative;
}

.feature-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ── Full-Width Showcase ─────────────────────────────── */
.showcase {
  padding: 4rem 0;
}

.showcase-img {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

/* ── Secondary Feature List ──────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.feature-list-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── What's new / FAQ / About ─────────────────────────── */
.notes .section-header,
.faq .section-header,
.about .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.notes .section-header h1,
.notes .section-header h2,
.faq .section-header h1,
.faq .section-header h2,
.about .section-header h1,
.about .section-header h2 {
  margin-bottom: 1rem;
  /* Tag is <h1> for SEO; keep the h2 type scale so the pages look unchanged. */
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.about .section-header .subhead {
  margin: 0 auto;
  max-width: 640px;
}

/* FAQ tools: a pill search field, then a row of chips that jump to the groups. Same 720px column as the rows. */
.faq-tools {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.faq-search {
  position: relative;
  display: block;
  color: var(--text-tertiary);
}

.faq-search svg {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.faq-search input {
  width: 100%;
  padding: 0.95rem 1.25rem 0.95rem 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s ease;
}

.faq-search input::placeholder { color: var(--text-tertiary); }
.faq-search input::-webkit-search-decoration,
.faq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.faq-search input:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); }
.faq-search:focus-within { color: var(--text-secondary); }

.faq-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.faq-jump a {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.faq-jump a:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.3); }

/* FAQ accordion: hairline rows, white question, chevron rotates, answer in grey. Rows sit under a
   small group heading that carries the first hairline, so the rule survives filtering. */
.faq-list {
  max-width: 720px;               /* same content width as the What's new rows */
  margin: 0 auto;
}

.faq-group { padding: 0; scroll-margin-top: 6rem; }   /* the tag-level section rule adds 8rem otherwise */
.faq-group + .faq-group { margin-top: 2rem; }
.faq-group[hidden], .faq-item[hidden] { display: none; }

.faq-group h2 {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  scroll-margin-top: 6rem;        /* deep links (faq.html#luts) land below the fixed nav */
}

.faq-empty {
  padding: 1.4rem 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

.faq-empty[hidden] { display: none; }
.faq-empty a { color: var(--text-primary); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 0.15em; }

.faq-item h3 {
  margin: 0;
  font-size: inherit;
  letter-spacing: 0;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.4rem 0;
  background: none;
  border: 0;
  color: #ffffff;
  font: inherit;
  font-size: clamp(1.1rem, 2vw, 1.35rem);   /* = .subhead scale: one-line questions, not headlines */
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.faq-q svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-q[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-a > div {
  overflow: hidden;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a p {
  padding: 0 3rem 1.4rem 0;
  color: var(--text-secondary);
  font-size: 1.05rem;                        /* = feature paragraphs */
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-q svg { transition: none; }
}

/* Links inside answers: white with a faint underline, so they read as links inside grey text. */
.faq-a a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.25s ease;
}

.faq-a a:hover { text-decoration-color: #ffffff; }

/* DaVinci node graphs in the LUT answer: one Project Settings row (styled like a feature-list chip),
   then the node tree as inline SVG in the page font and tokens. Horizontal above 600px, stacked below. */
.faq-setting {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  margin: 0 0 0.6rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.faq-setting b { color: var(--text-primary); font-weight: 600; }

.faq-nodes {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.faq-nodes .node, .faq-nodes .end { fill: var(--bg-card); stroke: var(--border); }
.faq-nodes .badge { fill: var(--bg); }
.faq-nodes .icon { fill: none; stroke: var(--text-secondary); stroke-width: 1.5; }
.faq-nodes .icon-dot { fill: var(--text-secondary); }
.faq-nodes .wire { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.85; }
.faq-nodes .rgb { fill: var(--accent); }
.faq-nodes .key { fill: var(--text-tertiary); }
.faq-nodes .num { fill: var(--accent); font-size: 10px; font-weight: 600; }
.faq-nodes .title { fill: var(--text-primary); font-size: 13px; font-weight: 600; }
.faq-nodes .sub { fill: var(--text-secondary); font-size: 11px; }
.faq-nodes .end-label, .faq-nodes .note { fill: var(--text-tertiary); font-size: 11px; }
.faq-nodes-v { display: none; }

@media (max-width: 600px) {
  .faq-nodes-h { display: none; }
  .faq-nodes-v { display: block; }
  .faq-nodes-v .sub { font-size: 12px; }
}

/* ── Quotes: slow infinite marquee of App Store reviews ── */
.quotes {
  padding: 6rem 0 7rem;
}

.quotes .label {
  text-align: center;
  margin-bottom: 3.5rem;
}

.quotes-marquee {
  position: relative;
  overflow: hidden;
}

.quotes-marquee::before,
.quotes-marquee::after {          /* darkened edges */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 12vw, 220px);
  z-index: 2;
  pointer-events: none;
}

.quotes-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
}

.quotes-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
}

.quotes-track {
  display: flex;
  width: max-content;
  animation: quotes-scroll 88s linear infinite;    /* one set (3392px) per 88s ≈ 38 px/s — slow */
}

/* Hover slows the marquee to a quarter speed (see the quotes block in js/nav.js).
   Done in JS via playbackRate: changing animation-duration here would make the track jump. */

.quotes-set {
  display: grid;                  /* fixed columns: deterministic width, no intrinsic-size surprises */
  grid-auto-flow: column;
  grid-auto-columns: 360px;
  gap: 4rem;
  padding-right: 4rem;            /* gap across the seam */
}

@keyframes quotes-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .quotes-track { animation: none; }
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  margin: 0;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #e9e9ee;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.quote-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a30, #151518);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b4b4b9;
}

.quote-who {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.quote-name {
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff;
}

.quote-role {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .quotes-set { grid-auto-columns: 300px; gap: 2.5rem; padding-right: 2.5rem; }
}

/* ── Download CTA ────────────────────────────────────── */
.download {
  text-align: center;
  padding: 8rem 0;
  position: relative;
}

.download::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 100%);   /* never wider than the screen — 600px made the page pan sideways on phones */
  height: 600px;
  background: radial-gradient(circle, rgba(232, 176, 74, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.download h2 {
  margin-bottom: 1.25rem;
}

.download .subhead {
  margin: 0 auto 2.5rem;
}

.download-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5rem 0 4rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #b4b4b9;
}

.footer-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  margin-top: 1.1rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-credit {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-credit a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin-top: 0.1rem;
}

.footer-social a {
  display: inline-flex;
  color: #b4b4b9;
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

/* ── Divider ─────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  section {
    padding: 5rem 0;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .showcase-slot {
    width: 100%;                  /* feature rows stack here, so their phones are full width too */
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-visual {
    order: unset;
  }

  .feature-text {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* The centred row becomes a glass dropdown under the menu button. Same <ul>, so the
     active-page marking and the link list stay in one place. */
  .nav-toggle {
    display: inline-flex;
  }

  /* No Download pill in the nav on small screens — the App Store buttons on the page (and the
     iOS Smart App Banner) cover it, and the nav stays to just the logo and the menu. */
  .nav-cta {
    display: none;
  }

  .nav-menu {
    top: calc(100% + 0.6rem);
    left: auto;
    right: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    min-width: 200px;
    padding: 0.45rem;
    border-radius: 18px;
    background: rgba(16, 16, 18, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.18s;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-menu a {
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .nav-menu a.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .nav-pill {
    display: none;          /* touch has no hover — the active item is highlighted directly */
  }

  .nav-qr {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 5rem;
    min-height: auto;
    padding-bottom: 3rem;
  }

  .page > section:first-of-type {
    padding-top: 5rem;             /* keeps pace with the hero above */
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  footer .container {
    flex-direction: column;
    gap: 1.75rem;
  }

}

/* ── Showcase section header (Director’s Viewfinder) ─ */
.showcase .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.showcase .section-header h2 { margin-bottom: 1rem; }

/* Match the feature-section labels. Those are <p class="label"> inside .feature-text,
   where `.feature-text p` (0-1-1) outranks `.label` (0-1-0) and lifts them to 1.05rem —
   so this size is set explicitly rather than inherited from .label's 0.75rem. */
.showcase .section-header .label { font-size: 1.05rem; }

.showcase .section-header .subhead {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1.05rem;        /* match .feature-text p — .subhead alone runs up to 1.35rem */
  line-height: 1.7;
}

/* ── About body ──────────────────────────────── */
/* Photo of Robin on the left, the text on the right; below 900px the photo stacks above the text. */
.about-layout {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.about-body {
  max-width: 640px;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.about-body p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }

  .about-body {
    margin: 0 auto;
  }
}

/* ── What's new: release rows ───────────────────── */
/* The header is centred like the other subpages; the rows sit left-aligned in the FAQ's 720px
   column. Each row is a link to its release page (updates/*.html): version · date in the .label
   type (grey, not gold), the headline in the FAQ question style with a chevron, and a one-line
   blurb. Hovering lifts the row on a faint tint, so the row reads as one link. */
.notes .section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.notes .section-header .subhead {
  margin: 0 auto;            /* .subhead has a max-width, so centre the box as well as the text */
  font-size: 1.05rem;        /* = feature paragraphs, as on the showcase header */
  line-height: 1.7;
}

.release-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.release {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.85rem 1rem;
  margin: 0 -1rem;
  border-radius: 8px 8px 0 0;
  transition: background-color 0.25s ease;
}

.release:hover,
.release:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.release-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.release h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);   /* = site h3 / FAQ question */
  color: #ffffff;
  line-height: 1.2;
}

.release h2 svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  transition: color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.release:hover h2 svg {
  color: #ffffff;
  transform: translateX(4px);
}

.release-blurb {
  margin-top: 0.75rem;
  padding-right: 3rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Release page (updates/*.html) ──────────────── */
/* Same column and header as the list; the section-header carries version · date, the headline
   as h1 and the blurb as the intro. Grouped notes follow as h2 + bullets, then a back link. */
.release-page .section-header .subhead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);   /* intro reads larger than the list blurb */
  line-height: 1.5;
}

.release-page .section-header .release-meta {
  margin-bottom: 1.25rem;
}

.release-body {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.release-body h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);   /* = site h3 */
  color: #ffffff;
  margin-top: 1.5rem;
}

.release-body h2:first-child { margin-top: 0; }

.release-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.release-body li + li { margin-top: 0.5rem; }
.release-body li::marker { color: var(--text-tertiary); }

/* Text pages (privacy.html, support.html) reuse the release layout with paragraphs between the
   headings and lists; links in them read as in the FAQ answers. */
.release-body p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.release-body a,
.release-page .subhead a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.25s ease;
}

.release-body a:hover,
.release-page .subhead a:hover { text-decoration-color: #ffffff; }

.doc-date {
  margin-top: 1.25rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* App Store button right under the notes, in the text column; the back link sits below it. */
.release-cta {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.release-back {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.release-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.release-back a:hover { color: #ffffff; }

.release-back svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 600px) {
  .release { padding: 1.85rem 0.75rem; margin: 0 -0.75rem; }
  .release-blurb { padding-right: 0; }
}

/* App Store button on the subpages (FAQ / About / What's new): centred, and close under the last
   text, the same 2.5rem the release pages use, instead of two full section paddings of black. */
.page-cta { text-align: center; padding-top: 0; }
.page > section:has(+ .page-cta) { padding-bottom: 2.5rem; }
