/* FlowPilot www site. One stylesheet, no inline styles: the Content-Security-Policy
   (staticwebapp.config.json) only allows style-src 'self'. Tokens follow the identity
   (Main.dc.html): one blue for actions and the reference date, ink on a light ledger. */

/* ---------- Fonts (self-hosted, latin variable subsets, SIL OFL) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-50: #eef3ff;
  --primary-100: #dbe5fe;
  --text: #1f2933;
  --muted: #52606d; /* 6.4:1 on white */
  --ground: #f4f6f8;
  --subtle: #f8fafb;
  --border: #e3e7ec;
  --control: #cfd6de;
  --today: #dc2626;
  --success: #16a34a;
  --success-text: #166534;
  --task: #93c5fd;
  --task-border: #3b82f6;
  --task-icon: #2563eb;
  --event: #fcd34d;
  --event-border: #d97706;
  --event-icon: #b45309;
  --milestone: #6b7280;
  --phone: #111827;

  --font: "Geist", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 8px;
  --radius-card: 12px;
  --gutter: 32px;
  --shadow-card: 0 1px 0 rgba(31, 41, 51, .04), 0 24px 48px -24px rgba(31, 41, 51, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 14px; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 16px; color: #fff; }

/* Small uppercase mono labels (eyebrows, figures, axis). */
.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono-label--brand { color: var(--primary); }

.grid-bg {
  background-color: var(--ground);
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
}

.h-display { font-size: clamp(32px, 4.2vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.h-section { font-size: clamp(26px, 3vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }

/* ---------- Icons ---------- */
.i { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i .f { fill: currentColor; stroke: none; }
.i--task { color: var(--task-icon); }
.i--event { color: var(--event-icon); }
.i--milestone { color: var(--milestone); }
.i--brand { color: var(--primary); }
.i--success { color: var(--success); }
.i--trust { color: var(--success-text); }
.i--muted { color: var(--muted); }

/* ---------- Logo lockup ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.lockup__word { font-weight: 600; font-size: 20px; letter-spacing: -.035em; line-height: 1; color: var(--text); }
.lockup--s { gap: 6px; }
.lockup--s .lockup__word { font-size: 13px; }
.lockup--footer { gap: 8px; }
.lockup--footer .lockup__word { font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font); font-weight: 500; line-height: 20px; white-space: nowrap; text-decoration: none;
}
.btn--s { padding: 8px 14px; font-size: 14px; }
.btn--l { padding: 13px 20px; font-size: 15px; }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn--secondary { background: #fff; border-color: var(--control); color: var(--text); }
.btn--secondary:hover { background: var(--subtle); color: var(--text); }
.btn--inverse { background: #fff; border-color: #fff; color: var(--primary); }
.btn--inverse:hover { background: var(--primary-50); color: var(--primary-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.tag--active { background: #dcfce7; color: var(--success-text); }
.tag--you { background: var(--primary); color: #fff; }

/* ---------- Header ---------- */
.site-header__bar { display: flex; align-items: center; gap: 36px; height: 76px; }
.site-header__brand { display: inline-flex; text-decoration: none; }
.site-header__nav { display: flex; gap: 28px; font-size: 14px; }
.site-header__nav a { color: var(--muted); text-decoration: none; }
.site-header__nav a:hover { color: var(--text); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-header__login { font-size: 14px; color: var(--text); text-decoration: none; }
.site-header__login:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero__inner { padding-top: 88px; padding-bottom: 96px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--control);
}
.pill .mono-label { color: var(--text); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.hero__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; }
.hero__title { grid-column: span 8; font-size: clamp(44px, 6.4vw, 76px); line-height: .98; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.hero__intro { grid-column: span 4; display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }
.hero__lede { font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hero__figure { margin-top: 64px; }
.hero__caption { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 14px; }

/* The iteration card with its timeline */
.plan-card { background: #fff; border: 1px solid var(--control); border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; }
.plan-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.plan-card__name { font-size: 15px; font-weight: 600; }
.plan-card__meta { font-size: 13px; color: var(--muted); }
.ref-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--primary); border-radius: var(--radius); background: var(--primary-50); color: var(--primary); }
.ref-chip .mono-label { font-size: 10px; color: var(--primary); }
.ref-chip__date { font-size: 13px; font-weight: 500; }
.plan-card__scroll { overflow-x: auto; padding: 18px 20px 4px; }
.plan-card__scroll:focus-visible { outline-offset: -3px; }

.gantt { display: flex; min-width: 860px; }
.gantt__labels { width: 300px; flex-shrink: 0; padding-top: 28px; }
.gantt__label { height: 32px; display: flex; align-items: center; gap: 8px; padding-right: 12px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.gantt__label.is-striped { background: var(--subtle); }
.gantt__offset { width: 48px; flex-shrink: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.gantt__offset.is-reference { color: var(--primary); }
.gantt__title { overflow: hidden; text-overflow: ellipsis; }
.gantt__chart { flex-grow: 1; min-width: 0; display: block; overflow: visible; }
.g-stripe { fill: var(--subtle); }
.g-grid { fill: var(--border); }
.g-task { fill: var(--task); stroke: var(--task-border); stroke-width: 1; }
.g-notch { fill: var(--task-border); }
.g-event { fill: var(--event); stroke: var(--event-border); stroke-width: 1; }
.g-milestone { fill: var(--milestone); stroke: #fff; stroke-width: 2; paint-order: stroke; }
.g-reference { fill: var(--primary); stroke: #fff; stroke-width: 3; paint-order: stroke; }
.g-refline { fill: var(--primary); }
.g-month { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; fill: var(--muted); }
.g-refcaption { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; fill: var(--primary); }

/* ---------- Sections ---------- */
.section--uses { padding-top: 88px; }
.section--how, .section--origin, .section--beta { padding-top: 112px; }
.eyebrow { margin-bottom: 12px; }

/* Use cases */
.uses__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.uses__head .h-section { max-width: 560px; }
.uses__lede { max-width: 380px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--text); border-right: 1px solid var(--border); }
.uses__item { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 32px; border-left: 1px solid var(--border); }
.uses__title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.uses__text { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* How it works */
.how__title { max-width: 760px; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step__head { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--text); padding-top: 16px; }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--primary); }
.step__title { font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.step__text { font-size: 15px; line-height: 1.55; color: var(--muted); min-height: 70px; }

.mini-list { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13px; }
.mini-list li + li { border-top: 1px solid var(--border); }
.mini-list__title { flex-grow: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list__when { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.mini-list__when.is-reference { color: var(--primary); }

.mock-form { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mock-field { display: flex; flex-direction: column; gap: 6px; }
.mock-field__label { font-size: 12px; color: var(--muted); }
.mock-field__input { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border: 1px solid var(--control); border-radius: var(--radius); background: #fff; font-size: 14px; line-height: 20px; }
.mock-field__input.is-focused { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.mock-form__ok { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--success-text); }

.shift { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.shift__row { display: flex; align-items: center; gap: 10px; height: 26px; }
.shift__label { width: 84px; flex-shrink: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.shift__track { position: relative; flex-grow: 1; height: 10px; }
.shift__bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--border); border: 1px solid var(--control); }
.shift__bar--permits { left: 8%; width: 22%; }
.shift__bar--renovation { left: 30%; width: 38%; }
.shift__bar--it { left: 62%; width: 8%; }
.shift__rows--after .shift__bar { background: var(--task); border-color: var(--task-border); }
.shift__rows--after .shift__bar--permits { left: 14%; }
.shift__rows--after .shift__bar--renovation { left: 36%; }
.shift__rows--after .shift__bar--it { left: 68%; }
.shift__move { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px 94px; }
.shift__move .mono-label { font-size: 10.5px; }

/* For stakeholders */
.stakeholders { margin-top: 120px; background: var(--ground); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stakeholders__inner { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.stakeholders__copy { grid-column: span 6; display: flex; flex-direction: column; gap: 28px; }
.stakeholders__lede { max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.features { display: flex; flex-direction: column; gap: 22px; }
.feature { display: flex; gap: 14px; }
.feature__icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); color: var(--primary); }
.feature__title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.feature__text { font-size: 14px; line-height: 1.55; color: var(--muted); }
.trust { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid var(--control); border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.5; }

.devices { grid-column: span 6; position: relative; height: 640px; padding-left: 40px; }
/* The design sizes the screen at 300 x 600, inside a 10px bezel. */
.phone { width: 320px; padding: 10px; line-height: 1.25; border-radius: 36px; background: var(--phone); box-shadow: 0 30px 60px -30px rgba(17, 24, 39, .5); }
.phone__screen { height: 600px; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: #fff; }
.phone__bar { padding: 18px 16px 12px; border-bottom: 1px solid var(--border); }
.phone__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.phone__back { font-size: 11px; color: var(--muted); }
.phone__title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.phone__sub { font-size: 11.5px; color: var(--muted); }
.phone__news { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 10px; background: var(--primary-50); }
.phone__news-title { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--primary-hover); }
.phone__news-text { font-size: 11.5px; line-height: 1.45; }
.act { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.act__title { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.act__when { font-size: 11.5px; color: var(--muted); }
/* Past activities are dimmed with lighter colours rather than opacity, to keep AA contrast. */
.act.is-past { border-color: #eef1f4; }
.act.is-past .act__title { color: var(--muted); }
.act.is-past .act__when { color: #6b7280; }
.act.is-mine { background: var(--primary-50); border-color: var(--primary-100); }
.today { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.today__line { height: 1.5px; flex-grow: 1; background: var(--today); }
.today__label { font-size: 9.5px; color: var(--today); }

.email { position: absolute; left: 250px; top: 300px; width: 330px; overflow: hidden; background: #fff; border: 1px solid var(--control); border-radius: var(--radius-card); box-shadow: 0 20px 40px -20px rgba(31, 41, 51, .3); }
.email__subject { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
.email__subject span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.email__text { font-size: 13px; line-height: 1.5; }
.email__button { align-self: flex-start; padding: 7px 12px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 500; }

/* Origin */
.origin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--text); padding-top: 28px; }
.origin__label { grid-column: span 4; }
.origin__body { grid-column: span 8; display: flex; flex-direction: column; gap: 24px; }
.origin__quote { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -.02em; text-wrap: pretty; }
.origin__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.origin__title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.origin__text { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Free beta */
.beta {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px;
  padding: 64px; border-radius: 20px; color: #fff;
  background-color: var(--primary);
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.beta :focus-visible { outline-color: #fff; }
.beta__copy { grid-column: span 7; display: flex; flex-direction: column; gap: 22px; }
.beta__eyebrow { color: var(--primary-100); }
.beta__title { font-size: clamp(34px, 4.6vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.beta__lede { max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--primary-100); }
.beta__plan { grid-column: span 5; display: flex; flex-direction: column; justify-content: flex-end; }
.beta__plan .beta__eyebrow { margin-bottom: 8px; }
.limits__item { display: flex; flex-direction: column-reverse; gap: 6px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.limits__item dd { font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.limits__item dt { font-size: 14px; color: var(--primary-100); }

/* ---------- Footer ---------- */
.site-footer { padding-top: 72px; padding-bottom: 48px; }
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; border-top: 1px solid var(--border); padding-top: 28px; }
.site-footer__tagline { font-size: 13px; color: var(--muted); }
.site-footer__nav { margin-left: auto; display: flex; gap: 24px; font-size: 13px; }
.site-footer__nav a { color: var(--muted); text-decoration: none; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__copy { margin-top: 20px; font-size: 10.5px; }

/* ---------- 404 ---------- */
.notfound { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.notfound__inner { padding-top: 96px; padding-bottom: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.notfound__text { max-width: 520px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  /* The 12-column grids become one column (11 gaps of 32px would not fit a phone). */
  .hero__head, .stakeholders__inner, .beta { grid-template-columns: minmax(0, 1fr); }
  .hero__title, .hero__intro, .stakeholders__copy, .devices, .beta__copy, .beta__plan { grid-column: auto; }
  .hero__intro { max-width: 560px; }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 48px; }
  .step__text { min-height: 0; }
  .devices { max-width: 620px; }
}
@media (max-width: 900px) {
  .site-header__nav { display: none; }
  .uses__head { flex-direction: column; align-items: flex-start; }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses__item { border-bottom: 1px solid var(--border); }
  .origin { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .origin__label, .origin__body { grid-column: auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header__bar { height: 64px; gap: 12px; }
  .site-header__actions { gap: 12px; }
  .hero__inner { padding-top: 48px; padding-bottom: 56px; }
  .hero__head { gap: 24px; }
  .hero__figure { margin-top: 40px; }
  .plan-card__head { padding: 12px 16px; }
  .ref-chip { margin-left: 0; }
  .plan-card__scroll { padding: 14px 16px 4px 0; }
  /* The chart scrolls sideways under a narrower, sticky column of activity names. */
  .gantt { min-width: 760px; }
  .gantt__labels { width: 206px; padding-left: 16px; position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--border); }
  .gantt__offset { width: 40px; }
  .section--uses { padding-top: 64px; }
  .section--how, .section--origin, .section--beta { padding-top: 80px; }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .stakeholders { margin-top: 80px; }
  .stakeholders__inner { padding-top: 64px; padding-bottom: 64px; }
  /* Phone then email, overlapping, in the normal flow. */
  .devices { height: auto; padding-left: 0; display: flex; flex-direction: column; align-items: center; }
  .phone { width: min(320px, 100%); }
  .email { position: relative; left: auto; top: auto; width: min(330px, 100%); margin-top: -88px; align-self: flex-end; }
  .origin__cols { grid-template-columns: minmax(0, 1fr); }
  .beta { padding: 40px 24px; gap: 24px; border-radius: 16px; }
  .site-footer { padding-top: 56px; }
  .site-footer__nav { margin-left: 0; }
  .notfound__inner { padding-top: 64px; padding-bottom: 80px; }
}

/* ---------- Legal pages (terms, privacy, DPA) ---------- */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal__draft { margin: 0 0 24px; padding: 12px 16px; border: 1px solid #f3d38a; border-radius: 10px; background: #fffbeb; color: #78350f; font-size: 14px; line-height: 1.5; }
.legal__title { margin: 8px 0 24px; font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.legal__body { font-size: 16px; line-height: 1.65; color: var(--text); }
.legal__body h2 { margin: 36px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.legal__body p { margin: 0 0 14px; }
.legal__body ul { margin: 0 0 14px; padding-left: 20px; }
.legal__body li { margin-bottom: 6px; }
.legal__body a { color: var(--primary); }
.legal__body table { width: 100%; margin: 8px 0 16px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal__body th { text-align: left; font-family: var(--mono, ui-monospace, monospace); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 8px 0; }
.legal__body td { vertical-align: top; border-top: 1px solid var(--border); padding: 10px 10px 10px 0; }
@media (max-width: 640px) {
  .legal__title { font-size: 28px; }
  .legal__body table, .legal__body thead, .legal__body tbody, .legal__body tr, .legal__body th, .legal__body td { display: block; }
  .legal__body thead { display: none; }
  .legal__body td { border-top: none; padding: 2px 0; }
  .legal__body tr { border-top: 1px solid var(--border); padding: 10px 0; }
}

/* ---------- Waiting list (/waiting-list.html) ---------- */
.waitlist { border-bottom: 1px solid var(--border); }
.waitlist__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: start; padding-top: 72px; padding-bottom: 96px; }
.waitlist__title { margin: 0 0 16px; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.waitlist__lede { margin: 0 0 24px; max-width: 34rem; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.waitlist__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.waitlist__points li { display: flex; align-items: flex-start; gap: 10px; }
.waitlist__points .i { color: var(--success); margin-top: 3px; }
.waitlist__points a { color: var(--primary); }
.waitlist__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: 0 20px 40px -24px rgba(31, 41, 51, .25); }
.waitlist__card .hs-form-frame { min-height: 320px; }
.waitlist__privacy { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--muted); }
.waitlist__privacy a { color: var(--primary); }
@media (max-width: 900px) {
  .waitlist__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 64px; }
}
