:root {
  --accent: #d4460c;
  --accent-hover: #bf3d09;
  --on-accent: #ffffff;
  --accent-soft: #fdeee6;
  --bg: #ffffff;
  --bg-2: #f7f7f7;
  --paper: #ffffff;
  --ink: #4a4a4a;
  --ink-strong: #3a3a3a;
  --muted: #8f8f8f;
  --line: #e4e4e4;
  --art: #b9b9b9;
  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink-strong); margin: 0; letter-spacing: -.01em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { display: flex; justify-content: center; padding: 24px 16px 0; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--ink-strong); text-decoration: none; letter-spacing: -.02em; }
.logo::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 3px; }

.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font: 900 16px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; border: 0; border-radius: 6px; padding: 20px 40px; cursor: pointer; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); transition: background-color .15s ease, transform .1s ease; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-big { font-size: 18px; padding: 22px 48px; }
.link { background: none; border: 0; color: var(--muted); font: 700 15px var(--sans); cursor: pointer; padding: 8px; }
.link:hover { color: var(--ink-strong); }
.fine { font-size: 13px; color: var(--muted); }

.hero { text-align: center; padding: clamp(48px, 9vw, 96px) 16px 0; max-width: 980px; margin: 0 auto; }
.hero h1 { font-size: clamp(27px, 8.6vw, 68px); line-height: 1.15; text-wrap: balance; }
.hero h1 span { display: block; }
.tagline { text-wrap: balance; margin-top: 20px; font-size: clamp(17px, 2vw, 20px); }
.hero .btn { margin-top: 40px; }
.hint { margin-top: 14px; font-size: 14px; color: var(--muted); }
.art { display: block; width: 100%; max-width: 640px; margin: 48px auto 0; color: var(--art); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 980px; margin: 0 auto; padding: 72px 16px; text-align: center; border-top: 1px solid var(--line); }
.feature svg { width: 52px; height: 52px; color: var(--accent); }
.feature h2 { font-size: 20px; margin-top: 14px; }
.feature p { margin-top: 8px; font-size: 16px; }

.stat { background: var(--bg-2); text-align: center; padding: 72px 16px; }
.stat > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.stat .big { font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); color: var(--ink-strong); line-height: 1.3; }
.stat .big span { color: var(--accent); }
.stat p + p { margin-top: 16px; }
.stat .btn { margin-top: 32px; }

.faq { max-width: 680px; margin: 0 auto; padding: 72px 16px 40px; }
.faq h2 { font-size: 30px; text-align: center; margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; color: var(--ink-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 56px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: -6px 0 0; padding-bottom: 18px; font-size: 16px; }

.foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 16px; padding: 24px 16px 40px; font-size: 14px; color: var(--muted); }
.foot a { display: inline-block; padding: 12px 4px; }

/* flow: a chat thread, one question at a time */
.flow { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; animation: fade .2s ease-out; }
.chat-top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px 0 28px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); flex: none; }
.chat-top .logo { font-size: 24px; }
.close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.close:hover { background: var(--line); }
.progress { height: 3px; background: var(--line); flex: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.chat { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.chat-inner { max-width: 560px; margin: 0 auto; padding: 32px 28px 56px; display: grid; gap: 28px; }

.bot { font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--ink-strong); }
.bot label { cursor: text; }
.thread { display: grid; gap: 28px; }
.thread:empty { display: none; }
.turn { display: grid; gap: 20px; animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.you { justify-self: end; max-width: 85%; background: var(--bg-2); color: var(--ink-strong); border: 0; border-radius: 28px; padding: 14px 24px; font: 400 18px/1.4 var(--sans); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.you:hover { background: var(--line); }

.step { display: grid; gap: 20px; animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.choices { display: grid; gap: 14px; }
.choice { position: relative; display: flex; align-items: center; gap: 18px; min-height: 76px; padding: 14px 20px; border: 1px solid #d6d6d6; border-radius: 8px; background: var(--paper); cursor: pointer; user-select: none; -webkit-user-select: none; transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: var(--ink-2, #888); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ic { width: 40px; height: 40px; flex: none; color: var(--ink); }
.choice .label { flex: 1; font-size: 19px; font-weight: 700; color: var(--ink-strong); }
.choice .dot { width: 26px; height: 26px; flex: none; border: 2px solid #c4c4c4; border-radius: 6px; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:checked) .dot { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.step input[type="text"], .step input[type="email"], .step textarea {
  width: 100%; font: 400 18px/1.4 var(--sans); color: var(--ink-strong); background: var(--paper);
  border: 1px solid #d6d6d6; border-radius: 8px; padding: 16px 18px; min-height: 60px;
}
.step textarea { resize: vertical; min-height: 128px; }
.step input:focus, .step textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
::placeholder { color: var(--muted); }
.btn-full { width: 100%; }
.step .fine { margin-top: -8px; }
.skip { justify-self: center; margin-top: -8px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 17px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.form-error { color: var(--accent); font-size: 15px; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; justify-items: center; }
.done svg { width: 64px; height: 64px; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* privacy page */
.doc { max-width: 680px; margin: 0 auto; padding: 48px 16px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); }
.doc h2 { font-size: 21px; margin: 28px 0 6px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 20px; margin: 0; }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; gap: 32px; padding: 56px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow, .step, .turn { animation: none; }
  .progress span, .btn, .choice { transition: none; }
}
