/* ============================================================
   VoiceScribe — Public pages (nav, footer, landing, pricing, about, contact)
   ============================================================ */

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--bg-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.nav__logo-icon { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links > a { color: var(--text-secondary); font-weight: 500; font-size: .95rem; transition: color .2s ease; }
.nav__links > a:hover, .nav__links > a.is-active { color: var(--text-primary); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta-mobile { display: none; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 8px; align-items: stretch;
    background: var(--bg-surface); border-bottom: 1px solid var(--bg-border);
    padding: 24px; transform: translateY(-120%); transition: transform .35s ease;
    height: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a { padding: 12px 0; font-size: 1.1rem; }
  .nav__cta-mobile { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
}

/* ---------- Entrance animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 96px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(circle, rgba(245,158,11,.16), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent-text { background: linear-gradient(135deg, #F59E0B, #FCD34D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { font-size: 1.2rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto 36px; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Floating dashboard mockup */
.mockup {
  position: relative; max-width: 760px; margin: 72px auto 0;
  background: var(--bg-elevated); border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mockup__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mockup__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-border); }
.mockup__wave { display: flex; align-items: flex-end; gap: 4px; height: 60px; margin-bottom: 18px; }
.mockup__wave i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .7; animation: wave 1.4s ease-in-out infinite; }
@keyframes wave { 0%,100% { height: 20%; } 50% { height: 100%; } }
.mockup__lines span { display: block; height: 10px; border-radius: 4px; background: var(--bg-border); margin-bottom: 10px; }
.mockup__lines span:nth-child(1) { width: 90%; } .mockup__lines span:nth-child(2) { width: 75%; }
.mockup__lines span:nth-child(3) { width: 82%; } .mockup__lines span:nth-child(4) { width: 60%; }

/* ---------- Section heads ---------- */
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__head p { color: var(--text-secondary); margin-top: 12px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step { text-align: center; padding: 32px 24px; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-secondary); font-size: .95rem; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--text-secondary); font-size: .92rem; }

/* ---------- Pricing cards ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.is-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.plan__price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; margin: 12px 0 4px; }
.plan__price small { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.plan__credits { color: var(--accent); font-weight: 600; margin-bottom: 20px; }
.plan__features { flex: 1; margin-bottom: 24px; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--text-secondary); font-size: .92rem; }
.plan__features li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.plan[data-cycle].hidden { display: none; }

/* ---------- Pricing toggle ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 14px; background: var(--bg-elevated); border: 1px solid var(--bg-border); border-radius: 999px; padding: 6px; margin: 0 auto 48px; }
.billing-toggle button { padding: 8px 20px; border-radius: 999px; color: var(--text-secondary); font-weight: 600; font-size: .9rem; transition: background .2s ease, color .2s ease; }
.billing-toggle button.is-active { background: var(--accent); color: #0A0A0A; }

/* ---------- Comparison table ---------- */
.compare { margin-top: 64px; }
.compare td:first-child { color: var(--text-secondary); }
.compare .yes { color: var(--success); } .compare .no { color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 64px auto 0; }
.faq details { background: var(--bg-elevated); border: 1px solid var(--bg-border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--text-secondary); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial p { font-size: 1rem; margin-bottom: 20px; }
.testimonial__who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial__who h4 { font-family: var(--font-body); font-size: .95rem; }
.testimonial__who span { color: var(--text-muted); font-size: .85rem; }

/* ---------- Final CTA ---------- */
.cta-banner { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); border-radius: var(--radius-lg); padding: 64px 32px; text-align: center; color: #0A0A0A; }
.cta-banner h2 { color: #0A0A0A; margin-bottom: 24px; }

/* ---------- About ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.story { max-width: 720px; margin: 0 auto; text-align: center; }
.story p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info .info-row { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; color: var(--text-secondary); }
.contact-info .info-row svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--bg-border); padding: 64px 0 24px; margin-top: 96px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer__col h4 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-secondary); padding: 5px 0; font-size: .92rem; transition: color .2s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 14px; }
.footer__social a { color: var(--text-secondary); transition: color .2s ease; }
.footer__social a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bg-border); color: var(--text-muted); font-size: .85rem; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--accent); }

/* Legal / policy pages */
.legal { max-width: 820px; margin: 0 auto; }
.legal__updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .steps, .features, .testimonials, .pillars { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}
