/* ============================================================
   RollAI marketing site — design system
   Editorial-athletic dark theme. Brand tokens ported from the
   Expo app's ThemeContext (dark surface + amber belt accent),
   refined with an editorial type system (Fraunces + Outfit),
   a tightened spacing/radius scale, and photography-led layout.
   ============================================================ */

:root {
  /* ---- Color: surfaces ---- */
  --bg: #080808;
  --surface: #111111;
  --surface-2: #161412;
  --surface-3: #1c1916;
  --border: #1E1E1E;
  --border-strong: #2A2622;

  /* ---- Color: text ---- */
  --text: #EDE6D6;
  --text-dim: #C7BFB1;
  --muted: #8a8378;
  --muted-2: #6B6560;

  /* ---- Color: accent (belt amber) ---- */
  --accent: #C47D2B;
  --accent-light: #E8B978;
  --accent-dim: #6b4a22;
  --on-accent: #15110A;

  /* ---- Semantic ---- */
  --success: #5C7A52;
  --danger: #A63228;

  /* ---- Radius scale ---- */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  /* ---- Type ---- */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Layout ---- */
  --max: 1240px;
  --gutter: 24px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-xs) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Focus rings ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 100;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ---------- Scroll reveal ----------
   Content is visible by default (no FOUC / no-JS regression).
   JS adds .reveal-ready on load, which arms the transition;
   IntersectionObserver then adds .in-view to animate. */
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal-ready .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.88);
  border-bottom-color: var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent-light); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 8px 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease-out-expo), background 0.3s ease;
}
.nav-cta .icon-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(21, 17, 10, 0.16);
  transition: transform 0.4s var(--ease-out-expo);
}
.nav-cta .icon-chip svg { width: 14px; height: 14px; }
.nav-cta:hover .icon-chip {
  transform: translate(2px, -2px) scale(1.05);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta:active { transform: scale(0.98); }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid var(--border-strong);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.store-btn:active { transform: translateY(-2px) scale(0.98); }
.store-btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 8px 30px -12px rgba(196, 125, 43, 0.55);
}
.store-btn.primary:hover {
  box-shadow: 0 14px 40px -14px rgba(196, 125, 43, 0.7);
}
.store-btn.secondary {
  background: var(--surface);
  color: var(--text);
}
.store-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}
.store-btn .store-text .small { font-size: 10px; font-weight: 500; opacity: 0.7; letter-spacing: 0.06em; text-transform: uppercase; }
.store-btn .store-text .big { font-size: 15px; font-weight: 600; }

/* ---------- Typography baseline ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  min-height: 92vh;
  display: flex;
  align-items: stretch;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(196,125,43,0.16), transparent 70%),
    radial-gradient(45% 45% at 8% 85%, rgba(196,125,43,0.08), transparent 70%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-wrap {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 140px;
  padding-bottom: 96px;
  min-height: 92vh;
}
.hero-content {
  max-width: 560px;
  flex: 1 1 520px;
}
.hero-content > .reveal:nth-child(1) { --d: 0s; }
.hero-content > .reveal:nth-child(2) { --d: 0.1s; }
.hero-content > .reveal:nth-child(3) { --d: 0.2s; }
.hero-content > .reveal:nth-child(4) { --d: 0.3s; }
.hero-content > .reveal:nth-child(5) { --d: 0.4s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent-light);
}

.hero h1 {
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  font-optical-sizing: auto;
  margin: 0 0 24px;
  color: var(--text);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  margin: 0 0 40px;
  max-width: 480px;
  line-height: 1.7;
}

/* Hero feature tags — what's inside, not fake metrics */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero-tags li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent-light);
}

/* ---------- Hero device mockups ---------- */
.hero-devices {
  position: relative;
  flex: 1 1 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.hero-device {
  position: absolute;
}
.hero-device .phone {
  margin: 0;
  width: 260px;
  aspect-ratio: 780 / 1688;
  background: #050505;
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 40px 100px -28px rgba(0,0,0,0.85);
}
.hero-device .phone-screen {
  border-radius: 30px;
}
.hero-device-back {
  right: 0;
  top: 6%;
  transform: rotate(9deg) scale(0.92);
  opacity: 0.78;
  filter: saturate(0.85);
}
.hero-device-back .phone {
  box-shadow: 0 30px 80px -24px rgba(0,0,0,0.7);
}
.hero-device-front {
  left: 6%;
  bottom: 0;
  transform: rotate(-6deg);
}
.hero-device-front .phone {
  width: 290px;
}

@media (max-width: 1100px) {
  .hero-devices { flex: 1 1 360px; min-height: 480px; }
  .hero-device-back .phone { width: 220px; }
  .hero-device-front .phone { width: 250px; }
}

@media (max-width: 900px) {
  .hero-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 56px;
    padding-top: 56px;
    padding-bottom: 64px;
    min-height: auto;
  }
  .hero { min-height: auto; }
  .hero-content { max-width: none; }
  .hero-devices {
    width: 100%;
    min-height: 420px;
    margin-top: 8px;
  }
  .hero-device-back { right: 6%; top: 0; }
  .hero-device-front { left: 0; bottom: 0; }
}

@media (max-width: 540px) {
  .hero-devices { min-height: 380px; }
  .hero-device-back .phone { width: 175px; }
  .hero-device-front .phone { width: 205px; }
  .hero-device-back { right: 2%; }
  .hero-device-front { left: -2%; }
  .hero-tags { gap: 10px; }
  .hero-tags li { padding: 9px 14px; font-size: 12.5px; }
}

/* ---------- Sections ---------- */
section { padding: 120px 0; }
.section-head {
  max-width: 680px;
  margin: 0 0 72px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 18px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 52ch;
}
.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Features (broken-grid editorial) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(196,125,43,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.feature-card:hover::after { opacity: 1; }
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* span pattern: large / small / small / large on a 12-col grid */
.feature-card:nth-child(1) { grid-column: span 7; }
.feature-card:nth-child(2) { grid-column: span 5; }
.feature-card:nth-child(3) { grid-column: span 5; }
.feature-card:nth-child(4) { grid-column: span 7; }

.feature-card .feature-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}
.feature-card:hover .feature-icon img {
  transform: scale(1.1) rotate(-2deg);
}
.feature-card h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.feature-card p {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  max-width: 46ch;
}
.feature-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) { grid-column: span 1; }
}

/* ---------- Screenshots (offset / cascade) ---------- */
.screens-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.screen-item:nth-child(2) { margin-top: 56px; }
.screen-item:nth-child(3) { margin-top: 0; }
.phone {
  position: relative;
  margin: 0 auto 28px;
  width: 100%;
  max-width: 248px;
  aspect-ratio: 320 / 660;
  background: #050505;
  border: 1px solid var(--border-strong);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 30px 70px -24px rgba(0,0,0,0.8);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s ease;
}
.screen-item:hover .phone {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.85);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: #050505;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.screen-item .screen-label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  color: var(--accent-light);
  margin-bottom: 6px;
  text-align: center;
}
.screen-item h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  text-align: center;
}
.screen-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  text-align: center;
  max-width: 240px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .screens-row { grid-template-columns: 1fr; gap: 56px; max-width: 320px; margin: 0 auto; }
  .screen-item:nth-child(2) { margin-top: 0; }
}

/* ---------- Scroll-driven sequence animation ----------
   Applied to .anim-seq items (screenshot phones + testimonial
   cards). Each item zooms/settles in as it enters the viewport
   and eases out as it exits — Apple-product-page style.

   Primary: native CSS scroll-driven animations (animation-timeline:
   view()) where supported. Fallback: JS (IntersectionObserver)
   toggles .in-seq / .out-seq, animated via transition below. */
@keyframes seq-in-out {
  0%   { opacity: 0;   transform: scale(0.8) translateY(56px) rotate(-3deg); }
  30%  { opacity: 1;   transform: scale(1) translateY(0) rotate(0deg); }
  70%  { opacity: 1;   transform: scale(1) translateY(0) rotate(0deg); }
  100% { opacity: 0.18; transform: scale(0.86) translateY(-48px) rotate(2.5deg); }
}

@supports (animation-timeline: view()) {
  .anim-seq {
    animation: seq-in-out linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}

/* JS fallback for browsers without scroll-driven animation support */
@supports not (animation-timeline: view()) {
  .anim-seq {
    opacity: 0;
    transform: scale(0.86) translateY(48px) rotate(-2deg);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
  }
  .anim-seq.in-seq {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
  .anim-seq.out-seq {
    opacity: 0.18;
    transform: scale(0.9) translateY(-32px) rotate(2deg);
  }
}

/* ---------- Testimonials ---------- */
.testimonials-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.testimonial-card {
  background: var(--surface);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  transition: background 0.4s ease;
}
.testimonial-card:hover { background: var(--surface-2); }
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  color: var(--accent-dim);
}
.testimonial-card .quote {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.75;
  font-family: var(--font-display);
  font-weight: 400;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.belt-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}
.testimonial-meta .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.testimonial-meta .belt {
  font-size: 12.5px;
  color: var(--muted);
  display: block;
}
@media (max-width: 900px) {
  .testimonials-rail { grid-template-columns: 1fr; }
}

/* ---------- FAQ (split list, no accordion) ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 80px;
}
.faq-side {
  position: sticky;
  top: 120px;
  align-self: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.faq-item .faq-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--accent-light);
  flex-shrink: 0;
  font-weight: 500;
}
.faq-item p {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
  max-width: 58ch;
  padding-left: 38px;
}
.faq-item p a { color: var(--accent-light); text-decoration: underline; text-decoration-color: var(--accent-dim); }
.faq-item p a:hover { text-decoration-color: var(--accent-light); }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { position: static; }
  .faq-item p { padding-left: 0; margin-top: 8px; }
  .faq-item h3 { flex-direction: column; gap: 4px; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 560px;
}
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  z-index: 0;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg, var(--bg) 0%, var(--bg) 38%, rgba(8,8,8,0.55) 58%, rgba(8,8,8,0.1) 100%);
}
.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 64px;
}
.cta-content > .reveal:nth-child(1) { --d: 0s; }
.cta-content > .reveal:nth-child(2) { --d: 0.1s; }
.cta-content > .reveal:nth-child(3) { --d: 0.2s; }
.cta-content > .reveal:nth-child(4) { --d: 0.3s; }
.cta h2 { max-width: 460px; }
.cta-content p.cta-sub {
  color: var(--muted);
  max-width: 420px;
  margin: 0 0 36px;
  font-size: 17px;
}
@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; min-height: auto; }
  .cta-content { padding: 72px var(--gutter); }
  .cta-bg { object-position: 50% 35%; }
  .cta-overlay {
    background: linear-gradient(180deg, rgba(8,8,8,0.2) 0%, var(--bg) 70%);
  }
}

/* ---------- Footer ---------- */
footer {
  padding: 64px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-tagline {
  color: var(--muted);
  font-size: 14.5px;
  margin: 16px 0 0;
  max-width: 320px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted-2);
  font-size: 13px;
}
.footer-bottom a { color: var(--muted-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-light); }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Privacy policy page ---------- */
.legal-hero {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--border);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: gap 0.3s var(--ease-out-expo);
}
.back-link:hover { gap: 12px; }
.legal-hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.05;
}
.legal-meta { color: var(--muted); font-size: 14px; }

.legal-main { padding: 64px 0 120px; }
.legal-main .wrap { max-width: 760px; }
.legal-main h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 64px 0 18px;
  padding-top: 8px;
}
.legal-main h2:first-of-type { margin-top: 0; }
.legal-main h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 28px 0 10px;
}
.legal-main p {
  color: var(--text-dim);
  margin: 0 0 16px;
  font-size: 16px;
  max-width: 68ch;
}
.legal-main ul {
  color: var(--text-dim);
  font-size: 16px;
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal-main li { margin-bottom: 8px; }
.legal-main strong { color: var(--text); font-weight: 600; }
.legal-main a { color: var(--accent-light); text-decoration: underline; text-decoration-color: var(--accent-dim); }
.legal-main a:hover { text-decoration-color: var(--accent-light); }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  font-size: 15px;
  margin: 22px 0;
  color: var(--text);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.callout .callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent-light);
  margin-top: 2px;
}
.callout p { margin: 0; }

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead tr { background: var(--surface); border-bottom: 1px solid var(--border); }
th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
  font-size: 14.5px;
}
tr:last-child td { border-bottom: none; }

.delete-path {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: var(--accent-light);
  margin: 10px 0 16px;
}
.delete-path .arrow { opacity: 0.4; }

.legal-footnote {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  section { padding: 96px 0; }
}

@media (max-width: 760px) {
  section { padding: 72px 0; }
  .section-head { margin-bottom: 48px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
  .anim-seq {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
