/* HeadVoice design system: shared by the landing page, onboarding and the session screen. */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #fcf7f5;
  --bg-tint: #f8ecef;
  --surface: #ffffff;
  --surface-2: #fbf4f3;
  --line: #eadfe0;
  --line-strong: #d9c8cb;
  --text: #241d20;
  --text-2: #5c5357;
  --text-3: #7d7377;
  --accent: #9b3658;
  --accent-hover: #852c4b;
  --accent-soft: #fbe8ee;
  --accent-text: #ffffff;
  --ok: #2f7a5c;
  --ok-soft: #e3f3ec;
  --warn: #a35a00;
  --warn-soft: #fdf0dc;
  --bad: #b3261e;
  --bad-soft: #fbe5e3;
  --person-1: #c47a52;
  --person-2: #4f8a78;
  --person-3: #6c4fa0;
  --shadow: 0 1px 2px rgba(60, 30, 40, 0.04), 0 8px 24px rgba(60, 30, 40, 0.06);
  --shadow-lg: 0 2px 6px rgba(60, 30, 40, 0.06), 0 20px 48px rgba(60, 30, 40, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161215;
    --bg-tint: #22191d;
    --surface: #1f191c;
    --surface-2: #261f23;
    --line: #3a2f34;
    --line-strong: #4d3f45;
    --text: #f4eef0;
    --text-2: #c9bfc3;
    --text-3: #a3989d;
    --accent: #e48aa7;
    --accent-hover: #f0a3bb;
    --accent-soft: #3a2029;
    --accent-text: #24121a;
    --ok: #6fcf9f;
    --ok-soft: #173326;
    --warn: #f2b45c;
    --warn-soft: #3a2a12;
    --bad: #ff8a80;
    --bad-soft: #3d1a18;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161215;
  --bg-tint: #22191d;
  --surface: #1f191c;
  --surface-2: #261f23;
  --line: #3a2f34;
  --line-strong: #4d3f45;
  --text: #f4eef0;
  --text-2: #c9bfc3;
  --text-3: #a3989d;
  --accent: #e48aa7;
  --accent-hover: #f0a3bb;
  --accent-soft: #3a2029;
  --accent-text: #24121a;
  --ok: #6fcf9f;
  --ok-soft: #173326;
  --warn: #f2b45c;
  --warn-soft: #3a2a12;
  --bad: #ff8a80;
  --bad-soft: #3d1a18;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.5);
  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.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[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: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 21px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.card-link:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.card .icon { color: var(--accent); width: 26px; height: 26px; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }

/* Pills and chips */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; background: var(--accent-soft); color: var(--accent);
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.neutral { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Stepper */
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.stepper li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.stepper li.done, .stepper li.current { background: var(--accent); }
.stepper li.current { opacity: 0.55; }

/* Toast */
.toast-area { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; }
.toast {
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-weight: 600; animation: toast-in 0.25s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; color: var(--text-3); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
