/* style.css — armath.app
   The app's studio palette (Armath/DesignSystem.swift): a grey page, white
   sheets, black type and black buttons, blue for what moves and responds,
   yellow for what is new, red for a spelling hint. The keyboard drawings use
   the keyboard's own colours (Shared/KeyboardTheme.swift). */

:root {
  --page: #f0f0f0;
  --page-2: #e4e4e4;
  --card: #ffffff;
  --well: #ededed;
  --ink: #0b0b0b;
  --ink-2: #2a2a2a;
  --muted: #5f5f5f;
  --edge: #d6d6d6;
  --edge-soft: rgba(11, 11, 11, 0.08);
  --brand: #3d5af1;
  --brand-soft: rgba(61, 90, 241, 0.12);
  --on-brand: #ffffff;
  --spark: #e9e64b;
  --signal: #c8372f;
  --night: #0b0b0b;
  --night-ink: #f4f4f4;
  --night-muted: #a6a6a6;
  --night-card: #161616;

  /* The keyboard's own colours (Shared/KeyboardTheme.swift; the tray is iOS's
     glass behind Armath's keys, read from a screenshot of the keyboard). */
  --kb-tray: #e0e1e7;
  --kb-key: #ffffff;
  --kb-special: #ffffff;
  --kb-label: #000000;
  --kb-down: #e4e4e4;
  --kb-special-down: #c4c4c4;
  --kb-popup: #ffffff;
  --kb-shadow: rgba(0, 0, 0, 0.3);
  --kb-field: #ffffff;
  --kb-trail: #3d5af1;

  --font: system-ui, -apple-system, "SF Pro Text", "SF Armenian", "Segoe UI", "Noto Sans Armenian", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "SF Pro Display", "SF Armenian", "Segoe UI", "Noto Sans Armenian", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: min(1240px, calc(100% - 40px));
  --narrow: min(760px, calc(100% - 40px));
  --r-xl: 34px;
  --r-l: 26px;
  --r-m: 20px;
  --r-s: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.05), 0 28px 70px rgba(0, 0, 0, 0.14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b0b0b;
    --page-2: #161616;
    --card: #1b1b1c;
    --well: #2b2b2c;
    --ink: #f4f4f4;
    --ink-2: #d6d6d6;
    --muted: #a6a6a6;
    --edge: #2c2c2e;
    --edge-soft: rgba(255, 255, 255, 0.08);
    --brand: #8296ff;
    --brand-soft: rgba(130, 150, 255, 0.16);
    --on-brand: #0b0b0b;
    --signal: #ff7a72;
    --night: #000000;
    --night-card: #141414;
    --kb-tray: #202020;
    --kb-key: #444444;
    --kb-special: #444444;
    --kb-label: #ffffff;
    --kb-down: #696969;
    --kb-special-down: #828282;
    --kb-popup: #575757;
    --kb-shadow: rgba(0, 0, 0, 0.6);
    --kb-field: #1b1b1c;
    --kb-trail: #8296ff;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 28px 70px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --page: #0b0b0b;
  --page-2: #161616;
  --card: #1b1b1c;
  --well: #2b2b2c;
  --ink: #f4f4f4;
  --ink-2: #d6d6d6;
  --muted: #a6a6a6;
  --edge: #2c2c2e;
  --edge-soft: rgba(255, 255, 255, 0.08);
  --brand: #8296ff;
  --brand-soft: rgba(130, 150, 255, 0.16);
  --on-brand: #0b0b0b;
  --signal: #ff7a72;
  --night: #000000;
  --night-card: #141414;
  --kb-tray: #202020;
  --kb-key: #444444;
  --kb-special: #444444;
  --kb-label: #ffffff;
  --kb-down: #696969;
  --kb-special-down: #828282;
  --kb-popup: #575757;
  --kb-shadow: rgba(0, 0, 0, 0.6);
  --kb-field: #1b1b1c;
  --kb-trail: #8296ff;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 28px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(hy) body, body:lang(hy) { line-height: 1.62; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand); }
p, li, td, th, blockquote { overflow-wrap: break-word; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { overflow-wrap: anywhere; font-family: var(--font-display); margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
:lang(hy) h1, :lang(hy) h2, :lang(hy) h3 { letter-spacing: -0.018em; line-height: 1.08; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }

.shell { width: var(--shell); margin-inline: auto; }
.narrow { width: var(--narrow); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* MARK: type helpers */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.eyebrow.on-dark { color: var(--night-muted); }
.lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.accent { color: var(--brand); }
.mark { background: linear-gradient(transparent 58%, var(--spark) 58%); padding: 0 0.08em; }
.mono { font-family: var(--mono); }

/* MARK: buttons */

.button {
  --bg: var(--ink); --fg: var(--page);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font: 650 16px/1 var(--font); text-decoration: none;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
  position: relative; isolation: isolate; white-space: nowrap;
}
.button:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16); }
.button:active { transform: translateY(0) scale(0.98); }
/* The narrowest phones: a long button label may take two lines rather than leave the screen. */
@media (max-width: 360px) { .button { white-space: normal; text-align: center; line-height: 1.2; padding: 10px 20px; } }
.button .arrow { transition: transform 0.3s var(--ease); }
.button:hover .arrow { transform: translateX(3px); }
.button-brand { --bg: var(--brand); --fg: var(--on-brand); }
.button-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge); }
.button-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-light { --bg: var(--night-ink); --fg: var(--night); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.button[aria-disabled="true"] { cursor: default; }
.text-link { font-weight: 650; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--brand); }
.text-link:hover { text-decoration: underline; }

.badge-full {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px;
  background: var(--night); color: var(--spark); font: 700 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  vertical-align: middle; white-space: nowrap;
}
.badge-full::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spark); }
.badge-free { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 700 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* MARK: header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--page) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--edge-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge-soft), var(--shadow-1); display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark { --mark-ink: var(--ink); --mark-rays: var(--brand); }
.nav { display: flex; gap: 6px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.nav a:hover { background: var(--edge-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--edge-soft); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--edge-soft); }
.lang-switch a { padding: 6px 10px; border-radius: 999px; font: 700 12px/1 var(--font); letter-spacing: 0.04em; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.icon-button { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--edge-soft); color: var(--ink); cursor: pointer; transition: transform 0.3s var(--ease); }
.icon-button:hover { transform: rotate(20deg); }
.icon-button svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .mobile-menu {
    display: block; position: fixed; inset: 72px 0 auto 0; z-index: 49; padding: 12px 20px 28px;
    background: color-mix(in srgb, var(--page) 94%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.35s var(--ease);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  }
  .menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 14px 4px; font: 750 24px/1.2 var(--font-display); text-decoration: none; border-bottom: 1px solid var(--edge-soft); }
  .mobile-menu .button { margin-top: 20px; width: 100%; }
}
@media (max-width: 520px) {
  .lang-switch a { padding: 6px 8px; }
  .theme-toggle { display: none; }
}

/* MARK: sections */

.section { padding-block: clamp(84px, 11vw, 170px); position: relative; }
.section-tight { padding-block: clamp(60px, 7vw, 110px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 860px; }
.section-head h2 { font-size: clamp(40px, 6.2vw, 84px); }
.section-head p { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); margin: 0; max-width: 40em; }
.section-dark { background: var(--night); color: var(--night-ink); --muted: var(--night-muted); --ink: var(--night-ink); --ink-2: #d6d6d6; --edge-soft: rgba(255, 255, 255, 0.1); --brand: #8296ff; --brand-soft: rgba(130, 150, 255, 0.18); }
.section-dark .button-ghost { --fg: var(--night-ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24); }
.section-round { border-radius: clamp(28px, 4vw, 56px); margin-inline: clamp(8px, 1.4vw, 20px); }

/* MARK: reveal */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.94); }

/* MARK: hero */

.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(70px, 9vw, 130px); position: relative; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 100px); letter-spacing: -0.045em; line-height: 0.94; }
:lang(hy) .hero h1, .hero h1:lang(hy) { letter-spacing: -0.03em; line-height: 1; }
.hero h1 .line { display: block; overflow: hidden; padding: 0 0.06em 0.08em 0; margin-right: -0.06em; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(0.12s + var(--d, 0) * 0.12s); }
@keyframes rise { to { transform: none; } }
.hero-sub { font: 700 clamp(22px, 2.6vw, 32px)/1.2 var(--font-display); letter-spacing: -0.02em; margin: 24px 0 18px; color: var(--muted); }
.hero-sub b { color: var(--ink); }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--brand); }
.hero-fade { opacity: 0; animation: fade-up 1s var(--ease) forwards; animation-delay: calc(0.5s + var(--d, 0) * 0.1s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -18% -10% -12%; z-index: -1;
  background:
    radial-gradient(42% 46% at 62% 40%, var(--brand-soft), transparent 70%),
    radial-gradient(30% 30% at 30% 80%, color-mix(in srgb, var(--spark) 26%, transparent), transparent 70%);
  filter: blur(10px);
}
.rays { position: absolute; z-index: -1; width: 160%; aspect-ratio: 1; left: -30%; top: -40%; opacity: 0.55; color: var(--edge); pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Looping animations stop while off screen (site.js). */
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* MARK: the keyboard drawing */

.device {
  position: relative; background: var(--card); border-radius: clamp(26px, 3vw, 40px); padding: clamp(10px, 1.4vw, 18px);
  box-shadow: inset 0 0 0 1px var(--edge-soft), var(--shadow-2);
}
.device-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 12px; font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.device-bar .dots { display: flex; gap: 6px; }
.device-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--edge); }
.kb { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; overflow: visible; }
/* Every keyboard is drawn when it nears the screen: keep its room (the SVG's
   1000 x 850 viewBox) from the start, so a link to #demo-… lands on its card. */
[data-stage], [data-pipeline-stage] { aspect-ratio: 1000 / 850; }
.kb text { font-family: var(--font); }
.kb-field-bg { fill: var(--well); }
.kb-field-text { font-size: 50px; font-weight: 500; fill: var(--ink); white-space: pre; }
.kb-field-placeholder { font-size: 46px; fill: var(--muted); opacity: 0.6; transition: opacity 0.2s; }
.kb-caret { fill: var(--brand); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.kb-mark-brand { fill: var(--brand); font-weight: 700; }
.kb-mark-hint { fill: var(--signal); text-decoration: underline wavy var(--signal); }
.kb-tray-bg { fill: var(--kb-tray); }
.kb-strip-text { font-size: 40px; fill: var(--kb-label); transition: opacity 0.25s; }
.kb-strip-text.is-chosen { font-weight: 700; }
.kb-strip-text.is-hint { fill: var(--signal); font-weight: 600; }
.kb-strip-text.is-quoted { fill: var(--muted); }
.kb-strip-pill { fill: transparent; transition: fill 0.15s; }
.kb-strip-pill.is-pressed { fill: color-mix(in srgb, var(--kb-label) 12%, transparent); }
.kb-strip-sep { stroke: color-mix(in srgb, var(--kb-label) 22%, transparent); stroke-width: 2; }
.kb-strip.is-fresh .kb-strip-text { animation: strip-in 0.35s var(--ease); }
@keyframes strip-in { from { opacity: 0; transform: translateY(6px); } }
.kb-key-face { fill: var(--kb-key); transition: fill 0.28s; }
.kb-key-shadow { fill: var(--kb-shadow); }
.kb-key-shift .kb-key-face, .kb-key-delete .kb-key-face, .kb-key-layer .kb-key-face, .kb-key-emoji .kb-key-face, .kb-key-return .kb-key-face, .kb-key-space .kb-key-face { fill: var(--kb-special); }
.kb-key.is-pressed .kb-key-face { fill: var(--kb-down); }
.kb-key-space.is-pressed .kb-key-face, .kb-key-delete.is-pressed .kb-key-face, .kb-key-return.is-pressed .kb-key-face { fill: var(--kb-special-down); }
.kb-key-shift.is-pressed .kb-key-face, .kb-key-layer.is-pressed .kb-key-face, .kb-key-emoji.is-pressed .kb-key-face { fill: var(--kb-special); }
.kb-key.is-lit .kb-key-face { fill: color-mix(in srgb, var(--kb-trail) 26%, var(--kb-key)); }
/* The letters a stroke passes: the brand's yellow on a dark chip, as on the
   Armath Full badge; the key itself stays as it is. Lit at once, faded slowly. */
.kb-key-chip { fill: var(--night); opacity: 0; transition: opacity 0.35s; }
.kb-key.is-swiped .kb-key-chip { opacity: 1; transition: opacity 0.06s; }
.kb-key.is-swiped .kb-key-label, .kb-key.is-swiped .kb-key-caption { fill: var(--spark); transition: fill 0.06s; }
.kb-key-label { fill: var(--kb-label); font-weight: 400; transition: fill 0.35s, opacity 0.2s; }
.kb-key-caption { fill: color-mix(in srgb, var(--kb-label) 42%, transparent); font-weight: 500; letter-spacing: 0.02em; transition: fill 0.35s; }
.kb-key-icon { fill: none; stroke: var(--kb-label); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.kb-key-pad .kb-key-face { fill: var(--kb-key); }
.kb-preview-bg { fill: var(--kb-popup); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25)); }
.kb-preview-text { font-size: 64px; fill: var(--kb-label); }
.kb-menu { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(10px) scale(0.96); transition: opacity 0.18s, transform 0.25s var(--ease); }
.kb-menu.is-open { opacity: 1; transform: none; }
.kb-menu-bg { fill: var(--kb-popup); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28)); }
.kb-menu-pill { fill: transparent; transition: fill 0.12s; }
.kb-menu-pill.is-on { fill: var(--kb-trail); }
.kb-menu-text { font-size: 50px; fill: var(--kb-label); }
.kb-menu-pill.is-on + .kb-menu-text { fill: #fff; }
.kb-menu-icon { fill: none; stroke: var(--kb-label); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.kb-menu-pill.is-on + .kb-menu-icon { stroke: #fff; }
.kb-comet-stop { stop-color: var(--kb-trail); }
.kb-comet-head { fill: var(--kb-trail); opacity: 0.16; }
.kb-trail { pointer-events: none; }
.kb-finger { fill: color-mix(in srgb, var(--ink) 12%, transparent); stroke: color-mix(in srgb, var(--ink) 42%, transparent); stroke-width: 3; opacity: 0; transition: opacity 0.12s; }
.kb-finger.is-on { opacity: 1; }
.kb-finger-ring { fill: none; stroke: var(--kb-trail); stroke-width: 5; opacity: 0; stroke-dasharray: 327; stroke-dashoffset: 327; }
.kb-finger-ring.is-on.is-holding { opacity: 0.9; animation: hold-ring 0.5s linear forwards; }
@keyframes hold-ring { to { stroke-dashoffset: 0; } }
.kb-emoji-bg { fill: var(--kb-tray); }
.kb-emoji-glyph { font-size: 62px; }
.kb-emoji-abc { font-size: 34px; fill: var(--kb-label); font-weight: 600; }
.kb-emoji-cat { font-size: 38px; opacity: 0.45; }
.kb-emoji-cat.is-on { opacity: 1; }
.kb-emoji-del { fill: none; stroke: var(--kb-label); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.kb-recent-glyph { font-size: 112px; }
.kb-recent-pill { fill: transparent; }
.kb-recent-pill.is-on { fill: var(--kb-trail); }

/* The hero keyboard and its try mode. */
.hero-device .device-bar .mode-live, .hero-device.is-trying .device-bar .mode-auto { display: none; }
.hero-device.is-trying .device-bar .mode-live { display: inline; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 6px 4px; }
.try-row p { margin: 0; font-size: 14px; color: var(--muted); max-width: 32em; }
.try-exit, .try-hint { display: none; }
.hero-device.is-trying .try-exit, .hero-device.is-trying .try-hint { display: inline-flex; }
.hero-device.is-trying .try-start, .hero-device.is-trying .try-intro { display: none; }
.hero-device.is-trying .kb { touch-action: none; cursor: crosshair; }
.hero-device.is-miss .kb { animation: miss 0.4s; }
@keyframes miss { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.hero-device.is-trying { box-shadow: inset 0 0 0 2px var(--brand), var(--shadow-2); }

/* MARK: ticker */

.ticker { overflow: hidden; border-block: 1px solid var(--edge-soft); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 48s linear infinite; font: 700 clamp(28px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -0.02em; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-letters .ticker-track { font-weight: 500; color: var(--muted); animation-duration: 70s; animation-direction: reverse; }
.ticker-letters .ticker-track span::after { background: var(--edge); }
.ticker-track span.is-made::after { background: var(--spark); }

/* MARK: manifesto */

.manifesto { padding-block: clamp(110px, 16vw, 240px); }
.manifesto-text { font: 800 clamp(36px, 5.6vw, 82px)/1.08 var(--font-display); letter-spacing: -0.035em; margin: 0; max-width: 18em; }
:lang(hy) .manifesto-text { letter-spacing: -0.02em; line-height: 1.14; }
.manifesto-text .sw { color: color-mix(in srgb, var(--ink) 16%, transparent); transition: color 0.35s; }
.manifesto-text .sw.is-lit { color: var(--ink); }
.manifesto-text em { font-style: normal; }
.manifesto-text em .sw.is-lit { color: var(--brand); }
.no-js .manifesto-text .sw, .manifesto-text .sw { }
.manifesto-sign { margin-top: 40px; display: flex; align-items: center; gap: 14px; color: var(--muted); font: 600 14px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.manifesto-sign::before { content: ""; width: 42px; height: 2px; background: var(--brand); }

/* MARK: features */

/* One keyboard for all fifteen: the list on one side, the stage that plays
   the chosen feature beside it (on a phone, pinned above the list). A
   keyboard per card, all drawn at once, kept the processor busy. */
.showcase { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); grid-template-areas: "list stage"; gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.showcase-stage { grid-area: stage; position: sticky; top: 92px; }
.showcase-device { width: min(100%, max(320px, calc((100vh - 250px) / 0.85))); margin-left: auto; }
.showcase-now { text-transform: none; letter-spacing: 0.02em; color: var(--ink-2); text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-list { grid-area: list; display: grid; gap: clamp(40px, 5vw, 64px); padding-bottom: 28vh; }
.feature-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; border-bottom: 1px solid var(--edge-soft); padding-bottom: 16px; }
.feature-group-head h3 { font-size: clamp(24px, 2.6vw, 34px); }
.feature-group-head span { font: 600 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.08em; }
.feature { position: relative; display: grid; gap: 8px; padding: 18px 20px 18px 24px; border-radius: var(--r-m); cursor: pointer; scroll-margin-top: calc(40vh - 88px); transition: background 0.3s, box-shadow 0.3s; }
.feature::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 20px; width: 3px; border-radius: 2px; background: var(--edge-soft); transition: background 0.3s; }
.feature:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.feature.is-active { background: var(--card); box-shadow: inset 0 0 0 1px var(--edge-soft), var(--shadow-1); }
.feature.is-active::before { background: var(--brand); }
.feature.is-target { box-shadow: inset 0 0 0 2px var(--brand), var(--shadow-1); }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature-num { font: 700 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.feature.is-active .feature-num { color: var(--brand); }
.feature h4 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; line-height: 1.15; }
.feature-pick { all: unset; cursor: pointer; }
.feature-pick:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.demo-stage { position: relative; }
.demo-caption { min-height: 1.4em; margin: 10px 4px 0; font: 600 13px/1.4 var(--mono); color: var(--brand); letter-spacing: 0.02em; }
.demo-caption.is-fresh { animation: fade-up 0.4s var(--ease); }
.demo-play { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--page); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.3s var(--ease); }
.demo-play svg { width: 16px; height: 16px; }
.showcase-device:not(.is-playing) .demo-play, .demo-play:focus-visible { opacity: 1; transform: none; }
.is-playing .demo-play { opacity: 0 !important; pointer-events: none; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "list"; gap: 8px; }
  .showcase-stage { top: 68px; z-index: 2; background: var(--page); padding: 6px 0 10px; box-shadow: 0 18px 24px -18px var(--page); }
  .showcase-device { padding: 8px; width: min(100%, calc((42vh - 64px) / 0.85)); margin-inline: auto; }
  .showcase-device .device-bar { padding: 2px 6px 8px; }
  .showcase-device .demo-caption { margin-top: 6px; font-size: 12px; }
  .showcase-device .demo-play { right: 12px; bottom: 12px; }
  .showcase-list { padding-bottom: 0; }
  .feature { scroll-margin-top: var(--showcase-margin, 40vh); padding: 14px 16px 14px 22px; }
}
/* A short screen (a phone on its side) cannot hold the stage pinned. */
@media (max-height: 560px) {
  .showcase-stage { position: relative; top: 0; }
  .feature { scroll-margin-top: 0; }
}

/* MARK: the pipeline (how a swipe becomes a word) */

.pipeline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(30px, 5vw, 80px); }
.pipeline-visual { position: sticky; top: 92px; height: fit-content; }
.pipeline-visual .device, .pipeline-panel { width: min(100%, max(300px, calc((100vh - 330px) / 0.86))); }
.pipeline-panel { margin-top: 16px; background: var(--night-card); border-radius: var(--r-m); padding: 18px 20px; color: var(--night-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pipeline-panel .row { display: grid; grid-template-columns: 70px 1fr 48px; gap: 14px; align-items: center; padding: 6px 0; font-size: 17px; }
.pipeline-panel .word { font-weight: 700; }
.pipeline-panel .bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pipeline-panel .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--brand); transition: width 0.9s var(--ease); }
.pipeline-panel .val { font: 600 13px/1 var(--mono); color: var(--night-muted); text-align: right; opacity: 0; transition: opacity 0.4s; }
.pipeline-panel .head { display: flex; justify-content: space-between; font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 10px; }
.pipeline-panel .head b { color: #8296ff; font-weight: 700; }
.pipeline-panel .note { font-size: 12px; color: var(--night-muted); margin: 10px 0 0; }
.pipeline-panel .layer { display: none; }
.pipeline-panel[data-state="0"] .layer-0, .pipeline-panel[data-state="1"] .layer-1, .pipeline-panel[data-state="2"] .layer-2,
.pipeline-panel[data-state="3"] .layer-3, .pipeline-panel[data-state="4"] .layer-4, .pipeline-panel[data-state="5"] .layer-5 { display: block; animation: fade-up 0.45s var(--ease); }
.pipeline-panel .layer .bar i { width: var(--w); }
.pipeline-panel .layer .val { opacity: 1; }
.pipeline-steps { display: grid; gap: 0; padding-bottom: 30vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.5s; }
.step.is-active { opacity: 1; }
.step-num { font: 700 13px/1 var(--mono); color: var(--brand); letter-spacing: 0.08em; margin-bottom: 18px; }
.step h3 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 16px; }
.step p { color: var(--muted); font-size: 18px; max-width: 30em; }
.no-js .step, .reduce .step { opacity: 1; }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pipeline-visual { top: 68px; z-index: 2; background: var(--page); padding: 6px 0 10px; box-shadow: 0 18px 24px -18px var(--page); }
  .pipeline-visual .device { padding: 8px; width: min(100%, calc((44vh - 50px) / 0.86)); margin-inline: auto; }
  .pipeline-visual .device-bar { display: none; }
  .pipeline-panel { width: min(100%, calc((44vh - 50px) / 0.86)); margin: 10px auto 0; padding: 10px 14px; }
  .pipeline-panel .row { font-size: 14px; padding: 2px 0; grid-template-columns: 54px 1fr 40px; }
  .pipeline-panel .note { display: none; }
  .step { min-height: 72vh; justify-content: flex-end; padding-bottom: 6vh; }
  .step h3 { font-size: 26px; }
  .step p { font-size: 16px; }
}

/* The picture of the app's diagnostics switch, under the privacy section. */
.share-panel { margin-top: clamp(40px, 6vw, 80px); padding: clamp(22px, 3.4vw, 44px); border-radius: var(--r-l); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); }
.share-copy h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.025em; margin: 12px 0 14px; }
.share-copy p:last-child { margin: 0; color: var(--night-muted); }
.share-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.share-switch { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--night-ink); text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.share-switch i { flex: none; position: relative; width: 52px; height: 32px; border-radius: 16px; background: rgba(255, 255, 255, 0.2); transition: background 0.2s; }
.share-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.share-switch[aria-checked="true"] i { background: #8296ff; }
.share-switch[aria-checked="true"] i::after { transform: translateX(20px); }
.share-switch:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
.share-state { margin: 0; min-height: 3.2em; color: var(--night-muted); }
.share-flow { display: flex; align-items: center; }
.share-node { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; text-align: center; color: var(--night-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.share-node small { font: 600 10px/1.2 var(--mono); color: var(--spark); }
.share-link { flex: 1; min-width: 12px; height: 2px; background: rgba(255, 255, 255, 0.28); position: relative; }
.share-out { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 5px, transparent 5px 10px); }
.share-out b { display: none; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--spark); animation: share-report 2.6s var(--ease-io) infinite; }
.share-us { opacity: 0.45; transition: opacity 0.2s; }
.is-on .share-us { opacity: 1; }
.is-on .share-out b { display: block; }
@keyframes share-report { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.share-lists { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding-top: clamp(20px, 2.4vw, 30px); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.share-lists h4 { font: 600 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); margin: 0 0 12px; }
.share-lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.share-lists li { position: relative; padding-left: 22px; }
.share-lists li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.share-sent { opacity: 0.55; transition: opacity 0.2s; }
.is-on .share-sent { opacity: 1; }
.share-sent li::before { content: "→"; color: #8296ff; }
.share-never li::before { content: "×"; color: var(--spark); }
.share-note { grid-column: 1 / -1; margin: 0; color: var(--night-muted); font-size: 15px; }
@media (max-width: 800px) { .share-panel, .share-lists { grid-template-columns: minmax(0, 1fr); } }

/* MARK: pillars */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border-radius: var(--r-l); overflow: hidden; box-shadow: inset 0 0 0 1px var(--edge-soft); }
.pillar { padding: clamp(24px, 2.6vw, 38px); display: grid; gap: 14px; align-content: start; min-height: 260px; box-shadow: 0.5px 0.5px 0 0.5px var(--edge-soft); }
.pillar span { font: 700 13px/1 var(--mono); color: var(--brand); }
.pillar h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .pillars { grid-template-columns: minmax(0, 1fr); } .pillar { min-height: 0; } }

/* MARK: figures */

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.figure { border-top: 2px solid var(--ink); padding-top: 22px; }
.figure strong { display: block; white-space: nowrap; font: 800 clamp(38px, 4.2vw, 68px)/1 var(--font-display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.figure strong.accent { color: var(--brand); }
.figure span { display: block; margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 16em; }
@media (max-width: 900px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }

/* MARK: privacy */

.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.privacy-diagram { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; }
.privacy-diagram svg { width: 100%; height: 100%; }
.pd-phone { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.34); stroke-width: 2.5; }
.pd-island { fill: #000; stroke: rgba(255, 255, 255, 0.18); }
.pd-label { fill: var(--night-muted); font: 600 13px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.pd-box { fill: #161616; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.5; }
.pd-box-strong { stroke: #8296ff; stroke-width: 2; }
.pd-box-title { fill: var(--night-ink); font: 750 21px/1 var(--font-display); letter-spacing: -0.01em; }
.pd-key { fill: rgba(255, 255, 255, 0.16); }
.pd-link { stroke: #8296ff; stroke-width: 2.5; stroke-dasharray: 5 7; fill: none; animation: dash 18s linear infinite; }
.pd-arrow { stroke: #8296ff; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pd-letter { fill: #8296ff; font: 700 18px/1 var(--font); opacity: 0; animation: pd-float 5.4s var(--ease-io) infinite; }
@keyframes pd-float { 0% { opacity: 0; transform: translateY(14px); } 20%, 70% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-34px); } }
.pd-net-line { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 2; stroke-dasharray: 3 7; }
.pd-x { stroke: var(--signal); stroke-width: 4.5; stroke-linecap: round; }
.pd-cloud { fill: none; stroke: rgba(255, 255, 255, 0.24); stroke-width: 2; stroke-dasharray: 2 6; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.privacy-list li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--edge-soft); }
.privacy-list svg { width: 22px; height: 22px; color: #8296ff; margin-top: 2px; }
.privacy-list b { display: block; font-size: 18px; margin-bottom: 4px; }
.privacy-list p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } .privacy-diagram { max-width: 360px; } }

/* MARK: Armath Full */

.full-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.plan-card { background: var(--card); border-radius: var(--r-xl); padding: clamp(26px, 3vw, 44px); box-shadow: inset 0 0 0 1px var(--edge-soft); display: grid; gap: 18px; align-content: start; }
.plan-card.is-full { background: var(--night); color: var(--night-ink); --muted: var(--night-muted); box-shadow: none; }
.plan-card h3 { font-size: clamp(26px, 3.4vw, 46px); }
:lang(hy) .plan-card h3 { font-size: clamp(26px, 3vw, 40px); }
.plan-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan-card li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.plan-card li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--brand); }
.plan-card.is-full li svg { color: var(--spark); }
.plan-card .small { font-size: 14px; color: var(--muted); margin: 0; }
.mission { margin: clamp(50px, 7vw, 90px) 0 0; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.mission blockquote { margin: 0; font: 800 clamp(28px, 3.8vw, 52px)/1.1 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
:lang(hy) .mission blockquote { letter-spacing: -0.015em; }
.mission .seal { width: clamp(80px, 10vw, 140px); height: clamp(80px, 10vw, 140px); --mark-ink: var(--ink); --mark-rays: var(--brand); }
@media (max-width: 900px) { .full-grid { grid-template-columns: minmax(0, 1fr); } .mission { grid-template-columns: minmax(0, 1fr); } }

.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 4px; }
.timeline::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: rgba(255, 255, 255, 0.18); }
.timeline::after { content: ""; position: absolute; left: 12px; top: 11px; height: 2px; width: calc(100% - 24px); background: var(--spark); transform: scaleX(0); transform-origin: 0 50%; transition: transform 2.2s var(--ease-io); }
.timeline.is-run::after { transform: scaleX(1); }
.plan-card > .badge-free, .plan-card > .badge-full { justify-self: start; }
.timeline li { display: block; list-style: none; position: relative; padding-top: 34px; font-size: 15px; color: var(--night-muted); }
.timeline li b { display: block; color: var(--night-ink); font-size: 16px; margin-bottom: 4px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 2px var(--spark); }
.timeline ol, ol.timeline { padding: 0; }
@media (max-width: 600px) { .timeline { grid-template-columns: minmax(0, 1fr); } .timeline::before, .timeline::after { display: none; } .timeline li { padding: 0 0 0 30px; } .timeline li::before { top: 2px; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plans div { border-radius: var(--r-s); padding: 14px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.plans b { display: block; font-size: 16px; }
.plans span { font-size: 13px; color: var(--night-muted); }
.plans .is-best { box-shadow: inset 0 0 0 2px var(--spark); }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* MARK: made for Armenian */

.armenian-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.arm-card { grid-column: span 4; background: var(--card); border-radius: var(--r-l); padding: clamp(22px, 2.4vw, 32px); box-shadow: inset 0 0 0 1px var(--edge-soft); display: grid; gap: 14px; align-content: start; }
.arm-card.big { grid-column: span 8; background: var(--night); color: var(--night-ink); --muted: var(--night-muted); box-shadow: none; }
.arm-card h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; }
.arm-card p { margin: 0; color: var(--muted); }
.arm-glyphs { display: flex; flex-wrap: wrap; gap: 8px; }
.arm-glyphs span { min-width: 54px; height: 54px; padding: 0 10px; border-radius: 14px; display: grid; place-items: center; background: var(--well); font: 600 28px/1 var(--font); }
.arm-card.big .arm-glyphs span { background: rgba(255, 255, 255, 0.08); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; table-layout: fixed; }
.compare th, .compare td { text-align: left; padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.compare th { font: 600 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); }
/* A fixed table takes its widths from the first row, the headings. */
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 22%; }
/* On a phone the long Armenian and Russian words do not fit three columns:
   each row becomes the feature on one line, then the two answers with their names. */
@media (max-width: 520px) {
  .compare, .compare tbody, .compare tr { display: block; }
  .compare { font-size: 15px; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .compare td { border: 0; padding: 0; }
  .compare td:first-child { grid-column: 1 / -1; font-weight: 600; margin-bottom: 8px; }
  .compare td:not(:first-child) { width: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; text-align: left; }
  .compare td:not(:first-child)::before { content: attr(data-label); font: 600 10px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-muted); }
}
.yes { color: var(--spark); font-weight: 800; }
.no { color: var(--night-muted); }
.source-note { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .arm-card, .arm-card.big { grid-column: 1 / -1; } }

/* MARK: stories */

.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
/* An odd last card takes the whole row, its picture beside the text. */
.stories > .story-card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
.stories > .story-card:last-child:nth-child(odd) .story-art { height: auto; min-height: 190px; }
.stories > .story-card:last-child:nth-child(odd) .story-body { align-content: center; }
.story-card {
  position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 380px; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: var(--r-xl); overflow: hidden; box-shadow: inset 0 0 0 1px var(--edge-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.story-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--edge-soft), var(--shadow-2); }
.story-art { height: 190px; position: relative; overflow: hidden; background: var(--page-2); }
.story-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-body { padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 12px; align-content: start; }
.story-kicker { font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.story-card h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; }
.story-card p { margin: 0; color: var(--muted); }
.story-more { margin-top: 8px; font-weight: 650; display: inline-flex; gap: 8px; align-items: center; }
.story-card:hover .story-more .arrow { transform: translateX(4px); }
.story-more .arrow { transition: transform 0.3s var(--ease); }
@media (max-width: 800px) {
  .stories { grid-template-columns: minmax(0, 1fr); }
  .stories > .story-card:last-child:nth-child(odd) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .stories > .story-card:last-child:nth-child(odd) .story-art { height: 190px; }
}

/* Story art: drawn, animated lines. */
.art-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.8s var(--ease-io); }
.story-card:hover .art-line, .is-in .art-line, .art-run .art-line { stroke-dashoffset: 0; }
.art-dot { fill: var(--brand); }
.art-soft { fill: var(--brand-soft); }
.art-ink { fill: var(--ink); }
.art-spark { fill: var(--spark); }
.art-text { font: 800 120px/1 var(--font-display); fill: color-mix(in srgb, var(--ink) 8%, transparent); }
.art-grid { stroke: var(--edge-soft); stroke-width: 1; }

/* MARK: the feel of the keys */

.touch-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.press-stage { margin: 0; position: sticky; top: 96px; background: var(--card); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--edge-soft); padding: clamp(22px, 3vw, 36px); display: grid; gap: 34px; --press-cycle: 4.4s; }
.press-stage figcaption { font: 600 12px/1.3 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.press-field { font-size: clamp(26px, 3vw, 36px); font-weight: 600; min-height: 1.3em; display: flex; align-items: center; }
.press-letter { animation: press-letter var(--press-cycle) steps(1) infinite; }
.press-caret { width: 2px; height: 1.05em; margin-left: 2px; background: var(--brand); }
.press-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 62px; }
.press-key { position: relative; display: grid; place-items: center; height: clamp(68px, 7vw, 92px); border-radius: 14px; background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: clamp(26px, 3vw, 36px); }
.press-target { animation: press-light var(--press-cycle) steps(1) infinite; }
.press-popup { position: absolute; left: 50%; bottom: calc(100% + 6px); width: 86%; height: 92%; transform: translateX(-50%); display: grid; place-items: center; border-radius: 16px; background: var(--ink); color: var(--card); font-size: 1.3em; animation: press-popup var(--press-cycle) steps(1) infinite; }
.press-finger { position: absolute; left: 50%; top: 58%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 2px var(--brand); animation: press-finger var(--press-cycle) linear infinite; }
@keyframes press-letter { 0%, 59.9% { opacity: 0; } 60%, 96% { opacity: 1; } 96.1%, 100% { opacity: 0; } }
@keyframes press-light { 0%, 17.9% { background: color-mix(in srgb, var(--ink) 7%, transparent); } 18%, 83.9% { background: color-mix(in srgb, var(--brand) 32%, transparent); } 84%, 100% { background: color-mix(in srgb, var(--ink) 7%, transparent); } }
@keyframes press-popup { 0%, 17.9% { opacity: 0; } 18%, 83.9% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes press-finger { 0%, 8% { opacity: 0; transform: translateY(-14px) scale(1.2); } 18%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(-14px) scale(1.2); } }
.touch-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--card); border-radius: var(--r-l); overflow: hidden; box-shadow: inset 0 0 0 1px var(--edge-soft); }
.touch-points article { padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 12px; align-content: start; box-shadow: 0.5px 0.5px 0 0.5px var(--edge-soft); }
.touch-points span { font: 700 13px/1 var(--mono); color: var(--brand); }
.touch-points h3 { font-size: clamp(20px, 1.8vw, 25px); letter-spacing: -0.02em; }
.touch-points p { margin: 0; color: var(--muted); }
.touch-more { margin: clamp(24px, 3vw, 36px) 0 0; }
@media (max-width: 1000px) { .touch-grid, .touch-points { grid-template-columns: minmax(0, 1fr); } .press-stage { position: static; } }

/* Story art of the same article: a key under a finger. */
.art-key { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.art-popup { font: 700 64px/1 var(--font-display); fill: var(--card); }
.article-art .art-key { fill: rgba(255, 255, 255, 0.09); }
.article-art .art-popup { fill: var(--night); }

/* MARK: support band */

.support-band { text-align: center; }
.support-band h2 { font-size: clamp(42px, 7vw, 104px); letter-spacing: -0.045em; max-width: 13em; margin: 0 auto 26px; }
:lang(hy) .support-band h2 { letter-spacing: -0.025em; }
.support-band p { max-width: 36em; margin: 0 auto 34px; font-size: clamp(18px, 1.9vw, 22px); color: var(--muted); }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(50px, 6vw, 80px); text-align: left; }
.way { background: rgba(255, 255, 255, 0.05); border-radius: var(--r-m); padding: 22px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.way span { font: 700 13px/1 var(--mono); color: var(--spark); }
.way b { display: block; margin: 12px 0 6px; font-size: 18px; }
.way p { margin: 0; font-size: 15px; color: var(--night-muted); }
@media (max-width: 1100px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* MARK: FAQ */

.faq { display: grid; gap: 0; border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font: 700 clamp(19px, 2vw, 24px)/1.25 var(--font-display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--edge-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5f5f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--muted); max-width: 46em; }
.faq .answer p:last-child { margin: 0; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
html { interpolate-size: allow-keywords; }

/* MARK: get the app */

.get { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; background: var(--brand); color: var(--on-brand); border-radius: var(--r-xl); padding: clamp(30px, 4vw, 60px); position: relative; overflow: hidden; }
.get h2 { font-size: clamp(34px, 4.6vw, 64px); }
.get p { margin: 14px 0 0; opacity: 0.88; max-width: 34em; }
.get .button { --bg: var(--on-brand); --fg: var(--brand); }
.get-rays { position: absolute; right: -80px; top: -80px; width: 360px; opacity: 0.18; }
.get-rays { --mark-ink: currentColor; --mark-rays: currentColor; color: var(--on-brand); }
@media (max-width: 760px) { .get { grid-template-columns: minmax(0, 1fr); } }

/* MARK: footer */

.site-footer { padding: clamp(60px, 8vw, 110px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 30px; padding-bottom: 50px; border-bottom: 1px solid var(--edge-soft); }
.footer-grid h4 { font: 700 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--brand); }
.footer-brand p { color: var(--muted); max-width: 22em; margin: 16px 0 0; font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding-top: 26px; font-size: 13px; color: var(--muted); }
.footer-word { font: 800 clamp(70px, 17vw, 260px)/0.8 var(--font-display); letter-spacing: -0.06em; color: color-mix(in srgb, var(--ink) 6%, transparent); margin: 30px 0 -10px; white-space: nowrap; user-select: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
/* «Հնարավորություններ», «конфиденциальности»: on a phone one column, so no word runs into the next. */
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* MARK: article pages */

.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
.article-hero { padding: clamp(40px, 6vw, 90px) 0 clamp(36px, 5vw, 70px); position: relative; overflow: clip; }
.article-hero .kicker { font: 700 13px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 22px; display: block; }
.article-hero h1 { font-size: clamp(44px, 7vw, 100px); letter-spacing: -0.045em; line-height: 0.98; max-width: 14em; }
:lang(hy) .article-hero h1 { letter-spacing: -0.025em; line-height: 1.04; }
.article-hero .dek { font-size: clamp(20px, 2.3vw, 27px); line-height: 1.45; color: var(--ink-2); max-width: 34em; margin: 28px 0 30px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font: 600 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.article-meta .share { background: none; border: 0; font: inherit; color: var(--brand); cursor: pointer; padding: 0; }
.article-meta .share .done { display: none; }
.article-meta .share.is-done .done { display: inline; }
.article-meta .share.is-done .label { display: none; }
.article-art { margin-top: clamp(30px, 5vw, 60px); height: clamp(180px, 26vw, 340px); border-radius: var(--r-xl); background: var(--night); position: relative; overflow: hidden; }
.article-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-art .art-line { stroke: #8296ff; animation: draw 2.4s var(--ease-io) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.article-art .art-text { fill: rgba(255, 255, 255, 0.06); }
.article-art .art-dot { fill: #8296ff; }
.article-art .art-spark { fill: var(--spark); }
.article-art .art-grid { stroke: rgba(255, 255, 255, 0.07); }
.article-art .art-ink { fill: #f4f4f4; }

.prose { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.7; color: var(--ink-2); padding-bottom: clamp(60px, 8vw, 120px); }
:lang(hy) .prose { line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose .lead-in { font-size: 1.16em; color: var(--ink); line-height: 1.6; }
.prose h2 { font-size: clamp(30px, 3.6vw, 46px); color: var(--ink); margin-top: 2.2em; margin-bottom: 0.2em; letter-spacing: -0.03em; }
.prose h3 { font-size: clamp(22px, 2.2vw, 28px); color: var(--ink); margin-top: 1.8em; letter-spacing: -0.02em; }
.prose a { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 26px; border-left: 3px solid var(--brand); font: 750 clamp(24px, 2.8vw, 36px)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 14px; font: 600 13px/1 var(--mono); color: var(--muted); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; }
.prose .callout { background: var(--card); border-radius: var(--r-m); padding: 24px 26px; box-shadow: inset 0 0 0 1px var(--edge-soft); font-size: 17px; }
.prose .callout b:first-child { display: block; font: 700 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.prose .numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 2em 0; }
.prose .numbers div { background: var(--card); border-radius: var(--r-m); padding: 20px; box-shadow: inset 0 0 0 1px var(--edge-soft); }
.prose .numbers strong { display: block; font: 800 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }
.prose .numbers span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 640px) { .prose .numbers { grid-template-columns: minmax(0, 1fr); } }
.prose figure { margin: 2.2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.prose .source { font-size: 14px; color: var(--muted); }

.chronicle { list-style: none; padding: 0 !important; margin: 2em 0; position: relative; }
.chronicle::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--edge); }
.chronicle li { position: relative; padding: 0 0 26px 40px; }
.chronicle li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--page); box-shadow: inset 0 0 0 3px var(--brand); }
.chronicle li.major::before { background: var(--brand); }
.chronicle time { display: block; font: 700 13px/1 var(--mono); letter-spacing: 0.06em; color: var(--brand); margin-bottom: 8px; text-transform: uppercase; }
.chronicle b { color: var(--ink); }

.principles { counter-reset: principle; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.principles li { counter-increment: principle; background: var(--card); border-radius: var(--r-m); padding: 22px 24px 22px 74px; position: relative; box-shadow: inset 0 0 0 1px var(--edge-soft); }
.principles li::before { content: counter(principle, decimal-leading-zero); position: absolute; left: 24px; top: 24px; font: 700 14px/1 var(--mono); color: var(--brand); }
.principles b { display: block; color: var(--ink); margin-bottom: 4px; }

.article-next { padding-bottom: clamp(70px, 9vw, 130px); }
.article-next h2 { font-size: 14px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 700; }
.article-next .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-next .story-card { min-height: 0; }
.article-next .story-art { height: 120px; }
@media (max-width: 900px) { .article-next .stories { grid-template-columns: minmax(0, 1fr); } }

/* MARK: legal pages */

.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); }
.legal h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.04em; margin-bottom: 18px; }
/* «քաղաքականություն», «конфиденциальности»: one word must fit the line. */
:lang(hy) .legal h1, :lang(ru) .legal h1 { font-size: clamp(26px, 8.4vw, 64px); }
.legal .updated { font: 600 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; margin-bottom: 40px; display: block; }
.legal .translation-note { background: var(--card); border-radius: var(--r-s); padding: 14px 18px; font-size: 15px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--edge-soft); margin-bottom: 30px; }
.legal .prose { padding-bottom: 0; }
.legal .prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.8em; }

/* MARK: 404 */

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.lost h1 { font-size: clamp(90px, 18vw, 220px); letter-spacing: -0.06em; }
.lost p { color: var(--muted); }
.lost nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* MARK: responsive hero */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }
}

/* MARK: small screens: Armenian words are long */

@media (max-width: 520px) {
  .section-head h2 { font-size: 36px; }
  .article-hero h1 { font-size: 38px; }
  .support-band h2 { font-size: 40px; }
  .get h2 { font-size: 32px; }
  .manifesto-text { font-size: 32px; }
  .figure strong { font-size: clamp(26px, 8.8vw, 34px); }
  :lang(hy) .section-head h2, :lang(hy) .article-hero h1 { font-size: 30px; }
  :lang(hy) .prose h2 { font-size: clamp(24px, 7.6vw, 30px); }
  /* 320 pt screens: the longest Armenian word of each heading must still fit. */
  :lang(hy) .section-head h2 { font-size: min(30px, 8.9vw); }
  :lang(hy) .feature-group-head h3 { font-size: min(26px, 7.8vw); }
  :lang(hy) .support-band h2 { font-size: 32px; }
  :lang(hy) .manifesto-text { font-size: 27px; }
  :lang(hy) .feature h4, :lang(hy) .story-card h3, :lang(hy) .plan-card h3, :lang(hy) .arm-card h3 { font-size: 21px; }
  :lang(hy) .plan-card h3 { font-size: min(21px, 5.8vw); }
  :lang(hy) .step h3 { font-size: 23px; }
}

/* MARK: reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .hero-fade { opacity: 1; }
  .ticker-track { animation: none; }
  .manifesto-text .sw { color: var(--ink); }
  .timeline::after { transform: scaleX(1); }
  .art-line { stroke-dashoffset: 0; }
  .press-letter, .press-popup, .press-finger { opacity: 1; }
  .is-on .share-out b { animation: none; left: 45%; }
  .press-target { background: color-mix(in srgb, var(--brand) 32%, transparent); }
}

@media print {
  .site-header, .site-footer, .read-progress, .article-art, .article-next { display: none; }
  body { background: #fff; color: #000; }
}
