:root {
  color-scheme: light;
  --ink: #111827;
  --ink-2: #2f3a4d;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --paper: #ffffff;
  --soft: #f6f8fb;
  --soft-2: #eef7ff;
  --blue: #4f8cff;
  --cyan: #56d5d8;
  --orange: #ffb866;
  --violet: #7c4dff;
  --navy: #101a2d;
  --radius: 28px;
  --shadow: 0 24px 80px rgba(16, 26, 45, 0.12);
  --shadow-small: 0 16px 36px rgba(16, 26, 45, 0.1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(86, 213, 216, 0.22), transparent 36rem),
    radial-gradient(circle at 95% 18%, rgba(255, 184, 102, 0.24), transparent 34rem),
    linear-gradient(180deg, #fbfdff 0%, #f8fafc 42%, #ffffff 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button, input, textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px) saturate(150%);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(79, 140, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.nav-links a {
  opacity: 0.86;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: rgba(16, 26, 45, 0.06);
  color: var(--navy);
  width: 44px;
  height: 44px;
  border-radius: 16px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: -0.02em;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 34px rgba(16, 26, 45, 0.24);
}

.button.primary:hover {
  box-shadow: 0 22px 44px rgba(16, 26, 45, 0.3);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
  color: var(--ink);
}

.button.soft {
  background: rgba(79, 140, 255, 0.11);
  color: #224fc6;
}

.hero {
  padding: 72px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(79, 140, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #3158d8;
  font-weight: 760;
  font-size: 0.88rem;
  box-shadow: 0 10px 32px rgba(79, 140, 255, 0.08);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 5px rgba(86, 213, 216, 0.15);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 22px 0 20px;
  font-size: clamp(3.3rem, 8vw, 6.8rem);
  line-height: 0.91;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 640px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-proof li::before {
  content: "✓";
  color: #16856d;
}

.hero-visual {
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 8% 4% 16%;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 26, 45, 0.14);
  filter: blur(12px);
}

.section {
  padding: 84px 0;
}

.section.compact {
  padding: 60px 0;
}

.section.dark {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(86, 213, 216, 0.24), transparent 34rem),
    linear-gradient(135deg, #0c1425, #16243d 60%, #111827);
}

.section.dark .section-kicker,
.section.dark .section-copy,
.section.dark p,
.section.dark .muted {
  color: rgba(255, 255, 255, 0.74);
}

.section.dark .check-list li {
  color: rgba(255, 255, 255, 0.95);
}

.section.dark .check-list li::before {
  background: rgba(86, 213, 216, 0.24);
  color: #56d5d8;
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  margin-bottom: 12px;
  color: #3158d8;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-copy {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.problem-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 38px;
  border-radius: calc(var(--radius) + 12px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-small);
  border: 1px solid var(--line);
}

.problem-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.problem-list li {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(246, 248, 251, 0.85);
  color: var(--ink-2);
  font-weight: 650;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.step-card,
.route-card,
.faq-item,
.page-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 10px 36px rgba(16, 26, 45, 0.06);
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(86, 213, 216, 0.22), rgba(79, 140, 255, 0.18));
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-card p,
.step-card p,
.route-card p,
.page-card p {
  color: var(--muted);
  line-height: 1.58;
  margin-bottom: 0;
}

.steps {
  counter-reset: steps;
}

.step-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  counter-increment: steps;
  content: counter(steps);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
  margin-bottom: 22px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px;
  align-items: center;
}

.visual-card {
  border-radius: calc(var(--radius) + 12px);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  border: 1px solid var(--line);
  background: #fff;
}

.check-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(86, 213, 216, 0.18);
  color: #147569;
  font-weight: 900;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.route-card {
  padding: 22px;
  overflow: hidden;
}

.route-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.route-card .meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--soft);
}

.alert-demo {
  padding: 28px;
  border-radius: calc(var(--radius) + 10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

.alert-phone {
  padding: 18px;
  border-radius: 34px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(16, 26, 45, 0.08);
}

.alert-phone h3 {
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 4px;
}

/* Override light text from .section.dark for muted text inside the white phone mockup */
.alert-phone .muted,
.alert-phone p.muted {
  color: #4b5563 !important;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border-radius: 22px;
  background: #f5f7fb;
  margin-top: 10px;
}

.alert-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.alert-row span {
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 500;
}

.toggle-pill {
  flex: 0 0 auto;
  width: 52px;
  height: 32px;
  padding: 4px;
  border-radius: 999px;
  background: var(--blue);
}

.toggle-pill::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  margin-left: auto;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.trust-pill {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-weight: 760;
  color: var(--ink-2);
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.65;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: calc(var(--radius) + 12px);
  background: linear-gradient(135deg, #111827, #172846 60%, #1b3060);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-panel p {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.qr-box {
  width: 118px;
  height: 118px;
  border-radius: 22px;
  background-image: url('app-icon-light.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-small);
  opacity: 0.95;
}

body.theme-adult .qr-box {
  background-image: url('app-icon-dark.jpg');
}

.site-footer {
  padding: 52px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--ink);
}

.page-hero {
  padding: 72px 0 38px;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 auto 20px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-card {
  padding: 26px;
}

.content-narrow {
  max-width: 820px;
  margin: 0 auto;
}

.legal-copy {
  padding: 36px;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}

.legal-copy h2 {
  margin-top: 34px;
  font-size: 1.8rem;
  line-height: 1.08;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: var(--ink-2);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero-grid,
  .problem-card,
  .split,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

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

  .card-grid,
  .card-grid.three,
  .card-grid.two,
  .route-grid,
  .trust-strip,
  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .navbar {
    min-height: 68px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 68px 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .nav-links .button {
    margin-top: 8px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }

  .hero-grid {
    gap: 24px;
  }

  .section {
    padding: 58px 0;
  }

  .problem-card,
  .cta-panel,
  .legal-copy {
    padding: 24px;
    border-radius: 28px;
  }

  .card-grid,
  .card-grid.three,
  .card-grid.two,
  .route-grid,
  .trust-strip,
  .page-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions,
  .footer-links {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .brand span {
    max-width: 188px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Adult Theme */
body.theme-adult {
  --adult-bg: #071014;
  --adult-bg-soft: #0d1b20;
  --adult-card: rgba(255,255,255,0.06);
  --adult-card-border: rgba(255,255,255,0.12);
  --adult-text: #f4f1ea;
  --adult-muted: #aeb9b7;
  --adult-green: #6fbf9f;
  --adult-amber: #f0b86b;
  --adult-danger-soft: rgba(240,184,107,0.14);

  color-scheme: dark;
  background: var(--adult-bg);
  color: var(--adult-text);

  /* Override standard variables to use adult colors where appropriate */
  --ink: var(--adult-text);
  --ink-2: var(--adult-text);
  --muted: var(--adult-muted);
  --line: var(--adult-card-border);
  --paper: var(--adult-bg-soft);
  --soft: rgba(255, 255, 255, 0.04);
  --soft-2: rgba(255, 255, 255, 0.08);
  --blue: var(--adult-green);
  --cyan: var(--adult-green);
  --orange: var(--adult-amber);
  --navy: var(--adult-green);
}

body.theme-adult .site-header {
  background: rgba(7, 16, 20, 0.78);
  border-bottom: 1px solid var(--adult-card-border);
}

body.theme-adult .nav-links {
  color: var(--adult-text);
}

body.theme-adult .nav-links a.button.primary {
  background: var(--adult-green);
  color: #000;
}

body.theme-adult .button.primary {
  background: var(--adult-green);
  color: #000;
  box-shadow: 0 18px 34px rgba(111, 191, 159, 0.14);
}

body.theme-adult .button.secondary {
  background: var(--adult-card);
  border-color: var(--adult-card-border);
  color: var(--adult-text);
}

body.theme-adult .eyebrow {
  background: var(--adult-card);
  border: 1px solid var(--adult-card-border);
  color: var(--adult-amber);
  box-shadow: 0 10px 32px rgba(240, 184, 107, 0.08);
}

body.theme-adult .eyebrow::before {
  background: linear-gradient(135deg, var(--adult-amber), var(--adult-green));
  box-shadow: 0 0 0 5px rgba(240, 184, 107, 0.15);
}

body.theme-adult .hero-proof li {
  background: var(--adult-card);
  border: 1px solid var(--adult-card-border);
  color: var(--adult-muted);
}

body.theme-adult .section.dark {
  background: var(--adult-bg-soft);
  color: var(--adult-text);
}

body.theme-adult .section-kicker {
  color: var(--adult-amber);
}

body.theme-adult .problem-card,
body.theme-adult .visual-card,
body.theme-adult .feature-card,
body.theme-adult .step-card,
body.theme-adult .route-card,
body.theme-adult .faq-item,
body.theme-adult .page-card,
body.theme-adult .legal-copy {
  background: var(--adult-card);
  border: 1px solid var(--adult-card-border);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
}

body.theme-adult .problem-list li {
  background: rgba(255, 255, 255, 0.05);
  color: var(--adult-text);
}

body.theme-adult .trust-pill {
  background: var(--adult-card);
  border: 1px solid var(--adult-card-border);
  color: var(--adult-text);
}

body.theme-adult .check-list li::before {
  background: rgba(111, 191, 159, 0.16);
  color: var(--adult-green);
}

body.theme-adult .faq-question {
  color: var(--adult-text);
}

body.theme-adult .cta-panel {
  background: linear-gradient(135deg, #071014, #0d1b20 60%, #132a32);
  color: var(--adult-text);
}

body.theme-adult .mobile-toggle {
  color: var(--adult-text);
}

body.theme-adult .alert-demo {
  background: var(--adult-bg);
  border-color: var(--adult-card-border);
}

body.theme-adult .alert-phone {
  background: var(--adult-bg-soft);
  color: var(--adult-text);
}

body.theme-adult .alert-row {
  background: var(--adult-card);
}

@media (max-width: 760px) {
  body.theme-adult .nav-links {
    background: rgba(7, 16, 20, 0.96);
    border: 1px solid var(--adult-card-border);
  }
}

/* Age Gate Modal */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate-modal {
  max-width: 440px;
  background: var(--adult-bg-soft);
  border: 1px solid var(--adult-card-border);
  padding: 38px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--adult-text);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.age-gate-modal h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--adult-amber);
}
.age-gate-modal p {
  color: var(--adult-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.age-gate-actions .button {
  width: 100%;
}

.adult-notice-banner {
  background: var(--adult-danger-soft);
  color: var(--adult-amber);
  text-align: center;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--adult-card-border);
}
