/* =========================
   BetaSuite — site styles
   ========================= */

:root {
  --bg: #0b1724;
  --bg-2: #07101a;
  --surface: #0f2433;
  --surface-2: #122b3f;
  --surface-3: #16334a;
  --accent: #1e90ff;
  --accent-2: #4da9ff;
  --accent-soft: rgba(30, 144, 255, 0.12);
  --amber: #ffa726;
  --success: #4cd08a;
  --danger: #ff7a85;
  --text: #e6eef8;
  --text-strong: #f5f9ff;
  --muted: #9fb0c6;
  --border: #203244;
  --border-soft: rgba(255, 255, 255, 0.06);
  --container: 1100px;
  --container-narrow: 760px;
  --radius: 12px;
  --radius-sm: 8px;
  --gap: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow: 0 6px 18px rgba(2, 10, 20, 0.45);
  --shadow-lg: 0 18px 40px rgba(2, 10, 20, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg-2) 120%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

/* Typography */
h1, h2, h3 {
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; margin-top: 2em; }
h3 { font-size: 1.1rem; margin-top: 1.4em; color: var(--text); }
p  { margin: 0 0 1em; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: var(--container-narrow); }

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--accent-2); text-decoration: underline; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 100;
}
.skip-link:focus {
  clip-path: none;
  white-space: normal;
  width: auto;
  height: auto;
  inset-inline-start: 16px;
  top: 12px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Header / Nav */
.site-header {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(6px);
}
.nav {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong);
  font-weight: 700;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text-strong); }
.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}
.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--text-strong);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 22px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Language picker */
.language-picker {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin-left: 6px;
  min-width: 120px;
}
.language-picker option { color: #000; background: #fff; }

/* Hero */
.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
/* Soft accent glow behind the hero — adds depth without an image. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 78% at 78% 28%, rgba(30, 144, 255, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { margin: 0 0 14px; }
.hero-kicker {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}
.lead, .lede {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 24px;
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* "Pay once" reassurance — promoted from grey meta to a first-class line.
   Reuses the existing metaText string (no translation cost); appears under
   the hero badges, the demo CTA, and the closing CTA. */
.trust-line {
  margin: 26px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.trust-line::before {
  content: "\2713\00a0";
  color: var(--accent-2);
  font-weight: 700;
}
.store-badges--center + .trust-line { text-align: center; }

/* Product demo hoisted directly under the hero: sit close to it, give the
   badge CTA room. */
.demo--hero { padding-top: 16px; }
.demo-cta { margin-top: 28px; }

/* Sticky download bar — slides up once the user scrolls past the hero so
   mid-page intent can still convert. .is-visible is toggled by JS
   (IntersectionObserver on the hero). */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(11, 23, 36, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  transform: translateY(110%);
  transition: transform 0.28s ease;
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-strong);
}
.sticky-cta .app-store-badge img,
.sticky-cta .google-play-badge img { height: 40px; }
@media (max-width: 560px) {
  .sticky-cta__label { display: none; }
  .sticky-cta .app-store-badge img,
  .sticky-cta .google-play-badge img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 6px 18px rgba(30, 144, 255, 0.18);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
}
.btn:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: rgba(30, 144, 255, 0.35);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
}

/* Features */
.features { padding: 24px 0 56px; }
.features h2 { margin-top: 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-soft);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 144, 255, 0.35);
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text-strong);
}
.feature .feature-lead {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Apple Weather (WeatherKit) attribution pill — required by Apple's
   WeatherKit ToS wherever WeatherKit is acknowledged. Combines the
   Apple-provided weather mark + "Weather" wordmark + link to the
   legal-attribution page. Used in privacy.html beside the WeatherKit
   acknowledgement; reuse the same class elsewhere if a marketing
   surface ever displays live weather data. */
.weather-attribution {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.weather-attribution:hover,
.weather-attribution:focus-visible {
  border-color: rgba(30, 144, 255, 0.45);
  background: rgba(30, 144, 255, 0.08);
  text-decoration: none;
}
.weather-attribution__mark {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 2px;
  color: currentColor;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Value props strip */
.value-props {
  padding: 0 0 24px;
}
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
}
.value-prop {
  padding: 22px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
}
.value-prop h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.value-prop p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* How it works — numbered steps */
.steps { padding: 24px 0 56px; }
.steps h2 { margin-top: 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
}
.step h3 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 1.05rem;
}
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* On-device AI callout */
.callout {
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.10), rgba(30, 144, 255, 0.03));
  border-top: 1px solid rgba(30, 144, 255, 0.25);
  border-bottom: 1px solid rgba(30, 144, 255, 0.25);
  padding: 48px 0;
  margin: 24px 0;
}
.callout h2 { margin: 0 0 8px; }
.callout-lead {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 60ch;
}
.callout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.callout-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text-strong);
}
.callout-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.callout-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
}

/* Sample-report band — a real PDF prospects can open before downloading.
   Reuses the .callout accent band; adds a centred primary button. */
.sample-report,
.protocol-cta { text-align: center; }
.sample-report .callout-lead,
.protocol-cta .callout-lead { margin-left: auto; margin-right: auto; }
.sample-report-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.sample-report-btn:hover {
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
}

/* "Coming to Android" callout. The shared .callout band already supplies
   the accent gradient; on the support page (no .container — it constrains
   its own width) render it as a bordered card instead of a full-bleed band. */
.android-coming { text-align: center; }
.android-coming .callout-lead { margin-left: auto; margin-right: auto; }
.android-coming .store-badges { margin-top: 4px; }
.android-coming__note { margin-top: 16px; }
.support-main #android {
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.10), rgba(30, 144, 255, 0.03));
  border: 1px solid rgba(30, 144, 255, 0.25);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 0 0 28px;
}

/* Why teaser / pain-points */
.why-teaser { padding: 32px 0 16px; }
.why-teaser h2 { margin-top: 0; }
.why-teaser-lead {
  color: var(--muted);
  max-width: 64ch;
  margin: 0 0 24px;
  font-size: 1.05rem;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.pain-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.pain-grid:not(.pain-grid--three) > .pain-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.pain-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
}
.pain-card .pain-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pain-card .pain-label.problem { color: var(--amber); }
.pain-card .pain-label.answer  { color: var(--accent-2); margin-top: 14px; }
.pain-card h3,
.pain-card h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--text-strong);
}
.pain-card p {
  margin: 0 0 0.4em;
  color: var(--muted);
  font-size: 0.95rem;
}
.pain-card p:last-child { margin-bottom: 0; }
.why-more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
}

/* Italic tagline banner */
.tagline {
  font-style: italic;
  color: var(--accent-2);
  text-align: center;
  font-size: 1.05rem;
  margin: 0 auto 24px;
  max-width: 56ch;
}

/* FAQ teaser */
.faq-teaser { padding: 24px 0 8px; }
.faq-teaser h2 { margin-top: 0; }
.faq-more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
}

/* Closing CTA */
.cta {
  padding: 56px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.07), transparent 60%);
}
.cta h2 {
  margin-top: 0;
  font-size: 1.6rem;
}
.cta p {
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto 22px;
}
/* The blanket `.cta p` rule above out-specifies `.trust-line`, which zeroed the
   trust line's top margin (flush under the badges) and greyed it out in the
   closing CTA. Restore the spacing + strong colour here. */
.cta .trust-line {
  margin: 26px auto 8px;
  color: var(--text-strong);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Hero with side-by-side image (when a screenshot is available) */
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.hero-image-placeholder {
  aspect-ratio: 9 / 16;
  max-height: 480px;
  margin-left: auto;
  background: linear-gradient(160deg, rgba(30, 144, 255, 0.18), rgba(30, 144, 255, 0.04));
  border: 1px dashed rgba(30, 144, 255, 0.35);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 24px;
  width: 100%;
  max-width: 280px;
}

/* Interim hero visual — enlarged app icon styled as a floating iOS
   squircle until real product screenshots are ready. Swap the markup
   in index.html (see comment above `.hero-visual`) once screenshots
   land. */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.hero-icon-feature {
  display: block;
  width: clamp(200px, 72%, 360px);
  height: auto;
  aspect-ratio: 1 / 1;
  /* iOS app-icon corner radius is a "continuous" squircle; 22% is the
     widely-used CSS approximation. */
  border-radius: 22%;
  box-shadow:
    0 22px 60px -14px rgba(13, 27, 42, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 60px -8px rgba(30, 144, 255, 0.32);
}

/* Animated hero — the launch-animation clip. It carries its own navy
   gradient background and "Now available" text, so it's framed as a
   rounded card (NOT cropped to a 22% squircle, which would clip the
   text). The glow matches the static-icon treatment above. */
.hero-anim {
  display: block;
  width: clamp(240px, 84%, 420px);
  height: auto;
  aspect-ratio: 600 / 596;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 22px 60px -14px rgba(13, 27, 42, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 60px -8px rgba(30, 144, 255, 0.32);
}
.hero-anim img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* "See it in action" — the vertical product clip in a phone-style frame. */
.demo {
  padding: 64px 0;
  text-align: center;
}
.demo h2 {
  margin: 0 0 10px;
}
.demo-lead {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--muted);
}
.demo-frame {
  display: flex;
  justify-content: center;
}
.demo-video {
  display: block;
  width: clamp(240px, 78vw, 320px);
  height: auto;
  aspect-ratio: 718 / 992;
  border-radius: 32px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 80px -16px rgba(30, 144, 255, 0.25);
}
.demo-video img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* Product screenshot strip — revealed by JS once screenshots/shot-*.webp exist. */
.shots {
  padding: 8px 0 56px;
  text-align: center;
}
.shots h2 { margin: 0 0 28px; }
.shots-grid {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.shot { margin: 0; }
.shot img {
  display: block;
  width: clamp(150px, 40vw, 220px);
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.6);
}

/* Each screenshot tile is a button that opens the full-size image in the
   lightbox. Reset the native button chrome; the img keeps its clamp size and
   the button hugs it (fit-content) so the clickable area matches the image. */
.shot-trigger {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
  border-radius: 22px;
  -webkit-tap-highlight-color: transparent;
}
.shot-trigger img { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.shot-trigger:hover img,
.shot-trigger:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.7);
}
.shot-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Fullscreen screenshot lightbox — opened by .shot-trigger (script in index.html). */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 56px);
  background: rgba(3, 8, 18, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(100%, 460px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.85);
}
.lightbox-close {
  position: absolute;
  top: clamp(10px, 2.5vw, 24px);
  inset-inline-end: clamp(10px, 2.5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.26); transform: scale(1.05); }
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lightbox-nav[hidden] { display: none; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-prev { inset-inline-start: clamp(6px, 3vw, 24px); }
.lightbox-next { inset-inline-end: clamp(6px, 3vw, 24px); }
/* Mirror the chevron glyph (not the position — inset-inline-start/end already
   flips that) so the arrow visually points toward the correct reading-direction
   side on RTL pages (he, ar). */
[dir="rtl"] .lightbox-nav { transform: translateY(-50%) scaleX(-1); }

.lightbox-counter {
  position: absolute;
  bottom: clamp(10px, 3vh, 24px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lightbox-counter[hidden] { display: none; }
@media (max-width: 560px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .shot-trigger img,
  .lightbox-close,
  .lightbox-nav { transition: none; }
  .shot-trigger:hover img,
  .shot-trigger:focus-visible img { transform: none; }
  .lightbox-close:hover { transform: none; }
}

/* App Store + Google Play badges. The official localised assets ship at
   different native aspect ratios — Apple's wordmark width varies by
   language (e.g. Japanese ≈ 2.7:1, Turkish ≈ 3.8:1) and Google's web
   badge is ≈ 3.37:1 — so the badges are sized by HEIGHT with width:auto.
   This preserves each asset's native proportions (both Apple's and
   Google's brand guidelines forbid stretching/distortion) while keeping
   the pair the same height, which is what Google's guidelines require
   when badges appear together. The badge IS the visual — framed in its
   own black rounded rect — so it's deliberately not styled like .btn. */
.app-store-badge,
.google-play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.app-store-badge:hover,
.app-store-badge:focus-visible,
a.google-play-badge:hover,
a.google-play-badge:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.app-store-badge img,
.google-play-badge img {
  display: block;
  height: 60px;
  width: auto;
}

/* Store-badge pair (App Store + Google Play) layout. Used in the hero,
   the closing CTA, the why-page CTA, and the cross-platform section. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.store-badges--center { justify-content: center; }

/* Larger badge treatment for the dedicated cross-platform section. */
.store-badge--lg img { height: 68px; }

@media (max-width: 720px) {
  .app-store-badge img,
  .google-play-badge img { height: 52px; }
  .store-badge--lg img { height: 60px; }
}

/* Table of contents for long-form pages */
.toc {
  margin: 24px 0 32px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.toc-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 24px;
}
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Legal / prose pages */
.prose {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 40px 20px 56px;
}
.prose h1 { margin-bottom: 0.4em; }
.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--border-soft);
  font-size: 1.3rem;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 1.05rem;
  color: var(--text-strong);
}
.prose p,
.prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.prose .legal-notice {
  background: rgba(30, 144, 255, 0.08);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  margin: 18px 0 28px;
  padding: 12px 16px;
}

/* Contact / Support page */
.support-main {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 40px 20px 56px;
}
.support-main .hero { padding: 0 0 24px; overflow: visible; }
/* The homepage hero glow (.hero::before) would paint over the support
   hero's text (no inner .container to lift it above) — disable it here. */
.support-main .hero::before { content: none; }
.support-main .hero h1 { margin-bottom: 8px; }

.contact-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.contact-block h2 { margin-top: 0; }

/* Form controls */
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.25);
}
.contact-form button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  justify-self: start;
  transition: background 0.18s ease, transform 0.12s ease;
}
.contact-form button[type="submit"]:hover:not(:disabled) {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}
.hp { position: absolute; left: -10000px; }

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.error { color: var(--danger); }
.form-status.warn  { color: var(--amber); }

.form-success {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.form-success h2 { margin-top: 0; }

/* FAQ */
.faq {
  margin: 0;
  padding: 0;
}
.faq dt {
  font-weight: 600;
  color: var(--text-strong);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.faq dt:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.faq dd {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 28px 0 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--muted);
  font-weight: 600;
}
.footer-links a:hover { color: var(--text-strong); text-decoration: none; }

/* Accessibility focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Utility */
.small-muted { color: var(--muted); font-size: 0.9rem; }
.center { text-align: center; }

/* Responsive */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .callout-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .pain-grid--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav { padding: 12px 16px; flex-wrap: wrap; }
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }
  .language-picker {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }
  .hero { padding: 36px 0 24px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-image-placeholder { margin: 24px auto 0; max-width: 240px; }
  .toc ol { columns: 1; }
  .feature-grid,
  .value-props-grid,
  .callout-grid,
  .pain-grid,
  .pain-grid--three { grid-template-columns: 1fr; }
  .lead, .lede { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .contact-block { padding: 18px; }
  .prose, .support-main { padding: 28px 16px 40px; }
  .callout { padding: 36px 0; }
  .cta { padding: 40px 0 48px; }
}

/* Focus ring (keyboard navigation) */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}

/* ---------- RTL overrides (Hebrew) ---------- */
/* The base CSS is LTR with physical properties; flip the few that matter. */
[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] .language-picker { margin-left: 0; margin-right: 6px; }
