:root {
  color-scheme: light dark;
  --fg: #101828;
  --bg: #f4f7fd;
  --bg-raised: #ffffff;
  --muted: #5b6472;
  --accent: #1d60f6;
  --border: #e2e8f4;

  --gradient-cta: linear-gradient(135deg, #42a1f3, #1d60f6);
  --gradient-trust: linear-gradient(135deg, #4a90a4, #7ec8c3);
  --gradient-alone: linear-gradient(135deg, #e8834a, #e85d5d);
  --gradient-parents: linear-gradient(135deg, #a87cc7, #7b7fc4);
  --gradient-safe: linear-gradient(135deg, #5cb380, #8fd9b0);
  --gradient-travel: linear-gradient(135deg, #4fb0a5, #e0a458);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8edf7;
    --bg: #0f1420;
    --bg-raised: #1a2130;
    --muted: #94a3b8;
    --border: #2d3748;
    --accent: #5b8def;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

body.marketing main {
  max-width: none;
  padding: 0 0 0;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25em;
}

h2 {
  font-size: 1.15rem;
  margin-top: 2em;
}

p.lede {
  color: var(--muted);
  margin-top: 0;
}

label {
  display: block;
  font-weight: 600;
  margin: 1.25em 0 0.35em;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.6em 0.75em;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: transparent;
  color: var(--fg);
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3em;
}

.disclosure {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 1.5em;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 1em;
}

.checkbox-row input {
  margin-top: 0.3em;
}

button {
  margin-top: 1.5em;
  padding: 0.7em 1.4em;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

#result {
  margin-top: 1.25em;
  font-weight: 600;
}

#result.error {
  color: #ff3b30;
}

#result.success {
  color: #34c759;
}

nav.footer-links {
  margin-top: 3em;
  font-size: 0.85rem;
  color: var(--muted);
}

nav.footer-links a {
  color: var(--muted);
}

a {
  color: var(--accent);
}

/* ---------- Marketing site ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--fg);
}

.site-nav .cta {
  color: #fff;
  background: var(--fg);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .site-nav .cta {
    background: #fff;
    color: #101828;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 20px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a:not(.cta) {
    display: none;
  }

  .site-nav .cta {
    padding: 0.5em 0.9em;
    font-size: 0.9rem;
  }
}

.wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 64px 24px 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(29, 96, 246, 0.12);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin: 0 auto 0.5em;
}

.hero .sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2em;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.trust-note {
  margin-top: 1.5em;
  font-size: 0.85rem;
  color: var(--muted);
}

section.section {
  padding: 72px 24px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Same scroll-snap carousel at every width — desktop used to disable
   scrolling and show a static centered row, but that stopped fitting once
   a 5th screenshot was added (also just more consistent behavior between
   mobile and desktop, which was the whole point of asking for this). */
.screenshot-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 24px 16px;
  scrollbar-width: none;
}

.screenshot-strip::-webkit-scrollbar {
  display: none;
}

.screenshot-strip img {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 220px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .screenshot-strip img {
    width: 240px;
  }
}

/* Dot indicators — one per screenshot, driven by an IntersectionObserver
   watching which image is actually centered in the scroll-snap carousel
   (see the script in index.html). Clicking a dot scrolls to that image.
   Replaces an earlier attempt at a styled desktop scrollbar, which wasn't
   an effective enough hint on its own. */
.screenshot-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.screenshot-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
}

.screenshot-dots button.active {
  background: var(--accent);
  width: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.icon-badge.trust { background: var(--gradient-trust); }
.icon-badge.alone { background: var(--gradient-alone); }
.icon-badge.parents { background: var(--gradient-parents); }
.icon-badge.safe { background: var(--gradient-safe); }
.icon-badge.travel { background: var(--gradient-travel); }

.feature-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4em;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.timeline {
  max-width: 620px;
  margin: 0 auto;
}

.timeline-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.timeline-step .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 20px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.timeline-line {
  width: 0;
  flex: 1;
  border-left: 2px dotted var(--border);
  margin: 6px 0;
  margin-left: 21px;
}

.timeline-body {
  padding-bottom: 28px;
}

.timeline-body h4 {
  margin: 0.15em 0 0.2em;
  font-size: 1.05rem;
}

.timeline-body p {
  margin: 0;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  position: relative;
  background: var(--bg-raised);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.price-card.featured {
  border-color: var(--accent);
}

.price-card .badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 999px;
}

.price-card .plan {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.3em 0 0;
}

.price-card .amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card .compare {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.3em;
}

.price-card .compare s {
  margin-left: 0.4em;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 28px;
}

.cta-band {
  text-align: center;
  background: var(--gradient-cta);
  border-radius: 28px;
  max-width: 1032px;
  margin: 0 auto;
  padding: 56px 24px;
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.4em;
  font-weight: 800;
}

.cta-band p {
  margin: 0 0 1.6em;
  opacity: 0.92;
}

.cta-band .btn-primary {
  background: #fff;
  color: #101828;
}

.legal-page main {
  max-width: 680px;
}

.legal-page h1 {
  font-size: 1.9rem;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.3em;
}

.legal-page h2 {
  font-size: 1.15rem;
}

site-footer,
.site-footer {
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

