/* fairspoon.app — one stylesheet for every page. Colours and fonts are the app's (DesignSystem/Tokens.swift). */
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --bg: #0D0E10; --surface: #16181C; --raised: #1E2126; --stroke: #2A2E35;
  --text: #F2F3F5; --soft: #C9CDD3; --muted: #A3A9B3;
  --brand: linear-gradient(135deg, #D7F97A, #B4E04A);
  --accent: #C8F25A; --accent-hover: #E2FF9A; --protein: #7CC0FF; --warning: #FFB547; --error: #FF8A80;
  --display: "Unbounded", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.55 var(--body); overflow-x: hidden; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Launch switch: <html data-launched="true"> shows the App Store, otherwise the waitlist. */
html[data-launched="true"] .prelaunch, html:not([data-launched="true"]) .postlaunch { display: none !important; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* Buttons */
.button { min-height: 56px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--accent); color: var(--bg);
  font: 800 17px/1 var(--body); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  transition: transform .15s ease, background .15s ease; }
.button:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-2px); }
.button:active { transform: scale(.98); }
.button[disabled] { cursor: progress; opacity: .8; transform: none; }
.button.small { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; white-space: nowrap; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 32px 96px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--stroke);
  color: var(--soft); font-size: 14px; font-weight: 700; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 7.4vw, 68px); line-height: 1.04; letter-spacing: -0.03em; }
.hero h1 span { color: var(--accent); }
.lead { max-width: 520px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.fineprint { font-size: 14px; color: var(--muted); }

/* Waitlist form */
.waitlist { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"] { flex: 999 1 240px; min-width: 0; min-height: 56px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--stroke);
  background: var(--surface); color: var(--text); font: 600 17px var(--body); }
.waitlist input[type="email"]::placeholder { color: #7D838D; }
.waitlist input[type="email"][aria-invalid="true"] { border-color: var(--error); }
.waitlist .button { flex: 1 1 auto; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.form-error { color: var(--error); font-size: 14px; font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.done { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--accent); max-width: 520px; }
.done strong { display: block; font-size: 17px; }
.done svg path { stroke-dasharray: 30; animation: draw .4s .1s ease-out both; }

/* Phone mock-up */
.hero-visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.phone-wrap { position: relative; width: 300px; max-width: 100%; }
.phone { position: relative; width: 300px; max-width: 100%; height: 620px; border-radius: 48px; background: var(--surface); border: 8px solid var(--stroke);
  padding: 26px 16px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.phone-top { display: flex; justify-content: space-between; align-items: center; }
.phone-top b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.phone-top span { font-size: 12px; color: var(--muted); font-weight: 700; }
.photo { position: relative; height: 272px; border-radius: 22px; background: #23262C; overflow: hidden; display: grid; place-items: center; }
.plate { width: 210px; height: 210px; border-radius: 50%; background: #E9E4DA; display: grid; place-items: center; }
.plate-in { width: 176px; height: 176px; border-radius: 50%; background: #F5F1E8; position: relative; }
.food { position: absolute; }
.food.chicken { left: 22px; top: 30px; width: 80px; height: 64px; border-radius: 40% 50% 45% 55%; background: #C98A4B; }
.food.rice { right: 18px; top: 40px; width: 72px; height: 70px; border-radius: 50%; background: #FBFAF6; box-shadow: inset 0 0 0 2px #EDE8DD; }
.food.greens { left: 44px; bottom: 22px; width: 92px; height: 46px; border-radius: 45%; background: #6FAE4F; }
.scan { position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: var(--accent); box-shadow: 0 0 18px 4px rgba(200,242,90,.55); opacity: 0; }
.tag { position: absolute; padding: 5px 10px; border-radius: 10px; background: rgba(13,14,16,.86); font-size: 12px; font-weight: 700; }
.reading { position: absolute; left: 0; right: 0; top: 420px; margin: 0; text-align: center; color: var(--muted); font-size: 14px; font-weight: 700; opacity: 0; }
.sheet { margin-top: auto; border-radius: 22px; background: var(--bg); border: 1px solid var(--stroke); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sheet-row { display: flex; justify-content: space-between; align-items: baseline; }
.sheet-row b:last-child { font-family: var(--display); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 700; }
.chips span { padding: 4px 8px; border-radius: 8px; background: var(--raised); }
.chips .protein { color: var(--protein); }
.fake-button { height: 44px; border-radius: 12px; background: var(--accent); color: var(--bg); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.floatcard { position: absolute; left: -72px; top: 236px; width: 200px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke);
  padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.floatcard svg { flex-shrink: 0; transform: rotate(-90deg); }
.kcal { position: relative; height: 26px; font-family: var(--display); font-size: 19px; font-weight: 600; display: block; }
.kcal .old { position: absolute; left: 0; top: 0; opacity: 0; }

/* Facts strip */
.facts { border-block: 1px solid var(--stroke); }
.facts ul { list-style: none; margin: 0 auto; padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px;
  font-weight: 700; color: var(--soft); font-size: 15px; }

/* Feature scenes */
.scenes { display: flex; flex-direction: column; gap: 96px; padding-block: 96px 32px; }
.scene { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.scene.flip { flex-direction: row-reverse; }
.scene-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.scene-text h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; }
.scene-text p { color: var(--muted); font-size: 18px; }
.card { flex: 1 1 380px; min-width: 0; border-radius: 24px; background: var(--surface); border: 1px solid var(--stroke); padding: 24px; }
.rows { display: flex; flex-direction: column; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.rows > div:last-child { border-bottom: 0; padding-bottom: 0; align-items: center; }
.rows .total { font-family: var(--display); font-size: 22px; font-weight: 600; }
.menu-list { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.dish { border-radius: 16px; background: var(--raised); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dish small { display: block; font-size: 14px; color: var(--muted); }
.dish.best { background: transparent; border: 2px solid var(--accent); }
.pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill.best { background: var(--accent); color: var(--bg); }
.pill.fits { color: var(--muted); }
.pill.skip { color: var(--warning); }
.plan-label { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; }
.swap { position: relative; min-height: 116px; margin-block: 14px; }
.swap > div { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; }
.swap b { font-size: 18px; }
.swap .b { opacity: 1; }

/* Small cards */
.more { display: flex; flex-direction: column; gap: 28px; padding-block: 64px 96px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.mini { border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); padding: 20px; transition: transform .15s ease; }
.mini:hover { transform: translateY(-2px); }
.mini h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.mini p { color: var(--muted); font-size: 15px; }

/* Honest numbers */
.honest { background: var(--accent); color: var(--bg); padding-block: 88px; }
.honest .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.honest h2 { flex: 1 1 340px; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.honest-grid { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.honest h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.honest p { font-size: 16px; }

/* Privacy block */
.private { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-block: 96px; }
.private-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.private-text h2 { font-size: clamp(28px, 4vw, 40px); }
.private-text p { font-size: 18px; color: var(--muted); }
.private-text a { font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.private ul { flex: 1 1 400px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.private li { border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); padding: 18px; font-weight: 700; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; padding: 0 24px 96px; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 12px; }
details { border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); padding: 18px 22px; }
summary { font-weight: 800; font-size: 17px; cursor: pointer; min-height: 28px; }
details p { margin-top: 10px; color: var(--soft); }

/* Final call */
.final { padding: 0 24px 96px; }
.final-card { max-width: 1152px; margin: 0 auto; border-radius: 28px; background: var(--surface); border: 1px solid var(--stroke); padding: clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.final-card > div { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.final-card h2 { font-size: clamp(26px, 3.6vw, 36px); }

/* Footer */
.footer { border-top: 1px solid var(--stroke); }
.footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.footer span { flex: 1 1 420px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--muted); }

/* Text pages (privacy, support) */
.page { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-block: 32px 96px; }
.toc { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; position: sticky; top: 24px; }
.toc span { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }
.toc a { color: var(--text); text-decoration: none; }
.article { flex: 999 1 640px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 40px; line-height: 1.65; }
.article h1, .support h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw, 48px); letter-spacing: -0.02em; line-height: 1.1; }
.article section { display: flex; flex-direction: column; gap: 12px; }
.article h2 { font-family: var(--display); font-weight: 600; font-size: 26px; }
.article p, .article li { color: var(--soft); }
.article ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article strong { color: var(--text); }
.summary { border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); padding: 28px; }
.summary h2 { font-family: var(--body); font-weight: 800; font-size: 24px; }
.summary li { color: var(--text); }
.support { display: flex; flex-direction: column; gap: 56px; padding-block: 32px 96px; }
.support-top { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.support-top > div:first-child { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.contact { flex: 1 1 300px; min-width: 0; border-radius: 22px; background: var(--accent); color: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact span { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
.contact a { color: var(--bg); font-family: var(--display); font-size: 22px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact p { font-size: 15px; }
.questions { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.questions h2 { font-size: 32px; margin-bottom: 8px; }
.note { max-width: 880px; border-radius: 22px; border: 1px solid var(--stroke); padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.note p { flex: 1 1 300px; color: var(--muted); }
.note a { font-weight: 800; }

/* Motion — every one shows what the app does; nothing moves with Reduce Motion. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 1; } 32% { transform: translateY(232px); opacity: 1; } 36%, 100% { transform: translateY(232px); opacity: 0; } }
@keyframes tag { 0%, 30% { opacity: 0; transform: translateY(8px) scale(.94); } 38%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes sheet { 0%, 44% { transform: translateY(120%); } 54%, 92% { transform: none; } 100% { transform: translateY(120%); } }
@keyframes ring { 0%, 56% { stroke-dashoffset: 150; } 70%, 92% { stroke-dashoffset: 96; } 100% { stroke-dashoffset: 150; } }
@keyframes oldnum { 0%, 58% { opacity: 1; } 66%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes newnum { 0%, 58% { opacity: 0; } 66%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,242,90,0); } 50% { box-shadow: 0 0 0 6px rgba(200,242,90,.22); } }
@keyframes reading { 0%, 4% { opacity: 0; } 10%, 40% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes swapA { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swapB { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; } .d5 { animation-delay: .45s; }
  .scan { animation: scan 6s ease-in-out infinite; }
  .tag { animation: tag 6s cubic-bezier(.2,.7,.2,1) infinite both; }
  .tag.t2 { animation-delay: .25s; } .tag.t3 { animation-delay: .5s; }
  .reading { animation: reading 6s infinite both; }
  .sheet { animation: sheet 6s cubic-bezier(.2,.7,.2,1) infinite both; }
  .ring { animation: ring 6s ease-in-out infinite both; }
  .kcal .old { animation: oldnum 6s infinite both; }
  .kcal .new { animation: newnum 6s infinite both; }
  .dish.best { animation: pulse 2.4s ease-in-out infinite; }
  .swap .a { animation: swapA 5s infinite both; }
  .swap .b { animation: swapB 5s infinite both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .swap .a { opacity: 0; }
  .button, .mini { transition: none; }
  .spinner { animation-duration: 1.6s; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.keep { display: flex; gap: 18px; }
  .home-link { display: none; }
  .floatcard { left: -4px; top: auto; bottom: -28px; }
  .hero { gap: 64px; padding-bottom: 72px; }
  .toc { display: none; }
  .scenes { gap: 72px; padding-top: 72px; }
}
@media (max-width: 440px) {
  .wrap { padding-inline: 20px; }
  .brand-name { font-size: 13px; }
  .button.small { padding: 0 12px; font-size: 14px; }
}

/* Cookie consent (consent.js): a dialog over a dimmed page — a centred card on wide screens, a bottom sheet on phones. */
.consent { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(6,7,8,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: background .3s ease, backdrop-filter .3s ease; }
.consent.open { background: rgba(6,7,8,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.consent-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--stroke); box-shadow: 0 30px 80px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .3s ease, transform .4s cubic-bezier(.2,.9,.3,1.15); }
.consent.open .consent-card { opacity: 1; transform: none; }
.consent-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--bg); margin-bottom: 4px; }
.consent h2 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.consent p { color: var(--soft); font-size: 16px; }
.consent p a { font-weight: 700; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.consent .consent-no { background: var(--raised); color: var(--text); }
.consent .consent-no:hover { background: var(--stroke); color: var(--text); }
@media (max-width: 560px) {
  .consent { place-items: end stretch; padding: 0; }
  .consent-card { max-width: none; border-radius: 28px 28px 0 0; border-bottom: 0; padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%); transition: opacity .2s ease, transform .45s cubic-bezier(.2,.9,.3,1); }
  .consent-card::before { content: ""; align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--stroke); margin: -12px 0 8px; }
  .consent-actions { grid-template-columns: 1fr; }
  .consent .consent-yes { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .consent, .consent-card { transition: none; }
}

/* Language switcher (footer) */
.langs { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.langs a, .langs span { min-height: 32px; display: inline-flex; align-items: center; }
.footer .langs span { flex: none; color: var(--text); font-weight: 700; }

/* Language menu (header) */
.lang-menu { position: relative; padding: 0; border: 0; border-radius: 0; background: none; }
.header { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--stroke); color: var(--soft); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; transition: border-color .15s ease, color .15s ease; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; transition: transform .2s ease; }
.lang-menu[open] summary::after { transform: translateY(1px) rotate(225deg); }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); border-color: var(--muted); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px; padding: 6px; border-radius: 16px;
  background: var(--raised); border: 1px solid var(--stroke); box-shadow: 0 18px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.lang-menu[open] .lang-list { animation: lang-in .18s ease-out; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px); } }
.lang-list a, .lang-list span { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang-list a:hover { background: var(--surface); color: var(--text); }
.lang-list span { color: var(--accent); }
.lang-list b { font-size: 12px; color: var(--muted); font-weight: 700; }
.lang-list span b { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .lang-menu[open] .lang-list { animation: none; } }
/* Phones: the header is just the brand and the language menu — the form with the same button is right below,
   and Privacy/Support are in the footer. */
@media (max-width: 440px) {
  .header .nav-links, .header .nav-links.keep, .header .nav .button.small { display: none; }
  .lang-menu { position: static; }
  .lang-list { right: 20px; }
}
