/* KidsScroll — Parent theme tokens */
:root {
  --color-teal-500: #12A28A;
  --color-teal-600: #0E8471;
  --color-teal-50: #E6F7F4;
  --color-orange-50: #FFF3E8;
  --color-neutral-900: #121D22;
  --color-neutral-600: #52646B;
  --color-neutral-200: #DDE4E6;
  --color-neutral-50: #F7F9F9;
  --color-neutral-0: #FFFFFF;
  --color-border-card: #EDF1F2;

  --font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  --radius-md: 16px;
  --radius-hero-mock: 28px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: var(--color-neutral-600);
  background-color: var(--color-neutral-0);
}

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

a {
  color: var(--color-teal-500);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--color-neutral-900);
  margin-top: 0;
}

h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 800;
}

h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background-color: var(--color-neutral-50);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-teal-600);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header p {
  margin-bottom: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-neutral-0);
  border-bottom: 1px solid var(--color-neutral-200);
  height: var(--header-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--color-neutral-900);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-neutral-200);
  border-radius: 12px;
  background: var(--color-neutral-0);
  cursor: pointer;
  color: var(--color-neutral-900);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-neutral-900);
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-neutral-900);
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

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

.site-nav a {
  color: var(--color-neutral-600);
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-teal-600);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.92;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-teal-500);
  color: var(--color-neutral-900);
}

.btn--secondary {
  background-color: var(--color-neutral-0);
  color: var(--color-neutral-900);
  border: 1px solid var(--color-neutral-200);
}

.btn--large {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, var(--color-teal-50) 0%, var(--color-neutral-0) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content p {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.phone-mock {
  width: 280px;
  background: #f7f9f9;
  border: 8px solid #121d22;
  border-radius: 36px;
  box-shadow: var(--shadow-card), 0 24px 48px rgba(18, 29, 34, 0.12);
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  color: var(--color-neutral-900);
}

.phone-mock__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 4px;
  background: #f7f9f9;
  font-weight: 700;
  font-size: 12px;
}

.phone-mock__indicators {
  width: 54px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #121d22 0 28%, transparent 28% 36%, #121d22 36% 64%, transparent 64% 72%, #121d22 72%);
  opacity: 0.85;
}

.phone-mock__body {
  padding: 6px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-mock__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.phone-mock__hello {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--color-neutral-900);
}

.phone-mock__sub {
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--color-neutral-600);
}

.phone-mock__bell {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23121d22' stroke-width='1.6'%3E%3Cpath d='M12 7a4 4 0 10-8 0c0 4-2 5-2 5h12s-2-1-2-5'/%3E%3Cpath d='M9.3 14a1.2 1.2 0 01-2.6 0'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow: 0 1px 2px rgba(18, 28, 33, 0.08);
  position: relative;
}

.phone-mock__bell::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #fff;
}

.phone-mock__kids {
  display: flex;
  gap: 10px;
}

.phone-mock__kid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 10px;
  color: var(--color-neutral-600);
}

.phone-mock__kid img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.phone-mock__kid--active {
  color: var(--color-teal-600);
}

.phone-mock__kid--active img {
  box-shadow: 0 0 0 2.5px var(--color-teal-500);
}

.phone-mock__kid--add .phone-mock__plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px dashed var(--color-neutral-200);
  background: #edf1f2;
  display: grid;
  place-items: center;
  color: #98a7ad;
  font-size: 18px;
  font-weight: 400;
}

.phone-mock__card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(18, 28, 33, 0.06);
}

.phone-mock__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 600;
  font-size: 11px;
}

.phone-mock__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-teal-50);
  color: var(--color-teal-600);
  border-radius: 999px;
  padding: 2px 8px 2px 3px;
  font-size: 10px;
  font-weight: 800;
}

.phone-mock__pill img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.phone-mock__metric {
  margin: 8px 0 0;
  font-size: 12px;
  color: #98a7ad;
}

.phone-mock__metric strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--color-neutral-900);
}

.phone-mock__bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: #edf1f2;
  overflow: hidden;
}

.phone-mock__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--color-teal-500);
}

.phone-mock__stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 10px;
  color: #98a7ad;
}

.phone-mock__stats b {
  color: var(--color-neutral-900);
  font-weight: 700;
}

.phone-mock__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.phone-mock__action {
  background: #fff;
  border-radius: 12px;
  padding: 8px 2px;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--color-neutral-600);
  box-shadow: 0 1px 3px rgba(18, 28, 33, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.phone-mock__action-ico {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.phone-mock__action-ico--teal { background: #e6f7f4; }
.phone-mock__action-ico--orange { background: #fff3e8; }
.phone-mock__action-ico--blue { background: #dbeafe; }
.phone-mock__action-ico--green { background: #dcfce7; }

.phone-mock__ai {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: #fff3e8;
  border: 1.2px solid #f97e14;
}

.phone-mock__ai-ico {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f97e14;
  flex-shrink: 0;
}

.phone-mock__ai strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.phone-mock__ai small {
  display: block;
  font-size: 9px;
  color: var(--color-neutral-600);
  margin-top: 1px;
}

.phone-mock__activity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}

.phone-mock__activity-head span {
  color: var(--color-teal-600);
  font-weight: 700;
  font-size: 10px;
}

.phone-mock__row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.phone-mock__row strong {
  display: block;
  font-size: 11px;
}

.phone-mock__row small {
  font-size: 9px;
  color: #98a7ad;
}

.phone-mock__thumb {
  width: 48px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.phone-mock__thumb--a {
  background: linear-gradient(146deg, #38bdf8 0%, #8b5cf6 71%);
}

.phone-mock__nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px 4px 10px;
  background: #fff;
  border-top: 1px solid #edf1f2;
  font-size: 8px;
  font-weight: 600;
  color: #98a7ad;
  text-align: center;
}

.phone-mock__nav .is-active {
  color: var(--color-teal-600);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-neutral-0);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-teal-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-teal-600);
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 24px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
  align-items: start;
  counter-reset: step;
}

.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__phone {
  margin: 0 0 20px;
  width: min(100%, 220px);
  aspect-ratio: 390 / 844;
  background: #121d22;
  border: 7px solid #121d22;
  border-radius: 28px;
  box-shadow: var(--shadow-card), 0 20px 40px rgba(18, 29, 34, 0.14);
  overflow: hidden;
  position: relative;
}

.step__phone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 1;
  pointer-events: none;
}

.step__phone--kid::before {
  background: rgba(255, 255, 255, 0.35);
}

.step__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-teal-50);
  color: var(--color-teal-600);
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin-bottom: 0;
  font-size: 15px;
  max-width: 280px;
}

/* CTA final */
.cta-final {
  background: var(--color-orange-50);
  text-align: center;
}

.cta-final .container {
  max-width: 720px;
}

.cta-final h2 {
  margin-bottom: 12px;
}

.cta-final p {
  margin-bottom: 28px;
  font-size: 18px;
}

/* Footer */
.site-footer {
  background: var(--color-neutral-900);
  color: var(--color-neutral-200);
  padding: 40px 0;
}

.site-footer a {
  color: var(--color-teal-50);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer__links a {
  font-weight: 600;
  font-size: 14px;
}

.site-footer__copy {
  font-size: 14px;
  margin: 0;
}

/* Legal pages */
.legal-page {
  padding: 40px 0 64px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--color-neutral-0);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.toc__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-neutral-900);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toc__toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  margin-bottom: 0;
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-neutral-900);
  cursor: pointer;
  text-align: left;
}

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

.toc__list li {
  margin-bottom: 8px;
}

.toc__list a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-neutral-600);
  line-height: 20px;
}

.toc__list a:hover,
.toc__list a.is-active {
  color: var(--color-teal-600);
  text-decoration: none;
}

.legal-content {
  background: var(--color-neutral-0);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
}

.legal-content__meta {
  font-size: 14px;
  color: var(--color-neutral-600);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-neutral-200);
}

.legal-content section {
  margin-bottom: 32px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 12px;
}

.legal-content p:last-child,
.legal-content ul:last-child,
.legal-content ol:last-child {
  margin-bottom: 0;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: var(--color-neutral-900);
}

.notice {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  border: 1px solid var(--color-neutral-200);
}

.notice p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
}

.notice--warning {
  background: #FFF5F5;
  border-color: #FECACA;
}

.guide-steps {
  padding-left: 1.25rem;
  margin-bottom: 24px;
}

.guide-steps li {
  margin-bottom: 16px;
  padding-left: 4px;
}

/* Responsive */
@media (max-width: 1279px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 280px;
    margin-inline: auto;
  }

  .step__phone {
    width: min(100%, 240px);
  }

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

  .toc {
    position: static;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .toc__toggle::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.2s ease;
  }

  .toc.is-open .toc__toggle::after {
    transform: rotate(180deg);
  }

  .toc__title {
    display: none;
  }

  .toc__list {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: var(--color-neutral-0);
    border: 1px solid var(--color-border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }

  .toc.is-open .toc__list {
    display: block;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 48px 0;
  }

  h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-neutral-0);
    border-bottom: 1px solid var(--color-neutral-200);
    padding: 12px 20px 20px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .site-header__inner {
    position: relative;
  }

  .site-header .btn--primary {
    display: none;
  }

  .site-nav .btn--primary {
    display: inline-flex;
    margin-top: 8px;
  }

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

  .legal-content {
    padding: 28px 20px;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__links {
    justify-content: center;
  }
}
