/* ---------------------------------------------------------
   Voca — landing page
   Design system: native CSS, no framework (static site).
   Palette: warm coral/red, matched to the app's own icon.
   Theme: light default, dark via prefers-color-scheme, locked
   per Section 4.11 (no per-section theme flips).
--------------------------------------------------------- */

:root {
  --bg: #FFF8F4;
  --bg-elevated: #FFFFFF;
  --text: #241512;
  --text-muted: #6B5850;
  --accent: #FF6A45;
  --accent-2: #FF3D2E;
  --border: rgba(36, 21, 18, 0.08);
  --shadow: rgba(255, 106, 69, 0.18);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A100D;
    --bg-elevated: #241614;
    --text: #FBEFE9;
    --text-muted: #C9AFA5;
    --accent: #FF7A55;
    --accent-2: #FF5640;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: rgba(255, 106, 69, 0.28);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1A100D;
  --bg-elevated: #241614;
  --text: #FBEFE9;
  --text-muted: #C9AFA5;
  --accent: #FF7A55;
  --accent-2: #FF5640;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(255, 106, 69, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p { margin: 0; }

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

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Nav ---------- */

.nav {
  max-width: 1200px;
  margin-inline: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav__mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
}

.nav__cta { font-size: 0.9rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn i { font-size: 1.1rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 28px -8px var(--shadow);
}

.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost:active { transform: scale(0.98); }

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

.hero {
  max-width: 1200px;
  margin-inline: auto;
  padding: 24px 24px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__copy { max-width: 560px; }

.hero__headline {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

.hero__sub {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero__actions { margin-top: 32px; }

.hero__meta {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 16;
  border-radius: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.phone-frame__glow {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: radial-gradient(circle at 30% 20%, var(--shadow), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.phone-frame__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

.phone-frame__badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.35);
  border: 3px solid var(--bg);
}

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

.section {
  max-width: 1200px;
  margin-inline: auto;
  padding: 80px 24px;
}

.section__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  max-width: 20ch;
  margin-bottom: 48px;
}

/* ---------- Bento (features) ---------- */

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

.bento__cell {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  isolation: isolate;
}

.bento__cell h3 { font-size: 1.3rem; }
.bento__cell p { color: var(--text-muted); max-width: 40ch; }

.bento__icon {
  font-size: 1.8rem;
  color: var(--accent);
}

.bento__cell--large {
  grid-row: span 2;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  justify-content: center;
}

.bento__shot {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.bento__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bento__cell--accent .bento__scrim {
  background: linear-gradient(180deg, rgba(255, 61, 46, 0.35) 0%, rgba(20, 8, 6, 0.92) 78%);
}

.bento__cell--accent-2 .bento__scrim {
  background: linear-gradient(180deg, rgba(36, 21, 18, 0.25) 0%, rgba(15, 8, 6, 0.94) 78%);
}

.bento__cell--accent,
.bento__cell--accent-2 {
  color: #fff;
  justify-content: flex-end;
  min-height: 320px;
}

.bento__cell--accent p,
.bento__cell--accent-2 p { color: rgba(255, 255, 255, 0.85); }

.bento__cell--accent .bento__icon,
.bento__cell--accent-2 .bento__icon { color: #fff; }

/* ---------- Gallery (scroll-snap strip) ---------- */

.gallery__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -24px;
  padding-inline: 24px;
}

.gallery__item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  margin: 0;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 230 / 498;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: block;
}

.gallery__item figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Testimonials ---------- */

.testimonials__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.testimonial figcaption {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Flow (how it works) ---------- */

.flow__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 16px;
}

.flow__step { max-width: 260px; }

.flow__icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.flow__step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.flow__step p { color: var(--text-muted); font-size: 0.95rem; }

.flow__connector {
  width: 100%;
  height: 1px;
  margin-top: 34px;
  background: var(--border);
}

/* ---------- Closing CTA ---------- */

.cta__box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cta__box h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 20ch;
}

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

.footer {
  max-width: 1200px;
  margin-inline: auto;
  padding: 48px 24px 64px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn { transition: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 8px;
    padding-bottom: 64px;
  }

  .hero__visual { order: -1; }

  .hero__copy { max-width: 100%; }

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

  .bento__cell--large { grid-row: auto; }

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

  .flow__connector { display: none; }

  .testimonials__row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section { padding: 56px 20px; }

  .gallery__track { margin: 0 -20px; padding-inline: 20px; }

  .cta__box { padding: 48px 24px; }
}
