:root {
  --violet: #7b61ff;
  --violet-dark: #6b52e8;
  --violet-soft: #f0edff;
  --violet-glow: rgba(123, 97, 255, 0.2);
  --green: #22a06b;
  --green-soft: #e8f5ef;
  --ink: #1a1625;
  --muted: #5c5670;
  --muted-light: #8b8499;
  --card: #ffffff;
  --line: #e8e4f0;
  --gray-bg: #f7f6f9;
  --lavender: #f5f3fa;
  --blue: #4a8fd9;
  --blue-dark: #2f6eb8;
  --blue-soft: #eef6fc;
  --blue-border: #b8d4ef;
  --orange: #e8944a;
  --orange-dark: #c9762f;
  --orange-soft: #fff5eb;
  --orange-border: #f0d4b8;
  --violet-border: #cfc4f5;
  --green-panel: #eef9f3;
  --header-h: 72px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow: 0 2px 12px rgb(26 22 37 / 6%);
  --shadow-sm: 0 1px 4px rgb(26 22 37 / 5%);
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.text-violet {
  color: var(--violet);
}

.brand-font {
  font-family: "Bagel Fat One", cursive;
  font-weight: 400;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}

.logo-link {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo-word {
  font-size: 1.35rem;
  line-height: 1;
}

.site-nav {
  display: none;
  justify-self: center;
  gap: 32px;
}

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

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

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-panel {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 16px 24px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav-panel.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-panel a {
  padding: 12px 4px;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

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

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .logo-link {
    min-width: 0;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle,
  .nav-panel {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 2px 10px var(--violet-glow);
}

.btn-primary:hover {
  background: var(--violet-dark);
}

.btn-outline {
  background: var(--card);
  color: var(--violet);
  border-color: var(--violet);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary.highlight-pulse {
  animation: pulse-ring 1.2s ease;
}

@keyframes pulse-ring {
  50% {
    box-shadow: 0 0 0 4px var(--violet-glow), 0 2px 10px var(--violet-glow);
  }
}

/* Placeholders */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--violet-soft) 0%, var(--lavender) 100%);
  border: 2px dashed rgb(123 97 255 / 22%);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.placeholder-img span {
  padding: 16px;
  text-align: center;
}

.placeholder-img--hero-phones {
  width: 100%;
  max-width: 440px;
  min-height: 400px;
  margin-inline: auto;
}

.placeholder-img--phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.feature-screenshot {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  margin-inline: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.placeholder-img--lifestyle {
  min-height: 160px;
  border-radius: var(--radius);
  border-style: solid;
  border-color: rgb(123 97 255 / 12%);
}

.placeholder-badge {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Icons */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
}

.icon-circle svg {
  width: 24px;
  height: 24px;
}

.icon-circle--sm {
  width: 44px;
  height: 44px;
}

.icon-circle--sm svg {
  width: 22px;
  height: 22px;
}

.icon-circle--green {
  background: var(--green-soft);
  color: var(--green);
}

.icon-circle--violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.icon-circle--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.icon-circle--orange {
  background: var(--orange-soft);
  color: var(--orange);
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  background: var(--card);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 56px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

@media (max-width: 767px) {
  .hero-visual {
    display: none;
  }
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, rgb(123 97 255 / 18%) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-inline: auto;
}

.hero-pill {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--violet);
  background: var(--violet-soft);
  border-radius: var(--radius-pill);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.125rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-lede {
  margin: 0 0 28px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 24px;
}

.hero-cta .store-badges {
  gap: 10px;
}

.hero-how-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
}

.hero-how-link:hover {
  color: var(--violet-dark);
}

.hero-how-link svg {
  width: 18px;
  height: 18px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--gray {
  background: var(--gray-bg);
}

.section--lavender {
  background: var(--lavender);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-title--center {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.section-label--center {
  text-align: center;
}

.section-lede {
  margin: 0 auto 40px;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
}

.section-lede--center {
  text-align: center;
}

.section-sticky-header {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  padding: 14px 0 18px;
  margin: 0 0 28px;
  text-align: center;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.section--lavender .section-sticky-header {
  background: rgb(245 243 250 / 94%);
}

.section-sticky-header .section-title {
  margin-bottom: 0;
}

.section-sticky-header .section-label {
  margin-bottom: 6px;
}

#solutions .section-sticky-header .section-title {
  max-width: 28ch;
  margin-inline: auto;
}

.solutions-subtitle {
  margin: 0 0 32px;
  text-align: center;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

#for-parents .section-sticky-header .section-title {
  max-width: 28ch;
  margin-inline: auto;
}

#safety .section-sticky-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
}

#safety .section-sticky-header .section-title {
  max-width: 22ch;
  margin-inline: auto;
}

.safety-lede {
  max-width: 62ch;
  margin-top: 0;
  margin-bottom: 32px;
}

@media (prefers-reduced-motion: reduce) {
  .section-sticky-header {
    position: static;
    backdrop-filter: none;
  }
}

/* Problems */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .problem-grid {
    gap: 16px;
  }

  .problem-card {
    padding: 28px 20px;
  }

  .problem-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .problem-card p {
    font-size: 0.875rem;
  }
}

@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.problem-card {
  padding: 20px 12px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.problem-card .icon-circle {
  margin-bottom: 16px;
}

.problem-card h3 {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.problem-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Feature cards (three ways) */
#solutions .section-sticky-header {
  margin-bottom: 40px;
}

.feature-rows {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .feature-rows {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 28px 20px 24px;
}

.feature-card--1 {
  background: var(--violet-soft);
  border-color: var(--violet-border);
}

.feature-card--2 {
  background: var(--blue-soft);
  border-color: var(--blue-border);
}

.feature-card--3 {
  background: var(--orange-soft);
  border-color: var(--orange-border);
}

.feature-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: none;
}

.feature-visual {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.feature-visual .feature-media {
  flex: 1;
  min-width: 0;
  display: block;
  line-height: 0;
}

.feature-visual .feature-screenshot {
  display: block;
  margin: 0;
  max-width: min(200px, 100%);
  vertical-align: top;
}

.feature-card--1 .feature-num {
  background: var(--violet);
}

.feature-card--2 .feature-num {
  background: var(--blue);
}

.feature-card--3 .feature-num {
  background: var(--orange);
}

.feature-card-inner {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (max-width: 767px) {
  .feature-card-inner {
    gap: 16px;
  }

  .feature-visual {
    align-items: flex-start;
  }

  .feature-num {
    margin-top: 0;
    align-self: flex-start;
  }

  .feature-visual .feature-screenshot {
    max-width: min(200px, calc(100% - 42px));
  }
}

@media (min-width: 768px) {
  .feature-visual {
    display: block;
  }

  .feature-num {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
  }

  .feature-copy,
  .feature-visual {
    order: unset;
  }

  .feature-card-inner {
    padding-top: 44px;
  }

  .feature-visual .feature-media {
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .feature-card-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-visual .feature-screenshot {
    max-width: 150px;
    margin-inline: auto;
  }

  .feature-copy h3 {
    font-size: 1rem;
  }
}

@media (min-width: 1101px) {
  .feature-card-inner {
    grid-template-columns: minmax(90px, 38%) 1fr;
    gap: 16px;
  }

  .feature-visual .feature-screenshot {
    max-width: 120px;
  }

  .feature-copy h3 {
    font-size: 1rem;
  }
}

.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.feature-copy h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-copy p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.feature-link {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.feature-card--1 .feature-link {
  color: var(--violet);
}

.feature-card--2 .feature-link {
  color: var(--blue-dark);
}

.feature-card--3 .feature-link {
  color: var(--orange-dark);
}

/* Benefits panels */
.benefits-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit-panel {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: none;
}

.benefit-panel--kids {
  background: var(--green-panel);
}

.benefit-panel--parents {
  background: var(--violet-soft);
}

.benefit-panel-body {
  padding: 28px 24px;
}

.benefit-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.benefit-panel-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.benefit-panel-header .icon-circle {
  margin: 0;
  width: 44px;
  height: 44px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--violet-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b61ff' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.check-list--green li::before {
  background-color: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a06b' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Safety */
.safety-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .safety-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.safety-card {
  padding: 24px 18px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.safety-card .icon-circle {
  margin: 0 auto 14px;
}

.safety-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.safety-card span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

/* CTA */
.cta-band {
  padding: 72px 0;
}

.cta-box {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 40px 32px;
  background: var(--lavender);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .cta-box {
    grid-template-columns: 1fr auto;
    gap: 48px;
    padding: 48px 56px;
  }
}

.cta-copy .section-title {
  margin: 0 0 12px;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.cta-logo {
  display: inline-block;
  margin-bottom: 16px;
  line-height: 0;
}

.cta-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.cta-lede {
  margin: 0;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 768px) {
  .cta-actions {
    align-items: flex-end;
    text-align: right;
  }
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.store-badge-link:hover {
  opacity: 0.88;
}

.store-badge-link:active {
  transform: scale(0.98);
}

.store-badge-link img {
  display: block;
  height: 52px;
  width: auto;
}

.send-link {
  margin: 0;
  font-size: 0.8125rem;
}

.send-link a {
  color: var(--violet);
  text-decoration: none;
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 20px 0 max(24px, env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }

  .footer-nav {
    justify-self: center;
  }

  .footer-copy {
    justify-self: end;
    text-align: right;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: center;
}

@media (min-width: 768px) {
  .footer-brand {
    justify-self: start;
  }
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand-name {
  font-size: 1.125rem;
  line-height: 1;
}

.footer-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-light);
}
