/* aminasa.mn — base: tokens, layout, header, hero, shared components, footer */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0a0a0b;
  --ink-2: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #8e8e93;
  --line: #e8e8eb;
  --canvas: #f5f5f7;
  --blue: #1e6bff;
  --blue-deep: #0b55e0;
  --blue-tint: #edf3ff;
  --container: 960px;
  --wide: 1160px;
  --gutter: 16px;
  --r-card: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter Tight", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: .004em;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(10, 10, 11, .07); }
.site-header__inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(10, 10, 11, .06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.pill:active { transform: scale(.97); }
.pill--dark { background: var(--ink); color: #fff; }
.pill--dark:hover { background: #2b2b30; }
.pill--light { background: #f3f3f5; color: var(--ink); box-shadow: inset 0 0 0 1px #e7e7eb; }
.pill--light:hover { background: #ebebef; }
.pill--lg { height: 44px; padding: 0 22px; font-size: 14.5px; }
@media (max-width: 479px) { .pill--hide-sm { display: none; } }

/* text link in the header nav (Blog) */
.nav-link { display: inline-grid; place-items: center; height: 32px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: -.005em; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.nav-link:hover { background: #f3f3f5; color: var(--ink); }
.nav-link.is-active { background: #f3f3f5; color: var(--ink); box-shadow: inset 0 0 0 1px #e7e7eb; }
@media (max-width: 389px) { .nav-link { padding: 0 8px; } .nav-actions { gap: 6px; } }

/* language menu — header: <details> dropdown (no JS needed); footer: plain list of all languages */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 9px 0 8px; border-radius: 999px; background: #f3f3f5; box-shadow: inset 0 0 0 1px #e7e7eb; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; transition: background-color .2s; }
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover, .lang[open] .lang__btn { background: #ebebef; }
.lang__btn .i { width: 15px; height: 15px; }
.lang__btn::after { content: ""; width: 5px; height: 5px; margin: -3px 2px 0 1px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; opacity: .55; transform: rotate(45deg); }
.lang[open] .lang__btn::after { margin-top: 3px; transform: rotate(-135deg); }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: grid; gap: 1px; width: max-content; min-width: 188px; max-height: min(72vh, 540px); max-height: min(72svh, 540px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 10, 11, .06), 0 18px 48px rgba(10, 10, 11, .16); }
.lang__opt { display: flex; align-items: center; min-height: 36px; padding: 5px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; letter-spacing: 0; color: var(--ink-2); transition: background-color .2s; }
.lang__opt:hover { background: var(--canvas); }
.lang__opt.is-active { background: var(--blue-tint); color: var(--blue-deep); font-weight: 600; }
@media (max-width: 479px) { .lang__list { right: -64px; } }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: clamp(44px, 7vw, 78px); }
.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 6px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(10, 10, 11, .04);
}
.badge img { width: 20px; height: 20px; }
.hero__title {
  margin: 22px auto 0;
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 470; line-height: 1.04; letter-spacing: -.028em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title-muted { color: var(--muted-2); }
.hero__sub { margin: 22px auto 0; max-width: 430px; font-size: 15.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* App Store "input" pill with a peeking mascot (hero + footer) */
.cta { position: relative; display: inline-block; margin-top: 46px; }
.cta__mascot { position: absolute; z-index: 0; left: 50%; bottom: calc(100% - 28px); width: 72px; transform: translate(-50%, 0); transition: transform .45s var(--ease); pointer-events: none; }
.cta__mascot img { width: 72px; height: 72px; }
.cta:hover .cta__mascot, .cta:focus-within .cta__mascot { transform: translate(-50%, -9px) rotate(-4deg); }
.store {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  width: min(340px, calc(100vw - 2 * var(--gutter)));
  height: 58px; padding: 0 9px 0 11px;
  border-radius: 999px; background: #fff; border: 1px solid #e6e6ea; text-align: left;
  box-shadow: 0 1px 2px rgba(10, 10, 11, .04), 0 12px 28px -14px rgba(10, 10, 11, .25);
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.store:hover { border-color: #d9d9de; box-shadow: 0 1px 2px rgba(10, 10, 11, .05), 0 18px 36px -16px rgba(10, 10, 11, .3); }
.store__icon { width: 36px; height: 36px; border-radius: 10px; }
.store__text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.store__text strong { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.store__text small { font-size: 12px; color: var(--muted); }
.store__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; transition: background-color .25s, transform .3s var(--ease); }
.store:hover .store__go { background: var(--blue); transform: translateX(2px); }
.store--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: none; }
.store--dark:hover { border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.store--dark .store__text small { color: rgba(255, 255, 255, .6); }
.store--dark .store__go { background: #fff; color: var(--ink); }
/* Apple's badge: unmodified artwork, ≥40px tall, clear space ≥ ¼ of its height */
.appstore-badge { display: block; width: fit-content; margin: 16px auto 0; padding: 4px; border-radius: 12px; }
.appstore-badge img { display: block; height: 48px; width: auto; }
.appstore-badge:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.store--dark:hover .store__go { background: var(--blue); color: #fff; }

/* keycaps */
.keys { width: min(100% - 2 * var(--gutter), 880px); margin: clamp(72px, 11vw, 140px) auto 0; perspective: 1400px; }
.keys__tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); transform-style: preserve-3d; }
.keys__img { width: 100%; animation: keys-float 7s ease-in-out infinite; }
@keyframes keys-float { 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { margin-top: clamp(104px, 13vw, 168px); }
.section-head { width: min(100% - 2 * var(--gutter), 660px); margin: 0 auto clamp(30px, 4vw, 46px); text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 470; line-height: 1.1; letter-spacing: -.028em; text-wrap: balance; }
.section-head p { max-width: 470px; margin: 14px auto 0; font-size: 15px; color: var(--muted); text-wrap: pretty; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 26px; width: min(100% - 2 * var(--gutter), 940px); margin: clamp(30px, 4vw, 40px) auto 0; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.feature__icon .i { width: 15px; height: 15px; }
.feature h3 { margin-top: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.feature p { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.features--cards .feature { flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: var(--canvas); }
.features--cards .feature__icon { width: 36px; height: 36px; border-radius: 11px; border: 0; color: var(--blue); box-shadow: 0 1px 2px rgba(10, 10, 11, .06); }
.features--cards .feature__icon .i { width: 18px; height: 18px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .features:not(.features--cards) { grid-template-columns: 1fr; gap: 18px; } .features--cards { gap: 10px; } .features--cards .feature { padding: 16px; } }

/* ---------- article cards (blog index, related posts, home "latest") ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; }
@media (max-width: 979px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cards { grid-template-columns: 1fr; gap: 34px; } }
.card[hidden] { display: none; }
.card__link { display: flex; flex-direction: column; height: 100%; border-radius: 22px; }
.card__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(10, 10, 11, .04); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.035); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 2px 0; }
.card__cat { font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--blue-deep); }
.card__title { margin-top: 6px; font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(10, 10, 11, .35); }
.card__excerpt { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; flex-wrap: wrap; gap: 4px 7px; margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.latest .cards { margin-top: 0; }
.latest__all { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 44px); }
.latest__all .i { width: 15px; height: 15px; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(104px, 13vw, 168px); margin-bottom: var(--gutter); }
.footer__card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(64px, 9vw, 104px) clamp(20px, 4vw, 44px) 26px;
  border-radius: var(--r-card); color: #fff;
  background: #0b0b0c url("../img/bg/silk-footer-sm.jpg") center / cover no-repeat;
  background-image: image-set(url("../img/bg/silk-footer-sm.avif") type("image/avif"), url("../img/bg/silk-footer-sm.webp") type("image/webp"), url("../img/bg/silk-footer-sm.jpg") type("image/jpeg"));
}
@media (min-width: 800px) {
  .footer__card {
    background-image: url("../img/bg/silk-footer.jpg");
    background-image: image-set(url("../img/bg/silk-footer.avif") type("image/avif"), url("../img/bg/silk-footer.webp") type("image/webp"), url("../img/bg/silk-footer.jpg") type("image/jpeg"));
  }
}
.footer__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .55)); }
.footer__title { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 11vw, 128px); line-height: 1; letter-spacing: -.02em; text-align: center; }
.footer__title em { font-style: italic; letter-spacing: -.01em; }
.footer__cta { display: flex; justify-content: center; margin-top: clamp(26px, 3vw, 36px); }
.footer__grid { display: grid; grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin-top: clamp(64px, 9vw, 110px); }
.footer__brand p { max-width: 250px; margin: 12px 0 18px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.brand--light img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.footer .footer__langs { display: flex; flex-wrap: wrap; gap: 6px; max-width: 360px; font-size: 12.5px; }
.footer .footer__langs a { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px; line-height: 1.4; color: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: color .2s, background-color .2s; }
.footer .footer__langs a:hover { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.footer .footer__langs a.is-active { background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 600; }
.footer__h { margin-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.footer ul { display: grid; gap: 9px; font-size: 13.5px; }
.footer ul a, .footer ul span { color: rgba(255, 255, 255, .86); transition: color .2s; }
.footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { margin-top: clamp(48px, 6vw, 64px); text-align: center; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* "A product by Buildry" tag (footer) */
.footer__by { display: flex; justify-content: center; margin: 40px 0 18px; }
.by-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  font-size: 13px; line-height: 1; letter-spacing: .01em;
  color: rgba(255,255,255,.72); text-decoration: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.by-tag:hover, .by-tag:focus-visible { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.by-tag:focus-visible { outline: 2px solid #1E6BFF; outline-offset: 3px; }
.by-tag__dot { width: 7px; height: 7px; border-radius: 50%; background: #1E6BFF; box-shadow: 0 0 10px rgba(30,107,255,.9); }
.by-tag__name { color: #fff; font-weight: 600; letter-spacing: -.01em; }
.by-tag__arrow { width: 12px; height: 12px; opacity: .6; transform: rotate(-45deg); transition: transform .2s ease, opacity .2s ease; }
.by-tag:hover .by-tag__arrow { opacity: 1; transform: rotate(-45deg) translateX(2px); }
@media (prefers-reduced-motion: reduce) { .by-tag, .by-tag__arrow { transition: none; } .by-tag:hover { transform: none; } }
.footer__by + .footer__legal { margin-top: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 0 96px; text-align: center; }
.notfound__ghost { width: 128px; height: 128px; animation: keys-float 4s ease-in-out infinite; }
.notfound__code { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--muted-2); }
.notfound h1 { margin-top: 10px; font-size: clamp(32px, 5vw, 52px); font-weight: 470; letter-spacing: -.03em; line-height: 1.08; }
.notfound__text { max-width: 420px; margin: 16px 0 30px; color: var(--muted); }

/* ---------- motion ---------- */
[data-anim] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* safety net if main.js never runs (set by the inline head script) */
.reveal-all [data-reveal], .reveal-all .stage--fan .phone, .reveal-all .stage--score .chip { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { transform: none; }
}

/* ---------- per-script typography ----------
   The web fonts (Inter Tight, Playfair Display) only cover Latin + Cyrillic; they have no Vietnamese, CJK, Thai or
   Indic glyphs. Each script gets an explicit system-font fallback chain (Apple → Windows → Noto/Android), so the
   browser never picks a font per glyph on its own. Inter Tight stays first for digits and brand names, except in
   Vietnamese, where missing accented letters would mix two fonts inside one word. The Latin/Cyrillic system fonts
   right after it have none of these scripts either: they only keep Latin text proportional while Inter Tight loads. */
:lang(vi) { --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --serif: Georgia, "Times New Roman", serif; }
:lang(ja) { --font: "Inter Tight", "Helvetica Neue", "Segoe UI", Roboto, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif; --serif: "Playfair Display", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif; }
:lang(zh) { --font: "Inter Tight", "Helvetica Neue", "Segoe UI", Roboto, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif; --serif: "Playfair Display", "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", SimSun, serif; }
:lang(ko) { --font: "Inter Tight", "Helvetica Neue", "Segoe UI", Roboto, Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif; --serif: "Playfair Display", AppleMyungjo, "Noto Serif KR", "Noto Serif CJK KR", Batang, serif; }
:lang(th) { --font: "Inter Tight", "Helvetica Neue", "Segoe UI", Roboto, Arial, "Sukhumvit Set", Thonburi, "Leelawadee UI", "Noto Sans Thai", "Noto Sans Thai UI", Tahoma, system-ui, sans-serif; }
:lang(hi), :lang(mr) { --font: "Inter Tight", "Helvetica Neue", "Segoe UI", Roboto, Arial, "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", "Noto Sans Devanagari", Mangal, system-ui, sans-serif; }
:lang(bn) { --font: "Inter Tight", "Helvetica Neue", "Segoe UI", Roboto, Arial, "Kohinoor Bangla", "Bangla Sangam MN", "Nirmala UI", "Noto Sans Bengali", Vrinda, system-ui, sans-serif; }
:lang(ta) { --font: "Inter Tight", "Helvetica Neue", "Segoe UI", Roboto, Arial, "Tamil Sangam MN", "Nirmala UI", "Noto Sans Tamil", Latha, system-ui, sans-serif; }
:lang(te) { --font: "Inter Tight", "Helvetica Neue", "Segoe UI", Roboto, Arial, "Kohinoor Telugu", "Telugu Sangam MN", "Nirmala UI", "Noto Sans Telugu", Gautami, system-ui, sans-serif; }
[lang] { font-family: var(--font); } /* also gives every entry of the language menu its own script's font */

/* CJK: no negative tracking, a real medium weight (470 is not available in system fonts), looser leading, phrase-aware wrapping */
:is(html:lang(ja), html:lang(zh), html:lang(ko)) body { letter-spacing: 0; line-height: 1.7; }
:is(html:lang(ja), html:lang(zh), html:lang(ko)) :is(.hero__title, .section-head h2, .faq__aside h2, .notfound h1) { font-weight: 500; letter-spacing: 0; line-height: 1.25; }
:is(html:lang(ja), html:lang(zh), html:lang(ko)) .hero__title { font-size: clamp(32px, 6vw, 68px); }
:is(html:lang(ja), html:lang(zh), html:lang(ko)) :is(.brand, .pill, .nav-link, .feature h3, .store__text strong, .plan__name, .qa summary, .board__title, .board__who, .card__title) { letter-spacing: 0; }
:is(html:lang(ja), html:lang(zh), html:lang(ko)) :is(.feature p, .section-head p, .hero__sub, .qa__body p, .fineprint, .footer__legal, .footer__brand p) { line-height: 1.7; }
html:lang(ja) :is(h1, h2, h3, .hero__sub, .section-head p) { line-break: strict; word-break: auto-phrase; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }

/* Thai + Indic scripts: marks stack above/below the line and conjuncts must not be letter-spaced →
   no tracking anywhere it matters, taller leading, slightly smaller display sizes (words run long) */
:is(html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) body { letter-spacing: 0; line-height: 1.75; }
:is(html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) :is(.hero__title, .section-head h2, .faq__aside h2, .notfound h1) { font-weight: 500; letter-spacing: 0; line-height: 1.4; }
:is(html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) .hero__title { font-size: clamp(30px, 5.4vw, 60px); }
:is(html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) :is(.section-head h2, .faq__aside h2) { font-size: clamp(26px, 3.3vw, 38px); }
:is(html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) :is(.brand, .pill, .nav-link, .badge, .feature h3, .store__text strong, .plan__name, .qa summary, .footer__h, .by-tag, .card__title, .card__cat, .board__title, .board__who, .board__meta b, .chip__value, .food-ui__kcal) { letter-spacing: 0; }
:is(html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) :is(.store__text, .chip__body, .board__who, .feature h3, .plan__name, .food-ui, .food-ui__tip, .insp, .by-tag) { line-height: 1.5; }
:is(html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) :is(.feature p, .section-head p, .hero__sub, .qa__body p, .fineprint, .footer__legal, .footer__brand p, .notfound__text) { line-height: 1.75; }

/* Footer slogan: Playfair has none of these scripts and a synthesised italic looks broken — upright, smaller, with room for marks */
:is(html:lang(ja), html:lang(zh), html:lang(ko), html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) .footer__title { font-size: clamp(44px, 8vw, 96px); line-height: 1.3; letter-spacing: 0; text-wrap: balance; }
:is(html:lang(ja), html:lang(zh), html:lang(ko), html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) .footer__title em { font-style: normal; letter-spacing: 0; }
:is(html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) .footer__title { font-family: var(--font); font-weight: 500; font-size: clamp(40px, 7vw, 84px); line-height: 1.45; }
:is(html:lang(th), html:lang(hi), html:lang(mr), html:lang(bn), html:lang(ta), html:lang(te)) .footer__title em { opacity: .78; }
html:lang(vi) .footer__title { line-height: 1.2; }
