@font-face { font-family: Inter; src: url("/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --page: #f7f8fa;
  --surface: #fff;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e8e8ec;
  --field-line: #85858f;
  --accent: #6366f1;
  --action: #4f46d7;
  --on-action: #fff;
  --soft: #eef0ff;
  --track: #e1e3ed;
  --violet: #eeecff; --violet-ink: #5145bd;
  --blue: #e7f1fd; --blue-ink: #2c63a3;
  --amber: #faf0df; --amber-ink: #875d26;
  --green: #e3f4ea; --green-ink: #2b7350;
  --error: #a43642;
  --shadow: 0 18px 52px -24px #21223625, 0 1px 2px #18181b08;
  --ease: cubic-bezier(.22,.68,.22,1);
  font: 400 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #15151a; --surface: #1e1e25; --ink: #f1f1f6; --muted: #a7a7b5; --line: #34343e; --field-line: #818191;
  --accent: #9d9bff; --action: #b8b6ff; --on-action: #211d55; --soft: #2b2948; --track: #38384c;
  --violet: #302b52; --violet-ink: #c6b8ff; --blue: #25394f; --blue-ink: #99c7ff;
  --amber: #403526; --amber-ink: #f2c786; --green: #243c32; --green-ink: #99ddba;
  --error: #ffafb6; --shadow: 0 18px 50px -24px #0009;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #15151a; --surface: #1e1e25; --ink: #f1f1f6; --muted: #a7a7b5; --line: #34343e; --field-line: #818191;
    --accent: #9d9bff; --action: #b8b6ff; --on-action: #211d55; --soft: #2b2948; --track: #38384c;
    --violet: #302b52; --violet-ink: #c6b8ff; --blue: #25394f; --blue-ink: #99c7ff;
    --amber: #403526; --amber-ink: #f2c786; --green: #243c32; --green-ink: #99ddba;
    --error: #ffafb6; --shadow: 0 18px 50px -24px #0009;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); }
body, .stage, .choice, .site-head, .icon-button, .primary, .secondary, input, textarea, select, .privacy, .upload, .keys, .message {
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
h1, h2, p, dl, ul, fieldset { margin: 0; }
h1, h2, strong, button, label, summary { font-weight: 600; }
a, button, input, textarea, select { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
button { font-weight: 600; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon, .mark svg { display: block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.site-head {
  width: min(1120px, calc(100% - 96px)); height: 78px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 600; line-height: 1; text-decoration: none; letter-spacing: -.075em; border-radius: 8px; }
.mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--soft); color: var(--action); }
.mark svg { width: 20px; height: 20px; stroke-width: 1.85; }
.word-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-left: -6px; margin-top: 13px; }
.site-controls, .receipt-actions, .thread-meta { display: flex; gap: 8px; align-items: center; }
.navigation, .icon-button, .back, .primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  border: 1px solid transparent; border-radius: 10px; padding: 8px 12px; background: transparent;
}
.navigation, .back, .secondary { font-size: 14px; }
.navigation { color: var(--ink); white-space: nowrap; }
.navigation[aria-current="page"] { color: var(--action); }
.navigation .icon { width: 15px; height: 15px; color: var(--muted); }
.icon-button { padding: 0; width: 44px; }
.theme { border-color: var(--line); background: var(--surface); }
.theme-moon { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }
:root[data-theme="dark"] .theme-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-moon { display: block; }
  :root:not([data-theme]) .theme-sun { display: none; }
}

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: start;
  column-gap: clamp(38px, 7vw, 112px);
  width: min(1120px, calc(100% - 96px)); margin-inline: auto; padding: clamp(52px, 9vh, 106px) 0 60px;
}
.intro { padding-block: 45px 0; min-width: 0; }
.eyebrow, .context { color: var(--action); font-size: 13px; font-weight: 600; }
.eyebrow { display: flex; gap: 8px; align-items: center; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
h1 { font-size: clamp(38px, 4.6vw, 61px); line-height: 1.04; letter-spacing: -.068em; margin: 19px 0; text-wrap: balance; }
.intro-description { max-width: 420px; color: var(--muted); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.signal { width: min(270px, 80%); margin-top: 42px; }
.signal svg { width: 100%; display: block; overflow: visible; }
.signal-guide { stroke: var(--track); stroke-width: 1; stroke-dasharray: 1 4; }
.signal-low, .signal-high { stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; opacity: .26; }
.signal-high { opacity: .62; }
.stage {
  min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 27px; box-shadow: var(--shadow);
}
.stage h2 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.045em; line-height: 1.2; text-wrap: pretty; }
.stage h2:focus, #intro-title:focus { outline: none; }
.step-meta { display: flex; align-items: center; gap: 13px; font-size: 13px; color: var(--muted); margin-bottom: 23px; }
.step-meta > span { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; flex: 1; height: 4px; direction: ltr; }
.progress span { background: var(--track); border-radius: 9px; position: relative; overflow: hidden; }
.progress span::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 260ms var(--ease); }
.progress .done::before, .complete span::before { transform: scaleX(1); }
.choices { display: grid; gap: 7px; margin-top: 15px; }
.choice {
  width: 100%; min-height: 60px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); padding: 8px 11px; display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; text-align: left;
}
.choice, .navigation, .icon-button, .back, .primary, .secondary {
  transition: transform 150ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.choice:active, .primary:active, .secondary:active, .icon-button:active { transform: scale(.98); }
.choice.selected { border-color: var(--accent); background: var(--soft); }
.choice-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; }
.lavender { background: var(--violet); color: var(--violet-ink); }
.blue { background: var(--blue); color: var(--blue-ink); }
.amber { background: var(--amber); color: var(--amber-ink); }
.green { background: var(--green); color: var(--green-ink); }
.choice-text { display: grid; gap: 1px; line-height: 1.34; }
.choice-text strong { font-size: 15px; letter-spacing: -.015em; }
.choice-text small, .small, .trust { font-size: 13px; font-weight: 400; color: var(--muted); }
.chevron { width: 16px; height: 16px; color: var(--muted); }
.topic { min-height: 49px; grid-template-columns: minmax(0, 1fr) auto; padding-inline: 14px; font-size: 15px; }
.trust, .back { display: flex; align-items: center; gap: 7px; }
.trust { margin-top: 17px; }
.trust .icon { width: 15px; height: 15px; }
.back { width: fit-content; padding-inline: 3px 9px; margin: -11px 0 11px; color: var(--muted); }
.back .icon { width: 16px; height: 16px; }
.context { margin-bottom: 5px; }
.muted { color: var(--muted); }
.copy { margin-top: 8px; font-size: 14px; }
#topic-status:not(:empty) { margin: 12px 0; }
.field-stack { display: grid; gap: 7px; margin-top: 17px; }
.field-stack label, #reply label { font-size: 14px; }
.field-stack label:not(:first-child) { margin-top: 5px; }
input:not([type="radio"]), textarea, select {
  width: 100%; min-width: 0; min-height: 45px; padding: 10px 11px;
  border: 1px solid var(--field-line); border-radius: 10px; background: var(--page); font-size: 16px;
  scroll-margin-block: 16px;
}
input:not([type="radio"]):focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 89px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
details { margin: 10px 0; }
summary { display: flex; align-items: center; gap: 7px; min-height: 44px; list-style: none; font-size: 14px; border-radius: 9px; width: fit-content; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--muted); font-weight: 400; }
summary svg { transition: transform 180ms var(--ease); }
details[open] summary svg { transform: rotate(45deg); }
details .field-stack { margin-top: 3px; }
.primary { min-height: 46px; font-size: 14px; padding-inline: 15px; background: var(--action); color: var(--on-action); }
.primary:disabled { cursor: progress; opacity: .73; }
.full { width: 100%; }
.secondary { border-color: var(--line); background: var(--surface); }
@media (hover: hover) {
  .choice:hover, .secondary:hover, .theme:hover { border-color: var(--accent); }
  .navigation:hover, .back:hover { background: var(--page); color: var(--action); }
  .primary:hover { filter: brightness(.95); }
}
.upload, .privacy, .keys { border-radius: 13px; padding: 13px; border: 1px solid var(--line); margin-top: 15px; }
.upload { background: var(--page); }
.upload > .small { margin-top: 6px; }
.privacy { background: var(--soft); }
.privacy-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; font-size: 13px; }
.privacy-note > svg { width: 16px; height: 16px; color: var(--action); margin-top: 2px; }
.privacy-note p { margin-top: 5px; }
#modes { padding: 0; border: 0; margin: 0 0 9px; }
#modes legend { padding: 0; font-size: 14px; font-weight: 600; }
#modes label { display: inline-flex; gap: 5px; align-items: center; font-size: 14px; min-height: 44px; margin-right: 12px; }
#modes input { margin: 0; accent-color: var(--action); }
#send, #find .primary { margin-top: 15px; }
.notice, .error:not(:empty) { margin-top: 9px; font-size: 14px; }
.notice { padding: 9px 11px; border-radius: 9px; background: var(--soft); }
.error { color: var(--error); }
#use-general { margin-top: 8px; }
.file-list { padding: 0; list-style: none; margin-top: 5px; }
.file-list li { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; border-top: 1px solid var(--line); }
.file-list li span { font-size: 13px; overflow-wrap: anywhere; }
.file-list li > svg { color: var(--muted); width: 15px; }
.success-mark { width: 63px; aspect-ratio: 1; background: var(--green); color: var(--green-ink); margin: 4px 0 16px; border-radius: 22px; display: grid; place-items: center; }
.success-mark svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.receipt > .muted { margin-top: 7px; font-size: 14px; }
.receipt > .small { font-size: 13px; }
.keys { background: var(--page); }
.keys div + div { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.keys dt { font-size: 13px; color: var(--muted); }
.keys dd { margin: 3px 0 0; font: 14px/1.5 ui-monospace, monospace; user-select: all; overflow-wrap: anywhere; }
.receipt-actions, .thread-meta, .thread-files { flex-wrap: wrap; margin-top: 14px; }
.thread-meta { justify-content: space-between; }
#thread-status { font-size: 13px; padding: 4px 9px; border-radius: 8px; color: var(--action); background: var(--soft); }
.message { padding: 11px; border: 1px solid var(--line); border-radius: 12px; margin-block: 9px; }
.message strong { font-size: 13px; display: block; color: var(--action); }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#thread-description { margin-top: 13px; }
#reply { display: grid; gap: 7px; margin-top: 20px; }
#reply .primary { width: fit-content; }
.reply-attachments { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#reply-file-names { overflow-wrap: anywhere; }
.thread-files:not(:empty) { display: flex; gap: 6px; }
.appear { animation: appear 230ms var(--ease) both; }
.arrive { animation: arrive 230ms var(--ease) both; }
.retreat { animation: retreat 210ms var(--ease) both; }
.receipt.arrive .success-mark { animation: check-box 330ms var(--ease) both; }
.receipt.arrive .success-mark path { animation: check-line 300ms 80ms var(--ease) both; }
@keyframes appear { from { opacity: 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
@keyframes retreat { from { opacity: 0; transform: translateY(-5px); } }
@keyframes check-box { from { opacity: 0; transform: scale(.87); } }
@keyframes check-line { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

@media (max-width: 940px) {
  .site-head, .layout { width: calc(100% - 64px); }
  .layout { column-gap: 32px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .intro { padding-top: 36px; }
  .intro-description { font-size: 16px; }
  .stage { padding: 21px; }
}
@media (max-width: 730px) {
  .site-head, .layout { width: min(520px, calc(100% - 32px)); }
  .site-head { height: 65px; }
  .navigation { padding-inline: 7px; font-size: 13px; }
  .layout { display: block; padding-block: 30px 24px; }
  .intro { padding: 0 4px 21px; }
  .layout:not([data-screen="landing"]) .intro, .signal { display: none; }
  .layout:not([data-screen="landing"]) { padding-top: 16px; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: 34px; letter-spacing: -.056em; line-height: 1.11; margin: 10px 0; max-width: 440px; }
  .intro-description { font-size: 15px; line-height: 1.5; }
  .stage { border-radius: 18px; padding: 15px; }
  .step-meta { margin-bottom: 14px; }
  .stage h2 { font-size: 24px; }
  .choices { margin-top: 12px; }
  .back { margin: -6px 0 4px; }
  .choice { min-height: 57px; }
  .topic { min-height: 47px; }
  .trust { margin-top: 12px; }
  .receipt-actions { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 355px) {
  h1 { font-size: 31px; }
  .site-head, .layout { width: calc(100% - 24px); }
  .stage { padding: 12px; }
  .choice { padding-inline: 8px; gap: 8px; }
  .choice-icon { width: 31px; height: 31px; }
  .navigation { padding-inline: 5px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
