/* =========================================================
   DreamForge Mobile / KYZO website — 2026-11 redesign
   Source file: site-src/site.css (build.mjs copies it to
   website/site.<hash>.css). Edit here, then run the build.
   ========================================================= */

:root {
  --ink: #16131f;
  --ink-2: #48435a;
  --ink-3: #625d74;
  --purple: #6252f2;
  --purple-strong: #4c3bd9;
  --purple-tint: #eeeafe;
  --lav-50: #f8f7ff;
  --lav-100: #f1eeff;
  --lav-200: #e2ddff;
  --mint: #7fe8d2;
  --bg: #ffffff;
  --surface: #fbfaff;
  --line: #e8e5f3;
  --line-strong: #d6d1ea;
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --shadow-soft: 0 1px 2px rgba(22, 19, 31, .04), 0 8px 24px -12px rgba(40, 30, 120, .12);
  --shadow-phone: 0 40px 70px -30px rgba(52, 38, 160, .38), 0 14px 28px -16px rgba(22, 19, 31, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --section: clamp(64px, 8vw, 112px);
  --font-display: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", "Noto Sans Arabic", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--purple-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 10px; }
/* Header controls: a thin ring that follows each control's own radius (their radius rules outrank the 10px above). */
.site-nav :is(a, summary, button):focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem); line-height: 1.02; letter-spacing: -.022em; }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.25; letter-spacing: -.015em; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--purple-strong);
}
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head > div { min-width: 0; max-width: 720px; }
.section-head > .btn { flex: 0 0 auto; }
.section-head .lead { margin: 20px 0 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px -10px rgba(98, 82, 242, .8); }
.btn-primary:hover { background: var(--purple-strong); text-decoration: none; }
.btn-quiet { background: var(--lav-100); color: var(--ink); }
.btn-quiet:hover { background: var(--lav-200); text-decoration: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores--center { justify-content: center; }
.store-badge { display: inline-flex; border-radius: 10px; transition: transform .2s var(--ease), opacity .2s; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 48px; width: auto; max-width: none; }
/* Google badges are trimmed to their visible edge; both badges share one height (owner 2026-11-09:
   mismatched sizes looked broken). Width follows each badge's own artwork. */
/* Non-link placeholder while the App Store listing is not live (IOS_LIVE = false in lib.mjs). */
.store-badge--soon {
  height: 48px; padding: 0 16px 0 12px; gap: 8px; align-items: center;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  cursor: default; user-select: none;
}
.store-badge--soon:hover { transform: none; }
.store-badge--soon svg { flex: none; color: var(--ink-3); }
.store-soon-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.store-soon-text small { font-size: .6875rem; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; }
.store-note { margin: 16px 0 0; font-size: .9375rem; color: var(--ink-3); }

/* ---------- Navigation ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }

.hero-terms { margin: 14px auto 0; font-size: .875rem; color: var(--ink-3); max-width: 60ch; text-wrap: balance; }

/* ---------- Hero: one real meal result, always fully visible ---------- */
.hero { position: relative; overflow: hidden; padding-block: 56px; background: #fbfaff; text-align: start; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-block: 8px; }
.hero h1 { max-width: 10.5em; margin: 0; font-size: clamp(2.75rem, 1.2rem + 3.4vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.hero h1 em { display: block; font-style: normal; color: var(--purple-strong); }
.hero .lead { margin: 24px 0 32px; max-width: 43ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.65; }
.hero-download { max-width: 100%; }
.hero .hero-trial { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: var(--purple-tint); color: var(--purple-strong); font-size: .875rem; font-weight: 650; line-height: 1.5; }
.hero-trial svg { flex: 0 0 16px; width: 16px; height: 16px; }
.hero .stores { justify-content: flex-start; }
.hero .hero-terms { margin: 12px 0 0; max-width: none; color: var(--ink-3); font-size: .75rem; line-height: 1.6; text-wrap: pretty; }
.hero-product { --phone-w: 250px; display: grid; place-items: center; position: relative; isolation: isolate; min-width: 0; width: 100%; max-width: 520px; justify-self: center; padding-block: 28px; }
.hero-product::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: 48px; background: radial-gradient(ellipse at 50% 46%, #ebe6fb 0%, #f2eefc 46%, rgba(251, 250, 255, 0) 72%); }
.hero-product .hero-phone { position: relative; z-index: 1; inset: auto; transform: none; width: var(--phone-w); max-width: none; margin: 0; border: 1px solid #e5e2ec; border-radius: 36px; outline: 5px solid #fff; box-shadow: 0 32px 48px -28px rgba(43, 31, 77, .32), 0 10px 20px -12px rgba(43, 31, 77, .16); }
/* Result card: hangs off the phone's outer edge over the photo, never over the controls. */
.hero-product .hero-macros { position: absolute; z-index: 3; inset-inline-end: 0; inset-block-start: 14%; width: 196px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 20px 36px -20px rgba(43, 31, 77, .3), 0 2px 6px rgba(43, 31, 77, .06); }
.hero-macros .macro-card-total > strong { font-size: 28px; }
.hero-macros .macro-card-bar { margin-block: 12px; }
.hero-macros .macro-card-values { gap: 8px; align-items: end; }
.hero-macros .macro-card-values strong { font-size: 20px; }
.hero-macros .macro-label { gap: 3px; min-height: 2.8em; align-items: baseline; font-size: 10px; }
/* Official full mascot (sprout, body, both hands): the one KYZO character, standing beside the phone. */
.hero-product .hero-kyzo { position: absolute; z-index: 2; inset-inline-start: 0; inset-block-end: -10px; width: 200px; pointer-events: none; filter: drop-shadow(0 18px 18px rgba(75, 56, 160, .22)); }
.hero-kyzo img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero-kyzo img { animation: hero-kyzo-bob 6s ease-in-out infinite; }
  @keyframes hero-kyzo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-product { --phone-w: 230px; }
  .hero-product .hero-macros { width: 180px; padding: 14px; }
  .hero-product .hero-kyzo { width: 170px; inset-inline-start: 6px; }
}
@media (max-width: 900px) {
  .hero { padding-block: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-copy { padding: 0; max-width: 600px; }
  .hero h1 { max-width: 12em; font-size: clamp(2.25rem, 5.6vw, 3.5rem); }
  .hero .lead { margin: 20px 0 24px; max-width: 49ch; }
  .hero-product { --phone-w: min(230px, 58vw); width: min(100%, 420px); padding-block: 20px; }
  .hero-product .hero-phone { border-radius: 29px; }
  .hero-product .hero-macros { width: 168px; padding: 12px; }
  .hero-macros .macro-card-total > strong { font-size: 24px; }
  .hero-macros .macro-card-values strong { font-size: 17px; }
  .hero-product .hero-kyzo { width: 140px; inset-inline-start: 8px; }
}
@media (max-width: 440px) {
  .hero h1 { font-size: 2.25rem; letter-spacing: -.03em; }
  .hero .lead { font-size: 1rem; line-height: 1.65; }
  .hero .hero-terms { max-width: 38ch; }
  .hero-product { --phone-w: 56vw; width: 100%; }
  .hero-product .hero-macros { width: 164px; padding: 10px; }
  .hero-macros .macro-card-total > strong { font-size: 22px; }
  .hero-macros .macro-card-values strong { font-size: 15px; }
  .hero-macros .macro-label { font-size: 9px; gap: 2px; white-space: nowrap; }
  .hero-product .hero-kyzo { width: 118px; inset-inline-start: 4px; }
}

.stage-phone {
  position: absolute; bottom: -12%; left: 50%;
  width: clamp(220px, 24vw, 300px); aspect-ratio: 600 / 1304;
  border-radius: clamp(32px, 3.6vw, 44px); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(22, 19, 31, .06);
  outline: 8px solid #fff; outline-offset: -1px;
}
.stage-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.float-card {
  position: absolute; z-index: 4; width: clamp(240px, 23vw, 288px);
  left: calc(50% + clamp(140px, 14vw, 190px)); top: 30%;
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 50px -24px rgba(52, 38, 160, .45), 0 0 0 1px rgba(22, 19, 31, .05);
}
.float-card img { width: 100%; }
/* Mascot (inline SVG, animated) */
.mascot { position: relative; }
.mascot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.mascot-svg { width: 100%; overflow: visible; }
.mascot-bubble {
  position: absolute; left: 70%; top: -6px; z-index: 2; margin: 0;
  padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink);
  font-size: .875rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(52, 38, 160, .45), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(6px) scale(.96); transform-origin: left bottom;
  transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none;
}
.mascot-bubble.show { opacity: 1; transform: none; }
@media (max-width: 760px) { .mascot-bubble { left: 58%; top: -18px; font-size: .8125rem; } }
.m-pop { transform-origin: 36px 72px; animation: m-float 4.8s ease-in-out infinite; }
.m-leaf { transform-origin: 36px 22px; animation: m-sway 3.6s ease-in-out infinite; }
.m-eyes { transform-origin: 36px 35.6px; animation: m-blink 5.2s infinite; }
.m-happy { opacity: 0; }
.m-sparkles { animation: m-twinkle 2.8s ease-in-out infinite; }
.m-face { transition: transform .25s var(--ease); }
.mascot.is-happy .m-pop { animation: m-hop .85s var(--ease); }
.mascot.is-happy .m-eyes { opacity: 0; }
.mascot.is-happy .m-happy { opacity: 1; }
.mascot.is-happy .m-blush { opacity: .85; transition: opacity .2s; }
.mascot.is-paused * { animation-play-state: paused !important; }
@keyframes m-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes m-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes m-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes m-twinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes m-hop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-14px) scale(1.04, .97); } 60% { transform: translateY(0) scale(.98, 1.03); } 100% { transform: none; } }

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { margin: 0; padding: 30px 24px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 6px; color: var(--ink-3); font-size: .9375rem; }
.fact:last-child strong { font-size: clamp(1.125rem, 1rem + .5vw, 1.45rem); line-height: 1.4; padding-top: 6px; letter-spacing: -.025em; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 28px 14px; }
  .fact strong { line-height: 1.3; }
  .fact span { font-size: .875rem; line-height: 1.6; }
  .fact:last-child strong { font-size: 1.0625rem; white-space: nowrap; padding-top: 5px; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- How it works (steps + stage) ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.step { border-bottom: 1px solid var(--line-strong); }
.step-btn {
  display: flex; align-items: center; gap: 18px; width: 100%; padding: 26px 0;
  border: 0; background: none; color: var(--ink-3); font: inherit; text-align: left; cursor: pointer;
}
.step-btn:hover { color: var(--ink); }
.step-num { font-size: .875rem; font-weight: 600; color: var(--purple-strong); font-variant-numeric: tabular-nums; min-width: 2ch; }
.step-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; transition: color .2s; }
.step-btn::after { content: "+"; margin-left: auto; flex: 0 0 28px; font-size: 1.4rem; font-weight: 400; text-align: center; line-height: 28px; }
.step-btn[aria-expanded="true"] { color: var(--ink); }
.step-btn[aria-expanded="true"]::after { content: "−"; color: var(--purple-strong); }
.step:has(.step-btn[aria-expanded="true"]) { border-top: 1px solid var(--purple); margin-top: -1px; }
.step-btn[aria-expanded="false"] .step-title { font-weight: 500; }
.step-body { padding: 0 0 26px calc(2ch + 18px); color: var(--ink-2); max-width: 46ch; }
.step-body p:last-child { margin-bottom: 0; }
.js .step-body[hidden] { display: none; }
.how-stage {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(80% 60% at 50% 0%, #fff 0%, transparent 70%), linear-gradient(160deg, var(--lav-100), #e7e2ff 55%, #dff7f1);
  display: grid; place-items: center;
}
.how-shot { width: 100%; display: grid; place-items: center; padding: 40px 0; }
.how-stage .stage-phone { position: relative; left: auto; bottom: auto; transform: none; width: min(52%, 280px); }
.how-shot { transition: opacity .45s var(--ease); }
.how-shot[hidden] { display: none; }
.how-caption { position: absolute; left: 24px; bottom: 20px; z-index: 2; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: .875rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-soft); }
.no-js-note { font-size: .9375rem; color: var(--ink-3); margin-top: 20px; }
/* Features page: the three How it works steps as a static row (features.mjs). */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.how-steps li { min-width: 0; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.how-steps .step-num { display: block; margin-bottom: 14px; }
.how-steps h3 { margin-bottom: 10px; }
.how-steps p { margin: 0; color: var(--ink-2); font-size: .9875rem; }
@media (max-width: 900px) { .how-steps { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .how-stage { aspect-ratio: auto; order: -1; }
  .how-stage .stage-phone { width: min(54%, 280px); }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr; gap: 20px; }
/* Consistent feature structure with a distinct surface for each part of the day. */
.pillar {
  --shot-w: 208px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--shot-w); column-gap: 28px; overflow: hidden;
  padding: 36px 32px 0 36px;
  border-radius: var(--radius-xl); border: 1px solid var(--line);
  background: #faf8f2;
}
.pillar:nth-child(2) { background: #f1f6f3; }
.pillar:nth-child(3) { background: #f6f3fc; }
.pillar:nth-child(4) { background: #f1f6fa; }
.pillar-text { display: flex; flex-direction: column; max-width: 440px; padding-bottom: 36px; }
.pillar h3 { margin: 0 0 12px; font-size: 1.375rem; line-height: 1.25; }
.pillar p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; margin: 0 0 18px; text-wrap: pretty; }
.pillar ul { margin: 0 0 24px; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.pillar li { padding: 5px 0 5px 26px; position: relative; text-wrap: pretty; }
.pillar li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(-45deg); }
.pillar .text-link { margin-top: auto; align-self: flex-start; }
/* Phone: same frame and crop everywhere, anchored to the card's bottom edge, top of the screen showing. */
.pillar-shot {
  position: relative; align-self: end; width: var(--shot-w); aspect-ratio: 552 / 760;
  background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 30px 30px 0 0;
  box-shadow: var(--shadow-phone); overflow: hidden;
}
.pillar-shot img { position: absolute; top: 7px; left: 7px; width: calc(100% - 14px); height: calc(100% - 7px); object-fit: cover; object-position: top; border-radius: 23px 23px 0 0; }
@media (min-width: 1180px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillar { --shot-w: 184px; column-gap: 20px; padding-right: 28px; } }
@media (max-width: 520px) {
  .pillar { grid-template-columns: 1fr; padding: 28px 24px 0; }
  .pillar-text { padding-bottom: 28px; }
  .pillar-shot { --shot-w: min(72%, 240px); justify-self: center; }
}
.tag { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 8px; margin-left: 6px; white-space: nowrap; line-height: 1; transform: translateY(-1px); border-radius: 999px; background: var(--purple-tint); color: var(--purple-strong); font-size: .75rem; font-weight: 600; letter-spacing: .02em; vertical-align: middle; }

/* ---------- App showcase ---------- */
.screen-section { overflow: clip; }
.screen-showcase {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro preview" "controls preview" "more preview";
  column-gap: clamp(40px, 7vw, 96px); row-gap: 24px; align-items: start; align-content: center;
}
.screen-intro { grid-area: intro; align-self: end; padding-top: 24px; }
.screen-intro-heading { display: flex; align-items: center; gap: 20px; }
.screen-intro h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); margin: 0; text-wrap: balance; }
.screen-intro .lead { max-width: 35ch; margin: 16px 0 0; font-size: 1.125rem; }
.screen-guide { width: 76px; flex: 0 0 76px; }
.screen-guide .mascot-bubble { left: auto; right: 0; top: -26px; max-width: min(260px, 70vw); white-space: normal; text-align: start; }
.screen-preview { grid-area: preview; display: grid; gap: 28px; padding: 32px; background: #f0edf9; border-radius: 28px; }
.screen-showcase.is-ready .screen-preview { display: block; }
.screen-frame { margin: 0; text-align: center; }
.screen-frame[hidden], .screen-controls[hidden] { display: none; }
.screen-phone { width: min(264px, 100%); margin-inline: auto; aspect-ratio: 552 / 1200; overflow: hidden; border-radius: 30px; background: #fff; box-shadow: 0 22px 36px -22px rgba(43, 30, 100, .35); }
.screen-phone picture { display: block; width: 100%; height: 100%; }
.screen-phone img { width: 100%; height: 100%; object-fit: contain; }
.screen-frame figcaption { display: grid; gap: 4px; max-width: 32ch; margin: 24px auto 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.screen-frame figcaption strong { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.screen-controls { grid-area: controls; }
.screen-mobile-choice { display: none; }
.screen-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.screen-controls button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); font: inherit; font-size: .9375rem; line-height: 1.4; text-align: start; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
.screen-controls button span { overflow-wrap: anywhere; }
.screen-controls button svg { flex: 0 0 16px; width: 16px; color: var(--ink-3); }
.screen-controls button:hover { border-color: var(--line-strong); background: var(--lav-50); }
.screen-controls button[aria-pressed="true"] { background: var(--purple-tint); border-color: #b4a9f4; color: var(--purple-strong); font-weight: 600; }
.screen-controls button[aria-pressed="true"] svg { color: var(--purple-strong); }
.screen-more { grid-area: more; justify-self: start; align-self: start; margin-bottom: 24px; }
[dir="rtl"] .screen-controls svg { transform: scaleX(-1); }
@media (max-width: 760px) {
  .screen-showcase { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "controls" "preview" "more"; gap: 24px; }
  .screen-intro { padding-top: 0; }
  .screen-intro-heading { justify-content: space-between; gap: 12px; }
  .screen-guide { width: 64px; flex-basis: 64px; }
  .screen-preview { padding: 28px 20px; border-radius: 20px; }
  .screen-phone { width: min(224px, 100%); border-radius: 26px; }
  .screen-buttons { display: none; }
  .screen-mobile-choice { display: grid; gap: 8px; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
  .screen-mobile-choice select { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
  .screen-more { margin: 0; }
}

.js .screen-showcase:not(.is-ready) .screen-frame:not(:first-child) { display: none; }
html:not(.js) .screen-showcase { grid-template-areas: "intro intro" "preview preview" "more more"; }
html:not(.js) .screen-preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  html:not(.js) .screen-showcase { grid-template-areas: "intro" "preview" "more"; }
  html:not(.js) .screen-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Trust (privacy) ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-card { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.trust-card svg { width: 28px; height: 28px; color: var(--purple); margin-bottom: 20px; }
.trust-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.trust-card p { color: var(--ink-2); font-size: .9875rem; margin: 0; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--radius-xl); border: 1px solid var(--line); background: #fff; }
.plan--ultra { background: linear-gradient(170deg, #f4f1ff 0%, #fff 60%); border-color: var(--lav-200); box-shadow: 0 30px 60px -40px rgba(98, 82, 242, .55); }
.plan h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.plan-pill { align-self: flex-start; margin: 12px 0 0; padding: 5px 12px; border-radius: 999px; background: var(--purple); color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2; }
.plan-pill[hidden] { display: none; }
.plan-pill + .plan-price { margin-top: 12px; }
.plan-price { margin: 18px 0 6px; font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.9rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.plan-alt { margin: 0 0 24px; color: var(--ink-2); font-size: .9875rem; }
.plan ul { margin: 8px 0 24px; padding: 0; list-style: none; color: var(--ink-2); font-size: .9875rem; }
.plan li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 13px; height: 7px; border-left: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(-45deg); }
.plan-terms { margin: auto 0 0; padding-top: 16px; font-size: .8125rem; line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.plan-foot { margin: auto 0 0; padding-top: 16px; font-size: .9375rem; color: var(--ink-3); }
.pricing-notes { max-width: 760px; margin: 32px auto 0; text-align: center; font-size: .9375rem; color: var(--ink-3); }
.pricing-notes p { margin: 0 0 6px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--purple-strong); }
.faq .plus { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; background: var(--lav-100); display: grid; place-items: center; transition: transform .3s var(--ease), background-color .2s; }
.faq .plus svg { width: 16px; height: 16px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--lav-200); }
.faq details > div { padding: 0 56px 26px 0; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Cards (guides, related) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards > * { min-width: 0; }
.card {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--lav-200); box-shadow: var(--shadow-soft); transform: translateY(-2px); text-decoration: none; }
.card .eyebrow { margin-bottom: 12px; }
.card h3, .card .card-title { margin-bottom: 10px; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.25; letter-spacing: -.015em; }
.card p { color: var(--ink-2); font-size: .9875rem; }
.card .text-link { margin-top: auto; color: var(--purple-strong); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  border-radius: var(--radius-xl);
  background: radial-gradient(70% 70% at 50% 40%, #fff 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(160deg, #efeaff, #e4defe 50%, #e2f8f2);
}
.cta-panel h2 { max-width: 16ch; margin: 18px auto 16px; }
.cta-panel .lead { max-width: 39ch; margin: 0 auto 28px; }
.cta-panel .mascot { width: 152px; margin: 0 auto; }
.cta-panel > :not(.cta-obj) { position: relative; z-index: 1; }
.cta-panel .mascot-bubble { left: 85%; top: 8px; }
.cta-obj { position: absolute; width: clamp(64px, 9vw, 128px); pointer-events: none; filter: drop-shadow(0 18px 24px rgba(52, 38, 160, .18)); }
.cta-obj--1 { left: 5%; top: 12%; }
.cta-obj--2 { left: 9%; bottom: 12%; }
.cta-obj--3 { right: 6%; top: 10%; }
.cta-obj--4 { right: 9%; bottom: 14%; }
.cta-obj--5 { left: 24%; top: 4%; width: clamp(44px, 5vw, 72px); }
.cta-obj--6 { right: 26%; bottom: 4%; width: clamp(44px, 5vw, 72px); }
@media (max-width: 760px) {
  .cta-panel { padding: 48px 20px 100px; }
  .cta-panel .mascot { width: 132px; }
  .cta-panel .mascot-bubble { left: 50%; top: -20px; transform-origin: center bottom; }
  .cta-panel .mascot-bubble.show { transform: translateX(-50%); }
  .cta-panel .hero-terms { font-size: .8125rem; }
  .cta-obj--5, .cta-obj--6 { display: none; }
  .cta-obj { width: 60px; opacity: .9; }
  .cta-obj--1 { left: 8px; top: 5%; } .cta-obj--3 { right: 8px; top: 5%; }
  .cta-obj--2 { left: 24px; bottom: 3%; } .cta-obj--4 { right: 24px; bottom: 3%; }
}

/* ---------- Studio / contact ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio p { color: var(--ink-2); }
.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.contact-list span { color: var(--ink-3); }
.contact-list a { font-weight: 600; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); padding: 64px 0 40px; background: var(--surface); border-top: 1px solid var(--line); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.4fr; gap: 36px; }
.footer-brand p { color: var(--ink-3); margin-top: 16px; max-width: 32ch; }
.site-footer h2 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--purple-strong); text-decoration: underline; }
.site-footer [aria-disabled="true"] { color: var(--ink-3); cursor: default; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .875rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; } .footer-brand .brand { grid-column: 1; } .footer-brand p { grid-column: 1; max-width: 42ch; } .footer-brand-links { grid-column: 2; grid-row: 1 / 3; align-self: center; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } .footer-brand { display: block; } .footer-brand-links { margin-top: 20px !important; } }

/* ---------- Inner pages ---------- */
.crumbs { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--purple-strong); text-decoration: underline; }
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); background: linear-gradient(180deg, var(--lav-50), #fff); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem); }
.page-hero .lead { margin: 24px 0 32px; }
.page-hero-art { position: relative; display: flex; justify-content: center; }
.page-hero-art .stage-phone { position: relative; left: auto; bottom: auto; transform: none; width: min(300px, 80%); }
.page-hero-art .float-card { left: auto; right: -4%; top: auto; bottom: 10%; width: min(300px, 70%); }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-art { margin-top: 8px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(72px, 9vw, 120px); }
.split--flip > :first-child { order: 2; }
.split .lead { margin: 20px 0 0; }
.split-art { border-radius: var(--radius-xl); background: linear-gradient(160deg, var(--lav-100), #ebe7ff 60%, #e3f8f2); padding: clamp(32px, 5vw, 64px) 0 0; display: flex; justify-content: center; overflow: hidden; }
.split-art .stage-phone { position: relative; left: auto; bottom: auto; transform: none; width: min(280px, 66%); margin-bottom: -24%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

.prose { max-width: 720px; margin: 0 auto; font-size: 1.0625rem; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin: 56px 0 16px; letter-spacing: -.025em; }
.prose h3 { margin: 36px 0 10px; }
.prose p, .prose li { text-wrap: pretty; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: .9875rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; background: var(--surface); }
/* Long single words (de "Kohlenhydrate") must not widen the page at 360 px. */
@media (max-width: 480px) { .prose th, .prose td { padding: 10px 8px; hyphens: auto; overflow-wrap: anywhere; } }
.prose figure { margin: 32px 0; }
.prose figcaption { margin-top: 10px; font-size: .875rem; color: var(--ink-3); text-align: center; }
.prose .callout { margin: 28px 0; padding: 20px 24px; border-radius: var(--radius-md); background: var(--lav-50); border: 1px solid var(--lav-200); color: var(--ink-2); }
.prose .callout p:last-child { margin: 0; }
.article-head { max-width: 760px; margin: 0 auto; text-align: left; }
.article-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.article-meta { margin: 20px 0 0; font-size: .9375rem; color: var(--ink-3); }
.article-cta { max-width: 720px; margin: 64px auto 0; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(160deg, #f1edff, #fff); border: 1px solid var(--lav-200); display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; }
.article-cta > picture img { width: 72px; height: 72px; }
.article-cta h2 { font-size: 1.35rem; margin-bottom: 6px; }
.article-cta p { margin: 0 0 14px; color: var(--ink-2); }
/* Offer terms are fine print under the badges, not part of the pitch (owner 2026-11-09). */
.article-cta .cta-terms { margin: 12px 0 0; max-width: 60ch; font-size: .8125rem; line-height: 1.55; color: var(--ink-3); }
@media (max-width: 560px) { .article-cta { grid-template-columns: 1fr; } }
.screen-figure { max-width: 300px; margin: 32px auto; }
.screen-figure .shot { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-phone); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .mascot { width: 120px; margin: 0 auto 24px; }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 1; transform: none; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.label-figure { max-width: 420px; margin: 32px auto; } .label-figure .shot { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft), 0 0 0 1px var(--line); }

/* Keep section introductions readable and actions whole on narrow screens. */
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .section-head > div { width: 100%; }
  .section-head > .btn { align-self: flex-start; }
  .section-head--center { align-items: center; text-align: center; }
  .section-head .lead { margin-top: 20px; }
  .eyebrow { margin-bottom: 16px; }
  .pillar h3 { font-size: 1.25rem; }
  .contact-list li { flex-wrap: wrap; }
}
::selection { background: var(--lav-200); color: var(--ink); }

/* Cookie consent (Europe only; site.js). Fixed overlay, so it never shifts the layout. Decline = Accept in weight. */
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--purple-strong); text-decoration: underline; }
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 18px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(52, 38, 160, .45);
}
.consent[hidden] { display: none; }
.consent-text { flex: 1 1 240px; margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.consent-actions { display: flex; gap: 10px; flex: 1 0 auto; justify-content: flex-end; }
.consent-btn {
  flex: 1 1 0; min-width: 104px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--purple); border-radius: 999px;
  background: var(--purple-tint); color: var(--purple-strong); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.consent-btn:hover { background: var(--purple); color: #fff; }

/* ---------- Calculators + food pages (2026-11 SEO pilot) ---------- */
:root { --p: #6252f2; --c: #2fbf9b; --f: #f2a33a; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.page-hero--tool, .page-hero--food { padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero--tool .lead, .page-hero--food .lead { max-width: 60ch; margin: 20px 0 0; }
.page-hero--food h1, .page-hero--tool h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.aka { margin: 12px 0 0; color: var(--ink-3); font-size: .9375rem; }
.h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
.spaced { margin: 56px 0 16px; }

.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.tool-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.tool-form > .seg, .tool-form > .field--wide, .tool-form > .btn, .tool-form > noscript, .tool-form > [data-units] { grid-column: 1 / -1; }
.tool-form > .field[data-units] { grid-column: auto; }
.tool-form .btn { justify-self: start; }
.field label, .field .label, .seg legend { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.field small, .seg small { color: var(--ink-3); font-weight: 400; }
.field > small { display: block; margin-top: 4px; font-size: .8125rem; }
.input-unit { position: relative; display: flex; align-items: center; }
.input-unit input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums;
}
.input-unit input { padding-right: 52px; }
.input-unit span { position: absolute; right: 14px; color: var(--ink-3); font-size: .9375rem; pointer-events: none; }
.input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input-unit input:focus, .field select:focus { outline: 3px solid var(--purple); outline-offset: 1px; border-color: var(--purple); }
.seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 6px 6px 0; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: .9375rem; }
.seg label:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); color: var(--ink); font-weight: 600; }
.seg input { accent-color: var(--purple); width: 16px; height: 16px; margin: 0; }
[data-units][hidden] { display: none; }

.tool-result { min-width: 0; }
#calc-result { min-height: 420px; outline: none; }
.result-empty { padding: 24px; border-radius: var(--radius-md); background: var(--surface); color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.stat-label { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.stat strong { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.stat-unit { font-size: .875rem; color: var(--ink-2); }
.stat--main { background: linear-gradient(160deg, #f1edff, #fff); border-color: var(--lav-200); }
.stat--main strong { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--purple-strong); }
.stat--p { border-top: 4px solid var(--p); } .stat--c { border-top: 4px solid var(--c); } .stat--f { border-top: 4px solid var(--f); }
.stat--healthy strong { color: #127a5f; } .stat--under strong { color: #2563eb; } .stat--over strong { color: #a15c00; } .stat--obese strong { color: #b42318; }
.macro-bar { display: flex; height: 12px; margin: 4px 0 20px; border-radius: 999px; overflow: hidden; background: var(--line); }
.macro-bar span { display: block; height: 100%; }
.mb-p { background: var(--p); } .mb-c { background: var(--c); } .mb-f { background: var(--f); }
.result-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .9375rem; }
.result-table caption { text-align: left; font-weight: 600; color: var(--ink); padding-bottom: 8px; }
.result-table th, .result-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.result-table thead th { font-size: .8125rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.result-table tbody th { font-weight: 600; }
.result-table tbody th small { display: block; font-weight: 400; color: var(--ink-3); }
.result-table td { white-space: nowrap; }
.is-current th, .is-current td { background: var(--purple-tint); }
.result-note { margin: 12px 0; color: var(--ink-2); font-size: .9875rem; }
.result-note--warn { padding: 12px 14px; border-radius: 12px; background: #fff6e8; color: #6b4300; }
.tool-disclaimer { margin-top: 16px; font-size: .8125rem; color: var(--ink-3); }
.bmi-scale { position: relative; margin: 20px 0 36px; }
.bmi-bands { display: flex; height: 14px; border-radius: 999px; overflow: hidden; }
.b-under { background: #93c5fd; } .b-healthy { background: #6ee7b7; } .b-over { background: #fcd34d; } .b-obese { background: #fca5a5; }
.bmi-marker { position: absolute; top: -5px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.bmi-ticks { position: relative; height: 20px; font-size: .75rem; color: var(--ink-3); }
.bmi-ticks span { position: absolute; top: 4px; transform: translateX(-50%); }
.formula { padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums; color: var(--ink); }
.formula span { display: inline-block; min-width: 4.5em; font-weight: 600; color: var(--ink-3); }
.sources { font-size: .9375rem; color: var(--ink-3); }
.cta-links { font-size: .9375rem; margin: 12px 0 0 !important; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--calc { grid-template-columns: repeat(3, 1fr); margin-bottom: 48px; }
@media (max-width: 1000px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards--calc { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards--4 { grid-template-columns: 1fr; } }
.food-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.food-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--lav-50); border: 1px solid var(--lav-200); color: var(--ink); font-weight: 500; text-decoration: none; }
.food-chips a:hover { background: var(--lav-100); }
.food-links { margin: 32px 0; }
.food-links .h3 { margin-bottom: 12px; }
.food-photo { margin: 0 0 24px; max-width: 300px; }
.food-photo img { display: block; width: 100%; height: auto; border-radius: 16px; }
.food-photo figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--ink-2); }
.food-chips a span { color: var(--ink-3); font-weight: 400; font-size: .875rem; }
/* Foods hub: cuisine cards with a ruled dish list */
.fh-region { border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; background: #fff; }
.fh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; margin-bottom: 16px; }
.fh-title { min-width: 0; }
.fh-title h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; margin: 0; }
.fh-title p { margin: 4px 0 0; color: var(--ink-3); font-size: .9375rem; }
.fh-all { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; color: var(--purple-strong); font-weight: 600; text-decoration: none; }
.fh-all:hover { text-decoration: underline; }
.fh-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.fh-list li { border-top: 1px solid var(--line); }
.fh-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); font-weight: 500; text-decoration: none; }
.fh-list a:hover { background: var(--lav-50); color: var(--purple-strong); }
.fh-name { min-width: 0; overflow-wrap: anywhere; }
.fh-kcal { flex: 0 0 auto; color: var(--ink-3); font-size: .875rem; font-weight: 400; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 900px) { .fh-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fh-list { grid-template-columns: minmax(0, 1fr); } .fh-head { flex-direction: column; gap: 8px; } }
.food-region + .food-region { margin-top: 56px; }
.food-region .section-head { margin-bottom: 20px; }
.food-region .lead { font-size: 1rem; margin-top: 8px !important; }
.prose--narrow { margin-top: 56px; }
.food-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.food-main .prose { max-width: none; }
.food-main .prose h2:first-child { margin-top: 32px; }
.food-cta { margin: 0; position: sticky; top: 92px; grid-template-columns: 1fr; }
.food-cta h2 { font-size: 1.2rem; }
.notes { padding-left: 1.2em; }
.nutri tr.sub th { padding-left: 32px; font-weight: 400; }
.nutri tbody th { background: none; font-weight: 500; }
.nutri--nowrap td { white-space: nowrap; }
.food-card h3 { font-size: 1.2rem; }
.food-card p { margin: 0 0 4px; }
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
.food-table { min-width: 560px; }
.food-table th a { font-weight: 600; }
.prose .food-table, .food-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.food-table th, .food-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.food-table thead th { background: var(--surface); }
.az-group h2 { font-size: 1.6rem; margin: 32px 0 8px; }
.hub-nav ul, .az-jump ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.hub-nav a, .az-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); font-size: .9375rem; text-decoration: none; }
.az-jump a { min-width: 40px; justify-content: center; padding: 0; }
.hub-nav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.hub-nav a:hover, .az-jump a:hover { border-color: var(--purple); color: var(--ink); }
@media (max-width: 960px) {
  .tool { grid-template-columns: 1fr; }
  #calc-result { min-height: 0; }
  .food-layout { grid-template-columns: minmax(0, 1fr); }
  .food-cta { position: static; }
}
@media (max-width: 640px) {
  .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats--3 .stat { padding: 12px; }
  .stats--3 .stat strong { font-size: 1.25rem; }
  .tool-form { grid-template-columns: 1fr; }
  .tool-form > .field[data-units] { grid-column: 1 / -1; }
  .nutri th, .nutri td { padding: 10px 8px; font-size: .9375rem; }
}
.ref-line { margin: 10px 0 0; color: var(--ink-2); font-size: .9375rem; }
.ref-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.source-line { margin: 10px 0 0; color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.source-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.food-main, .food-cta { min-width: 0; }
.page-hero--food h1 { overflow-wrap: break-word; hyphens: auto; }
.section-head > .btn { max-width: 100%; white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; }

/* ---------- Languages (lib.mjs langSwitcher; localised pages under /<lang>/) ---------- */
.lang-switch { position: relative; margin-top: 40px; font-size: .875rem; }
.lang-switch summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); cursor: pointer; list-style: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ""; width: 7px; height: 7px; margin-inline-start: 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-switch[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang-switch summary:hover, .lang-switch summary:focus-visible { color: var(--purple-strong); border-color: var(--line-strong); }
.lang-switch ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 12px; margin: 10px 0 0; padding: 12px; max-width: 680px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.lang-switch li { padding: 0; }
.lang-switch a { display: block; padding: 8px 10px; border-radius: 10px; }
.lang-switch a[aria-current] { color: var(--purple-strong); font-weight: 600; background: var(--purple-tint); }
/* Header language picker (lib.mjs langPicker): a borderless button with the globe, the short language code and a
   chevron, as tall as the CTA. The list floats, so opening it never shifts the layout. */
.lang-pick { position: relative; flex: none; font-size: .875rem; }
.lang-pick summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none; }
.lang-pick-code { min-width: 2ch; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary::after { content: ""; width: 6px; height: 6px; margin-inline-start: 1px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-pick[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-pick summary:hover, .lang-pick[open] summary { color: var(--ink); background: var(--lav-100); }
.lang-pick summary svg { flex: none; }
.lang-pick-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; width: max-content; min-width: 200px; max-height: min(70vh, 560px); overflow-y: auto; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 40px -24px rgba(22, 19, 31, .3); }
.lang-pick-list li { padding: 0; }
.lang-pick-list a, .lang-switch a { unicode-bidi: isolate; }
.lang-pick-list a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.lang-pick-list a:hover, .lang-pick-list a:focus-visible { color: var(--ink); background: var(--lav-100); }
.lang-pick-list a[aria-current] { color: var(--purple-strong); font-weight: 600; background: var(--purple-tint); }
.lang-pick-list a.is-last:not([aria-current])::after { content: ""; width: 6px; height: 6px; margin-inline-start: auto; border-radius: 50%; background: var(--purple-strong); }
/* Long words (German compounds, Russian) wrap instead of widening the page; CJK and Arabic use system fonts after Inter. */
html:not([lang="en"]) :is(h1, h2, h3, .lead, .card p, .stat-label, .stat-unit, summary span) { overflow-wrap: break-word; hyphens: auto; }
/* :not([lang="en"]) only lifts specificity above the rule above, so overflow-wrap: anywhere wins and long CJK headings can still break at 360 px. */
html:is([lang="ja"], [lang="ko"], [lang="zh-Hans"]):not([lang="en"]) :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
html[lang="ko"] :is(p, li) { word-break: keep-all; }

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .text-link svg { transform: scaleX(-1); }
[dir="rtl"] .text-link:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .fact + .fact { border-left: 0; border-right: 1px solid var(--line); }
@media (max-width: 760px) { [dir="rtl"] .fact:nth-child(3) { border-right: 0; } }
[dir="rtl"] .step-btn { text-align: right; }
[dir="rtl"] .step-btn::after { margin-left: 0; margin-right: auto; }
[dir="rtl"] .pillar li::before, [dir="rtl"] .plan li::before { left: auto; right: 2px; }
[dir="rtl"] .pillar { padding: 36px 36px 0 32px; }
[dir="rtl"] .pillar li { padding: 5px 26px 5px 0; }
[dir="rtl"] .plan li { padding: 12px 28px 12px 0; }
@media (min-width: 1180px) { [dir="rtl"] .pillar { padding-right: 36px; padding-left: 28px; } }
[dir="rtl"] .tag { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .crumbs li + li::before { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol, [dir="rtl"] .notes { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] :is(.prose th, .prose td, .result-table caption, .result-table th, .result-table td, .food-table th, .food-table td, .link-btn, .article-head) { text-align: right; }
[dir="rtl"] .input-unit input { padding-right: 14px; padding-left: 52px; }
[dir="rtl"] .input-unit span { right: auto; left: 14px; }
[dir="rtl"] .how-caption { left: auto; right: 24px; }
[dir="rtl"] .mascot-bubble { transform-origin: right bottom; }
[dir="rtl"] .page-hero-art .float-card { right: auto; left: -4%; }
/* Numeric scales and formulas read left to right in Arabic too. */
[dir="rtl"] .bmi-scale, [dir="rtl"] .macro-bar { direction: ltr; }
[dir="rtl"] .formula { direction: ltr; text-align: right; }
/* Narrow phones in long-word / no-space languages (de footer headings, ja studio block): grid items may
   shrink below their min-content width and wrap instead of widening the page. */
.footer-grid > *, .studio > * { min-width: 0; }
.site-footer, .contact-list a { overflow-wrap: anywhere; }

/* Blog newsletter form (lib.mjs newsletterForm): blog hub, end of each post, footer. Needs JS (site.js posts it),
   so it only shows under html.js. Logical properties: the row mirrors in RTL. */
.nl { display: none; }
.js .nl { display: block; }
.nl { max-width: 560px; min-width: 0; }
.nl-title { font-size: 1.25rem; letter-spacing: -.02em; margin: 0 0 6px; color: var(--ink); }
.nl-lead { margin: 0 0 14px; color: var(--ink-2); }
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.nl-input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; text-align: start; }
.nl-input::placeholder { color: var(--ink-3); opacity: .8; }
.nl-input:focus-visible { outline: 3px solid rgba(98, 82, 242, .35); outline-offset: 1px; border-color: var(--purple); }
.nl-input[aria-invalid="true"] { border-color: #c4314b; }
.nl-btn { flex: 0 0 auto; min-height: 48px; }
.nl-btn:disabled { opacity: .7; cursor: progress; }
.nl-status { min-height: 1.4em; margin: 8px 0 0; font-size: .9375rem; color: var(--ink-2); }
.nl-status.is-ok { color: #1d7a5a; font-weight: 600; }
.nl-status.is-error { color: #b42341; font-weight: 600; }
.nl-note { margin: 2px 0 0; font-size: .8125rem; color: var(--ink-3); }
.nl-note a { color: inherit; text-decoration: underline; }
.nl-hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.blog-news, .post-news { margin-top: 48px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--lav-50); border: 1px solid var(--lav-200); }
.footer-news { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.site-footer .nl-title { font-size: 1.0625rem; text-transform: none; letter-spacing: -.01em; color: var(--ink); margin-bottom: 4px; }
.site-footer .nl-note a { color: inherit; }
@media (max-width: 420px) { .nl-btn { flex: 1 1 100%; } }

/* Nutrition callout: live type keeps labels and values padded at every size. */
.macro-card { padding: 20px; background: #fff; color: var(--ink); text-align: start; }
.macro-card-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.macro-card-total > strong { color: var(--purple); font-size: 34px; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; }
.macro-card small { margin-inline-start: 5px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.macro-card-total > span { font-size: 12px; color: var(--ink-3); }
.macro-card-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; margin: 16px 0; }
.macro-card-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.macro-label { display: flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.macro-label i { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; }
.macro-protein { background: #ed4499; }.macro-carbs { background: #3785ed; }.macro-fat { background: #8538e9; }
.macro-card-values strong { display: block; margin-top: 5px; font-size: 23px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.footer-brand .brand img { object-fit: contain; }
.site-footer .footer-brand-links { display: flex; flex-wrap: wrap; gap: 4px 20px; max-width: 30ch; }
.footer-brand-links li { padding: 0; }.footer-brand-links a { display: inline-block; padding: 5px 0; }
.site-footer a:focus-visible { outline-offset: 4px; border-radius: 3px; }
.site-footer .footer-news-link { display: inline-flex; align-items: center; gap: 20px; font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.footer-news-link svg { width: 22px; height: 22px; color: var(--purple); }

/* Feature intros: a compact phone balances the copy without creating an empty first viewport. */
.page-hero { padding: clamp(32px, 4vw, 56px) 0 clamp(32px, 4vw, 48px); }
.page-hero .crumbs { margin-bottom: 24px; }
.page-hero-grid { align-items: start; gap: clamp(32px, 5vw, 64px); }
.page-hero-grid > :first-child { padding-top: clamp(12px, 3vw, 40px); }
.page-hero-art .stage-phone { width: min(260px, 76%); }
.page-hero + .section--tight { padding-top: clamp(32px, 4vw, 48px); }
@media (max-width: 860px) { .page-hero-grid > :first-child { padding-top: 0; } .page-hero-art .stage-phone { width: min(230px, 70%); } }

/* Shared page rhythm: close related controls, bounded illustrations and consistent section gaps. */
.section-head { justify-content: flex-start; align-items: flex-end; gap: 24px 40px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head > div { max-width: 680px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { align-items: center; }
.how { align-items: start; gap: clamp(28px, 4vw, 56px); }
.how-stage .stage-phone { width: min(48%, 230px); }
.how-shot { padding: 28px 0; }
.step-btn { padding-block: 22px; }
.split + .split { margin-top: clamp(48px, 6vw, 80px); }
.split { gap: clamp(28px, 4vw, 64px); }
.split-art { padding-top: clamp(24px, 3vw, 40px); }
.site-footer { margin-top: 0; }
.related-posts { padding-top: clamp(48px, 6vw, 72px); }
@media (max-width: 900px) { .how-stage .stage-phone { width: min(54%, 230px); } }
@media (max-width: 760px) { .section-head { align-items: flex-start; gap: 20px; margin-bottom: 28px; } .section-head--center { align-items: center; } }
.how-steps li { display: grid; grid-template-columns: auto minmax(0,1fr); align-content: start; gap: 12px; }
.how-steps .step-num { margin: 0; align-self: center; }
.how-steps h3 { margin: 0; }
.how-steps p { grid-column: 1 / -1; }

/* Narrow form fields and menus follow the shared header dimensions. */
.input-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.input-pair > *, .input-unit, .input-unit input, .field select { min-width: 0; }



[data-tour-surface][role="button"] { cursor: pointer; }
[data-tour-surface]:focus-visible { outline: 2px solid var(--purple); outline-offset: 6px; }
.screen-more { display: flex; align-items: center; }
.screen-controls .screen-buttons button { min-height: 48px; padding-block: 11px; }
.screen-frame figcaption { min-height: 5.2em; }
.is-tour-paused .mascot * { animation-play-state: paused !important; }
/* Home polish 2026-11-08: trust band, step cards, deep band */
.trust-band { background: var(--surface); border-block: 1px solid var(--line); }
.trust-band-list { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 78px; margin-block: 0; padding-block: 16px; list-style: none; }
.trust-band-list li { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink-2); font-size: .875rem; font-weight: 500; line-height: 1.5; }
.trust-band-list svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--purple-strong); }
.trust-band-list span { text-wrap: pretty; }
.step-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.step-card-copy { padding: 28px 28px 24px; }
.step-card-number { display: block; margin-bottom: 16px; color: var(--purple-strong); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step-card h3 { margin: 0; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.02em; }
.step-card .step-card-caption { margin: 8px 0 16px; color: var(--purple-strong); font-size: .875rem; font-weight: 600; }
.step-card-copy > p:last-child { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.65; }
.step-card-shot { display: flex; justify-content: center; height: 340px; margin-top: auto; padding-top: 12px; overflow: hidden; background: var(--lav-100); }
.step-card-shot .stage-phone { position: relative; inset: auto; flex: 0 0 auto; width: min(260px, 78%); align-self: flex-start; }
.how-note { max-width: 75ch; margin: 20px 0 0; color: var(--ink-3); font-size: .8125rem; line-height: 1.6; }
#privacy.section--deep { padding-block: var(--section); background: linear-gradient(120deg, #2a2266, #3a2f8f); color: #fff; }
#privacy.section--deep + .section { padding-top: var(--section); }
.section--deep h2, .section--deep .trust-card h3 { color: #fff; }
.section--deep .lead, .section--deep .trust-card p { color: #eeeafe; }
.section--deep .trust-card { min-width: 0; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.section--deep .trust-card svg { color: #d6ceff; }
.section--deep .btn-quiet { background: var(--lav-100); color: #2a2266; }
.section--deep .btn-quiet:hover { background: #fff; }
.section--deep .trust-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.section--deep .trust-card a:hover { color: #eeeafe; }
.section--deep a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
[dir="rtl"] .trust-band-list, [dir="rtl"] .step-card-copy { text-align: right; }
@media (max-width: 900px) {
  .trust-band-list { flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-block: 10px; }
  .trust-band-list li { padding-block: 6px; }
  .step-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .step-card-copy { padding: 28px; }
  .step-card-shot { height: 360px; }
  .step-card-shot .stage-phone { width: min(260px, 60vw); }
  .section--deep .trust-card { padding: 28px; }
}
@media (max-width: 520px) {
  .trust-band-list { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 0; padding-block: 4px; }
  .trust-band-list li { align-items: center; padding-block: 11px; font-size: .875rem; }
  .trust-band-list li + li { border-block-start: 1px solid var(--line); }
  .trust-band-list svg { flex-basis: 18px; width: 18px; height: 18px; margin-top: 1px; }
  .step-card-copy { padding: 24px; }
  .step-card-number { margin-bottom: 12px; }
  .step-card-shot { height: 320px; }
  .section--deep .trust-card { padding: 24px; }
}

/* Compare pages 2026-11-08: sourced feature tables, picks, best-of list; footer gains a Compare column */
.wrap-narrow { max-width: 760px; margin-inline: auto; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.compare-table-wrap:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.compare-table caption { padding: 18px 20px 6px; text-align: left; font-weight: 600; color: var(--ink); }
.compare-table th, .compare-table td { padding: 13px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); }
.compare-table thead th:nth-child(2) { color: var(--purple-strong); }
.compare-table tbody th { width: 28%; font-weight: 500; color: var(--ink); }
.compare-table td { width: 36%; color: var(--ink-2); }
.compare-table td:nth-child(2) { background: var(--lav-50); }
.compare-table sup { margin-left: 2px; font-size: .7em; }
.compare-table sup a { color: var(--purple-strong); text-decoration: none; }
.compare-na { color: var(--ink-3); }
.compare-legend { max-width: 80ch; margin: 14px 0 0; font-size: .8125rem; color: var(--ink-3); line-height: 1.6; }
.compare-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare-pick { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.compare-pick--kyzo { background: var(--lav-50); border-color: var(--lav-200); }
.compare-pick h3 { margin: 0 0 14px; font-size: 1.2rem; }
.compare-pick ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--ink-2); }
.compare-pick li { margin: .45em 0; }
.compare-sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3); }
.compare-sources h2 { font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }
.compare-sources ol { margin: 10px 0 0; padding-left: 1.4em; }
.compare-sources li { margin: .35em 0; overflow-wrap: anywhere; }
.compare-sources :target { background: var(--lav-100); }
.best-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.best-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.best-item--kyzo { background: var(--lav-50); border-color: var(--lav-200); }
.best-rank { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lav-100); color: var(--purple-strong); font-weight: 600; }
.best-item h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 6px 0 10px; font-size: 1.3rem; }
.best-tag { font-size: .8125rem; font-weight: 600; color: var(--purple-strong); }
.best-item p { margin: 0 0 12px; color: var(--ink-2); max-width: 72ch; }
.footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) 1.3fr; gap: 28px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 760px) {
  .compare-picks { grid-template-columns: minmax(0, 1fr); }
  .compare-table { min-width: 0; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .compare-table tbody tr:last-child { border-bottom: 0; }
  .compare-table tbody th { grid-column: 1 / -1; width: auto; padding: 14px 16px 6px; border: 0; }
  .compare-table td { width: auto; padding: 4px 16px 14px; border: 0; font-size: .875rem; }
  .compare-table td:nth-child(2) { background: none; }
  .compare-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-3); }
  .compare-table td:nth-child(2)::before { color: var(--purple-strong); }
  .best-item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px; }
}
[dir="rtl"] .compare-table caption, [dir="rtl"] .compare-table th, [dir="rtl"] .compare-table td { text-align: right; }

/* Shared visual system: calm surfaces, complete app screens, a single header action. */
.brand, .plan-price, .stat strong, .fact strong, .macro-card-total > strong { font-family: var(--font-display); }
h1 { font-weight: 800; }

::selection { color: #302267; background: #e2dbff; }
input, textarea { caret-color: var(--purple-strong); }
.site-nav {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: box-shadow .2s ease;
}
.site-nav.scrolled { box-shadow: 0 8px 24px -16px rgba(38,25,80,.24); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 32px; }
.nav-brand-group { flex: none; }
.nav-brand-group .brand { min-height: 44px; font-size: 1.125rem; }
.nav-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 8px; color: var(--ink-2); font-size: .875rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--purple-strong); background: var(--lav-50); }
.nav-cta { min-height: 44px; margin: 0; padding-inline: 22px; border-radius: 12px; box-shadow: none; }
.lang-pick summary { min-height: 44px; padding-inline: 10px; border-radius: 10px; }
.lang-pick-list a { min-height: 44px; }
.nav-toggle { display: none; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
body.nav-open { overflow: hidden; }
.trust-band { background: #fff; }
.section-head { justify-content: space-between; }
#features.section, #faq.section { padding-block: var(--section); background: var(--lav-50); border-block: 1px solid var(--line); }
#screens.section, #guides.section { padding-block: var(--section); }
#how .section-head > div { max-width: 720px; }
.step-card { border-color: var(--line-strong); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); }
.step-card-copy { padding: var(--space-4); }
.step-card-number { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--lav-200); border-radius: 12px; background: var(--lav-50); }
.step-card h3 { font-size: 1.5rem; }
.step-card-shot { height: auto; padding: 28px 16px 32px; overflow: visible; background: #f0edfc; }
.step-card-shot .stage-phone { width: min(224px, 78%); margin: 0; transform: none; }
.stage-phone { aspect-ratio: auto; border-radius: 30px; }
.stage-phone picture { display: block; }
.stage-phone img { width: 100%; height: auto; object-fit: contain; }
#features .pillar { --shot-w: 168px; align-items: center; gap: 24px; padding: 32px; border-radius: var(--radius-md); border-color: var(--line-strong); background: #fff; box-shadow: var(--shadow-soft); }
#features .pillar-text { padding: 0; }
#features .pillar h3 { font-size: 1.4rem; }
#features .pillar p, #features .pillar ul { color: var(--ink-2); }
#features .pillar .text-link { min-height: 44px; }
#features .pillar-shot { align-self: center; width: var(--shot-w); aspect-ratio: auto; padding: 6px; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 16px 28px -18px rgba(56,35,120,.3); }
#features .pillar-shot picture { display: block; }
#features .pillar-shot img { position: static; display: block; width: 100%; height: auto; object-fit: contain; border-radius: 20px; }
.screen-preview { border: 1px solid var(--lav-200); }
.plan, .card, .trust-card { border-radius: var(--radius-md); }
.site-footer { padding-block: 64px 32px; background: #f8f7fc; }
.footer-news { padding-bottom: 28px; margin-bottom: 40px; }
.site-footer h2 { color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.footer-brand p { color: var(--ink-2); }
.site-footer li a, .site-footer li .link-btn { display: inline-flex; align-items: center; min-height: 36px; padding-block: 4px; }
@media (max-width: 1100px) {
  .nav-inner { height: 72px; gap: 16px; }
  .nav-right { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; inset-inline: 0; top: 100%; max-height: calc(100dvh - 72px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 20px var(--gutter) 28px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 24px 40px -24px rgba(35,23,80,.25); }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 52px; padding-inline: 16px; font-size: 1.0625rem; }
  .nav-toggle[aria-expanded="true"] { background: var(--lav-100); border-color: var(--lav-200); }
}
@media (max-width: 900px) {
  .step-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .step-card-copy { align-self: center; }
  .step-card-shot { margin: 0; padding: 28px 16px; }
  .step-card-shot .stage-phone { width: min(210px, 80%); }
}
@media (max-width: 760px) {
  .site-footer li a, .site-footer li .link-btn { min-height: 44px; }
  #features .pillar { --shot-w: 190px; padding: 28px; }
}
@media (max-width: 560px) {
  .nav-inner { height: 68px; gap: 8px; }
  .nav-right { gap: 8px; }
  .nav-cta { padding-inline: 14px; font-size: .8125rem; }
  .lang-pick { position: static; }
  .lang-pick summary { padding-inline: 8px; gap: 4px; }
  .lang-pick summary::after { display: none; }
  .lang-pick summary svg { width: 16px; }
  .lang-pick-list { top: 100%; inset-inline: var(--gutter); width: auto; min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-links { max-height: calc(100dvh - 68px); }
  .step-card { display: flex; }
  .step-card-copy { align-self: stretch; padding: 24px; }
  .step-card-shot { padding: 28px 16px 32px; }
  .step-card-shot .stage-phone { width: min(210px, 72%); }
  #features .pillar { grid-template-columns: minmax(0,1fr); gap: 28px; }
  #features .pillar-shot { justify-self: center; width: min(210px, 80%); }
}
@media (max-width: 374px) { .nav-cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .site-nav, .btn, .store-badge, .text-link svg { transition: none; }
}

.hero h1:is(:lang(ar), :lang(ja), :lang(zh-Hans), :lang(ko)),
:is(h1, h2, h3, .brand, .plan-price):is(:lang(ar), :lang(ja), :lang(zh-Hans), :lang(ko)) {
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", "Noto Sans Arabic", sans-serif;
  letter-spacing: normal; line-height: 1.3;
}
/* footer social icons */
.footer-social{list-style:none;margin:16px 0 0;padding:0;display:flex;gap:6px}
.footer-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:inherit;text-decoration:none}
.footer-social a:hover,.footer-social a:focus-visible{background:rgba(127,127,127,.16);text-decoration:none}
.footer-social svg{display:block}

/* Footer v2 (owner 2026-11-09): inline newsletter row, brand column with badges and socials, five link columns,
   one tidy bottom bar. Logical properties throughout so Arabic mirrors. */
.site-footer { padding-block: 56px 32px; }
.footer-news { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; padding: 22px 28px; border: 1px solid var(--lav-200, #e6e1fb); border-radius: 20px; background: #fff; }
.footer-news-copy { min-width: 0; flex: 1 1 320px; }
.footer-news-copy p, .footer-news .nl-lead { margin: 4px 0 0; color: var(--ink-2); font-size: .9375rem; }
.site-footer .footer-news .nl-title { margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.footer-news .nl { flex: 1 1 100%; max-width: none; }
.site-footer .footer-news-cta, .site-footer .footer-news-cta:hover { flex: 0 0 auto; color: #fff; text-decoration: none; }
.footer-grid { grid-template-columns: minmax(220px, 1.35fr) repeat(5, minmax(0, 1fr)); gap: 32px 28px; align-items: start; }
.footer-brand { display: block; }
.footer-brand p { margin: 14px 0 18px; max-width: 26ch; color: var(--ink-2); line-height: 1.55; }
.footer-brand .stores { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
/* Owner 2026-11-11: stacked badges share one WIDTH; side-by-side badges (tablet/phone rows, hero, pricing) share one HEIGHT.
   Badge artwork is never stretched: width:auto/height:auto keeps each badge's own aspect ratio. */
@media (min-width: 1101px) { .footer-brand .stores .store-badge img { width: 168px; height: auto; } }
.footer-brand .footer-social { margin: 18px 0 0; gap: 8px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--purple-tint); color: var(--purple-strong); border-color: var(--lav-200, #e6e1fb); }
.footer-social svg { width: 22px; height: 22px; }
.footer-grid h2 { margin-bottom: 10px; font-size: .75rem; }
.footer-grid li a { min-height: 32px; padding-block: 3px; line-height: 1.4; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding-top: 24px; font-size: .8125rem; }
.footer-bottom-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; min-width: 0; }
.footer-studio { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-studio li { padding: 0; }
.footer-studio a, .footer-studio .link-btn { min-height: 32px; font-size: inherit; }
.footer-bottom .lang-switch { margin: 0; flex: 0 0 auto; }
.footer-bottom .lang-switch ul { position: absolute; inset-block-end: 100%; inset-inline-end: 0; z-index: 5; width: min(680px, calc(100vw - 32px)); margin: 0 0 8px; box-shadow: 0 16px 40px -16px rgba(43, 31, 77, .3); }
.footer-disclaimer { flex: 1 1 100%; margin: 0; padding-top: 4px; color: var(--ink-3); }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
  .footer-brand .brand { flex: 0 0 100%; }
  .footer-brand p { margin: 0; flex: 1 1 220px; max-width: 34ch; }
  .footer-brand .stores { flex-direction: row; flex-wrap: wrap; }
  .footer-brand .footer-social { margin: 0; }
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-grid > div:last-child { grid-column: 1 / -1; } .footer-grid > div:last-child ul { columns: 2; column-gap: 24px; } }
@media (max-width: 640px) {
  .footer-news { padding: 20px; }
  .footer-news-cta { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand { display: block; }
  .footer-brand p { margin: 12px 0 16px; }
  .footer-brand .stores { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
  .footer-brand .store-badge img { height: 44px; }
  .footer-brand .footer-social { margin-top: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .lang-switch ul { inset-inline-end: auto; inset-inline-start: 0; }
}
@media (max-width: 400px) { .footer-grid > div:last-child ul { columns: 1; } }
/* Exercise pages (pages/exercises.mjs). */
.ex-stats .stat strong { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
.ex-stats .stat--main strong { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.muscle-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.muscle-chips li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .9375rem; }
.muscle-chips--primary li { background: var(--lav-50); border-color: var(--lav-200); color: var(--ink); font-weight: 600; }
.ex-steps { padding-left: 1.4em; }
.ex-steps li { margin-bottom: 10px; padding-left: 4px; }
.ex-steps li::marker { font-weight: 700; color: var(--purple-strong); }
.ex-table td:nth-child(2) { white-space: nowrap; }
.prose .muscle-chips, .prose .food-chips { padding-left: 0; }
.prose .muscle-chips li { margin: 0; }
/* Step cards (owner 2026-11-09): photo left, instruction right; stacked on phones. */
.prose .ex-steps--photo { list-style: none; padding-left: 0; margin: 0 0 8px; display: grid; gap: 16px; }
.prose .ex-steps--photo > li.ex-step { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 24px; align-items: center;
  margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface, #fff); }
.prose .ex-steps--photo > li.ex-step--text { grid-template-columns: 1fr; }
.ex-step-body { min-width: 0; }
.ex-step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 8px;
  background: var(--lav-200, #e9e3ff); color: var(--purple-strong); font-weight: 700; font-size: .875rem; }
.ex-steps--photo h3 { margin: 0 0 6px; font-size: 1.125rem; }
.ex-steps--photo p { margin: 0; }
.prose .ex-photo { margin: 0; max-width: 600px; }
.prose .ex-steps--photo .ex-photo figcaption { margin-top: 6px; font-size: .8125rem; }
.prose .ex-photo figcaption { text-align: start; }
.ex-photo img, .ex-card img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--surface); }
.prose .ex-vars { padding-left: 0; list-style: none; }
.prose .ex-vars li { margin-bottom: 10px; }
.ex-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 40px; }
.ex-card img { margin-bottom: 14px; }
/* Exercise guide layout (owner 2026-11-09: neat, professional). One radius (16px cards, 12px photos),
   one card padding (20px), one rhythm (h2 56px above / 20px below, 12px between cards). */
.page-hero--ex { padding-bottom: clamp(32px, 4vw, 48px); }
.ex-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 4vw, 56px); align-items: center; }
.ex-hero-text h1 { margin-bottom: 16px; }
.ex-hero-text .lead { margin-bottom: 0; max-width: 60ch; }
.ex-hero-photo { margin: 0; }
.ex-hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; border-radius: 20px; box-shadow: var(--shadow-soft); }
.ex-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ex-toc a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.ex-toc a:hover { border-color: var(--purple); color: var(--purple-strong); }
/* Spec bar: one card, four cells split by hairlines, icon tile + label + value. */
.ex-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; margin: 0 0 32px;
  border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(35,23,80,.04), 0 8px 24px -16px rgba(35,23,80,.18); overflow: hidden; }
.ex-spec { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 18px; }
.ex-spec + .ex-spec { border-left: 1px solid var(--line); }
.ex-spec-ico { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lav-50); color: var(--purple-strong); }
.ex-spec-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ex-spec-label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ex-spec strong { font-size: 1.125rem; line-height: 1.3; color: var(--ink); font-weight: 650; white-space: nowrap; }
.ex-spec strong small { font-size: .8125rem; font-weight: 500; color: var(--ink-3); }
@media (max-width: 1100px) and (min-width: 901px), (max-width: 640px) {
  .ex-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
  .ex-spec { padding: 14px 16px; gap: 12px; }
  .ex-spec + .ex-spec { border-left: 0; }
  .ex-spec:nth-child(even) { border-left: 1px solid var(--line); }
  .ex-spec:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ex-spec-ico { width: 38px; height: 38px; border-radius: 10px; }
  .ex-spec strong { font-size: 1rem; }
}
.food-main .prose > p:first-child { margin-top: 24px; }
.food-main .prose h2 { margin: 56px 0 20px; }
.food-main .prose h3 { margin: 24px 0 12px; }
.food-main .prose h2 + h3 { margin-top: 0; }
.prose h2[id] { scroll-margin-top: 96px; }
/* Muscle body map (front + back), main muscles dark purple, supporting light. */
.ex-muscles { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 20px;
  padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.bodymap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bm-fig { margin: 0; text-align: center; }
.bm-fig svg { display: block; width: 100%; height: auto; max-height: 340px; }
.prose .bm-fig figcaption { margin-top: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.bm-outline { fill: none; stroke: #cfc9e3; stroke-width: 3; }
.bm-off { fill: #e9e6f3; }
.bm-skin { fill: #f1eff7; }
.bm-sec { fill: #c3b5ff; }
.bm-pri { fill: #5b3df5; }
.food-main .prose .ex-muscles-text h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.food-main .prose .ex-muscles-text h3 + ul + h3 { margin-top: 20px; }
.ex-muscles-text .muscle-chips { margin: 0; }
.bm-key { width: 12px; height: 12px; border-radius: 3px; }
.bm-key--pri { background: #5b3df5; }
.bm-key--sec { background: #c3b5ff; }
@media (max-width: 640px) { .ex-muscles { grid-template-columns: 1fr; padding: 16px; gap: 20px; } .bodymap { max-width: 300px; margin: 0 auto; width: 100%; } }
/* Everyday benefits: 2x2 cards. */
.prose .ex-benefits { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .ex-benefits li { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ex-benefits strong { display: block; margin-bottom: 4px; color: var(--ink); }
.ex-benefits span { display: block; color: var(--ink-2); line-height: 1.55; }
.prose .ex-benefits-note { padding: 12px 16px; border-radius: 12px; background: #fff8eb; border: 1px solid #f6e3bf; font-size: .9375rem; }
@media (max-width: 640px) { .prose .ex-benefits { grid-template-columns: 1fr; } }
/* Checklists (cues, set-up). */
.prose .ex-checks { list-style: none; padding-left: 0; margin: 0; display: grid; gap: 8px; }
.prose .ex-checks li { position: relative; margin: 0; padding: 14px 20px 14px 52px; border-radius: 14px; background: var(--lav-50); line-height: 1.55; }
.prose .ex-checks li::before { content: ""; position: absolute; left: 20px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.prose .ex-checks--dot { counter-reset: exs; }
.prose .ex-checks--dot li { background: var(--surface); border: 1px solid var(--line); }
.prose .ex-checks--dot li::before { counter-increment: exs; content: counter(exs); background: var(--lav-200, #e9e3ff); color: var(--purple-strong);
  font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
/* Step cards. */
.prose .ex-steps--photo { gap: 12px; margin: 0; }
.prose .ex-steps--photo > li.ex-step { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 28px; padding: 16px; border-radius: 16px; }
.prose .ex-steps--photo .ex-photo { max-width: none; }
.prose .ex-steps--photo .ex-photo img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; border-radius: 12px; }
.ex-step-body { padding-right: 8px; }
.prose .ex-steps--photo h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 1.1875rem; }
.ex-step-num { flex: 0 0 auto; width: 30px; height: 30px; margin: 0; font-size: .875rem; }
.prose .ex-steps--photo p { margin: 0; }
.prose .ex-steps--photo .ex-step-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3); }
/* Mistakes. */
.ex-mistakes { display: grid; gap: 12px; margin: 0; }
.ex-mistake { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.prose .ex-mistake .ex-mistake-q, .prose .ex-mistake .ex-mistake-a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; }
.prose .ex-mistake .ex-mistake-q { font-size: 1.0625rem; line-height: 1.4; color: var(--ink); margin-bottom: 8px; }
.prose .ex-mistake .ex-mistake-a { line-height: 1.55; }
.ex-mistake-a strong { color: #12734a; font-weight: 600; }
.ex-ico { width: 20px; height: 20px; border-radius: 50%; margin-top: 2px; background: center / 14px no-repeat; }
.ex-ico--x { background-color: #d92d20; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ex-ico--ok { background-color: #12a05c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Variation tabs: both panels stay in the HTML, the radio picks which shows. */
.ex-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.ex-tablist { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--lav-50); border: 1px solid var(--line); }
.ex-tablist label { padding: 8px 18px; border-radius: 9px; font-weight: 600; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.ex-tablist label:hover { color: var(--ink); }
#ex-vars-easy:checked ~ .ex-tablist label[for="ex-vars-easy"], #ex-vars-hard:checked ~ .ex-tablist label[for="ex-vars-hard"] { background: #fff; color: var(--purple-strong); box-shadow: 0 1px 3px rgba(35,23,80,.12); }
#ex-vars-easy:focus-visible ~ .ex-tablist label[for="ex-vars-easy"], #ex-vars-hard:focus-visible ~ .ex-tablist label[for="ex-vars-hard"] { outline: 2px solid var(--purple); outline-offset: 2px; }
.ex-tabpanel { display: none; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
#ex-vars-easy:checked ~ .ex-tabpanel--easy, #ex-vars-hard:checked ~ .ex-tabpanel--hard { display: block; }
.prose .ex-tabpanel .ex-vars { display: grid; gap: 14px; margin: 0; }
.prose .ex-tabpanel .ex-vars li { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.prose .ex-tabpanel .ex-vars li:last-child { padding-bottom: 0; border-bottom: 0; }
.ex-tabpanel .ex-vars strong { display: block; margin-bottom: 2px; color: var(--ink); }
@media print { .ex-tabpanel { display: block; } .ex-tablist { display: none; } }
/* Panels. */
.ex-panel { padding: 20px 20px 4px; border-radius: 16px; background: var(--lav-50); }
.ex-panel ul { margin-bottom: 12px; }
.ex-panel--care { background: #fff8eb; border: 1px solid #f6e3bf; padding-bottom: 8px; }
@media (max-width: 900px) { .ex-hero { grid-template-columns: 1fr; } .ex-hero-photo { max-width: 520px; } }
@media (max-width: 640px) {
  .ex-toc a { font-size: .8125rem; padding: 6px 12px; }
  .prose .ex-steps--photo > li.ex-step { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .ex-step-body { padding: 0 4px 4px; }
  .ex-mistake, .ex-tabpanel { padding: 16px; }
  .prose .ex-checks li { padding: 12px 16px 12px 46px; } .prose .ex-checks li::before { left: 16px; top: 14px; }
  .food-main .prose h2 { margin: 44px 0 16px; }
}

/* ---------------------------------------------------------------- recipes (pages/recipes.mjs, kyzo-ai.com only) */
.rcp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.rcp-hero .lead { max-width: 52ch; }
.rcp-hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--lav-100); aspect-ratio: 1 / 1; box-shadow: var(--shadow-soft); }
.rcp-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rcp-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.rcp-meta li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--purple-strong); }
.rcp-meta li > span { display: flex; flex-direction: column; color: var(--ink); font-weight: 600; font-size: .9375rem; line-height: 1.2; }
.rcp-meta small { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rcp-wait { margin: 10px 0 0; }
.rcp-diets { margin-top: 16px; }
.rcp-h2 { margin: 0 0 16px; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); }
.rcp-sub { display: inline-block; margin-left: 6px; font-family: var(--font-body, Inter, sans-serif); font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); vertical-align: middle; }
.rcp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rcp-stats .stat strong { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.rcp-stats .stat strong small { font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.rcp-stats .stat--main strong { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.rcp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -10px 0 8px; padding: 0; list-style: none; font-size: .875rem; color: var(--ink-2); }
.rcp-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.rcp-note { margin: 0 0 8px; }
.rcp-allergens { padding: 12px 16px; border-radius: 12px; background: #fff7e8; border: 1px solid #f6dfb3; color: #5b3d0a; }
.prose .rcp-ingredients { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prose .rcp-ingredients li { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 16px; margin: 0; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.rcp-qty { font-weight: 600; color: var(--ink); }
.rcp-extra { color: var(--ink-2); }
.prose .rcp-step-head { margin: 28px 0 10px; font-size: 1.05rem; color: var(--purple-strong); }
.prose .rcp-steps { padding: 0; list-style: none; }
.prose .rcp-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; margin: 0 0 14px; }
.rcp-steps p { margin: 0; }
.rcp-step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lav-100); color: var(--purple-strong); font-weight: 700; font-size: .875rem; }
.prose .rcp-log { padding-left: 1.3em; }
.rcp-cards .rcp-card { padding: 12px 12px 18px; }
.rcp-card-img { display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--lav-100); }
.rcp-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rcp-card .card-title { font-size: 1.1rem; margin-bottom: 6px; }
.rcp-card .eyebrow { margin-bottom: 6px; }
.rcp-card-facts { margin: 0; font-size: .9375rem; }
.rcp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.rcp-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.rcp-chip span { color: var(--ink-3); font-weight: 500; }
.rcp-filter:focus-visible + .rcp-filter, .rcp-hub .rcp-filter:focus-visible ~ .rcp-chips { outline: none; }
#rcp-all:checked ~ .rcp-chips [for="rcp-all"], #rcp-american:checked ~ .rcp-chips [for="rcp-american"], #rcp-italian:checked ~ .rcp-chips [for="rcp-italian"], #rcp-chinese:checked ~ .rcp-chips [for="rcp-chinese"] { background: var(--ink); border-color: var(--ink); color: #fff; }
#rcp-all:checked ~ .rcp-chips [for="rcp-all"] span, #rcp-american:checked ~ .rcp-chips [for="rcp-american"] span, #rcp-italian:checked ~ .rcp-chips [for="rcp-italian"] span, #rcp-chinese:checked ~ .rcp-chips [for="rcp-chinese"] span { color: rgba(255, 255, 255, .75); }
#rcp-all:focus-visible ~ .rcp-chips [for="rcp-all"], #rcp-american:focus-visible ~ .rcp-chips [for="rcp-american"], #rcp-italian:focus-visible ~ .rcp-chips [for="rcp-italian"], #rcp-chinese:focus-visible ~ .rcp-chips [for="rcp-chinese"] { outline: 3px solid var(--purple); outline-offset: 2px; }
#rcp-american:checked ~ .rcp-grid .rcp-card:not([data-c="american"]), #rcp-italian:checked ~ .rcp-grid .rcp-card:not([data-c="italian"]), #rcp-chinese:checked ~ .rcp-grid .rcp-card:not([data-c="chinese"]) { display: none; }
.rcp-hub .prose--narrow { margin-top: 32px; }
@media (max-width: 900px) {
  .rcp-hero { grid-template-columns: minmax(0, 1fr); }
  .rcp-hero-photo { order: -1; max-width: 520px; }
}
@media (max-width: 640px) {
  .rcp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcp-meta li { padding: 6px 10px 6px 8px; }
  .prose .rcp-ingredients li { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 12px; }
  .rcp-cards.cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rcp-card .card-title { font-size: 1rem; }
  .rcp-card-facts { font-size: .8125rem; }
}
.fh-more { margin-top: 4px; }
.fh-more > summary { cursor: pointer; padding: 12px 0; color: var(--purple-strong); font-weight: 600; }

/* =========================================================
   Blog (site-src/blog/blog.css). build.mjs appends this file
   to site.css in the fingerprinted site.<hash>.css.
   ========================================================= */

/* ---------- Hub + category hero (compact: no big gap before the cards) ---------- */
.blog-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); background: linear-gradient(180deg, var(--lav-50), #fff); }
.blog-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); max-width: 18ch; }
.blog-hero .lead { margin: 18px 0 0; max-width: 52ch; }
.blog-hero-page { display: inline-block; font-size: .4em; letter-spacing: 0; vertical-align: middle; color: var(--ink-3); font-weight: 500; }
.blog-list { padding: clamp(16px, 2.5vw, 28px) 0 0; }

/* ---------- Category chips ---------- */
.chips { margin-top: clamp(24px, 3vw, 32px); }
.chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--lav-200); background: var(--lav-50); color: var(--ink); text-decoration: none; }
.chip--on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--on:hover { background: var(--ink); color: #fff; }

/* ---------- Cards ---------- */
.post-cat { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-strong); }
.post-meta { margin: 0; font-size: .875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 28px); }
.post-card { min-width: 0; }
.post-card-link {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.post-card-link:hover { border-color: var(--lav-200); box-shadow: var(--shadow-soft); transform: translateY(-2px); text-decoration: none; }
.post-card-img { aspect-ratio: 16 / 9; background: var(--lav-100); overflow: hidden; }
.post-card-img img, .post-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card-link:hover .post-card-img img, .post-feature-link:hover .post-feature-img img { transform: scale(1.03); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.post-card-title { font-size: clamp(1.12rem, 1.02rem + .35vw, 1.3rem); line-height: 1.28; letter-spacing: -.015em; overflow-wrap: anywhere; }
.post-card-body p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.post-card-body .post-meta { margin-top: auto; padding-top: 4px; color: var(--ink-3); font-size: .85rem; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Featured post ---------- */
.post-feature { margin-bottom: clamp(28px, 4vw, 48px); }
.post-feature-link {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3.5vw, 48px);
  padding: clamp(12px, 1.4vw, 16px); border-radius: var(--radius-xl); border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff, var(--lav-50)); color: var(--ink); text-decoration: none;
  transition: box-shadow .25s var(--ease), border-color .2s;
}
.post-feature-link:hover { border-color: var(--lav-200); box-shadow: var(--shadow-soft); text-decoration: none; }
.post-feature-img { aspect-ratio: 16 / 9; border-radius: calc(var(--radius-xl) - 10px); overflow: hidden; background: var(--lav-100); }
.post-feature-body { display: flex; flex-direction: column; gap: 14px; padding: 8px clamp(4px, 2vw, 24px) 8px 0; min-width: 0; }
.post-feature-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.post-feature-body p { margin: 0; color: var(--ink-2); }
.post-feature-body .text-link { color: var(--purple-strong); }
@media (max-width: 900px) {
  .post-feature-link { grid-template-columns: minmax(0, 1fr); }
  .post-feature-body { padding: 4px 8px 12px; }
}

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(36px, 5vw, 56px); }
.pager ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager-num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
}
a.pager-num:hover { background: var(--lav-100); text-decoration: none; }
.pager-num[aria-current] { background: var(--purple); color: #fff; }
.pager-step { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--lav-100); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pager-step:hover { background: var(--lav-200); text-decoration: none; }
@media (max-width: 560px) { .pager { flex-wrap: wrap; justify-content: center; } .pager ol { order: -1; width: 100%; } }

/* ---------- Post ---------- */
.post-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); background: linear-gradient(180deg, var(--lav-50), #fff); }
.post-head .wrap { max-width: calc(1100px + var(--gutter) * 2); }
.post-head .wrap > * { max-width: 100%; }
.post-cat--chip { padding: 6px 12px; border-radius: 999px; background: var(--purple-tint); text-decoration: none; margin-bottom: 18px; }
.post-cat--chip:hover { background: var(--lav-200); text-decoration: none; }
.post-head h1 { max-width: 34ch; font-size: clamp(2rem, 1.35rem + 2.5vw, 3.25rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: pretty; overflow-wrap: break-word; }
.post-dek { margin: 18px 0 0; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.post-byline { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; line-height: 1.45; }
.post-byline > img { width: 40px; height: 40px; border-radius: 50%; background: var(--lav-100); padding: 4px; flex: 0 0 auto; }
.post-author { font-weight: 600; color: var(--ink); font-size: .95rem; }
.post-cover { margin: 0 auto clamp(32px, 5vw, 56px); max-width: 1100px; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; background: var(--lav-100); box-shadow: var(--shadow-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: center; }
.post-main { min-width: 0; max-width: 68ch; margin: 0 auto; width: 100%; }
@media (min-width: 1100px) {
  .post-layout--toc { grid-template-columns: minmax(200px, 240px) minmax(0, 68ch); gap: clamp(32px, 4vw, 56px); max-width: 1100px; margin-inline: auto; }
  .post-layout--toc .post-main { margin: 0; }
  .post-aside { position: relative; }
  .post-aside .toc { position: sticky; top: 96px; }
}
.post-prose { max-width: none; font-size: 1.0625rem; line-height: 1.72; }
.post-prose > :first-child { margin-top: 0; }
.post-prose h2 { scroll-margin-top: 12px; }
.post-prose a { overflow-wrap: anywhere; }
.post-prose sup.ref { font-size: .7em; line-height: 0; margin-left: 1px; }
.post-prose sup.ref a { text-decoration: none; font-weight: 600; padding: 0 2px; }
.post-prose .callout--key { background: #fff; border-color: var(--lav-200); box-shadow: var(--shadow-soft); margin-top: 0; }
.post-prose .callout-title { margin: 0 0 8px; font-weight: 600; color: var(--ink); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.post-prose .callout ul { margin: 0; }
.post-prose .callout--app { background: linear-gradient(160deg, #f1edff, #fff); }
.table-wrap { overflow-x: auto; margin: 8px 0 28px; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; }
.toc { padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); font-size: .9375rem; margin-bottom: 32px; }
.toc-title { margin: 0 0 8px; font-weight: 600; color: var(--ink); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.toc li { margin: 0; color: var(--ink-3); }
.toc a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; line-height: 1.45; }
.toc a:hover { color: var(--purple-strong); text-decoration: underline; }
.post-note { margin: 40px 0 0; padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-size: .875rem; line-height: 1.55; }
.sources { margin-top: 36px; font-size: .9rem; color: var(--ink-2); }
.sources h2 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: 10px; }
.sources ol { margin: 0; padding-left: 1.4em; }
.sources li { margin: 8px 0; overflow-wrap: anywhere; scroll-margin-top: 12px; }
.sources li:target { background: var(--purple-tint); border-radius: 8px; }
.post-cta { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 44px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: linear-gradient(160deg, #f1edff, #fff 70%); border: 1px solid var(--lav-200); }
.post-cta > img { width: 84px; height: 84px; }
.post-cta h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 8px; }
.post-cta p { margin: 0 0 14px; color: var(--ink-2); }
.post-cta .stores { margin: 4px 0 12px; }
.post-cta-terms { font-size: .8125rem; color: var(--ink-3); margin: 0 !important; }
@media (max-width: 560px) { .post-cta { grid-template-columns: minmax(0, 1fr); } .post-cta > img { width: 64px; height: 64px; } }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.share-label { font-size: .875rem; font-weight: 600; color: var(--ink-3); margin-inline-end: 4px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; font: inherit; transition: background-color .2s, color .2s, border-color .2s; }
.share-btn:hover { background: var(--lav-50); border-color: var(--lav-200); color: var(--purple-strong); }
.share-btn.copied { background: var(--purple); border-color: var(--purple); color: #fff; }
.related-posts { padding-top: clamp(64px, 8vw, 104px); }

[dir="rtl"] .post-feature-body { padding: 8px 0 8px clamp(4px, 2vw, 24px); }
[dir="rtl"] .sources ol { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] .post-cat, [dir="rtl"] .toc-title, [dir="rtl"] .post-prose .callout-title { letter-spacing: 0; }

/* Search supplements the crawlable category and pagination pages. */
[data-blog-search][hidden], [data-blog-search-default][hidden], [data-blog-search-results][hidden], .blog-search-pager[hidden] { display: none; }
.blog-search { margin-bottom: 28px; max-width: 640px; }
.blog-search label { display: block; margin-bottom: 8px; font-weight: 500; font-size: .9375rem; }
.blog-search-controls { display: flex; gap: 10px; }
.blog-search input { min-width: 0; flex: 1; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: .9375rem; }
.blog-search input::placeholder { color: var(--ink-3); }
.blog-search button { padding: 10px 18px; min-height: 48px; border: 0; border-radius: 12px; background: var(--lav-100); color: var(--ink-2); font: inherit; font-size: .9375rem; cursor: pointer; }
.blog-search-status { margin: 0 0 20px; color: var(--ink-3); font-size: .9375rem; }
.blog-search-pager button { border: 0; font: inherit; cursor: pointer; }
.blog-search-pager button:disabled { opacity: .45; cursor: default; }

.toc a { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 4px; }
.toc-number { color: var(--ink-3); font-variant-numeric: tabular-nums; }
