/* Speakpaid — landing page. Clean, business-app aesthetic.
   Palette mirrors the app (brand green + warm off-white). */
:root {
  --green: #1f6f5c;
  --green-dark: #185849;
  --ink: #16231d;
  --muted: #6a746e;
  --bg: #ffffff;
  --bg-soft: #f6f5f1;   /* warm off-white section band */
  --bg-tint: #edf3f0;   /* faint green wash */
  --line: #e7e4dd;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(22, 35, 29, 0.04), 0 8px 30px rgba(22, 35, 29, 0.06);
  --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);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1rem; color: var(--ink); }
.muted { color: var(--muted); }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 5.5vw, 32px); }
/* Vertical only — must not zero out the horizontal gutter from .wrap on .section.wrap elements. */
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 650; color: var(--green); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .05s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); }

/* Header */
header.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--green); display: inline-grid; place-items: center; color: #fff; font-size: 15px; }
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.nav__links a:hover { color: var(--green); text-decoration: none; }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__right { gap: 12px; }
  /* Hamburger button */
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 9px; }
  .nav__toggle:hover { background: var(--bg-soft); }
  .nav__toggle svg { width: 24px; height: 24px; }
  /* Links collapse into a dropdown under the header */
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 26px rgba(17,24,39,0.08); padding: 4px clamp(22px, 5.5vw, 32px) 12px; display: none; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 2px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
}

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero .badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.hero .trust { margin-top: 26px; color: var(--muted); font-size: 0.92rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Placeholders — self-documenting asset slots */
.ph {
  position: relative; border-radius: var(--radius); display: grid; place-items: center;
  text-align: center; padding: 22px; color: var(--muted); font-size: 0.86rem;
  border: 1.5px dashed #c7d3ce; background: repeating-linear-gradient(45deg, #fbfbf9, #fbfbf9 12px, #f4f6f4 12px, #f4f6f4 24px);
}
.ph__tag { position: absolute; top: 10px; left: 10px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.ph--shot .ph__tag { background: var(--green); color: #fff; }
.ph--illus { border-color: #e4c9a8; background: repeating-linear-gradient(45deg, #fdfbf7, #fdfbf7 12px, #f7f1e8 12px, #f7f1e8 24px); }
.ph--illus .ph__tag { background: #c98a3d; color: #fff; }
.ph__body { max-width: 34ch; }
.ph__body b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 0.95rem; }
.ph--phone { aspect-ratio: 320 / 660; max-width: 340px; margin: 0 auto; border-radius: 34px; box-shadow: var(--shadow); }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--bleed { min-height: 180px; }

/* Screenshots (raw phone captures, lightly framed) */
.shot { display: block; width: 100%; max-width: 264px; height: auto; margin: 0 auto; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot--hero { max-width: 300px; }
.shot-pair { display: flex; gap: 16px; justify-content: center; align-items: flex-start; max-width: 100%; }
.shot-pair .shot { flex: 1 1 0; min-width: 0; max-width: 200px; border-radius: 24px; }
@media (max-width: 420px) { .shot-pair { gap: 10px; } }

/* Illustrations */
.illus { display: block; margin: 0 auto; height: auto; }
.illus--step { max-width: 128px; margin-bottom: 14px; }
.illus--feature { max-width: 300px; width: 100%; }
.illus--trades { max-width: 560px; width: 100%; margin: 8px auto 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }
.step__num { width: 30px; height: 30px; border-radius: 999px; background: var(--bg-tint); color: var(--green); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; margin-bottom: 12px; }
.step .ph--square { margin-bottom: 14px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 100px); }
.feature--flip .feature__media { order: -1; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature--flip .feature__media { order: 0; } }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; }
.feature li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink); }
.feature li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--green); background: var(--bg-tint); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Trades grid */
.trades { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 820px) { .trades { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .trades { grid-template-columns: repeat(2, 1fr); } }
.trade { text-align: center; }
.trade .ph--square { border-radius: 999px; max-width: 96px; margin: 0 auto 10px; }
.trade span { font-size: 0.92rem; font-weight: 550; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 40px auto 0; }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: #fff; }
.plan--pro { border-color: var(--green); box-shadow: var(--shadow); position: relative; }
.plan--pro::after { content: "Recommended"; position: absolute; top: -12px; right: 22px; background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }
.plan .price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 0.96rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "–"; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; color: var(--muted); }

/* CTA band */
.cta { background: var(--green); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); max-width: 46ch; margin-inline: auto; }
.cta .btn--primary { background: #fff; color: var(--green); }
.cta .btn--primary:hover { background: #f0efe9; }

/* App Store badge (Apple-style: mark + two-line label) */
.storebadge { display: inline-flex; align-items: center; gap: 9px; background: #000; color: #fff; padding: 9px 16px; border-radius: 9px; line-height: 1; }
.storebadge__logo { width: 22px; height: 22px; fill: #fff; flex: none; }
.storebadge__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.storebadge__txt small { font-size: 0.6rem; font-weight: 400; letter-spacing: 0.01em; }
.storebadge__txt b { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.storebadge:hover { text-decoration: none; opacity: 0.88; }
.storebadge--sm { padding: 6px 12px; gap: 7px; border-radius: 8px; }
.storebadge--sm .storebadge__logo { width: 17px; height: 17px; }
.storebadge--sm .storebadge__txt small { font-size: 0.5rem; }
.storebadge--sm .storebadge__txt b { font-size: 0.9rem; }

/* Document pages (help / privacy / terms / support) */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px; }
.doc .back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin: -6px 0 28px; }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4em; }
.prose a { text-decoration: underline; }
.prose .note { background: var(--bg-tint); border: 1px solid #d6e4de; border-radius: var(--radius); padding: 14px 18px; font-size: 0.92rem; color: #2b5348; margin: 24px 0; }
.help-shot { display: block; width: 100%; max-width: 240px; height: auto; margin: 20px auto; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.callout { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--green); background: var(--bg-tint); padding: 3px 10px; border-radius: 999px; margin: 4px 0 2px; }

/* Help hub cards */
.help-groups { display: grid; gap: 34px; margin-top: 32px; }
.help-group h2 { font-size: 1.15rem; margin: 0 0 12px; }
.help-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .help-cards { grid-template-columns: 1fr; } }
.help-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.help-card:hover { border-color: var(--green); text-decoration: none; background: var(--bg-soft); }
.help-card b { display: block; color: var(--ink); font-size: 0.98rem; }
.help-card span { color: var(--muted); font-size: 0.88rem; }
.help-card .pro { color: var(--green); font-weight: 700; font-size: 0.72rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: 0.92rem; }
.foot__grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__links a { color: var(--muted); }
.foot__links a:hover { color: var(--green); }
