/* ============================================================
   Study Partner — marketing site
   Palette: navy #0f2350 + gold #e6b800, lots of white space
   ============================================================ */

:root {
  --navy: #0f2350;
  --navy-2: #1b356f;
  --navy-3: #28488f;
  --gold: #e6b800;
  --gold-d: #c79f00;
  --ink: #15203a;
  --muted: #5a6582;
  --line: #e6eaf3;
  --bg: #ffffff;
  --bg-tint: #f5f7fc;
  --card: #ffffff;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 16px rgba(15, 35, 80, .06);
  --shadow: 0 16px 48px rgba(15, 35, 80, .10);
  --shadow-lg: 0 30px 80px rgba(15, 35, 80, .18);
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px rgba(230, 184, 0, .35); }
.btn-gold:hover { background: var(--gold-d); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-tint); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-name { font-weight: 800; font-size: 1.18rem; color: var(--navy); letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 30px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(230,184,0,.10), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(40,72,143,.10), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 24px clamp(56px, 9vw, 104px);
}
.hero-copy .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 33em;
  margin-top: 20px;
}
.hero-copy .lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); font-weight: 600; }

/* Hero visual / phone mockup */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  position: relative;
  width: 280px;
  max-width: 78vw;
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #0c1c40, #1b356f);
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 6px solid #0a1631;
  z-index: 2;
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; background: #0a1631; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone-screen {
  height: 100%;
  background: linear-gradient(180deg, #f6f8ff, #eef2fc);
  border-radius: 30px;
  padding: 38px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.app-top { display: flex; align-items: center; gap: 10px; }
.app-logo { width: 34px; height: 34px; border-radius: 9px; }
.app-title { font-weight: 800; font-size: .95rem; color: var(--navy); }
.app-sub { font-size: .72rem; color: var(--muted); }

.app-card {
  background: #fff; border-radius: 14px; padding: 12px; display: flex; align-items: center;
  gap: 10px; box-shadow: 0 6px 18px rgba(15,35,80,.08);
}
.app-card-title { font-weight: 700; font-size: .8rem; color: var(--navy); }
.app-card-sub { font-size: .68rem; color: var(--muted); }

.app-voice .play {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: .7rem; flex: 0 0 auto;
}
.app-wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 4px; }
.app-wave span {
  width: 3px; background: var(--gold); border-radius: 2px;
  animation: wave 1.1s ease-in-out infinite;
}
.app-wave span:nth-child(1){height:40%;animation-delay:0s}
.app-wave span:nth-child(2){height:80%;animation-delay:.1s}
.app-wave span:nth-child(3){height:55%;animation-delay:.2s}
.app-wave span:nth-child(4){height:100%;animation-delay:.3s}
.app-wave span:nth-child(5){height:60%;animation-delay:.4s}
.app-wave span:nth-child(6){height:85%;animation-delay:.5s}
.app-wave span:nth-child(7){height:45%;animation-delay:.6s}
@keyframes wave { 0%,100%{transform:scaleY(.5)} 50%{transform:scaleY(1)} }

.app-check .tick {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(31,169,113,.14);
  color: #1fa971; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto;
}
.app-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.tile {
  background: #fff; border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 1.3rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 4px 12px rgba(15,35,80,.06);
}
.tile span { font-size: .6rem; font-weight: 700; color: var(--navy); }

.blob { position: absolute; border-radius: 50%; filter: blur(8px); z-index: 1; }
.blob-1 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(230,184,0,.28), transparent 70%); top: -20px; right: 0; }
.blob-2 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(40,72,143,.22), transparent 70%); bottom: -30px; left: -10px; }

/* ---------- Showcase / audience toggle ---------- */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.seg-wrap { text-align: center; }
.seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.seg-btn.is-active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }

.showcase-grid {
  display: none;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.showcase-grid.is-active { display: grid; }
.showcase-copy h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.showcase-lede { color: var(--muted); font-size: 1.08rem; margin-bottom: 22px; }

.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink); font-size: 1rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(31,169,113,.14); color: #1fa971; font-weight: 800; font-size: .8rem;
  display: grid; place-items: center;
}

.showcase-visual { display: grid; place-items: center; gap: 14px; }
.shot-phone {
  position: relative;
  width: 290px; max-width: 80vw;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #0c1c40, #1b356f);
  border: 6px solid #0a1631;
  box-shadow: var(--shadow-lg);
}
.shot-phone img { border-radius: 30px; display: block; width: 100%; }
.shot-tag {
  font-size: .82rem; font-weight: 700; color: var(--gold-d);
  background: #fff8e1; border: 1px solid rgba(230,184,0,.4);
  padding: 5px 14px; border-radius: 999px;
}
.phone-sm { width: 250px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy); color: rgba(255,255,255,.92); }
.trustbar p {
  text-align: center; font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  padding: 16px 0;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

.grid { display: grid; gap: 22px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7deee; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
  background: linear-gradient(135deg, #f1f4fc, #e7ecf9);
}

.features-grid { grid-template-columns: repeat(4, 1fr); }
.feature-flag { position: relative; border-color: rgba(230,184,0,.5); box-shadow: 0 16px 40px rgba(230,184,0,.12); }
.feature-flag .card-icon { background: linear-gradient(135deg, #fff6d6, #ffe9a3); }

.audience-grid { grid-template-columns: repeat(3, 1fr); }
.audience-card { padding: 34px 30px; }
.audience-card .card-icon { width: 60px; height: 60px; font-size: 1.8rem; }

/* ---------- Why grid ---------- */
.why-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.why-item {
  position: relative;
  padding: 30px 30px 30px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-num {
  font-size: 2rem; font-weight: 800; color: var(--gold);
  display: block; margin-bottom: 8px; line-height: 1;
}
.why-item h3 em { color: var(--gold-d); font-style: normal; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-featured {
  border: 2px solid var(--gold);
  box-shadow: 0 24px 60px rgba(230,184,0,.20);
  transform: translateY(-6px);
}
.price-featured:hover { transform: translateY(-10px); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.price-name { color: var(--navy); }
.price { margin: 14px 0 2px; display: flex; align-items: baseline; gap: 6px; }
.price-amt { font-size: 2.2rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.price-per { color: var(--muted); font-weight: 600; font-size: .9rem; }
.price-note { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.price-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.price-list li { position: relative; padding-left: 26px; color: var(--ink); font-size: .95rem; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #1fa971; font-weight: 800;
}

/* ---------- CTA box ---------- */
.cta-box {
  position: relative; overflow: hidden;
  text-align: center;
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(230,184,0,.22), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-3));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 76px) 28px;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,.85); margin: 14px auto 0; max-width: 38em; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.brand-footer .brand-name { color: #fff; }
.footer-links { display: flex; gap: 24px; font-weight: 600; font-size: .9rem; }
.footer-links a { color: rgba(255,255,255,.8); transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: .88rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-visual { order: -1; }

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

  .showcase-grid.is-active { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .showcase-visual { order: -1; }
  .check-list { text-align: left; max-width: 28em; margin-left: auto; margin-right: auto; }

  .seg { flex-direction: column; width: 100%; max-width: 360px; border-radius: 18px; }
  .seg-btn { border-radius: 14px; width: 100%; }
}

@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-4px); }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .app-wave span { animation: none; }
  .btn:hover, .card:hover, .why-item:hover { transform: none; }
}

/* --- Demo request modal --- */
.modal-overlay{position:fixed;inset:0;background:rgba(8,18,40,.6);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}
.modal-overlay[hidden]{display:none}
.modal{background:#fff;border-radius:18px;max-width:440px;width:100%;padding:28px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.modal h3{margin:0 0 6px;font-size:1.4rem;color:#0f2350}
.modal p{margin:0 0 16px;color:#475569;font-size:.95rem}
.modal input,.modal textarea{width:100%;padding:11px 13px;margin-bottom:10px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;box-sizing:border-box}
.modal input:focus,.modal textarea:focus{outline:none;border-color:#0f2350}
.modal-close{position:absolute;top:10px;right:16px;background:none;border:none;font-size:1.7rem;cursor:pointer;color:#94a3b8;line-height:1}
.modal-or{text-align:center;color:#94a3b8;font-size:.85rem;margin:16px 0 8px}
.modal-email{display:flex;align-items:center;justify-content:center;gap:10px;font-weight:700;color:#0f2350}
.modal-ok{margin-top:12px;background:#ecfdf5;color:#065f46;padding:10px;border-radius:10px;font-size:.9rem;text-align:center}
.btn-block{display:block;width:100%;text-align:center}
