/* ==========================================================================
   Chiki Mala · ᱪᱤᱠᱤ ᱢᱟᱞᱟ — site styles
   Plain CSS, mobile-first. No frameworks, no third-party requests.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
/* Noto Sans Ol Chiki is only downloaded when Ol Chiki characters appear. */
@font-face {
  font-family: "Noto Sans Ol Chiki";
  src: local("Noto Sans Ol Chiki"), local("NotoSansOlChiki-Regular"),
       url("../fonts/NotoSansOlChiki-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+1C50-1C7F, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Ol Chiki";
  src: local("Noto Sans Ol Chiki Bold"), local("NotoSansOlChiki-Bold"),
       url("../fonts/NotoSansOlChiki-Bold.ttf") format("truetype");
  font-weight: 600 800; font-style: normal; font-display: swap;
  unicode-range: U+1C50-1C7F, U+200C-200D, U+25CC;
}
/* Latin font: to self-host Inter, add assets/fonts/Inter-Variable.woff2 and
   uncomment this block (see README).
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
*/

/* ---------- Design tokens ---------- */
:root {
  --brand: #1E8E4E;          /* app icon green (decorative, large shapes) */
  --brand-strong: #177A42;   /* buttons: 5.4:1 with white text */
  --brand-dark: #14663A;     /* links and text on light backgrounds: 7:1 */
  --brand-light: #E8F5EC;
  --brand-glow: rgb(30 142 78 / 0.35);
  --accent: #B84A24;         /* warm earth accent, used sparingly */
  --accent-light: #FBEDE5;

  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-2: #F3F5F1;
  --text: #101814;
  --text-muted: #4A564E;     /* 7.6:1 on --bg */
  --hairline: rgb(0 0 0 / 0.08);
  --hairline-strong: rgb(0 0 0 / 0.14);
  --link: var(--brand-dark);
  --on-brand: #FFFFFF;
  --btn-bg: var(--brand-strong);
  --focus: #0B57D0;

  /* Keyboard mock-up colours */
  --kb-bg: #E2E7E3;
  --kb-key: #FFFFFF;
  --kb-fn: #C9D1CC;
  --kb-text: #101814;
  --chat-bg: #EEF3EF;
  --bubble-in: #FFFFFF;
  --bubble-out: #D6F2DF;

  --shadow-xs: 0 1px 2px rgb(16 24 20 / 0.06);
  --shadow-sm: 0 1px 2px rgb(16 24 20 / 0.05), 0 2px 8px rgb(16 24 20 / 0.05);
  --shadow-md: 0 1px 2px rgb(16 24 20 / 0.04), 0 4px 12px rgb(16 24 20 / 0.06), 0 16px 32px -8px rgb(16 24 20 / 0.10);
  --shadow-lg: 0 2px 4px rgb(16 24 20 / 0.04), 0 12px 24px rgb(16 24 20 / 0.08), 0 40px 80px -20px rgb(16 40 28 / 0.28);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto,
               "Helvetica Neue", Arial, "Noto Sans Ol Chiki", "Nirmala UI", "Noto Sans Devanagari", sans-serif;
  --font-olck: "Noto Sans Ol Chiki", "Nirmala UI", var(--font-sans);
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --pad: 16px;
  --maxw: 1180px;
  --header-h: 64px;
  color-scheme: light;
}

/* Dark theme values, used by the system setting and by the manual toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #3FB872; --brand-strong: #5BD38C; --brand-dark: #7EDDA4; --brand-light: #13291C;
    --brand-glow: rgb(63 184 114 / 0.28);
    --accent: #F0936B; --accent-light: #34201A;
    --bg: #0A0F0C; --surface: #111915; --surface-2: #17211C;
    --text: #E8F0EA; --text-muted: #A3B3A8;
    --hairline: rgb(255 255 255 / 0.08); --hairline-strong: rgb(255 255 255 / 0.14);
    --on-brand: #06240F; --focus: #8AB4F8;
    --kb-bg: #1A211D; --kb-key: #2B3530; --kb-fn: #222B26; --kb-text: #E8F0EA;
    --chat-bg: #0E1512; --bubble-in: #1D2722; --bubble-out: #1B4A30;
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 2px 8px rgb(0 0 0 / 0.3);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 60px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #3FB872; --brand-strong: #5BD38C; --brand-dark: #7EDDA4; --brand-light: #13291C;
  --brand-glow: rgb(63 184 114 / 0.28);
  --accent: #F0936B; --accent-light: #34201A;
  --bg: #0A0F0C; --surface: #111915; --surface-2: #17211C;
  --text: #E8F0EA; --text-muted: #A3B3A8;
  --hairline: rgb(255 255 255 / 0.08); --hairline-strong: rgb(255 255 255 / 0.14);
  --on-brand: #06240F; --focus: #8AB4F8;
  --kb-bg: #1A211D; --kb-key: #2B3530; --kb-fn: #222B26; --kb-text: #E8F0EA;
  --chat-bg: #0E1512; --bubble-in: #1D2722; --bubble-out: #1B4A30;
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.5);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 2px 8px rgb(0 0 0 / 0.3);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 60px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text); background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.3em; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 6px; word-break: break-all; }

/* Ol Chiki needs a little more vertical room than Latin. */
[lang="sat-Olck"], .olck { font-family: var(--font-olck); letter-spacing: 0; }
:is(h1, h2, h3) :is([lang="sat-Olck"], .olck) { line-height: 1.3; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--btn-bg); color: var(--on-brand);
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.no-js .js-only { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
@media (min-width: 768px) { :root { --pad: 28px; } }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--hairline); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--text-muted); font-size: 1.1em; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; margin-bottom: 16px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-light);
  border: 1px solid var(--hairline); border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary {
  background: var(--btn-bg); color: var(--on-brand);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 1px 2px rgb(0 0 0 / 0.1), 0 6px 16px -4px var(--brand-glow);
}
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--hairline-strong); box-shadow: var(--shadow-xs); }
.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 2px 4px rgb(0 0 0 / 0.1), 0 12px 24px -6px var(--brand-glow); }
.btn--secondary:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Store CTA styled like a badge (swap in Google's official badge image, see README). */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 16px;
  background: #000; color: #fff; text-decoration: none; line-height: 1.1;
  border: 1px solid #5f6368; border-radius: 12px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 8px 20px -6px rgb(0 0 0 / 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(0 0 0 / 0.2), 0 16px 32px -8px rgb(0 0 0 / 0.45); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }
.store-badge strong { display: block; font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }
:root[data-theme="dark"] .store-badge { border-color: rgb(255 255 255 / 0.28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store-badge { border-color: rgb(255 255 255 / 0.28); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--bg); } }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.06rem; letter-spacing: -0.01em;
  margin-right: auto; min-height: 44px;
}
.brand > img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-xs); }
.brand-word { display: flex; }
.brand-word img { width: auto; height: 42px; }

/* Logo text: dark letters on light theme, light letters on dark theme. */
.logo-on-dark { display: none !important; }
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block !important; }
}

.nav-toggle, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--hairline-strong); border-radius: 12px; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nav-toggle svg, .icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover, .nav-toggle:hover { border-color: var(--brand); box-shadow: var(--shadow-xs); }

/* Theme toggle shows the icon of the mode you would switch to. */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.lang-select {
  min-height: 44px; max-width: 130px; padding: 0 34px 0 12px;
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--surface) url("../img/chevron.svg") no-repeat right 10px center / 14px;
  border: 1px solid var(--hairline-strong); border-radius: 12px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.header-tools { display: flex; align-items: center; gap: 8px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text-muted); text-decoration: none; font-weight: 550; border-radius: 10px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); }

@media (max-width: 879px) {
  .header-inner { flex-wrap: wrap; }
  .js .site-nav { display: none; order: 10; width: 100%; padding: 8px 0 16px; border-top: 1px solid var(--hairline); }
  .js .site-nav.is-open { display: block; }
  .no-js .site-nav { order: 10; width: 100%; }
  .no-js .site-nav ul { display: flex; flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
  .site-nav a { font-size: 1.05rem; color: var(--text); }
}
/* Narrow phones: icon only (the link keeps its accessible name). */
@media (max-width: 459px) { .site-header .brand-word { display: none; } }
@media (max-width: 359px) {
  .lang-select { max-width: 92px; padding-right: 26px; background-position: right 6px center; }
}
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav { margin-right: 8px; }
}

/* ---------- Decorative Ol Chiki band ---------- */
.olck-band {
  height: 28px; background-color: var(--brand); opacity: 0.45;
  -webkit-mask: url("../img/band.svg") repeat-x left center / auto 28px;
  mask: url("../img/band.svg") repeat-x left center / auto 28px;
}
.olck-band--accent { background-color: var(--accent); opacity: 0.35; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 7vw, 100px) clamp(56px, 8vw, 110px);
  /* Soft mesh gradient */
  background:
    radial-gradient(45% 55% at 82% 28%, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 70%),
    radial-gradient(35% 45% at 100% 85%, color-mix(in srgb, #2E8FB8 14%, transparent) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 70%),
    radial-gradient(50% 40% at 30% 0%, color-mix(in srgb, var(--brand) 10%, transparent) 0%, transparent 70%),
    var(--bg);
}
.hero::after { /* fade into the page */
  content: ""; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero-greeting {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; margin-bottom: 22px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--hairline); border-radius: 999px; box-shadow: var(--shadow-xs);
  font-size: 0.92rem; color: var(--text-muted);
}
.hero-greeting .olck {
  padding: 2px 10px; border-radius: 999px;
  background: var(--btn-bg); color: var(--on-brand); font-weight: 700;
}
.hero h1 { margin-bottom: 0.35em; line-height: 1.04; }
.hero h1 .olck {
  display: block; margin-bottom: 0.12em;
  font-size: 0.7em; line-height: 1.3; font-weight: 700;
  color: var(--brand-dark);
  background: linear-gradient(95deg, var(--brand-dark), var(--brand) 60%, #2E8FB8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem); color: var(--text-muted); max-width: 36ch; margin-bottom: 28px; }
.hero-meta ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-muted); font-size: 0.93rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Device mock-up (pure HTML/CSS) ---------- */
.device {
  --dw: min(310px, 82vw);
  position: relative; width: var(--dw); margin-inline: auto;
  padding: 10px; border-radius: 48px;
  background: linear-gradient(160deg, #2a322e, #0b0f0d 60%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 0 0 1px rgb(0 0 0 / 0.5),
    var(--shadow-lg),
    0 0 90px -10px var(--brand-glow);
}
.device::before, .device::after { /* side buttons */
  content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: #1c2320;
}
.device::before { top: 110px; height: 56px; }
.device::after { top: 186px; height: 34px; }
.device-screen {
  position: relative; overflow: hidden; border-radius: 38px;
  background: var(--chat-bg); color: var(--kb-text);
  display: flex; flex-direction: column; aspect-ratio: 9 / 19.5;
  font-size: 13px; line-height: 1.35;
}
.d-status {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 6px; font-size: 11px; font-weight: 600;
}
.d-status::after { /* punch-hole camera */
  content: ""; position: absolute; left: 50%; top: 10px; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #050706; box-shadow: inset 0 0 0 2px #1b221e;
}
.d-status svg { width: 12px; height: 12px; display: inline-block; margin-left: 3px; }
.d-appbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px;
  background: var(--surface); border-bottom: 1px solid var(--hairline);
}
.d-avatar {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--font-olck); font-weight: 700; font-size: 14px;
}
.d-appbar b { display: block; font-size: 13px; }
.d-appbar small { display: block; font-size: 10.5px; color: var(--brand-dark); }
.d-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 12px; min-height: 0; }
.bubble {
  max-width: 80%; margin: 0; padding: 7px 11px; border-radius: 14px;
  font-size: 13.5px; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08);
}
.bubble--in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.d-input { display: flex; align-items: center; gap: 8px; padding: 0 10px 8px; }
.d-field {
  flex: 1; min-width: 0; min-height: 34px; display: flex; align-items: center;
  padding: 0 12px; background: var(--surface); border-radius: 999px; border: 1px solid var(--hairline);
  font-size: 14px; white-space: nowrap; overflow: hidden;
}
.d-caret { width: 1.5px; height: 16px; margin-left: 1px; background: var(--brand); flex: none; }
@media (prefers-reduced-motion: no-preference) { .d-caret { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.d-send { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; flex: none; }
.d-send svg { width: 16px; height: 16px; }

.kb { background: var(--kb-bg); padding: 4px 3px 12px; }
.kb-strip { display: flex; align-items: center; height: 30px; margin-bottom: 4px; font-size: 13.5px; }
.kb-strip span { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.kb-strip span + span { border-left: 1px solid var(--hairline-strong); }
.kb-strip .is-best { font-weight: 700; color: var(--brand-dark); }
.kb-strip .is-tapped { background: var(--brand-light); border-radius: 8px; }
.kb-row { display: flex; justify-content: center; gap: 3.5px; margin-bottom: 6px; padding-inline: 1px; }
.kb-row--inset { padding-inline: 5%; }
.key {
  flex: 1 1 0; min-width: 0; height: 33px;
  display: grid; place-items: center;
  background: var(--kb-key); color: var(--kb-text); border-radius: 6px;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.22), 0 0 0 0.5px rgb(0 0 0 / 0.04);
  font-size: 14.5px; line-height: 1;
  transition: transform 0.08s ease, background-color 0.08s ease, color 0.08s ease;
}
.key--fn { background: var(--kb-fn); font-size: 11.5px; font-weight: 600; flex-grow: 1.45; }
.key--space { flex-grow: 4.6; font-size: 11px; color: var(--text-muted); }
.key--enter { background: var(--brand); color: #fff; flex-grow: 1.45; }
.key.is-pressed { transform: translateY(1px) scale(0.94); background: var(--brand); color: #fff; box-shadow: none; }
.kb-row--digits .key { height: 28px; font-size: 12.5px; background: transparent; box-shadow: none; }

/* ---------- Bento grid (features) ---------- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--hero, .tile--wide { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 2; }
  .tile--hero { grid-column: span 3; }
  .tile--wide { grid-column: span 6; }
}
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 26px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hairline-strong); }
}
.tile h3 { margin-bottom: 0.35em; }
.tile p { margin: 0; color: var(--text-muted); }
.tile--hero, .tile--wide {
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    var(--surface);
}
.tile--hero h3, .tile--wide h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.tile-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  color: var(--brand-dark); background: var(--brand-light);
  border: 1px solid var(--hairline); border-radius: 13px;
}
.tile-icon svg { width: 22px; height: 22px; }
.tile--accent .tile-icon { color: var(--accent); background: var(--accent-light); }
.tile-art { margin-top: auto; padding-top: 24px; }

/* Mini illustrations inside the big tiles */
.mini-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 360px; }
.mini-keys span {
  display: grid; place-items: center; height: 42px;
  font-family: var(--font-olck); font-size: 1.2rem;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 10px;
  box-shadow: 0 2px 0 var(--hairline-strong);
}
.mini-keys .on { background: var(--btn-bg); color: var(--on-brand); border-color: transparent; box-shadow: 0 2px 0 var(--brand-dark), 0 6px 16px -4px var(--brand-glow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--hairline); border-radius: 999px;
}
.chip svg { width: 15px; height: 15px; color: var(--brand); }
.voice-art { display: flex; align-items: center; gap: 16px; }
.mic-btn {
  position: relative; display: grid; place-items: center; flex: none;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--btn-bg); color: var(--on-brand); box-shadow: 0 8px 20px -6px var(--brand-glow);
}
.mic-btn svg { width: 24px; height: 24px; }
.mic-btn::before, .mic-btn::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0.25;
}
.mic-btn::after { inset: -16px; opacity: 0.12; }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; flex: 1; max-width: 200px; }
.wave i { flex: 1; max-width: 5px; border-radius: 3px; background: var(--brand); opacity: 0.75; height: var(--h, 40%); }
@media (prefers-reduced-motion: no-preference) {
  .js .wave i { animation: wave 1.3s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .js .mic-btn::before { animation: pulse 2s ease-out infinite; }
}
@keyframes wave { 50% { transform: scaleY(0.45); } }
/* Bar heights and timings (no inline styles: the CSP forbids them). */
.wave i:nth-child(7n+1) { --h: 35%; --d: -0.1s; }
.wave i:nth-child(7n+2) { --h: 70%; --d: -0.5s; }
.wave i:nth-child(7n+3) { --h: 100%; --d: -0.9s; }
.wave i:nth-child(7n+4) { --h: 55%; --d: -0.3s; }
.wave i:nth-child(7n+5) { --h: 85%; --d: -0.7s; }
.wave i:nth-child(7n+6) { --h: 45%; --d: -1.1s; }
.wave i:nth-child(7n+7) { --h: 65%; --d: -0.2s; }
@keyframes pulse { from { transform: scale(0.9); opacity: 0.4; } to { transform: scale(1.25); opacity: 0; } }
.voice-out {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--hairline);
}
.voice-out .olck { font-size: 1.15rem; font-weight: 700; color: var(--brand-dark); }
.voice-out small { color: var(--text-muted); }
.privacy-art { display: grid; gap: 14px; }
@media (min-width: 1000px) {
  .tile--wide { display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: auto auto 1fr; column-gap: 48px; }
  .tile--wide > :not(.tile-art) { grid-column: 1; }
  .tile--wide .tile-art { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; padding: 0; }
}
.on-device {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 16px;
}
.on-device .lock { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--btn-bg); color: var(--on-brand); }
.on-device .lock svg { width: 20px; height: 20px; }
.on-device b { display: block; }
.on-device small { color: var(--text-muted); }

/* ---------- Language showcase (tabs) ---------- */
.showcase { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .showcase { grid-template-columns: 1fr 0.9fr; gap: 64px; } }
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 24px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-xs);
}
.tab {
  min-height: 44px; padding: 0 16px;
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text-muted);
  background: transparent; border: 0; border-radius: 12px; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--on-brand); background: var(--btn-bg); box-shadow: 0 4px 12px -4px var(--brand-glow); }
.tab .olck, .tab [lang="hi"] { font-weight: 500; opacity: 0.9; }
.lang-panel { padding: 26px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.no-js .lang-panel + .lang-panel { margin-top: 16px; }
.lang-panel .script {
  display: block; margin: 6px 0 14px;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 700; line-height: 1.35; color: var(--brand-dark);
}
.lang-panel .sample { padding: 12px 14px; margin: 16px 0 0; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 1.05rem; }
.tag { display: inline-block; padding: 3px 11px; margin: 0 6px 6px 0; font-size: 0.82rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-light); border-radius: 999px; }
.seg { display: inline-flex; gap: 4px; margin-top: 16px; padding: 3px; background: var(--surface-2); border-radius: 12px; }
.seg button {
  min-height: 40px; padding: 0 14px; font: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); background: transparent; border: 0; border-radius: 9px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step; position: relative; padding: 72px 26px 26px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.step::before {
  content: counter(step); position: absolute; top: 24px; left: 26px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--btn-bg); color: var(--on-brand); font-weight: 750;
  box-shadow: 0 6px 14px -4px var(--brand-glow);
}
.step p { margin: 0; color: var(--text-muted); }

/* ---------- Screenshot carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 22px; list-style: none; margin: 0; padding: 8px 4px 24px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.carousel-track > li { flex: 0 0 auto; width: min(230px, 66vw); scroll-snap-align: start; }
.carousel-track figure { margin: 0; }
.shot-frame {
  padding: 7px; border-radius: 34px;
  background: linear-gradient(160deg, #2a322e, #0b0f0d 60%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), var(--shadow-md);
}
.shot-frame img { width: 100%; height: auto; border-radius: 27px; background: var(--surface); }
.carousel-track figcaption { margin-top: 14px; text-align: center; font-weight: 650; font-size: 0.98rem; }
.carousel-controls { display: flex; gap: 10px; justify-content: flex-end; }
.carousel-controls .icon-btn { width: 48px; height: 48px; border-radius: 50%; }
.carousel-controls .icon-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Privacy highlight ---------- */
.privacy-box {
  display: grid; gap: 28px; padding: clamp(26px, 4vw, 48px);
  background:
    radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
@media (min-width: 880px) { .privacy-box { grid-template-columns: 1fr 1fr; align-items: center; } }
.never-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.never-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-sm); font-weight: 550;
}
.never-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

/* ---------- Download comparison ---------- */
.compare { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 880px) { .compare { grid-template-columns: 1fr 1fr; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 30px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.plan--recommended { border: 1.5px solid var(--brand); box-shadow: var(--shadow-md), 0 0 0 4px color-mix(in srgb, var(--brand) 10%, transparent); }
.plan-badge {
  position: absolute; top: -13px; left: 26px; padding: 3px 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--on-brand); background: var(--btn-bg); border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; }
.plan > p { color: var(--text-muted); }
.checks { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand); }
.checks .minus svg { color: var(--text-muted); }
.plan-cta { margin-top: auto; }
.apk-meta { margin: 20px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.95rem; }
.apk-meta dt { font-weight: 650; }
.apk-meta dd { margin: 0; color: var(--text-muted); min-width: 0; }
.hash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hash code { flex: 1 1 220px; font-size: 0.8rem; line-height: 1.5; padding: 8px 10px; border: 1px solid var(--hairline); }
.copy-wrap { position: relative; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 10px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--brand); }
.copy-btn svg { width: 16px; height: 16px; }
.tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 10px; white-space: nowrap; font-size: 0.8rem; font-weight: 600;
  color: #fff; background: #101814; border-radius: 8px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
}
.tooltip.is-shown { opacity: 1; transform: translate(-50%, 0); }
.note {
  padding: 14px 16px; margin-top: 20px; font-size: 0.93rem;
  background: var(--accent-light); border: 1px solid var(--hairline); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.note p:last-child { margin: 0; }

/* ---------- Quick facts ---------- */
.facts { display: grid; gap: 12px; margin: 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-xs); }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.45; }

/* ---------- FAQ (details/summary) ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-xs); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 12px 20px; font-weight: 650; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .faq-body { padding: 0 20px 18px; color: var(--text-muted); }
.faq .faq-body p:last-child { margin: 0; }
.faq-more { margin-top: 24px; }

/* ---------- Footer (4 columns) ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--hairline); padding-block: 56px 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-brand { grid-column: auto; }
}
.site-footer h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); text-decoration: none; }
.site-footer li a:hover { color: var(--brand-dark); text-decoration: underline; }
.site-footer p { color: var(--text-muted); }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo img { width: auto; height: 52px; }
.footer-logo img:first-child { width: 48px; height: 48px; border-radius: 12px; box-shadow: var(--shadow-xs); }
.contact-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 600; word-break: break-all;
}
.contact-chip:hover { border-color: var(--brand); }
.contact-chip svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-muted); font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Document pages (privacy, terms, help) ---------- */
.page-hero {
  padding-block: clamp(40px, 6vw, 80px) 32px;
  background:
    radial-gradient(50% 80% at 90% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}
.page-hero p { color: var(--text-muted); margin: 0; }
.doc-layout { display: grid; gap: 32px; padding-block: 40px 80px; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.toc { align-self: start; padding: 20px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-xs); font-size: 0.95rem; }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; } }
.toc h2 { font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc a { display: inline-block; padding-block: 5px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; padding-top: 0.2em; font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.summary-box { padding: 20px 24px; margin-bottom: 24px; background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); }
.summary-box ul { margin: 0; }
.translation { margin-top: 40px; padding: 20px 24px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius); }
.translation .badge { display: inline-block; padding: 2px 10px; margin-bottom: 8px; font-size: 0.8rem; font-weight: 700; color: var(--accent); background: var(--accent-light); border-radius: 999px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline-strong); }
th { background: var(--surface-2); }
.help-steps { list-style: none; padding: 0; counter-reset: hs; display: grid; gap: 20px; }
.help-steps > li {
  counter-increment: hs; display: grid; gap: 16px; padding: 20px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-xs);
}
@media (min-width: 640px) { .help-steps > li { grid-template-columns: 1fr 160px; align-items: center; } }
.help-steps h3::before { content: counter(hs) ". "; color: var(--brand-dark); }
.help-steps img { width: 160px; border-radius: 16px; border: 1px solid var(--hairline); justify-self: center; }
.center { text-align: center; }
.center .btn-row { justify-content: center; }
.big-404 { font-size: clamp(4rem, 3rem + 8vw, 9rem); font-weight: 800; color: var(--brand); line-height: 1; margin: 0; letter-spacing: -0.04em; }

/* ---------- Scroll reveal (only with JS, never with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Print (mainly for the Privacy Policy) ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --text-muted: #222; --link: #000; --brand-light: #fff; }
  .site-header, .site-footer .footer-grid, .skip-link, .toc, .olck-band, .js-only, .nav-toggle, .carousel-controls { display: none !important; }
  body { font-size: 11pt; line-height: 1.45; }
  .page-hero { padding: 0 0 12pt; background: none; }
  .doc-layout { display: block; padding: 0; }
  .prose { max-width: none; }
  .prose h2 { break-after: avoid; page-break-after: avoid; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  .summary-box, .translation { border: 1px solid #999; box-shadow: none; }
}
