/* Leanward site. Brand palette from docs/BRAND.md in the app repository.
   Sora is self-hosted (OFL, from Google Fonts), so no request leaves this site. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sora-latin.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;
}

:root {
  color-scheme: light dark;
  --ember: #FF7A45;

  --bg: #FBF4E8;
  --surface: #FFFDF8;
  --sunken: #F8E7C9;
  --text: #10231D;
  --muted: #064E3B;
  --line: #E3E0DA;
  --accent: #00715A;
  --accent-fill: #0F7A5C;
  --on-accent: #FFFFFF;
  --accent-soft: var(--sunken);
  --ring: var(--accent-fill);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1A15;
    --surface: #12261F;
    --sunken: #071009;
    --text: #F8E7C9;
    --muted: #9BA1AA;
    --line: #26292E;
    --accent: #3BD2AC;
    --accent-fill: #3BD2AC;
    --on-accent: #0D0E10;
    --ring: #3BD2AC;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 68rem; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 4px 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: inline-flex; color: var(--text); line-height: 0; }
.wordmark { height: 22px; width: auto; }
.wordmark .letters { fill: currentColor; }
.wordmark .dot { fill: var(--ember); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 0.9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav .lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px;
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--text);
}

/* Type */
main { padding: 40px 0 64px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); margin: 0 0 8px; font-weight: 700; }
h2 { font-size: 1.3rem; margin: 48px 0 12px; font-weight: 650; scroll-margin-top: 16px; }
h3 { font-size: 1.05rem; margin: 28px 0 8px; font-weight: 600; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
.lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 0.875rem; }
small, .small { font-size: 0.875rem; }
code { font-size: 0.9em; }

/* Plain-words box and notes */
.summary {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 20px 22px 8px;
  margin: 0 0 32px;
}
.summary h2 { margin-top: 0; font-size: 1.1rem; }
.note {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 4px; margin: 20px 0;
}
.placeholder { background: #FFE9DF; color: #7A2E0E; padding: 0 4px; border-radius: 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .placeholder { background: #4A2616; color: #FFD2BF; } }

/* Contents */
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0 6px; margin-bottom: 8px; }
.toc ol { columns: 2 16rem; column-gap: 32px; margin: 0; }
.toc li { break-inside: avoid; }

/* Tables scroll inside their own box, never the page */
.table-scroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface); font-weight: 600; }

/* Fact lists (GDPR Art. 13 blocks): stacked on phones, two columns on wider screens */
.facts { margin: 0 0 18px; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; padding-top: 12px; }
.facts dd { margin: 4px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  .facts { display: grid; grid-template-columns: 12rem 1fr; }
  .facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .facts dt { padding-right: 16px; }
}

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
details[open] summary { margin-bottom: 10px; }
details > :last-child { margin-bottom: 4px; }

/* Landing */
.hero { display: grid; gap: 32px; align-items: center; padding: 24px 0 8px; }
.hero-mark { width: 88px; height: 88px; }
.hero-mark .path-stroke { stroke: var(--ring); }
.hero-mark .path-fill { fill: var(--ring); }
.hero-mark .goal { fill: var(--ember); }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); max-width: 18ch; }
.hero .lede { font-size: 1.15rem; max-width: 36rem; }
.badge {
  display: inline-block; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.95rem;
}
.promises { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 48px 0; padding: 0; list-style: none; }
.promises li { background: var(--surface); border-radius: 16px; padding: 22px 22px 8px; margin: 0; }
.promises h2 { font-size: 1.1rem; margin: 0 0 8px; }
.promises .num { display: block; color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; letter-spacing: 0.06em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 20px 0 0; }
.button {
  display: inline-block; background: var(--accent-fill); color: var(--on-accent); text-decoration: none;
  font-weight: 600; border-radius: 999px; padding: 10px 22px;
}
.button:hover { text-decoration: underline; }
.hero .badge { margin-bottom: 0; }

.feature { display: grid; gap: 24px 48px; align-items: center; margin: 64px 0; }
.feature h2 { margin: 0 0 12px; font-size: 1.5rem; }
.feature p { color: var(--muted); max-width: 32rem; }
.feature .shot { margin: 0; justify-self: center; }
.shot img {
  display: block; width: 100%; max-width: 280px; height: auto;
  border-radius: 28px; border: 1px solid var(--line); background: var(--surface);
}
@media (min-width: 720px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-of-type(odd) .shot { order: 2; }
}

.statuslist { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid var(--line); }
.statuslist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.statuslist span:last-child { color: var(--muted); }

.waitlist { background: var(--sunken); border-radius: 16px; padding: 24px 24px 12px; margin: 48px 0 0; }
.waitlist h2 { margin-top: 0; }
.waitlist .button { margin-bottom: 12px; }

/* Forms: plain HTML posts to Pages Functions, no script */
.form { margin: 8px 0 16px; }
.form .field { display: grid; gap: 6px; margin-bottom: 16px; }
.form label { font-weight: 600; font-size: 0.95rem; }
.form .opt, .form .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--surface); width: 100%; max-width: 32rem;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.form textarea { max-width: none; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; }
.form .check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent-fill); }
.form .check label { font-weight: 400; font-size: 1rem; }
.form button.button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rating { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 2px; margin: 0 0 16px; min-width: 0; }
.rating legend { font-weight: 600; padding: 0 6px; }
.scale { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.form .scale label {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface);
}
.scale input { margin: 0; accent-color: var(--accent-fill); }
.form .scale .na { color: var(--muted); }
.form .scale label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.brand-text { color: var(--text); font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; text-decoration: none; }
.brand-text .dot { color: var(--ember); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--muted); }
.site-footer .attrib { flex-basis: 100%; }

@media print {
  .site-header nav, .site-footer nav, .skip { display: none; }
  body { background: #fff; color: #000; }
  .summary { background: none; }
}
.note > h2:first-child { margin-top: 0; }
