/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --bg:           #FFFFFF;
  --bg-soft:      #F7F7F8;
  --bg-dark:      #0F1115;
  --bg-navy:      #0B1829;
  --bg-blue-soft: #EDF5FF;
  --text:         #0F1115;
  --text-muted:   #5C6068;
  --text-on-dark: #EFF4FF;
  --text-muted-on-dark: rgba(220,230,255,0.60);
  --border:       #E6E7EA;
  --border-on-dark: rgba(255,255,255,0.10);
  --accent:       #007AFF;
  --accent-warm:  #FFB341;

  /* Typography */
  --font-display: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-text:    ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Text",    system-ui, sans-serif;

  /* Type scale — stepped integers (no clamp to avoid fractional px) */
  --fs-display: 2rem;      /* 32px mobile → 44px tablet → 60px desktop */
  --fs-h2:      1.75rem;   /* 28px mobile → 40px tablet → 48px desktop */
  --fs-body:    1rem;      /* 16px mobile/tablet → 18px desktop */
  --fs-eyebrow: 0.875rem;  /* 14px */
  --fs-micro:   0.875rem;  /* 14px */

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Shared layout */
  --phone-col: 300px; /* two-column phone mockup column width (hero + final-cta) */

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card:  0 1px 2px rgba(15,17,21,0.04), 0 8px 24px rgba(15,17,21,0.08);
  --shadow-phone: 0 2px 4px rgba(15,17,21,0.06), 0 16px 48px rgba(15,17,21,0.14);
}


/* Stepped type-scale overrides */
@media (min-width: 768px) {
  :root {
    --fs-display: 2.75rem;  /* 44px */
    --fs-h2:      2.5rem;   /* 40px */
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-display: 3.75rem;  /* 60px */
    --fs-h2:      3rem;     /* 48px */
    --fs-body:    1.125rem; /* 18px */
  }
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Avoid orphans (a lone word on the last line):
   balance equalizes heading lines; pretty fixes body last-line wrapping.
   Progressive enhancement — ignored where unsupported. */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-8);
  }
}


/* ============================================================
   UTILITIES
   ============================================================ */
.placeholder {
  width: 100%;
  padding: var(--sp-12) var(--sp-8);
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: var(--fs-eyebrow);
  line-height: 1.6;
  text-align: center;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: none;
  cursor: pointer;
  font-family: var(--font-text);
  font-weight: 500;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:hover  { opacity: 0.80; }
.btn:active { transform: scale(0.97); }

.btn-nav {
  font-size: 1rem;
  font-weight: 600;
  padding: 0 1.5rem;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  white-space: nowrap;
  position: relative;
  transition: background 0.2s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

.btn-nav:hover {
  opacity: 1;
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(0,50,170,0.28);
  transform: translateY(-1px);
}

.btn-nav:active {
  transform: scale(0.97) translateY(0);
  box-shadow: none;
}

.btn-appstore {
  min-height: 44px;
  min-width: 44px;
}

.btn-appstore img {
  height: 52px;
  width: auto;
}

.btn-ghost {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0 1.25rem;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background 0.2s ease, opacity 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(0, 122, 255, 0.07);
  opacity: 1;
}


/* ============================================================
   NAV
   ============================================================ */
#header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 40px;
  width: auto;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  /* pull hero up behind the sticky header so the gradient starts at viewport top */
  margin-top: -72px;
  padding-top: calc(var(--sp-16) + 72px);
  padding-bottom: var(--sp-8);
  background:
    radial-gradient(ellipse 70% 40% at 85% 95%, rgba(255,179,65,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(0,122,255,0.10) 0%, transparent 70%),
    var(--bg);
}

@media (min-width: 768px) {
  .hero {
    background:
      radial-gradient(ellipse 50% 70% at 82% 55%, rgba(255,179,65,0.20) 0%, transparent 60%),
      radial-gradient(ellipse 55% 45% at 8% 88%, rgba(0,122,255,0.10) 0%, transparent 60%),
      radial-gradient(ellipse 80% 45% at 50% -5%, rgba(0,122,255,0.09) 0%, transparent 70%),
      var(--bg);
  }
}



.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}


.hero__headline {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: var(--sp-6);
  text-wrap: balance;
}


.hero__subhead {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 34ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}


.hero__trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.hero__trust-top {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero__stars {
  position: relative;
  display: inline-block;
  font-size: 0.9375rem;
  line-height: 1;
  flex-shrink: 0;
}

.hero__stars::before {
  content: '★★★★★';
  color: var(--border);
}

.hero__stars::after {
  content: '★★★★★';
  position: absolute;
  top: 0;
  left: 0;
  width: 92%;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent-warm);
}

.hero__trust-score,
.hero__trust-count {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  line-height: 1;
}

.hero__trust-score strong {
  color: var(--text);
  font-weight: 600;
}

/* Apps We Love badge */
.hero__award {
  display: block;
  margin-bottom: var(--sp-4);
}

.hero__award img {
  height: 36px;
  width: auto;
  display: block;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.hero__visual {
  margin-inline: auto;
  margin-top: var(--sp-12);
  display: flex;
  justify-content: center;
}

.phone-bezel {
  position: relative;
  display: block;
  height: 440px;
  aspect-ratio: 1800 / 3680;
}

.phone-bezel__screen {
  position: absolute;
  top: 2.5272%;
  left: 5.3889%;
  width: 89.2222%;
  height: 94.9457%;
  object-fit: cover;
  object-position: center top;
  border-radius: 7%;
}

.phone-bezel__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--sp-24) + 72px);
    padding-bottom: var(--sp-12);
  }

  .phone-bezel {
    height: 460px;
  }
}

@media (min-width: 1024px) {
  .hero {
    text-align: left;
    padding-top: calc(var(--sp-24) + 72px);
    padding-bottom: var(--sp-20);
  }

  .hero .container {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--sp-16);
  }

  .hero__content {
    padding-top: var(--sp-4);
  }

  /* Award badge left-aligned once the hero layout goes left-aligned */
  .hero__award img { margin-inline: 0; }

  .hero__subhead {
    margin-inline: 0;
    max-width: none;
  }

  .hero__cta {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .hero__trust {
    align-items: flex-start;
  }

  .hero__visual {
    margin-top: 0;
    justify-content: flex-end;
  }

  .phone-bezel {
    height: 540px;
  }
}


/* ============================================================
   SCROLL REVEAL SYSTEM
   ----
   Tier 2 — section reveal: every block past the fold uses
            the same fade-up via [data-reveal]. Triggered at
            ~15% intersection in js/site.js.

   Tier 2.5 — internal stagger: add [data-reveal-stagger] to
              a section to cascade its direct children at
              100ms intervals (up to 8 children).

   Tier 1 (hero load) and Tier 3 (bespoke moments like the
   pivot chips) live in their own keyframe blocks.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* Tier 2 — fade-up primitive */
  [data-reveal] {
    transition:
      opacity   700ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(16px);
  }

  /* Tier 2.5 — staggered children inside a [data-reveal-stagger] parent */
  [data-reveal-stagger] > * {
    transition:
      opacity   700ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js [data-reveal-stagger]:not(.is-visible) > * {
    opacity: 0;
    transform: translateY(16px);
  }
  [data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay:   0ms; }
  [data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 100ms; }
  [data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 200ms; }
  [data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 300ms; }
  [data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 400ms; }
  [data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 500ms; }
  [data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 600ms; }
  [data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 700ms; }
}


/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.proof-bar {
  padding-block: var(--sp-16);
  background: transparent;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.proof-bar__track {
  display: flex;
  width: max-content;
  animation: proof-marquee 48s linear infinite;
}

.proof-bar__track:hover {
  animation-play-state: paused;
}

@keyframes proof-marquee {
  from { transform: translateX(0); }
  /* -50% == one card set's width (site.js clones the set to fill the other half),
     so the clone lands exactly where the original began — seamless, no jump */
  to   { transform: translateX(-50%); }
}

.proof-bar__card {
  flex: 0 0 280px;
  /* gap lives on the card (not the track) so each card set is exactly half
     the track width — translateX(-50%) then lands seamlessly on the loop seam */
  margin-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  box-shadow: 0 4px 24px rgba(0,70,200,0.05), 0 1px 3px rgba(0,0,0,0.04);
}

.proof-bar__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

.proof-bar__handle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.proof-bar__stars::before {
  content: '★★★★★';
  font-size: 13px;
  color: var(--accent-warm);
  letter-spacing: 1px;
  display: block;
}

.proof-bar__divider {
  border: none;
  border-top: 1px dashed rgba(0,0,0,0.15);
  margin: 4px 0;
}

.proof-bar__text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.01em;
  flex: 1;
  margin: 0;
}

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

/* Mobile: show a single static card at container width */
@media (max-width: 767px) {
  .proof-bar {
    padding-inline: var(--sp-6);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .proof-bar__track {
    animation: none;
    width: 100%;
  }
  .proof-bar__card {
    flex: 0 0 100%;
    margin-right: 0; /* single static card — no marquee gap needed */
  }
  .proof-bar__card:not(:first-child) {
    display: none;
  }
}


/* ============================================================
   HERO MOTION
   ============================================================ */
@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-rise-blur {
  from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);    }
}

@keyframes hero-rise-sm {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes hero-rise-xs {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes hero-float-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@media (prefers-reduced-motion: no-preference) {
  /* Eyebrow: pure fade, it's a label not an event */
  .hero__eyebrow {
    animation: hero-fade 500ms cubic-bezier(0.22, 1, 0.36, 1) 0ms both;
  }

  /* Headline: the anchor — blur-in + rise */
  .hero__headline {
    animation: hero-rise-blur 800ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
  }

  /* Subhead: smaller rise, trails headline */
  .hero__subhead {
    animation: hero-rise-sm 600ms cubic-bezier(0.22, 1, 0.36, 1) 320ms both;
  }

  /* CTA + trust: quick snap into place */
  .hero__cta {
    animation: hero-rise-xs 500ms cubic-bezier(0.22, 1, 0.36, 1) 480ms both;
  }

  /* iPhone: slow float-up, runs in parallel with text */
  .hero__visual {
    animation: hero-float-in 1000ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
  }

}



/* ============================================================
   PIVOT — SECTION 4: THE PROBLEM → THE PROMISE
   ============================================================ */
.pivot {
  padding-block: var(--sp-24);
  text-align: center;
  background: var(--bg-navy);
  position: relative;
  overflow: hidden;
}

/* atmospheric sky gradient mesh — blue only */
.pivot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 15% 15%, rgba(0,122,255,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 85% 80%, rgba(0,80,200,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.pivot > .container { position: relative; }

.pivot .container { max-width: 1000px; }

.pivot__question {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  max-width: 780px;
  margin: 0 auto var(--sp-6);
}

.pivot__problem {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--text-muted-on-dark);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto var(--sp-8);
}

.pivot__temp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: 32px;
}

.pivot__temp-badge img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.pivot__temp-badge-num {
  font-family: var(--font-display);
  font-size: 2rem; /* 32px mobile → 40px tablet → 48px desktop */
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pivot__character {
  display: block;
  height: 340px;
  width: auto;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pivot__character { height: 500px; }
}

.pivot__chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-text);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(225,238,255,0.90);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-4);
  white-space: nowrap;
  line-height: 1.4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Mobile: chips left | character | chips right */
.pivot__mobile-layout {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-12);
}

@media (min-width: 480px) {
  .pivot__mobile-layout { grid-template-columns: 1fr 180px 1fr; gap: var(--sp-4); }
}

.pivot__chips-left,
.pivot__chips-right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.pivot__chips-left  { align-items: flex-end; }
.pivot__chips-right { align-items: flex-start; }

/* Remove Hat? and Sunglasses? on mobile (too long for narrow layout) */
.pivot__chips-left  .pivot__chip:nth-child(5),
.pivot__chips-right .pivot__chip:nth-child(5) {
  display: none;
}

/* hidden state with slight rotations */
.pivot__chips-left  .pivot__chip:nth-child(1) { opacity: 0; transform: rotate(-1.5deg) scale(0.8); }
.pivot__chips-left  .pivot__chip:nth-child(2) { opacity: 0; transform: rotate(1deg)    scale(0.8); }
.pivot__chips-left  .pivot__chip:nth-child(3) { opacity: 0; transform: rotate(-2deg)   scale(0.8); }
.pivot__chips-left  .pivot__chip:nth-child(4) { opacity: 0; transform: rotate(1.5deg)  scale(0.8); }
.pivot__chips-left  .pivot__chip:nth-child(5) { opacity: 0; transform: rotate(-1deg)   scale(0.8); }
.pivot__chips-right .pivot__chip:nth-child(1) { opacity: 0; transform: rotate(2deg)    scale(0.8); }
.pivot__chips-right .pivot__chip:nth-child(2) { opacity: 0; transform: rotate(-1deg)   scale(0.8); }
.pivot__chips-right .pivot__chip:nth-child(3) { opacity: 0; transform: rotate(1.5deg)  scale(0.8); }
.pivot__chips-right .pivot__chip:nth-child(4) { opacity: 0; transform: rotate(-2deg)   scale(0.8); }
.pivot__chips-right .pivot__chip:nth-child(5) { opacity: 0; transform: rotate(1deg)    scale(0.8); }

.pivot__chips-left .pivot__chip,
.pivot__chips-right .pivot__chip {
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* revealed: fly to resting rotations */
.pivot__mobile-layout.chips-visible .pivot__chips-left  .pivot__chip:nth-child(1) { opacity: 1; transform: rotate(-1.5deg); transition-delay:   0ms; }
.pivot__mobile-layout.chips-visible .pivot__chips-left  .pivot__chip:nth-child(2) { opacity: 1; transform: rotate(1deg);    transition-delay:  80ms; }
.pivot__mobile-layout.chips-visible .pivot__chips-left  .pivot__chip:nth-child(3) { opacity: 1; transform: rotate(-2deg);   transition-delay: 160ms; }
.pivot__mobile-layout.chips-visible .pivot__chips-left  .pivot__chip:nth-child(4) { opacity: 1; transform: rotate(1.5deg);  transition-delay: 240ms; }
.pivot__mobile-layout.chips-visible .pivot__chips-left  .pivot__chip:nth-child(5) { opacity: 1; transform: rotate(-1deg);   transition-delay: 320ms; }
.pivot__mobile-layout.chips-visible .pivot__chips-right .pivot__chip:nth-child(1) { opacity: 1; transform: rotate(2deg);    transition-delay:  40ms; }
.pivot__mobile-layout.chips-visible .pivot__chips-right .pivot__chip:nth-child(2) { opacity: 1; transform: rotate(-1deg);   transition-delay: 120ms; }
.pivot__mobile-layout.chips-visible .pivot__chips-right .pivot__chip:nth-child(3) { opacity: 1; transform: rotate(1.5deg);  transition-delay: 200ms; }
.pivot__mobile-layout.chips-visible .pivot__chips-right .pivot__chip:nth-child(4) { opacity: 1; transform: rotate(-2deg);   transition-delay: 280ms; }
.pivot__mobile-layout.chips-visible .pivot__chips-right .pivot__chip:nth-child(5) { opacity: 1; transform: rotate(1deg);    transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .pivot__chips-left .pivot__chip,
  .pivot__chips-right .pivot__chip,
  .pivot__stage .pivot__chip { transition: none; opacity: 1; transform: none !important; }
  .pivot__stage .pivot__chip--tl  { transform: rotate(-3deg)   !important; }
  .pivot__stage .pivot__chip--tl2 { transform: rotate(-1deg)   !important; }
  .pivot__stage .pivot__chip--tc  { transform: rotate(-1.5deg) !important; }
  .pivot__stage .pivot__chip--tr  { transform: rotate(2.5deg)  !important; }
  .pivot__stage .pivot__chip--tr2 { transform: rotate(2deg)    !important; }
  .pivot__stage .pivot__chip--ml { transform: translateY(-50%) rotate(-2deg) !important; }
  .pivot__stage .pivot__chip--mr { transform: translateY(-50%) rotate(2deg)  !important; }
  .pivot__stage .pivot__chip--bl { transform: rotate(-2deg)   !important; }
  .pivot__stage .pivot__chip--bc { transform: rotate(1.5deg) !important; }
  .pivot__stage .pivot__chip--br { transform: rotate(3deg)    !important; }
}

/* Desktop: absolute-positioned chip stage */
.pivot__stage { display: none; }

@media (min-width: 768px) {
  .pivot__temp-badge-num { font-size: 2.5rem; }  /* 40px */
  .pivot__promise        { font-size: 1.125rem; } /* 18px */

  .pivot__mobile-layout { display: none; }

  .pivot__stage {
    display: block;
    position: relative;
    width: 100%;
    height: 540px;
    margin: 0 auto var(--sp-12);
  }

  /* Character centered in stage */
  .pivot__stage .pivot__character {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 500px;
    width: auto;
    margin: 0;
  }

  .pivot__stage .pivot__chip {
    position: absolute;
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* ── Hidden: chips pulled toward center ──────────────────── */
  .pivot__chip--tl  { top: 28px;    left: 22%;    transform: rotate(-3deg)            translate(80px, 60px)    scale(0.75); }
  .pivot__chip--tl2 { top: 65%;     left: 22%;    transform: rotate(-1deg)            translate(70px, -30px)   scale(0.75); }
  .pivot__chip--tc  { top: 30%;     left: 18%;    transform: rotate(-1.5deg)          translate(70px, 20px)    scale(0.75); }
  .pivot__chip--tr  { top: 28px;    right: 22%;   transform: rotate(2.5deg)           translate(-80px, 60px)   scale(0.75); }
  .pivot__chip--tr2 { top: 27%;     right: 18%;   transform: rotate(2deg)             translate(-70px, 30px)   scale(0.75); }
  .pivot__chip--ml  { top: 50%;     left: 20%;    transform: translateY(-50%) translateX(70px)                scale(0.75); }
  .pivot__chip--mr  { top: 50%;     right: 20%;   transform: translateY(-50%) translateX(-70px)               scale(0.75); }
  .pivot__chip--bl  { bottom: 28px; left: 22%;    transform: rotate(-2deg)            translate(80px, -60px)   scale(0.75); }
  .pivot__chip--bc  { bottom: 22%;  right: 18%;   transform: rotate(1.5deg)           translate(-70px, -20px)  scale(0.75); }
  .pivot__chip--br  { bottom: 28px; right: 22%;   transform: rotate(3deg)             translate(-80px, -60px)  scale(0.75); }

  /* ── Revealed: fly out to natural positions ──────────────── */
  .pivot__stage.chips-visible .pivot__chip--tl  { opacity: 1; transform: rotate(-3deg);                   transition-delay:   0ms; }
  .pivot__stage.chips-visible .pivot__chip--tl2 { opacity: 1; transform: rotate(-1deg);                   transition-delay:  40ms; }
  .pivot__stage.chips-visible .pivot__chip--tc  { opacity: 1; transform: rotate(-1.5deg);                  transition-delay:  80ms; }
  .pivot__stage.chips-visible .pivot__chip--tr  { opacity: 1; transform: rotate(2.5deg);                   transition-delay: 160ms; }
  .pivot__stage.chips-visible .pivot__chip--tr2 { opacity: 1; transform: rotate(2deg);                     transition-delay: 200ms; }
  .pivot__stage.chips-visible .pivot__chip--ml  { opacity: 1; transform: translateY(-50%) rotate(-2deg);   transition-delay: 260ms; }
  .pivot__stage.chips-visible .pivot__chip--mr  { opacity: 1; transform: translateY(-50%) rotate(2deg);    transition-delay: 340ms; }
  .pivot__stage.chips-visible .pivot__chip--bl  { opacity: 1; transform: rotate(-2deg);                    transition-delay: 420ms; }
  .pivot__stage.chips-visible .pivot__chip--bc  { opacity: 1; transform: rotate(1.5deg);                   transition-delay: 500ms; }
  .pivot__stage.chips-visible .pivot__chip--br  { opacity: 1; transform: rotate(3deg);                     transition-delay: 580ms; }
}


.pivot__promise {
  font-family: var(--font-text);
  font-size: 1rem; /* 16px mobile → 18px tablet → 19px desktop */
  color: var(--text-on-dark);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

.pivot__promise strong { font-weight: 600; color: #fff; }

@media (min-width: 1024px) {
  .pivot__temp-badge-num { font-size: 3rem; }      /* 48px */
  .pivot__promise        { font-size: 1.1875rem; } /* 19px */
}

/* ─── SECTION 5 — HOW IT WORKS ──────────────────────────────────────────────── */

.howto {
  padding-block: var(--sp-24);
  text-align: center;
  background: var(--bg-soft);
}

.howto__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 780px;
  text-wrap: balance;
  margin: 0 auto var(--sp-12);
}

.howto__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-12);
}

.howto__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}

.howto__visual {
  position: relative;
  margin: 0 0 var(--sp-4);
  width: 100%;
  max-width: 212px;
  aspect-ratio: 53 / 88; /* 212/352 reduced */
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

/* Phone frame in-flow so it establishes container height; max-height + overflow:hidden clips the bottom */
.howto__frame {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
}

/* Shared: screenshot absolutely placed inside any phone bezel screen area */
.howto__screen,
.features__screen,
.widgets__screen {
  position: absolute;
  top: 2.5272%;
  left: 5.3889%;
  width: 89.2222%;
  height: 94.9457%;
  object-fit: cover;
  object-position: top center;
}

.howto__screen {
  /* .howto__visual uses aspect-ratio 53/88, not the bezel's 45/92, so the shared
     top/height values (bezel-relative) resolve incorrectly against the container.
     Corrected: top = 2.5272% × (92/45)÷(88/53) ≈ 3.11%; bottom:0 fills to the clip edge. */
  top: 3.11%;
  height: unset;
  bottom: 0;
  z-index: 0;
}

.howto__number {
  font-family: var(--font-display);
  font-size: 3.5rem; /* 56px mobile → 64px tablet → 80px desktop */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  display: block;
  margin-bottom: var(--sp-3);
  color: rgba(0,122,255,0.22);
}

.howto__step-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.howto__step-body {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .howto .container { max-width: 1000px; }
  .howto__number { font-size: 4rem; } /* 64px */

  .howto__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
    align-items: start;
  }

  .howto__visual {
    max-width: none;
    /* aspect-ratio and overflow already set; let width:100% fill the grid column */
  }
}

@media (min-width: 1024px) {
  .howto__number { font-size: 5rem; } /* 80px */
}

@media (min-width: 1024px) {
  .howto__steps { gap: var(--sp-12); }
}

/* ─── SECTION 6 — CORE FEATURES ─────────────────────────────────────────────── */

.features {
  background: var(--bg);
}

.features__header {
  padding-block: var(--sp-20) var(--sp-4);
  text-align: center;
}

.features__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 auto;
}

/* Full-width alternating blocks */
.features__block {
  padding-block: var(--sp-12);
  background: var(--bg);
}

.features__block--warm {
  background:
    radial-gradient(ellipse 70% 90% at 10% 60%, rgba(255,179,65,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 20%, rgba(255,200,80,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 55% 95%, rgba(255,155,40,0.09) 0%, transparent 55%),
    #FEFBF0;
}

.features__block--cool {
  background:
    radial-gradient(ellipse 70% 90% at 90% 60%, rgba(0,122,255,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 20%, rgba(0,100,240,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 50% 95%, rgba(0,90,220,0.08) 0%, transparent 55%),
    #EBF3FF;
}

.features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  text-align: center;
}

.features__visual {
  margin: 0;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 45 / 92; /* bezel natural ratio 1800/3680 reduced → gives absolute children a definite height */
  flex-shrink: 0;
  position: relative;
}

/* white screen inside the phone mockup */
.features__visual::before {
  content: '';
  position: absolute;
  top: 2.5272%;
  left: 5.3889%;
  width: 89.2222%;
  height: 94.9457%;
  background: #fff;
  border-radius: 7%;
  z-index: 0;
}

/* Screenshot placed inside the bezel screen area */
.features__screen {
  border-radius: 7%;
  z-index: 1;
}

/* Frame sits on top of the screenshot */
.features__visual img:not(.features__screen),
.widgets__phone img:not(.widgets__screen) {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
}

.features__item-title {
  font-family: var(--font-display);
  font-size: 1.5rem; /* 24px mobile → 28px tablet → 32px desktop */
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 var(--sp-3);
}

.features__item-body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (min-width: 768px) {
  .features__block .container { max-width: 1000px; }
  .features__header .container { max-width: 1000px; }
  .features__block { padding-block: var(--sp-20); }

  .features__item {
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: var(--sp-12);
    align-items: center;
    text-align: left;
  }

  .features__visual { max-width: 100%; }

  /* Flip image to right when .features__item--flip */
  .features__item--flip { grid-template-columns: 1fr 220px; }
  .features__item--flip .features__visual { order: 2; }

  .features__copy { max-width: none; min-width: 0; }

  .features__item-title { max-width: none; font-size: 1.75rem; } /* 28px */
  .features__item-body  { max-width: none; }
}

@media (min-width: 1024px) {
  .features__block { padding-block: var(--sp-24); }
  .features__item {
    grid-template-columns: 300px 1fr;
    column-gap: var(--sp-20);
  }
  .features__item--flip { grid-template-columns: 1fr 300px; }
  .features__visual { max-width: 100%; }
  .features__item-title { font-size: 2rem; } /* 32px */
}

/* ─── SECTION 7 — WIDGETS & LOCK SCREEN ─────────────────────────────────────── */

.widgets {
  padding-top: var(--sp-24);
  padding-bottom: 0;
  background: var(--bg-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.widgets::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 90% 15%, rgba(0,100,255,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 5% 80%, rgba(0,80,220,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.widgets > .container { position: relative; }

.widgets__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  max-width: 18ch;
  margin: 0 auto var(--sp-8);
  text-wrap: balance;
}

.widgets__lead {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--text-muted-on-dark);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto var(--sp-12);
  text-wrap: pretty;
}

/* Two-column grid — each column: phone + stat ---------------------------- */
.widgets__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  /* no bottom margin on mobile so the section ends flush with the cropped
     phone (desktop restores spacing below) */
  margin: 0 auto;
}

.widgets__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 300px;
}

.widgets__phone {
  margin: 0;
  width: 100%;
  /*
   * Proportional crop: aspect-ratio sets the container height to ~70% of the
   * phone's natural height (the in-flow bezel image is taller and gets clipped
   * by overflow:hidden). Cutting at ~70% lands just below the widgets, hiding
   * the empty home-screen bottom, the Search pill and the rounded corners —
   * matching desktop's tighter crop, and staying consistent across device
   * widths (a fixed max-height clipped at a different % per screen size).
   */
  aspect-ratio: 7 / 10;
  overflow: hidden;
  position: relative;
  /* no order override — stat stays above phone (DOM order) */
}

.widgets__phone::before {
  content: '';
  position: absolute;
  top: 2.5272%;
  left: 5.3889%;
  width: 89.2222%;
  bottom: 0;          /* fill all the way to the clip edge so no frame strip peeks out */
  background: #fff;
  border-radius: 7% 7% 0 0;
  z-index: 0;
}

.widgets__screen {
  height: unset; /* override .phone-screen height; bottom:0 fills to clip edge instead */
  bottom: 0;
  border-radius: 7% 7% 0 0;
  z-index: 1;
}

/* Stat sits directly beneath its phone ----------------------------------- */
.widgets__stat {
  width: 100%;
  padding: var(--sp-6) var(--sp-4) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}

.widgets__stat--home .widgets__stat-num { color: var(--accent); }
.widgets__stat--lock .widgets__stat-num { color: var(--accent-warm); }

.widgets__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4vw + 1.5rem, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.widgets__stat-label {
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--text-muted-on-dark);
  line-height: 1.4;
  text-align: center;
}

/* Feature list ----------------------------------------------------------- */
.widgets__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 36ch;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  text-align: left;
}

.widgets__item {
  position: relative;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--text-on-dark);
  line-height: 1.5;
  padding-left: var(--sp-6);
}

.widgets__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* Tablet (≥ 768px) — two columns, original bleed layout ----------------- */
@media (min-width: 768px) {
  .widgets .container { max-width: 1000px; }

  .widgets__grid {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: var(--sp-8);
    margin-bottom: var(--sp-16);
  }

  .widgets__col { max-width: 260px; }

  /* Restore original desktop phone treatment */
  .widgets__phone {
    aspect-ratio: auto;
    max-height: none;
    margin-bottom: -220px;
    overflow: visible;
  }

  /* Restore precise screen-area proportions */
  .widgets__phone::before {
    height: 94.9457%;
    bottom: auto;
  }

  .widgets__screen {
    height: 94.9457%;
    bottom: auto;
  }
}

/* Desktop (≥ 1024px) — larger columns ------------------------------------ */
@media (min-width: 1024px) {
  .widgets__col { max-width: 300px; }
}


/* ─── SECTION 8 — APPLE WATCH ───────────────────────────────────────────── */

.watch {
  padding-top: var(--sp-24);
  padding-bottom: 0;
  background: var(--bg);
  text-align: center;
}

.watch__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 26ch;
  margin: 0 auto var(--sp-8);
  text-wrap: balance;
}

.watch__lead {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto var(--sp-16);
  text-wrap: pretty;
}

.watch__visual {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: var(--sp-12);
  background: var(--bg-soft);
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.watch__visual img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .watch .container { max-width: 1000px; }
}


/* ─── SECTION 10 — FAQ ───────────────────────────────────────────────────── */

.faq {
  padding-block: var(--sp-24);
  position: relative;
  background:
    radial-gradient(ellipse 38% 70% at 4% 50%,  rgba(0,122,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 32% 60% at 96% 45%,  rgba(0,90,220,0.06) 0%, transparent 70%),
    var(--bg);
}

.faq__glass {
  background: rgba(255,255,255,0.52);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,0.80);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0,70,200,0.07), 0 1px 4px rgba(0,0,0,0.04);
}

.faq__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
  margin: 0 auto var(--sp-12);
}

.faq__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-8);
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
  min-height: 52px;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%235C6068' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__question.is-open::after {
  transform: rotate(180deg);
}

.faq__question:hover { color: var(--accent); }
.faq__question:hover::after { filter: brightness(0) saturate(100%) invert(27%) sepia(99%) saturate(1648%) hue-rotate(201deg) brightness(104%) contrast(101%); }

.faq__answer {
  overflow: hidden;
  padding: var(--sp-2) var(--sp-8) var(--sp-4) 0;
}

.faq__answer p {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.faq__footer {
  text-align: center;
  padding-top: var(--sp-4);
}

@media (min-width: 768px) {
  .faq .container { max-width: 1000px; }
}


/* ─── SECTION 11 — FINAL CTA ─────────────────────────────────────────────── */

.final-cta {
  padding-block-start: var(--sp-20);
  padding-block-end: 0; /* image bleeds flush into footer */
  /* Static gradient — not animated, so no prefers-reduced-motion gate needed */
  background:
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(255,179,65,0.10) 0%, transparent 70%),
    var(--bg);
  text-align: center;
  overflow: hidden; /* keep any overflow clean */
}

.final-cta__visual {
  margin: var(--sp-8) auto 0;
  width: 100%;
  max-width: 340px;
}

.final-cta__visual img {
  width: 100%;
  height: auto;
  display: block;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 20ch;
  margin: 0 auto var(--sp-6);
  text-wrap: balance;
}

.final-cta__body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 40ch;
  margin: 0 auto var(--sp-8);
  text-wrap: pretty;
}

/* Tablet (≥ 768px) — still single column, wider top padding */
@media (min-width: 768px) {
  .final-cta { padding-block-start: var(--sp-24); padding-block-end: 0; }
}

/* Desktop (≥ 1024px) — two columns: copy left, phone right */
@media (min-width: 1024px) {
  .final-cta { text-align: left; }

  .final-cta .container { max-width: 1000px; }

  /* Grid lives on the dedicated wrapper, not the layout utility (.container).
     Visual column is sized explicitly (image is ~0.86 aspect — wider column
     → taller image, so it can reach up to the heading's top edge). */
  .final-cta__grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    align-items: end;          /* bottom-anchor the image to the section/footer edge */
    gap: var(--sp-8);
  }

  /* Copy column: flex-center so the heading sits vertically opposite the image.
     align-items: flex-start keeps the App Store button hugged to the left edge
     instead of stretching full-width (and centring its badge image inside). */
  .final-cta__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-20);
  }

  .final-cta__title {
    margin-inline: 0;
    max-width: none;
  }

  .final-cta__body {
    margin-inline: 0;
    max-width: 38ch;
  }

  /* Visual column: explicit width — drives the image height via aspect ratio */
  .final-cta__visual {
    margin: 0;
    width: 100%;
    max-width: 460px;
    justify-self: end;
  }

  .final-cta__visual img {
    display: block;
    width: 100%;
    height: auto;
  }
}


/* ─── SITE FOOTER ────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: var(--sp-12);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.site-footer .container { max-width: 1000px; }

/* shared row base */
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-6);
}

/* row 1: logo left, social links right */
.site-footer__row--brand {
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.site-footer__logo img {
  height: 30px;
  width: auto;
  display: block;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) 24px;
  align-items: center;
}

.site-footer__social a,
.site-footer__links a {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-footer__social a:hover,
.site-footer__links a:hover { color: var(--accent); }

/* brand-row right cluster: language switcher + social */
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) 24px;
}

.site-footer__nav-sep {
  display: none;
  width: 1px;
  height: 14px;
  background: var(--border);
  flex: none;
}

/* language dropdown (disclosure) */
.lang-select {
  position: relative;
  flex: none;
}

.lang-select__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  font-family: var(--font-text);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-select__trigger:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-select__globe { width: 15px; height: 15px; flex: none; }

.lang-select__chevron {
  width: 11px; height: 11px;
  flex: none;
  margin-inline-start: 1px;
  transition: transform 0.2s ease;
}
.lang-select__trigger[aria-expanded="true"] .lang-select__chevron {
  transform: rotate(180deg);
}

.lang-select__menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}
.lang-select.is-open .lang-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.lang-select__option:hover { background: var(--bg-soft); color: var(--accent); }
.lang-select__option[aria-current="page"] { font-weight: 600; }

.lang-select__check {
  width: 15px; height: 15px;
  flex: none;
  margin-inline-start: auto;
  color: var(--accent);
}
.lang-select__option:not([aria-current="page"]) .lang-select__check {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .lang-select__menu,
  .lang-select__chevron { transition: none; }
  .lang-select__menu { transform: none; }
  .lang-select.is-open .lang-select__menu { transform: none; }
}

/* divider between brand row and legal row */
.site-footer__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0 0 var(--sp-4);
}

/* row 2: legal links + copyright */
.site-footer__row--legal {
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

/* Links appear above copyright on mobile */
.site-footer__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  justify-content: space-between; /* Privacy left · Terms center · Press Kit right */
  order: -1;
}

/* Copyright sits below the links */
.site-footer__copyright {
  order: 1;
}

.site-footer__copyright {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  white-space: nowrap;
}

/* row 3: disclaimers — Apple left, Weather right */
.site-footer__row--disclaimers {
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
}

.site-footer__row--disclaimers p {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  opacity: 0.7;
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .site-footer { padding-block: var(--sp-16); }

  /* Restore two-column legal row on tablet/desktop */
  .site-footer__row--legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .site-footer__links {
    width: auto;
    order: 0;
    justify-content: flex-start;
    gap: 24px;
  }
  .site-footer__copyright { order: 0; }

  /* group language switcher + social to the right, with separator */
  .site-footer__nav { justify-content: flex-end; }
  .site-footer__nav-sep { display: block; }
}

/* --------------------------------------------------------------------------
   Footer — refined mobile layout
   Single centered column with one consistent vertical rhythm, matching the
   centered page content above. Mobile-only overrides; desktop (>=768px) keeps
   the rules above.
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  /* Brand stacks: logo → social → language pill, centered, even rhythm */
  .site-footer__row--brand {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
  }
  .site-footer__nav {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
  }
  /* contact/social row sits above the language pill, centered */
  .site-footer__social {
    order: -1;
    justify-content: center;
  }

  /* Legal links: centered with even gaps (no edge-to-edge justify) */
  .site-footer__links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-3) var(--sp-6);
  }

  /* Links stay above copyright; tighten copyright into the fine-print cluster */
  .site-footer__row--legal {
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-3);
  }

  /* Disclaimers: stacked, centered, even breathing room */
  .site-footer__row--disclaimers {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
  }
  .site-footer__row--disclaimers p { text-align: center; }
}

/* ==========================================================================
   Legal pages (privacy-policy, terms-of-use)
   ========================================================================== */

.legal {
  padding-block-start: calc(60px + var(--sp-16));
  padding-block-end: var(--sp-20);
}

.legal .container { max-width: 680px; }

.legal h1 {
  font-family: var(--font-display);
  font-size: 2rem; /* 32px mobile → 40px tablet → 48px desktop */
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--sp-3);
}

.legal .legal__effective {
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--sp-12);
  letter-spacing: 0.01em;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; /* 20px mobile → 22px tablet → 24px desktop */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-3);
}

.legal h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.legal p {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.legal ul {
  margin: 0 0 var(--sp-4) var(--sp-6);
  padding: 0;
  list-style: disc;
}

.legal ul ul {
  margin-top: var(--sp-2);
  margin-bottom: 0;
  list-style: circle;
}

.legal li {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal a:hover { opacity: 0.75; }

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

@media (min-width: 768px) {
  .legal h1 { font-size: 2.5rem;  } /* 40px */
  .legal h2 { font-size: 1.375rem; } /* 22px */
}

@media (min-width: 1024px) {
  .legal h1 { font-size: 3rem;  } /* 48px */
  .legal h2 { font-size: 1.5rem; } /* 24px */
}

/* ==========================================================================
   404 page
   ========================================================================== */

.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 60px);
  padding-block: var(--sp-20);
  text-align: center;
}

.not-found .container {
  max-width: 520px;
}

.not-found__code {
  font-family: var(--font-display);
  font-size: 6rem; /* 96px mobile → 128px tablet → 160px desktop */
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  opacity: 0.07;
  margin: 0 0 var(--sp-4);
  user-select: none;
}

.not-found__headline {
  font-family: var(--font-display);
  font-size: 1.75rem; /* 28px mobile → 32px tablet → 40px desktop */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 var(--sp-4);
}

.not-found__body {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin: 0 0 var(--sp-8);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

.not-found__btn-home {
  font-size: 0.9375rem;
  height: 40px;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .not-found__code     { font-size: 8rem;  } /* 128px */
  .not-found__headline { font-size: 2rem;  } /* 32px */
}

@media (min-width: 1024px) {
  .not-found__code     { font-size: 10rem; } /* 160px */
  .not-found__headline { font-size: 2.5rem; } /* 40px */
}


/* ============================================================
   SUPPORT FORM  (chrome-less in-app WebView page)
   ============================================================ */

.support {
  padding-block: var(--sp-12) var(--sp-16);
  min-height: 100svh;
}

.support .container {
  max-width: 560px;
}

.support__intro {
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.support__intro a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.support__intro a:hover {
  opacity: 0.75;
}

/* Form layout */
.support .form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Inputs & textarea */
.support .form input[type="text"],
.support .form input[type="email"],
.support .form textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 1rem; /* ≥16px prevents iOS auto-zoom on focus */
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  resize: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.support .form input[type="text"]::placeholder,
.support .form input[type="email"]::placeholder,
.support .form textarea::placeholder {
  color: var(--text-muted);
  opacity: 1; /* Firefox normalisation */
}

.support .form input[type="text"]:focus,
.support .form input[type="email"]:focus,
.support .form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
}

/* Submit button */
.support .form__button {
  width: 100%;
  height: 48px;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  margin-top: var(--sp-2);
}

.support .form__button:hover  { opacity: 0.82; }
.support .form__button:active { transform: scale(0.98); }

.support .form__button[disabled] {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

/* Success confirmation — success.html */
.support .success {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-4);
}

.support .success img {
  width: 88px;
  height: 88px;
}

.support .success p {
  color: var(--text-muted);
}
