/* SmallTalk marketing site. Plain and direct: white page, dark ink, one green (the "answer" button),
   one typeface. The recorded call player is the only dark thing above the fold. */

@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree.4ba7d3d096.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --soft: #f4f6f5;
  --ink: #0d1512;
  --ink-2: #3f4a45;
  --muted: #6a7570;
  --line: #e3e7e5;
  --line-strong: #cdd4d0;
  --green: #1ec677;
  --green-press: #17b269;
  --green-ink: #0a7a45;
  --green-soft: #e7f8ef;
  --dark: #0c1512;
  --dark-2: #16211c;
  --dark-line: #26332d;
  --on-dark: #eef3f0;
  --on-dark-2: #a3b1aa;
  --warn: #c2410c;
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 44px); margin-inline: auto; }
.fine { font-size: 15px; color: var(--muted); }
section { padding-block: clamp(60px, 8vw, 104px); }
.center { text-align: center; }
.center h2, .center .sub { margin-inline: auto; }
.sub { margin-top: 14px; max-width: 60ch; color: var(--ink-2); font-size: 19px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.mark { width: 32px; height: 32px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 16px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav-phone { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  font: 700 18px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #05130c; }
.btn-primary:hover { background: var(--green-press); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 80px); text-align: center; background: radial-gradient(900px 420px at 50% -80px, var(--green-soft), rgba(231, 248, 239, 0) 70%); }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.03; letter-spacing: -0.035em; max-width: 17ch; margin-inline: auto; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 56ch; margin: 22px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.assure { margin-top: 16px; font-size: 15px; color: var(--muted); }
.callit { margin-top: 18px; font-size: 17px; color: var(--ink-2); }
.callit a { font-weight: 800; color: var(--ink); text-decoration-color: var(--green); text-underline-offset: 4px; white-space: nowrap; }

.rise { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.r1 { animation-delay: 0.04s; } .r2 { animation-delay: 0.12s; } .r3 { animation-delay: 0.2s; } .r4 { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Recorded calls: one dark player, one call at a time. */
.calls { margin: clamp(36px, 5vw, 56px) auto 0; max-width: 920px; text-align: left; }
.calls-panel { background: var(--dark); color: var(--on-dark); border-radius: 24px; padding: clamp(18px, 3vw, 30px); box-shadow: 0 40px 80px -40px rgba(12, 21, 18, 0.55); }
.call-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.call-tab { font: 600 15px/1 var(--font); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--dark-line); background: transparent; color: var(--on-dark-2); cursor: pointer; }
.call-tab:hover { color: var(--on-dark); }
.call-tab[aria-selected='true'] { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }
.call[hidden] { display: none; }
.call-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.play { width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--green); color: #05130c; cursor: pointer; display: grid; place-items: center; transition: background-color 0.15s ease, transform 0.15s ease; }
.play:hover { background: #3ad98d; transform: scale(1.04); }
.play svg { width: 28px; height: 28px; }
.play .i-pause, .playing .play .i-play { display: none; }
.playing .play .i-pause { display: block; }
.call-title { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.call-where { font-size: 15px; color: var(--on-dark-2); margin-top: 4px; }
.wave { position: relative; margin-top: 22px; height: 64px; }
.bars { width: 100%; height: 100%; }
.bars rect { fill: #33433c; }
.bars rect.on { fill: var(--green); }
.seek-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; min-height: 0; border: 0; }
.wave:focus-within { outline: 2px solid var(--green); outline-offset: 6px; border-radius: 8px; }
.call-time { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--on-dark-2); }
.caption { margin-top: 14px; min-height: 3.1em; font-size: clamp(17px, 2vw, 20px); line-height: 1.45; color: var(--on-dark); }
.cap-who { font-weight: 700; color: var(--green); margin-right: 8px; }
.cap-who.caller { color: #f2c36b; }
.call-result { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--dark-2); border: 1px solid var(--dark-line); font-size: 16px; line-height: 1.45; color: var(--on-dark-2); }
.call-result strong { display: block; color: var(--on-dark); font-weight: 700; margin-bottom: 2px; }
.call-script { margin-top: 14px; border: 0; }
.call-script summary { display: inline-block; list-style: none; cursor: pointer; padding: 0; font: 600 15px/1.4 var(--font); color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 4px; }
.call-script summary::-webkit-details-marker { display: none; }
.call-script summary::after { content: none; }
.call-script summary:hover { color: var(--on-dark); }
.transcript { list-style: none; margin: 14px 0 0; padding: 0; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--dark-line); }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 9px 8px; border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--on-dark-2); }
.line .who { font-weight: 700; color: var(--on-dark-2); }
.line.assistant .who { color: var(--green); }
.line:hover, .line.now { background: var(--dark-2); color: var(--on-dark); }
.call audio { width: 100%; margin-top: 16px; }
.calls-note { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }

/* Facts */
.facts { padding-block: 0 clamp(48px, 6vw, 72px); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.facts-row > div { padding: 22px 24px; }
.facts-row > div + div { border-left: 1px solid var(--line); }
.facts-row strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.facts-row span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* What it does */
.does { background: var(--soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(30px, 4vw, 48px); text-align: left; }
.feat, .card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; }
.ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); margin-bottom: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3, .card h3 { margin-bottom: 8px; }
.feat p, .card p { color: var(--ink-2); font-size: 17px; }
.who { background: var(--bg); }
.who .feat { background: var(--soft); border-color: transparent; }

/* How */
.steps { list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: left; }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 19px; margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 17px; }

/* Pricing and the estimate tool. Prices come from site.config.json. */
.pricing { background: var(--soft); }
.estimator { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 18px; margin-top: clamp(28px, 4vw, 44px); align-items: start; text-align: left; }
.est-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); display: grid; gap: 24px; }
.est-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 17px; }
.est-field output { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.est-field input[type='range'] { display: block; padding: 0; border: 0; border-radius: 0; min-height: 36px; background: transparent; accent-color: var(--green-ink); cursor: pointer; }
.est-field input[type='range']:focus { box-shadow: none; }
.est-addons { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 22px 0 0; display: grid; gap: 18px; min-width: 0; }
.est-addons legend { font-size: 19px; font-weight: 700; padding: 0 12px 0 0; }
.est-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: 16px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.est-check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--green-ink); }
.est-check strong, .est-num strong { color: var(--ink); }
.est-sub { padding-left: 34px; }
.est-num { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding-left: 34px; }
.est-num label { font-weight: 400; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.est-num select { width: 84px; }
.est-total { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); position: sticky; top: 92px; }
.est-total h3 { color: var(--on-dark-2); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.est-total .amount { font-size: clamp(60px, 7vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.est-total .amount span + span { font-size: 20px; font-weight: 500; letter-spacing: 0; color: var(--on-dark-2); margin-left: 4px; }
.est-total ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: 16px; }
.est-total li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--dark-line); color: var(--on-dark-2); }
.est-total li span:last-child { color: var(--on-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-total .fine { color: var(--on-dark-2); margin-bottom: 18px; }
.est-total .btn { width: 100%; }
.price-notes { list-style: none; padding: 0; margin: clamp(28px, 3.6vw, 40px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 32px; text-align: left; }
.price-notes li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16px; }
.price-notes li::before { content: ''; position: absolute; left: 4px; top: 0.42em; width: 13px; height: 7px; border-left: 2.5px solid var(--green-ink); border-bottom: 2.5px solid var(--green-ink); transform: rotate(-45deg); }
.price-notes strong { color: var(--ink); }

/* Questions */
.answers .wrap { width: min(780px, 100% - 44px); }
.qa { margin-top: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); text-align: left; }
details { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 13px; font-size: 28px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: '\2212'; }
details p { padding: 0 44px 22px 0; color: var(--ink-2); }
details p a { color: var(--green-ink); font-weight: 600; }

/* Start */
.start { background: var(--dark); color: var(--on-dark); }
.start-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.start-copy p { margin-top: 16px; color: var(--on-dark-2); max-width: 36ch; }
.start-copy ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; color: var(--on-dark); font-size: 17px; }
.start-copy li { position: relative; padding-left: 28px; }
.start-copy li::before { content: ''; position: absolute; left: 3px; top: 0.45em; width: 13px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.start-phone a { font-size: 24px; font-weight: 800; color: var(--on-dark); text-decoration-color: var(--green); text-underline-offset: 5px; white-space: nowrap; }
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; background: var(--bg); color: var(--ink); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label { font-size: 15px; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: 400 18px/1.3 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; min-height: 52px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px var(--green-soft); }
.bad { border-color: var(--warn); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.consent { flex: 1; min-width: 220px; font-size: 14px; color: var(--muted); }
.form-msg { font-weight: 700; min-height: 1.5em; }
.form-msg.ok { color: var(--green-ink); }
.form-msg.err { color: var(--warn); }
.lead.sent .field, .lead.sent .form-foot { display: none; }
.lead.sent .form-msg { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; padding: 26px 4px; }

/* Footer */
.foot { background: var(--dark); color: var(--on-dark-2); border-top: 1px solid var(--dark-line); padding-block: 28px 36px; font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.foot-brand { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--on-dark); }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot a { color: var(--on-dark-2); text-underline-offset: 3px; }
.foot a:hover { color: var(--on-dark); }

/* Plain pages (privacy, terms, 404) */
.page { padding-block: clamp(40px, 6vw, 80px); }
.page .wrap { width: min(760px, 100% - 44px); }
.page h1 { font-size: clamp(34px, 5vw, 52px); max-width: none; margin-inline: 0; }
.page .meta { color: var(--muted); font-size: 15px; margin: 10px 0 30px; }
.page h2 { font-size: 26px; margin: 38px 0 10px; }
.page h3 { font-size: 20px; margin: 24px 0 6px; }
.page p, .page li { color: var(--ink-2); margin-bottom: 10px; }
.page ul { padding-left: 22px; }
.page a { color: var(--green-ink); }
.page a.btn { color: #05130c; }
.page .box { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 18px 0; }
.page address { font-style: normal; color: var(--ink-2); }

@media (max-width: 900px) {
  .nav { display: none; }
  .top-row .btn { margin-left: auto; }
  .start-grid, .estimator { grid-template-columns: 1fr; }
  .est-total { position: static; }
  .grid-3, .steps, .price-notes { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts-row > div + div { border-left: 0; }
  .facts-row > div:nth-child(even) { border-left: 1px solid var(--line); }
  .facts-row > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .lead { grid-template-columns: 1fr; }
  .line { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .cta-row .btn { width: 100%; }
  .play { width: 58px; height: 58px; }
  .call-tabs { flex-wrap: nowrap; gap: 6px; }
  .call-tab { padding: 9px 12px; font-size: 14px; white-space: nowrap; }
  .call-head { gap: 14px; }
  .wave { height: 52px; }
  .facts-row strong { font-size: 22px; }
  .facts-row > div { padding: 18px 16px; }
  .est-sub, .est-num { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .btn, .play { transition: none; }
}
