:root {
  --brand: #3880ff;
  --brand-dark: #2d6ae0;
  --accent: #ff9f1c;
  --ink: #1a2233;
  --muted: #5b6577;
  --bg: #ffffff;
  --bg-soft: #f4f7ff;
  --bg-brand: #eef3ff;
  --border: #e2e8f5;
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 8px 30px rgba(56, 128, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

img {
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--brand);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.12rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

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

/* Sections */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34ch;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

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

.soroban-card {
  background: linear-gradient(135deg, var(--bg-brand), #dbe6ff);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.soroban-card img {
  width: min(260px, 60vw);
  height: auto;
}

/* Steps */
.steps-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps-grid li {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.steps-grid h3 {
  font-size: 1.2rem;
}

.steps-grid p {
  color: var(--muted);
  margin: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
}

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

.method {
  background: var(--bg-soft);
  max-width: none;
}

.method > *:not(.cards) {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.method .cards {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Parents */
.parents {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.parents h2 {
  text-align: left;
}

.parents p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.checklist li {
  position: relative;
  padding-left: 32px;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.mini-dash {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.mini-row span {
  color: var(--muted);
}

.mini-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--bg-brand);
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* Adults + final CTA */
.adults,
.final-cta {
  text-align: center;
}

.final-cta {
  background: var(--bg-brand);
  border-radius: 28px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.final-cta p {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
}

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

.faq-list summary::after {
  content: '+';
  float: right;
  color: var(--brand);
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: '–';
}

.faq-list details p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9d2e3;
  text-align: center;
  padding: 48px 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.footer-tagline {
  max-width: 40ch;
  margin: 0 auto 18px;
  color: #9aa7c0;
}

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

.footer-nav a {
  color: #c9d2e3;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  color: #6b7794;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .hero,
  .parents {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .lead {
    max-width: none;
  }

  .hero-cta {
    justify-content: center;
  }

  .parents h2 {
    text-align: center;
  }

  .checklist {
    text-align: left;
    max-width: 360px;
    margin: 0 auto;
  }

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

  .site-nav {
    display: none;
  }
}
