/* Alien Keyboard landing page. No external fonts, images or scripts: the typeface is
   Plus Jakarta Sans (SIL Open Font License), served from this site. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f5f9fa;
  --bg-alt: #eaf2f4;
  --surface: #ffffff;
  --surface-2: #f1f6f8;
  --edge: #d6e2e6;
  --text: #0f1a1f;
  --dim: #4a5a62;
  --brand: #006078;
  --brand-ink: #006078;
  --brand-soft: rgba(0, 96, 120, 0.09);
  --accent: #3fb6ce;
  --on-brand: #ffffff;
  --on-accent: #04252c;
  --hl: rgba(63, 182, 206, 0.32);
  --listen: #e53935;
  --translating: #2e9e4f;
  --danger-soft: rgba(229, 105, 95, 0.12);
  --danger-ink: #a7322a;
  --ok-ink: #1d7a3b;
  --shadow: 0 1px 2px rgba(15, 26, 31, 0.06), 0 12px 32px -12px rgba(0, 72, 92, 0.22);
  --shadow-lg: 0 2px 4px rgba(15, 26, 31, 0.06), 0 30px 60px -20px rgba(0, 72, 92, 0.35);
  --focus: #006078;

  /* keyboard mock: the app's Light keyboard theme */
  --kb-bg: #e3e6ea;
  --kb-bar: #f1f3f4;
  --kb-key: #ffffff;
  --kb-special: #c7cbd1;
  --kb-text: #1f1f1f;
  --chat-bg: #f4f7f8;
  --bubble-in: #ffffff;
  --bubble-out: #006078;
  --bubble-out-text: #ffffff;

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  /* also follows the window's height, so short laptop screens get less empty space */
  --section-y: clamp(56px, min(9vw, 13vh), 120px);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --font-ur-keys: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --bg-alt: #131619;
    --surface: #191c1f;
    --surface-2: #1f2326;
    --edge: #2a2f34;
    --text: #f1f3f4;
    --dim: #9aa3ab;
    --brand: #3fb6ce;
    --brand-ink: #6fcbdd;
    --brand-soft: rgba(63, 182, 206, 0.12);
    --on-brand: #04252c;
    --hl: rgba(63, 182, 206, 0.28);
    --danger-soft: rgba(229, 105, 95, 0.14);
    --danger-ink: #f0978f;
    --ok-ink: #7fd39b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 70px -24px rgba(0, 0, 0, 0.85);
    --focus: #6fcbdd;

    /* the app's Dark keyboard theme */
    --kb-bg: #1b1b1b;
    --kb-bar: #242424;
    --kb-key: #3c4043;
    --kb-special: #2a2d30;
    --kb-text: #e8eaed;
    --chat-bg: #121416;
    --bubble-in: #24282c;
    --bubble-out: #006078;
    --bubble-out-text: #ffffff;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
b, strong { font-weight: 650; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.ur { font-family: var(--font-ur); line-height: 2; font-feature-settings: normal; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: #004e62; text-decoration: none; }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #63c6da; } }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* The official store badges, from Apple's and Google's marketing pages, at one visible height.
   Google's badge was trimmed of its built-in clear space; the gap gives it back. */
.badge-link { display: inline-flex; align-items: center; border-radius: 10px; line-height: 0; transition: transform .15s ease; }
.badge-link:hover { transform: translateY(-2px); }
.badge-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.badge-img { display: block; height: 52px; width: auto; }
.hero-badge .badge-img { height: clamp(46px, 8cqi, 64px); }
.badge-block { align-self: center; margin-top: auto; }
.badge-block .badge-img { height: 50px; }
@media (max-width: 420px) { .badge-img { height: 46px; } }

.store-row-center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 22px 10px 18px; border-radius: 16px;
  background: #0f1a1f; color: #ffffff; text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px -12px rgba(0, 40, 52, 0.55);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.store-btn .icon { width: 26px; height: 26px; color: var(--accent); }
.store-btn span { display: flex; flex-direction: column; font-size: 1.15rem; font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; }
.store-btn small { font-size: .74rem; font-weight: 500; opacity: .82; letter-spacing: 0.01em; }
.store-btn:hover { transform: translateY(-2px); background: #0a2a33; }
@media (prefers-color-scheme: dark) {
  .store-btn { background: #f1f3f4; color: #0f1a1f; box-shadow: none; }
  .store-btn .icon { color: #006078; }
  .store-btn:hover { background: #ffffff; }
}
.store-row .store-btn { min-width: 186px; }
.store-btn-block { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--edge) 70%, transparent);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--bg); } }
.header-inner { position: relative; display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand img { border-radius: 11px; box-shadow: 0 0 0 1px var(--edge); }
/* The owner's own mark is drawn on transparency: no tile, no frame. */
.brand img.brand-logo { border-radius: 0; box-shadow: none; }
.brand picture { display: inline-flex; flex: none; }
/* The owner's horizontal logo: mark and name in one picture, words lightened in dark mode. */
.brand-lockup .brand-mark img { display: block; height: 46px; width: auto; border-radius: 0; box-shadow: none; }
@media (max-width: 760px) { .brand-lockup .brand-mark img { height: 32px; } }
@media (max-width: 460px) { .brand-lockup .brand-mark img { height: 26px; } }
.nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { display: inline-block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .97rem; }
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.nav-menu { display: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; border-radius: 10px; font-weight: 600; border: 1px solid var(--edge); background: var(--surface);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu ul {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px); list-style: none;
  background: var(--surface); border: 1px solid var(--edge); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-lg);
}
.nav-menu ul a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 550; }
.nav-menu ul a:hover { background: var(--brand-soft); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
}
/* The logo never shrinks under the links; between 761 and 900px the four links don't fit
   beside the full logo, so the Menu takes their place there too. */
.brand { flex: none; min-height: 44px; }
@media (min-width: 761px) and (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .brand-lockup .brand-mark img { height: 38px; }
}
.brand span { white-space: nowrap; }
@media (max-width: 460px) {
  .brand { gap: 8px; }
  .brand span { font-size: .98rem; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .brand img.brand-logo { width: 38px; height: auto; border-radius: 0; }
  .header-inner { gap: 8px; }
  .header-inner .btn-sm { padding: 8px 13px; font-size: .9rem; }
  .nav-menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* The smallest phones (320px): logo, Menu and Download still fit on the line. */
@media (max-width: 359px) {
  .header-inner { gap: 8px; }
  .brand-lockup .brand-mark img { height: 21px; }
  .site-header .btn-sm { padding-inline: 12px; font-size: .875rem; }
}

/* ---------- Shared section pieces ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink);
  margin-bottom: 14px;
}
h1 { font-size: clamp(2.3rem, 1.45rem + 3.9vw, 4.15rem); letter-spacing: -0.035em; line-height: 1.04; }
.h1-line { display: block; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.5vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); }
.lead { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem); color: var(--dim); margin-top: 18px; max-width: 640px; }
.hl {
  color: var(--brand-ink);
  background-image: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: 2px;
}
.fine { font-size: .9rem; color: var(--dim); margin-top: 18px; }

.ticks { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%233fb6ce' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plain { list-style: none; display: grid; gap: 12px; }
.plain li { position: relative; padding-left: 18px; }
.plain li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Hero (after the owner's poster) ---------- */
.hero {
  --hero-bg: #ffffff;
  --hero-ink: #111111;
  --hero-teal: #0a6a80;        /* text, outlines */
  --hero-fill: #0a6a80;        /* banner, pills, play button: white text on it is 6.2:1 */
  --hero-wave: #4fbfd6;
  --hero-wave-o: .55;
  --hero-pill: #eef1f4;
  --hero-pill-edge: #e2e7ea;
  --hero-bar: #26363d;
  --hero-bar-dim: #aab6bc;
  --hero-dim: #4a5a62;
  position: relative; isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-bg) 0%, var(--hero-bg) 55%, color-mix(in srgb, var(--hero-bg) 88%, #cdeef5) 100%);
  padding-top: clamp(18px, 3vw, 40px);
  padding-bottom: clamp(36px, 5vw, 72px);
}
@supports (overflow: clip) { .hero { overflow: clip; } }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .hero { background: var(--hero-bg); } }
@media (prefers-color-scheme: dark) {
  .hero {
    --hero-bg: #0f1113;
    --hero-ink: #f1f3f4;
    --hero-teal: #6fcbdd;
    --hero-fill: #0a6a80;
    --hero-wave: #2f8fa5;
    --hero-wave-o: .5;
    --hero-pill: #1b1f22;
    --hero-pill-edge: #2a2f34;
    --hero-bar: #d5dde0;
    --hero-bar-dim: #4c5960;
    --hero-dim: #9aa3ab;
    background:
      radial-gradient(55% 50% at 80% 30%, rgba(63, 182, 206, 0.10), transparent 70%),
      linear-gradient(180deg, #0f1113, #0d1416);
  }
}

/* background ribbons */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-waves { position: absolute; fill: none; stroke-width: 1; }
.hero-waves path { vector-effect: non-scaling-stroke; }
.hw-s0 { stop-color: var(--hero-wave); stop-opacity: 0; }
.hw-s1 { stop-color: var(--hero-wave); stop-opacity: var(--hero-wave-o); }
.hero-waves-low { left: -6%; width: 112%; bottom: 0; height: 52%; animation: hw-drift 22s ease-in-out infinite alternate; }
.hero-waves-top { right: -3%; top: -6%; width: 30%; height: 78%; animation: hw-drift-v 26s ease-in-out infinite alternate; }
@keyframes hw-drift { from { transform: translate3d(-2.5%, 0, 0); } to { transform: translate3d(2.5%, -2%, 0); } }
@keyframes hw-drift-v { from { transform: translate3d(0, -2%, 0); } to { transform: translate3d(-6%, 3%, 0); } }

/* layout */
.hero-wrap { max-width: calc(1360px + 2 * var(--gutter)); }
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "main phones";
  column-gap: clamp(16px, 2.6vw, 44px);
}
.hero-main {
  grid-area: main; align-self: center;
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 50fr) minmax(0, 17fr) minmax(0, 33fr);
  grid-template-areas:
    "logo   voice  voice"
    "banner banner banner"
    "title  title  title"
    "get    get    stat";
  align-items: start;
  padding-block: 8px;
}
.hero-phones { grid-area: phones; container-type: inline-size; min-width: 0; }


/* logo lockup */
.hero-logo { grid-area: logo; display: flex; align-items: center; gap: 2.4cqi; }
.hero-logo picture { flex: none; }
.hero-logo img { width: 16cqi; height: auto; }
.hero-logo-word { display: grid; justify-items: end; color: var(--hero-teal); font-weight: 500; line-height: .95; }
.hero-logo-alien { font-size: 12.4cqi; letter-spacing: -0.035em; }
.hero-logo-kb { font-size: 5.1cqi; letter-spacing: -0.01em; margin-top: .1em; }

/* banner */
.hero-banner {
  grid-area: banner; margin-top: 3.4cqi;
  padding: .5em .9em; background: var(--hero-fill); color: #ffffff;
  font-size: 3.85cqi; font-weight: 500; line-height: 1.25; letter-spacing: .015em; text-transform: uppercase; text-align: center;
}

/* headline */
.hero-title {
  grid-area: title; margin-top: 5cqi;
  color: var(--hero-ink); font-size: 7.25cqi; font-weight: 900; line-height: 1.12; letter-spacing: -0.028em;
  text-transform: uppercase; text-wrap: wrap;
}
.hero-title .ht-a, .hero-title .ht-b { display: block; }
.nowrap { white-space: nowrap; }

/* 26+ */
.hero-stat {
  grid-area: stat; justify-self: center;
  margin-top: calc(-7.25cqi * 1.12 + 1cqi);
  display: grid; justify-items: center; text-align: center;
}
.hs-num { color: var(--hero-teal); font-size: 16cqi; font-weight: 900; line-height: .9; letter-spacing: -0.04em; }
.hs-count { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.hs-label { margin-top: .35em; color: var(--hero-ink); font-size: 4.4cqi; font-weight: 400; line-height: 1.1; }
.hs-flags { display: flex; flex-wrap: wrap; justify-content: center; width: 11.2em; margin-top: 1.4em; font-size: 1.75cqi; }
.hs-flags span {
  /* the emoji is drawn larger than its circle, so the flag fills it */
  font-size: 3.6em; width: .933em; height: .933em; margin: -.12em -.113em; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; line-height: 1;
  background: #e8eef0; box-shadow: 0 0 0 .045em var(--hero-bg), 0 .06em .16em rgba(0, 40, 52, .2);
  animation: hs-bob 3.6s ease-in-out infinite;
}
.hs-flags span:nth-child(n+5) { transform: translateX(.467em); }
.hs-flags span:nth-child(even) { animation-delay: -1.8s; }
.hs-flags span:nth-child(3n) { animation-delay: -.9s; }
.hs-flags span:nth-child(4n+1) { animation-delay: -2.7s; }
@keyframes hs-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.09em; } }

/* voice message pill + mic illustration */
.hero-voice { grid-area: voice; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: end; gap: 1.8cqi; padding-left: 2cqi; font-size: 2.2cqi; }
.hv-pill {
  width: min(100%, 22em);
  display: flex; align-items: center; gap: .9em;
  padding: .55em 1.3em .55em .6em; border-radius: 999px;
  background: var(--hero-pill); border: 1px solid var(--hero-pill-edge);
  box-shadow: 0 .5em 1.4em -.6em rgba(0, 60, 78, .25);
}
.hv-play {
  position: relative; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%;
  display: grid; place-items: center; background: var(--hero-fill); color: #ffffff;
  animation: hv-play 2.4s ease-in-out infinite;
}
.hv-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--hero-fill); opacity: 0; animation: hv-ping 2.4s ease-out infinite; }
.hv-play .icon { width: 1.05em; height: 1.05em; margin-left: .12em; }
@keyframes hv-play { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes hv-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.65); opacity: 0; } }
.hv-wave { flex: 1; min-width: 0; height: 1.9em; display: flex; align-items: center; gap: .26em; overflow: hidden; }
.hv-wave i {
  --h: .5; flex: none; width: .16em; height: 100%; border-radius: .1em; background: var(--hero-bar);
  transform: scaleY(var(--h)); animation: hv-bar 1.1s ease-in-out infinite alternate;
}
.hv-wave i:nth-child(n+17) { background: var(--hero-bar-dim); }
.hv-wave i:nth-child(4n+1) { --h: .32; }
.hv-wave i:nth-child(4n+2) { --h: .7; animation-duration: .9s; }
.hv-wave i:nth-child(4n+3) { --h: 1; animation-duration: 1.3s; }
.hv-wave i:nth-child(7n+2) { --h: .45; }
.hv-wave i:nth-child(7n+5) { --h: .85; }
.hv-wave i:nth-child(9n+4) { --h: .22; }
.hv-wave i:nth-child(3n+1) { animation-delay: -.35s; }
.hv-wave i:nth-child(3n+2) { animation-delay: -.7s; }
.hv-wave i:nth-child(5n) { animation-delay: -1s; }
@keyframes hv-bar { from { transform: scaleY(var(--h)); } to { transform: scaleY(calc(var(--h) * .3 + .12)); } }

.hv-art { width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--hero-teal); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hv-bars path { transform-box: fill-box; transform-origin: center; animation: hv-pulse 1.9s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .07s); }
@keyframes hv-pulse { 0%, 100% { transform: scaleY(1); } 18% { transform: scaleY(1.45); } 40% { transform: scaleY(.75); } }
.hv-rings path { animation: hv-ring 1.9s ease-out infinite; }
.hv-rings path:nth-child(2) { animation-delay: .12s; }
.hv-rings path:nth-child(3) { animation-delay: .24s; }
.hv-rings-l path { --dx: -7px; }
.hv-rings-r path { --dx: 7px; }
@keyframes hv-ring { 0% { transform: translateX(0); opacity: 1; } 60% { transform: translateX(var(--dx)); opacity: 0; } 61% { transform: translateX(0); opacity: 0; } 100% { opacity: 1; } }
.hv-arrow { animation: hv-nudge 1.6s ease-in-out infinite; }
@keyframes hv-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.hv-l { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hv-l1 { animation: hv-l1 5s linear infinite; }
.hv-l2 { animation: hv-l2 5s linear infinite; }
.hv-l3 { animation: hv-l3 5s linear infinite; }
.hv-l4 { animation: hv-l4 5s linear infinite; }
@keyframes hv-l1 { 0% { stroke-dashoffset: 1; opacity: 1; } 12%, 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hv-l2 { 0%, 12% { stroke-dashoffset: 1; opacity: 1; } 24%, 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hv-l3 { 0%, 24% { stroke-dashoffset: 1; opacity: 1; } 36%, 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hv-l4 { 0%, 36% { stroke-dashoffset: 1; opacity: 1; } 46%, 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.hv-bubble { fill: var(--hero-bg); }
.hv-dot { fill: var(--hero-teal); stroke: none; animation: hv-dot 1.4s ease-in-out infinite; }
.hv-dot:nth-of-type(2) { animation-delay: .2s; }
.hv-dot:nth-of-type(3) { animation-delay: .4s; }
@keyframes hv-dot { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .25; } }

/* available on + store buttons */
.hero-get { grid-area: get; margin-top: 4.6cqi; }
.hero-avail { color: var(--hero-teal); font-size: 4.3cqi; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.hero-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2cqi; }
.hero .req { color: var(--hero-dim); }
.req { margin-top: 14px; font-size: .9rem; color: var(--dim); }

/* ---------- Hero phones (built in HTML/CSS so they stay crisp) ---------- */
.hp {
  font-size: min(10px, .68vw);
  font-size: min(10px, 1.6cqi);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 2.5em 0 2em;
  user-select: none; -webkit-user-select: none;
}
.hp-slot { flex: none; animation: hp-in 1.15s cubic-bezier(.2, .8, .2, 1) both; }
.hp-slot-l { margin-top: 5.5em; animation-delay: .45s; }
.hp-slot-r { margin-left: -1.6em; position: relative; animation-delay: .62s; }
@keyframes hp-in { from { opacity: 0; transform: translate3d(28%, 0, 0); } to { opacity: 1; transform: none; } }

.ph {
  position: relative; width: 30em; height: 63em; border-radius: 4.9em; padding: .34em;
  background: linear-gradient(150deg, #a4acd6 0%, #4d5584 16%, #2a2f48 48%, #4f5888 82%, #a9b1db 100%);
  box-shadow: 0 2.8em 4.6em -1.8em rgba(0, 45, 60, .55), 0 .8em 1.6em -.4em rgba(0, 30, 40, .25);
  animation: ph-float 7s ease-in-out infinite;
}
.ph::before, .ph::after { content: ""; position: absolute; width: .45em; border-radius: .2em; background: #59618f; }
.ph::before { left: -.32em; top: 11em; height: 4.6em; box-shadow: 0 6.2em 0 #59618f; }
.ph::after { right: -.32em; top: 14em; height: 7.4em; }
.ph-l { transform: perspective(150em) rotateY(14deg) rotateZ(-8deg); }
.ph-r { animation-delay: -3.5s; }
@keyframes ph-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.3em; } }
.ph-in { height: 100%; border-radius: 4.56em; padding: .58em; background: #050607; }
.ph-screen {
  position: relative; height: 100%; border-radius: 4.05em; overflow: hidden;
  display: flex; flex-direction: column; padding: 0 1.25em;
  background: linear-gradient(180deg, #262b2e 0%, #1e2225 45%, #1a1d20 100%);
  color: #f1f3f4; font-size: 1em; line-height: 1.25; text-align: left; letter-spacing: 0;
}
.ph-screen i { font-style: normal; }
.ph-island { position: absolute; top: 1.05em; left: 50%; width: 8.8em; height: 2.55em; margin-left: -4.4em; border-radius: 1.3em; background: #000000; }
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 4.7em; padding: .5em 1em 0 1.7em; flex: none; }
.ph-status b { font-size: 1.3em; font-weight: 600; }
.ph-status svg { width: 6.4em; height: 1.36em; color: #ffffff; }
.ph-head { display: grid; justify-items: center; text-align: center; flex: none; }
.ph-tile { width: 7.6em; height: 7.6em; margin-top: .4em; border-radius: 1.7em; background: #ffffff; display: grid; place-items: center; box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .35); }
.ph-tile img { width: 6em; height: auto; }
.ph-title { margin-top: .5em; font-size: 1.75em; font-weight: 600; letter-spacing: -0.01em; }
.ph-sub { margin-top: .3em; font-size: .98em; color: #3fb6ce; }
.ph-by { margin-top: .3em; font-size: .78em; color: #9aa3ab; }
.ph-label { margin: 1.5em 0 .65em .2em; font-size: .92em; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #3fb6ce; flex: none; }
.ph-card { display: grid; gap: .75em; padding: 1em; border-radius: 1.3em; background: #2a2e32; border: .1em solid #33383d; flex: none; }
.ph-ok, .ph-box { display: inline-block; flex: none; width: 1.15em; height: 1.15em; border-radius: .22em; vertical-align: -.18em; margin-right: .45em; }
.ph-ok { background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 85% no-repeat; }
.ph-box { width: 1.45em; height: 1.45em; border-radius: .3em; background: #3fb6ce url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2304252c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat; vertical-align: -.35em; margin-right: .6em; }
.ph-note { font-size: .8em; color: #cfd5d9; line-height: 1.35; }
.ph-btn { display: grid; place-items: center; height: 3.4em; border-radius: .8em; background: #23272a; border: .1em solid #3a4045; font-size: .92em; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: #f1f3f4; }
.ph-check { display: flex; align-items: center; justify-content: center; font-size: .95em; color: #e8eaed; }
.ph-check .ph-box { font-size: 1.05em; }

/* setup screen */
.ph-step {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .9em;
  height: 3.6em; border-radius: .75em; background: #3fbfd7; color: #072b33;
  font-size: 1em; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
}
.ph-step b { font-weight: 600; }
.ph-step::after {
  content: ""; position: absolute; inset: -.15em; border-radius: .85em; opacity: 0;
  background: rgba(255, 255, 255, .38); box-shadow: 0 0 1.4em .2em rgba(111, 220, 240, .85);
  animation: ph-lit 9s ease-in-out infinite;
}
.ph-step-1::after { animation-delay: .9s; }
.ph-step-2::after { animation-delay: 2.1s; }
.ph-step-3::after { animation-delay: 3.3s; }
@keyframes ph-lit { 0% { opacity: 0; } 4% { opacity: 1; } 11%, 100% { opacity: 0; } }
.ph-ticks { display: grid; gap: .35em; padding-top: .1em; }
.ph-tick { display: flex; align-items: center; font-size: .86em; color: #d5dade; animation: ph-tick 9s ease-out infinite both; }
.ph-tick-1 { animation-delay: 1.5s; }
.ph-tick-2 { animation-delay: 3.9s; }
@keyframes ph-tick { 0% { opacity: 0; transform: translateX(-.6em); } 4% { opacity: 1; transform: none; } 78% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: none; } }
.ph-look { gap: .55em; }
.ph-row-t { font-size: .95em; color: #e8eaed; }
.ph-slider { position: relative; height: .26em; margin: .4em 0 .7em; border-radius: 1em; background: #3d4348; }
.ph-slider::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 32%; border-radius: inherit; background: #3fb6ce; }
.ph-slider i { position: absolute; left: 32%; top: 50%; width: 1.2em; height: 1.2em; margin: -.6em 0 0 -.6em; border-radius: 50%; background: #3fb6ce; }
.ph-radios { display: flex; gap: 1.5em; margin-bottom: .3em; }
.ph-radios span { display: inline-flex; align-items: center; gap: .45em; font-size: .95em; color: #e8eaed; }
.ph-radios span::before { content: ""; width: 1.25em; height: 1.25em; border-radius: 50%; border: .14em solid #3fb6ce; box-sizing: border-box; flex: none; }
.ph-radios .is-on::before { background: radial-gradient(circle, #3fb6ce 0 42%, transparent 46%); }
.ph-look .ph-check { justify-content: flex-start; }

/* the keyboard in the left phone (the app's Dark keyboard theme) */
.pk { margin: auto -1.25em 0; padding: .55em .5em 2.2em; background: #1b1b1b; display: grid; gap: .5em; flex: none; }
.pk-bar { display: flex; align-items: center; gap: .4em; height: 2.9em; padding: 0 .2em; }
.pk-tb { position: relative; flex: none; width: 2.45em; height: 2.45em; border-radius: 50%; display: grid; place-items: center; background: #2f3336; color: #e8eaed; }
.pk-tb svg { position: relative; width: 1.35em; height: 1.35em; }
.pk-live { color: #8ab4f8; }
.pk-plain { background: transparent; }
.pk-chip { flex: none; display: grid; place-items: center; height: 2.85em; padding: 0 .8em; border-radius: 1.5em; background: #2f3336; color: #e8eaed; font-size: .74em; font-weight: 600; white-space: nowrap; }
.pk-gap { flex: 1; }
.pk-mic::before, .pk-mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; }
.pk-mic::before { background: #e53935; animation: pk-mic 7s ease-in-out infinite; }
.pk-mic::after { border: .16em solid #e53935; animation: pk-ring 7s ease-out infinite; }
@keyframes pk-mic { 0%, 58% { opacity: 0; } 62%, 80% { opacity: 1; } 86%, 100% { opacity: 0; } }
@keyframes pk-ring { 0%, 62% { opacity: 0; transform: scale(1); } 64% { opacity: .9; transform: scale(1); } 72% { opacity: 0; transform: scale(1.6); } 73% { opacity: 0; transform: scale(1); } 74% { opacity: .9; transform: scale(1); } 82%, 100% { opacity: 0; transform: scale(1.6); } }
.pk-row { display: flex; gap: .36em; height: 2.75em; }
.pk-row-mid { padding-inline: 1.3em; }
.pk-row i {
  flex: 1 1 0; min-width: 0; display: grid; place-items: center;
  border-radius: .45em; background: #3c4043; color: #e8eaed; font-size: 1.2em; line-height: 1;
  box-shadow: 0 .1em 0 rgba(0, 0, 0, .45);
}
.pk-row .pk-s { background: #2a2d30; font-size: 1em; }
.pk-row .pk-w { flex-grow: 1.45; }
.pk-row .pk-sm { font-size: .78em; }
.pk-row .pk-ur { font-family: var(--font-ur-keys); font-size: .9em; flex-grow: 1.2; }
.pk-row .pk-space { flex-grow: 4.6; }

/* load-in sequence */
@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
.hero-logo, .hero-banner, .hero-title .ht-a, .hero-title .ht-b, .hero-voice, .hero-stat, .hero-get {
  animation: hero-rise .85s cubic-bezier(.2, .75, .25, 1) both;
}
.hero-logo { animation-delay: .12s; }
.hero-banner { animation-delay: .26s; }
.hero-title .ht-a { animation-delay: .4s; }
.hero-title .ht-b { animation-delay: .54s; }
.hero-voice { animation-delay: .6s; }
.hero-stat { animation-delay: .72s; }
.hero-get { animation-delay: .86s; }

/* script.js adds this while the hero is off-screen */
.hero.is-offscreen *, .hero.is-offscreen *::before, .hero.is-offscreen *::after,
.hero.is-paused *, .hero.is-paused *::before, .hero.is-paused *::after { animation-play-state: paused !important; }
/* the one-time entrance still finishes, so a pause during it never freezes text half-faded */
.hero.is-paused :is(.hero-logo, .hero-banner, .ht-a, .ht-b, .hero-voice, .hero-stat, .hero-get, .hp-slot) { animation-play-state: running !important; }
/* the "Pause motion" button (WCAG 2.2.2); hidden with reduced motion, where nothing loops */
.hero .hero-motion { margin-top: 12px; color: var(--hero-dim); background: var(--hero-bg); }
.hero .hero-motion:hover { color: var(--hero-ink); border-color: var(--hero-dim); }

/* small laptops: give the text a little more room */
@media (min-width: 960px) and (max-width: 1199px) {
  .hero-stage { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
  .hero-stores { gap: 10px; }
}

/* tablet and below: stack, phones under the text */
@media (max-width: 959px) {
  .hero-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "main" "phones"; }
  .hp { font-size: min(6.6px, 1.1vw); font-size: min(6.6px, 1.2cqi); padding-top: 1em; }
}
@media (max-width: 599px) {
  .hero-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "logo   logo"
      "banner banner"
      "title  title"
      "stat   voice"
      "get    get";
  }
  .hero-logo { gap: 3.4cqi; }
  .hero-logo img { width: 23cqi; }
  .hero-logo-alien { font-size: 17.5cqi; }
  .hero-logo-kb { font-size: 7.3cqi; }
  .hero-banner { margin-top: 5cqi; font-size: 4.2cqi; padding: .55em .6em; letter-spacing: 0; }
  .hero-title { margin-top: 6cqi; font-size: 9.4cqi; line-height: 1.1; }
  .hero-stat { margin-top: 7cqi; justify-self: start; }
  .hs-num { font-size: 21cqi; }
  .hs-label { font-size: 6cqi; }
  .hs-flags { font-size: 2.9cqi; width: 12em; }
  .hero-voice { margin-top: 7cqi; align-self: center; padding-left: 0; gap: 3cqi; font-size: 3.2cqi; }
  .hv-wave i:nth-child(n+23) { display: none; }
  .hero-get { margin-top: 8cqi; }
  .hero-avail { font-size: 5.6cqi; }
  .hero-stores { gap: 10px; margin-top: 3cqi; }
  .hp { font-size: 1.62cqi; padding-top: 0; }
  .hero { --hero-wave-o: .4; }
  .hero-waves-low { height: 30%; }
  .hero-waves-top { width: 50%; height: 30%; }
}

/* ---------- Live demo section (the animated chat that used to sit in the hero) ---------- */
.showcase { background: var(--bg); }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.showcase-copy .lead { max-width: 520px; }
.demo-steps { list-style: none; counter-reset: ds; display: grid; gap: 12px; margin-top: 28px; max-width: 520px; }
.demo-steps li {
  counter-increment: ds; position: relative;
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 2px;
  padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--edge);
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.demo-steps li::before {
  content: counter(ds); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  transition: background-color .3s ease, color .3s ease;
}
.demo-steps b { font-size: 1.04rem; line-height: 1.35; padding-top: 6px; }
.demo-steps span { color: var(--dim); font-size: .93rem; line-height: 1.45; }
/* the step that matches what the demo is showing lights up (where :has() is supported) */
.showcase:has(#demo[data-step="1"]) .ds-listen,
.showcase:has(#demo[data-step="2"]) .ds-translate,
.showcase:has(#demo[data-step="3"]) .ds-type {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--edge)); box-shadow: var(--shadow);
}
.showcase:has(#demo[data-step="1"]) .ds-listen::before { background: var(--listen); color: #ffffff; border-color: transparent; }
.showcase:has(#demo[data-step="2"]) .ds-translate::before { background: var(--translating); color: #ffffff; border-color: transparent; }
.showcase:has(#demo[data-step="3"]) .ds-type::before { background: var(--brand); color: var(--on-brand); border-color: transparent; }
/* Up to 959px the steps sit above the demo, and the demo has the full width under them;
   from 960px they stand side by side (see "See it in action: the whole demo on one screen"). */
@media (max-width: 959px) {
  .showcase-grid { grid-template-columns: minmax(0, 1fr); }
}



/* ---------- Live demo (phone mock) ---------- */
.demo { margin: 0; display: grid; justify-items: center; gap: 16px; }
.phone {
  --pw: min(100%, 340px);
  width: var(--pw);
  border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #23292d, #0b0e10);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid; overflow: hidden;
  font-size: 13px; line-height: 1.35;
  user-select: none; -webkit-user-select: none;
}
.phone > * { min-width: 0; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); color: var(--text); border-radius: 26px 26px 0 0;
  border-bottom: 1px solid var(--edge);
}
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3fb6ce, #006078); }
.chat-name { display: grid; font-weight: 650; line-height: 1.2; }
.chat-name small { font-weight: 400; color: var(--dim); font-size: 11px; }
.chat-body {
  background: var(--chat-bg); padding: 12px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.day { align-self: center; margin-bottom: auto; font-size: 10.5px; font-weight: 600; color: var(--dim); background: var(--surface); border: 1px solid var(--edge); padding: 2px 10px; border-radius: 999px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 16px; font-size: 13.5px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.msg-in { background: var(--bubble-in); color: var(--text); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg-out { background: var(--bubble-out); color: var(--bubble-out-text); border-bottom-right-radius: 6px; align-self: flex-end; transform-origin: bottom right; max-height: 80px; overflow: hidden; }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--chat-bg); border-top: 1px solid var(--edge); }
.field {
  flex: 1; min-width: 0; min-height: 34px; display: flex; align-items: center;
  padding: 6px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); color: var(--text);
  white-space: nowrap; overflow: hidden;
}
.placeholder { color: var(--dim); }
.field.has-text .placeholder { display: none; }
.field.has-text .caret { display: inline-block; }
.caret { display: none; width: 2px; height: 16px; margin-left: 1px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.caret-static { display: inline-block; vertical-align: middle; margin-inline: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.send { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); flex: none; transition: transform .15s ease; }
.send .icon { width: 17px; height: 17px; }

.kb { background: var(--kb-bg); color: var(--kb-text); border-radius: 0 0 26px 26px; padding: 6px 5px 12px; }
.kb-bar { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 3px 4px; }
.kb-tools { display: flex; gap: 2px; overflow: hidden; max-width: 120px; transition: max-width .35s ease, opacity .25s ease; }
.tb { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--kb-text); flex: none; }
.tb .icon { width: 19px; height: 19px; }
.tb-alien { background: #006078; color: #ffffff; }
.heard { flex: 1; min-width: 0; position: relative; height: 32px; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; }
.heard-text { font-size: 15px; line-height: 32px; white-space: nowrap; color: var(--kb-text); opacity: 0; transition: opacity .3s ease; }
.heard-text .w { opacity: 1; transition: opacity .25s ease; }
.heard-status { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 650; color: #17692f; opacity: 0; transition: opacity .2s ease; }
@media (prefers-color-scheme: dark) { .heard-status { color: #6fd08e; } }
.pill { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: #006078; color: #ffffff; }
.pill-arrow { font-size: 10px; opacity: .9; }
.mic { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--kb-key); color: var(--kb-text); transition: background-color .25s ease, color .25s ease; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); }
.mic .icon { width: 18px; height: 18px; }
.mic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; }

.kb-keys { display: grid; gap: 7px; padding: 4px 2px 0; }
.kb-row { display: flex; gap: 5px; justify-content: center; }
.kb-row-2 { padding-inline: 5%; }
.k {
  flex: 1 1 0; min-width: 0; height: 36px; display: grid; place-items: center;
  border-radius: 6px; background: var(--kb-key); color: var(--kb-text);
  font-size: 15px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  transition: background-color .12s ease, transform .12s ease;
}
.k-sp { background: var(--kb-special); font-size: 12px; }
.k-wide { flex-grow: 1.5; }
.k-space { flex-grow: 4.5; font-size: 12px; }
.ur-key { font-family: var(--font-ur-keys); font-size: 13px; }

/* Demo states (set by script.js). Without JS the final, sent state shows. */
/* The demo's keyboard is a screenshot of the real one (iOS Simulator, dark theme, UR➜ID).
   While it listens, the sentence heard takes the room of the emoji key, the pill and Paste,
   and the mic turns red, then green while it translates - as the app does. */
.kb-real { position: relative; padding: 0; background: #1b1b1b; line-height: 0; overflow: hidden; border-radius: 0 0 26px 26px; }
.kb-shot { display: block; width: 100%; height: auto; }
.kb-heard {
  position: absolute; left: 23%; top: 0; width: 52%; height: 15.5%;
  display: flex; align-items: center; justify-content: flex-end; padding-inline: 3%;
  background: #242424; line-height: normal; opacity: 0; transition: opacity .25s ease;
}
.kb-heard .heard-text { color: #e8eaed; font-size: 14px; line-height: 1.6; }
/* no "Translating…" label here: it would run into the Urdu words; the green mic and step 2 say it */
.kb-heard .heard-status { display: none; }
.kb-mic {
  position: absolute; left: 87.5%; top: 1.3%; width: 9.4%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #ffffff; background: var(--listen);
  opacity: 0; transition: opacity .25s ease, background-color .25s ease;
}
.kb-mic .icon { width: 52%; height: 52%; }
.kb-mic::after { content: ""; position: absolute; inset: -12%; border-radius: 50%; border: 2px solid transparent; }
.demo[data-state="listen"] .kb-heard,
.demo[data-state="translate"] .kb-heard,
.demo[data-state="type"] .kb-heard { opacity: 1; }
.demo[data-state="listen"] .kb-mic,
.demo[data-state="translate"] .kb-mic { opacity: 1; }
.demo[data-state="listen"] .kb-mic::after { border-color: var(--listen); animation: ring 1.2s ease-out infinite; }
.demo[data-state="translate"] .kb-mic { background: var(--translating); }
.demo[data-state="translate"] .kb-mic::after { border-color: var(--translating); border-right-color: transparent; border-bottom-color: transparent; animation: spin .7s linear infinite; }

.demo[data-state] .msg-out { transition: opacity .3s ease, transform .3s cubic-bezier(.2, .9, .3, 1.3), max-height .3s ease, padding .3s ease, margin .3s ease; }
.demo[data-state="idle"] .msg-out,
.demo[data-state="listen"] .msg-out,
.demo[data-state="translate"] .msg-out,
.demo[data-state="type"] .msg-out { opacity: 0; transform: scale(.6) translateY(8px); max-height: 0; padding-block: 0; margin-top: -8px; }

.demo[data-state="listen"] .kb-tools,
.demo[data-state="translate"] .kb-tools,
.demo[data-state="type"] .kb-tools { max-width: 0; opacity: 0; }
.demo[data-state="listen"] .heard-text,
.demo[data-state="translate"] .heard-text,
.demo[data-state="type"] .heard-text { opacity: 1; }
.demo[data-state="type"] .heard-text { opacity: .55; }
.demo[data-state="listen"] .heard-text .w:not(.on) { opacity: 0; }
.demo[data-state="translate"] .heard-status { opacity: 1; }

.demo[data-state="listen"] .mic { background: var(--listen); color: #ffffff; }
.demo[data-state="listen"] .mic::after { border-color: var(--listen); animation: ring 1.2s ease-out infinite; }
.demo[data-state="translate"] .mic { background: var(--translating); color: #ffffff; }
.demo[data-state="translate"] .mic::after { border-color: var(--translating); border-right-color: transparent; border-bottom-color: transparent; animation: spin .7s linear infinite; }
.demo .send.press { transform: scale(.86); }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* The caption: a compact card, what is said and what is typed side by side. */
.demo-caption {
  width: min(100%, 560px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--edge); border-radius: 14px; padding: 8px 14px;
  box-shadow: var(--shadow);
}
.cap-row { display: grid; gap: 1px; min-width: 0; }
.cap-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); line-height: 1.3; }
.cap-text { font-weight: 650; font-size: .92rem; line-height: 1.35; }
.cap-text.ur { font-size: 1rem; line-height: 1.5; text-align: right; }
.cap-row:first-child { text-align: left; }
.cap-arrow { color: var(--brand-ink); }
.demo-toggle {
  order: 1;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--dim);
  background: transparent; border: 1px solid var(--edge); border-radius: 999px; cursor: pointer;
}
.demo-toggle:hover { color: var(--text); border-color: var(--dim); }
.demo-toggle[hidden] { display: none; }

/* ---------- Compare ---------- */
.compare { background: var(--bg-alt); }
.compare-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.compare-card { border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--edge); background: var(--surface); }
.compare-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 20px; }
.compare-card h3 .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; }
.compare-old h3 .icon { background: var(--danger-soft); color: var(--danger-ink); }
.compare-new { border-color: color-mix(in srgb, var(--brand) 45%, var(--edge)); box-shadow: var(--shadow); }
.compare-new h3 .icon { background: var(--brand-soft); color: var(--brand-ink); }
.steps-chain { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 6px; counter-reset: step; }
.steps-chain li {
  counter-increment: step;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; font-size: .93rem; line-height: 1.3;
  background: var(--surface-2); border: 1px dashed var(--edge); color: var(--dim);
}
.steps-chain li::before {
  content: counter(step); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: .72rem; font-weight: 700; background: var(--edge); color: var(--text); flex: none;
}
.steps-big { flex-direction: column; gap: 12px; }
.compare-card { display: flex; flex-direction: column; }
.compare-sum { margin-top: auto; padding-top: 22px; font-weight: 650; color: var(--danger-ink); }
.compare-sum-new { color: var(--brand-ink); }
.steps-big li {
  font-size: 1.08rem; font-weight: 650; color: var(--text);
  padding: 14px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--edge)); background: var(--brand-soft);
}
.steps-big li::before { background: var(--brand); color: var(--on-brand); }
.steps-big .icon { color: var(--brand-ink); width: 20px; height: 20px; }
@media (max-width: 820px) { .compare-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Real app screens ---------- */
.app-shot { margin: 0 auto clamp(32px, 5vw, 56px); max-width: 520px; text-align: center; }
.app-shot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 40px rgba(0, 60, 78, 0.25)); }
.app-shot figcaption { margin-top: 14px; font-size: .9rem; color: var(--dim); }

/* ---------- Bahasa to English examples ---------- */
.ex-pill {
  display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .9em; font-weight: 750;
  letter-spacing: .02em; color: var(--brand-ink); background: var(--brand-soft); white-space: nowrap;
}
.ex-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ex-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow);
}
.ex-card p { margin: 0; display: grid; gap: 6px; padding: 18px 20px; }
.ex-said { flex: 1; }
.ex-typed { background: var(--brand-soft); border-top: 1px solid color-mix(in srgb, var(--brand) 22%, var(--edge)); position: relative; }
.ex-typed::before {
  content: "➜"; position: absolute; top: -13px; right: 18px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; color: var(--on-brand); background: var(--brand);
  transform: rotate(90deg);
}
.ex-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); line-height: 1.3; }
.ex-typed .ex-label { color: var(--brand-ink); }
.ex-text { font-size: 1.04rem; line-height: 1.45; font-weight: 600; color: var(--text); }
.ex-typed .ex-text { font-weight: 700; }
.ex-fine { margin-top: 22px; }
@media (max-width: 900px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ex-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* The language-pair buttons. examples.js shows them (hidden without JS) and swaps the words. */
.ex-switch { margin-top: 26px; }
.ex-switch[hidden] { display: none; }
.ex-switch-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); line-height: 1.3; margin-bottom: 12px; }
.ex-pairs { display: flex; flex-wrap: wrap; gap: 10px; }
.ex-pair {
  position: relative; /* keeps the hidden "to" inside the row, so it can't widen the page */
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  font: inherit; font-size: .94rem; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--edge); box-shadow: 0 1px 2px rgba(15, 26, 31, 0.06);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ex-pair > [aria-hidden="true"] { font-size: .8em; color: var(--brand-ink); }
@media (hover: hover) {
  .ex-pair:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--edge)); background: var(--brand-soft); color: var(--brand-ink); }
}
.ex-pair[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: var(--shadow); cursor: default; }
.ex-pair[aria-pressed="true"] > [aria-hidden="true"] { color: inherit; }
.ex-pair:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 999px; }
/* the words in the other languages */
.ex-text[dir="rtl"] { text-align: right; }
.ex-text:lang(ur) { font-family: var(--font-ur); font-size: 1.1rem; line-height: 1.95; font-weight: 400; letter-spacing: 0; }
.ex-typed .ex-text:lang(ur) { font-weight: 700; }
.ex-text:lang(ar) { font-family: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; font-size: 1.1rem; line-height: 1.6; letter-spacing: 0; }
.ex-text:lang(zh) { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif; letter-spacing: .02em; }
/* two lines' room for every line, so the cards keep their size from pair to pair */
.ex-on .ex-text { min-height: 3.02rem; }
.ex-on .ex-said { align-content: start; }
/* a short cross-fade while the words change */
.ex-on .section-head .eyebrow, .ex-on #examples-title, .ex-on .ex-pill, .ex-on .ex-text, .ex-on .ex-typed .ex-label { transition: opacity .16s ease; }
.ex-fading .section-head .eyebrow, .ex-fading #examples-title, .ex-fading .ex-pill, .ex-fading .ex-text, .ex-fading .ex-typed .ex-label { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .ex-on .section-head .eyebrow, .ex-on #examples-title, .ex-on .ex-pill, .ex-on .ex-text, .ex-on .ex-typed .ex-label { transition: none; }
}
/* phones: one row of pairs to swipe, edge to edge; the side with more pairs fades out */
@media (max-width: 599px) {
  .ex-switch { margin-top: 16px; }
  .ex-switch-label { font-size: .8125rem; margin-bottom: 4px; }
  .ex-pairs {
    flex-wrap: nowrap; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter); scroll-padding-inline: var(--gutter);
    --fade-l: 0px; --fade-r: 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  }
  .ex-pairs::-webkit-scrollbar { display: none; }
  .ex-pairs.is-scrolled { --fade-l: 32px; }
  .ex-pairs.is-end { --fade-r: 0px; }
  .ex-pair { flex: none; padding-inline: 16px; font-size: .9rem; }
  .ex-pair[aria-pressed="true"] { box-shadow: none; }
}

/* ---------- Features ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(32px, 5vw, 56px);
}
.feature + .feature { border-top: 1px solid var(--edge); }
.feature-flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.025em; }
.feature-copy > p:not(.tag):not(.fine) { margin-top: 16px; color: var(--dim); font-size: 1.05rem; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: .85rem; font-weight: 650;
}
.feature-visual {
  border-radius: 28px; padding: clamp(18px, 4vw, 40px);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(63, 182, 206, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg-alt));
  border: 1px solid var(--edge);
  display: grid; place-items: center; min-height: 300px;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-copy { order: 0; }
  .feature-visual { min-height: 0; }
}

/* generic mock card */
.mock {
  width: min(100%, 400px); background: var(--surface); color: var(--text);
  border: 1px solid var(--edge); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg);
  font-size: .92rem; display: grid; gap: 12px;
}
.mv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mv-label { font-size: .82rem; font-weight: 650; color: var(--dim); }
.mv-label b { color: var(--text); }
.select {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--edge); font-weight: 650;
}
.select .icon { width: 16px; height: 16px; color: var(--dim); }
.mv-slider { display: grid; gap: 8px; }
.track { position: relative; height: 6px; border-radius: 999px; background: var(--edge); }
.fill { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: inherit; background: var(--brand); }
.thumb { position: absolute; left: 38%; top: 50%; width: 20px; height: 20px; margin-left: -10px; margin-top: -10px; border-radius: 50%; background: #ffffff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.fill-size { width: 54%; }
.thumb-size { left: 54%; }
.range-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--dim); }
.mv-result {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px;
  padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--edge);
}
.mic-dot { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--listen); color: #ffffff; box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.15); }
.mic-dot .icon { width: 18px; height: 18px; }
.mv-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; min-width: 0; }
.mv-line > :last-child { flex: 1 1 auto; }
.mv-line-typed { border-top: 1px dashed var(--edge); padding-top: 8px; margin-top: 2px; }
.mv-k { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); flex: none; }
.mv-said { font-size: 1.05rem; text-align: right; }
.mv-typed { font-weight: 650; color: var(--brand-ink); text-align: right; }

/* live translator mock */
.mock-live { padding: 14px; background: var(--kb-bg); color: var(--kb-text); border-color: transparent; }
.ml-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.ml-pill {
  padding: 9px 10px; border-radius: 12px; text-align: center; font-weight: 650; font-size: .86rem;
  background: var(--kb-key); border: 1.5px solid transparent; line-height: 1.2; overflow-wrap: anywhere;
}
.ml-pill-r { border-color: var(--accent); }
.ml-mic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--kb-special); color: var(--kb-text); }
.ml-mic .icon { width: 20px; height: 20px; }
.ml-turn {
  position: relative; display: grid; gap: 2px; padding: 10px 12px 10px 12px; margin-right: 52px;
  background: var(--kb-key); border-radius: 14px; border-top-left-radius: 4px;
}
.ml-turn-r { margin-right: 0; margin-left: 52px; border-top-left-radius: 14px; border-top-right-radius: 4px; background: color-mix(in srgb, var(--accent) 22%, var(--kb-key)); }
.ml-orig { font-weight: 600; }
.ml-orig.ur { font-size: 1.05rem; }
.ml-trans { color: inherit; opacity: .88; font-size: .88rem; }
.ml-trans.ur { font-size: 1rem; opacity: .9; }
.ml-actions { position: absolute; top: 8px; right: -46px; display: grid; gap: 6px; color: var(--kb-text); opacity: .8; }
.ml-turn-r .ml-actions { right: auto; left: -46px; }
.ml-actions .icon { width: 18px; height: 18px; }

/* Urdu keyboard mock */
.mock-urdu { padding: 12px; background: var(--kb-bg); color: var(--kb-text); border-color: transparent; gap: 8px; }
.mu-field { background: var(--surface); color: var(--text); border-radius: 12px; padding: 4px 14px; font-size: 1.1rem; border: 1px solid var(--edge); }
.mu-suggest { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 1rem; background: var(--kb-bar); border-radius: 10px; }
.mu-suggest span { padding: 2px 4px; }
.mu-suggest span + span { border-right: 1px solid color-mix(in srgb, var(--kb-text) 18%, transparent); }
.mu-suggest span:first-child { font-weight: 700; color: var(--brand-ink); }
.mu-keys { display: grid; gap: 6px; }
.mu-keys .k { font-family: var(--font-ur-keys); font-size: 17px; height: 38px; }
.mu-keys .k-sp, .mu-keys .k-space { font-family: var(--font); font-size: 11.5px; }
.mu-keys .kb-row { gap: 4px; }

/* clipboard mock */
.mc-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.mc-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--edge); }
.mc-item .ur { font-size: 1rem; line-height: 1.8; flex: 1; text-align: right; }
.mc-pinned { border-color: color-mix(in srgb, var(--accent) 60%, var(--edge)); }
.mc-star { color: #e0a100; width: 18px; height: 18px; }
.mc-hold { flex-direction: column; align-items: stretch; gap: 4px; outline: 2px solid var(--accent); outline-offset: -1px; }
.mc-hint { align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }
.mc-foot { font-size: .78rem; color: var(--dim); text-align: center; }

/* paste & translate mock */
.mp-key {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--brand); color: var(--on-brand); font-weight: 650; font-size: .9rem;
}
.mp-key .icon { width: 18px; height: 18px; }
.mp-card { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--edge); }
.mp-src { font-weight: 600; }
.mp-out { font-size: 1.15rem; text-align: right; padding-top: 6px; border-top: 1px dashed var(--edge); }

/* sounds & themes mock */
.sound-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.sound-chips li { padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--edge); font-size: .8rem; font-weight: 550; }
.sound-chips li.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--edge); }
.seg span { text-align: center; padding: 7px 4px; border-radius: 9px; font-weight: 650; font-size: .86rem; color: var(--dim); }
.seg .on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }

/* extras */
.extras { margin-top: clamp(40px, 6vw, 72px); }
.extras-title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 24px; }
.extras-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.extras-grid li { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); }
.extras-grid .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; }
.extras-grid h4 { font-size: 1.08rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.extras-grid p { color: var(--dim); font-size: .95rem; }
@media (max-width: 900px) { .extras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .extras-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Languages ---------- */
.languages { background: var(--bg-alt); }
.lang-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.lang-card { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; align-content: start; }
.lang-card-wide { grid-column: 1 / -1; }
.lang-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.lang-card h3 .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.lang-card > p { color: var(--dim); }
.key-langs { margin: 0; display: grid; gap: 10px; }
.key-langs div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--edge); }
.key-langs dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.key-langs dd { margin: 0; font-weight: 650; }
.key-langs .ur { line-height: 1; font-size: 1.05rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--edge); font-size: .92rem; font-weight: 550; line-height: 1.2;
}
.chip-key { border-color: color-mix(in srgb, var(--brand) 55%, var(--edge)); background: var(--brand-soft); }
.chip-voice::after, .dot-voice { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--listen); flex: none; }
.chip-key::before, .dot-key { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); flex: none; }
.chips-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--dim); font-size: .92rem; }
.chip-ios { border-style: dashed; color: var(--text); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; color: var(--dim); padding-top: 6px; border-top: 1px solid var(--edge); }
.legend li { display: inline-flex; align-items: baseline; gap: 8px; }
.legend .dot { transform: translateY(-1px); }
.dot { display: inline-block; }
@media (max-width: 760px) { .lang-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Start ---------- */
.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.start-card { display: flex; flex-direction: column; gap: 22px; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: clamp(20px, 3.2vw, 34px); box-shadow: var(--shadow); }
.start-head { display: flex; align-items: center; gap: 14px; }
.start-head > .icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--brand); color: var(--on-brand); }
.start-head h3 { font-size: 1.35rem; }
.start-head p { color: var(--dim); font-size: .92rem; }
.num-steps { list-style: none; counter-reset: n; display: grid; gap: 14px; }
.num-steps li { counter-increment: n; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
.num-steps li::before {
  content: counter(n); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.num-steps b { font-size: 1.05rem; line-height: 1.4; padding-top: 4px; }
.num-steps span { color: var(--dim); font-size: .95rem; }
.good-to-know { padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--edge); font-size: .93rem; }
.good-to-know h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-bottom: 10px; }
.good-to-know .plain { gap: 9px; }
@media (max-width: 860px) { .start-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Privacy ---------- */
.privacy { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.zero-row { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.zero-row li {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--edge); font-weight: 650; color: var(--dim);
}
.zero-row strong { font-size: 1.5rem; line-height: 1; color: var(--brand-ink); }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.p-card { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.p-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 16px; }
.p-card h3 .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.p-card .plain { font-size: .97rem; }
.privacy-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--dim); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; min-height: 44px; }
.text-link .icon { width: 18px; height: 18px; }
@media (max-width: 820px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: 100px; margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--edge); border-radius: 16px; }
.faq-list details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--edge)); box-shadow: var(--shadow); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 650; font-size: 1.04rem; line-height: 1.4; border-radius: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 22px; height: 22px; color: var(--brand-ink); transition: transform .2s ease; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list summary:hover { color: var(--brand-ink); }
.answer { padding: 0 20px 20px; color: var(--dim); display: grid; gap: 10px; }
@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .section-head { position: static; margin-bottom: 8px; }
}

/* ---------- CTA ---------- */
.cta { padding-top: 0; }
.cta-card {
  text-align: center; display: grid; justify-items: center;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px); border-radius: 32px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(63, 182, 206, 0.22), transparent 70%),
    linear-gradient(160deg, #006078, #003e4e);
  color: #ffffff;
}
.cta-card .hl { color: #ffffff; background-image: linear-gradient(transparent 62%, rgba(63, 182, 206, 0.3) 62%, rgba(63, 182, 206, 0.3) 92%, transparent 92%); }
.cta-card .lead, .cta-card .req { color: rgba(255, 255, 255, 0.92); margin-inline: auto; }
.cta-icon { display: block; margin: 0 auto 24px; width: 88px; height: auto; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35)); }
.cta-card .store-btn { background: #ffffff; color: #0f1a1f; box-shadow: none; }
.cta-card .store-btn .icon { color: #006078; }
.cta-card .store-btn:hover { background: #e6f6fa; }
.cta-card :focus-visible { outline-color: #ffffff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--edge); padding-block: 48px 36px; background: var(--bg); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: grid; gap: 12px; max-width: 340px; }
.footer-brand p { color: var(--dim); font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.footer-nav ul { list-style: none; display: grid; gap: 0; align-content: start; }
.footer-nav a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .95rem; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--brand-ink); text-decoration: underline; }
.footer-nav .icon { width: 17px; height: 17px; color: var(--dim); }
.footer-legal { margin-top: 36px; padding-top: 22px; background: linear-gradient(var(--edge), var(--edge)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; display: grid; gap: 6px; font-size: .84rem; color: var(--dim); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .store-btn:hover { transform: none; }
  /* the hero shows its finished state: everything in place, no loops */
  .hero *, .hero *::before, .hero *::after { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .demo-toggle, .skip-link, .hero-bg { display: none; }
  .hero *, .hero *::before, .hero *::after { animation: none !important; }
  .section { padding-block: 24px; }
}

/* ---------- Top: words in, translation out ----------
   Roman Urdu comes in from the left, loops, enters the mic, and leaves on the ribbon in
   Bahasa. The copy sits above; the drawing fills the section behind it. */
.intro {
  --in-ink: #0f1a1f;
  --in-dim: #8b989e;
  --in-teal: #0a6a80;
  --in-bg: #f6fbfc;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(560px, min(calc(100svh - 68px), 860px));
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(63, 182, 206, 0.14), transparent 70%),
    var(--in-bg);
  border-bottom: 1px solid var(--edge);
}
@supports (overflow: clip) { .intro { overflow: clip; } }
.intro-copy {
  position: relative; z-index: 2; text-align: center;
  padding-top: clamp(20px, 4.5vh, 56px); padding-bottom: clamp(190px, 27vh, 240px);
  display: flex; flex-direction: column; align-items: center;
}
.intro-title {
  color: var(--in-ink); font-weight: 850;
  font-size: clamp(2.3rem, min(1.1rem + 4.4vw, 8.4vh), 4.9rem); line-height: 1.04; letter-spacing: -0.04em;
  max-width: 24ch;
}
.intro-title .it-a, .intro-title .it-b { display: block; }
.intro-title .it-b { color: var(--in-teal); }
/* Plus Jakarta's full stop sits wide at this weight and size; tucked in to the word. */
.intro-title .it-dot { margin-left: -0.07em; }
.intro-lead {
  margin-top: clamp(14px, 2.4vh, 26px); max-width: 40rem;
  font-size: clamp(1.05rem, .98rem + .35vw, 1.24rem); line-height: 1.55; color: var(--dim);
}
.intro-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(18px, 3.4vh, 32px); }
.intro-stores .badge-img { height: clamp(46px, 6.6vh, 54px); }
.intro-avail { margin-top: 14px; font-size: .92rem; color: var(--dim); }

.intro-flow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.intro-flow .hf-svg { display: block; width: 100%; height: 100%; }
.hf-in-text { font-size: 23px; font-weight: 500; fill: var(--in-dim); letter-spacing: .005em; }
.hf-out-text { font-size: 20px; font-weight: 600; fill: #ffffff; letter-spacing: .005em; }
.hf-ribbon { fill: none; stroke: var(--in-teal); stroke-width: 40; }
.hf-pill-bg { fill: #ffffff; stroke: var(--in-ink); stroke-width: 3; filter: drop-shadow(0 6px 14px rgba(0, 60, 78, 0.18)); }
/* The bars are a live waveform: script.js moves them every frame, like audio coming in. */
.hf-bars rect { fill: var(--in-ink); }
.hf-tag, .hf-tag-out { font-size: .72em; font-weight: 800; letter-spacing: .08em; }
.hf-tag { fill: var(--in-teal); }
.hf-tag-out { fill: #bfeef8; }
/* The chip above the mic: listening in one language, then translated into the other. */
.hf-chip-bg { fill: #ffffff; stroke: var(--in-ink); stroke-width: 2; transition: fill .3s ease, stroke .3s ease; }
.hf-chip-text { font-size: 18px; font-weight: 700; fill: var(--in-ink); letter-spacing: .01em; transition: fill .3s ease; }
.hf-chip-dot { fill: #e53935; animation: hf-blink 1s ease-in-out infinite; }
.hf-check { fill: none; stroke: #ffffff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.hf-chip.is-done .hf-chip-bg { fill: var(--in-teal); stroke: var(--in-teal); }
.hf-chip.is-done .hf-chip-text { fill: #ffffff; }
.hf-chip.is-done .hf-chip-dot { opacity: 0; animation: none; }
.hf-chip.is-done .hf-check { opacity: 1; }
@keyframes hf-blink { 50% { opacity: .35; } }

.intro-motion {
  position: absolute; z-index: 3; bottom: clamp(16px, 3vw, 32px);
  left: clamp(16px, 3vw, 36px);
  left: max(clamp(16px, 3vw, 36px), calc((100% - var(--wrap)) / 2)); /* in line with the content on big screens */
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--edge);
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--in-teal); box-shadow: var(--shadow);
}
.intro-motion .icon { width: 20px; height: 20px; }
.intro-motion:hover { transform: translateY(-1px); }
.intro.is-paused .hf-chip-dot { animation-play-state: paused; }

@media (prefers-color-scheme: dark) {
  .intro { --in-ink: #f1f3f4; --in-dim: #6f7b82; --in-teal: #3fb6ce; --in-bg: #0f1113; }
  .hf-ribbon { stroke: #0e6c82; }
  .hf-pill-bg { fill: #191c1f; stroke: #e8eaed; }
  .hf-chip-bg { fill: #191c1f; stroke: #e8eaed; }
  .hf-chip.is-done .hf-chip-bg { fill: #0e6c82; stroke: #0e6c82; }
  .intro-title .it-b { color: #6fcbdd; }
}
/* On phones and tablets the drawing keeps a fixed, smaller scale instead of being stretched to
   cover the section: the mic pill and its chip stay neat, not big and heavy. */
@media (max-width: 1100px) {
  .intro-flow .hf-svg { position: absolute; left: 50%; bottom: 0; width: 1080px; height: 540px; transform: translateX(-50%); }
}
/* Small tablets: a little smaller again, so the words' loop on the left is not cut off. */
@media (min-width: 761px) and (max-width: 900px) {
  .intro-flow .hf-svg { width: 860px; height: 430px; }
}
@media (max-width: 760px) {
  .intro { min-height: 0; }
  .intro-copy { padding-bottom: 150px; }
  .intro-flow .hf-svg { width: 792px; height: 396px; }
  .hf-chip-text { font-size: 24px; }
  .intro-stores .badge-img { height: 46px; }
  .hf-in-text { font-size: 26px; }
  .hf-out-text { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-chip-dot { animation: none; }
}

/* ---------- Works in the apps you already use ----------
   A dark band between the top and the poster section; the logos roll past, slowly. */
.apps { background: var(--in-bg, #f6fbfc); padding: 0; }
.apps-card {
  position: relative; overflow: hidden;
  z-index: 3;
  border-radius: 28px 28px 0 0;
  background: #0f1a1f; color: #f1f3f4;
  padding: clamp(22px, 3vw, 32px) 0 clamp(14px, 2vw, 20px);
  text-align: center;
}
.apps-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9fdbe8;
  padding-inline: var(--gutter);
}
.apps-marquee {
  display: flex; margin-top: clamp(14px, 2vw, 20px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.apps-track {
  --apps-gap: clamp(28px, 4vw, 56px);
  list-style: none; margin: 0; padding: 0 var(--apps-gap) 0 0;
  display: flex; flex: none; align-items: center; gap: var(--apps-gap);
  animation: apps-roll 48s linear infinite;
}
.apps-track li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: #ffffff; }
.apps-track .app-icon { width: 24px; height: 24px; flex: none; opacity: .95; }
.apps-track span { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.apps-marquee:hover .apps-track, .apps-marquee:focus-within .apps-track, .apps.is-paused .apps-track { animation-play-state: paused; }
@keyframes apps-roll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.apps-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(12px, 1.6vw, 16px); padding-inline: var(--gutter); }
.apps-note { margin: 0; font-size: .78rem; line-height: 1.4; color: #8e9ba1; }
.apps-motion {
  flex: none;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid #2f3c42; cursor: pointer;
  display: grid; place-items: center; background: #172329; color: #9fdbe8;
}
.apps-motion .icon { width: 13px; height: 13px; }
.apps-motion:focus-visible { outline: 3px solid #6fcbdd; outline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  .apps { background: var(--in-bg, #0f1113); }
  .apps-card { background: #172227; }
}
@media (max-width: 760px) {
  .apps-card { border-radius: 22px 22px 0 0; }
  .apps-track .app-icon { width: 20px; height: 20px; }
  .apps-track span { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .apps-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 18px; flex: 1 1 100%; padding: 0 var(--gutter); }
  .apps-track[aria-hidden="true"] { display: none; }
  .apps-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Demo phone: a messaging-app chat ----------
   The look of a familiar chat app (green bar, warm wallpaper, ticks) without anyone's
   name or logo. Scenes change the contact and the languages; see script.js. */
.phone.wa {
  --wa-bar: #008069; --wa-bar-ink: #ffffff; --wa-wall: #efeae2; --wa-in: #ffffff; --wa-out: #d9fdd3;
  --wa-ink: #111b21; --wa-time: #667781; --wa-tick: #53bdeb; --wa-green: #00a884; --wa-field: #ffffff;
}
@media (prefers-color-scheme: dark) {
  .phone.wa {
    --wa-bar: #1f2c34; --wa-bar-ink: #e9edef; --wa-wall: #0b141a; --wa-in: #202c33; --wa-out: #005c4b;
    --wa-ink: #e9edef; --wa-time: #8696a0; --wa-field: #2a3942;
  }
}
.phone.wa .chat-head { background: var(--wa-bar); color: var(--wa-bar-ink); border-bottom: 0; padding: 10px 12px; gap: 8px; }
.phone.wa .wa-back { width: 20px; height: 20px; flex: none; margin-right: -4px; }
.phone.wa .avatar { width: 32px; height: 32px; background: linear-gradient(135deg, #8ad8c4, #2c8c76); transition: opacity .3s ease; }
.phone.wa .chat-name { flex: 1; min-width: 0; color: var(--wa-bar-ink); }
.phone.wa .chat-name small { color: var(--wa-bar-ink); opacity: .8; }
.phone.wa .wa-acts { display: flex; gap: 14px; margin-left: auto; }
.phone.wa .wa-acts svg { width: 19px; height: 19px; }
.phone.wa .chat-body {
  background-color: var(--wa-wall);
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1.2px);
  background-size: 14px 14px;
  min-height: 170px; padding: 10px 10px 12px; gap: 6px;
}
.phone.wa .day { background: color-mix(in srgb, var(--wa-in) 88%, transparent); border: 0; color: var(--wa-time); box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1); }
.phone.wa .msg { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; column-gap: 8px; padding: 6px 8px 5px 9px; border-radius: 8px; font-size: 13.5px; color: var(--wa-ink); box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); max-width: 82%; }
.phone.wa .msg-in { background: var(--wa-in); border-top-left-radius: 0; }
.phone.wa .msg-out { background: var(--wa-out); border-top-right-radius: 0; border-bottom-right-radius: 8px; }
.phone.wa .msg-in::before, .phone.wa .msg-out::before { content: ""; position: absolute; top: 0; width: 8px; height: 10px; }
.phone.wa .msg-in::before { left: -7px; background: linear-gradient(to bottom left, var(--wa-in) 50%, transparent 50%); }
.phone.wa .msg-out::before { right: -7px; background: linear-gradient(to bottom right, var(--wa-out) 50%, transparent 50%); }
.phone.wa .msg-text { flex: 1 1 auto; }
.phone.wa .msg[dir="rtl"] .msg-text { text-align: right; }
.phone.wa .msg-time { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--wa-time); white-space: nowrap; margin-left: auto; }
.phone.wa .wa-ticks { width: 16px; height: 11px; color: var(--wa-tick); }
.phone.wa .composer { background: var(--wa-wall); border-top: 0; padding: 6px 8px 8px; gap: 6px; }
.phone.wa .field { background: var(--wa-field); border: 0; border-radius: 22px; color: var(--wa-ink); gap: 6px; padding: 6px 12px 6px 9px; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1); }
.phone.wa .field[dir="rtl"] { direction: rtl; }
.phone.wa .wa-emoji { width: 20px; height: 20px; flex: none; color: var(--wa-time); }
.phone.wa .placeholder { color: var(--wa-time); }
.phone.wa .caret { background: var(--wa-green); }
.phone.wa .send { background: var(--wa-green); color: #ffffff; width: 38px; height: 38px; position: relative; }
.phone.wa .send .icon { position: absolute; width: 18px; height: 18px; transition: opacity .2s ease, transform .2s ease; }
.phone.wa .wa-send-icon { opacity: 0; transform: scale(.6); }
.phone.wa .field.has-text + .send .wa-send-icon { opacity: 1; transform: none; }
.phone.wa .field.has-text + .send .wa-mic-icon { opacity: 0; transform: scale(.6); }
.phone.wa .chat-body, .phone.wa .chat-head .chat-name, .phone.wa .avatar { transition: opacity .3s ease; }
.demo.is-switching .phone.wa .chat-body, .demo.is-switching .phone.wa .chat-name, .demo.is-switching .phone.wa .avatar { opacity: 0; }
.heard-text.is-ltr { direction: ltr; }
.kb-heard.is-ltr { justify-content: flex-start; }

/* The keyboard's language pill, over the screenshot's own, so it can follow the scene. */
.kb-real { container-type: inline-size; }
.kb-pill {
  position: absolute; left: 34.3%; top: 1.7%; width: 14.6%; height: 12%;
  display: flex; align-items: center; justify-content: center; gap: .15em;
  border-radius: 999px; background: #32363a; line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 3.05cqi; font-weight: 700;
}
.kp-from { color: #9ca2a7; font-weight: 600; }
.kp-arrow { color: #9ca2a7; font-size: .9em; }
.kp-to { color: #ffffff; }

/* A phone of a real phone's shape: status bar, the chat filling the screen, the keyboard,
   the home bar. */
/* The phone fits the window's height as well as its width. The whole demo - the phone with
   the buttons beside it and the caption under it - fits in the screen under the sticky header
   (scroll-padding-top: 84px) with 12px to spare: the phone gets the height that is left after
   --cap, the caption's room (its height and the gap above it). The phone is 9:19.3, so its
   width is 0.4663 of its height. Never under 200px wide, the smallest that stays readable. */
.demo {
  position: relative;
  --vh: 100vh;
  --cap: 4.875rem;
  --pwh: max(200px, calc((var(--vh) - 96px - var(--cap)) * 0.4663));
}
@supports (height: 100svh) { .demo { --vh: 100svh; } }
.phone.wa {
  --pw: min(100%, 360px, var(--pwh));
  aspect-ratio: 9 / 19.3;
  display: flex; flex-direction: column;
  border-radius: 46px; padding: 11px;
  position: relative;
}
.phone.wa::before {
  content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 25px; border-radius: 999px; background: #050607; z-index: 4;
}
.phone.wa > * { flex: none; }
.phone.wa .wa-status {
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 6px 26px 0 30px; border-radius: 36px 36px 0 0;
  background: var(--wa-bar); color: var(--wa-bar-ink); font-size: 13.5px; font-weight: 700;
}
.phone.wa .wa-status-icons { width: 58px; height: 12px; }
.phone.wa .chat-head { border-radius: 0; }
.phone.wa .chat-body { flex: 1 1 auto; min-height: 0; }
/* On a small phone the chat is short: the older lines slide up under the chat's bar, as in a
   real chat, and the newest message is always shown whole instead of being squashed. */
.phone.wa .chat-body { overflow: hidden; }
.phone.wa .chat-body > * { flex-shrink: 0; }
.phone.wa .kb-real { border-radius: 0; }
.phone.wa .wa-home { height: 22px; background: #1b1b1b; border-radius: 0 0 36px 36px; display: grid; place-items: center; }
.phone.wa .wa-home i { width: 36%; height: 4px; border-radius: 4px; background: #e8eaed; opacity: .85; }

/* The keyboard's pill steps aside while the heard words have the toolbar. */
.demo[data-state="listen"] .kb-pill, .demo[data-state="translate"] .kb-pill, .demo[data-state="type"] .kb-pill { opacity: 0; }
.kb-pill { transition: opacity .2s ease; }

/* "Hear it": the demo speaks - what you say as you say it, then the translation read aloud. */
.demo-sound {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; white-space: nowrap;
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--brand-ink);
  background: var(--surface); border: 1px solid var(--edge); border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow);
}
.demo-sound .icon { width: 20px; height: 20px; }
.demo-sound[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.demo-sound.is-speaking .icon { animation: hf-blink 1s ease-in-out infinite; }
/* Hear it and Pause stand in a column on the phone's right (the mode buttons on its left):
   see "See it in action: the whole demo on one screen" below. */
.demo-ctrls { order: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.demo-ctrls .demo-toggle { order: 0; }

/* ---------- Security bar under the header: one line; the details are in the privacy section ----------
   Deep brand teal with the green "100% Secure" seal, glowing on and off, and
   a shine passing over it. Slow and soft - no flashing - and still with reduced motion. */
.trust { position: relative; z-index: 2; background: linear-gradient(90deg, #06323d, #0a5a6c 50%, #06323d); color: #ffffff; overflow: hidden; }
.trust-line {
  display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 58px; padding: 5px 16px;
  color: #ffffff; text-decoration: none; font-size: .95rem; letter-spacing: .02em;
}
/* The seal: shield with a tick, "100%" on the dark bar, "SECURE" on the bright one. It glows
   on and off, and a shine passes over it now and then. */
.secure-seal { position: relative; display: inline-block; line-height: 0; border-radius: 12px; overflow: hidden; animation: ss-glow 1.6s ease-in-out infinite; }
.secure-seal svg { display: block; height: 48px; width: auto; }
.ss-big { font-family: var(--font); font-size: 38px; font-weight: 800; fill: #ffffff; letter-spacing: -0.02em; }
.ss-small { font-family: var(--font); font-size: 31px; font-weight: 800; fill: #ffffff; letter-spacing: .04em; }
.secure-seal::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg); animation: tb-shine 3.2s ease-in-out infinite;
}
@keyframes ss-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(139, 214, 58, 0)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 10px rgba(139, 214, 58, 0.85)); transform: scale(1.04); }
}
.trust-line:hover .secure-seal, .trust-line:hover .secure-seal::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .secure-seal, .secure-seal::after { animation: none; } .secure-seal::after { display: none; } }
@media (max-width: 460px) { .secure-seal svg { height: 40px; } .trust-line { min-height: 50px; gap: 10px; } }
.trust-see { font-size: .85rem; font-weight: 700; color: #ffe08a; }
.trust-see::after { content: "\2193"; margin-left: 6px; display: inline-block; animation: tb-nudge 1.6s ease-in-out infinite; }
.trust-line:hover .trust-see { text-decoration: underline; text-underline-offset: 3px; }
.trust-line:hover .trust-see::after { animation-play-state: paused; }
.trust-line:focus-visible { outline: 3px solid #ffc83d; outline-offset: -3px; }
@keyframes tb-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes tb-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  .trust-see::after { animation: none; }
}

/* A wrapping row, so the fifth item fills the last line instead of leaving a hole. */
.secure-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; scroll-margin-top: 96px; }
.secure-list li { flex: 1 1 340px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--edge); font-weight: 600; line-height: 1.45; }
.secure-list .icon { width: 22px; height: 22px; flex: none; color: var(--brand-ink); margin-top: 1px; }

/* The seal under the store badges, on the page's own background. */
.intro-secure { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(12px, 2vh, 20px); text-decoration: none; border-radius: 14px; }
.intro-secure .trust-see { color: var(--in-teal); }
.intro-secure:hover .trust-see { text-decoration: underline; text-underline-offset: 3px; }
.intro-secure:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.intro-secure:hover .secure-seal, .intro-secure:hover .secure-seal::after, .intro-secure:hover .trust-see::after { animation-play-state: paused; }
.intro-secure .secure-seal svg { height: clamp(44px, 6vh, 52px); }

/* ---------- Demo modes: voice typing, the live translator, the clipboard ----------
   The panels are drawn over the real keyboard's screenshot, in its own colours, and sized
   in container units so they scale with the phone. */
.kp-live, .kp-clip { position: absolute; inset: 0; display: none; line-height: 1.25; color: #e8eaed; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.demo[data-mode="live"] .kp-live, .demo[data-mode="clip"] .kp-clip { display: block; }
.demo[data-mode="live"] .kb-pill, .demo[data-mode="clip"] .kb-pill { opacity: 1; }

.kp-live { background: #1b1b1b; display: none; flex-direction: column; padding: 0 2.6cqi 2.4cqi; }
.demo[data-mode="live"] .kp-live { display: flex; }
.kpl-bar { display: flex; align-items: center; gap: 1.9cqi; height: 15.4cqi; flex: none; margin-inline: -0.4cqi; }
.kpl-c { width: 8.9cqi; height: 8.9cqi; border-radius: 50%; background: #2f3236; display: grid; place-items: center; flex: none; color: #e8eaed; }
.kpl-c .icon { width: 4.6cqi; height: 4.6cqi; }
.kpl-on { color: #3fb6ce; }
.kpl-title { flex: 1; text-align: center; color: #8ab4f8; font-size: 3.8cqi; }
.kpl-pills { display: flex; align-items: center; gap: 2.2cqi; flex: none; }
.kpl-pill { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 9.6cqi; padding: 0 2.6cqi; border-radius: 2.2cqi; border: .4cqi solid #4a4f54; background: #26292c; font-size: 3.6cqi; color: #e8eaed; transition: border-color .25s ease, color .25s ease; }
.kpl-pill i { font-style: normal; font-size: 2.6cqi; color: #9aa0a6; }
.kpl-pill.is-on { border-color: #3fb6ce; color: #3fb6ce; }
.kpl-pill.is-on i { color: #3fb6ce; }
.kpl-mic { position: relative; width: 11.5cqi; height: 11.5cqi; border-radius: 50%; background: #3a3d41; display: grid; place-items: center; color: #3fb6ce; flex: none; transition: background-color .25s ease, color .25s ease; }
.kpl-mic .icon { width: 5.6cqi; height: 5.6cqi; }
.kpl-mic.is-listen { background: var(--listen); color: #fff; }
.kpl-mic.is-listen::after { content: ""; position: absolute; inset: -1.2cqi; border-radius: 50%; border: .5cqi solid var(--listen); animation: ring 1.2s ease-out infinite; }
.kpl-mic.is-translate { background: var(--translating); color: #fff; }
.kpl-hint { flex: none; text-align: center; font-size: 2.7cqi; color: #9aa0a6; height: 4.4cqi; line-height: 4.4cqi; }
.kpl-conv { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.4cqi; border: .3cqi solid #3c4043; border-radius: 2.2cqi; padding: 1.8cqi; }
.kpl-empty { margin: auto 0; text-align: center; font-size: 3.1cqi; color: #9aa0a6; }
.kpl-line { display: flex; flex-direction: column; gap: .7cqi; max-width: 88%; }
.kpl-line.from-left { align-self: flex-start; }
.kpl-line.from-right { align-self: flex-end; align-items: flex-end; }
.kpl-orig { margin: 0; padding: 1.3cqi 2.2cqi; border-radius: 2cqi; background: #303438; font-size: 3.2cqi; }
.kpl-orig[dir="rtl"], .kpl-trans[dir="rtl"] { font-family: var(--font-ur-keys); font-size: 3.6cqi; }
.kpl-trans { margin: 0; display: flex; align-items: center; gap: 1.6cqi; padding: 1.3cqi 2.2cqi; border-radius: 2cqi; background: #0e5d6f; color: #fff; font-size: 3.2cqi; opacity: 0; transform: translateY(1cqi); transition: opacity .3s ease, transform .3s ease; }
.kpl-trans.is-on { opacity: 1; transform: none; }
.kpl-trans .icon { width: 3.4cqi; height: 3.4cqi; flex: none; opacity: .85; }
.kpl-orig .w { opacity: 0; transition: opacity .2s ease; }
.kpl-orig .w.on { opacity: 1; }
.kpl-paste { flex: none; margin-top: 1.6cqi; height: 7.6cqi; border-radius: 2cqi; border: .3cqi solid #3c4043; display: flex; align-items: center; justify-content: center; gap: 1.6cqi; color: #8ab4f8; font-size: 3.3cqi; }
.kpl-paste .icon { width: 3.8cqi; height: 3.8cqi; }

.kpc-x { position: absolute; left: 75.4%; top: 1.4%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #33363a; display: grid; place-items: center; color: #e8eaed; }
.kpc-x .icon { width: 45%; height: 45%; }
.kpc-panel { position: absolute; left: 0; right: 0; top: 15.5%; bottom: 0; background: #232425; padding: 2.4cqi 3cqi; display: flex; flex-direction: column; }
.kpc-head { display: flex; align-items: center; justify-content: space-between; }
.kpc-head b { color: #8ab4f8; font-weight: 500; font-size: 4cqi; }
.kpc-head .icon { width: 4.4cqi; height: 4.4cqi; }
.kpc-sub { margin: 1.2cqi 0 1.6cqi; font-size: 2.9cqi; color: #9aa0a6; }
.kpc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8cqi; flex: 1; min-height: 0; overflow: hidden; }
.kpc-item { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2cqi; padding: 2.2cqi 2cqi; border-radius: 1.6cqi; font-size: 3.6cqi; transition: background-color .2s ease; }
.kpc-item span[dir="rtl"] { font-family: var(--font-ur-keys); font-size: 3.9cqi; }
.kpc-star { width: 4.6cqi; height: 4.6cqi; flex: none; color: #9aa0a6; }
.kpc-star.is-on { color: #fbbc04; fill: #fbbc04; }
.kpc-item.is-press { background: #3a3d41; }
.kpc-item.is-hold { background: #2a3a3f; }
.kpc-item.is-hold::after { content: ""; position: absolute; left: 0; bottom: 0; height: .7cqi; width: 0; background: #3fb6ce; animation: kpc-hold .9s linear forwards; }
@keyframes kpc-hold { to { width: 100%; } }
.kpc-clear { margin: auto 0 0; padding-top: 1cqi; color: #f28b82; font-size: 3.6cqi; }

/* Three buttons beside the phone: pick what it shows. */
.demo-modes { display: flex; justify-content: center; gap: clamp(10px, 2vw, 18px); }
.dm-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px; width: 96px;
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; line-height: 1.2; color: var(--dim);
}
.dm-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); color: var(--brand-ink); transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.dm-ic .icon { width: 22px; height: 22px; }
.dm-btn:hover .dm-ic { transform: translateY(-2px); }
.dm-btn[aria-pressed="true"] { color: var(--brand-ink); }
.dm-btn[aria-pressed="true"] .dm-ic { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.dm-btn:focus-visible { outline: none; }
.dm-btn:focus-visible .dm-ic { outline: 3px solid var(--focus); outline-offset: 3px; }
.demo[data-mode="live"] .msg-out:not(.is-shown), .demo[data-mode="clip"] .msg-out:not(.is-shown) { display: none; }
.demo[data-mode="live"] .chat-body, .demo[data-mode="live"] .composer { opacity: .45; transition: opacity .3s ease; }

/* Phones: the three mode buttons stand on the phone's left, sound and pause on its right -
   round buttons with their word under them, as on wider screens. */
@media (max-width: 599px) {
  .showcase .wrap { padding-inline: 8px; }
  .showcase .showcase-copy { padding-inline: 8px; }
  .demo { grid-template-columns: 50px minmax(0, 1fr) 50px; column-gap: 4px; align-items: center; justify-items: center; }
  .demo > .phone { grid-column: 2; grid-row: 1; }
  .demo-modes { grid-column: 1; grid-row: 1; flex-direction: column; gap: 16px; }
  .demo-ctrls { grid-column: 3; grid-row: 1; order: 0; flex-direction: column; flex-wrap: nowrap; gap: 16px; }
  .demo-caption { grid-column: 1 / -1; }
  .dm-btn, .demo .demo-sound, .demo .demo-toggle {
    width: 50px; flex-direction: column; gap: 5px; padding: 0; min-height: 0;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    font-size: .62rem; font-weight: 700; line-height: 1.15; color: var(--dim); white-space: normal; text-align: center;
  }
  .dm-ic, .demo .demo-sound .icon, .demo .demo-toggle .icon {
    box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); color: var(--brand-ink);
  }
  .demo .demo-sound .icon, .demo .demo-toggle .icon { padding: 12px; }
  .dm-ic .icon { width: 19px; height: 19px; }
  .demo .demo-sound[aria-pressed="true"] { color: var(--brand-ink); background: none; }
  .demo .demo-sound[aria-pressed="true"] .icon { background: var(--brand); color: var(--on-brand); border-color: transparent; }
  .demo .demo-toggle[hidden] { display: none; }
}

/* ---------- See it in action: the whole demo on one screen ----------
   From 600px, the same arrangement as on phones, with bigger buttons: the three mode buttons
   in a column on the phone's left, Hear it and Pause on its right, and only the caption under
   the phone. Up to 959px the demo has the full width under the steps; from 960px it stands
   beside them. Either way, scrolled to, the phone, all five buttons and the caption are on
   the screen together (the phone's size: --pwh, above). */
@media (min-width: 600px) {
  .demo {
    --side: 84px;
    grid-template-columns: minmax(var(--side), 1fr) min(360px, var(--pwh), 100% - 2 * var(--side) - 32px) minmax(var(--side), 1fr);
    align-items: center; column-gap: 16px; row-gap: 12px;
  }
  .demo > .phone { grid-column: 2; grid-row: 1; }
  .demo-modes { grid-column: 1; grid-row: 1; justify-self: end; flex-direction: column; gap: 14px; }
  .demo-ctrls { grid-column: 3; grid-row: 1; justify-self: start; order: 0; flex-direction: column; flex-wrap: nowrap; gap: 14px; }
  .demo-caption { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .dm-btn, .demo .demo-sound, .demo .demo-toggle {
    width: var(--side); flex-direction: column; gap: 6px; padding: 0; min-height: 0;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    font-size: .8rem; font-weight: 700; line-height: 1.2; color: var(--dim); white-space: normal; text-align: center;
  }
  .demo .demo-sound .icon, .demo .demo-toggle .icon {
    box-sizing: border-box; width: 52px; height: 52px; padding: 15px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); color: var(--brand-ink);
    transition: transform .15s ease, background-color .2s ease, color .2s ease;
  }
  .demo .demo-sound:hover .icon, .demo .demo-toggle:hover .icon { transform: translateY(-2px); }
  .demo .demo-sound[aria-pressed="true"] { color: var(--brand-ink); background: none; }
  .demo .demo-sound[aria-pressed="true"] .icon { background: var(--brand); color: var(--on-brand); border-color: transparent; }
  .demo .demo-sound:focus-visible, .demo .demo-toggle:focus-visible { outline: none; }
  .demo .demo-sound:focus-visible .icon, .demo .demo-toggle:focus-visible .icon { outline: 3px solid var(--focus); outline-offset: 3px; }
  .demo .demo-toggle[hidden] { display: none; }
}
/* Beside the steps: the demo's column a little wider than theirs up to 1099px, half each
   from 1100px; the demo at the top of its column, level with the heading. */
@media (min-width: 960px) {
  .showcase-grid { align-items: start; }
  .showcase-copy { padding-top: 24px; }
}
@media (min-width: 960px) and (max-width: 1099px) {
  .showcase-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; }
}

/* ==========================================================================
   Fitting every screen: phones, tablets, laptops and big screens
   ========================================================================== */

/* The privacy cards and the "Good to know" boxes open and close like the FAQ. They start
   open; below 1100px (phones and tablets) script.js closes them, so those sections read as a
   short list of headings. */
details.p-card > summary,
details.good-to-know > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
}
details.p-card > summary::-webkit-details-marker,
details.good-to-know > summary::-webkit-details-marker { display: none; }
details.p-card > summary h3, details.good-to-know > summary h4 { margin-bottom: 0; }
details.p-card[open] > summary { margin-bottom: 16px; }
details.good-to-know[open] > summary { margin-bottom: 10px; }
details.p-card > summary:hover h3 { color: var(--brand-ink); }
.p-chev { width: 22px; height: 22px; flex: none; color: var(--brand-ink); transition: transform .2s ease; }
details[open] > summary .p-chev { transform: rotate(180deg); }

/* Where two sections share the page's background, one gap between them, not two. */
.examples, .privacy { padding-bottom: calc(var(--section-y) * .5); }
.features, .faq { padding-top: calc(var(--section-y) * .5); }

/* A full-size tap target for the logos' pause button on touch screens. */
@media (pointer: coarse) { .apps-motion { width: 44px; height: 44px; } }

/* ---------- Tablets ---------- */
/* Features, 700-860px: tag, heading and text full width; the ticks beside a 300px picture. */
@media (min-width: 700px) and (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); column-gap: 28px; row-gap: 0; align-items: start; }
  .feature-copy { display: contents; }
  .feature-copy > * { grid-column: 1 / -1; }
  .feature-copy > .tag { justify-self: start; }
  .feature-copy > .ticks, .feature-copy > .fine { grid-column: 1; }
  .feature-visual { grid-column: 2; grid-row: 4 / span 2; margin-top: 20px; padding: 14px; border-radius: 20px; }
}
/* Languages: the short "On the keys" card narrower, and not stretched to its neighbour. */
@media (min-width: 761px) { .lang-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
/* Getting started: the app screenshot smaller where it has a row of its own. */
@media (min-width: 600px) and (max-width: 1099px) { .app-shot { max-width: 380px; } }

/* ---------- Laptops and desktops ---------- */
@media (min-width: 861px) {
  /* the copy column a little wider, the picture's box tighter */
  .feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(28px, 3.5vw, 44px); }
  .feature-flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } /* the picture comes first here */
  .feature-visual { min-height: 0; padding: clamp(18px, 2.6vw, 32px); }
}
@media (min-width: 960px) {
  /* The poster: as wide as the rest of the page, and never taller than the screen. */
  .hero { padding-block: clamp(16px, 4vh, 40px) clamp(24px, 6vh, 72px); }
  .hero-wrap { max-width: min(calc(var(--wrap) + 2 * var(--gutter)), calc((100svh - 160px) * 1.62 + 2 * var(--gutter))); }
  .hero-phones { align-self: center; }
}
@media (min-width: 1100px) {
  /* Getting started: the app screenshot beside the heading, not alone in a row. */
  .start .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: clamp(32px, 5vw, 72px); align-items: center; }
  .start .section-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .start .app-shot { grid-column: 2; grid-row: 1; margin: 0 0 clamp(28px, 4vw, 48px); }
  .start .start-grid { grid-column: 1 / -1; }
}
@media (min-width: 1101px) {
  /* The top drawing keeps its own size instead of growing with the window's width: on big
     screens the mic pill and its chip stay neat, and the loop is never cut off. */
  .intro-flow .hf-svg {
    position: absolute; left: 50%; bottom: 0;
    width: clamp(1440px, 75vw, 1800px); height: auto; aspect-ratio: 2 / 1;
    transform: translateX(-50%); overflow: visible; /* the flow still reaches both edges */
  }
}
/* Big screens: a wider column and slightly larger type, so the page doesn't float in the middle. */
@media (min-width: 1680px) { :root { --wrap: 1280px; } }
@media (min-width: 2200px) { :root { --wrap: 1400px; } html { font-size: 112.5%; } }

/* ---------- Phones: compact, and each repeat left to one place ---------- */
@media (max-width: 760px) {
  /* the words' loop at the left edge fades out, instead of showing upside down */
  .intro-flow {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 72px);
            mask-image: linear-gradient(90deg, transparent 0, #000 72px);
  }
}
@media (max-width: 599px) {
  /* rhythm and type */
  :root { --section-y: 44px; }
  .section-head { margin-bottom: 22px; }
  .eyebrow { margin-bottom: 8px; font-size: .8125rem; }
  h2 { font-size: clamp(1.55rem, 1.1rem + 2vw, 1.85rem); }
  .lead { font-size: 1rem; line-height: 1.55; margin-top: 10px; }
  .fine { font-size: .84rem; margin-top: 12px; }
  .apps-title, .apps-note, .cap-label, .ex-label, .key-langs dt, .good-to-know h4, .legend { font-size: .8125rem; }
  .apps-motion { width: 44px; height: 44px; }

  /* the poster: lighter type and smaller phones; every piece stays */
  .hero-logo img { width: 19cqi; }
  .hero-logo-alien { font-size: 14.5cqi; }
  .hero-logo-kb { font-size: 6cqi; }
  .hero-banner { margin-top: 4cqi; }
  .hero-title { margin-top: 5cqi; font-size: 8.2cqi; font-weight: 800; }
  .hs-num { font-size: 17cqi; }
  .hs-label { font-size: 5cqi; }
  .hero-get { margin-top: 6cqi; }
  .hp { font-size: 1.35cqi; }

  /* See it in action: the lead and the fine print show on phones too, a little smaller */
  .showcase .lead { font-size: .97rem; }
  .demo-steps { margin-top: 16px; gap: 8px; }
  .demo-steps li { padding: 10px 12px; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; }
  .demo-steps li::before { width: 30px; height: 30px; }
  .demo-steps b { font-size: .98rem; padding-top: 3px; }
  .demo-steps span { font-size: .875rem; }
  /* the buttons beside the phone get 64px columns, so their words can be 13px */
  .demo { grid-template-columns: 64px minmax(0, 1fr) 64px; column-gap: 2px; row-gap: 12px; --cap: 124px; }
  .dm-btn, .demo .demo-sound, .demo .demo-toggle { width: 64px; font-size: .8125rem; letter-spacing: -.01em; }
  .demo-caption { width: calc(100% - 16px); padding: 8px 12px; }

  /* Compare */
  .compare-grid { gap: 12px; }
  .compare-card { padding: 18px; }
  .compare-card h3 { margin-bottom: 14px; font-size: 1.05rem; }
  .steps-chain { gap: 6px; }
  .steps-chain li { padding: 6px 10px; font-size: .84rem; gap: 6px; }
  .steps-big { gap: 8px; }
  .steps-big li { font-size: 1rem; padding: 10px 14px; }
  .compare-sum { padding-top: 14px; }
  .compare-new .fine { margin-top: 10px; }

  /* Bahasa to English, and the small extras: a row to swipe; the next card peeks in */
  .ex-grid, .extras-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  }
  .ex-grid::-webkit-scrollbar, .extras-grid::-webkit-scrollbar { display: none; }
  .ex-grid:focus-visible, .extras-grid:focus-visible { outline-offset: -3px; }
  .ex-card { flex: 0 0 82%; scroll-snap-align: start; box-shadow: none; }
  .ex-card p { padding: 14px 16px; }

  /* Features: every picture and the fine print show on phones too, in a compact size */
  .feature { gap: 16px; padding-block: 24px; }
  .feature-copy h3 { font-size: 1.35rem; }
  .feature-copy > p:not(.tag):not(.fine) { margin-top: 10px; font-size: .97rem; line-height: 1.55; }
  .tag { margin-bottom: 10px; padding: 4px 10px; font-size: .8125rem; }
  .ticks { gap: 6px; margin-top: 12px; font-size: .94rem; line-height: 1.5; }
  .ticks li { padding-left: 26px; }
  .ticks li::before { width: 18px; height: 18px; top: .15em; background-size: 12px; }
  .feature-visual { padding: 0; min-height: 0; background: none; border: 0; border-radius: 0; }
  .feature-visual .mock { width: 100%; padding: 14px; gap: 10px; box-shadow: var(--shadow); }
  .mu-keys .k { height: 32px; font-size: 15px; }
  .sound-chips li { padding: 3px 9px; font-size: .8125rem; }
  .extras { margin-top: 28px; }
  .extras-title { font-size: 1.2rem; margin-bottom: 10px; }
  .extras-grid { gap: 10px; }
  .extras-grid li { flex: 0 0 78%; scroll-snap-align: start; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-content: start; column-gap: 12px; padding: 14px 16px; }
  .extras-grid .icon { grid-row: span 2; width: 36px; height: 36px; padding: 8px; margin: 0; }
  .extras-grid h4 { font-size: 1rem; margin-bottom: 2px; align-self: center; }
  .extras-grid p { font-size: .9rem; line-height: 1.5; }

  /* Languages: every chip, the legend and the note stay */
  .lang-grid { gap: 12px; }
  .lang-card { padding: 16px; gap: 10px; }
  .lang-card h3 { font-size: 1.08rem; }
  .chips { gap: 6px; }
  .chip { padding: 5px 10px; font-size: .84rem; }
  .chips-extra { font-size: .875rem; }

  /* Getting started: all six setup steps, the screenshot and the store badges stay */
  .start .app-shot { max-width: 340px; margin: 0 auto 24px; }
  .start-grid { gap: 12px; }
  .start-card { gap: 16px; padding: 18px; }
  .start-head > .icon { width: 40px; height: 40px; padding: 9px; }
  .start-head h3 { font-size: 1.2rem; }
  .num-steps { gap: 10px; }
  .num-steps li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; }
  .num-steps li::before { width: 30px; height: 30px; }
  .num-steps b { font-size: 1rem; padding-top: 3px; }
  .num-steps span { font-size: .9rem; line-height: 1.5; }
  .good-to-know { padding: 4px 14px; font-size: .875rem; line-height: 1.5; }
  details.good-to-know[open] { padding-bottom: 12px; }
  .badge-block .badge-img { height: 46px; }

  /* Privacy: the five-point list, the "0" row and the four cards (open) all show */
  .zero-row { gap: 8px; margin-bottom: 18px; }
  .secure-list { gap: 8px; margin-bottom: 16px; }
  .secure-list li { padding: 10px 12px; font-weight: 550; font-size: .93rem; }
  .privacy-grid { gap: 10px; }
  .p-card { padding: 8px 16px; }
  details.p-card[open] { padding-bottom: 16px; }
  .p-card h3 { font-size: 1.05rem; }
  .p-card h3 .icon { width: 30px; height: 30px; padding: 6px; }
  details.p-card[open] > summary { margin-bottom: 10px; }
  .p-card .plain { font-size: .9rem; gap: 8px; line-height: 1.5; }
  .privacy-foot { margin-top: 16px; font-size: .9rem; }

  /* FAQ, Download, footer */
  .faq-list { gap: 8px; }
  .faq-list summary { padding: 14px 16px; font-size: .98rem; }
  .answer { padding: 0 16px 16px; }
  .cta-card { padding: 32px 18px; border-radius: 24px; }
  .cta-icon { width: 64px; margin-bottom: 16px; }
  .site-footer { padding-block: 32px 24px; }
  .footer-grid { gap: 12px; }
  .footer-nav { width: 100%; gap: 0 16px; }
  .footer-nav ul:first-child { width: 100%; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .footer-legal { margin-top: 16px; font-size: .8125rem; }
}

/* The original app logo, where the small alien mark used to be. */
.eyebrow picture { display: contents; }
.eyebrow-logo { width: 1.6em; height: 1.6em; border-radius: 22%; flex: none; }
.pk-tb.pk-logo { background: transparent; overflow: hidden; }
.pk-tb.pk-logo picture { display: contents; }
.pk-tb.pk-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

/* ==========================================================================
   Why it helps: the phone walkthrough (#compare)
   A phone acts out each step of the two cards: the usual way - write, copy, open a
   translator app, paste, copy the translation, switch back, paste and send - then the same
   message with Alien Keyboard. A tap marker shows every tap, the caption under the phone
   names the step, and the same step lights up in its card. Driven by the last block of
   script.js; without JS the phone shows step 1 and the cards read as before.
   Sizing: like the "See it in action" phone, it follows the window's height, so the switch
   above it, the phone and the caption under it fit under the sticky header (84px) with 12px
   to spare: --cw-ctrl is their room. The phone is 9:19.3 (width = 0.4663 x height).
   Everything inside the screen is in cqi/cqw/cqh of the screen, so it scales as one picture.
   ========================================================================== */
.cw {
  --vh: 100vh;
  --cw-ctrl: 128px;   /* switch 52 + gap 10 + gap 10 + caption 54, and a little slack */
  --cw-side: 44px;    /* the back and next buttons beside the phone */
  --cw-sgap: 12px;
  --cw-pwh: max(200px, calc((var(--vh) - 96px - var(--cw-ctrl)) * 0.4663));
  --cw-pw: min(360px, var(--cw-pwh), calc(100vw - 2 * var(--gutter) - 2 * (var(--cw-side) + var(--cw-sgap)))); /* 360: the same cap as the "See it in action" phone */
  --cw-col: calc(var(--cw-pw) + 2 * (var(--cw-side) + var(--cw-sgap)));
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
}
@supports (height: 100svh) { .cw { --vh: 100svh; } }

/* the stage: the switch, the phone between back and next, the caption and pause */
.cw-stage {
  display: grid; grid-template-columns: var(--cw-side) var(--cw-pw) var(--cw-side);
  column-gap: var(--cw-sgap); row-gap: 10px; justify-content: center; align-items: center; align-content: center;
}
.cw-stage:not(.is-ready) .cw-js { visibility: hidden; } /* the buttons work only with JS; their room is kept */
.cw-switch {
  grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: auto auto; gap: 4px; padding: 3px;
  background: var(--surface); border: 1px solid var(--edge); border-radius: 999px; box-shadow: var(--shadow);
}
.cw-sw {
  min-height: 44px; padding: 4px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: inherit; font-size: .875rem; font-weight: 700; line-height: 1.15; color: var(--dim);
  transition: background-color .2s ease, color .2s ease;
}
.cw-sw:hover { color: var(--text); background: var(--brand-soft); }
.cw-sw[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.cw-nav {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--edge); background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cw-nav:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--edge)); }
.cw-nav svg { width: 20px; height: 20px; }
.cw-prev { grid-column: 1; grid-row: 2; }
.cw-prev svg { transform: rotate(90deg); }
.cw-next { grid-column: 3; grid-row: 2; }
.cw-next svg { transform: rotate(-90deg); }
.cw-pause { flex: none; }
.cw-pause[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.cw-pause[hidden] { display: none; }
.cw-bar { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cw-cap {
  flex: 1; min-width: 0; height: 54px; display: grid; align-content: center; gap: 1px; padding: 2px 14px; container: cw-cap / inline-size;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); overflow: hidden;
}
.cw-cap-k {
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cw-cap-k::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; background: var(--danger-ink); }
/* "The usual way · " in the caption: in a narrow caption (small phones, or a short window that
   makes the phone small) it gives way to the step number - the switch above the phone already
   names the way - and the step's text gets a little smaller, so it keeps to two lines */
@container cw-cap (max-width: 239px) { .cw-cap .cw-cap-p { display: none; } .cw-cap .cw-cap-t { font-size: .8125rem; } }
.cw[data-part="new"] .cw-cap-k::before { background: var(--brand); }
.cw-cap-t {
  font-size: .9rem; font-weight: 700; line-height: 1.15; color: var(--text); /* two lines fit the 54px caption */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}

/* the phone */
.cw-phone {
  grid-column: 2; grid-row: 2; position: relative; width: var(--cw-pw); aspect-ratio: 9 / 19.3;
  border-radius: calc(var(--cw-pw) * .135);
  background: linear-gradient(160deg, #23292d, #0b0e10);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  user-select: none; -webkit-user-select: none;
  /* the chat app: the same colours as the "See it in action" chat */
  --wa-bar: #008069; --wa-bar-ink: #ffffff; --wa-wall: #efeae2; --wa-in: #ffffff; --wa-out: #d9fdd3;
  --wa-ink: #111b21; --wa-time: #667781; --wa-tick: #53bdeb; --wa-green: #00a884; --wa-field: #ffffff;
  /* the translator app (made up) and the phone's own keyboard */
  --tr-bg: #f4f5fa; --tr-bar: #ffffff; --tr-card: #ffffff; --tr-edge: #e1e4ee; --tr-ink: #1b1f2a; --tr-dim: #646d80; --tr-acc: #3f51d6; --tr-out: #eceffd;
  --ks-bg: #d1d4da; --ks-key: #ffffff; --ks-sp: #aab0bb; --ks-ink: #15171a;
}
@media (prefers-color-scheme: dark) {
  .cw-phone {
    --wa-bar: #1f2c34; --wa-bar-ink: #e9edef; --wa-wall: #0b141a; --wa-in: #202c33; --wa-out: #005c4b;
    --wa-ink: #e9edef; --wa-time: #8696a0; --wa-field: #2a3942;
    --tr-bg: #121418; --tr-bar: #1a1d23; --tr-card: #1e222a; --tr-edge: #2c313b; --tr-ink: #eef0f6; --tr-dim: #9aa2b4; --tr-acc: #9aa6ff; --tr-out: #21263e;
    --ks-bg: #1c1c1e; --ks-key: #4a4a4e; --ks-sp: #2f2f32; --ks-ink: #f2f2f2;
  }
}
.cw-screen {
  position: absolute; inset: calc(var(--cw-pw) * .033); overflow: hidden; isolation: isolate;
  border-radius: calc(var(--cw-pw) * .105);
  container-type: size;
  background: radial-gradient(120% 70% at 50% 0%, #2d4952, #0c1518 72%); /* behind the apps: seen in the app switcher */
  font-family: var(--font); line-height: 1.3; letter-spacing: 0;
}
.cw-screen > * { font-size: max(11px, 4.9cqi); }
.cw-screen svg { display: block; }
.cw-island { position: absolute; z-index: 8; top: 2.6cqi; left: 50%; width: 29cqi; height: 8cqi; margin-left: -14.5cqi; border-radius: 99px; background: #050607; }

/* each app fills the screen; the app switcher shows both, small, side by side */
.cw-app {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  border-radius: calc(var(--cw-pw) * .105); transform-origin: 50% 50%;
  transition: transform .55s cubic-bezier(.3, .8, .25, 1), box-shadow .55s ease;
}
.cw-app > * { flex: none; }
.cw-chat { background: var(--wa-wall); color: var(--wa-ink); }
.cw-tr { background: var(--tr-bg); color: var(--tr-ink); transform: translateX(125%) scale(.44); }
.cw-screen[data-view="translator"] .cw-chat { transform: translateX(-125%) scale(.44); }
.cw-screen[data-view="translator"] .cw-tr { transform: none; }
.cw-screen[data-view="switcher"] .cw-chat { transform: translateX(-26%) scale(.44); }
.cw-screen[data-view="switcher"] .cw-tr { transform: translateX(26%) scale(.44); }
.cw-screen[data-view="switcher"] .cw-app { box-shadow: 0 6cqi 16cqi rgba(0, 0, 0, 0.55); }
.cw-labels { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .2s ease; }
.cw-screen[data-view="switcher"] .cw-labels { opacity: 1; transition-delay: .3s; }
.cw-lab {
  position: absolute; top: calc(28% - 9cqi); left: 24%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 1.6cqi; white-space: nowrap;
  color: #ffffff; font-size: max(10px, 3.9cqi); font-weight: 700;
}
.cw-lab + .cw-lab { left: 76%; }
.cw-appic { width: 6.5cqi; height: 6.5cqi; flex: none; display: grid; place-items: center; border-radius: 1.8cqi; color: #ffffff; }
.cw-appic svg { width: 72%; height: 72%; }
.cw-appic-chat { background: #00a884; }
.cw-appic-tr { background: linear-gradient(135deg, #6f7dff, #3a4bd3); }

.cw-status {
  height: 12.5cqi; display: flex; align-items: center; justify-content: space-between; padding: 1.4cqi 7.5cqi 0 9cqi;
  font-size: max(10px, 4.2cqi); font-weight: 700;
}
.cw-status svg { width: 15cqi; height: 3.2cqi; }
.cw-chat .cw-status, .cw-head { background: var(--wa-bar); color: var(--wa-bar-ink); }
.cw-tr .cw-status { background: var(--tr-bar); color: var(--tr-ink); }
.cw-home { height: 6cqi; display: grid; place-items: center; }
.cw-home i { width: 34%; height: 1.3cqi; border-radius: 99px; background: currentColor; opacity: .8; }
.cw-chat .cw-home { background: var(--ks-bg); color: var(--ks-ink); }
.cw-screen[data-kb="ak"] .cw-chat .cw-home { background: #1b1b1b; color: #e8eaed; }
.cw-tr .cw-home { background: var(--tr-bar); color: var(--tr-ink); }

/* the chat */
.cw-head { height: 15cqi; display: flex; align-items: center; gap: 2.4cqi; padding: 0 4cqi 0 2cqi; }
.cw-back { width: 6cqi; height: 6cqi; flex: none; }
.cw-avatar {
  width: 9.5cqi; height: 9.5cqi; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: max(10px, 4.4cqi); font-weight: 700; color: #ffffff; background: linear-gradient(135deg, #8ad8c4, #2c8c76);
}
.cw-name { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.cw-name b { font-size: max(11px, 4.8cqi); font-weight: 650; }
.cw-name small { font-size: max(9px, 3.4cqi); opacity: .8; }
.cw-acts { display: flex; gap: 4.5cqi; }
.cw-acts svg { width: 5.6cqi; height: 5.6cqi; }
.cw-body {
  flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2cqi;
  padding: 3cqi 4cqi 3.5cqi;
  background-color: var(--wa-wall);
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1.2px); background-size: 14px 14px;
}
.cw-body > * { flex: none; }
.cw-day {
  align-self: center; margin-bottom: auto; padding: .5cqi 3cqi; border-radius: 99px;
  font-size: max(9.5px, 3.3cqi); font-weight: 600; color: var(--wa-time);
  background: color-mix(in srgb, var(--wa-in) 88%, transparent); box-shadow: 0 1px .5px rgba(0, 0, 0, 0.1);
}
.cw-msg {
  position: relative; margin: 0; max-width: 84%;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; column-gap: 2.4cqi;
  padding: 1.8cqi 2.4cqi 1.4cqi 2.8cqi; border-radius: 2.4cqi;
  font-size: max(11px, 4.9cqi); line-height: 1.3; color: var(--wa-ink); box-shadow: 0 1px .5px rgba(0, 0, 0, 0.13);
}
.cw-mt { flex: 1 1 auto; }
.cw-in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 0; }
.cw-out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 0; visibility: hidden; transform-origin: 100% 100%; } /* its room is kept: nothing moves when it is sent */
.cw-in::before, .cw-out::before { content: ""; position: absolute; top: 0; width: 2.4cqi; height: 3cqi; }
.cw-in::before { left: -2.2cqi; background: linear-gradient(to bottom left, var(--wa-in) 50%, transparent 50%); }
.cw-out::before { right: -2.2cqi; background: linear-gradient(to bottom right, var(--wa-out) 50%, transparent 50%); }
.cw-time { display: inline-flex; align-items: center; gap: .8cqi; margin-left: auto; white-space: nowrap; font-size: max(9px, 3.1cqi); color: var(--wa-time); }
.cw-time svg { width: 4.6cqi; height: 3.2cqi; color: var(--wa-tick); }
.cw-screen.is-sent .cw-out { visibility: visible; animation: cw-pop .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes cw-pop { from { opacity: 0; transform: scale(.6) translateY(3cqi); } }

.cw-composer { position: relative; height: 15cqi; display: flex; align-items: center; gap: 2cqi; padding: 0 2.5cqi 1cqi; background: var(--wa-wall); }
.cw-field {
  flex: 1; min-width: 0; height: 11cqi; display: flex; align-items: center; gap: 1.6cqi; padding: 0 3.2cqi 0 2.4cqi;
  border-radius: 99px; background: var(--wa-field); color: var(--wa-ink); box-shadow: 0 1px .5px rgba(0, 0, 0, 0.1);
}
.cw-emoji { width: 5.6cqi; height: 5.6cqi; flex: none; color: var(--wa-time); }
/* the text: long text shows its end, as a text field does; Urdu sits on the right. The
   placeholder is out of the flow, so the text never moves when it appears. */
.cw-tw { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; white-space: nowrap; }
.cw-typed { flex: none; margin-right: auto; font-size: max(11px, 4.7cqi); }
.cw-typed[dir="rtl"] { margin-right: 0; margin-left: auto; font-family: var(--font-ur); font-size: max(11.5px, 5cqi); line-height: 1.55; }
.cw-ph { color: var(--wa-time); font-size: max(11px, 4.7cqi); }
.cw-tw .cw-ph { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); }
.cw-field.has-text .cw-ph { display: none; }
.cw-field.is-focus .cw-typed::after, .cw-tr-in.is-focus .cw-tr-typed::after {
  content: ""; display: inline-block; width: 2px; height: 1.1em; margin-inline: 1px; vertical-align: middle;
  background: var(--wa-green); animation: blink 1s steps(1) infinite;
}
.cw-typed.is-sel { background: rgba(0, 122, 255, 0.26); box-shadow: -2px 0 0 #2f7cf6, 2px 0 0 #2f7cf6; }
.cw-typed.is-sel::after { display: none !important; }
.cw-send { position: relative; width: 11cqi; height: 11cqi; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--wa-green); color: #ffffff; transition: transform .15s ease; }
.cw-send svg { position: absolute; width: 5.4cqi; height: 5.4cqi; transition: opacity .2s ease, transform .2s ease; }
.cw-send-ic { opacity: 0; transform: scale(.6); }
.cw-field.has-text + .cw-send .cw-send-ic { opacity: 1; transform: none; }
.cw-field.has-text + .cw-send .cw-mic-ic { opacity: 0; transform: scale(.6); }
.cw-send.is-press { transform: scale(.84); }
/* With Alien Keyboard, the keyboard's mic is the one to tap: the chat app's own voice-note mic
   gives way to a resting send button, so only one mic shows */
.cw-screen[data-kb="ak"] .cw-field:not(.has-text) + .cw-send { background: color-mix(in srgb, var(--wa-green) 45%, var(--wa-wall)); }
.cw-screen[data-kb="ak"] .cw-field:not(.has-text) + .cw-send .cw-mic-ic { opacity: 0; transform: scale(.6); }
.cw-screen[data-kb="ak"] .cw-field:not(.has-text) + .cw-send .cw-send-ic { opacity: 1; transform: none; }
/* ...and a tag names the keyboard, on the chat wall just above the message field */
.cw-kb-tag {
  position: absolute; z-index: 2; left: 3cqi; bottom: calc(6cqi + 72.96cqi + 15cqi + 2cqi);
  display: inline-flex; align-items: center; gap: 1.2cqi; padding: 1.2cqi 3cqi 1.2cqi 2cqi; border-radius: 99px;
  background: #1b1b1b; color: #ffffff; font-size: max(10px, 3.6cqi); font-weight: 700; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 1.5cqi 4cqi rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity .3s ease;
}
.cw-kb-tag svg { width: 4.4cqi; height: 4.4cqi; flex: none; color: #7fd8e8; }
.cw-screen[data-kb="ak"]:not(.is-sent) .cw-kb-tag { opacity: 1; }
.cw-screen.is-sent .cw-kb-tag { transition-duration: .12s; } /* out of the way of the sent message */

/* the edit menu ("Select all | Copy", "Paste") and the "Copied" toast */
.cw-menu {
  position: absolute; z-index: 3; left: 44%; bottom: calc(100% - .6cqi); display: flex; white-space: nowrap;
  background: #2c2c2e; color: #ffffff; border-radius: 2.4cqi; box-shadow: 0 2cqi 6cqi rgba(0, 0, 0, 0.35);
  font-size: max(10.5px, 4.2cqi); font-weight: 600;
  opacity: 0; visibility: hidden; transform: translateX(-50%) scale(.85); transform-origin: 50% 100%;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.cw-menu::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -1.8cqi; border: 1.8cqi solid transparent; border-top-color: #2c2c2e; }
.cw-menu.is-on { opacity: 1; visibility: visible; transform: translateX(-50%); transition-delay: 0s; }
.cw-mi { padding: 2cqi 3.6cqi; }
.cw-mi + .cw-mi { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.cw-mi:first-child { border-top-left-radius: inherit; border-bottom-left-radius: inherit; }
.cw-mi:last-child { border-top-right-radius: inherit; border-bottom-right-radius: inherit; }
.cw-mi.is-hit { background: rgba(255, 255, 255, 0.24); }
@media (prefers-color-scheme: dark) { /* lighter, with an edge, so it stands out on the dark cards */
  .cw-menu { background: #48484a; box-shadow: 0 2cqi 6cqi rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
  .cw-menu::after { border-top-color: #48484a; }
}
.cw-toast {
  position: absolute; z-index: 5; left: 50%; top: 26%; display: inline-flex; align-items: center; gap: 1.6cqi; white-space: nowrap;
  padding: 2.2cqi 4.2cqi; border-radius: 99px; background: rgba(32, 33, 36, 0.94); color: #ffffff;
  font-size: max(11px, 4.4cqi); font-weight: 650; box-shadow: 0 2cqi 6cqi rgba(0, 0, 0, 0.3);
  opacity: 0; transform: translate(-50%, 3cqi); transition: opacity .2s ease, transform .25s ease;
}
.cw-toast svg { width: 4.8cqi; height: 4.8cqi; color: #7fd39b; }
.cw-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* on empty space: in the chat between "Today" and the messages, in the translator between the
   last Recent row and the bottom bar */
.cw-screen[data-view="translator"] .cw-toast { top: 84%; }

/* the keyboards: an ordinary one for the usual way, Alien Keyboard for the other */
.cw-kb { position: relative; height: 72.96cqi; } /* the real keyboard's screenshot is 1080 x 788 */
.cw-kb > div { position: absolute; inset: 0; }
.cw-screen[data-kb="sys"] .cw-kb-ak, .cw-screen[data-kb="ak"] .cw-kb-sys { visibility: hidden; }
.cw-kb-sys {
  display: grid; grid-template-rows: 10.5cqi repeat(4, minmax(0, 1fr)); row-gap: 2.4cqi; padding: 0 1.2cqi 2.2cqi;
  background: var(--ks-bg); color: var(--ks-ink);
}
.cw-sugg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; text-align: center; font-family: var(--font-ur-keys); font-size: max(10px, 4.4cqi); }
.cw-sugg span + span { border-left: 1px solid color-mix(in srgb, var(--ks-ink) 20%, transparent); }
.cw-krow { display: flex; gap: 1.3cqi; }
.cw-krow-2 { padding-inline: 4.6cqi; }
.cw-krow i {
  flex: 1 1 0; min-width: 0; display: grid; place-items: center; border-radius: 1.4cqi;
  background: var(--ks-key); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  font-style: normal; font-family: var(--font-ur-keys); font-size: max(10px, 5cqi); line-height: 1;
  transition: background-color .08s ease;
}
.cw-krow i.cw-ksp { flex-grow: 1.45; background: var(--ks-sp); }
.cw-krow i svg { width: 5.2cqi; height: 5.2cqi; }
.cw-krow i.cw-k123 { font-family: var(--font); font-size: max(9px, 3.6cqi); }
.cw-krow i.cw-kspace { flex-grow: 5; }
.cw-krow i.cw-kret { flex-grow: 2; }
.cw-krow i.is-press { background: var(--ks-sp); }
.cw-kb .cw-kb-ak { border-radius: 0; }
.cw-wave {
  position: absolute; left: 23%; top: 0; width: 52%; height: 15.5%;
  display: flex; align-items: center; justify-content: center; gap: 1.3cqi;
  background: #242424; line-height: normal; opacity: 0; transition: opacity .25s ease;
}
.cw-wave i { width: 1.2cqi; height: 58%; border-radius: 99px; background: #6fd08e; transform: scaleY(.22); }
.cw-screen[data-mic="listen"] .cw-wave, .cw-screen[data-mic="translate"] .cw-wave { opacity: 1; }
/* red only while listening, so the wave fades out green after translating */
.cw-screen[data-mic="listen"] .cw-wave i { background: #ff6b63; animation: cw-wave .62s ease-in-out infinite alternate; }
.cw-wave i:nth-child(3n+1) { animation-duration: .48s; animation-delay: -.2s; }
.cw-wave i:nth-child(4n+2) { animation-duration: .74s; animation-delay: -.35s; }
.cw-wave i:nth-child(5n+3) { animation-duration: .56s; animation-delay: -.1s; }
@keyframes cw-wave { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
/* reduced motion, or paused: a still waveform (not the flat first frame of the moving one) */
.cw-stage:is(.is-reduced, .is-still) .cw-wave i { transform: scaleY(.55); animation: none !important; }
.cw-stage:is(.is-reduced, .is-still) .cw-wave i:nth-child(2n) { transform: scaleY(.9); }
.cw-stage:is(.is-reduced, .is-still) .cw-wave i:nth-child(3n) { transform: scaleY(.35); }
.cw-stage:is(.is-reduced, .is-still) .cw-wave i:nth-child(5n) { transform: scaleY(1); }
.cw-kb-ak .kb-pill { transition: opacity .2s ease; }
.cw-screen[data-mic="listen"] .kb-pill, .cw-screen[data-mic="translate"] .kb-pill { opacity: 0; }
.cw-screen[data-mic="listen"] .kb-mic, .cw-screen[data-mic="translate"] .kb-mic { opacity: 1; }
.cw-screen[data-mic="listen"] .kb-mic::after { border-color: var(--listen); animation: ring 1.2s ease-out infinite; }
.cw-screen[data-mic="translate"] .kb-mic { background: var(--translating); }
.cw-screen[data-mic="translate"] .kb-mic::after { border-color: var(--translating); border-right-color: transparent; border-bottom-color: transparent; animation: spin .7s linear infinite; }
/* what you say, as a subtitle over the upper part of the chat, clear of the messages */
.cw-sub {
  position: absolute; z-index: 2; left: 50%; top: 44cqi; min-width: 58cqi;
  display: grid; justify-items: center; gap: .4cqi; padding: 1.8cqi 4cqi 1.2cqi; border-radius: 4cqi;
  background: rgba(17, 27, 33, 0.88); color: #ffffff; text-align: center; box-shadow: 0 2cqi 6cqi rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0; transform: translate(-50%, 2cqi); transition: opacity .25s ease, transform .25s ease;
}
.cw-sub.is-on { opacity: 1; transform: translate(-50%, 0); }
.cw-sub-k { display: inline-flex; align-items: center; gap: 1.2cqi; font-size: max(9.5px, 3.3cqi); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #ff9b94; }
.cw-sub-k svg { width: 3.6cqi; height: 3.6cqi; }
.cw-sub-t { font-family: var(--font-ur); font-size: max(13px, 5.8cqi); line-height: 1.75; white-space: nowrap; }
.cw-sub-t .w { opacity: 0; transition: opacity .2s ease; }
.cw-sub-t .w.on { opacity: 1; }

/* the translator app */
.cw-tr-bar { height: 14cqi; display: flex; align-items: center; gap: 2.6cqi; padding: 0 4.5cqi; background: var(--tr-bar); border-bottom: 1px solid var(--tr-edge); font-size: max(12px, 5.2cqi); }
.cw-tr-bar .cw-appic { width: 8cqi; height: 8cqi; border-radius: 2.4cqi; }
.cw-tr-langs { display: flex; align-items: center; gap: 2.4cqi; padding: 3.4cqi 4cqi; }
.cw-tr-langs span {
  flex: 1; text-align: center; padding: 1.8cqi 1cqi; border-radius: 99px; background: var(--tr-card); border: 1px solid var(--tr-edge);
  font-size: max(10.5px, 4.1cqi); font-weight: 650; color: var(--tr-acc); white-space: nowrap;
}
.cw-tr-langs svg { width: 5cqi; height: 5cqi; flex: none; color: var(--tr-dim); }
.cw-tr-box {
  position: relative; height: 46cqi; margin: 0 4cqi 3cqi; padding: 3cqi 3.6cqi; border-radius: 4cqi;
  display: flex; flex-direction: column; gap: 1.2cqi; background: var(--tr-card); border: 1px solid var(--tr-edge);
}
.cw-tr-box small { font-size: max(9.5px, 3.3cqi); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tr-dim); }
.cw-tr-tw { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-start; }
.cw-tr-typed { margin-left: auto; font-family: var(--font-ur); font-size: max(12px, 5.6cqi); line-height: 1.7; }
.cw-tr-tw .cw-ph { position: absolute; left: 0; top: 0; color: var(--tr-dim); font-size: max(11px, 5cqi); padding-top: .6cqi; }
.cw-tr-in.has-text .cw-ph { display: none; }
.cw-tr-in.is-focus .cw-tr-typed::after { background: var(--tr-acc); }
.cw-menu-tr { left: 76%; bottom: auto; top: .4cqi; } /* over the caret: Urdu starts on the right */
.cw-tr-out { background: var(--tr-out); border-color: transparent; }
.cw-tr-res { flex: 1; min-height: 0; font-size: max(12px, 5.6cqi); font-weight: 650; line-height: 1.35; color: var(--tr-acc); }
.cw-res-t { opacity: 0; transition: opacity .3s ease; }
.cw-tr-out.has-text .cw-res-t { opacity: 1; }
.cw-dots { display: none; gap: 1.2cqi; padding-top: 2cqi; }
.cw-tr-out.is-busy .cw-dots { display: flex; }
.cw-tr-out.is-busy .cw-res-t { display: none; }
.cw-dots i { width: 1.8cqi; height: 1.8cqi; border-radius: 50%; background: currentColor; animation: cw-dot 1s ease-in-out infinite; }
.cw-dots i:nth-child(2) { animation-delay: .15s; }
.cw-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cw-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.cw-tr-acts { display: flex; align-items: center; justify-content: space-between; color: var(--tr-dim); }
.cw-tr-acts > svg { width: 5.4cqi; height: 5.4cqi; }
.cw-tr-copy { width: 10cqi; height: 10cqi; display: grid; place-items: center; border-radius: 50%; color: var(--tr-acc); transition: background-color .2s ease; }
.cw-tr-copy svg { width: 5.4cqi; height: 5.4cqi; }
.cw-tr-copy.is-hit { background: color-mix(in srgb, var(--tr-acc) 22%, transparent); }
.cw-tr-recent { margin: 1cqi 4cqi 0; display: grid; gap: 1.6cqi; }
.cw-tr-recent small { font-size: max(9.5px, 3.3cqi); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tr-dim); }
.cw-tr-recent p {
  margin: 0; display: flex; align-items: center; gap: 2cqi; padding: 1.6cqi 3.4cqi; border-radius: 3cqi;
  background: var(--tr-card); border: 1px solid var(--tr-edge); font-size: max(10.5px, 4.1cqi); white-space: nowrap;
}
.cw-tr-recent [lang="ur"] { font-family: var(--font-ur); line-height: 1.6; }
.cw-tr-recent svg { width: 4cqi; height: 4cqi; flex: none; color: var(--tr-dim); }
.cw-tr-recent [lang="id"] { color: var(--tr-dim); }
.cw-tr-nav { margin-top: auto; height: 14cqi; display: flex; align-items: center; justify-content: space-around; background: var(--tr-bar); border-top: 1px solid var(--tr-edge); color: var(--tr-dim); }
.cw-tr-nav span { width: 14cqi; height: 8.5cqi; display: grid; place-items: center; border-radius: 99px; }
.cw-tr-nav span.is-on { background: color-mix(in srgb, var(--tr-acc) 16%, transparent); color: var(--tr-acc); }
.cw-tr-nav svg { width: 5.4cqi; height: 5.4cqi; }

/* the count at the end of each way */
.cw-sum {
  /* on the empty wall between "Today" and the messages, so the sent message stays readable under it */
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: start center; padding-top: 18.5cqh; background: rgba(6, 16, 20, 0.4);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.cw-sum.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.cw-sum-card {
  width: 74cqi; display: grid; justify-items: center; gap: .6cqi; padding: 5cqi; border-radius: 6cqi; text-align: center;
  background: var(--surface); color: var(--text); box-shadow: 0 6cqi 18cqi rgba(0, 0, 0, 0.4);
  transform: scale(.9); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.cw-sum.is-on .cw-sum-card { transform: none; }
.cw-sum-k { margin-bottom: 1.4cqi; font-size: max(10px, 3.5cqi); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.cw-sum-n { font-size: max(15px, 7.6cqi); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.cw-sum-n b { font-size: 1.3em; font-weight: 800; color: var(--danger-ink); }
.cw-sum[data-part="new"] .cw-sum-n b { color: var(--brand-ink); }

/* the tap marker: a soft circle that presses, with a ripple; a press-and-hold grows a ring */
.cw-finger {
  --fx: 50; --fy: 60;
  position: absolute; z-index: 10; left: 0; top: 0; width: 13cqi; height: 13cqi; margin: -6.5cqi 0 0 -6.5cqi; pointer-events: none;
  transform: translate(calc(var(--fx) * 1cqw), calc(var(--fy) * 1cqh));
  opacity: 0; transition: transform .5s cubic-bezier(.45, 0, .2, 1), opacity .25s ease;
}
.cw-finger.is-jump { transition: opacity .25s ease; }
.cw-finger.is-on { opacity: 1; }
.cw-finger::before, .cw-finger::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.cw-finger::before {
  background: rgba(63, 182, 206, 0.28); border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 3px 10px rgba(0, 0, 0, 0.35);
  transform: scale(1.35); transition: transform .25s ease;
}
.cw-finger.is-on::before { transform: none; }
.cw-finger.is-down::before, .cw-finger.is-hold::before { transform: scale(.8); }
.cw-finger::after { border: 2px solid rgba(63, 182, 206, 0.95); opacity: 0; }
.cw-finger.is-tap::before { animation: cw-press .35s ease; }
.cw-finger.is-tap::after { animation: cw-ripple .6s ease-out; }
.cw-finger.is-hold::after { animation: cw-hold .8s ease-out forwards; }
@keyframes cw-press { 50% { transform: scale(.74); } }
@keyframes cw-ripple { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(2.3); } }
@keyframes cw-hold { from { opacity: .25; transform: scale(.7); } to { opacity: 1; transform: scale(1.7); } }
/* reduced motion: the marker stands still on the spot to tap, with a ring round it */
.cw-stage.is-reduced .cw-finger.is-on::after { opacity: .85; transform: scale(1.6); animation: none; }
/* in a still picture only the ring stays, a little wider, so the word it points at ("Copy",
   "Paste") reads clearly inside it */
.cw-stage:is(.is-still, .is-reduced) .cw-finger::before { background: transparent; }
.cw-stage:is(.is-still, .is-reduced) .cw-finger.is-on::before { transform: scale(1.2); }
.cw-stage.is-reduced .cw-finger.is-on::after { transform: scale(1.75); }

/* set by script.js: a jump to a step lands without sliding; a pause holds every motion */
.cw-stage.cw-instant *, .cw-stage.cw-instant *::before, .cw-stage.cw-instant *::after { transition: none !important; }
.cw-stage.is-still .cw-phone *, .cw-stage.is-still .cw-phone *::before, .cw-stage.is-still .cw-phone *::after { animation-play-state: paused !important; }
/* a still picture shows the sent message whole, not the first frame of its pop */
.cw-stage.is-still .cw-screen.is-sent .cw-out { animation: none; }

/* the step the phone is on lights up in its card; finished steps get a tick; the other card rests */
.cw .compare-card { transition: opacity .4s ease; }
.cw .compare-card.is-dim { opacity: .88; } /* a light rest: its text keeps at least 4.5:1 contrast */
.cw .steps-chain li { transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease; }
.cw .steps-chain li::before { transition: background-color .3s ease, color .3s ease; }
.cw .steps-chain li.is-on {
  background: var(--surface); border-style: solid; border-color: var(--brand); color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent), var(--shadow);
}
.cw .steps-chain li.is-on::before { background: var(--brand); color: var(--on-brand); }
.cw .steps-chain li.is-done { color: var(--text); }
.cw .steps-chain li.is-done::before { content: "\2713"; background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand-ink); }
.cw .steps-big li.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent), var(--shadow); }
.cw .steps-big li.is-done::before { background: var(--brand); color: var(--on-brand); }

/* Layouts. Up to 959px: the phone with its switch and caption on a screen of its own, the
   two cards under it. 960-1099px: the phone on the left, the two cards stacked beside it.
   From 1100px: the usual way | the phone | Alien Keyboard, all on one screen. */
@media (min-width: 960px) and (max-width: 1099px) {
  .cw { grid-template-columns: var(--cw-col) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 40px); align-items: center; }
  .cw .compare-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cw .compare-card { padding: 18px 24px; }
  .cw .compare-card h3 { margin-bottom: 12px; }
  .cw .compare-sum { padding-top: 12px; }
  .cw .steps-big { gap: 8px; }
  .cw .steps-big li { padding: 10px 16px; }
  .cw .compare-new .fine { margin-top: 8px; font-size: .84rem; line-height: 1.5; }
}
@media (min-width: 1100px) {
  .cw { grid-template-columns: minmax(0, 1fr) var(--cw-col) minmax(0, 1fr); column-gap: clamp(20px, 2.4vw, 40px); align-items: center; }
  .cw .compare-grid { display: contents; }
  .cw .cw-stage { grid-column: 2; grid-row: 1; }
  .cw .compare-old { grid-column: 1; grid-row: 1; }
  .cw .compare-new { grid-column: 3; grid-row: 1; }
  .cw .compare-card { padding: clamp(20px, 2.2vw, 32px); }
  .cw .compare-old .steps-chain { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .cw .compare-old .steps-chain li { padding: 8px 14px; border-radius: 12px; }
}
/* a narrow phone: the composer drops its emoji icon so "Sampai jumpa besok sore" fits whole */
@container (max-width: 199px) { .cw-field .cw-emoji { display: none; } }
@container (max-width: 184px) { .cw-composer { padding-inline: 1.6cqi; gap: 1.6cqi; } .cw-field { padding-inline: 2.4cqi; } }
/* a small phone: the text has floors, so the count card is relatively taller; it moves up over
   "Today" to stay clear of Rina's message */
@container (max-width: 219px) { .cw-sum { padding-top: 13.5cqh; } }
@media (max-width: 599px) {
  .cw { gap: 16px; --cw-sgap: 6px; }
  .cw-sw { padding-inline: 8px; font-size: .8125rem; }
  .cw-cap { padding-inline: 12px; }
  .cw-cap-t { font-size: .875rem; }
}


/* ---------- Phones: a Download bar that stays at the bottom ----------
   Most visitors are on phones, so the store links are always one tap away. It appears once the
   top's own badges have scrolled away, and hides again while the Download section is on screen. */
.m-dl { display: none; }
@media (max-width: 760px) {
  .m-dl {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
    background: rgba(13, 23, 27, .94); color: #f1f3f4; text-decoration: none;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(0, 30, 40, .35), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: translateY(140%); opacity: 0; transition: transform .35s ease, opacity .35s ease; pointer-events: none;
  }
  .m-dl.is-on { transform: none; opacity: 1; pointer-events: auto; }
  .m-dl img { width: 40px; height: 40px; flex: none; }
  .m-dl .m-dl-t { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
  .m-dl .m-dl-t b { font-size: .98rem; font-weight: 800; }
  .m-dl .m-dl-t span { font-size: .8125rem; color: #a9bcc2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-dl .m-dl-b { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 14px;
    background: #3fb6ce; color: #06252d; font-weight: 800; font-size: .95rem; }
  .m-dl:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  body.has-m-dl .site-footer, body.has-m-dl footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .m-dl { transition: none; } }

/* ==========================================================================
   Laptop screens: every section fits one screen
   From 1100px wide and 600px tall, each section - or, for the long ones, each screen-sized
   block of it - fits under the sticky header (68px + 1px border = 69px) with room to spare:
   the heading with its content, phones and mock-ups whole. Long sections are split, never
   shortened: Features is one screen per article, Getting started is the heading with the
   app screenshot, then one screen per platform card, Privacy is the heading with the secure
   list and the 0-row, then the four cards. Nothing is hidden and no text changes. Gentle
   scroll snapping (proximity only, from 700px tall) lands each of these units under the
   header. Below 1100px wide nothing here applies.
   Self-contained: no other rule depends on it, so it can be copied as one block.
   ========================================================================== */
@media (min-width: 1100px) and (min-height: 600px) {
  :root { --hdr: 69px; --fit-vh: 100vh; --snap-pad: clamp(16px, 3vh, 40px); }
  @supports (height: 100svh) { :root { --fit-vh: 100svh; } }
  html { scroll-padding-top: var(--hdr); }
  /* one even gap above and below every section's content */
  .section { padding-block: var(--snap-pad); }
  /* the four section titles that share their screen with a side-by-side layout: one size,
     always above the h3s under them (36px at 1390x740, 48px at 1920x1080) */
  .compare .section-head h2, .examples .section-head h2, .features .section-head h2, .languages .section-head h2 {
    font-size: clamp(1.75rem, min(2.6vw, 5vh), 3rem);
  }

  /* top: exactly the screen under the header */
  .intro { min-height: max(560px, min(calc(var(--fit-vh) - var(--hdr)), 860px)); }

  /* small labels at least 12px; the walkthrough's caption label still fits on one line */
  .cap-label, .cw-cap-k { font-size: .75rem; }
  .cw-cap { padding-inline: 12px; }
  .cw-cap-k { letter-spacing: .03em; }
  .cw-cap-k::before { margin-right: 6px; }

  /* poster (.hero) */
  .hero { padding-block: clamp(12px, 3vh, 36px); }
  .hero-badge .badge-img { height: max(36px, min(9.4cqi, max(46px, 8cqi), 64px)); }

  /* See it in action: the heading in the copy column beside the demo; the phone takes the
     height left after the section's padding and the caption (--cap) */
  .showcase-grid { align-items: center; }
  .showcase-copy { padding-top: 0; }
  .showcase .demo { --pwh: max(184px, calc((var(--fit-vh) - var(--hdr) - 16px - 2 * var(--snap-pad) - var(--cap)) * 0.4663)); }

  /* Why it helps: heading and "The usual way" card on the left, the phone in the middle,
     "With Alien Keyboard" on the right - one grid on .wrap (.cw's own box steps aside) */
  .compare .wrap, .compare .cw {
    --cw-pwh: max(184px, calc((var(--fit-vh) - var(--hdr) - 16px - 2 * var(--snap-pad) - var(--cw-ctrl)) * 0.4663));
  }
  .compare .wrap {
    --cw-ctrl: 128px; --cw-side: 44px; --cw-sgap: 12px;
    --cw-pw: min(360px, var(--cw-pwh));
    --cw-col: calc(var(--cw-pw) + 2 * (var(--cw-side) + var(--cw-sgap)));
    display: grid; grid-template-columns: minmax(0, 1fr) var(--cw-col) minmax(0, 1fr); grid-template-rows: auto auto;
    column-gap: clamp(20px, 2.4vw, 40px); row-gap: 16px; align-items: center;
  }
  .compare .cw { display: contents; }
  .compare .section-head { grid-column: 1; grid-row: 1; align-self: end; margin: 0; max-width: none; }
  .compare .section-head .eyebrow { margin-bottom: 10px; }
  .compare .section-head .lead { margin-top: 10px; font-size: 1rem; }
  .compare .cw .cw-stage { grid-column: 2; grid-row: 1 / span 2; }
  .compare .cw .compare-old { grid-column: 1; grid-row: 2; align-self: start; }
  .compare .cw .compare-new { grid-column: 3; grid-row: 1 / span 2; }
  .compare .cw .compare-card { padding: clamp(18px, 1.8vw, 28px); }
  .compare .cw .compare-card h3 { margin-bottom: 14px; }
  .compare .cw .compare-sum { padding-top: 14px; }
  .compare .cw .compare-old .steps-chain { gap: 5px; }
  .compare .cw .compare-old .steps-chain li { padding: 5px 12px; font-size: .875rem; }

  /* Examples: heading, lead and the language-pair buttons on the left, the six cards right */
  .examples .wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 56px); align-items: start; }
  .examples .section-head { grid-column: 1; grid-row: 1 / span 2; margin: 0; max-width: none; }
  .examples .section-head .lead { margin-top: 12px; font-size: 1.0625rem; }
  .examples .ex-switch { margin-top: 18px; }
  .examples .ex-pairs { gap: 8px; }
  .examples .ex-grid { grid-column: 2; grid-row: 1; gap: 14px; }
  .examples .ex-card p { padding: 14px 16px; }
  .examples .ex-fine { grid-column: 2; grid-row: 2; margin-top: 14px; }

  /* Features: the heading shares the first article's screen; then one article per screen,
     copy beside its picture; "And the small things" is a screen of its own */
  .features .section-head { max-width: none; margin-bottom: 0; }
  .features .section-head .lead { max-width: none; margin-top: 8px; }
  .feature { padding-block: var(--snap-pad); }
  .feature-copy h3 { font-size: clamp(1.5rem, 2.1vw, 2.2rem); }
  .feature-copy .tag { margin-bottom: 10px; }
  .feature-copy > p:not(.tag):not(.fine) { margin-top: 12px; }
  .feature-copy .ticks { margin-top: 14px; gap: 7px; }
  .feature-copy .fine { margin-top: 12px; }
  .extras { margin-top: var(--snap-pad); scroll-margin-top: var(--snap-pad); }

  /* Languages: heading over "On the keys" on the left, the two tall cards beside them */
  .languages .wrap { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px 20px; align-items: stretch; }
  .languages .lang-grid { display: contents; }
  .languages .section-head { grid-column: 1; grid-row: 1; margin: 0; max-width: none; }
  .languages .section-head .lead { margin-top: 12px; font-size: 1.0625rem; }
  .languages .lang-card-wide { grid-column: 2; grid-row: 1 / span 2; }
  .languages .lang-card:nth-child(2) { grid-column: 1; grid-row: 2; }
  .languages .lang-card:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
  .languages .lang-card { padding: 20px 22px; gap: 12px; }
  .languages .chips { gap: 7px; }
  .languages .chip { padding: 6px 12px; }

  /* Getting started: heading + screenshot (the existing 1100px layout) is one screen; then
     each platform card is one screen, its steps beside its "Good to know" */
  .start .app-shot { margin-bottom: var(--snap-pad); }
  .start-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .start-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(28px, 3.5vw, 48px); row-gap: 18px; align-items: start; scroll-margin-top: var(--snap-pad); }
  .start-card > .start-head { grid-column: 1; grid-row: 1; }
  .start-card > .num-steps { grid-column: 1; grid-row: 2; }
  .start-card > .badge-block { grid-column: 1; grid-row: 3; align-self: end; justify-self: start; }
  .start-card > .good-to-know { grid-column: 2; grid-row: 1 / span 3; }

  /* Privacy: heading, secure list and 0-row are one screen (as they are); the four cards are
     the next. 2 x 2 on tall screens; a row of four below 850px tall (see below) */
  .privacy-grid { gap: 12px 16px; }
  .privacy-grid, .privacy-grid > .p-card:nth-child(odd) { scroll-margin-top: var(--snap-pad); }
  .p-card { padding: 16px 22px 18px; }
  .p-card .plain { font-size: .9375rem; gap: 6px; line-height: 1.45; }
  details.p-card[open] > summary { margin-bottom: 8px; }
  .privacy-foot { margin-top: 12px; }

  /* FAQ: heading left, the questions right (as before), a little tighter */
  .faq-list summary { padding-block: 15px; }
}

/* short laptop screens (600-719px tall, e.g. 1366x657 or a browser with a bookmarks bar) */
@media (min-width: 1100px) and (min-height: 600px) and (max-height: 719px) {
  .hero-wrap { max-width: min(calc(var(--wrap) + 2 * var(--gutter)), calc((var(--fit-vh) - 190px) * 1.62 + 2 * var(--gutter))); }
  .showcase h2 { font-size: clamp(2rem, 6vh, 3rem); }
  .showcase-copy .lead { margin-top: 12px; }
  .demo-steps { margin-top: 16px; gap: 8px; }
  .demo-steps li { padding: 9px 14px; }
  .showcase-copy .fine { margin-top: 12px; }
  .compare .wrap { row-gap: 12px; }
  .compare .section-head .eyebrow { margin-bottom: 8px; }
  .compare .section-head .lead { margin-top: 8px; line-height: 1.5; }
  .compare .cw .compare-card { padding: 16px 20px; }
  .compare .cw .compare-card h3 { margin-bottom: 10px; }
  .compare .cw .compare-sum { padding-top: 10px; }
  .compare .cw .compare-old .steps-chain { gap: 4px; }
  .compare .cw .compare-old .steps-chain li { padding-block: 4px; }
  .features .section-head .lead { margin-top: 4px; }
  .feature { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
  .feature-flip { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .feature-copy h3 { font-size: clamp(1.4rem, min(4.2vh, 2.4vw), 2.2rem); }
  .feature-copy > p:not(.tag):not(.fine) { margin-top: 10px; line-height: 1.5; }
  .feature-copy .ticks { margin-top: 10px; gap: 4px; line-height: 1.45; }
  .feature-copy .fine { margin-top: 10px; line-height: 1.45; }
  .languages .lang-card { padding: 18px 20px; gap: 10px; }
  .languages .chips { gap: 6px; }
  .languages .chip { padding: 5px 11px; font-size: .875rem; }
  .languages .plain { gap: 8px; }
  .secure-list li { padding-block: 12px; }
}

/* Privacy, 1240px and wider, under 850px tall: 2 x 2 would need ~730px, so the four cards
   stand in one row of four (each ~286px wide, 15px text) */
@media (min-width: 1240px) and (min-height: 600px) and (max-height: 849px) {
  .privacy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .p-card { padding: 16px 16px 18px; }
  .p-card h3 { font-size: 1.0625rem; gap: 8px; }
  .p-card h3 .icon { width: 30px; height: 30px; padding: 6px; }
  details.p-card[open] > summary { margin-bottom: 10px; }
  .p-card .plain { gap: 7px; }
}
@media (min-width: 1240px) and (min-height: 600px) and (max-height: 719px) {
  .privacy-grid { gap: 10px; }
  .p-card { padding: 14px 14px 16px; }
  .p-card .plain { gap: 5px; line-height: 1.4; }
  .p-card .plain li { padding-left: 15px; }
  details.p-card[open] > summary { margin-bottom: 8px; }
}

/* Languages, 1100-1239px: a narrower heading column, so the two tall cards stay short; the
   title keeps the size at which it stays on two lines in that column */
@media (min-width: 1100px) and (max-width: 1239px) and (min-height: 600px) {
  .languages .wrap { grid-template-columns: minmax(0, 270px) minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px 16px; }
  .languages .section-head h2 { font-size: 1.6rem; }
  .languages .lang-card { padding: 16px 18px; }
}

/* very short laptop screens (600-699px tall, e.g. 1366x657): a little less room around the
   intro's copy and inside the privacy cards */
@media (min-width: 1100px) and (min-height: 600px) and (max-height: 699px) {
  .intro-copy { padding-top: clamp(12px, 2.4vh, 56px); padding-bottom: clamp(168px, 26vh, 240px); }
  .p-card .plain { line-height: 1.34; }
  .privacy-foot { margin-top: 8px; }
}
/* Languages, 1100-1239px wide and under 780px tall: tighter cards */
@media (min-width: 1100px) and (max-width: 1239px) and (min-height: 600px) and (max-height: 779px) {
  .languages .lang-card { padding: 12px 16px; gap: 6px; }
  .languages .chips { gap: 5px; }
  .languages .chip { padding: 4px 10px; }
}

/* tall laptop screens (950px and taller): the feature pictures and copy one size larger, so
   each feature fills its screen instead of leaving wide empty bands between features */
@media (min-width: 1100px) and (min-height: 950px) {
  .feature-visual > .mock { zoom: 1.3; }
  .feature-copy > p:not(.tag):not(.fine), .feature-copy .ticks { font-size: 1.1875rem; }
  .feature-copy h3 { font-size: clamp(1.5rem, 2.3vw, 2.6rem); }
}

/* Scroll snapping: gentle (proximity, never mandatory), from 1100px wide and 700px tall,
   where every unit fits and Page Down / Page Up land on each unit without skipping any
   content. Off below 1100px wide, so tablets and phones scroll exactly as before; off on
   shorter screens (there the poster lost part of itself to Page Down) and with reduced
   motion. Chrome pulls a scroll that comes to rest within a third of a screen of a unit's
   top onto that top, so a slow, short trackpad scroll springs back. If that feels too
   sticky, add  html { scroll-snap-type: none; }  as the last rule of this block: the fit
   layout stays, and links still land each section just under the header. */
@media (min-width: 1100px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  .intro, .hero, .section { scroll-snap-align: start; }
  :root { --unit-min: calc((var(--fit-vh) - var(--hdr)) * 2 / 3 - 12px); }
  .feature + .feature, .extras, .start-card { scroll-snap-align: start; }
  /* privacy cards, 1100-1239px wide and under 860px tall: two rows of two, a row a screen */
  .privacy-grid > .p-card:nth-child(odd) { scroll-snap-align: start; }
  /* Features, Getting started and Privacy are taller than a screen here. A snap box that tall
     also offers its bottom edge as a stop, which made Page Down jump past a block, so an empty
     marker at the top of each section carries the section's stop instead. */
  .features, .start, .privacy { scroll-snap-align: none; }
  .features::before, .start::before, .privacy::before {
    content: ""; display: block; scroll-snap-align: start; scroll-margin-top: var(--snap-pad);
  }
  /* Page Down and Space scroll a screen less 40px, then snap. A unit shorter than about two
     thirds of a screen let a press jump past the next one and skip part of it, so short
     units get that height, their content centred (only on tall screens does this add room;
     at 1390x740 just one feature grows, by about 30px). */
  .examples, .languages, .faq, .extras { min-height: var(--unit-min); display: flex; flex-direction: column; justify-content: center; }
  .feature { min-height: var(--unit-min); }
  .start .wrap { grid-template-rows: minmax(var(--unit-min), auto); }
  /* the two platform cards fill their rows (the store badge sits at the card's bottom), so
     no empty band without a frame between or under them */
  .start-grid { grid-auto-rows: minmax(var(--unit-min), auto); align-items: stretch; }
  .privacy-grid { grid-auto-rows: minmax(var(--unit-min), auto); }
  /* the same for the privacy heading with the secure list and the 0-row: an empty grid item
     across their three rows holds them to that height, any extra room going under the 0-row */
  .privacy .wrap { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
  .privacy .wrap::before { content: ""; grid-area: 1 / 1 / 4 / 2; min-height: var(--unit-min); }
  .privacy .wrap > .section-head { grid-area: 1 / 1; }
  .privacy .wrap > .secure-list { grid-area: 2 / 1; }
  .privacy .wrap > .zero-row { grid-area: 3 / 1; align-self: start; }
  .privacy .wrap > .privacy-grid { grid-area: 4 / 1; }
  .privacy .wrap > .privacy-foot { grid-area: 5 / 1; }
  /* the app logos strip under the top screen: a small scroll rests with the whole strip in
     view at the bottom of the screen instead of springing back to the top, and Page Down or
     Space from the top always stops there first (before, the first press went from the top
     straight to the poster, so the strip was never on screen) */
  .apps { scroll-snap-align: end; scroll-snap-stop: always; }
}
/* Download, under 820px tall: one full screen, its card centred, so Page Up from the end of
   the page lands on the units' tops instead of between them */
@media (min-width: 1100px) and (min-height: 700px) and (max-height: 819px) and (prefers-reduced-motion: no-preference) {
  .cta { min-height: calc(var(--fit-vh) - var(--hdr)); display: flex; flex-direction: column; justify-content: center; }
}
/* ...elsewhere the four privacy cards are one screen: a row of four, or 2 x 2 when tall
   (2 x 2 at 1100-1239px wide needs a screen 860px tall) */
@media (min-width: 1240px) and (min-height: 700px) and (prefers-reduced-motion: no-preference),
       (min-width: 1100px) and (min-height: 860px) and (prefers-reduced-motion: no-preference) {
  .privacy-grid { scroll-snap-align: start; grid-auto-rows: auto; }
  .privacy-grid > .p-card:nth-child(odd) { scroll-snap-align: none; }
}
