/* Fonts are self-hosted in /fonts (copied in at build time); no third-party requests. */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: local("Young Serif"), url("/fonts/YoungSerif-Regular.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: local("Figtree"), url("/fonts/Figtree-Variable.woff2") format("woff2"); }

/* Plan our date: pilot app. Same tokens as the mockup: evening rose for participants, harbour teal for the console. */
:root {
  --bg: #f3f4f7; --surface: #ffffff; --sunk: #e8eaf0; --line: #d5d9e2; --fg: #1b2030; --muted: #5d6478;
  --accent: #b3245c; --accent-soft: #f8e3eb; --console: #1f6f78; --console-soft: #dcefef;
  --ok: #2e7d4f; --ok-soft: #e0f1e6; --warn: #9a6400; --warn-soft: #fbefd6; --bad: #b3261e; --bad-soft: #f9e0de;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #11141d; --surface: #1a1f2c; --sunk: #232938; --line: #323a4d; --fg: #e9ebf2; --muted: #a2a9bc;
  --accent: #f0709f; --accent-soft: #3a1e2b; --console: #5cc0c8; --console-soft: #183338;
  --ok: #6fcf97; --ok-soft: #173326; --warn: #f2c063; --warn-soft: #3a2f15; --bad: #f28b82; --bad-soft: #3c1f1d; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #11141d; --surface: #1a1f2c; --sunk: #232938; --line: #323a4d; --fg: #e9ebf2; --muted: #a2a9bc;
  --accent: #f0709f; --accent-soft: #3a1e2b; --console: #5cc0c8; --console-soft: #183338;
  --ok: #6fcf97; --ok-soft: #173326; --warn: #f2c063; --warn-soft: #3a2f15; --bad: #f28b82; --bad-soft: #3c1f1d; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 48px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--accent); }
.page { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-family: var(--display); font-size: 1.1rem; }
.lede { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.muted, .note { color: var(--muted); font-size: .88rem; }
.err { color: var(--bad); font-size: .9rem; }
.ok { color: var(--ok); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.console { background: var(--console-soft); color: var(--console); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

form.f { display: flex; flex-direction: column; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
legend, label.l { font-size: .88rem; font-weight: 600; padding: 0; margin-bottom: 2px; }
input[type=text], input[type=email], input[type=number], select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; font-size: .9rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
button, .btn { font: inherit; cursor: pointer; border-radius: 12px; border: 1px solid transparent; padding: 11px 16px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-accent { background: var(--accent); color: var(--surface); }
.btn-console { background: var(--console); color: var(--surface); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-small { padding: 6px 10px; font-size: .85rem; border-radius: 8px; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linkbox { font-family: var(--mono); font-size: .85rem; background: var(--sunk); padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; }

.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt input { margin-top: 5px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt .what { font-weight: 600; }
.plan { border-left: 4px solid var(--accent); padding-left: 14px; display: flex; flex-direction: column; gap: 4px; }
.plan .when { font-family: var(--display); font-size: 1.25rem; }
footer.foot { color: var(--muted); font-size: .8rem; text-align: center; }
.demo-bar { font-size: .8rem; background: var(--warn-soft); color: var(--warn); padding: 6px 10px; border-radius: 8px; text-align: center; }
