/* Minimo AI — site stylesheet.
   Layer 1: "Organic" design-system tokens and components (from UIDesign/_ds).
   Layer 2: dark theme (mirrored ramps, same as UIDesign/site.js).
   Layer 3: site layout classes. Self-hosted fonts: no request leaves for a third party. */

@font-face { font-family: "Caprasimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/caprasimo-400.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/figtree-400.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/figtree-600.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/figtree-700.ttf") format("truetype"); }

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed; --color-neutral-200: #eee7db; --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5; --color-neutral-500: #a19786; --color-neutral-600: #82796a;
  --color-neutral-700: #645c50; --color-neutral-800: #474238; --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb; --color-accent-200: #ffe1d0; --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b; --color-accent-500: #d67f48; --color-accent-600: #b2622d;
  --color-accent-700: #8c491a; --color-accent-800: #643312; --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1; --color-accent-2-200: #e1eecc; --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92; --color-accent-2-500: #8fa073; --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f; --color-accent-2-800: #3d472b; --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px; --space-2: 8.8px; --space-3: 13.2px; --space-4: 17.6px; --space-6: 26.4px; --space-8: 35.2px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  color-scheme: light;
}

/* ── Dark theme ─────────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --color-bg: #1b1917; --color-surface: #27231f; --color-text: #f3e8d6;
  --color-accent: #d67f48; --color-accent-2: #aebf92;
  --color-divider: color-mix(in srgb, #f3e8d6 16%, transparent);
  --shadow-sm: 0 0 0 1px color-mix(in srgb, #f3e8d6 8%, transparent);
  --shadow-md: 0 0 0 1px color-mix(in srgb, #f3e8d6 8%, transparent), 0 6px 18px rgba(0,0,0,.35);
  --shadow-lg: 0 0 0 1px color-mix(in srgb, #f3e8d6 10%, transparent), 0 18px 40px rgba(0,0,0,.5);

  --color-neutral-100: #23201c; --color-neutral-200: #474238; --color-neutral-300: #645c50;
  --color-neutral-400: #82796a; --color-neutral-500: #a19786; --color-neutral-600: #c0b6a5;
  --color-neutral-700: #dcd3c4; --color-neutral-800: #eee7db; --color-neutral-900: #f9f4ed;

  --color-accent-100: #2c211a; --color-accent-200: #643312; --color-accent-300: #8c491a;
  --color-accent-400: #b2622d; --color-accent-500: #d67f48; --color-accent-600: #f6a06b;
  --color-accent-700: #ffc6a5; --color-accent-800: #ffe1d0; --color-accent-900: #fff2eb;

  --color-accent-2-100: #20241a; --color-accent-2-200: #3d472b; --color-accent-2-300: #56633f;
  --color-accent-2-400: #728157; --color-accent-2-500: #8fa073; --color-accent-2-600: #aebf92;
  --color-accent-2-700: #ccdbb2; --color-accent-2-800: #e1eecc; --color-accent-2-900: #f0fae1;

  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
  transition: background-color .6s ease, color .6s ease;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--color-accent); color: var(--color-bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Design-system components ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 13px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: calc(var(--space-2) * 0.85) var(--space-3); border-radius: 999px;
}
.btn:hover { color: var(--color-text); }
.btn svg { display: block; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-icon { width: 34px; height: 34px; padding: 0; }
.btn-lg { font-size: 16px; padding: 14px 26px; min-height: 50px; }
.btn-md { font-size: 14px; padding: 10px 18px; min-height: 44px; }

.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-bg); color: var(--color-neutral-800); }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-line { background: transparent; border: 1px solid var(--color-divider); color: var(--color-neutral-700); }

.field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.input {
  width: 100%; min-height: 48px; padding: 6px 14px; font: inherit; font-size: 16px;
  color: var(--color-text); caret-color: var(--color-accent); background: var(--color-bg);
  border: 1px solid var(--color-divider); border-radius: 999px;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 160px; border-radius: 24px; padding: 14px 18px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; }

.seg { display: inline-flex; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--color-divider); border-radius: 999px; background: var(--color-surface); }
.seg-opt { display: inline-flex; align-items: center; white-space: nowrap; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 60%, transparent); padding: 14px 12px; border-bottom: 1px solid var(--color-divider); }
.table td { padding: 16px 12px; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
.sec { padding-top: clamp(80px, 11vw, 150px); }
.sec-lg { padding-top: clamp(96px, 13vw, 170px); }
.stack { display: flex; flex-direction: column; }
.g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g28 { gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.grid-split { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 380px)), 1fr)); align-items: center; }
.grid-split.top { align-items: start; }
.min0 { min-width: 0; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-700); }
.eyebrow.sage { color: var(--color-accent-2-700); }
.display { margin: 0; font-size: clamp(52px, 8.4vw, 116px); line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
.display-md { margin: 0; font-size: clamp(48px, 8vw, 110px); line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
.h-xl { margin: 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.05; text-wrap: balance; }
.h-lg { margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; text-wrap: balance; }
.h-md { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.h-sm { margin: 0; font-size: clamp(26px, 3vw, 34px); }
.lead { margin: 0; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--color-neutral-700); text-wrap: pretty; }
.body-lg { margin: 0; font-size: 18px; line-height: 1.6; color: var(--color-neutral-700); text-wrap: pretty; }
.muted { color: var(--color-neutral-700); }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

.card { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 3.5vw, 44px); border-radius: 40px; background: var(--color-surface); color: var(--color-text); text-decoration: none; }
a.card:hover { color: var(--color-text); }
.panel { border-radius: 48px; padding: clamp(32px, 5vw, 64px); }
.panel-sage { background: var(--color-accent-2-100); }
.panel-terra { background: var(--color-accent-100); }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list > * { border-top: 1px solid var(--color-divider); }
.dot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; }
.dot-list li { display: flex; gap: 12px; }
.dot-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--color-accent-2)); margin-top: 8px; flex: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px, 2.2vw, 28px); padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--font-heading); font-size: 20px; color: var(--color-text); text-decoration: none; }
.brand:hover { color: var(--color-text); }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; flex: none; background-image: url("../assets/img/logo-square.png"); background-size: 62px 62px; background-position: -14.4px -0.4px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.nav-links a, .mobile-menu a { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--color-text); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--color-accent); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding-block: 8px 28px; }
.mobile-menu a { font-family: var(--font-heading); font-size: 26px; line-height: 1.2; padding: 10px 0; white-space: normal; }
.mobile-menu.open { display: flex; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (max-width: 1239px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1240px) { .mobile-menu.open { display: none; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: clamp(64px, 10vw, 140px); background: var(--color-surface); border-radius: 40px 40px 0 0; }
.footer-inner { padding-block: clamp(48px, 7vw, 88px) 32px; display: flex; flex-direction: column; gap: 56px; }
.footer-cols { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h6 { margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; color: var(--color-neutral-700); }
.footer-col a { color: var(--color-text); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--color-divider); font-size: 13px; line-height: 1.6; color: var(--color-neutral-700); }
.footer-legal address { font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ── Devices and store badge ────────────────────────────────────────────── */
.phone { position: relative; aspect-ratio: 1190 / 2576; border-radius: 28px; border: 5px solid #141312; overflow: hidden; background: #0d0c14; box-shadow: var(--shadow-lg); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.crop { border-radius: 26px 26px 0 0; border-bottom: 0; }
.phone.crop img { object-position: top; }
.shot-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.4; color: #f5ead8; background: linear-gradient(160deg, #2a2620, #141312); }
.store-badge { display: inline-flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 6px 18px; border-radius: 12px; background: #141312; color: #f5ead8; text-decoration: none; line-height: 1.1; }
.store-badge:hover { color: #fff; background: #000; }
.store-badge span:first-child { font-size: 10px; }
.store-badge span:last-child { font-size: 17px; font-weight: 700; }
.store-badge.lg { min-height: 54px; padding: 8px 22px; border-radius: 14px; }
.store-badge.lg span:first-child { font-size: 11px; }
.store-badge.lg span:last-child { font-size: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }

/* ── Home ───────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); display: grid; gap: clamp(48px, 6vw, 88px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: center; }
.hero .display { font-size: clamp(48px, 6.6vw, 88px); }
.hero-visual { position: relative; width: 100%; max-width: 520px; justify-self: center; aspect-ratio: 1; }
.hero-visual .disc, .product-visual .disc { position: absolute; inset: 0; border-radius: 50%; background: var(--color-accent-2-100); }
.hero-visual .ring { position: absolute; inset: -5%; border-radius: 50%; border: 1.5px dashed var(--color-accent-2); animation: mm-breathe 10s ease-in-out infinite; }
.hero-visual .phone { position: absolute; left: 50%; top: 50%; width: 42%; transform: translate(-50%, -50%) rotate(-3deg); border-radius: 30px; }
.float-pill { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--color-bg); box-shadow: var(--shadow-md); font-size: 14px; font-weight: 600; max-width: 80%; }
.float-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent-2); flex: none; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border-radius: 36px; background: var(--color-surface); overflow: hidden; }
.principle { display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; }
.principle .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg); color: var(--color-accent-700); }
.principle h3 { margin: 0; font-size: 21px; }
.principle p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); text-wrap: pretty; }

.brain svg { width: 100%; height: auto; display: block; overflow: visible; }
.brain .node { cursor: pointer; }
.brain .node .fill { transition: opacity .8s ease; }
.brain .spoke { transition: opacity .8s ease; }
.brain-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.brain-tabs .btn { font-size: 15px; padding: 10px 20px; min-height: 44px; }
.brain-panel { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3vw, 40px); border-radius: 36px; background: var(--color-surface); }
.brain-panel h3 { margin: 0; font-size: clamp(28px, 3vw, 36px); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--color-bg); color: var(--color-neutral-800); }

.flag { display: flex; flex-direction: column; border-radius: 36px; background: var(--color-surface); overflow: hidden; }
.flag-top { position: relative; display: grid; place-items: center; padding: 40px 24px 0; min-height: 360px; overflow: hidden; }
.flag-top .blob { position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; top: 22%; }
.flag-top .phone { width: 190px; margin-bottom: -120px; }
.flag-body { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 32px; flex: 1; background: var(--color-surface); }
.flag-body h3 { margin: 0; font-size: 26px; }
.flag-body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); flex: 1; text-wrap: pretty; }
.flag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 8px; }
.flag-actions a:not(.store-badge) { font-weight: 700; font-size: 15px; text-decoration: none; }

.path { display: flex; flex-direction: column; gap: 20px; padding: clamp(32px, 4.5vw, 56px); border-radius: 44px; }
.path h2 { margin: 0; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; text-wrap: balance; }
.path .dot-list { flex: 1; }
.path .btn { align-self: flex-start; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checks li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--color-divider); }
.checks .n { font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-700); }
.checks h3 { margin: 0 0 6px; font-size: 20px; }
.checks p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); text-wrap: pretty; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 32px; }
.mini { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--color-divider); }
.mini b { font-size: 16px; }
.mini span { font-size: 14px; line-height: 1.5; color: var(--color-neutral-700); }

.post { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 36px; background: var(--color-surface); min-height: 260px; }
.post .meta { font-size: 13px; font-weight: 600; color: var(--color-neutral-700); }
.post h3 { margin: 0; font-size: 24px; line-height: 1.2; text-wrap: balance; flex: 1; }
.post p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); text-wrap: pretty; }

/* ── Inner pages ────────────────────────────────────────────────────────── */
.page-hero { padding-block: clamp(48px, 8vw, 120px) clamp(48px, 7vw, 100px); display: flex; flex-direction: column; gap: 24px; }
.page-hero .display-md { max-width: 15ch; }

.principle-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px clamp(24px, 5vw, 80px); padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--color-divider); }
.principle-row .lhs { display: flex; gap: 20px; align-items: baseline; }
.principle-row .n { font-family: var(--font-heading); font-size: 20px; color: var(--color-accent-700); flex: none; width: 32px; }
.principle-row h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; text-wrap: balance; }
.principle-row p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--color-neutral-700); text-wrap: pretty; }

.boundary { position: relative; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); padding: clamp(16px, 2.5vw, 28px); border-radius: 48px; border: 2px dashed var(--color-accent-2); }
.boundary-label { position: absolute; top: -13px; left: 40px; padding: 2px 12px; background: var(--color-bg); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-2-700); }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 32px; background: var(--color-surface); }
.step .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent-2-300); font-family: var(--font-heading); font-size: 18px; }
.step h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); text-wrap: pretty; }
.outside { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; padding-left: clamp(8px, 2vw, 28px); font-size: 15px; color: var(--color-neutral-700); }
.outside .drift { display: flex; gap: 6px; }
.outside .drift i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-neutral-500); display: block; animation: mm-drift 6s ease-in-out infinite; }
.outside .drift i:nth-child(2) { animation-delay: .8s; } .outside .drift i:nth-child(3) { animation-delay: 1.6s; }
.table-wrap { overflow-x: auto; border-radius: 36px; background: var(--color-surface); padding: clamp(12px, 2vw, 24px) clamp(16px, 2.5vw, 32px); }
.table-wrap .table { min-width: 560px; }
.table-wrap tbody th { text-align: left; font-weight: 700; padding: 18px 12px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--color-text); border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.table-wrap .us { font-weight: 600; }
.core-card { display: flex; flex-direction: column; gap: 14px; padding: 36px; border-radius: 40px; background: var(--color-surface); }
.core-card .orb { width: 64px; height: 64px; border-radius: 50%; background: var(--color-accent-100); display: grid; place-items: center; }
.core-card .orb i { width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent); }
.core-card h3 { margin: 0; font-size: 26px; }
.core-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--color-neutral-700); text-wrap: pretty; }
.core-card small { font-size: 13px; font-weight: 600; color: var(--color-neutral-700); }

.fam-hero .display { font-size: clamp(52px, 7vw, 100px); }
.fam-hero { padding-block: clamp(48px, 8vw, 110px); display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: end; }
.fam-index { padding: clamp(28px, 3vw, 40px); border-radius: 40px; background: var(--color-surface); }
.fam-index h2 { margin: 0 0 12px; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-neutral-700); }
.fam-index a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-size: 17px; font-weight: 600; color: var(--color-text); text-decoration: none; }
.fam-index a:hover { color: var(--color-accent); }
.fam-index a span:last-child { font-size: 13px; color: var(--color-neutral-700); white-space: nowrap; }
.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); border-radius: 44px; background: var(--color-surface); overflow: hidden; scroll-margin-top: 90px; }
.product-copy { display: flex; flex-direction: column; gap: 16px; padding: clamp(32px, 4.5vw, 56px); min-width: 0; }
.product-copy h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.product-copy .claim { margin: 0; display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); flex: 1; }
.product-copy .claim::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-2); margin-top: 8px; flex: none; }
.product-visual { position: relative; min-height: 340px; display: grid; place-items: end center; padding: 40px 32px 0; overflow: hidden; background: var(--color-accent-2-100); }
.product-visual .blob { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: var(--color-bg); opacity: .55; top: 12%; }
.product-visual .phone { width: min(220px, 60%); aspect-ratio: 1190 / 1700; border-radius: 28px 28px 0 0; border-bottom: 0; }
.browser { position: relative; width: 100%; max-width: 480px; aspect-ratio: 16 / 10; border-radius: 20px 20px 0 0; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--color-bg); display: flex; flex-direction: column; }
.browser .bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--color-neutral-200); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-neutral-400); }
.browser .screen { flex: 1; position: relative; }
.browser .shot-ph { background: linear-gradient(160deg, var(--color-neutral-200), var(--color-neutral-300)); color: var(--color-neutral-800); }
.shared { display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.shared > div { display: flex; flex-direction: column; gap: 10px; padding: 28px 0; border-top: 1px solid var(--color-divider); }
.shared h3 { margin: 0; font-size: 22px; }
.shared p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--color-neutral-700); text-wrap: pretty; }
.other-family h3 { margin: 0; font-size: clamp(28px, 3vw, 36px); }
.other-family p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--color-neutral-700); text-wrap: pretty; }
.other-family .link-arrow { color: var(--color-accent-700); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--color-neutral-700); }
.breadcrumb a { text-decoration: none; }
.product-hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 8vw, 110px); display: grid; gap: clamp(48px, 6vw, 88px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: center; }
.product-hero .display { font-size: clamp(52px, 8vw, 108px); }
.product-hero .tagline { margin: 0; font-family: var(--font-heading); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; }
.duo { position: relative; width: 100%; max-width: 540px; justify-self: center; aspect-ratio: 1; }
.duo .phone { position: absolute; }
.duo .p1 { left: 16%; top: 12%; width: 36%; box-shadow: var(--shadow-md); transform: rotate(-5deg); }
.duo .p2 { right: 14%; top: 8%; width: 38%; border-radius: 30px; transform: rotate(3deg); }
.feature { display: flex; flex-direction: column; border-radius: 36px; background: var(--color-surface); overflow: hidden; }
.feature .stage { display: grid; place-items: end center; padding: 32px 28px 0; height: 340px; overflow: hidden; }
.feature .phone { width: 180px; margin-bottom: -60px; box-shadow: var(--shadow-md); }
.feature figcaption { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 30px; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); background: var(--color-surface); }
.feature figcaption b { font-family: var(--font-heading); font-weight: 400; font-size: 22px; color: var(--color-text); }
.proof-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.proof-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.proof-list .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg); font-family: var(--font-heading); font-size: 18px; }
.proof-list h3 { margin: 0 0 4px; font-size: 20px; }
.proof-list p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-neutral-800); text-wrap: pretty; }
.specs { margin: 0; display: flex; flex-direction: column; }
.specs > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--color-divider); font-size: 15px; line-height: 1.5; }
.specs dt { font-weight: 700; } .specs dd { margin: 0; color: var(--color-neutral-700); }
.specs.sage > div { border-top-color: color-mix(in srgb, var(--color-accent-2-700) 30%, transparent); padding: 14px 0; }
.specs.sage dd { color: var(--color-text); }
details.faq { border-radius: 28px; background: var(--color-surface); padding: 20px 26px; }
details.faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 16px; line-height: 1.4; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--color-accent-700); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); text-wrap: pretty; }
.related a { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-top: 1px solid var(--color-divider); color: var(--color-text); text-decoration: none; }
.related a:hover b { color: var(--color-accent); }
.related b { font-family: var(--font-heading); font-weight: 400; font-size: 22px; }
.related span { font-size: 15px; line-height: 1.5; color: var(--color-neutral-700); }

.data-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 32px; padding: clamp(24px, 3vw, 36px); border-radius: 36px; background: var(--color-surface); }
.data-row h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.data-row small { display: block; font-size: 14px; color: var(--color-neutral-700); }
.data-row .lbl { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-700); }
.data-row .val { font-size: 16px; line-height: 1.5; }
.rights { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.rights li { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--color-divider); }
.rights b { font-size: 16px; } .rights span { font-size: 14px; line-height: 1.55; color: var(--color-neutral-700); }
.doc-link b { font-family: var(--font-heading); font-weight: 400; font-size: 22px; }
.doc-link span { font-size: 14px; color: var(--color-neutral-700); }

.contact-hero { padding-block: clamp(48px, 8vw, 110px) 0; display: grid; gap: clamp(48px, 6vw, 96px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: start; }
.contact-hero .display { font-size: clamp(48px, 7.6vw, 104px); }
.direct { margin: 16px 0 0; display: flex; flex-direction: column; }
.direct > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--color-divider); font-size: 15px; line-height: 1.5; }
.direct dt { font-weight: 700; } .direct dd { margin: 0; } .direct a { font-weight: 600; }
.form-card { padding: clamp(28px, 4vw, 48px); border-radius: 44px; background: var(--color-surface); }
.form-card form { display: flex; flex-direction: column; gap: 22px; }
.form-card fieldset { margin: 0; padding: 0; border: 0; }
.form-card legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--color-neutral-700); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; width: 0; height: 0; }
.topics label:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.topics label:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.two { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--color-neutral-700); }
.sent { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
.sent .tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent-2-300); }
.sent h2 { margin: 0; font-size: 32px; }
[hidden] { display: none !important; }

/* ── Motion ─────────────────────────────────────────────────────────────── */
@keyframes mm-breathe { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.035); opacity: 1; } }
@keyframes mm-drift { 0%, 100% { transform: translateX(0); opacity: .35; } 50% { transform: translateX(8px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
[id] { scroll-margin-top: 90px; }

/* ── Apps, Business, Languages, Compliance, Trust ───────────────────────── */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.cat-head p { margin: 0; max-width: 34em; color: var(--color-neutral-700); font-size: 16px; line-height: 1.6; }
.app-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.app-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 32px; background: var(--color-surface); scroll-margin-top: 90px; }
.app-card h3 { margin: 0; font-size: 24px; line-height: 1.15; }
.app-card .sum { margin: 0; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.app-card .data { margin: 0; display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--color-neutral-700); flex: 1; }
.app-card .data::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--color-accent-2)); margin-top: 7px; flex: none; }
.app-card .data.net { --dot: var(--color-accent); }
.app-card .data.srv { --dot: var(--color-accent-700); }
.app-card .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 6px; }
.app-card .acts a:not(.store-badge):not(.btn) { font-weight: 700; font-size: 15px; text-decoration: none; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; color: var(--color-neutral-700); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: block; background: var(--color-accent-2); }
.legend .net i { background: var(--color-accent); } .legend .srv i { background: var(--color-accent-700); }

.svc { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); border-radius: 36px; background: var(--color-surface); }
.svc h3 { margin: 0; font-size: 24px; line-height: 1.15; }
.svc p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); text-wrap: pretty; }
.svc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; flex: 1; }
.svc li { display: flex; gap: 10px; }
.svc li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent-2); margin-top: 8px; flex: none; }
.pillar-n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-bg); font-family: var(--font-heading); font-size: 22px; }
.platform-row { display: flex; flex-wrap: wrap; gap: 8px; }

.callout { padding: 20px 26px; border-radius: 28px; background: var(--color-accent-100); color: var(--color-accent-900); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.callout b { font-weight: 700; }
.callout.sage { background: var(--color-accent-2-100); color: var(--color-accent-2-900); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.st-ok { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.st-part { background: var(--color-accent-100); color: var(--color-accent-800); }
.st-plan { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.st-no { background: transparent; border: 1px solid var(--color-divider); color: var(--color-neutral-700); }
.table-wrap .table.wide { min-width: 760px; }
.table td, .table th { vertical-align: top; }
.table td small { display: block; margin-top: 4px; color: var(--color-neutral-700); font-size: 13px; line-height: 1.45; }
.lang-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-cloud li { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--color-bg); }
.lang-cloud li.gap { background: transparent; border: 1.5px dashed var(--color-accent); color: var(--color-accent-700); }
.quote { margin: 0; padding: 24px 28px; border-radius: 28px; background: var(--color-bg); font-size: 18px; line-height: 1.6; }
.quote code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--color-accent-100); color: var(--color-accent-800); }
.dl-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 32px; background: var(--color-surface); }
.dl-card h3 { margin: 0; font-size: 22px; }
.dl-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); flex: 1; }

.proof { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.meter { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 32px; background: var(--color-bg); }
.meter .num { font-family: var(--font-heading); font-size: clamp(56px, 7vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.meter .num.ok { color: var(--color-accent-2-700); }
.meter .lbl { font-size: 14px; font-weight: 600; color: var(--color-neutral-700); line-height: 1.4; }
.proof-log { margin: 0; padding: 0; list-style: none; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.7; color: var(--color-neutral-700); max-height: 180px; overflow: auto; }
.cant { list-style: none; margin: 0; padding: 0; counter-reset: c; display: flex; flex-direction: column; }
.cant li { counter-increment: c; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid color-mix(in srgb, var(--color-accent-2-700) 30%, transparent); font-size: 16px; line-height: 1.6; }
.cant li::before { content: counter(c); font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-2-700); }
.cant b { display: block; font-size: 17px; margin-bottom: 2px; }

.nav-links a.nav-cta { padding: 9px 20px; border-radius: 999px; background: var(--color-accent); color: var(--color-bg); font-family: var(--font-heading); font-weight: 400; font-size: 14px; }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta[aria-current="page"] { background: var(--color-accent-600); color: var(--color-bg); }

/* ── Awards ─────────────────────────────────────────────────────────────── */
.stat-row { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 8px; }
.stat-row div { display: flex; flex-direction: column; gap: 2px; }
.stat-row b { font-family: var(--font-heading); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; color: var(--color-accent-700); }
.stat-row span { font-size: 14px; font-weight: 600; color: var(--color-neutral-700); }
.award-year { display: grid; gap: 16px clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, 220px) minmax(0, 1fr); padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--color-divider); }
.award-year > h2 { margin: 0; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.03em; color: var(--color-accent-700); }
.award-list { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.award { display: grid; gap: 20px 28px; grid-template-columns: minmax(0, 1fr); padding: 28px; border-radius: 32px; background: var(--color-surface); }
.award.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 200px); align-items: start; }
.award h3 { overflow-wrap: anywhere; margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; text-wrap: balance; }
.award p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); text-wrap: pretty; }
.award .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.award .org { font-size: 14px; font-weight: 600; color: var(--color-text); margin: 0; }
.award .cert { border-radius: 16px; overflow: hidden; background: var(--color-bg); box-shadow: var(--shadow-sm); }
.award .cert img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .award-year { grid-template-columns: minmax(0, 1fr); }
  .award.has-img { grid-template-columns: minmax(0, 1fr); }
}

/* ── App icons ──────────────────────────────────────────────────────────── */
.app-icon { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex: none; background: var(--color-bg); box-shadow: var(--shadow-sm); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-icon.mono { display: grid; place-items: center; background: var(--color-accent-2-100); color: var(--color-accent-2-800); font-family: var(--font-heading); font-size: 22px; box-shadow: none; }

a.post { color: var(--color-text); text-decoration: none; }
a.post:hover h3 { color: var(--color-accent-700); }
.ext { margin-left: 4px; vertical-align: -1px; opacity: .7; }
.nav-links a { display: inline-flex; align-items: center; }
.app-icon img { object-fit: contain; }
.app-card .data.unk { --dot: var(--color-neutral-500); }
.legend .unk i { background: var(--color-neutral-500); }

/* ── WhatsApp shortcut ──────────────────────────────────────────────────── */
.wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .2s ease, box-shadow .2s ease; }
.wa-fab:hover { color: #fff; transform: scale(1.06); box-shadow: 0 8px 22px rgba(0,0,0,.34); }
.wa-fab:focus-visible { outline: 3px solid var(--color-text); outline-offset: 3px; }
@media print { .wa-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-fab { transition: none; } }

/* ── Long-form legal text ───────────────────────────────────────────────── */
.prose { font-size: 16px; line-height: 1.75; color: var(--color-text); }
.prose h2 { margin: 2.2em 0 .5em; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 20px; line-height: 1.25; }
.prose p { margin: 0 0 1em; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; display: flex; flex-direction: column; gap: .35em; }
.prose a { color: var(--color-accent-700); }

/* ── Footer link-style button ───────────────────────────────────────────── */
button.linklike { all: unset; cursor: pointer; font-size: 14px; color: var(--color-text); text-decoration: none; }
button.linklike:hover { color: var(--color-accent); }
button.linklike:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ── Language switcher ──────────────────────────────────────────────────── */
details.lang { position: relative; }
details.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--color-divider); font-size: 13px; font-weight: 700; color: var(--color-text); }
details.lang summary::-webkit-details-marker { display: none; }
details.lang summary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
details.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; margin: 0; padding: 8px; list-style: none; min-width: 170px; border-radius: 20px; background: var(--color-surface); box-shadow: var(--shadow-lg); border: 1px solid var(--color-divider); }
details.lang li a { display: block; padding: 9px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--color-text); text-decoration: none; white-space: nowrap; }
details.lang li a:hover { background: color-mix(in srgb, var(--color-text) 8%, transparent); }
details.lang li a[aria-current="true"] { background: var(--color-accent); color: var(--color-bg); }
.mobile-lang { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-lang a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--color-divider); font-family: var(--font-body) !important; font-size: 14px !important; font-weight: 600; line-height: 1.2 !important; color: var(--color-text); text-decoration: none; }
.mobile-lang a[aria-current="true"] { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }

/* ── Chinese typography: Caprasimo / Figtree have no CJK glyphs ─────────── */
:root:lang(zh-CN) { --font-heading: "Caprasimo", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; --font-body: "Figtree", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:root:lang(zh-TW) { --font-heading: "Caprasimo", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; --font-body: "Figtree", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
:root:lang(zh-CN) h1, :root:lang(zh-CN) h2, :root:lang(zh-CN) h3, :root:lang(zh-TW) h1, :root:lang(zh-TW) h2, :root:lang(zh-TW) h3 { font-weight: 800; letter-spacing: 0; line-height: 1.25; }
:root:lang(zh-CN) .display, :root:lang(zh-CN) .display-md, :root:lang(zh-TW) .display, :root:lang(zh-TW) .display-md { line-height: 1.15; }
:root:lang(zh-CN) body, :root:lang(zh-TW) body { line-height: 1.7; }
:root:lang(zh-CN) .eyebrow, :root:lang(zh-TW) .eyebrow, :root:lang(zh-CN) .tag, :root:lang(zh-TW) .tag { letter-spacing: 0.04em; text-transform: none; }

/* ── Localisation fixes (long Malay words, CJK headings, header width) ──── */
h1, h2, h3 { overflow-wrap: anywhere; }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; } }
:root:lang(zh-CN) h1, :root:lang(zh-CN) h2, :root:lang(zh-CN) h3, :root:lang(zh-TW) h1, :root:lang(zh-TW) h2, :root:lang(zh-TW) h3 { font-synthesis: none; }
:root:lang(zh-CN) .award-year > h2, :root:lang(zh-TW) .award-year > h2 { letter-spacing: -0.03em; }
:root:lang(ms) .site-nav { gap: 12px; }
:root:lang(ms) .nav-links { gap: clamp(10px, 1.1vw, 16px); }
:root:lang(ms) .nav-links a { font-size: 13px; }
:root:lang(ms) .nav-links a.nav-cta { padding: 8px 16px; font-size: 13px; }
