/* ═══════════════════════════════════════════════════════════
   FlickBaby Landing Page — Design System & Styles
   Color tokens from BabyLog App (Night-safe dark palette)
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Backgrounds */
  --bg: #121412;
  --surface: #1C1F1C;
  --surface-variant: #282C28;
  --surface-glass: rgba(28, 31, 28, 0.6);

  /* Accent — Warm Sage Green */
  --accent: #8BAF7E;
  --accent-dim: #6B8F60;
  --accent-bright: #A3C497;
  --accent-muted: #5E7E55;
  --accent-glow: rgba(139, 175, 126, 0.15);
  --accent-glow-strong: rgba(139, 175, 126, 0.25);

  /* Text */
  --text-primary: #DDDED8;
  --text-secondary: #858880;
  --text-muted: #5A5E58;

  /* Record Type BGs */
  --feed-bg: #252D22;
  --diaper-bg: #302A1E;
  --sleep-bg: #1E2428;

  /* Misc */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Container ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Shared Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-dim);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 175, 126, 0.3);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn__arrow {
  transition: transform var(--transition);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(18, 20, 18, 0.8);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  border-bottom-color: var(--surface-variant);
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.nav__cta {
  padding: 8px 20px;
  border-radius: var(--radius-xs);
  background: var(--accent-dim);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--accent);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__text {
  text-align: left;
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: 30%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    opacity: 0.4;
    transform: translateX(-50%) scale(0.9);
  }

  100% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__accent {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__cta {
  font-size: 1.1rem;
  padding: 16px 40px;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════
   Phone Demo Animation
   3 stages, 10s loop:
   0–2.5s:  Widget on home screen
   2.5–6s:  Feed input + swipe
   6–8.5s:  Done confirmation
   8.5–10s: Fade reset
   ═══════════════════════════════════ */

.phone-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-demo__frame {
  width: 260px;
  height: 520px;
  background: #0a0c0a;
  border-radius: 36px;
  border: 3px solid #2a2e2a;
  padding: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(139, 175, 126, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(139, 175, 126, 0.06);
}

.phone-demo__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.phone-demo__statusbar-icons {
  display: flex;
  gap: 4px;
  color: var(--text-muted);
}

.phone-demo__screen {
  flex: 1;
  background: #1a1a2e;
  background: linear-gradient(170deg, #121415 0%, #0e100e 100%);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.phone-demo__homebar {
  width: 100px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 4px;
  margin: 8px auto 4px;
  opacity: 0.5;
}

.phone-demo__timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.phone-demo__timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: timer-pulse 2s ease-in-out infinite;
}

@keyframes timer-pulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ── Demo stages ── */
.demo-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* STAGE 1: Home screen + Widget */
.demo-stage--widget {
  animation: stage-widget 10s ease-in-out infinite;
}

@keyframes stage-widget {
  0% {
    opacity: 1;
  }

  22% {
    opacity: 1;
  }

  25% {
    opacity: 0;
  }

  73% {
    opacity: 0;
  }

  78% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

/* Home screen background elements */
.demo-homescreen {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
}

.demo-homescreen__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.demo-homescreen__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
}

.demo-homescreen__dots span:first-child {
  opacity: 0.7;
  background: var(--text-secondary);
}

/* 3×1 Widget — match real app */
.demo-widget-3x1 {
  display: flex;
  gap: 4px;
  padding: 8px 6px;
  background: rgba(28, 31, 28, 0.8);
  border-radius: 16px;
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.demo-widget-3x1__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 12px;
  min-width: 58px;
}

.demo-widget-3x1__btn--feed {
  background: #252D22;
}

.demo-widget-3x1__btn--diaper {
  background: #302A1E;
}

.demo-widget-3x1__btn--sleep {
  background: #1E2428;
}

.demo-widget-3x1__emoji {
  font-size: 1.2rem;
  line-height: 1;
}

.demo-widget-3x1__label {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-primary);
}

.demo-widget-3x1__time {
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--accent);
}

/* Tap cursor */
.demo-cursor {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.08) 60%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.demo-cursor--tap {
  animation: cursor-tap 10s ease-in-out infinite;
}

@keyframes cursor-tap {
  0% {
    opacity: 0;
    left: 22px;
    top: 52%;
    transform: scale(0.5);
  }

  12% {
    opacity: 0;
    left: 22px;
    top: 60%;
    transform: scale(0.5);
  }

  16% {
    opacity: 1;
    left: 22px;
    top: 52%;
    transform: scale(1);
  }

  20% {
    opacity: 1;
    left: 22px;
    top: 52%;
    transform: scale(0.7);
  }

  22% {
    opacity: 0;
    left: 22px;
    top: 52%;
    transform: scale(0.4);
  }

  100% {
    opacity: 0;
    left: 22px;
    top: 52%;
    transform: scale(0.4);
  }
}

/* STAGE 2: Feed input bottom sheet */
.demo-stage--input {
  animation: stage-input 10s ease-in-out infinite;
}

@keyframes stage-input {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 0;
  }

  28% {
    opacity: 1;
  }

  68% {
    opacity: 1;
  }

  73% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.demo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Bottom sheet — real app gradient */
.demo-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, #181C18, #121412);
  border-radius: 16px 16px 0 0;
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.demo-sheet__handle {
  width: 28px;
  height: 3px;
  background: #3A3E3A;
  border-radius: 3px;
  margin-bottom: 2px;
}

/* Sheet emoji and value (above the selector) */
.demo-sheet__emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.demo-sheet__value {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.demo-sheet__ml {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.demo-sheet__ml-unit {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.demo-sheet__hint {
  font-size: 0.45rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}

/* Canvas-like tick area (scrolling ticks, fixed center indicator) */
.demo-ticks {
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
}

/* Fixed center indicator line — accent, always visible */
.demo-ticks__center-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: var(--accent);
  z-index: 2;
  opacity: 0.7;
}

/* Arrow markers on center line */
.demo-ticks__center-line::before,
.demo-ticks__center-line::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.demo-ticks__center-line::before {
  left: 0;
  border-left: 5px solid var(--accent);
}

.demo-ticks__center-line::after {
  right: 0;
  border-right: 5px solid var(--accent);
}

/* Scrollable tick container */
.demo-ticks__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
}

/* Tick scrolling driven by JS (initDemoAnimation) */

/* Individual tick lines */
.demo-tick {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 12px;
}

.demo-tick::before {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

/* Major ticks — longer, with label */
.demo-tick--major::before {
  left: 20%;
  right: 20%;
  background: var(--accent);
  opacity: 0.35;
  height: 1.5px;
}

.demo-tick--major span {
  font-size: 0.5rem;
  color: var(--text-muted);
  opacity: 0.6;
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, #181C18, #151915);
  padding: 0 4px;
}

/* Mid ticks — medium length */
.demo-tick--mid::before {
  left: 30%;
  right: 30%;
  background: var(--accent);
  opacity: 0.2;
}

/* Minor ticks — short */
.demo-tick--minor::before {
  left: 38%;
  right: 38%;
  background: var(--text-muted);
  opacity: 0.12;
}

/* Time selector */
.demo-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 0;
}

.demo-time__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.demo-time__sub {
  font-size: 0.4rem;
  color: var(--text-muted);
}

/* Log button — matches AccentDim */
.demo-logbtn {
  width: 100%;
  padding: 8px;
  background: #6B8F60;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Done state — toggled by JS */
.demo-logbtn--done {
  background: #2D4A28;
  color: var(--accent-bright);
  transition: background 0.3s, color 0.3s;
}

/* Cancel text */
.demo-cancel {
  font-size: 0.55rem;
  color: var(--text-secondary);
  padding: 2px 0;
}

/* Swipe cursor: swipe up on amount → move to Log button → tap */
.demo-cursor--swipe {
  animation: cursor-swipe 10s ease-in-out infinite;
}

@keyframes cursor-swipe {

  /* hidden */
  0% {
    opacity: 0;
    left: 65%;
    top: 50%;
    transform: translate(-50%, 0) scale(0.5);
  }

  32% {
    opacity: 0;
    left: 65%;
    top: 50%;
    transform: translate(-50%, 0) scale(0.5);
  }

  /* appear on amount area — right of center (thumb) */
  35% {
    opacity: 0.8;
    left: 65%;
    top: 48%;
    transform: translate(-50%, 0) scale(1);
  }

  /* swipe UP */
  44% {
    opacity: 0.8;
    left: 65%;
    top: 30%;
    transform: translate(-50%, 0) scale(1);
  }

  /* fade out after swipe */
  46% {
    opacity: 0;
    left: 65%;
    top: 30%;
    transform: translate(-50%, 0) scale(0.5);
  }

  /* reappear on Log Feed button — slightly right */
  50% {
    opacity: 0;
    left: 60%;
    top: 82%;
    transform: translate(-50%, 0) scale(0.5);
  }

  52% {
    opacity: 0.8;
    left: 60%;
    top: 82%;
    transform: translate(-50%, 0) scale(1);
  }

  /* tap press */
  54% {
    opacity: 0.8;
    left: 60%;
    top: 82%;
    transform: translate(-50%, 0) scale(0.7);
  }

  /* fade out */
  56% {
    opacity: 0;
    left: 60%;
    top: 82%;
    transform: translate(-50%, 0) scale(0.4);
  }

  100% {
    opacity: 0;
    left: 60%;
    top: 82%;
    transform: translate(-50%, 0) scale(0.4);
  }
}

/* Stage-done removed — merged into stage-input, driven by JS */

/* ── Section shared ── */
.section {
  padding: 100px 0;
}

.section__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.accent {
  color: var(--accent);
}

/* ── Problem Section ── */
.section--problem {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}

.problem__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.problem__card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--surface-variant);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.problem__card.visible {
  opacity: 1;
  transform: translateY(0);
}

.problem__card:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 0 40px var(--accent-glow);
}

.problem__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 12px;
  background: var(--accent-glow-strong);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem__icon svg {
  width: 28px;
  height: 28px;
}

.problem__text strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
}

.problem__text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Solution / Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  text-align: center;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.feature.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-muted);
  box-shadow: var(--shadow);
}

.feature__icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--accent-glow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature__icon {
  width: 32px;
  height: 32px;
}

.feature__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── How It Works / Steps ── */
.steps {
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-30px);
}

.step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent-muted));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__content {
  flex: 1;
  padding-top: 4px;
}

.step__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step__connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-muted), transparent);
  margin-left: 23px;
}

/* ── What You Track ── */
.tracks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.track {
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--track-bg, var(--surface));
  border: 1px solid var(--surface-variant);
  text-align: center;
  transition: all var(--transition);
  opacity: 0;
  transform: scale(0.95);
}

.track.visible {
  opacity: 1;
  transform: scale(1);
}

.track:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.track__icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: rgba(139, 175, 126, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.track__icon {
  width: 36px;
  height: 36px;
}

.track__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.track__desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── CTA / Early Access ── */
.section--cta {
  padding: 80px 0 120px;
}

.cta-box {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  text-align: center;
  overflow: hidden;
}

.cta-box__glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.cta-box__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  position: relative;
  line-height: 1.6;
}

.cta-form {
  position: relative;
}

.cta-form__row {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.cta-form__input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-variant);
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}

.cta-form__input::placeholder {
  color: var(--text-muted);
}

.cta-form__input:focus {
  border-color: var(--accent-dim);
}

.cta-form__btn {
  flex-shrink: 0;
}

.cta-form__btn-check {
  width: 18px;
  height: 18px;
  color: #fff;
  vertical-align: middle;
}

.cta-form__hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cta-form__success {
  text-align: center;
  padding: 20px 0 0;
}

.cta-form__success-icon {
  margin-bottom: 12px;
  color: var(--accent);
}

.cta-form__success-icon svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

.cta-form__success-text {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
}

/* ── Footer ── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--surface-variant);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── Animations ── */
[data-animate] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate]:nth-child(2) {
  transition-delay: 0.1s;
}

[data-animate]:nth-child(3) {
  transition-delay: 0.2s;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tracks__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature {
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
  }

  .feature__icon-wrap {
    margin: 0;
    flex-shrink: 0;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    margin-bottom: 36px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__text {
    text-align: center;
    order: 1;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .phone-demo {
    order: 2;
  }

  .phone-demo__frame {
    width: 220px;
    height: 440px;
  }

  .cta-form__row {
    flex-direction: column;
  }

  .cta-box {
    padding: 36px 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .problem__card {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .track {
    display: flex;
    gap: 20px;
    text-align: left;
    align-items: center;
    padding: 24px;
  }

  .track__icon-wrap {
    margin: 0;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
  }

  .track__icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__cta {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
}