@font-face { font-family: "Quicksand"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/Quicksand-Regular.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/Quicksand-Medium.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/Quicksand-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/Quicksand-Bold.woff2") format("woff2"); }

/* Tokens come from the app palette (docs/ARCHITECTURE.md, section 10).
   Shape rule: photos 22px, controls 14px, chips and pills fully round, nested photos 14px. */
:root {
  --bg: #FBFAF7;
  --surface: #F1ECE5;
  --line: #E5DED4;
  --ink: #2E211A;
  --ink-2: #6E5C51;
  --accent: #4F6B2E;
  --on-accent: #FBFAF7;
  --panel: #4F6B2E;
  --on-panel: #FBFAF7;
  --shadow: 0 32px 64px -30px rgba(46, 33, 26, 0.38);

  --r-photo: 22px;
  --r-nested: 14px;
  --r-control: 14px;
  --font: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 68px;
  --section-y: clamp(96px, 14vw, 192px);
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1411;
    --surface: #251D18;
    --line: #392E27;
    --ink: #F4EFE7;
    --ink-2: #B9AA9D;
    --accent: #A9C47C;
    --on-accent: #1A1411;
    --panel: #33471D;
    --on-panel: #F4EFE7;
    --shadow: 0 32px 64px -30px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
small { font-size: 0.9rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-control); font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: var(--r-control);
  font: 600 1rem/1 var(--font); white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 28%, transparent); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--on-panel); color: var(--panel); }
.btn-outline-light { border-color: color-mix(in srgb, var(--on-panel) 50%, transparent); color: var(--on-panel); }
.btn-outline-light:hover { border-color: var(--on-panel); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease); }
.nav.is-stuck { background: color-mix(in srgb, var(--bg) 84%, transparent); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 10px; min-width: 0; }
.lang {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; max-width: 180px; padding-inline: 14px 12px;
  border-radius: var(--r-control); border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: transparent; color: var(--ink); font: 600 0.9rem/1 var(--font); cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.lang:hover, .lang[aria-expanded="true"] { border-color: var(--ink); }
.lang-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-code { display: none; }
.chev { flex: none; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease); }
.lang[aria-expanded="true"] .chev { transform: translateY(2px) rotate(225deg); }

.lang-scrim { position: fixed; inset: 0; z-index: 60; visibility: hidden; background: transparent; transition: background-color 0.25s var(--ease), visibility 0s 0.25s; }
.lang-scrim.is-open { visibility: visible; transition-delay: 0s; }
.langpanel {
  position: fixed; z-index: 61; width: min(480px, calc(100vw - 24px)); padding: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-photo); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s 0.22s;
}
.langpanel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.langlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; max-height: min(78dvh, 680px); overflow-y: auto; outline: none; }
.langopt { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; padding-inline-end: 40px; border-radius: var(--r-control); cursor: pointer; }
.o-name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.o-en { font-size: 0.82rem; color: var(--ink-2); line-height: 1.3; }
.langopt.is-active { background: var(--surface); }
.langlist:focus-visible .langopt.is-active { outline: 2px solid var(--accent); outline-offset: -2px; }
.langopt[aria-selected="true"] .o-name { color: var(--accent); }
.langopt[aria-selected="true"]::after { content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 6px; height: 11px; margin-top: -8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

main, .foot { transition: opacity 0.15s ease; }
.lang-switching main, .lang-switching .foot { opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.16em; font-size: 1rem; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: clamp(20px, 3vw, 40px); font-weight: 600; color: var(--ink-2); }
.nav-links a { transition: color 0.25s; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { min-height: 100dvh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hero-copy h1 { font-size: clamp(2.6rem, 5.2vw, 5.25rem); letter-spacing: -0.035em; line-height: 1.02; }
.lede { margin-top: 24px; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 34ch; }
.hero-copy .actions { margin-top: 36px; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.w-i { display: inline-block; }

.collage { position: relative; width: 100%; height: min(calc(100dvh - var(--nav-h) - 96px), 660px); min-height: 420px; }
.shot { position: absolute; overflow: hidden; border-radius: var(--r-photo); background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-a { inset-inline-start: 24%; top: 0; height: 80%; aspect-ratio: 4 / 5; max-width: 62%; }
.shot-b { inset-inline-end: 0; top: 30%; height: 50%; aspect-ratio: 4 / 5; }
.shot-c { inset-inline-start: 0; bottom: 0; height: 36%; aspect-ratio: 1; }
.js .hero [data-hero], .js .hero .shot { opacity: 0; visibility: hidden; }

/* Pantry scene */
.scene { min-height: 100dvh; display: flex; align-items: center; padding: calc(var(--nav-h) + 16px) 0 40px; }
.scene-inner { width: 100%; }
.scene-head { max-width: 760px; margin-bottom: clamp(24px, 4.5vh, 52px); }
h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.scene-head p, .section-head p, .sub, .drinks-intro p { margin-top: 16px; color: var(--ink-2); }
.scene-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: center; }

.pgroup + .pgroup { margin-top: 22px; }
.pgroup h3 { font-size: 0.95rem; letter-spacing: 0; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.pgroup ul { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding-inline: 12px 20px;
  border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-2); font-weight: 600;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tick { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.55; transition: opacity 0.45s var(--ease), background-color 0.45s var(--ease); }
.tick::after { content: ""; position: absolute; inset-inline-start: 6px; top: 3px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.45s var(--ease); }
.chip.is-on .tick { opacity: 1; background: var(--on-accent); border-color: var(--on-accent); }
.chip.is-on .tick::after { transform: rotate(45deg) scale(1); }

.tally { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.tally-n { font-size: clamp(3.4rem, 6vw, 5.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 0.6em; }
.tally-l { font-weight: 600; color: var(--ink-2); font-size: 1.1rem; }
.fan { position: relative; height: clamp(300px, 46dvh, 430px); }
.dcard { position: absolute; width: 36%; padding: 8px 8px 14px; background: var(--surface); border-radius: var(--r-photo); box-shadow: var(--shadow); }
.dcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-nested); }
.dcard h3 { margin: 12px 6px 0; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.2; }
.dcard p { margin: 2px 6px 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
.dcard-1 { inset-inline-start: 0; top: 12%; rotate: -4deg; }
.dcard-2 { inset-inline-start: 31%; top: 0; rotate: 2deg; z-index: 1; }
.dcard-3 { inset-inline-start: 62%; top: 16%; rotate: 5deg; z-index: 2; }

/* Guided */
.guided { padding-block: var(--section-y); }
.guided-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 128px); align-items: center; }
.phones { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 1.3; }
.phone { position: absolute; width: 52%; padding: 8px; background: #1D1612; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 38px; box-shadow: var(--shadow); }
.phone img { width: 100%; border-radius: 30px; background: #FBFAF7; }
.phone-back { inset-inline-start: 0; top: 16%; }
.phone-front { inset-inline-end: 0; top: 0; }
.steps { margin-top: 40px; }
.steps li { padding-block: 22px; border-top: 1px solid var(--line); }
.steps h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
.steps p { margin-top: 6px; color: var(--ink-2); }
.note { margin-top: 20px; font-size: 0.95rem; color: var(--ink-2); }

/* Drinks: native horizontal scroll by default, pinned pan when enhanced */
.drinks { padding-block: var(--section-y); overflow: hidden; }
.drinks-track { display: flex; align-items: flex-start; gap: clamp(20px, 2.4vw, 40px); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 72px; scrollbar-width: none; }
.drinks-track::-webkit-scrollbar { display: none; }
.drinks-intro { flex: 0 0 min(440px, 80vw); padding-inline-end: clamp(8px, 3vw, 48px); scroll-snap-align: start; align-self: center; }
.drink { flex: 0 0 clamp(240px, 24vw, 340px); scroll-snap-align: start; }
.drink img { width: 100%; aspect-ratio: 10 / 11; object-fit: cover; border-radius: var(--r-photo); background: var(--surface); }
.drink figcaption { margin-top: 14px; display: flex; flex-direction: column; line-height: 1.35; }
.drink strong { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.drink span { color: var(--ink-2); font-size: 0.92rem; }
.drinks.is-pinned { min-height: 100dvh; display: flex; align-items: center; padding: var(--nav-h) 0 0; }
.drinks.is-pinned .drinks-track { overflow: visible; width: max-content; padding-bottom: 0; padding-inline: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))); scroll-snap-type: none; align-items: center; }
.drinks.is-pinned .drink:nth-of-type(even) { margin-top: 72px; }
.drinks.is-pinned .drink:nth-of-type(odd) { margin-top: -24px; }

/* Features bento */
.features { padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-photo); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem); }
.tile p { color: var(--ink-2); max-width: 44ch; }
.tile img { object-fit: cover; }

.tile-offline { grid-column: 1 / span 5; grid-row: 1 / span 2; background: var(--panel); color: var(--on-panel); justify-content: flex-start; }
.tile-offline p { color: color-mix(in srgb, var(--on-panel) 82%, transparent); }
.tile-offline img { margin-top: auto; width: 100%; aspect-ratio: 5 / 4; border-radius: var(--r-nested); }
.tile-offline h3 { margin-bottom: 4px; }
.tile-swap { grid-column: 6 / span 7; background: var(--surface); flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
.tile-swap img { flex: 0 0 38%; width: 38%; aspect-ratio: 1; border-radius: var(--r-nested); }
.tile-text { display: flex; flex-direction: column; gap: 10px; }
.tile-search { grid-column: 6 / span 4; border: 1.5px solid var(--line); justify-content: flex-end; }
.typed { display: flex; flex-direction: column; gap: 4px; margin-bottom: auto; padding-bottom: 24px; }
.typed-in { color: var(--ink-2); font-weight: 500; font-size: 1.05rem; }
.typed-out { color: var(--accent); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; }
.tile-nutrition { grid-column: 10 / span 3; background: var(--surface); justify-content: flex-end; }
.tile-share { grid-column: 1 / -1; background: var(--surface); flex-direction: row; align-items: center; justify-content: space-between; gap: clamp(24px, 5vw, 80px); }
.tile-share .tile-text { flex: 1 1 40%; }
.trio { flex: 1 1 52%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trio img { width: 100%; aspect-ratio: 1; border-radius: var(--r-nested); }

/* Get the app */
.get { padding-bottom: clamp(64px, 8vw, 112px); }
.get-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; background: var(--panel); color: var(--on-panel); border-radius: var(--r-photo); padding: clamp(32px, 6vw, 96px); }
.get-copy h2 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.2rem); letter-spacing: -0.03em; }
.get-copy p { margin-top: 18px; color: color-mix(in srgb, var(--on-panel) 84%, transparent); }
.get-copy .actions { margin-top: 32px; }
.get-photos { position: relative; height: clamp(260px, 30vw, 400px); }
.gp { position: absolute; width: 56%; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-photo); background: var(--surface); }
.gp img { width: 100%; height: 100%; object-fit: cover; }
.gp-1 { inset-inline-end: 0; top: 0; }
.gp-2 { inset-inline-start: 0; bottom: 0; width: 46%; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot nav { display: flex; gap: 28px; font-weight: 600; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot small { color: var(--ink-2); }

/* Narrow screens: single column, no pinned pan */
@media (max-width: 1079px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 32px); }
  .hero-grid, .guided-grid, .scene-body, .get-panel { grid-template-columns: minmax(0, 1fr); }
  .collage { height: min(112vw, 560px); min-height: 0; }
  .scene { min-height: auto; padding: var(--section-y) 0 calc(var(--section-y) * 0.6); }
  .fan { height: auto; aspect-ratio: 1 / 0.82; }
  .dcard { width: 40%; }
  .dcard-2 { inset-inline-start: 30%; }
  .dcard-3 { inset-inline-start: 60%; }
  .phones { margin-inline: auto; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-offline, .tile-swap, .tile-search, .tile-nutrition, .tile-share { grid-column: 1; grid-row: auto; }
  .tile-swap, .tile-share { flex-direction: column; align-items: stretch; }
  .tile-swap img { flex: none; width: 100%; aspect-ratio: 4 / 3; }
  .tile-search { min-height: 220px; }
  .get-photos { height: 260px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .btn { padding: 0 20px; }
  .actions .btn { flex: 1 1 auto; }
  .nav .brand span { display: none; }
  .lang-name { display: none; }
  .lang-code { display: inline; }
  .lang { padding-inline: 12px 10px; }
  .lang-scrim.is-open { background: rgba(26, 20, 17, 0.4); }
  .langpanel { inset: auto 12px 12px 12px; width: auto; transform: translateY(24px); transform-origin: bottom; }
  .langlist { max-height: 70dvh; }
}

/* Languages: hold the page until strings are applied, then tune type per script */
.js:not(.i18n-ready) body { opacity: 0; }
body { transition: opacity 0.25s ease; }

html:lang(ja) { --font: "Quicksand", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
html:lang(ko) { --font: "Quicksand", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; word-break: keep-all; }
html[lang="zh-CN"] { --font: "Quicksand", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-TW"] { --font: "Quicksand", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
html:lang(th) { --font: "Quicksand", "Thonburi", "Leelawadee UI", "Noto Sans Thai", sans-serif; }
html:lang(hi) { --font: "Quicksand", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
html:lang(ar) { --font: "Quicksand", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", sans-serif; }
html:is(:lang(ja), :lang(zh)) { line-break: strict; }

html:is(:lang(ja), :lang(ko), :lang(zh), :lang(th), :lang(hi), :lang(ar)) :is(h1, h2, h3, .tally-n, .typed-out, .brand) { letter-spacing: 0; }
html:is(:lang(ja), :lang(ko), :lang(zh)) :is(h1, h2, h3) { line-height: 1.28; }
html:is(:lang(th), :lang(hi), :lang(ar)) :is(h1, h2, h3) { line-height: 1.4; }
html:is(:lang(th), :lang(hi), :lang(ar)) body { line-height: 1.75; }
html:is(:lang(th), :lang(hi), :lang(ar)) .w { padding-block: 0.22em; margin-block: -0.22em; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .w { padding-bottom: 0.2em; margin-bottom: -0.2em; }
html:is(:lang(ja), :lang(zh)) p { max-width: 34em; }
html:is(:lang(ja), :lang(zh), :lang(ko)) .lede { max-width: 22em; }
html:is(:lang(ja), :lang(zh), :lang(ko)) .tile p { max-width: 30em; }
html:is(:lang(de), :lang(nl), :lang(fil), :lang(pl), :lang(tr), :lang(hi), :lang(th), :lang(ar), :lang(fr), :lang(pt), :lang(es), :lang(it), :lang(ja)) .hero-copy h1 { font-size: clamp(2.2rem, 4.3vw, 4.4rem); }
html:lang(it) .hero-copy h1 { font-size: clamp(2.2rem, 3.9vw, 4rem); }
html:is(:lang(de), :lang(nl), :lang(pl)) .tile h3 { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero [data-hero], .js .hero .shot { opacity: 1; visibility: visible; }
  .btn, .chip, .tick, .tick::after { transition: none; }
  .langpanel, .lang-scrim, .chev, main, .foot { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav.is-stuck { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Legal pages (privacy.html, terms.html, delete-account.html) */
.legal-nav { border-bottom: 1px solid var(--line); }
.legal-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.legal-langs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.legal-langs button { font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.legal-langs button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(46, 33, 26, 0.12); }
.legal { max-width: 760px; margin-inline: auto; padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(64px, 10vw, 120px); line-height: 1.65; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px; }
.legal .updated { color: var(--ink-2); margin: 0 0 40px; }
.legal h2 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.2; margin: 48px 0 12px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal ul, .legal ol { padding-inline-start: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .note { background: var(--surface); border-radius: var(--r-nested); padding: 16px 20px; margin: 24px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; }
@media (max-width: 560px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border-bottom: 0; padding: 4px 0; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .legal td:first-child { font-weight: 700; }
}
