/* FirstReply marketing site. System fonts, no external requests. */
:root {
  --ink: #0f1c2e;
  --ink-soft: #3d4d63;
  --muted: #64748b;
  --navy: #12304f;
  --navy-deep: #0b2038;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #dde4ee;
  --blue: #1d5fbf;
  --blue-soft: #e8f0fb;
  --amber: #f5a524;
  --amber-deep: #d98a0a;
  --green: #17855a;
  --green-soft: #e3f4ec;
  --shadow: 0 1px 2px rgba(15, 28, 46, .06), 0 8px 28px rgba(15, 28, 46, .08);
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #164a96; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }
.nav .btn { margin-left: 4px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #1b1300; border-bottom-color: transparent; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 14px 24px; border-radius: 12px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; line-height: 1.2; }
.btn-primary { background: var(--amber); color: #1b1300; box-shadow: 0 2px 0 var(--amber-deep); }
.btn-primary:hover { background: #ffb43a; color: #1b1300; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: .95rem; border-radius: 10px; }
.btn-block { width: 100%; }
.on-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 46em; margin: 0 auto 44px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #dbe8fb 0, transparent 60%), linear-gradient(#fff, var(--bg)); padding: 64px 0 80px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .lead { margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* Phone mockup */
.phone { width: min(340px, 100%); margin-inline: auto; background: #0e1726; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px rgba(11, 32, 56, .28); }
.phone-screen { background: #f3f5f9; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; }
.phone-top { background: #fff; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.phone-top b { display: block; font-size: .95rem; }
.phone-top span { font-size: .75rem; color: var(--muted); }
.chat { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: .92rem; line-height: 1.4; }
.msg.them { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.us { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.note { align-self: center; max-width: 94%; background: var(--green-soft); color: #0d5a3b; font-size: .8rem; font-weight: 600; text-align: center; border-radius: 12px; }
.chat .msg { animation: pop .35s ease both; }
.js .chat .msg { opacity: 0; animation: none; }
.js .chat .msg.show { opacity: 1; animation: pop .35s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.caption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }

/* Stats band */
.band { background: var(--navy-deep); color: #fff; padding: 56px 0; }
.band h2, .band h3 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--amber); line-height: 1; margin-bottom: 8px; }
.stat span { color: #c8d4e6; }
.source { color: #9fb0c8; font-size: .85rem; margin-top: 26px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.calc-in { padding: 32px; }
.calc-out { padding: 32px; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.field { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.field output { color: var(--blue); }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.calc-out .big { font-size: clamp(2.4rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; color: var(--amber); line-height: 1.05; }
.calc-out p { color: #d4deec; }
.fineprint { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.calc-out .fineprint { color: #9fb0c8; }

/* Pricing */
.toggle { display: inline-flex; background: #e9eef6; border-radius: 12px; padding: 4px; gap: 4px; }
.toggle button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--ink-soft); padding: 10px 18px; border-radius: 9px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 28, 46, .15); }
.badge { display: inline-block; background: var(--green-soft); color: #0d5a3b; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.badge-amber { background: #fff1d6; color: #7a4a00; }
.plan { max-width: 560px; margin-inline: auto; border: 2px solid var(--navy); position: relative; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.price b { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price s { color: var(--muted); font-size: 1.25rem; }
.price span { color: var(--ink-soft); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 20px 0 26px; }
.checks li { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }
.addon { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 2px dashed var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.addon:hover { border-color: #b8c6dc; }
.addon:has(input:checked) { border-style: solid; border-color: var(--blue); background: var(--blue-soft); }
.addon input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--blue); flex: none; }
.addon h3 { margin-bottom: .2em; font-size: 1.05rem; }
.addon p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.addon .amt { margin-left: auto; font-weight: 800; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; font-weight: 700; }
.total b { font-size: 1.9rem; letter-spacing: -.03em; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; background: var(--green-soft); border: 1px solid #bfe3d0; border-radius: 14px; padding: 18px 20px; color: #0d4a31; margin-top: 20px; }
.guarantee svg { width: 28px; height: 28px; flex: none; color: var(--green); }
.guarantee p { margin: 0; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 0 18px; color: var(--ink-soft); }
details > div p:last-child { margin-bottom: 0; }

/* Video */
.video-frame { max-width: 360px; margin-inline: auto; border-radius: 28px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame video { width: 100%; height: auto; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0, var(--navy-deep) 100%); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d4deec; max-width: 36em; margin-inline: auto; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--ink-soft); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 10px; color: var(--ink); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-soft); }
.legal-line { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: var(--muted); }

/* Prose (legal / long pages) */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.page-head { padding: 56px 0 24px; }
.next-steps { counter-reset: s; list-style: none; padding: 0; }
.next-steps li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }

@media (max-width: 900px) {
  .hero-grid, .g3, .g2, .calc, .foot-grid, .stats { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  section { padding: 56px 0; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 2px; }
  .nav .btn { margin: 8px 0 0; }
  .calc-in, .calc-out { padding: 24px; }
  .addon { flex-wrap: wrap; padding: 16px; }
  .addon > div { flex: 1 1 0; min-width: 0; }
  .addon .amt { margin-left: 38px; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chat .msg, .js .chat .msg.show { animation: none; opacity: 1; }
  .btn { transition: none; }
}
