/* cpa.one - minimalist, no framework */
:root {
  --ink: #0f1b2d;
  --ink-2: #3b4757;
  --muted: #6b7686;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --accent: #0e8a74;
  --accent-soft: #e6f4f1;
  --warn: #b4531a;
  --radius: 10px;
  --max: 1080px;
  --font: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf3; --ink-2: #c3ccd7; --muted: #8e99a8; --line: #26303d;
    --bg: #0d131b; --bg-soft: #131b25; --accent: #2bbf9f; --accent-soft: #11302b; --warn: #e08a4f;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-2); }
.muted { color: var(--muted); font-size: .92rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); font-weight: 600; margin-bottom: .8em; }

/* header */
header.site { position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 20; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 1.55rem; letter-spacing: -0.04em; color: var(--ink); display: inline-flex; align-items: baseline; }
.logo:hover { text-decoration: none; }
.logo .dot { width: .3em; height: .3em; background: var(--accent); border-radius: 2px; margin: 0 .06em 0 .08em; display: inline-block; }
.logo .one { font-weight: 400; }
.logo.small { font-size: 1.2rem; }
nav.main a { color: var(--ink-2); margin-left: 22px; font-size: .95rem; }
nav.main a.btn { color: #fff; }
@media (max-width: 760px) { nav.main a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 7px 14px; font-size: .88rem; }

/* sections */
section { padding: 84px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: 96px 0 72px; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.stages span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--ink-2); }

.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.card .price { font-weight: 600; color: var(--ink); margin-top: auto; }
.card.service { display: flex; flex-direction: column; }
.card ul { padding-left: 18px; margin: 0 0 1em; color: var(--ink-2); }
.card li { margin-bottom: 4px; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; margin-bottom: 10px; }

.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .9rem; margin-bottom: 12px; }

/* deadline calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
label { display: block; font-size: .88rem; font-weight: 600; margin: 14px 0 6px; }
select, input[type=date], input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .95rem;
  background: var(--bg); color: var(--ink);
}
.result { border-left: 3px solid var(--accent); padding: 18px 20px; background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.result .big { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.result.late { border-color: var(--warn); }
.result.late .big { color: var(--warn); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; font-size: .9rem; color: var(--muted); }
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* chat widget */
#chat-btn { position: fixed; right: 20px; bottom: 20px; z-index: 50; border-radius: 999px; padding: 13px 20px; box-shadow: 0 6px 24px rgba(15, 27, 45, .18); }
#chat { position: fixed; right: 20px; bottom: 80px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(15, 27, 45, .22);
  display: none; flex-direction: column; z-index: 50; overflow: hidden; }
#chat.open { display: flex; }
#chat .head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
#chat .head strong { font-size: .95rem; }
#chat .head button { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
#chat .log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 9px 13px; border-radius: 12px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { background: var(--bg-soft); border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--accent); color: #fff; align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); border-radius: 999px; padding: 5px 11px; font-size: .82rem; cursor: pointer; }
.chips button:hover { border-color: var(--accent); color: var(--accent); }
#chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
#chat form input { flex: 1; }
#chat .note { font-size: .74rem; color: var(--muted); padding: 0 14px 10px; }
