/* LyteFast website — the only stylesheet. Same system as trailbivvy.com (TrailBivvyIOS/website/static/site.css):
   no web fonts, no framework, no external resources; light and dark follow the visitor's system setting.
   Brand tokens from the app icon: the green bolt (light #13782F for text contrast, dark #3DDC5A), the gauge's
   violet (#6D28D9 / #A78BFA) and the flame orange (#F97316). Every pair used for text is at least 4.5:1. */

:root {
  color-scheme: light dark;
  --c-bg: #F7F7FA;
  --c-surface: #FFFFFF;
  --c-surface-alt: #EEEFF5;
  --c-text: #12131C;
  --c-text-muted: #4B4F63;
  --c-border: #D9DBE6;
  --c-border-strong: #A9ADC0;
  --c-accent: #13782F;
  --c-accent-hover: #0D5E24;
  --c-on-accent: #FFFFFF;
  --c-accent-soft: #DDF3E2;
  --c-violet: #6D28D9;
  --c-violet-soft: #EDE5FC;
  --c-flame: #C2410C;
  --c-focus: #13782F;
  --c-hero-top: #ECEAF8;
  --c-glow-a: rgba(61, 220, 90, 0.16);
  --c-glow-b: rgba(124, 58, 237, 0.14);
  --c-pill-fg: #0D5E24;
  --c-pill-bg: #DDF3E2;
  --c-ai-fg: #5B21B6;
  --c-ai-bg: #EDE5FC;
  --c-base-fg: #155E75;
  --c-base-bg: #DDF1F7;
  --c-free-fg: #0D5E24;
  --c-free-bg: #DDF3E2;
  --c-bezel: #07070C;
  --c-stage: #0A0B14;
  --shadow-lg: 0 28px 60px -24px rgba(20, 18, 48, 0.38), 0 0 0 1px rgba(20, 18, 48, 0.06);
  --shadow-sm: 0 1px 2px rgba(20, 18, 48, 0.06);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 1rem;
  --radius-sm: 0.625rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 72ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0A0B14;
    --c-surface: #12131F;
    --c-surface-alt: #191B2A;
    --c-text: #ECEDF5;
    --c-text-muted: #A3A6BD;
    --c-border: #262839;
    --c-border-strong: #44475E;
    --c-accent: #3DDC5A;
    --c-accent-hover: #6BE882;
    --c-on-accent: #04130A;
    --c-accent-soft: #12301C;
    --c-violet: #A78BFA;
    --c-violet-soft: #241A40;
    --c-flame: #FB923C;
    --c-focus: #6BE882;
    --c-hero-top: #120F26;
    --c-glow-a: rgba(61, 220, 90, 0.12);
    --c-glow-b: rgba(139, 92, 246, 0.2);
    --c-pill-fg: #7EEB94;
    --c-pill-bg: #12301C;
    --c-ai-fg: #C4B5FD;
    --c-ai-bg: #241A40;
    --c-base-fg: #7DD3FC;
    --c-base-bg: #0E2A38;
    --c-free-fg: #7EEB94;
    --c-free-bg: #12301C;
    --c-bezel: #000000;
    --c-stage: #07070E;
    --shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.005em; }

p, ul, ol, dl, table, figure, blockquote, address { margin: 0 0 1rem; }
ul, ol { padding-inline-start: 1.25rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 650; }

a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--c-surface-alt);
  border-radius: 0.3rem;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

::selection { background: var(--c-accent-soft); color: var(--c-text); }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: calc(48rem + 2 * var(--gutter)); }

.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--c-on-accent); }

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

.site-header {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4rem;
  padding-block: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--c-text);
  font-weight: 750;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--c-text); }
.brand-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li + li { margin: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-weight: 550;
  font-size: 0.975rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--c-surface-alt); color: var(--c-text); }
.site-nav a[aria-current="page"] {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.site-nav .nav-lang { color: var(--c-text-muted); font-size: 0.875rem; font-weight: 600; }
.site-nav .nav-lang .icon { width: 1.05rem; height: 1.05rem; }
/* Phones: the links stay on one row under the brand; the Download link is the button on the hero and in the footer. */
@media (max-width: 520px) {
  .site-nav ul { gap: 0; }
  .site-nav a { padding-inline: 0.5rem; font-size: 0.9375rem; }
  .site-nav .nav-optional { display: none; }
}
@media (max-width: 380px) {
  .site-nav a { padding-inline: 0.35rem; font-size: 0.875rem; }
}

/* ---------- Buttons, pills, notices ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn .icon { width: 1.25rem; height: 1.25rem; }
.btn-primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn-primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.btn-secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border-strong); }
.btn-secondary:hover { background: var(--c-surface-alt); color: var(--c-text); }
.btn-ghost { padding-inline: 0.8rem; background: transparent; color: var(--c-accent); }
.btn-ghost:hover { background: var(--c-accent-soft); color: var(--c-accent); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--c-pill-bg);
  color: var(--c-pill-fg);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
}
.status-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.notice {
  padding: 0.9rem 1.1rem;
  border-inline-start: 4px solid var(--c-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--c-surface-alt);
}
[dir="rtl"] .notice { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

.note {
  margin-top: auto;
  padding-inline-start: 0.8rem;
  border-inline-start: 3px solid var(--c-border-strong);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.fine { color: var(--c-text-muted); font-size: 0.9375rem; }
.meta { color: var(--c-text-muted); font-size: 0.9375rem; }
.lead { color: var(--c-text-muted); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 62ch; }

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--c-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Plan tags on the feature cards: always words, never colour alone. */
.tag {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  white-space: nowrap;
}
.tag-free { background: var(--c-free-bg); color: var(--c-free-fg); }
.tag-base { background: var(--c-base-bg); color: var(--c-base-fg); }
.tag-ai { background: var(--c-ai-bg); color: var(--c-ai-fg); }

/* ---------- Presentation video (opens the home page) ---------- */

/* The presentation video is the first thing on the home page, as on trailbivvy.com (owner request, 2026-10-20). The
   whole video fits the first screen under the header: 16:9 from 700 px, 9:16 below (one <video> each, the other
   hidden, so it never loads). assets/site.js plays it muted while it is on screen, with a pause button; with reduced
   motion, Save-Data or no JavaScript it shows its poster and a play link to the MP4. */
.hero-promo {
  padding-block: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 2.5vw, 1.75rem);
  background: var(--c-hero-top);
}
.promo { margin: 0; }
.promo-frame {
  position: relative;
  width: min(100%, calc((100vh - 8rem) * 16 / 9));
  width: min(100%, calc((100svh - 8rem) * 16 / 9));
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-stage);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 700px) {
  .promo-tall { display: none !important; }
}
@media (max-width: 699px) {
  .promo-wide { display: none !important; }
  /* the header takes two rows here (about 7rem) */
  .promo-frame {
    width: min(100%, 22rem, calc((100vh - 10rem) * 9 / 16));
    width: min(100%, 22rem, calc((100svh - 10rem) * 9 / 16));
  }
}
.promo-variant { position: relative; }
.promo-video { display: block; width: 100%; height: auto; background: var(--c-stage); }
.promo-start {
  position: absolute;
  inset: 0;
  display: block;
  color: #FFFFFF;
  text-decoration: none;
}
.promo.is-live .promo-start { display: none; }
.promo-play {
  position: absolute;
  inset-inline-start: 8.9%; /* the text column of the 16:9 video */
  bottom: clamp(0.6rem, 4%, 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.1rem 0.4rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 9, 20, 0.84);
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: background-color 0.15s ease;
}
@media (max-width: 699px) {
  .promo-play { inset-inline-start: 50%; transform: translateX(-50%); }
  [dir="rtl"] .promo-play { transform: translateX(50%); }
}
.promo-play-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #3DDC5A;
  color: #04130A;
}
.promo-play-icon .icon { width: 1.2rem; height: 1.2rem; margin-inline-start: 0.12rem; }
.promo-start:hover .promo-play { background: rgba(8, 9, 20, 0.95); }
.promo-start:focus-visible { outline-offset: -4px; }
.promo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  text-align: center;
}
.promo-facts { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--c-text); font-weight: 650; }
.promo-facts .icon { width: 1.2rem; height: 1.2rem; }
.promo-note { flex-basis: 100%; }
.hero-promo .transcript { max-width: 48rem; margin-inline: auto; margin-top: 1rem; }

.video-toggle {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { background: var(--c-surface-alt); }
.video-toggle .icon { width: 1.05rem; height: 1.05rem; }
.video-toggle .icon-play,
.video-toggle.is-paused .icon-pause { display: none; }
.video-toggle.is-paused .icon-play { display: block; }

.transcript {
  margin-top: 1.75rem;
  border-block: 1px solid var(--c-border);
}
.transcript summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.25rem 0.6rem 0;
  color: var(--c-accent);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
[dir="rtl"] .transcript summary { padding: 0.6rem 0 0.6rem 0.25rem; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}
.transcript[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.transcript-body { max-width: var(--measure); padding-bottom: 1rem; }
.transcript-body > p { color: var(--c-text-muted); }
.transcript-lines { padding: 0; list-style: none; }
.transcript-lines li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.75rem; }
.transcript-lines li + li { margin-top: 0.6rem; }
.transcript-time { color: var(--c-text-muted); font-variant-numeric: tabular-nums; font-weight: 650; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 6rem);
  background:
    radial-gradient(45% 60% at 90% 10%, var(--c-glow-b) 0%, transparent 70%),
    radial-gradient(40% 55% at 5% 100%, var(--c-glow-a) 0%, transparent 70%),
    linear-gradient(180deg, var(--c-hero-top) 0%, var(--c-bg) 100%);
  isolation: isolate;
}
.hero-after-promo { padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.hero-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  border-radius: 22.5%;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 599px) {
  .hero-icon { display: none; }
}
.hero-title { margin-bottom: 1.25rem; }
.hero-name {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--c-accent);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  font-weight: 750;
  letter-spacing: 0;
}
.hero-tagline {
  display: block;
  font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-lead {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  color: var(--c-text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}
.hero-note { max-width: 38rem; color: var(--c-text-muted); font-size: 0.9375rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  margin-bottom: 0;
}
.store-note { max-width: 38rem; margin: 0.6rem 0 0; color: var(--c-text-muted); font-size: 0.875rem; }
.hero-more { margin: 1rem 0 0; font-weight: 600; }
.hero-more a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.hero-badges li + li { margin: 0; }
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.hero-badges .icon { width: 1rem; height: 1rem; color: var(--c-accent); }
.hero-visual { display: flex; justify-content: center; }
.phone-hero { width: min(19rem, 80vw); }

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

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head .lead { margin-bottom: 0; }
.section-alt {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
}

/* The principle (trend, not the daily number) — the counterpart of TrailBivvy's "Terrain and rules, kept apart". */
.split {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.split-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
}
.split-card p { margin: 0; color: var(--c-text-muted); }
.split-card h3 { display: flex; align-items: center; gap: 0.6rem; }
.split-card h3::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--c-accent);
}
.split-card + .split-card h3::before { background: var(--c-violet); }
.split-card + .split-card + .split-card h3::before { background: var(--c-flame); }
.principle-precedence { max-width: var(--measure); font-weight: 550; }
.quote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-inline-start: 4px solid var(--c-violet);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--c-surface-alt);
}
[dir="rtl"] .quote { border-radius: var(--radius) 0 0 var(--radius); }
.quote figcaption { margin-bottom: 0.4rem; color: var(--c-text-muted); font-size: 0.9375rem; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.5rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.principle-more { max-width: var(--measure); color: var(--c-text-muted); }
.legend-title { margin-top: 2rem; font-size: 1rem; }
.status-legend {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .status-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.status-legend li + li { margin: 0; }
.status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 550;
  line-height: 1.45;
}
.status .icon { flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.05rem; }
.status-on { background: #E3F2E6; color: #17652F; }
.status-near { background: #FFF1D6; color: #7A4A00; }
.status-over { background: #FBE6E3; color: #A1241B; }
@media (prefers-color-scheme: dark) {
  .status-on { background: #15301F; color: #86DD97; }
  .status-near { background: #352710; color: #F2BE6B; }
  .status-over { background: #3A1714; color: #FF968C; }
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-grid li + li { margin: 0; }
@media (min-width: 760px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
.feature {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.feature-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.feature-body > p:not(.note):not(.feature-link) { color: var(--c-text-muted); }
.feature-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.feature-head { flex-wrap: wrap; }
.feature-head h3 { flex: 0 1 auto; min-width: 0; }
.feature-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.feature-icon .icon { width: 1.4rem; height: 1.4rem; }
.feature-ai .feature-icon { background: var(--c-violet-soft); color: var(--c-violet); }
.feature h3 { margin: 0; }
.feature-link { font-weight: 600; }
.feature .note { margin-top: auto; margin-bottom: 0; }
.feature .note + .feature-link { margin-top: 0.75rem; margin-bottom: 0; }

/* Cards with a screenshot: full width, the phone beside the text (alternating sides); on narrow screens the phone
   follows the text. */
@media (min-width: 760px) {
  .feature-wide { grid-column: 1 / -1; }
}
.feature .feature-media { width: 100%; margin: 1.5rem 0 0; }
.feature .feature-media > img { width: min(66%, 13rem); margin-inline: auto; }
.feature .feature-media > figcaption { justify-content: center; text-align: center; }
@media (min-width: 760px) {
  .feature-has-media {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 26vw, 20rem);
    column-gap: clamp(1.75rem, 5vw, 4.5rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }
  .feature-has-media .feature-body { grid-column: 1; grid-row: 1; max-width: 42rem; }
  .feature-has-media .feature-media { grid-column: 2; grid-row: 1; margin: 0; }
  .feature .feature-media > img { width: clamp(11rem, 19vw, 14rem); }
  .feature-has-media.feature-media-start { grid-template-columns: clamp(15rem, 26vw, 20rem) minmax(0, 1fr); }
  .feature-media-start .feature-body { grid-column: 2; }
  .feature-media-start .feature-media { grid-column: 1; }
  .feature-has-media .feature-body .note { margin-top: 0.5rem; }
}

/* Apple Watch card: three watch screens side by side in a watch-shaped bezel. */
.watch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 1.5vw, 0.75rem);
  max-width: 24rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.watch-row li + li { margin: 0; }
.watch-row img {
  width: 100%;
  border: 0.32rem solid var(--c-bezel);
  border-radius: 1.6rem;
  background: #000000;
  box-shadow: var(--shadow-lg);
}
.watch-media { margin: 0; }
.watch-media > figcaption { display: flex; justify-content: center; margin-top: 0.85rem; font-size: 0.9375rem; text-align: center; }
@media (min-width: 760px) {
  .feature-has-media:has(.watch-media) { grid-template-columns: minmax(0, 1fr) clamp(17rem, 32vw, 24rem); }
}

/* ---------- Phones (screenshots) ---------- */

.phone { margin: 0; }
.phone img {
  width: 100%;
  border: 0.45rem solid var(--c-bezel);
  border-radius: 2rem;
  background: var(--c-bezel);
  box-shadow: var(--shadow-lg);
}
.phone figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  margin-top: 0.85rem;
  font-size: 0.9375rem;
}
.shot-caption { font-weight: 650; }
.shot-text { flex-basis: 100%; color: var(--c-text-muted); font-size: 0.875rem; line-height: 1.45; }

/* ---------- Gallery carousel ---------- */

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.carousel-nav { display: flex; gap: 0.6rem; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  display: inline-grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.carousel-btn:hover { background: var(--c-surface-alt); }
.carousel-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.carousel-btn .icon { width: 1.35rem; height: 1.35rem; }
[dir="rtl"] .carousel-btn .icon { transform: scaleX(-1); }
.gallery-section { overflow-x: clip; }
.carousel {
  --carousel-inset: max(var(--gutter), calc((100vw - 72rem) / 2 + var(--gutter)));
  margin-inline: calc(50% - 50vw);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--carousel-inset);
  scrollbar-width: thin;
}
.carousel:focus-visible { outline-offset: -3px; }
.carousel-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(14.5rem, 68vw, 19.5rem);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  width: max-content;
  margin: 0;
  padding: 0.75rem var(--carousel-inset) 1.5rem;
  list-style: none;
}
.carousel .phone img { background: var(--c-surface-alt); }
.carousel-list li + li { margin: 0; }
.carousel-item { scroll-snap-align: start; }

/* ---------- Plans ---------- */

.plan-grid { display: grid; gap: 1rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.plan-grid > li + li { margin: 0; }
@media (min-width: 760px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; }
.plan-head h3 { margin: 0; }
.plan > p { color: var(--c-text-muted); font-size: 0.975rem; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.975rem; line-height: 1.45; }
.plan li + li { margin-top: 0.5rem; }
.plan li .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--c-accent); }
.plan-featured { border-color: var(--c-violet); box-shadow: 0 0 0 1px var(--c-violet); }

/* ---------- Science teaser ---------- */

.study-grid { display: grid; gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.study-grid > li + li { margin: 0; }
@media (min-width: 760px) {
  .study-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
.study-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.study-card > p { color: var(--c-text-muted); }
.study-list { margin: 0; padding: 0; list-style: none; }
.study-list li + li { margin-top: 0.85rem; }
.study {
  padding-inline-start: 0.9rem;
  border-inline-start: 3px solid var(--c-violet);
}
.study a { font-weight: 650; }
.study-meta { display: block; color: var(--c-text-muted); font-size: 0.875rem; }
.study-takeaway { display: block; margin-top: 0.2rem; font-size: 0.9375rem; line-height: 1.5; }

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

.faq { border-top: 1px solid var(--c-border); margin-bottom: 1.5rem; }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq summary {
  position: relative;
  padding: 1.05rem 2.25rem 1.05rem 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
[dir="rtl"] .faq summary { padding: 1.05rem 0 1.05rem 2.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  inset-inline-end: 0.25rem;
  top: 0.9rem;
  color: var(--c-accent);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq details > p,
.faq details > div { max-width: var(--measure); color: var(--c-text-muted); }
.faq-teaser { background: var(--c-surface); border-top: 1px solid var(--c-border); }
.more-link { font-weight: 650; margin: 0; }
.feature-link a,
.more-link a,
.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* ---------- Download band ---------- */

.download-band {
  padding-block: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(124, 58, 237, 0.5) 0%, transparent 70%),
    radial-gradient(50% 120% at 10% 100%, rgba(61, 220, 90, 0.25) 0%, transparent 70%),
    var(--c-stage);
  color: #ECEDF5;
}
.download-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) {
  .download-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2rem; }
}
.download-icon { width: 5rem; height: 5rem; border-radius: 22.5%; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8); }
.download-band h2 { margin-bottom: 0.35rem; color: #FFFFFF; }
.download-band p { margin: 0; color: #C9CBDD; }
.download-band .btn-primary { background: #3DDC5A; color: #04130A; }
.download-band .btn-primary:hover { background: #6BE882; color: #04130A; }
.btn-on-dark { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); color: #FFFFFF; }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
.download-actions .hero-actions { margin: 0; }
.download-band .store-note { color: #A3A6BD; }

/* ---------- Inner pages ---------- */

.page { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem); }
.page-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { margin-bottom: 0.5rem; }
.page-head .lead { margin-bottom: 0.75rem; }
.page section { margin-bottom: 2.5rem; }

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.toc li + li { margin: 0; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 0.9rem;
  text-decoration: none;
}
.toc a:hover { border-color: var(--c-accent); color: var(--c-accent); }

.card-grid { display: grid; gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.card-grid > li + li { margin: 0; }
@media (min-width: 760px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
.card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.card h2, .card h3 { margin-bottom: 0.4rem; }
.card h2 { font-size: 1.25rem; }
.card > p { color: var(--c-text-muted); }
.card > p:last-child { margin-bottom: 0; }

/* Prose (privacy, terms, research explainers) */
.prose > * { max-width: var(--measure); }
.prose h1 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem); }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); scroll-margin-top: 1rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose li::marker { color: var(--c-text-muted); }
.prose .table-wrap { max-width: none; margin-bottom: 1rem; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--c-border); text-align: start; vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--c-border-strong); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-text-muted); }

/* Articles (scripts/generate-articles.mjs): prose with the article's own cards and buttons */
.article > * { max-width: var(--measure); }
.article h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 1rem; }
.article h1 span { display: block; color: var(--c-accent); }
.article h2 { margin-top: 2.25rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.article h3 { margin-top: 1.5rem; }
.article .eyebrow + h1 { margin-top: 0; }
.article ul, .article ol { padding-inline-start: 1.4rem; }
.article li + li { margin-top: 0.5rem; }
/* Checklists written as "✓ text": the tick replaces the bullet */
.article ul:has(> li > span[aria-hidden="true"]:first-child) { padding-inline-start: 0; list-style: none; }
.article li > span[aria-hidden="true"]:first-child { margin-inline-end: 0.5rem; font-weight: 700; }
.article blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.1rem;
  border-inline-start: 4px solid var(--c-violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--c-surface-alt);
}
.article hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--c-border); }
.article .card { margin: 1.75rem 0; }
.article .card h2 { margin-top: 0; }
.article .card ul { margin-bottom: 0; }
.article .btn { margin-top: 0.5rem; }
.article .btn-primary { color: var(--c-on-accent); }
.article .table-wrap { max-width: none; margin: 1.5rem 0; overflow-x: auto; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.article th, .article td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--c-border); text-align: start; vertical-align: top; }
.article thead th { border-bottom: 2px solid var(--c-border-strong); }
.article .more-link { margin-top: 2.5rem; }
.article-list { grid-template-columns: minmax(0, 1fr) !important; }
.article-list h2 { font-size: 1.2rem; }
.article-list h2 a { color: var(--c-text); text-decoration: none; }
.article-list h2 a:hover { color: var(--c-accent); text-decoration: underline; }
.article-list .meta { margin-bottom: 0.4rem; }

/* Research page */
.research-feature { padding-block: clamp(1.75rem, 4vw, 2.5rem); border-top: 1px solid var(--c-border); scroll-margin-top: 1rem; }
.research-feature:first-of-type { border-top: 0; padding-top: 0; }
.research-feature > p { max-width: var(--measure); color: var(--c-text-muted); }
.research-feature h3 { margin-top: 1.25rem; font-size: 1rem; color: var(--c-text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.research-feature .study-list { max-width: var(--measure); }

/* Contact */
.contact-card {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  font-style: normal;
}
.contact-name { font-weight: 700; }
.contact-label { color: var(--c-text-muted); }

/* 404 */
.not-found { text-align: center; }
.not-found .lead { margin-inline: auto; }
.link-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; padding: 0; font-weight: 600; list-style: none; }
.link-list li + li { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-alt);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .footer-about { grid-column: auto; }
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 750;
}
.footer-brand img { width: 1.75rem; height: 1.75rem; border-radius: 0.45rem; }
.footer-tagline { margin-bottom: 0.75rem; color: var(--c-text-muted); }
.footer-status { margin-bottom: 0.75rem; font-weight: 600; }
.footer-independence { max-width: 52ch; color: var(--c-text-muted); }
.footer-heading {
  margin-bottom: 0.25rem;
  color: var(--c-text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--c-text);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--c-accent); text-decoration: underline; }
.site-footer nav a[aria-current] { color: var(--c-accent); font-weight: 650; }
/* 151 languages: the current one and a disclosure with all of them (no script needed) */
.lang-current { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; font-weight: 650; }
.lang-current .icon { width: 1.1rem; height: 1.1rem; color: var(--c-text-muted); }
.lang-all summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--c-accent);
  font-weight: 600;
  cursor: pointer;
}
.footer-lang { scroll-margin-top: 1rem; }
.lang-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0 1rem;
  margin-top: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
}
.site-footer .lang-list a { min-height: 2.25rem; font-size: 0.875rem; }
/* Opened, the list takes the footer's whole width */
.footer-lang:has(details[open]) { grid-column: 1 / -1; }
.footer-bottom {
  display: grid;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; max-width: 90ch; white-space: pre-line; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .video-toggle { display: none !important; }
}

@media print {
  .site-header nav, .site-footer nav, .skip-link, .video-toggle, .carousel-nav, .hero-promo { display: none; }
  .hero, .section-alt, .faq-teaser, .site-footer, .download-band { background: none; color: inherit; }
}
