:root {
  --bg: #121212;
  --bg-elev: #1b1b1b;
  --card: #222222;
  --card-2: #2a2a2a;
  --line: #363636;
  --line-strong: #4a4a4a;
  --text: #f3eee7;
  --muted: #a39b91;
  --faint: #6f6962;
  --accent: #d8c6ab;
  --accent-strong: #c9b392;
  --accent-ink: #1a1712;
  --red: #e8857a;
  --red-bg: rgba(232, 133, 122, 0.12);
  --amber: #e6b863;
  --amber-bg: rgba(230, 184, 99, 0.12);
  --info: #9fb3c8;
  --info-bg: rgba(159, 179, 200, 0.12);
  --ok: #9cc3a0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 64px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; }

.proto-banner {
  background: #2b2418;
  color: var(--accent);
  border-bottom: 1px solid #4a3d28;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

.brand {
  text-align: center;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0;
}
.brand-name em { font-style: italic; }
.brand-sub {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Progress ---------- */
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.progress-head .step-count { color: var(--accent); font-size: 15px; white-space: nowrap; }
.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress span {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  transition: background 0.35s ease;
}
.progress span.done { background: var(--accent); }
.progress span.current { background: var(--accent-strong); opacity: 0.75; }

/* ---------- Headings ---------- */
h1, h2, h3 { line-height: 1.2; margin: 0; }
.step-title { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.step-intro { color: var(--muted); margin: 0 0 24px; }
.group-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 28px 0 12px;
}

/* ---------- Cards & fields ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card + .card { margin-top: 14px; }

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.field-label .opt { font-weight: 400; color: var(--faint); font-size: 14px; margin-left: 6px; }
.field-help { color: var(--muted); font-size: 14px; margin: -4px 0 10px; }

.followup {
  margin: 14px 0 0 2px;
  padding: 16px 0 2px 16px;
  border-left: 2px solid var(--accent-strong);
}
.followup.reveal { animation: reveal 0.28s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], input[type="search"], textarea, select {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 17px; /* prevents iOS zoom */
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 50px;
}
input[type="date"] { display: block; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216, 198, 171, 0.18); }
::placeholder { color: var(--faint); }

.phone-row { display: flex; gap: 8px; }
.phone-row .cc {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--muted);
}

/* Pills (radio / yes-no) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  position: relative;
  display: inline-flex;
}
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  min-width: 72px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--bg-elev);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  user-select: none;
}
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(216, 198, 171, 0.35); }

/* Checkbox list */
.checks { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .checks.cols { grid-template-columns: 1fr 1fr; } }
.check {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.check input { position: absolute; opacity: 0; }
.check .box {
  flex: 0 0 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.check.round .box { border-radius: 50%; }
.check input:checked ~ .box { background: var(--accent); border-color: var(--accent); }
.check input:checked ~ .box::after { content: ""; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check:has(input:checked) { border-color: var(--accent-strong); background: #26231f; }
.check input:focus-visible ~ .box { box-shadow: 0 0 0 3px rgba(216, 198, 171, 0.35); }

/* Repeat rows */
.repeat-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}
.repeat-item .repeat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.repeat-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .repeat-grid { grid-template-columns: 1fr 1fr; } }
.repeat-grid label { font-size: 14px; color: var(--muted); display: block; margin-bottom: 4px; }

/* Errors */
.field.has-error input, .field.has-error textarea, .field.has-error .pill span, .field.has-error .check { border-color: var(--red); }
.error-msg { color: var(--red); font-size: 14px; margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; }
.error-summary {
  background: var(--red-bg);
  border: 1px solid rgba(232, 133, 122, 0.4);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 15px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s, opacity 0.2s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e3d3bb; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-danger { background: transparent; border-color: rgba(232, 133, 122, 0.5); color: var(--red); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-link { background: none; border: none; color: var(--accent); padding: 4px 0; cursor: pointer; font-weight: 600; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.nav-row {
  display: flex; gap: 12px; justify-content: space-between;
  margin-top: 28px;
}
.nav-row .btn { flex: 1; }
@media (min-width: 560px) { .nav-row .btn { flex: 0 0 auto; min-width: 160px; } }

/* ---------- Welcome ---------- */
.welcome-hero { text-align: center; padding: 20px 0 8px; }
.welcome-hero h1 { font-size: 32px; margin: 10px 0 12px; }
.welcome-hero p { color: var(--muted); margin: 0 auto 24px; max-width: 520px; }
.welcome-actions { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }
.welcome-points { list-style: none; padding: 0; margin: 28px auto 0; max-width: 480px; display: grid; gap: 10px; }
.welcome-points li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; align-items: flex-start; }
.welcome-points svg { flex: 0 0 20px; margin-top: 2px; color: var(--accent); }

/* ---------- Review ---------- */
.review-section { margin-bottom: 14px; }
.review-section .review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-section h3 { font-size: 17px; }
.kv { display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv:first-of-type { border-top: none; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 560px) { .kv { grid-template-columns: 220px 1fr; } }

.notice {
  display: flex; gap: 12px;
  background: #24211c;
  border: 1px solid #3c352b;
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
  font-size: 15px;
  margin-top: 16px;
}
.notice svg { flex: 0 0 20px; color: var(--accent); margin-top: 2px; }
.notice strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- Confirmation ---------- */
.confirm { text-align: center; padding: 30px 0; }
.confirm .tick {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  background: rgba(216, 198, 171, 0.12);
  color: var(--accent);
  animation: pop 0.4s ease;
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.confirm h1 { font-size: 28px; margin-bottom: 10px; }
.confirm p { color: var(--muted); max-width: 480px; margin: 0 auto 12px; }
.ref-code {
  display: inline-block;
  margin: 10px 0 24px;
  padding: 10px 20px;
  border-radius: 99px;
  border: 1px dashed var(--accent-strong);
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 600;
}

.step-enter { animation: stepIn 0.32s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* ---------- Dashboard ---------- */
.dash-top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.dash-top-inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-brand { font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; font-size: 15px; }
.dash-brand small { display: block; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); font-size: 11px; }

.tabs { display: flex; gap: 6px; margin: 20px 0 16px; overflow-x: auto; }
.tab {
  background: none; border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 8px 16px; cursor: pointer; white-space: nowrap; color: var(--muted);
  min-height: 40px;
}
.tab.active { background: var(--card-2); color: var(--text); border-color: var(--accent-strong); }
.tab .count { display: inline-block; margin-left: 6px; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 7px; font-size: 12px; font-weight: 700; }

.toolbar { display: grid; gap: 10px; margin-bottom: 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.chip {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 12px; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 36px;
}
.chip.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }

.client-list { display: grid; gap: 10px; }
.client-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer; text-align: left; width: 100%;
  transition: border-color 0.2s, transform 0.12s;
}
.client-row:hover { border-color: var(--accent-strong); }
.client-row:active { transform: scale(0.995); }
.client-row .name { font-weight: 600; font-size: 17px; }
.client-row .meta { color: var(--muted); font-size: 14px; }
.client-row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.flag-counts { display: flex; gap: 6px; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending { color: var(--amber); background: var(--amber-bg); }
.status-clarify { color: #e7a0c3; background: rgba(231, 160, 195, 0.12); }
.status-completed { color: var(--ok); background: rgba(156, 195, 160, 0.12); }
.status-deferred { color: var(--info); background: var(--info-bg); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.badge-red { color: var(--red); background: var(--red-bg); }
.badge-amber { color: var(--amber); background: var(--amber-bg); }
.badge-info { color: var(--info); background: var(--info-bg); }
.badge-new { color: var(--accent-ink); background: var(--accent); }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

.detail-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .detail-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.detail-head h1 { font-size: 26px; }
.detail-head .meta { color: var(--muted); font-size: 15px; margin-top: 4px; }

.panel-title { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.status-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-picker button {
  min-height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg-elev); cursor: pointer; font-size: 14px; padding: 8px;
}
.status-picker button.active { border-color: var(--accent); background: #2b2720; color: var(--accent); font-weight: 600; }

.flag {
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px;
  border-left: 4px solid;
}
.flag:last-child { margin-bottom: 0; }
.flag-red { background: var(--red-bg); border-color: var(--red); }
.flag-amber { background: var(--amber-bg); border-color: var(--amber); }
.flag-info { background: var(--info-bg); border-color: var(--info); }
.flag-title { font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.flag-level { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.flag-red .flag-level { color: var(--red); }
.flag-amber .flag-level { color: var(--amber); }
.flag-info .flag-level { color: var(--info); }
.flag-detail { color: var(--text); font-size: 15px; margin-top: 4px; }
.flag-note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.flag-note summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.flag-src { font-size: 12px; color: var(--faint); margin-top: 4px; }

.answers-section { margin-top: 6px; }
.answers-section h3 { font-size: 15px; color: var(--accent); margin: 18px 0 6px; }
.answers-section h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 14px 0 4px; }
.answer-row { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.answer-row .q { color: var(--muted); font-size: 14px; }
.answer-row.flag-hit { background: linear-gradient(90deg, rgba(232,133,122,0.08), transparent); padding-left: 8px; border-left: 3px solid var(--red); }
.answer-row.flag-hit-amber { background: linear-gradient(90deg, rgba(230,184,99,0.08), transparent); padding-left: 8px; border-left: 3px solid var(--amber); }

.note { border-top: 1px solid var(--line); padding: 10px 0; font-size: 15px; }
.note .when { color: var(--faint); font-size: 13px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; align-items: center; }
.timeline li:first-child { border-top: none; }
.timeline .sel { color: var(--accent); font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); font-size: 15px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }

.login { max-width: 400px; margin: 40px auto; }
.login .card { padding: 24px; }
.login h1 { font-size: 24px; margin-bottom: 6px; }
.login p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--card-2); border: 1px solid var(--accent-strong); color: var(--text);
  padding: 12px 18px; border-radius: 99px; box-shadow: var(--shadow); opacity: 0;
  transition: opacity 0.25s, transform 0.25s; z-index: 50; font-size: 15px; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Brand logo (form pages) ---------- */
.brand-logo { display: block; margin: 0 auto; width: 170px; height: auto; }
.brand-link { background: none; border: 0; padding: 0; cursor: pointer; display: block; margin: 0 auto; }

/* ---------- Home page ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head-inner { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-logo { background: none; border: 0; padding: 0; cursor: pointer; }
.site-logo img { width: 120px; height: auto; display: block; }
.site-nav { display: none; gap: 28px; }
.site-nav button { background: none; border: 0; color: var(--text); cursor: pointer; font-size: 15px; padding: 6px 0; }
.site-nav button:hover { color: var(--accent); }
@media (min-width: 860px) { .site-nav { display: flex; } .site-logo img { width: 140px; } }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 14px; font-size: 14px; line-height: 1.2;
}
.wa-btn svg { width: 22px; height: 22px; color: var(--accent); }
.wa-btn small { display: block; color: var(--muted); font-size: 12px; }
.wa-btn:hover { border-color: var(--accent); }

.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 75% 30%, rgba(216, 198, 171, 0.10), transparent 60%), linear-gradient(180deg, #161514, var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 1160px; margin: 0 auto; padding: 40px 16px 24px; display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero-inner { grid-template-columns: 1.05fr 1fr; padding: 64px 16px 36px; } }
.eyebrow.center, .center { text-align: center; }
.hero-title { font-size: clamp(40px, 7vw, 64px); line-height: 1.03; font-weight: 800; font-style: italic; letter-spacing: -0.01em; margin: 14px 0 18px; color: var(--accent); }
.hero-title span { color: var(--text); }
.hero-text { color: #d9d3cb; font-size: 18px; max-width: 520px; margin: 0 0 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn svg, .btn-lg svg { width: 20px; height: 20px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 520px; }
.hero-note.center { margin-left: auto; margin-right: auto; }
.hero-visual {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 5; max-height: 640px; width: 100%; justify-self: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
@media (min-width: 860px) { .hero-visual { max-width: 480px; justify-self: end; } }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 18%; display: block; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18,18,18,0.55)); pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.photo-note { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
.hero-points { list-style: none; margin: 0 auto; padding: 0 16px 28px; max-width: 1160px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
@media (min-width: 860px) { .hero-points { display: flex; gap: 36px; } }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #d9d3cb; }
.hero-points svg { width: 26px; height: 26px; color: var(--accent); flex: 0 0 26px; }

.sec { max-width: 1160px; margin: 0 auto; padding: 48px 16px 8px; }
.sec-title { font-size: clamp(26px, 4vw, 34px); font-weight: 700; margin: 8px 0 22px; }

.svc-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { display: grid; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 560px) { .svc { grid-template-columns: 0.85fr 1fr; } }
.svc-photo { position: relative; min-height: 180px; background: #171615; }
.svc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-body { padding: 20px; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 21px; }
.svc-dur { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.svc-dur svg { width: 16px; height: 16px; }
.svc-desc { color: #d9d3cb; font-size: 15px; margin: 0 0 16px; flex: 1; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 30px; font-weight: 800; color: var(--accent); }
.round-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.round-btn svg { width: 20px; height: 20px; }

.why { display: grid; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; padding-bottom: 36px; }
@media (min-width: 860px) { .why { grid-template-columns: 300px 1fr; align-items: center; } .why .sec-title { margin: 0; } }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (min-width: 860px) { .why-list { grid-template-columns: repeat(4, 1fr); } }
.why-list li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.why-list svg { width: 34px; height: 34px; color: var(--accent); flex: 0 0 34px; }

.placeholder-note { font-size: 13px; color: var(--amber); background: var(--amber-bg); border-radius: 8px; padding: 6px 10px; display: inline-block; margin: -10px 0 18px; }
.quote-row { display: grid; gap: 14px; }
@media (min-width: 700px) { .quote-row { grid-template-columns: repeat(2, 1fr); } }
.quote { margin: 0; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px 18px; }
.quote-mark { font-size: 56px; line-height: 0.6; color: var(--accent); font-family: Georgia, serif; height: 22px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; flex: 1; }
.quote figcaption { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.quote figcaption strong { color: var(--text); }
.quote-src { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--faint); }
.quote-src svg { width: 14px; height: 14px; color: var(--accent); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 6px; justify-items: start; }
@media (min-width: 860px) { .steps li { justify-items: center; text-align: center; } }
.steps li.active { border-color: var(--accent-strong); background: #26231f; }
.steps svg { width: 36px; height: 36px; color: var(--accent); }
.steps strong { font-size: 16px; }
.steps span { color: var(--muted); font-size: 14px; }
.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 17px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #d9d3cb; margin: 0 0 16px; font-size: 15px; }

.site-foot { text-align: center; padding: 48px 16px 40px; margin-top: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot img { width: 130px; height: auto; margin-bottom: 12px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 12px; }
.foot-links button, .foot-links a { background: none; border: 0; color: var(--text); cursor: pointer; font-size: 14px; text-decoration: none; padding: 6px 0; }
.foot-staff a { color: var(--faint); font-size: 13px; }
.detail-grid .kv { grid-template-columns: 96px minmax(0, 1fr); }
@media (min-width: 760px) and (max-width: 859px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; padding: 48px 16px 28px; }
  .hero-visual { max-width: 380px; justify-self: end; }
}

.contact-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.contact-card svg { width: 34px; height: 34px; color: var(--accent); flex: 0 0 34px; }
.contact-card h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.contact-card p, .contact-card a { margin: 0; font-size: 19px; font-weight: 600; color: var(--text); text-decoration: none; }
.contact-card a:hover { color: var(--accent); }
.disclaimer { text-align: center; max-width: 860px; }
.disclaimer h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.disclaimer p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

.spam-check { margin-top: 16px; }
.spam-check:empty { display: none; }
.welcome-actions .btn svg { width: 20px; height: 20px; }

.quote-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.quote-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(216,198,171,0.12); border-radius: 99px; padding: 5px 12px; }
.quote-badge svg { width: 15px; height: 15px; }
.quote-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: #2c2924; color: var(--accent); margin-right: 4px; }
.quote-avatar svg { width: 20px; height: 20px; }

.location-card { align-items: flex-start; }
@media (min-width: 640px) { .location-card { grid-column: auto; } }
.loc-sub { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.loc-note { display: block; color: var(--faint); font-size: 14px; margin-top: 10px; line-height: 1.5; }

.visit-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .visit-grid { grid-template-columns: 1fr 1fr; } }
.visit-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.visit-card svg { width: 30px; height: 30px; color: var(--accent); flex: 0 0 30px; margin-top: 2px; }
.visit-card h3 { font-size: 17px; margin-bottom: 4px; }
.visit-card p { margin: 0; color: #d9d3cb; font-size: 15px; }

.hero-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin: -8px 0 22px; }
.hero-loc svg { width: 18px; height: 18px; color: var(--accent); }
.about { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 0.8fr 1.2fr; gap: 48px; } }
.about-photo { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; max-width: 420px; width: 100%; justify-self: center; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.about-photo svg, .about-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.about-copy p { color: #d9d3cb; margin: 0 0 14px; }
.about-copy strong { color: var(--text); }
.about-copy .sec-title { margin-bottom: 14px; }
.about-badge { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600; color: var(--accent) !important; background: rgba(216,198,171,0.12); border-radius: 99px; padding: 8px 14px; margin-bottom: 18px !important; }
.about-badge svg { width: 18px; height: 18px; }
.about-copy .btn { margin-top: 8px; }
.about-copy .btn svg { width: 20px; height: 20px; }
.foot-name { color: var(--text); font-weight: 700; letter-spacing: 0.12em; margin: 4px 0 0; }
.foot-tag { margin: 2px 0 8px; }
.foot-loc { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0 0 16px; }
.foot-loc span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.foot-loc svg { width: 16px; height: 16px; color: var(--accent); }
.mini-foot { text-align: center; color: var(--faint); font-size: 13px; padding: 0 16px 32px; }
.mini-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
body.on-home .mini-foot { display: none; }

.legal { max-width: 760px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; color: var(--accent); }
.legal p, .legal li { color: #d9d3cb; line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal-updated { color: var(--faint) !important; font-size: 14px; margin-top: 0; }
.legal-back { margin-top: 32px; }
.mini-foot a + a, .mini-foot a { margin: 0; }

.foot-social { margin: 0 0 10px; }
.foot-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 600; }
.foot-social svg { width: 20px; height: 20px; }

.cred { display: flex; gap: 16px; align-items: center; margin: 6px 0 20px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); transition: border-color .2s; }
.cred:hover { border-color: var(--accent-strong); }
.cred img { width: 132px; height: auto; border-radius: 8px; flex: 0 0 auto; background: #fff; }
.cred-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.cred-text strong { color: var(--text); font-size: 16px; }
.cred-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.cred-label svg, .cred-view svg { width: 15px; height: 15px; }
.cred-view { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; margin-top: 4px; }
@media (max-width: 420px) { .cred img { width: 96px; } }
.who-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .who-grid { grid-template-columns: 1fr 1fr; } }
.who-card { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.who-dot svg { width: 26px; height: 26px; color: var(--accent); }
.who-card h3 { font-size: 17px; margin-bottom: 4px; }
.who-card p { margin: 0; color: #d9d3cb; font-size: 15px; }
.expect-list { list-style: none; counter-reset: ex; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .expect-list { grid-template-columns: repeat(4, 1fr); } }
.expect-list li { counter-increment: ex; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 20px 64px; display: flex; flex-direction: column; gap: 4px; }
.expect-list li::before { content: counter(ex); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(216,198,171,0.14); color: var(--accent); font-weight: 700; }
.expect-list strong { font-size: 16px; }
.expect-list span { color: #d9d3cb; font-size: 15px; }

.who-grid { grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .who-grid { grid-template-columns: repeat(4, 1fr); } }
.who-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.who-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.who-body { padding: 14px 16px 16px; }
@media (max-width: 420px) { .who-body h3 { font-size: 15px; } .who-body p { font-size: 14px; } }
.who-card { align-items: stretch; }
.who-card img { flex: none; height: auto; aspect-ratio: 4 / 3; }

.why2 { border-top: 1px solid var(--line); margin-top: 40px; }
.why2-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; }
.why2-eyebrow::before, .why2-eyebrow::after { content: ""; flex: 0 1 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-strong)); }
.why2-eyebrow::after { background: linear-gradient(90deg, var(--accent-strong), transparent); }
.why2-title { font-style: italic; font-weight: 800; }
.why2-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .why2-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why2-grid { grid-template-columns: repeat(4, 1fr); } }
.why2-card { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(216,198,171,0.35); background: #141312; box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 40px rgba(216,198,171,0.04); display: flex; flex-direction: column; }
.why2-photo { position: relative; aspect-ratio: 5 / 4; }
.why2-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why2-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #141312 100%); }
.why2-body { position: relative; padding: 0 20px 22px; margin-top: -34px; }
.why2-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--accent-strong); background: rgba(20,19,18,0.85); margin-bottom: 12px; }
.why2-icon svg { width: 28px; height: 28px; color: var(--accent); }
.why2-body h3 { font-size: 21px; font-style: italic; font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.why2-body p { margin: 0; color: #d9d3cb; font-size: 15px; }

.why2-photo::after { background: linear-gradient(180deg, transparent 58%, #141312 100%); }

.review-cta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: 16px; border: 1px dashed rgba(216,198,171,0.35); background: rgba(216,198,171,0.05); }
.review-cta p { margin: 0; color: #d9d3cb; }
.review-cta .btn svg { width: 20px; height: 20px; color: var(--accent); }

/* ---------- Movement assessment (dashboard) ---------- */
.as-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: middle; flex: 0 0 12px; }
.as-g { background: #9cc3a0; } .as-a { background: var(--amber); } .as-r { background: var(--red); } .as-none { background: var(--line-strong); }
.as-up { color: #9cc3a0; font-weight: 700; } .as-down { color: var(--red); font-weight: 700; }
#as-panel .panel-title .btn { letter-spacing: 0; text-transform: none; }
.as-score { display: flex; gap: 16px; align-items: center; margin: 4px 0 10px; }
.as-score b { font-size: 34px; color: var(--accent); white-space: nowrap; }
.as-score-side { flex: 1; } .as-score-side p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.as-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.as-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-strong), #9cc3a0); }
.as-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.as-legend span { display: inline-flex; gap: 6px; align-items: center; }
.as-table-wrap { overflow-x: auto; }
.as-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.as-table th, .as-table td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: center; white-space: nowrap; }
.as-table th:first-child, .as-table td:first-child { text-align: left; }
.as-table thead th { border-top: none; color: var(--muted); font-weight: 600; font-size: 12px; }
.as-col { background: none; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 12px; padding: 4px 6px; cursor: pointer; line-height: 1.3; }
.as-col.on, .as-col:hover { border-color: var(--accent-strong); color: var(--accent); }
.as-col small { font-size: 11px; color: var(--faint); }
.as-detail { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--line); }
.as-detail-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.as-del { color: var(--red); }
.as-d-test { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.as-d-test:first-of-type { border-top: none; }
.as-d-line { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; color: var(--text); }
.as-d-q { color: var(--muted); }
.as-share { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.as-share-title { width: 100%; margin: 0 0 2px; font-size: 13px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.as-share .btn svg { width: 18px; height: 18px; }
.as-form { max-width: 820px; display: grid; gap: 14px; padding-bottom: 40px; }
.as-form-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.as-live { text-align: right; } .as-live b { display: block; font-size: 30px; color: var(--accent); } .as-live span { color: var(--muted); font-size: 13px; }
.as-form-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.as-form-top .flag-src { width: 100%; }
.as-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 99px; overflow: hidden; }
.as-seg button { background: none; border: 0; padding: 10px 16px; color: var(--muted); font-size: 15px; cursor: pointer; min-height: 44px; }
.as-seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.as-test h3 { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin: 0 0 4px; }
.as-q { color: var(--muted); font-size: 13px; margin: 12px 0 6px; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-chip { min-height: 44px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text); font-size: 15px; cursor: pointer; }
.as-chip.on-g { background: rgba(156,195,160,.18); border-color: #9cc3a0; color: #d6ecd8; font-weight: 600; }
.as-chip.on-a { background: var(--amber-bg); border-color: var(--amber); color: #f5dfb3; font-weight: 600; }
.as-chip.on-r { background: var(--red-bg); border-color: var(--red); color: #f8c9c2; font-weight: 600; }
.as-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 60; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.as-modal { background: var(--card); border: 1px solid var(--line-strong); border-radius: 18px; padding: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; }
.as-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.as-card-preview img { width: 100%; height: auto; border-radius: 12px; display: block; }
.as-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.as-modal-actions .btn svg { width: 18px; height: 18px; }
.as-msg summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.as-msg pre { white-space: pre-wrap; font-family: inherit; font-size: 14px; color: #d9d3cb; background: var(--bg-elev); border-radius: 10px; padding: 12px; }

.as-table .as-after { opacity: 0.55; }
