:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-accent: #eef4ff;
  --primary: #2196ff;        /* Popup School blue */
  --primary-dark: #0f6fd6;
  --primary-soft: #d4e7ff;
  --hero-bg: #2196ff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.06);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
}

.page {
  min-height: 100vh;
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* NAVBAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.9)
    );
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-img {
  height: 32px;
  width: auto;
}

.logo-text-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-center {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-link {
  position: relative;
  cursor: pointer;
}

.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  border: none;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(33, 150, 255, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(33, 150, 255, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text-main);
}

.nav-cta-label {
  display: none;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* HERO */

.hero {
  padding: 3rem 0 3.5rem;
  background: var(--hero-bg);
  color: #ffffff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.5rem 0.1rem 0.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  color: #e0f2ff;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.7rem;
  color: var(--primary);
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: #e0f2ff;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.8rem;
  color: #cfe8ff;
}

.hero-note span {
  font-weight: 600;
  color: #ffffff;
}

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

/* Override buttons inside hero */
.hero .btn-primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.hero .btn-primary:hover {
  background: #f9fafb;
  color: var(--primary-dark);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: #e0f2ff;
  background: transparent;
}

.hero .btn-ghost:hover {
  background: rgba(15, 23, 42, 0.12);
  color: #ffffff;
}

.hero-card-stack {
  position: relative;
  width: 290px;
  max-width: 100%;
}

.phone-card {
  position: relative;
  border-radius: 32px;
  background: linear-gradient(145deg, #0f172a, #020617);
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
  color: #ffffff;
  overflow: hidden;
}

.phone-bezel {
  border-radius: 26px;
  padding: 0.9rem;
  background: radial-gradient(circle at top, #1f2937, #020617);
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 9px;
  border-radius: 0 0 999px 999px;
  background: #020617;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: #e5e7eb;
  opacity: 0.9;
  margin-bottom: 0.35rem;
  padding-top: 0.6rem;
}

.phone-content {
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border-radius: 18px;
  padding: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 240px;
}

.phone-pill-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.7rem;
  color: #e5e7eb;
}

.phone-pill-alert span.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--danger);
}

.phone-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.phone-subtitle {
  font-size: 0.7rem;
  color: #d1d5db;
}

.phone-progress {
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.phone-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  overflow: hidden;
}

.phone-progress-bar-fill {
  height: 100%;
  width: 55%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 999px;
}

.phone-progress-label {
  font-size: 0.65rem;
  color: #e5e7eb;
  white-space: nowrap;
}

.phone-lesson-card {
  border-radius: 12px;
  background: linear-gradient(135deg, #1d2440, #111827);
  padding: 0.6rem;
  border: 1px solid rgba(129, 140, 248, 0.45);
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.phone-lesson-badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: radial-gradient(circle at top left, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.phone-lesson-text-main {
  font-size: 0.8rem;
  font-weight: 600;
}

.phone-lesson-text-sub {
  font-size: 0.68rem;
  color: #cbd5f5;
}

.phone-btn {
  margin-top: 0.1rem;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: #facc15;
  color: #1f2937;
  font-size: 0.7rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.phone-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.1rem;
}

.phone-app-icon {
  border-radius: 12px;
  height: 34px;
  background: radial-gradient(circle at top left, #4b5563, #111827);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #e5e7eb;
}

.phone-app-lock {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: #fecaca;
}

.phone-small-caption {
  font-size: 0.68rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 0.25rem;
}

.floating-parent-card {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 190px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.floating-parent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.floating-parent-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.floating-badge {
  font-size: 0.65rem;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.floating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.floating-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chip {
  font-size: 0.68rem;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: var(--bg-soft);
  color: var(--text-main);
}

.toggle-dot {
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  position: relative;
}

.toggle-dot::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.caption-mini {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* SECTIONS */

section {
  padding: 3.5rem 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
}

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

/* PROBLEM */

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.problem-text p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.problem-highlight {
  font-weight: 500;
  color: var(--text-main);
}

.problem-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

.problem-bubble {
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.problem-bubble.child {
  align-self: flex-end;
  background: #e0ecff;
}

.problem-footer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* FEATURE GRID */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 1.1rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: var(--bg-accent);
  margin-bottom: 0.6rem;
}

.feature-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* HOW IT WORKS */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.step-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 1.1rem;
  border: 1px solid var(--border-soft);
  position: relative;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.step-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.step-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* BENEFITS */

.benefits-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border-soft);
}

.benefit-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.benefit-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* TRUST & SAFETY */

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.trust-list {
  list-style: none;
  margin-top: 0.75rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.trust-bullet {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #15803d;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.trust-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 1.1rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.trust-tag {
  font-size: 0.8rem;
  color: var(--primary-dark);
  background: var(--bg-accent);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  margin-bottom: 0.6rem;
}

/* SIGNUP */

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

.signup-title {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.signup-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.signup-input {
  min-width: min(280px, 100%);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
  outline: none;
  max-width: 340px;
}

.signup-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(33, 150, 255, 0.25);
}

.signup-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  border-top: 1px solid var(--border-soft);
  background: #ffffff;
  padding: 1.8rem 0;
  margin-top: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-link {
  cursor: pointer;
}

  .footer-link:hover {
    color: var(--primary-dark);
  }

  /* SUCCESS POPUP */

  .success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
  }

  .success-popup-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .success-popup {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-soft);
    text-align: center;
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .success-popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #15803d;
    margin: 0 auto 1rem;
  }

  .success-popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .success-popup-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* RESPONSIVE */

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

  .nav-cta-label {
    display: block;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-side {
    order: -1;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .floating-parent-card {
    right: -10px;
    bottom: -25px;
  }

  .problem-layout,
  .trust-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .feature-grid,
  .steps,
  .benefits-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .phone-card {
    border-radius: 28px;
  }

  .floating-parent-card {
    display: none;
  }
}
