/* Wesonar homepage. Same family as the dashboard (docs/design-system.md): system type, grouped lists,
   words instead of capsules, one primary per screen, role-named tokens, light and dark. */
:root {
  --label: #1d1d1f; --label-2: #515154; --label-3: #6e6e73;
  --bg: #fbfbfd; --surface: #ffffff; --group: #f2f2f5; --inset: #f2f2f5;
  --separator: #e3e3e8; --separator-strong: #d1d1d6; --field-line: #8a8a8e;
  --accent: #2f54d0; --accent-hover: #2445b4; --accent-ink: #ffffff;
  --red: #c0281c;
  --lift: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -16px rgb(0 0 0 / 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --r-field: 8px; --r-group: 10px; --r-page: 12px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --label: #f5f5f7; --label-2: #c7c7cc; --label-3: #98989d;
    --bg: #1c1c1e; --surface: #2c2c2e; --group: #2c2c2e; --inset: #3a3a3c;
    --separator: #3a3a3c; --separator-strong: #48484a; --field-line: #7c7c80;
    --accent: #7d9bff; --accent-hover: #9cb3ff; --accent-ink: #0a0b10;
    --red: #ff7b6e;
    --lift: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font: 400 17px/26px var(--font); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
code { font: 14px/22px var(--mono); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 8px 12px; background: var(--surface); border-radius: var(--r-field); color: var(--label); font-size: 15px; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--label); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { color: var(--label); }
.mark { width: 28px; height: 28px; display: block; }
.mark rect { fill: #2f54d0; }
.mark path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--label-2); text-decoration: none; }
.nav a:hover { color: var(--label); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 96px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 72px; align-items: start; }
h1 { font-size: 52px; line-height: 56px; font-weight: 650; letter-spacing: -0.032em; text-wrap: balance; max-width: 13em; }
.lead { margin-top: 20px; font-size: 19px; line-height: 29px; color: var(--label-2); max-width: 31em; }

/* ---------- waitlist form ---------- */
.wl { margin-top: 36px; max-width: 480px; }
.wl-body { display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--label-2); margin-bottom: 6px; }
.field input, .field select {
  display: block; width: 100%; height: 46px; padding: 0 12px; border-radius: var(--r-field);
  border: 1px solid var(--field-line); background: var(--surface); color: var(--label);
  font: 400 17px/22px var(--font); letter-spacing: -0.01em;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--label-3) 50%), linear-gradient(135deg, var(--label-3) 50%, transparent 50%);
  background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder { color: var(--label-3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 24%, transparent); }
.err { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--red); }
.check + .err { margin-top: -8px; }

.more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 15px; line-height: 22px; color: var(--accent); border-radius: 4px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-left: 2px; transition: transform 160ms var(--ease); }
.more[open] > summary::after { transform: rotate(45deg) translate(-1px, -1px); }
.more > summary:hover { color: var(--accent-hover); }
.opt { color: var(--label-3); }
.more-in { display: grid; gap: 14px; margin-top: 14px; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; color: var(--label-2); }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check label { cursor: pointer; }

.wl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.wl-note { font-size: 13px; line-height: 18px; color: var(--label-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
  border: 0; border-radius: var(--r-field); background: var(--accent); color: var(--accent-ink);
  font: 600 17px/22px var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 120ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; background: var(--accent); }
.form-msg { font-size: 15px; line-height: 22px; color: var(--red); }
.ts { min-height: 65px; }

.wl-done { padding: 18px 20px; background: var(--group); border-radius: var(--r-group); font-size: 15px; line-height: 22px; color: var(--label-2); }
.wl-done:focus { outline: none; }
.done-title { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--label); }

/* ---------- example guide page (a drawn miniature, its own small scale like the dashboard's .tp-*) ---------- */
.sample { margin-top: 6px; }
.sample-cap { font-size: 13px; line-height: 18px; color: var(--label-3); margin-bottom: 10px; }
.pg { background: var(--surface); border: 1px solid var(--separator); border-radius: var(--r-page); padding: 22px 26px 24px; box-shadow: var(--lift); font-size: 14px; line-height: 20px; }
.pg-url { font-size: 12px; line-height: 16px; color: var(--label-3); padding-bottom: 12px; margin: 0 -26px 16px; padding-left: 26px; padding-right: 26px; border-bottom: 1px solid var(--separator); }
.pg-crumb, .pg-meta { font-size: 12px; line-height: 16px; color: var(--label-3); }
.pg-h { margin: 6px 0 4px; font-size: 21px; line-height: 27px; font-weight: 650; letter-spacing: -0.02em; }
.pg-answer { margin-top: 16px; padding: 12px 14px; background: var(--inset); border-radius: var(--r-field); }
.pg-label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--label); margin-bottom: 2px; }
.pg-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pg-figs > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.pg-figs dd { font-size: 26px; line-height: 30px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pg-figs dt { font-size: 12px; line-height: 16px; color: var(--label-3); margin-top: 2px; }
.pg-chart { margin-top: 20px; }
.pg-ct { font-size: 13px; line-height: 18px; font-weight: 600; }
.pg-chart svg { display: block; width: 100%; height: auto; margin: 10px 0 6px; overflow: visible; }
.c-grid line { stroke: var(--separator); stroke-width: 1; }
.c-ax text { fill: var(--label-3); font: 14px var(--font); font-variant-numeric: tabular-nums; }
.c-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.c-dot circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.pg-src { font-size: 12px; line-height: 16px; color: var(--label-3); }
.pg-table { margin-top: 8px; }
.pg-table > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; line-height: 18px; color: var(--accent); border-radius: 4px; }
.pg-table > summary::-webkit-details-marker { display: none; }
.pg-table > summary::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 160ms var(--ease); }
.pg-table[open] > summary::after { transform: rotate(45deg) translate(-1px, -1px); }
.pg-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.pg-table th, .pg-table td { text-align: left; padding: 5px 0; border-bottom: 1px solid var(--separator); font-weight: 400; }
.pg-table thead th { color: var(--label-3); font-weight: 600; }
.pg-table td { text-align: right; }
.pg-table thead th:not(:first-child) { text-align: right; }
.pg-made { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--separator); font-size: 13px; line-height: 18px; color: var(--label-2); }

/* ---------- sections ---------- */
.sec { padding: 84px 0; border-top: 1px solid var(--separator); }
h2 { font-size: 34px; line-height: 40px; font-weight: 650; letter-spacing: -0.026em; text-wrap: balance; max-width: 20em; }
h3 { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.015em; }
.sec-lead { margin-top: 14px; color: var(--label-2); max-width: 36em; }
.foot { margin-top: 14px; font-size: 13px; line-height: 18px; color: var(--label-3); max-width: 36em; }
.sub-h { margin-bottom: 12px; font-size: 15px; line-height: 22px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px; counter-reset: none; }
.steps li { border-top: 1px solid var(--separator-strong); padding-top: 16px; }
.steps .n { display: block; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--label-3); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.steps p { margin-top: 6px; font-size: 15px; line-height: 23px; color: var(--label-2); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 48px; }

.group { background: var(--group); border-radius: var(--r-group); }
.group > li, .group > details { padding: 14px 18px; }
.group > li + li, .group > details + details { border-top: 1px solid var(--separator); }
.row-t { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--label); }
.row-s { margin-top: 2px; font-size: 15px; line-height: 22px; color: var(--label-2); }
.stack > li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.stack .row-t { font-weight: 400; }
.stack .row-v { font-size: 15px; line-height: 22px; color: var(--label-2); text-align: right; }
.paths code { font-weight: 400; }

.plain > li { padding: 12px 0; border-top: 1px solid var(--separator); }
.plain > li:last-child { border-bottom: 1px solid var(--separator); }

.faq > details { padding: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; cursor: pointer; list-style: none; font-size: 17px; line-height: 24px; font-weight: 600; border-radius: var(--r-group); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--label-3); border-bottom: 1.5px solid var(--label-3); transform: rotate(45deg) translateY(-2px); transition: transform 160ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details p { padding: 0 18px 16px; margin-top: -4px; font-size: 15px; line-height: 23px; color: var(--label-2); max-width: 38em; }

.end .btn { margin-top: 28px; }

/* ---------- footer ---------- */
.foot-bar { border-top: 1px solid var(--separator); padding: 28px 0 48px; font-size: 13px; line-height: 18px; color: var(--label-3); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--label-2); text-decoration: none; }
.foot-links a:hover { color: var(--label); text-decoration: underline; }

/* ---------- plain pages (privacy, 404) ---------- */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: 40px; line-height: 46px; }
.doc h2 { font-size: 20px; line-height: 26px; letter-spacing: -0.018em; margin-top: 40px; }
.doc p, .doc ul { margin-top: 12px; color: var(--label-2); }
.doc ul { padding-left: 20px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc .meta { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--label-3); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-copy { max-width: 640px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; line-height: 24px; }
  .wrap { padding: 0 16px; }
  .top-in { height: 56px; }
  .hero { padding: 24px 0 64px; }
  h1 { font-size: 36px; line-height: 41px; letter-spacing: -0.03em; }
  .lead { margin-top: 16px; font-size: 17px; line-height: 26px; }
  .wl { margin-top: 28px; max-width: none; }
  .wl-actions .btn { width: 100%; }
  .pg { padding: 18px 18px 20px; }
  .pg-url { margin: 0 -18px 14px; padding-left: 18px; padding-right: 18px; }
  .pg-h { font-size: 19px; line-height: 25px; }
  .pg-figs dd { font-size: 22px; line-height: 26px; }
  .pg-figs { gap: 10px; }
  .sec { padding: 64px 0; }
  h2 { font-size: 27px; line-height: 33px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
  .split-even { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 36px; }
  .end .btn { width: 100%; }
  .doc h1 { font-size: 32px; line-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
