/* Speaky marketing site — shared styles */

:root {
  --bg: #F4F4F2;
  --card: #FFFFFF;
  --soft: #EAEAE6;
  --border: #E3E3DF;
  --text: #111311;
  --text-secondary: #6B6F70;

  --black: #0A0C0B;
  --near-black-card: #161816;
  --near-black-soft: #20231F;
  --near-black-border: #2A2E28;

  --lime: #BEE335;
  --lime-dark: #A8CC24;
  --on-lime: #0A0C0B;

  --off-white: #F5F5F3;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --max-w: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 242, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--off-white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.nav-toggle { display: none; }

/* mobile nav via checkbox hack, no JS */
.nav-checkbox { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links a, .nav-links .nav-cta { width: 100%; padding: 16px 24px; }
  .nav-links .nav-cta { width: calc(100% - 48px); margin: 8px 24px 20px; justify-content: center; }
  .nav-checkbox:checked ~ .nav-links { max-height: 320px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { background: var(--lime-dark); }

.btn-dark { background: var(--black); color: var(--off-white); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid var(--near-black-border);
}

.btn-outline-light {
  background: transparent;
  color: var(--off-white);
  border: 1.5px solid rgba(245, 245, 243, 0.3);
}

/* ---------- Hero (dark, bold) ---------- */

.hero {
  background: var(--black);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
}

.hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(190,227,53,0.35) 0%, rgba(190,227,53,0) 70%);
  top: -120px;
  right: -160px;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(190, 227, 53, 0.12);
  color: var(--lime);
  border: 1px solid rgba(190, 227, 53, 0.35);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.hero h1 .hl { color: var(--lime); }

.hero p.lede {
  font-size: 19px;
  color: rgba(245, 245, 243, 0.72);
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13px;
  color: rgba(245, 245, 243, 0.45);
  margin-bottom: 56px;
}

.hero-phone-col {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.phone-shot {
  width: min(280px, 68vw);
  border-radius: 36px;
  border: 6px solid #1c1e1b;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

.stat-strip {
  border-top: 1px solid var(--near-black-border);
  background: var(--near-black-card);
}

.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 24px;
}

.stat {
  text-align: center;
}

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--lime);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 13px;
  color: rgba(245, 245, 243, 0.55);
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phone-col { margin-top: 32px; }
  .hero-note { margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .stat-strip .wrap { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px 16px; }
  .stat b { font-size: 19px; }
  .stat span { font-size: 11px; }
}

/* ---------- Sections (light) ---------- */

.section {
  padding: 96px 0;
}

.section-tight { padding: 64px 0; }

.section-head {
  max-width: 620px;
  margin: 0 0 56px;
}

.section-head .kicker {
  color: var(--lime-dark);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
}

.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* feature rows w/ phone mockup */

.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse { grid-template-columns: 1.15fr 0.85fr; }
.feature-row.reverse .feature-phone { order: 2; }

.feature-phone {
  display: flex;
  justify-content: center;
}

.feature-phone img {
  width: min(260px, 60vw);
  border-radius: 30px;
  border: 5px solid var(--black);
  box-shadow: 0 24px 60px rgba(10,12,11,0.18);
}

.feature-text .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--black);
  color: var(--lime);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 18px;
}

.feature-text h3 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.feature-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 440px;
}

@media (max-width: 820px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .feature-row.reverse .feature-phone { order: 0; }
  .feature-text p { margin-left: auto; margin-right: auto; }
}

/* how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
}

.step-card .num {
  font-size: 15px;
  font-weight: 800;
  color: var(--on-lime);
  background: var(--lime);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- FAQ (details/summary accordion, no JS) ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chevron {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item[open] summary .chevron { transform: rotate(45deg); }

.faq-item p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.faq-more {
  text-align: center;
  margin-top: 36px;
  font-size: 15px;
  color: var(--text-secondary);
}

.faq-more a { color: var(--text); font-weight: 700; text-decoration: underline; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--black);
  color: var(--off-white);
  border-radius: var(--radius-xl);
  margin: 0 24px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 18px;
  position: relative;
}

.cta-banner h2 .hl { color: var(--lime); }

.cta-banner p {
  color: rgba(245,245,243,0.65);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.cta-form input[type="email"] {
  background: rgba(245,245,243,0.08);
  border: 1.5px solid rgba(245,245,243,0.2);
  color: var(--off-white);
  border-radius: var(--radius-full);
  padding: 14px 20px;
  font-size: 15px;
  min-width: 260px;
  font-family: var(--font);
}

.cta-form input[type="email"]::placeholder { color: rgba(245,245,243,0.4); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: rgba(245,245,243,0.6);
  padding: 64px 0 32px;
  margin-top: 96px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--near-black-border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--off-white);
  font-weight: 800;
  font-size: 18px;
}

.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }

.footer-tagline { max-width: 320px; font-size: 14px; margin-top: 12px; }

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--off-white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-col a:hover { color: var(--off-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
}

/* ---------- Legal / article pages ---------- */

.legal-hero {
  background: var(--black);
  color: var(--off-white);
  padding: 64px 0 48px;
}

.legal-hero .wrap { max-width: 760px; }

.legal-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.legal-hero p { color: rgba(245,245,243,0.6); font-size: 15px; margin: 0; }

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }

.legal-body strong { color: var(--text); }

.legal-body a { color: var(--lime-dark); font-weight: 700; text-decoration: underline; }

.legal-callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.legal-callout p { margin: 0; color: var(--text); font-size: 15px; }

/* ---------- Support page extras ---------- */

.contact-card {
  background: var(--black);
  color: var(--off-white);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin-bottom: 72px;
}

.contact-card h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.contact-card p {
  color: rgba(245,245,243,0.65);
  font-size: 16px;
  margin: 0 0 28px;
}

.faq-cat {
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--lime-dark);
  margin: 48px 0 16px;
  text-align: center;
}

.faq-cat:first-of-type { margin-top: 0; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--lime);
  border-width: 2px;
}

.pricing-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.pricing-card .price {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.pricing-card .tokens {
  color: var(--lime-dark);
  font-weight: 800;
  font-size: 15px;
  margin: -12px 0 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-card li::before {
  content: "✓";
  color: var(--lime-dark);
  font-weight: 800;
}

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.cost-table {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  gap: 16px;
}

.cost-row span:first-child {
  font-weight: 600;
  font-size: 15px;
}

.cost-row .cost-amount {
  font-weight: 800;
  color: var(--lime-dark);
  white-space: nowrap;
  font-size: 14px;
}
