/* =============================================
   SpeakClearly landing page
   Brand: #1B3A4B primary · #4ECDC4 secondary
   ============================================= */

:root {
  --primary: #1B3A4B;
  --primary-2: #2d5f73;
  --secondary: #4ECDC4;
  --secondary-2: #3dbdb5;
  --accent: #FF6B6B;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #2D3748;
  --text-muted: #718096;
  --border: #E2E8F0;
  --success: #48BB78;
  --warning: #ECC94B;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-md: 0 4px 14px rgba(27, 58, 75, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 58, 75, 0.12);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--primary); font-size: 17px; letter-spacing: -0.2px;
}
.brand-mark { width: 32px; height: 32px; display: inline-block; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--text-muted); }
.nav a:hover { color: var(--primary); }
.nav .btn-small { padding: 8px 14px; font-size: 13px; }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.kicker {
  display: inline-block;
  color: var(--secondary-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.02;
  color: var(--primary);
  margin-bottom: 20px;
}
.lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.micro-note { color: var(--text-muted); font-size: 13px; margin-top: 14px; }

/* ---- Hero visual (fake phone) ---- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 320px; height: 640px; max-width: 100%;
  background: #000;
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #fff 0%, #F5F7FA 100%);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}
.screen-topbar {
  display: flex; gap: 5px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.dot:first-child { background: #FC8181; }
.dot:nth-child(2) { background: #ECC94B; }
.dot:last-child { background: #48BB78; }

.screen-body { padding: 22px 18px; }
.screen-badge {
  display: inline-block; padding: 4px 12px; background: var(--secondary);
  color: var(--primary); border-radius: 999px; font-size: 11px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.screen-word {
  font-size: 34px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px;
}
.screen-phonetic {
  font-size: 14px; color: var(--text-muted); font-style: italic; margin-bottom: 18px;
}
.waveform {
  width: 100%; height: 80px;
  background: #F5F7FA; border-radius: 8px;
  padding: 8px;
  margin-bottom: 18px;
}
.screen-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 18px;
}
.metric {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; text-align: center;
}
.metric-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-weight: 600; }
.metric-value { font-size: 22px; font-weight: 800; color: var(--primary); }
.screen-coaching {
  background: var(--bg); border-left: 3px solid var(--secondary);
  border-radius: 6px; padding: 12px 14px;
}
.coaching-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 4px; }
.coaching-text { font-size: 13px; color: var(--text); line-height: 1.5; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 15px;
  cursor: pointer; border: none;
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--secondary); color: var(--primary); }
.btn-primary:hover { background: var(--secondary-2); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { color: var(--secondary-2); }
.btn-small { padding: 8px 16px; font-size: 13px; }

/* ---- Trust strip ---- */
.strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #fff;
}
.strip-inner {
  padding: 18px 24px; text-align: center; color: var(--text-muted); font-size: 14px;
  letter-spacing: 0.5px;
}

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section-tinted { background: linear-gradient(180deg, #fff 0%, #E6F8F6 100%); }
.section-dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}
.section-dark .lead.light { color: rgba(255, 255, 255, 0.82); max-width: none; }
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.6px; color: var(--primary);
  margin-bottom: 42px; max-width: 780px;
}
.section-title.light { color: #fff; }
.section-kicker {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--secondary-2); margin-bottom: 12px;
}
.section-kicker.light { color: var(--secondary); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-number {
  position: absolute; top: -18px; left: 28px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 10px rgba(78, 205, 196, 0.4);
}
.step h3 { color: var(--primary); font-size: 20px; margin: 12px 0 10px; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---- Science section ---- */
.science-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.science-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.science-list li {
  padding-left: 24px; position: relative; color: rgba(255, 255, 255, 0.85); font-size: 15px;
  line-height: 1.6;
}
.science-list li::before {
  content: "▸"; position: absolute; left: 0; color: var(--secondary);
}
.science-list strong { color: #fff; font-weight: 700; }

.science-visual .plot {
  background: #fff; border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-lg);
}
.plot-title {
  font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---- Features ---- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-2) 100%);
  color: var(--primary); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { color: var(--primary); font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.feature p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ---- Instructor section ---- */
.instructor-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.instructor-grid .btn { margin-top: 24px; }
.dashboard {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 20px; border: 1px solid var(--border);
}
.dashboard-header {
  font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.dashboard-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.dashboard-row:last-child { border: none; }
.dashboard-row.faded { opacity: 0.6; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.name { flex: 1; font-weight: 600; color: var(--primary); }
.badge-good { background: rgba(72, 187, 120, 0.18); color: #276749; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-okay { background: rgba(236, 201, 75, 0.2); color: #975a16; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-gentle { background: rgba(113, 128, 150, 0.15); color: var(--text-muted); padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-frequent { background: var(--secondary); color: var(--primary); padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-moderate { background: rgba(78, 205, 196, 0.2); color: var(--primary); padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-low { background: rgba(252, 129, 129, 0.18); color: #9b2c2c; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* ---- FAQ ---- */
.faqs { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faqs details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; transition: box-shadow 0.2s ease;
}
.faqs details[open] { box-shadow: var(--shadow-md); }
.faqs summary {
  cursor: pointer; font-weight: 600; color: var(--primary); font-size: 16px;
  list-style: none;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: "+"; float: right; font-size: 22px; line-height: 22px;
  color: var(--text-muted); transition: transform 0.2s;
}
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs details p { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.faqs a { color: var(--secondary-2); text-decoration: underline; }

/* ---- Waitlist ---- */
.waitlist { background: var(--primary); color: #fff; text-align: center; }
.waitlist .section-title { color: #fff; margin-left: auto; margin-right: auto; }
.waitlist .lead { color: rgba(255, 255, 255, 0.8); margin: 0 auto 28px; }
.waitlist-inner { max-width: 640px; margin: 0 auto; }
.waitlist-form {
  display: flex; gap: 8px; max-width: 520px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.waitlist-form input,
.waitlist-form select {
  flex: 1; padding: 12px 16px; font-size: 15px;
  border: none; background: transparent; color: #fff; outline: none;
  min-width: 0;
}
.waitlist-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.waitlist-form select { color: #fff; background: transparent; cursor: pointer; }
.waitlist-form select option { color: var(--primary); background: #fff; }
.waitlist-form .btn { flex-shrink: 0; }
.waitlist-msg { margin-top: 14px; font-size: 14px; min-height: 20px; color: rgba(255, 255, 255, 0.85); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); background: #fff; padding: 48px 0 32px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px; align-items: start;
}
.footer-brand .brand-text { font-size: 18px; font-weight: 800; color: var(--primary); display: block; margin-bottom: 6px; }
.footer-tagline { color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: var(--text-muted); font-size: 13px; text-align: right; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-inner,
  .science-grid,
  .instructor-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .phone { width: 280px; height: 560px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { align-items: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 640px) {
  .nav { gap: 18px; font-size: 13px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn-small { display: inline-flex; }
  .section { padding: 64px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .phone { width: 260px; height: 520px; padding: 10px; border-radius: 32px; }
  .phone-screen { border-radius: 22px; }
  .screen-word { font-size: 28px; }
  .screen-metrics .metric-value { font-size: 18px; }
}
