/* =========================================================================
   SoundPath — marketing site styles
   Brand: warm, approachable, professional. Built on the science of reading.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --brand-700: #0F5F63;
  --brand-600: #167C80; /* primary */
  --brand-500: #1D9A9F;
  --brand-50:  #E6F4F3;
  --brand-100: #CBE9E7;

  --accent-600: #D85F44;
  --accent-500: #E9785D; /* CTA */
  --accent-50:  #FCEAE5;

  --ink:     #1F2933;
  --ink-soft:#48515B;
  --paper:   #FAF8F3;
  --surface: #FFFFFF;

  --success: #5B8C61;
  --success-50: #EEF6EF;
  --warning: #D89B2B;
  --warning-50: #FFF5DC;

  --line: #ECE7DC;            /* hairline on cream */
  --line-soft: #F0ECE2;

  /* Type */
  --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(31,41,51,.06), 0 1px 3px rgba(31,41,51,.05);
  --shadow:    0 6px 20px -8px rgba(22,124,128,.18), 0 2px 6px rgba(31,41,51,.05);
  --shadow-lg: 0 24px 60px -20px rgba(22,124,128,.30), 0 8px 24px -12px rgba(31,41,51,.12);
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

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

/* Accessible skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--brand-600); color: #fff;
        padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-500); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-600); color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--brand-700); border-color: var(--brand-100); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-teal { background: var(--brand-600); color: #fff; box-shadow: var(--shadow); }
.btn-teal:hover { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-lg); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.08rem; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,243,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; }
.brand span b { color: var(--brand-600); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--brand-600); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
              width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

/* ---- Section scaffolding --------------------------------------------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.12rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--brand-50), transparent 60%),
    radial-gradient(700px 380px at -6% 12%, var(--accent-50), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600;
  color: var(--brand-700); background: #fff; border: 1px solid var(--brand-100);
  padding: .4rem .85rem; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.hero h1 { color: var(--ink); }
.hero h1 .accent { color: var(--brand-600); }
.hero-sub { font-size: 1.2rem; max-width: 33ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-note { margin: 1.3rem 0 0; font-size: .92rem; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.hero-note svg { width: 1.1em; height: 1.1em; color: var(--success); flex: none; }

/* Hero mockup — abstract lesson-flow card (no child photos) */
.mockup {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft); overflow: hidden; position: relative;
}
.mockup-bar { display: flex; align-items: center; gap: .4rem; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.mockup-bar .dots { display: flex; gap: 6px; }
.mockup-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #E6E1D6; display: block; }
.mockup-bar .url { margin-left: auto; font-size: .72rem; color: #98A0A8; font-weight: 500;
                   background: var(--paper); padding: .25rem .7rem; border-radius: 999px; }
.mockup-body { padding: 22px; background: linear-gradient(180deg, #fff, var(--paper)); }
.mockup-lesson { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mockup-lesson .tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
                      color: var(--brand-600); background: var(--brand-50); padding: .3rem .65rem; border-radius: 8px; }
.mockup-lesson .pct { font-size: .8rem; font-weight: 600; color: var(--success); }
.sound-card {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.sound-card .glyph {
  width: 64px; height: 64px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-size: 2rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
}
.sound-card .meta b { display: block; font-size: 1.05rem; color: var(--ink); }
.sound-card .meta span { font-size: .85rem; color: var(--ink-soft); }
.sound-card .play { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; flex: none;
                    background: var(--accent-50); color: var(--accent-600); display: grid; place-items: center; }
.sound-card .play svg { width: 18px; height: 18px; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 7px; }
.flow-steps .chip {
  font-size: .76rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
}
.flow-steps .chip.done { background: var(--success-50); border-color: #CFE3D1; color: var(--success); }
.flow-steps .chip.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.mockup-progress { margin-top: 18px; }
.mockup-progress .row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mockup-progress .row:last-child { margin-bottom: 0; }
.mockup-progress .name { font-size: .82rem; color: var(--ink-soft); width: 70px; flex: none; }
.bar { height: 9px; border-radius: 999px; background: var(--line-soft); flex: 1; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); }
.mockup-progress .val { font-size: .78rem; font-weight: 600; color: var(--ink); width: 38px; text-align: right; }
/* floating accents */
.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft); padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; color: var(--ink);
}
.float-card .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float-card.one { bottom: -18px; left: -26px; }
.float-card.one .ic { background: var(--success-50); color: var(--success); }
.float-card.two { top: -16px; right: -22px; }
.float-card.two .ic { background: var(--warning-50); color: var(--warning); }
.float-card svg { width: 18px; height: 18px; }

/* ---- Logo strip ------------------------------------------------------- */
.strip { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; }
.strip .item { display: flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.strip .item svg { width: 1.25em; height: 1.25em; color: var(--brand-600); flex: none; }

/* ---- How it works ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
        padding: 28px 22px; box-shadow: var(--shadow-sm); }
.step .num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--brand-600); margin-bottom: 16px;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; font-size: .95rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -15px; width: 22px; height: 2px;
  background: var(--brand-100); z-index: 1;
}

/* ---- Features --------------------------------------------------------- */
.features { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-50); color: var(--brand-600);
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .4rem; }
.feature p { margin: 0; font-size: .96rem; }
.feature.alt .ic { background: var(--accent-50); color: var(--accent-600); }

/* ---- Audience (tabs) -------------------------------------------------- */
.audience .tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 36px; }
.tab {
  font-family: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: .7rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .5rem; transition: all .18s ease;
}
.tab svg { width: 1.15em; height: 1.15em; }
.tab[aria-selected="true"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: var(--shadow); }
.tabpanel[hidden] { display: none; }
.audience-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 44px; box-shadow: var(--shadow);
}
.audience-card .lede { font-size: 1.12rem; color: var(--ink); }
.audience-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.audience-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--ink-soft); }
.audience-list .tick {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--success-50); color: var(--success);
}
.audience-list .tick svg { width: 16px; height: 16px; }
.audience-card .visual {
  background: linear-gradient(160deg, var(--brand-50), #fff); border-radius: var(--radius);
  border: 1px solid var(--line-soft); padding: 26px; min-height: 280px;
}
.mini-stat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line-soft);
             border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.mini-stat:last-child { margin-bottom: 0; }
.mini-stat .ic { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center;
                 background: var(--brand-50); color: var(--brand-600); }
.mini-stat .ic svg { width: 21px; height: 21px; }
.mini-stat b { display: block; font-size: 1rem; color: var(--ink); }
.mini-stat span { font-size: .86rem; color: var(--ink-soft); }
.mini-stat.amber .ic { background: var(--warning-50); color: var(--warning); }
.mini-stat .pill { margin-left: auto; font-size: .95rem; font-weight: 700; color: var(--success); }

/* ---- The Science ------------------------------------------------------ */
.science { background: var(--brand-600); color: #fff; position: relative; overflow: hidden; }
.science::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(700px 360px at 85% 0%, rgba(29,154,159,.6), transparent 60%),
              radial-gradient(600px 300px at 0% 100%, rgba(15,95,99,.7), transparent 55%);
}
.science .container { position: relative; z-index: 1; }
.science .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.science .eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.science h2 { color: #fff; }
.science p { color: rgba(255,255,255,.9); font-size: 1.08rem; }
.science .pillars { display: grid; gap: 14px; }
.science .pillar { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.08);
                   border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 18px; }
.science .pillar .ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
                       background: rgba(255,255,255,.16); color: #fff; }
.science .pillar .ic svg { width: 21px; height: 21px; }
.science .pillar b { display: block; color: #fff; margin-bottom: .2rem; }
.science .pillar p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.82); }

/* ---- Pricing ---------------------------------------------------------- */
.pricing .price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.price-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-sm); position: relative;
}
.price-card.featured { border-color: var(--brand-500); box-shadow: var(--shadow); }
.price-card .ribbon {
  position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--success); background: var(--success-50); padding: .3rem .7rem; border-radius: 999px;
}
.price-card .ptag { font-weight: 700; color: var(--brand-600); font-size: 1.15rem; margin-bottom: .4rem; }
.price-card .amount { font-size: 2.2rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.price-card .amount small { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.price-card p { font-size: .96rem; }
.price-card .plist { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.price-card .plist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.price-card .plist svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.price-card .btn { width: 100%; }

/* ---- CTA band --------------------------------------------------------- */
.cta-band { padding: 0 0 84px; }
.cta-inner {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(500px 240px at 80% 0%, rgba(233,120,93,.4), transparent 60%);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.9); font-size: 1.12rem; max-width: 48ch; margin-inline: auto; }
.cta-inner .hero-actions { justify-content: center; margin-top: 1.6rem; }
.cta-inner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand .brand span b { color: var(--brand-500); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .94rem; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1rem; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,.7); padding: .3rem 0; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: .88rem;
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: .5rem; }
.footer-bottom .made svg { width: 1.2em; height: 1.2em; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .science .grid, .audience-card { grid-template-columns: 1fr; }
  .audience-card { padding: 32px; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { gap: .6rem; }
  /* Mobile menu */
  .mobile-menu { display: none; }
  .mobile-menu.open { display: block; }
  .mobile-menu {
    border-bottom: 1px solid var(--line); background: var(--paper); padding: 12px 24px 20px;
  }
  .mobile-menu a { display: block; padding: .7rem 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-soft); }
  .mobile-menu .btn { width: 100%; margin-top: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing .price-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .hero-actions .btn, .cta-inner .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card.one { left: -8px; }
  .float-card.two { right: -8px; }
}

/* Desktop: never show mobile menu */
@media (min-width: 721px) { .mobile-menu { display: none !important; } }
