/* Moses landing pages (/welcome/, /tts/ for visitors, the legal pages). Light blue scheme; the four block colours
   carry meaning as in the app — amber wakes the agent, blue thinks, teal remembers, rose acts. */
:root {
  color-scheme: light;
  --bg: #f3f8ff;
  --glow: #d9eaff;
  --surface: #ffffff;
  --surface-2: #eaf2fc;
  --line: #d3e0f0;
  --text: #172640;
  --muted: #55657e;
  --trigger: #b26d00;
  --mind: #1f6fd6;
  --memory: #0b8a78;
  --action: #c92f53;
  --ok: #19985a;
  --danger: #c42a40;
  --on-mind: #ffffff;
  --shadow: 0 1px 2px rgb(23 38 64 / .06), 0 22px 50px -26px rgb(23 38 64 / .32);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1a2d; --glow: #17345e; --surface: #16243d; --surface-2: #1d3050; --line: #2a4166;
    --text: #e9f2ff; --muted: #9fb2cf; --trigger: #ffb547; --mind: #6fb4ff; --memory: #3dd9c1;
    --action: #ff7a93; --ok: #4fd18b; --danger: #ff6b7d; --on-mind: #0e1a2d;
    --shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 26px 60px -28px rgb(0 0 0 / .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1a2d; --glow: #17345e; --surface: #16243d; --surface-2: #1d3050; --line: #2a4166;
  --text: #e9f2ff; --muted: #9fb2cf; --trigger: #ffb547; --mind: #6fb4ff; --memory: #3dd9c1;
  --action: #ff7a93; --ok: #4fd18b; --danger: #ff6b7d; --on-mind: #0e1a2d;
  --shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 26px 60px -28px rgb(0 0 0 / .8);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: radial-gradient(1100px 620px at 85% -10%, var(--glow), transparent 70%), var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2.5px solid var(--mind); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* ── Header ───────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 24px/1 var(--display); font-variation-settings: "wdth" 82; letter-spacing: -.01em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .12s ease, background-color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--mind); color: var(--on-mind); }
.btn-main:hover { background: color-mix(in srgb, var(--mind) 88%, var(--text)); }
.btn-main:disabled { opacity: .55; cursor: default; }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn-quiet { min-height: 44px; padding: 0 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { display: grid; gap: 48px; padding-top: 56px; padding-bottom: 88px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 64px; padding-top: 48px; padding-bottom: 120px; } }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); line-height: 1.02; font-weight: 700; letter-spacing: -.025em; font-variation-settings: "wdth" 80, "opsz" 96; max-width: 13ch; }
#hero-title { font-size: clamp(2.1rem, 4.1vw, 3.5rem); max-width: none; }
#hero-title span { display: block; }
@media (min-width: 960px) { #hero-title span { white-space: nowrap; } }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34rem; margin: 24px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { color: var(--muted); font-size: 14.5px; margin: 18px 0 0; }
.pillars { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; max-width: 34rem; }
.pillars li { display: flex; align-items: baseline; gap: 14px; }
.pillars .key { position: relative; top: -1px; }
.pillars p { margin: 0; color: var(--muted); }
.pillars b { color: var(--text); font-family: var(--display); font-weight: 650; font-variation-settings: "wdth" 90; }

/* The moment: one tick of an agent, as the Mind View shows it */
.moment { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 18px 18px 8px; max-width: 520px; width: 100%; justify-self: center; }
.moment-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; font-size: 14.5px; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--mind) 16%, transparent); color: var(--mind); font: 700 14px/1 var(--display); }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 26px; width: 2px; background: var(--line); border-radius: 2px; }
.step { position: relative; padding: 0 4px 16px 42px; --c: var(--mind); }
.step::before { content: ""; position: absolute; left: 9px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3.5px var(--c); }
.step.trigger { --c: var(--trigger); }
.step.mind { --c: var(--mind); }
.step.memory { --c: var(--memory); }
.step.action { --c: var(--action); }
.tag { display: block; font-size: 13px; font-weight: 600; color: var(--c); margin-bottom: 2px; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.step.mind p { font-style: italic; }
.ask { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--trigger) 10%, transparent); }
.ask-label { font-size: 14px; font-weight: 600; color: var(--trigger); }
.ask-btns { display: flex; gap: 6px; }
.pill { font-size: 13.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pill-ok { background: var(--ok); color: #fff; box-shadow: none; }

/* One orchestrated reveal: the moment plays out once when the page opens. */
@media (prefers-reduced-motion: no-preference) {
  .js .step { opacity: 0; transform: translateY(6px); animation: reveal .5s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(400ms + var(--i) * 750ms); }
  .js .ask { opacity: 0; animation: reveal .45s ease-out forwards; animation-delay: 3200ms; }
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ── Our agents don't die ──────────────────────────────── */
.top-nav { display: flex; align-items: center; gap: 6px; }
.signin { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 999px; }
.signin:hover { background: var(--surface-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alive { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.lives { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 760px) { .lives { grid-template-columns: 1fr 1fr; gap: 28px; } }
.life { margin: 0; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.life figcaption { padding: 14px 18px 18px; display: grid; gap: 2px; font-size: 15px; color: var(--muted); }
.life figcaption b { color: var(--text); font-family: var(--display); font-size: 1.1rem; font-variation-settings: "wdth" 90; }
.tab { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.tab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.tab-title { margin-left: 8px; flex: 1; }
.tab-x { font-size: 16px; line-height: 1; }
.session-body, .moses-body { min-height: 210px; padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.sb { margin: 0; padding: 9px 13px; border-radius: 16px; max-width: 85%; font-size: 15px; }
.sb-you { align-self: flex-end; background: var(--mind); color: var(--on-mind); }
.sb-bot { align-self: flex-start; background: var(--surface-2); }
.cap-end { color: var(--danger); }
.moses-body { align-items: center; justify-content: center; }
.days { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.being { position: relative; width: 74px; height: 74px; margin: 22px 0 18px; }
.being-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 28px/1 var(--display); background: radial-gradient(circle at 30% 25%, #8cc4ff, #1f6fd6 60%, #1553a8); }
.being-halo { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--mind); animation: breathe 4.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.09); opacity: .95; } }
.orb { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; background: var(--memory); box-shadow: 0 0 10px var(--memory); transform: rotate(var(--a)) translateX(54px); }
.greet { margin: 0; padding: 9px 13px; border-radius: 16px; border-bottom-left-radius: 6px; background: var(--surface-2); font-size: 15px; max-width: 92%; }

/* The comparison plays once when it scrolls into view: the session fades to grey, the agent collects a memory a
   day and greets its user on Friday. Without motion (or without JS) both end states show right away. */
@media (prefers-reduced-motion: no-preference) {
  .js .lives .sb, .js .lives .cap-end, .js .lives .orb, .js .lives .greet, .js .lives .days span { opacity: 0; }
  .js .lives.play .sb-you { animation: reveal .4s ease-out .2s forwards; }
  .js .lives.play .sb-bot { animation: reveal .4s ease-out .9s forwards; }
  .js .lives.play .life-session { animation: fade-out 1s ease-in 2.4s forwards; }
  .js .lives.play .cap-end { animation: reveal .4s ease-out 3.2s forwards; }
  .js .lives.play .days span { animation: reveal .3s ease-out forwards; }
  .js .lives.play .days span:nth-child(2) { animation-delay: .7s; } .js .lives.play .days span:nth-child(3) { animation-delay: 1.4s; }
  .js .lives.play .days span:nth-child(4) { animation-delay: 2.1s; } .js .lives.play .days span:nth-child(5) { animation-delay: 2.8s; }
  .js .lives.play .orb { animation: orb-in .5s ease-out forwards; animation-delay: calc(var(--d) * .7s + .2s); }
  .js .lives.play .greet { animation: reveal .45s ease-out 3.6s forwards; }
}
@keyframes fade-out { to { filter: grayscale(1); opacity: .55; } }
@keyframes orb-in { from { opacity: 0; transform: rotate(var(--a)) translateX(20px) scale(.4); } to { opacity: 1; transform: rotate(var(--a)) translateX(54px); } }
@media (prefers-reduced-motion: reduce) { .being-halo { animation: none; } .life-session { filter: grayscale(1); opacity: .6; } }

.compare { width: 100%; margin-top: 36px; border-collapse: collapse; font-size: 15.5px; }
.compare th { text-align: left; font: 650 1rem/1.3 var(--display); font-variation-settings: "wdth" 90; padding: 0 12px 10px 0; }
.compare th:last-child { color: var(--mind); }
.compare td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; width: 50%; }
.compare td:first-child { color: var(--muted); }

/* ── Sections ─────────────────────────────────────────── */
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; font-variation-settings: "wdth" 84; }
.section-lead { color: var(--muted); max-width: 40rem; margin: 16px 0 0; font-size: 1.08rem; }
.glass, .can, .links { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }

.glass-grid { display: grid; gap: 36px 48px; margin-top: 44px; }
@media (min-width: 720px) { .glass-grid { grid-template-columns: 1fr 1fr; } }
.glass-grid h3 { font-size: 1.3rem; font-weight: 650; display: flex; align-items: center; gap: 12px; font-variation-settings: "wdth" 90; }
.glass-grid p { margin: 8px 0 0; color: var(--muted); max-width: 30rem; }
.key { width: 12px; height: 12px; border-radius: 4px; flex: none; transform: rotate(45deg); }
.k-mind { background: var(--mind); }
.k-action { background: var(--action); }
.k-trigger { background: var(--trigger); }
.k-memory { background: var(--memory); }

/* Describe it, Moses builds it: three steps beside an example of a described process and the team it gets. */
.build { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.build-grid { display: grid; gap: 40px; margin-top: 40px; align-items: start; }
@media (min-width: 860px) { .build-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.how { margin: 0; padding-left: 1.4em; display: grid; gap: 18px; }
.how li { padding-left: 4px; }
.how li::marker { font: 650 1.05rem var(--display); color: var(--mind); }
.how b { display: block; font: 650 1.12rem/1.3 var(--display); font-variation-settings: "wdth" 90; }
.privacy-line { margin: 28px 0 0; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--memory) 10%, transparent); font-size: 15.5px; }
.plan { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 20px; }
.said { margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line); font-style: italic; color: var(--muted); font-size: 15.5px; }
.crew { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.agent { padding: 10px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--mind); }
.agent b { display: block; font: 650 1.05rem/1.3 var(--display); }
.agent span { color: var(--muted); font-size: 14.5px; }
.agent-inside { box-shadow: inset 0 0 0 1.5px var(--memory); }
.hand { padding: 2px 0 2px 28px; position: relative; color: var(--muted); font-size: 13.5px; }
.hand::before { content: "↓"; position: absolute; left: 10px; color: var(--mind); font-weight: 700; }

.link-groups { display: grid; gap: 32px 48px; margin-top: 40px; }
@media (min-width: 720px) { .link-groups { grid-template-columns: 1fr 1fr; } }
.link-group h3 { font: 650 1.12rem/1.3 var(--display); font-variation-settings: "wdth" 90; margin: 0; }
.link-group p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; }
.link-group:first-child .chips li { border-color: var(--mind); }
.facts { display: grid; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.facts p { margin: 0; color: var(--muted); font-size: 15.5px; }
.facts b { color: var(--text); display: block; margin-bottom: 4px; font-size: 16.5px; }

/* ── Moses TTS (links to /tts/) ───────────────────────────── */
.eyebrow { margin: 0 0 12px; font-weight: 600; font-size: 14.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--mind); }
.voice { display: grid; gap: 36px; padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); align-items: center; }
@media (min-width: 900px) { .voice { grid-template-columns: 1fr 1fr; gap: 56px; } }
.voice-apis { display: grid; gap: 14px; min-width: 0; }
.voice-api { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .12s, transform .12s; min-width: 0; }
.voice-api:hover { border-color: var(--mind); transform: translateY(-1px); }
.voice-api .key { position: relative; top: -1px; }
.voice-api b { font: 650 1.15rem/1.3 var(--display); font-variation-settings: "wdth" 90; }
.voice-api span:not(.key), .voice-api code { grid-column: 2; }
.voice-api span:not(.key) { color: var(--muted); font-size: 15.5px; }
.voice-api code { margin-top: 6px; justify-self: start; max-width: 100%; overflow-wrap: anywhere; font: 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); }
.voice-more { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.voice-more a { color: var(--mind); }
.voice-points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.voice-points li { position: relative; padding-left: 22px; }
.voice-points li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--mind); }
.voice-points b { color: var(--text); }
.voice .section-lead b { color: var(--text); }
/* the announcement above the hero title: the voice APIs */
.announce { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14.5px; line-height: 1.35; max-width: 100%; transition: border-color .12s; }
.announce:hover { border-color: var(--mind); }
.announce-tag { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--mind); color: var(--on-mind); font-weight: 650; font-size: 12.5px; letter-spacing: .03em; }
@media (max-width: 560px) { .nav-tts { display: none !important; } }

/* ── Signup ───────────────────────────────────────────── */
.join { display: grid; gap: 32px; padding-top: 72px; padding-bottom: 96px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
@media (min-width: 900px) { .join { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }
.join-copy p { color: var(--muted); max-width: 26rem; margin: 16px 0 0; font-size: 1.08rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 18px; }
@media (max-width: 480px) { .form { padding: 20px; border-radius: 22px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.opt { color: var(--muted); font-weight: 400; }
input[type="email"], input[type="text"], textarea {
  width: 100%; font: 16px/1.45 var(--sans); color: var(--text); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px 14px; min-height: 48px; transition: border-color .12s;
}
textarea { resize: vertical; min-height: 92px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus, textarea:focus { outline: none; border-color: var(--mind); }
input[aria-invalid="true"] { border-color: var(--danger); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.botcheck { justify-self: start; width: 100%; max-width: 360px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mind); flex: none; }
.form .btn { width: 100%; }
.join-note { font-size: 15.5px !important; }
.product { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.product legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
@media (min-width: 560px) { .product { grid-template-columns: 1fr 1fr; } .product legend { grid-column: 1 / -1; }
  .product-option:first-of-type { grid-column: 1 / -1; } }   /* the platform across, the two voice APIs side by side */
.product-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .12s, background-color .12s; }
.product-option:has(input:checked) { border-color: var(--mind); background: color-mix(in srgb, var(--mind) 7%, var(--surface)); }
.product-option input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--mind); flex: none; }
.product-option span { display: grid; gap: 2px; }
.product-option b { font-size: 15.5px; }
.product-option small { color: var(--muted); font-size: 14px; line-height: 1.4; }
@media (min-width: 560px) { .form .btn { width: auto; justify-self: start; } }
.status { margin: 0; font-size: 15px; min-height: 1.4em; }
.status.err { color: var(--danger); }
.status.ok { color: var(--ok); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.token h3 { font-size: 1.5rem; font-weight: 700; }
.token p { margin: 0; color: var(--muted); }
.done-note { font-size: 1.05rem; color: var(--text) !important; }

/* ── Footer ───────────────────────────────────────────── */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ── Legal pages (impressum.html, privacy_policy.html, legal.html) ─────── */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; font-variation-settings: "wdth" 84; margin-bottom: 24px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; font-variation-settings: "wdth" 90; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--text); }
.legal .updated { font-size: 14.5px; margin-top: -12px; }
.legal address { font-style: normal; color: var(--text); line-height: 1.6; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; color: var(--muted); }
.legal dt { color: var(--text); }
.legal dd { margin: 0; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }
.legal .notice { border-left: 4px solid var(--text); padding: 14px 18px; margin: 20px 0; background: color-mix(in srgb, var(--text) 5%, transparent); border-radius: 0 12px 12px 0; }
.legal .notice p { color: var(--text); }
.legal strong { color: var(--text); }
/* still to be filled in by the company before the site goes public */
.legal mark.todo { background: #ffe066; color: #172640; padding: 0 4px; border-radius: 4px; }
