/* Lull public site — landing (/) and install (/install/).
   Tokens mirror portal/src/styles.css ("warm paper, deep teal"); see portal/DESIGN.md. */
:root {
  --bg: oklch(97.6% .005 85);
  --surface: oklch(99.7% .002 85);
  --surface-2: oklch(96.4% .005 85);
  --surface-3: oklch(93.4% .007 85);
  --line: oklch(90.8% .007 85);
  --line-strong: oklch(84.5% .009 85);
  --ink: oklch(23% .01 70);
  --ink-2: oklch(42% .01 70);
  --ink-3: oklch(52% .01 70);
  --accent: oklch(46% .085 195);
  --accent-ink: oklch(99% .003 195);
  --accent-soft: oklch(94.5% .025 195);
  --urgent: oklch(50% .17 25);
  --urgent-soft: oklch(95% .03 25);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --r-card: 14px;
  --r-ctl: 10px;
  --shadow-pop: 0 12px 32px -12px oklch(23% .02 70 / .25);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(18.2% .006 70);
    --surface: oklch(21.4% .007 70);
    --surface-2: oklch(24.6% .007 70);
    --surface-3: oklch(28.4% .008 70);
    --line: oklch(29.5% .008 70);
    --line-strong: oklch(36% .009 70);
    --ink: oklch(94.5% .005 85);
    --ink-2: oklch(78% .007 85);
    --ink-3: oklch(66% .008 85);
    --accent: oklch(72% .09 192);
    --accent-ink: oklch(18% .02 195);
    --accent-soft: oklch(30% .04 195);
    --urgent: oklch(72% .14 25);
    --urgent-soft: oklch(30% .05 25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Inter, "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { letter-spacing: -0.012em; font-weight: 700; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 52px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Language switching: elements carry data-l="da" or data-l="en". */
html[data-lang="da"] [data-l="en"], html[data-lang="en"] [data-l="da"] { display: none !important; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: none; gap: 22px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button { border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13px; line-height: 1; font-family: inherit; padding: 8px 11px; min-height: 32px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; font-family: inherit; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s var(--ease-out), background-color .15s var(--ease-out); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, black); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.top .btn-sm { display: none; }
@media (min-width: 560px) { .top .btn-sm { display: inline-flex; } }

/* Hero */
.hero { padding: 56px 0 40px; }
@media (min-width: 960px) { .hero { padding: 80px 0 64px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lede { font-size: 19px; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

.film { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.film video, .film img.poster { width: 100%; height: 100%; object-fit: cover; }
.film img.poster { position: absolute; inset: 0; }
.film.has-video img.poster { display: none; }
.film-ctl { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.film-ctl button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--line-strong) 70%, transparent); background: color-mix(in oklch, var(--surface) 86%, transparent); color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1; font-family: inherit; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.film:not(.has-video) .film-ctl { display: none; }
.film video::cue { font: 500 15px/1.35 Inter, system-ui, sans-serif; background: oklch(20% .01 70 / .78); color: #fff; }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 960px) { section { padding: 88px 0; } }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head p { margin-top: 12px; font-size: 18px; color: var(--ink-2); }
.kicker { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 10px; display: block; }

.grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); }
.card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); }
.list li strong { color: var(--ink); font-weight: 600; }
.list li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23136b6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

.module-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500; }

.quote { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; font-size: 17px; color: var(--ink); max-width: 36em; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: grid; gap: 10px; }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.mock-row b { font-weight: 600; }
.mock-row span { color: var(--ink-3); font-size: 14px; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tag-concern { background: oklch(95% .04 55); color: oklch(45% .12 55); }
.tag-stable { background: oklch(95% .04 152); color: oklch(42% .1 152); }
.tag-urgent { background: var(--urgent-soft); color: var(--urgent); }
@media (prefers-color-scheme: dark) {
  .tag-concern { background: oklch(32% .06 55); color: oklch(85% .1 55); }
  .tag-stable { background: oklch(30% .05 152); color: oklch(85% .08 152); }
}
.bubble { max-width: 85%; padding: 12px 14px; border-radius: 16px; font-size: 15px; }
.bubble.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.bubble.ai { background: var(--surface-2); border-bottom-left-radius: 6px; }

.notice { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; color: var(--ink-2); font-size: 15px; }
.notice strong { color: var(--ink); }
.notice.crisis { background: var(--urgent-soft); border-color: color-mix(in oklch, var(--urgent) 30%, transparent); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 20px; color: var(--ink-2); }
.faq details > div p + p { margin-top: 10px; }

/* Final CTA + footer */
.final { text-align: center; }
.final .cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: grid; gap: 20px; }
@media (min-width: 800px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
footer h4 { margin: 0; color: var(--ink); font-size: 14px; }

/* Install page */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; line-height: 1; font-family: inherit; min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps .k { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.steps .k svg { width: 15px; height: 15px; display: inline-block; }
.platform[hidden] { display: none; }
.detected { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.app-pick { display: grid; gap: 12px; }
@media (min-width: 760px) { .app-pick { grid-template-columns: 1fr 1fr; } }
.app-pick .card { display: grid; gap: 12px; align-content: start; }
.app-pick .card .cta { margin-top: 4px; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .12s !important; animation-duration: .12s !important; }
}
