:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #d0d5dd;
  --accent: #155eef;
  --accent-dark: #0f3f9e;
  --danger: #b42318;
  --good: #067647;
  --soft: #eef4ff;
  --shadow: 0 24px 80px rgba(16, 24, 40, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 251, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(208, 213, 221, 0.8);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.mobile-menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  padding: 9px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: var(--ink);
  background: white;
}

.nav-links .nav-cta {
  background: var(--ink);
  color: white;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 1.1rem;
}

.mobile-menu {
  display: grid;
  gap: 4px;
  padding: 0 22px 16px;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 22px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.79rem;
}

h1, h2, h3 {
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  max-width: 890px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.32rem;
}

.hero-copy {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 700px;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 30px rgba(21, 94, 239, 0.22);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: white;
  border-color: var(--line);
}

.fine-print {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(380px, 100%);
  border-radius: 42px;
  padding: 14px;
  background: #111827;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 86px;
  height: 7px;
  border-radius: 99px;
  background: #344054;
  margin: 0 auto 12px;
}

.phone-screen {
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  border-radius: 30px;
  min-height: 520px;
  padding: 24px;
  overflow: hidden;
}

.mini-header {
  font-weight: 900;
  margin-bottom: 22px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.mini-grid span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.mini-panel {
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: var(--ink);
  color: white;
}

.mini-panel p {
  color: #d0d5dd;
  margin-bottom: 0;
}

.trust-strip {
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-strip div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.trust-strip strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.trust-strip span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 22px;
}

.section.alt {
  max-width: none;
  background: white;
  border-block: 1px solid var(--line);
}

.section.alt .section-heading,
.section.alt .age-overview {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid,
.age-overview,
.resource-library {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature,
.age-card,
.resource-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 34px rgba(16, 24, 40, 0.06);
}

.section.alt .age-card {
  background: var(--bg);
}

.feature p,
.age-card p,
.resource-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.age-card button {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  background: var(--ink);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.app-section {
  max-width: 1240px;
}

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.age-sidebar,
.content-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.age-sidebar {
  padding: 18px;
  position: sticky;
  top: 86px;
}

.search-label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.search-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  margin-bottom: 16px;
}

.age-buttons {
  display: grid;
  gap: 8px;
}

.age-button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.age-button strong {
  display: block;
  letter-spacing: -0.03em;
}

.age-button span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.age-button.active {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.08);
}

.content-panel {
  padding: 28px;
  min-height: 660px;
}

.selected-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 850;
}

.text-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 800;
  cursor: pointer;
}

.lead {
  color: var(--muted);
  font-size: 1.09rem;
  max-width: 780px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin: 26px 0 22px;
  padding-bottom: 10px;
}

.tab {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 850;
  cursor: pointer;
}

.tab.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.card-list {
  display: grid;
  gap: 12px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fcfcfd;
}

.info-card h4 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.info-card.warning {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff5f4;
}

.info-card.action {
  border-color: rgba(6, 118, 71, 0.24);
  background: #f3fff8;
}

.resource-list {
  display: grid;
  gap: 10px;
}

.resource-link {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: white;
}

.resource-link strong {
  display: block;
}

.resource-link span {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.cta-panel {
  max-width: 1120px;
  margin: 0 auto 70px;
  padding: 44px 28px;
  border-radius: 30px;
  background: var(--ink);
  color: white;
  text-align: center;
}

.cta-panel p {
  color: #d0d5dd;
  max-width: 680px;
  margin: 14px auto 24px;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 22px 56px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--ink);
  color: white;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero-card {
    justify-content: flex-start;
  }

  .trust-strip,
  .feature-grid,
  .age-overview,
  .resource-library {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .age-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .trust-strip,
  .feature-grid,
  .age-overview,
  .resource-library {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .content-panel {
    padding: 20px;
  }

  .selected-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
