/* ReplyFlow: warm ivory / deep evergreen (Codex design study 01, 2026-09-21). */
:root {
  --paper: #f5f2ea;
  --white: #ffffff;
  --ink: #173c35;
  --action: #205a49;
  --muted: #56665e;
  --line: #d5ddd5;
  --soft: #e7ede6;
  --bubble-agent: #eef3ec;
  --bubble-caller: #ffffff;
  --radius: 14px;
  --wrap: 1160px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 56px; } }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid #86a981; outline-offset: 3px; }

/* Header / footer */
header.site { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { font-weight: 750; font-size: 22px; letter-spacing: -0.6px; text-decoration: none; white-space: nowrap; }
.wordmark span { font-weight: 400; }
nav.site { display: flex; align-items: center; gap: 22px; font-size: 16px; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }
nav.site a.btn, nav.site a.btn:hover { color: #fff; }
@media (max-width: 640px) { nav.site a.hide-sm { display: none; } nav.site { gap: 14px; } }
footer.site { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; font-size: 15px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--action); color: #fff; font-weight: 650; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--ink); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translate(2px, -2px); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.link { font-weight: 650; text-underline-offset: 4px; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; color: #577264; margin: 0 0 14px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 650; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 650; }
h3 { font-size: 20px; font-weight: 700; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 60ch; }
section { padding: 88px 0 0; }
@media (max-width: 700px) { section { padding-top: 64px; } }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 14px 0 0; }

/* Hero */
.hero { padding: 72px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero .lede { margin: 22px 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 18px; }
@media (max-width: 900px) { .hero { padding-top: 44px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Hero scene: phone + booked card */
.scene { position: relative; min-height: 360px; display: grid; place-items: center; }
.scene::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--soft); }
.phone { position: relative; width: 190px; height: 330px; border: 10px solid var(--ink); border-radius: 34px; background: #fff; transform: rotate(-8deg) translateX(-60px); display: grid; place-items: center; text-align: center; }
.phone .time { position: absolute; top: 26px; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.phone .ring { width: 72px; height: 72px; border-radius: 50%; background: var(--action); display: grid; place-items: center; }
.phone .ring svg { width: 34px; height: 34px; }
.phone .who { position: absolute; bottom: 44px; font-size: 15px; font-weight: 650; }
.booked { position: absolute; right: 0; top: 50%; transform: translate(10px, -40%); width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: 0 12px 30px rgba(23, 60, 53, .10); }
.booked .tag { font-size: 12px; font-weight: 750; letter-spacing: 1.5px; color: var(--action); display: flex; align-items: center; gap: 8px; }
.booked .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f9b6e; }
.booked strong { display: block; font-size: 20px; margin: 10px 0 6px; }
.booked p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.scene .caption { position: absolute; bottom: -6px; font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .phone { transform: rotate(-8deg) translateX(-40px) scale(.85); } .booked { width: 210px; transform: translate(0, -30%); } }

/* Rows / steps */
.rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.rows > div { padding: 28px 28px 8px 0; }
.rows > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.rows .num { font-size: 14px; font-weight: 750; color: var(--action); margin-bottom: 10px; }
.rows p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 800px) { .rows { grid-template-columns: 1fr; } .rows > div, .rows > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); } }
.kicker { font-size: clamp(22px, 2.6vw, 28px); font-weight: 650; margin-top: 36px; }

.quote { margin: 36px 0 0; padding: 24px 28px; background: #fff; border-left: 3px solid var(--action); border-radius: 0 12px 12px 0; max-width: 760px; }
.quote p { margin: 0; font-size: 19px; }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--muted); }

/* Demo band */
.band { background: var(--ink); color: #fff; border-radius: 18px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.band .eyebrow { color: #bbd2bd; }
.band p { color: #d3e2d6; }
.band .btn { background: #fff; color: var(--ink); }
.band .btn:hover { background: var(--soft); }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 36px 26px; } }

/* Agent cards with CloudTalk-style conversation reveal */
.group { margin-top: 44px; }
.group h3.group-title { font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 750; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-height: 280px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.card:hover, .card:focus-within, .card.open { border-color: #8fb0a0; box-shadow: 0 10px 28px rgba(23, 60, 53, .08); }
.card .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--action); }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 18px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--action); letter-spacing: .2px; }
.pill.star { background: var(--action); color: #fff; }
.card .line { margin: 0; color: var(--muted); font-size: 16px; }
.card .front, .card .chat { transition: opacity .25s ease, transform .25s ease; }
.card .chat { position: absolute; inset: 0; padding: 22px 22px 18px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; opacity: 0; transform: translateY(8px); pointer-events: none; }
.card:hover .chat, .card:focus-within .chat, .card.open .chat { opacity: 1; transform: none; pointer-events: auto; }
.card:hover .front, .card:focus-within .front, .card.open .front { opacity: 0; }
.bubble { max-width: 90%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; margin: 0 0 10px; }
.bubble.agent { background: var(--bubble-agent); border-top-left-radius: 4px; }
.bubble.caller { background: var(--paper); margin-left: auto; border-top-right-radius: 4px; }
.chat .foot { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.chat .foot .icon { width: 30px; height: 30px; }
.chat .foot .icon svg { width: 16px; height: 16px; }
.chat .foot .via { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.card .toggle { position: absolute; inset: 0; width: 100%; background: transparent; border: 0; cursor: pointer; z-index: 1; }
.card.open .toggle, .card:hover .toggle { z-index: 0; }
.hint-tap { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Agents page detail list */
.detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.detail h2 { font-size: clamp(26px, 3vw, 34px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.detail dl { margin: 18px 0 0; }
.detail dt { font-weight: 700; margin-top: 14px; }
.detail dd { margin: 4px 0 0; color: var(--muted); }
.detail .sample { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; align-self: start; }
.detail .sample .label { font-size: 12px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; gap: 20px; } }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a { font-size: 15px; text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.jump a:hover { border-color: var(--action); }

/* Calculator (from the 9/22 concept) */
.calculator { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calculator .inputs { padding: 30px 36px; }
.calc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calc-head h3 { font-size: 18px; }
.textbtn { font: inherit; font-size: 14px; background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px; }
.control { margin: 0 0 22px; }
.labelrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.labelrow label { font-size: 16px; font-weight: 650; }
.number { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; background: #fafbf8; gap: 3px; font-weight: 650; }
.number input { width: 72px; border: 0; font: 650 17px var(--font); background: transparent; color: inherit; text-align: right; appearance: textfield; -moz-appearance: textfield; }
.number input::-webkit-inner-spin-button, .number input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=range] { width: 100%; accent-color: var(--action); margin: 14px 0 2px; }
.calc-hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.calculator .result { background: var(--ink); color: #fff; padding: 34px 36px; }
.result .eyebrow { color: #bbd2bd; }
.amount { font-size: clamp(44px, 5vw, 66px); line-height: 1.1; letter-spacing: -2px; margin: 16px 0 6px; font-variant-numeric: tabular-nums; font-weight: 650; }
.result-caption { color: #d3e2d6; margin: 0 0 22px; font-size: 16px; }
.breakdown { margin: 0; }
.breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #446158; font-size: 15px; }
.breakdown dt { color: #d4e3d7; }
.breakdown dd { margin: 0; font-weight: 650; }
.footnote { color: #bfd0c6; font-size: 13px; margin: 18px 0 0; }
details.how { border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; }
details.how summary { cursor: pointer; font-weight: 650; }
details.how p { color: var(--muted); }
@media (max-width: 760px) { .calculator { grid-template-columns: 1fr; } .calculator .inputs, .calculator .result { padding: 26px 22px; } }

/* Trust list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.checks li { padding: 18px 0 18px 36px; border-top: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 8px; border-left: 2.5px solid var(--action); border-bottom: 2.5px solid var(--action); transform: rotate(-45deg); }
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--action); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 70ch; }

.closing { text-align: center; padding-top: 104px; }
.closing h2 { max-width: 760px; margin: 0 auto 28px; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; padding-top: 56px; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; } .form-wrap form { order: -1; } }
form.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: 16px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 17px var(--font); color: var(--ink); padding: 12px 14px; border: 1px solid #c9d3cb; border-radius: 8px; background: #fbfcfa; }
.field textarea { min-height: 96px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--action); flex: none; }
.hp { position: absolute; left: -9999px; }
#form-status { margin: 16px 0 0; font-size: 16px; min-height: 1.5em; }
#form-status.ok { color: var(--action); font-weight: 650; }
.steps-list { padding-left: 22px; color: var(--muted); }
.steps-list li { margin-bottom: 10px; }
.steps-list strong { color: var(--ink); }

/* Legal */
.legal { max-width: 760px; padding-top: 56px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: #34524a; }
.provisional { background: #fff7e0; border: 1px solid #ecd9a0; border-radius: 10px; padding: 12px 16px; font-size: 15px; margin-top: 20px; }

.center { text-align: center; }
.page-hero { padding: 64px 0 8px; }
.page-hero .lede { margin-top: 18px; }
