/* Landing page (index.html, nl/, de/). privacy.html and terms.html keep styles.css.
   Theme follows html[data-theme], set from localStorage or the system before first paint. */

:root,
[data-theme="light"] {
  color-scheme: light;
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.03rem + 0.45vw, 1.3rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --text-2xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --text-3xl: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-full: 999px;

  --color-bg: oklch(98% 0.008 50);
  --color-surface: oklch(100% 0 0);
  --color-surface-2: oklch(95.5% 0.012 45);
  --color-tint: oklch(95.5% 0.025 30);
  --color-border: oklch(88% 0.015 50);
  --color-text: oklch(24% 0.014 50);
  --color-text-muted: oklch(46% 0.015 50);
  /* Coral fill tuned for 4.9:1 with white text (WCAG AA) */
  --color-primary: oklch(57% 0.18 30);
  --color-primary-hover: oklch(51% 0.18 30);
  --color-primary-ink: oklch(54% 0.18 30);
  --color-on-primary: oklch(100% 0 0);
  --photo-filter: none;

  --shadow-frame: 0 1px 2px oklch(20% 0.01 50 / 0.06), 0 18px 40px -22px oklch(20% 0.02 40 / 0.35);

  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content: 1160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: oklch(17% 0.01 50);
  --color-surface: oklch(21% 0.012 50);
  --color-surface-2: oklch(24% 0.012 50);
  --color-tint: oklch(25% 0.035 30);
  --color-border: oklch(32% 0.012 50);
  --color-text: oklch(93% 0.01 50);
  --color-text-muted: oklch(76% 0.01 50);
  --color-primary: oklch(72% 0.16 27);
  --color-primary-hover: oklch(78% 0.13 27);
  --color-primary-ink: oklch(76% 0.14 27);
  --color-on-primary: oklch(16% 0.01 50);
  --photo-filter: brightness(0.85);
  --shadow-frame: 0 1px 2px oklch(0% 0 0 / 0.3), 0 18px 40px -22px oklch(0% 0 0 / 0.7);
}

/* ── Base ── */

*, ::before, ::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--color-primary);
}

::selection { background: var(--color-tint); color: var(--color-text); }

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - 2rem, var(--content)); margin-inline: auto; }

section { scroll-margin-top: 4.5rem; }

.skip {
  position: absolute; left: 1rem; top: 0; transform: translateY(-120%);
  background: var(--color-surface); color: var(--color-text); padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); z-index: 100;
}
.skip:focus { transform: translateY(1rem); }

/* ── Header ── */

.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in oklch, var(--color-border) 60%, transparent);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; text-decoration: none; min-height: 44px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar-actions { display: flex; align-items: center; gap: var(--space-2); }
.bar-link { font-weight: 600; font-size: var(--text-sm); text-decoration: none; padding: 0 0.75rem; min-height: 44px; display: inline-flex; align-items: center; color: var(--color-text-muted); }
.bar-link:hover { color: var(--color-text); }
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  background: transparent; color: var(--color-text); cursor: pointer;
}
.theme-toggle:hover { background: var(--color-surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
@media (max-width: 479px) { .bar-link { display: none; } }

/* ── Language menu ── */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px; padding: 0 0.75rem;
  font-weight: 600; font-size: var(--text-sm); color: var(--color-text-muted);
  border: 1px solid var(--color-border); border-radius: var(--radius-full); cursor: pointer; list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--color-text); background: var(--color-surface-2); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + var(--space-1)); min-width: 10rem; z-index: 20;
  display: flex; flex-direction: column; padding: var(--space-1);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.lang-list a { display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--color-text-muted); font-size: var(--text-sm); }
.lang-list a:hover { background: var(--color-surface-2); color: var(--color-text); }
.lang-list a[aria-current="true"] { color: var(--color-text); font-weight: 700; }


/* ── Buttons ── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: var(--radius-full);
  font: 600 var(--text-sm) / 1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-lg { min-height: 52px; padding: 0 1.75rem; font-size: var(--text-base); }
.bar .btn { min-height: 44px; padding: 0 1rem; }

/* ── Sections ── */

.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--color-border); }
.sec-head { display: grid; gap: var(--space-4); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: clamp(2rem, 5vw, 5rem); } }
.sec-head h2 { font-size: var(--text-2xl); max-width: 16ch; }
.sec-head p { color: var(--color-text-muted); max-width: 46ch; }

.shot { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); box-shadow: var(--shadow-frame); }
.shot img { width: 100%; }

/* ── Hero ── */

.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .hero { padding-bottom: clamp(5rem, 9vw, 8rem); }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.hero h1 { font-size: var(--text-3xl); max-width: 11ch; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--color-primary-ink); }
.hero .lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 34ch; margin: var(--space-4) 0 var(--space-8); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
@media (max-width: 420px) { .cta .btn-primary { width: 100%; } }
.demo-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.demo-link u { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.demo-link span { color: var(--color-text-muted); font-weight: 500; }
.demo-link:hover u { text-decoration-thickness: 2px; }
.cta-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.cta-note a { color: var(--color-text); font-weight: 600; }

.hero-media { position: relative; display: grid; }
.hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 12% 35%; filter: var(--photo-filter); }
@media (min-width: 900px) { .hero-photo img { object-position: 30% 35%; } }

/* Product video laid over the lower corner of the photo */
.film { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-2); box-shadow: var(--shadow-frame); }
.film video { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; cursor: zoom-in; }
.hero-media .film { width: 88%; justify-self: end; margin-top: -22%; }
@media (min-width: 900px) { .hero-media .film { position: absolute; left: -12%; bottom: -10%; width: 74%; margin: 0; } }
.film-controls { position: absolute; right: 0.5rem; top: 0.5rem; display: flex; gap: 0.375rem; }
.film-btn { min-height: 44px; min-width: 44px; padding: 0 0.85rem; border: 0; border-radius: var(--radius-full); background: color-mix(in oklch, var(--color-surface) 90%, transparent); color: var(--color-text); font: 600 0.8125rem var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.film-btn svg { width: 14px; height: 14px; }
.film-btn[aria-pressed="true"] .i-pause, .film-btn[aria-pressed="false"] .i-play { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .film { animation: settle 1100ms var(--ease-out) both; }
  @keyframes settle { from { transform: translateY(14px) scale(0.975); filter: blur(6px) saturate(0.7); } }
}

.video-dialog {
  width: min(96vw, 1440px, calc(88vh * 1.6)); max-width: none; padding: 0;
  border: 0; border-radius: var(--radius-lg); background: var(--color-surface-2);
  box-shadow: var(--shadow-frame); overflow: hidden; color: var(--color-text);
}
.video-dialog::backdrop { background: oklch(12% 0.01 50 / 0.8); }
.video-dialog video { width: 100%; aspect-ratio: 16 / 10; background: var(--color-surface-2); }
.video-dialog-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--color-surface) 92%, transparent); color: var(--color-text); cursor: pointer;
}
.video-dialog-close svg { width: 20px; height: 20px; }
html:has(.video-dialog[open]) { overflow: hidden; }
.img-dialog { width: fit-content; max-width: 96vw; cursor: zoom-out; }
.img-dialog img { display: block; height: auto; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; }
@media (prefers-reduced-motion: no-preference) {
  .video-dialog[open] { animation: dialog-in 320ms var(--ease-out); }
  .video-dialog[open]::backdrop { animation: backdrop-in 320ms var(--ease-out); }
  @keyframes dialog-in { from { transform: translateY(12px) scale(0.98); opacity: 0; } }
  @keyframes backdrop-in { from { opacity: 0; } }
}

/* ── Dashboard ── */

.dash img { width: min(100%, 1100px); margin-inline: auto; }
.dash-caption { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }

/* ── Proofs ── */

.proof-list { display: grid; gap: clamp(2.5rem, 5vw, 3rem); }
@media (min-width: 900px) {
  .proof-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .proof { padding: 0 clamp(1.25rem, 2.5vw, 2rem); }
  .proof + .proof { border-left: 1px solid var(--color-border); }
  .proof:first-child { padding-left: 0; }
  .proof:last-child { padding-right: 0; }
}
.proof h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.proof p { color: var(--color-text-muted); margin-bottom: var(--space-6); max-width: 38ch; }
.proof .shot img { height: auto; }

/* ── Feature viewer: one feature at a time ── */

.tabs { display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; scrollbar-width: none; margin: 0 -1rem var(--space-8); padding: 0 1rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font: 600 var(--text-sm) var(--font-body); cursor: pointer; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.tab:hover { color: var(--color-text); }
.tab[aria-selected="true"] { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.panel { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .panel { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4.5rem); } }
.panel[hidden] { display: none; }
.panel h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.panel p { color: var(--color-text-muted); max-width: 36ch; }
@media (prefers-reduced-motion: no-preference) {
  .panel.enter .shot { animation: swap 520ms var(--ease-out); }
  .panel.enter > div:first-child { animation: swap-text 420ms var(--ease-out); }
  @keyframes swap { from { transform: translateY(10px); filter: blur(4px); opacity: 0.6; } }
  @keyframes swap-text { from { transform: translateX(-8px); opacity: 0.4; } }
}
.more { margin-top: clamp(2rem, 5vw, 3rem); color: var(--color-text-muted); max-width: 62ch; }

/* ── Who it's for ── */

.who-list { display: grid; gap: clamp(2rem, 5vw, 2.5rem); }
@media (min-width: 760px) { .who-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.who-item { margin: 0; }
.who-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: var(--space-4); filter: var(--photo-filter); }
@media (max-width: 759px) { .who-item img { aspect-ratio: 3 / 2; } }
.who-item:nth-child(1) img { object-position: 78% 50%; }
.who-item:nth-child(2) img { object-position: 50% 55%; }
.who-item:nth-child(3) img { object-position: 62% 50%; }
.who-item figcaption { color: var(--color-text-muted); max-width: 38ch; }
.who-item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.15; color: var(--color-text); margin-bottom: var(--space-2); }

/* ── Questions ── */

.q-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.q-group h3 { font-size: var(--text-sm); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--color-text-muted); margin-bottom: var(--space-3); }
.q-group details { border-top: 1px solid var(--color-border); }
.q-group details:last-child { border-bottom: 1px solid var(--color-border); }
.q-group summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 56px; padding: 0.75rem 0; font-weight: 600; }
.q-group summary::-webkit-details-marker { display: none; }
.q-group.kitchen summary { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--text-lg); }
.q-group summary svg { flex: none; width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.q-group details[open] summary svg { transform: rotate(45deg); }
.q-group details p { padding: 0 0 var(--space-6); color: var(--color-text-muted); max-width: 54ch; }

/* ── Close ── */

.close { background: var(--color-tint); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.close-grid { display: grid; gap: var(--space-8); align-items: end; }
@media (min-width: 900px) { .close-grid { grid-template-columns: minmax(0, 1fr) auto; } }
.close h2 { font-size: var(--text-2xl); max-width: 16ch; }
.close .muted { color: var(--color-text-muted); margin-top: var(--space-4); max-width: 44ch; }

/* ── Footer ── */

.foot { padding: var(--space-12) 0 var(--space-16); border-top: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-text-muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 0.6rem; }
.foot-brand img { width: 24px; height: 24px; border-radius: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.foot nav a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.5rem; text-decoration: none; }
.foot nav a:hover { color: var(--color-text); text-decoration: underline; }
.foot nav a[aria-current="true"] { color: var(--color-text); font-weight: 700; }
