:root {
  --bg: #f6f4ee;
  --paper: #ffffff;
  --ink: #17221d;
  --muted: #5b6b63;
  --line: #e2ded2;
  --brand: #0f7a55;
  --brand-ink: #ffffff;
  --brand-soft: #e3f2ea;
  --accent: #e8a33d;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --err: #c0392b;
  --err-soft: #fbeae7;
  --warn-soft: #fdf3e1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(23,34,29,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101613; --paper: #18201c; --ink: #e8efe9; --muted: #9db0a5; --line: #2a3530;
    --brand: #35b585; --brand-ink: #08130e; --brand-soft: #173328; --accent: #f0b65a;
    --err-soft: #3a1d1a; --warn-soft: #3a2d15; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* top */
.disclaimer {
  background: var(--ink); color: var(--bg); font-size: 13px; text-align: center; padding: 7px 16px;
}
.disclaimer a { color: var(--accent); }
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 18px; }
.logo .mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.logo .go { color: var(--brand); }
.spacer { flex: 1; }
.langs { display: flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: none; color: var(--muted); padding: 4px 10px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
nav.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; margin-right: 14px; }
@media (max-width: 720px) { nav.links { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; min-height: 46px;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { padding: 7px 12px; min-height: 34px; font-size: 14px; border-radius: 9px; }
.btn.danger { background: var(--err); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.lead { font-size: 19px; color: var(--muted); max-width: 46ch; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.status-card .pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.status-card .pill.open { background: var(--brand-soft); color: var(--brand); }
.status-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: 14px; }
.status-card dt { color: var(--muted); }
.status-card dd { margin: 0; font-weight: 700; }
.free-band { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; }
.free-band strong { color: var(--brand); font-size: 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
ul.check, ul.cross { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.check li, ul.cross li { padding-left: 28px; position: relative; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
ul.cross li::before { content: "✕"; position: absolute; left: 0; color: var(--err); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; }
details.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; }
footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* forms */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 3px; }
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: inherit; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.field.bad input, .field.bad select { border-color: var(--err); background: var(--err-soft); }
.field .err { color: var(--err); font-size: 13px; margin-top: 3px; display: none; }
.field.bad .err { display: block; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.inline-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.inline-check input { margin-top: 4px; }

/* stepper */
.stepper { display: flex; gap: 6px; margin: 20px 0 24px; overflow-x: auto; padding-bottom: 4px; }
.stepper button { flex: 1 0 auto; border: 1px solid var(--line); background: var(--paper); color: var(--muted); padding: 8px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.stepper button[aria-current="step"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.stepper button.done { color: var(--brand); border-color: var(--brand); }
.pane { display: none; }
.pane.active { display: block; }
.nav-btns { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.person { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 10px 0; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.err { background: var(--err-soft); color: var(--err); }
.notice.ok { background: var(--brand-soft); color: var(--brand); }

/* photo checker */
.photo-box { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
@media (max-width: 560px) { .photo-box { grid-template-columns: 1fr; } }
.photo-frame { position: relative; width: 220px; aspect-ratio: 1; background: var(--line); border-radius: 10px; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame .guide { position: absolute; inset: 0; pointer-events: none; }
.photo-frame .head-band { position: absolute; left: 18%; right: 18%; top: 15.5%; height: 19%; border-top: 2px dashed rgba(232,163,61,.95); border-bottom: 2px dashed rgba(232,163,61,.95); }
.photo-frame .eye-band { position: absolute; left: 0; right: 0; top: 31%; height: 13%; background: rgba(15,122,85,.18); border-top: 1px solid rgba(15,122,85,.8); border-bottom: 1px solid rgba(15,122,85,.8); }
.photo-frame .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; }
.checks li::before { font-weight: 800; margin-right: 6px; }
.checks li.ok::before { content: "✓"; color: var(--ok); }
.checks li.warn::before { content: "!"; color: var(--warn); }
.checks li.error::before { content: "✕"; color: var(--err); }
.checks li .v { color: var(--muted); font-size: 12px; margin-left: 4px; }
.legend { font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 8px; margin-right: 4px; vertical-align: middle; }

/* admin */
.admin-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.tabs { display: flex; gap: 6px; }
.tabs button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 7px 14px; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.pipeline { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 8px; margin-bottom: 18px; overflow-x: auto; }
.pipeline button { text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.pipeline button[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pipeline .num { font-size: 24px; font-weight: 800; }
.pipeline .lbl { font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--brand-soft); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(640px, 100%); background: var(--bg); border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(0,0,0,.15); overflow-y: auto; padding: 20px 16px 60px; z-index: 50; transform: translateX(100%); transition: transform .2s; }
.drawer.open { transform: none; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 6px; } }
.notes { display: grid; gap: 8px; margin: 10px 0; }
.notes div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.photos { display: flex; gap: 12px; flex-wrap: wrap; }
.photos figure { margin: 0; }
.photos figcaption { font-size: 12px; color: var(--muted); }
.photos .photo-frame { width: 160px; }
.login { max-width: 360px; margin: 80px auto; }
.hidden { display: none !important; }

/* ---------- v2 layout ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.nav-cta { margin-left: 4px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; padding: 0 9px; flex-direction: column; justify-content: center; gap: 4px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 1120px) {
  nav.links { display: none; }
  .burger { display: flex; }
  .nav-cta { display: none; }
  body.menu-open nav.links {
    display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  body.menu-open nav.links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); margin: 0; }
}
@media (max-width: 420px) { .logo > span:last-child { display: none; } }
header.top .wrap { position: relative; }

.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); font-weight: 600; }
.trust li { display: flex; gap: 6px; align-items: center; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 9px 12px; font-weight: 600; cursor: pointer; margin: 0; }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.seg input { accent-color: var(--brand); }
#quiz-result .btn { margin-top: 6px; }

.timeline { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.timeline li { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.timeline .dot { flex: 0 0 14px; height: 14px; border-radius: 50%; background: var(--brand); margin-top: 4px; box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline h3 { font-size: 16px; margin-bottom: 4px; }
.timeline p { margin: 0; font-size: 14px; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

.two-col { columns: 2; column-gap: 32px; }
.two-col li { break-inside: avoid; margin-bottom: 8px; }
@media (max-width: 700px) { .two-col { columns: 1; } }

.bot-band { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-radius: var(--radius); padding: 24px; }
.bot-band > div { max-width: 640px; }
.bot-band p { margin: 0; color: var(--muted); }
.btn.tg { background: #229ed9; color: #fff; }

.price { display: flex; flex-direction: column; gap: 6px; }
.price .btn { align-self: flex-start; margin-top: auto; }
.price.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.faq-grid { align-items: start; margin-top: 14px; }
.faq-grid details.faq + details.faq { margin-top: 10px; }

.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h4 { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.foot-grid a:not(.logo) { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.foot-grid a:not(.logo):hover { color: var(--brand); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

.fab { position: fixed; right: 16px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: #229ed9; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 40; }
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 30; }
  .sticky-cta .btn { width: 100%; }
  body:has(.sticky-cta) { padding-bottom: 72px; }
  body:has(.sticky-cta) .fab { bottom: 84px; }
}

/* intake extras */
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.progress > div { height: 100%; background: var(--brand); width: 0; transition: width .3s; }
.progress-label { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.save-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.copy-box { display: flex; gap: 8px; margin-top: 8px; }
.copy-box input { font-size: 13px; }

/* track */
.track-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.track-steps li { position: relative; padding: 0 0 18px 30px; color: var(--muted); }
.track-steps li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.track-steps li::after { content: ""; position: absolute; left: 12px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.track-steps li:last-child::after { display: none; }
.track-steps li.done { color: var(--ink); }
.track-steps li.done::before { background: var(--brand); border-color: var(--brand); }
.track-steps li.current { color: var(--ink); font-weight: 700; }
.track-steps li.current::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* legal pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 28px; font-size: 22px; }
.prose li { margin-bottom: 6px; }

/* admin v2 */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.stats .card { padding: 14px; }
.stats .num { font-size: 26px; font-weight: 800; }
.stats .lbl { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.filters select, .filters input { width: auto; min-height: 36px; padding: 6px 10px; }
.lang-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.lang-tabs button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.lang-tabs button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.composer textarea { min-height: 120px; }
.chk-row { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.chk-row label { display: flex; gap: 6px; align-items: center; font-weight: 500; margin: 0; }

.logo .mark-img { width: 32px; height: 32px; display: block; flex: 0 0 32px; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 8px; }
.slot-grid .btn { justify-content: flex-start; }

.seg.seg-col { flex-direction: column; }
.seg.seg-col label { width: 100%; }

.scan-card { margin-bottom: 18px; border-style: dashed; }
.scan-card .btn { margin-top: 4px; }
.field.filled input, .field.filled select { border-color: var(--brand); background: var(--brand-soft); }

/* FAQ + articles (server-rendered) */
.ssr-main { padding-top: 32px; padding-bottom: 60px; max-width: 860px; }
.ssr-main .lead { margin-bottom: 18px; }
#faq-search { margin: 6px 0 12px; }
.faq-toc { margin-bottom: 8px; }
.faq-toc .chip { text-decoration: none; color: var(--ink); }
.faq-group { padding: 22px 0 6px; border: 0; }
.faq-group h2 { font-size: 22px; }
.faq-group details.faq p { margin: 10px 0 2px; color: var(--ink); }
.cta-card { margin-top: 28px; }
.articles-grid { margin-top: 10px; }
.article-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.article-card:hover { border-color: var(--brand); }
.article-card .read-more { color: var(--brand); font-weight: 700; margin-top: auto; }
.article h2 { font-size: 21px; margin-top: 26px; }
.article li { margin-bottom: 6px; }
.more-articles { margin-top: 28px; }
.more-articles ul { padding-left: 18px; }

.logo { white-space: nowrap; }
header.top nav.links a { white-space: nowrap; }

.price-list { list-style: none; padding: 0; margin: 8px 0 6px; display: grid; gap: 6px; }
.price-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.price-list li span:first-child { flex: 1 1 100%; }

.by-cu { margin: 6px 0 0; color: var(--muted); }
.by-cu a { color: var(--muted); }

/* QA 2026-10-16 */
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
label:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.langs button { min-width: 40px; min-height: 34px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --err: #ff8f80; --warn: #f3bd62; --ok: #63d69a; }
}
.notice.warn { color: #7a4d06; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice.warn { color: var(--warn); } }
