/* School House Comp — marketing / sales page.
   Static HTML/CSS translation of the "Electric Coral" design (Sora + Manrope). */

:root {
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 1.875rem;

  --bg: oklch(0.99 0.006 20);
  --fg: oklch(0.22 0.04 290);
  --card: oklch(1 0 0);
  --muted: oklch(0.97 0.006 20);
  --muted-fg: oklch(0.52 0.03 290);
  --border: oklch(0.91 0.01 20);

  --primary: oklch(0.68 0.19 16);
  --primary-fg: oklch(0.99 0.005 20);
  --accent: oklch(0.94 0.04 18);
  --accent-fg: oklch(0.45 0.16 14);

  --coral: oklch(0.68 0.19 16);
  --coral-bright: oklch(0.72 0.2 12);
  --rose: oklch(0.55 0.18 350);
  --plum: oklch(0.45 0.09 290);

  --hero-gradient: linear-gradient(135deg, oklch(0.68 0.19 16), oklch(0.55 0.18 350) 55%, oklch(0.45 0.09 290));
  --shadow-coral: 0 18px 40px -12px oklch(0.68 0.19 16 / 45%);
  --shadow-soft: 0 10px 30px -14px oklch(0.45 0.09 290 / 35%);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must always win over display rules below (e.g. the modal) */
[hidden] { display: none !important; }

body.landing {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.landing h1, .landing h2, .landing h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

.landing a { color: inherit; text-decoration: none; }
.landing ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-muted { background: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.section-title { margin-top: 0.75rem; font-size: 2rem; font-weight: 800; }
.section-intro { max-width: 42rem; margin: 0 auto; text-align: center; }
.text-muted { color: var(--muted-fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  padding: 0.55rem 1.15rem; font-size: 0.9rem; transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--coral-bright); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted-fg); }
.btn-ghost:hover { color: var(--fg); }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }
.btn-secondary-light { background: #fff; color: var(--fg); }
.btn-secondary-light:hover { background: #f4f4f4; }
.shadow-coral { box-shadow: var(--shadow-coral); }
.shadow-soft { box-shadow: var(--shadow-soft); }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--fg); }
.logo img { display: block; width: auto; height: 2.5rem; max-width: min(50vw, 13rem); object-fit: contain; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--muted-fg); }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

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

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero-blob-1 { top: -8rem; right: 0; width: 24rem; height: 24rem; background: oklch(0.68 0.19 16 / 20%); }
.hero-blob-2 { top: 10rem; left: -6rem; width: 20rem; height: 20rem; background: oklch(0.45 0.09 290 / 20%); }
.hero-grid {
  position: relative; display: grid; gap: 3rem; align-items: center;
  padding: 5rem 0 6rem;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; padding: 7rem 0; } }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); background: var(--card); border-radius: 9999px;
  padding: 0.35rem 0.85rem; font-size: 0.75rem; font-weight: 600; color: var(--muted-fg);
  box-shadow: var(--shadow-soft);
}
.badge svg { color: var(--primary); }

.hero h1 { margin-top: 1.25rem; font-size: 2.4rem; font-weight: 800; line-height: 1.08; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.5rem; } }
.text-gradient {
  background-image: linear-gradient(120deg, var(--coral-bright), var(--rose) 60%, var(--plum));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { margin-top: 1.25rem; max-width: 34rem; font-size: 1.1rem; color: var(--muted-fg); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; font-size: 0.9rem; color: var(--muted-fg); }
.trust-row span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-row svg { color: var(--primary); }

.hero-art { display: flex; justify-content: center; }
@media (min-width: 1024px) { .hero-art { justify-content: flex-end; } }

/* Leaderboard mockup card */
.mock-card {
  width: 100%; max-width: 26rem; border-radius: var(--radius-3xl);
  border: 1px solid var(--border); background: var(--card); padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mock-head-title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.mock-head-title svg { color: var(--primary); }
.live-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent); color: var(--accent-fg);
  border-radius: 9999px; padding: 0.25rem 0.6rem; font-size: 0.65rem; font-weight: 700;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.mock-row { margin-bottom: 0.85rem; }
.mock-row-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.4rem; }
.mock-rank {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700; color: #fff; margin-right: 0.5rem;
}
.mock-name { display: inline-flex; align-items: center; font-weight: 600; }
.mock-pts { font-family: var(--font-display); font-weight: 700; }
.mock-trend { margin-left: 0.4rem; font-size: 0.75rem; font-weight: 400; color: var(--primary); }
.mock-bar-bg { height: 10px; width: 100%; border-radius: 9999px; background: var(--muted); overflow: hidden; }
.mock-bar { height: 100%; border-radius: 9999px; }

.mock-footer {
  margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--muted) 60%, transparent);
  border-radius: var(--radius-2xl); padding: 0.75rem;
}
.mock-footer-icon { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-lg); background: oklch(0.68 0.19 16 / 10%); color: var(--primary); flex-shrink: 0; }
.mock-footer-text { flex: 1; font-size: 0.75rem; }
.mock-footer-text p { margin: 0; }
.mock-footer-text .who { font-weight: 600; color: var(--fg); }
.mock-footer-when { color: var(--muted-fg); }
.mock-footer-delta { font-size: 0.75rem; font-weight: 700; color: var(--primary); }

/* Value prop strip */
.value-grid { display: grid; gap: 0.5rem; padding: 3rem 0; }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-item { padding: 1rem 1.25rem; }
.icon-tile {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-xl);
  background: oklch(0.68 0.19 16 / 10%); color: var(--primary);
}
.value-item h3 { margin-top: 1rem; font-size: 1rem; font-weight: 700; }
.value-item p { margin-top: 0.35rem; font-size: 0.9rem; color: var(--muted-fg); }

/* Feature section */
.feature-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; }
.feature-list .icon-tile { width: 1.75rem; height: 1.75rem; border-radius: var(--radius-lg); flex-shrink: 0; }
.feature-list .icon-tile svg { width: 16px; height: 16px; }

.assembly-card { border-radius: var(--radius-3xl); border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.assembly-card img { max-width:500px; height: auto; }
.assembly-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.assembly-tag { border-radius: 9999px; background: oklch(0.68 0.19 16 / 10%); color: var(--primary); padding: 0.25rem 0.6rem; font-size: 0.65rem; font-weight: 700; }
.assembly-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.assembly-cell { border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 1rem; text-align: center; }
.assembly-cell.lead { border-color: var(--coral); background: oklch(0.68 0.19 16 / 8%); }
.assembly-cell .pts { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.assembly-cell .name { font-size: 0.9rem; font-weight: 600; color: var(--muted-fg); }

/* How it works */
.steps-grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card { border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.step-num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: oklch(0.68 0.19 16 / 25%); }
.step-card h3 { margin-top: 0.5rem; font-size: 1.05rem; font-weight: 700; }
.step-card p { margin-top: 0.35rem; font-size: 0.9rem; color: var(--muted-fg); }

/* Pricing */
.pricing-grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.plan-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-3xl);
  border: 1px solid var(--border); background: var(--card); padding: 1.75rem; box-shadow: var(--shadow-soft);
}
.plan-card.featured { border-color: var(--coral); box-shadow: var(--shadow-coral); }
.plan-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-fg); border-radius: 9999px;
  padding: 0.25rem 0.75rem; font-size: 0.65rem; font-weight: 700; box-shadow: var(--shadow-coral);
}
.plan-card h3 { font-size: 1.1rem; font-weight: 700; }
.plan-card .plan-desc { margin-top: 0.35rem; font-size: 0.9rem; color: var(--muted-fg); }
.plan-price { margin-top: 1.25rem; display: flex; align-items: baseline; gap: 0.25rem; }
.plan-price .amount { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; }
.plan-price .period { font-size: 0.9rem; color: var(--muted-fg); }
.plan-features { margin-top: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.plan-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.plan-features svg { color: var(--primary); flex-shrink: 0; }
.plan-card .btn { margin-top: 1.75rem; width: 100%; }

/* Testimonial */
.testimonial-card { max-width: 46rem; margin: 0 auto; border-radius: var(--radius-3xl); border: 1px solid var(--border); background: var(--card); padding: 2.5rem; text-align: center; box-shadow: var(--shadow-soft); }
.stars { display: flex; justify-content: center; gap: 0.2rem; color: var(--primary); }
.testimonial-card blockquote { margin: 1.25rem 0 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.testimonial-who { margin-top: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.avatar { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background-image: var(--hero-gradient); color: #fff; font-weight: 700; }
.testimonial-who .name { font-size: 0.9rem; font-weight: 700; }
.testimonial-who .role { font-size: 0.85rem; color: var(--muted-fg); }

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-3xl);
  background-image: var(--hero-gradient); padding: 3.5rem 1.5rem; text-align: center; color: #fff;
  box-shadow: var(--shadow-coral);
}
.cta-banner h2 { color: #fff; font-size: 2rem; font-weight: 800; }
.cta-banner p { margin: 1rem auto 0; max-width: 34rem; color: rgba(255, 255, 255, 0.85); }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.cta-banner .btn-secondary-light { color: var(--fg); }
.btn-cta-outline { border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; background: transparent; }
.btn-cta-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* Footer */
.landing-footer { border-top: 1px solid var(--border); }
.footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 3rem 0 0; }
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem 1.5rem; }
.footer-links a { font-size: 0.9rem; color: var(--muted-fg); }
.footer-links a:hover { color: var(--fg); }
.footer-bottom { margin-top: 2rem; border-top: 1px solid var(--border); padding: 1.5rem 0; font-size: 0.85rem; color: var(--muted-fg); }

/* Sign-in modal (find my school) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 15, 25, 0.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 100;
}
.modal-card {
  background: var(--card); border-radius: var(--radius-2xl); padding: 1.75rem; width: 100%; max-width: 26rem;
  box-shadow: var(--shadow-soft);
}
.modal-card h3 { font-size: 1.15rem; font-weight: 700; }
.modal-card p { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted-fg); }
.modal-row { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.modal-row input {
  flex: 1; min-width: 0; padding: 0.55rem 0.8rem; border-radius: 0.6rem; border: 1px solid var(--border);
  font-size: 0.95rem; font-family: var(--font-body);
}
.modal-hint { margin-top: 0.6rem; font-size: 0.8rem; color: var(--muted-fg); }
.modal-close { position: absolute; top: 0.9rem; right: 0.9rem; background: none; border: none; cursor: pointer; color: var(--muted-fg); font-size: 1.1rem; line-height: 1; }
.modal-card { position: relative; }
