/* AI Translator — site styles.
   The app's own look: iOS grouped backgrounds, white cards with large radii, the #708CF6 accent,
   and the onboarding's night scenes with glassy blue-violet-pink speech bubbles. */

:root {
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --surface-2: #F7F7FA;
  --ink: #1C1C1E;
  --ink-2: #3C3C43;
  --ink-3: #6C6C73;
  --rule: #E5E5EA;
  --accent: #708CF6;
  --accent-ink: #3D5BDB;          /* accent for text on light surfaces (AA) */
  --accent-soft: #EEF1FE;
  --violet: #8E6CF6;
  --pink: #D84B97;
  --sky: #3BA6E6;
  --grad: linear-gradient(135deg, #4A64E0 0%, #6A4FE0 100%);  /* white text on it stays AA */
  --grad-text: linear-gradient(90deg, #3BA6E6 0%, #6F5BD8 50%, #D84B97 100%);
  --night: #07070B;
  --night-2: #111118;
  --night-ink: #FFFFFF;
  --night-ink-2: #B4B4C2;
  --shadow: 0 1px 2px rgba(16, 24, 64, .04), 0 8px 24px rgba(16, 24, 64, .06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 64, .05), 0 24px 60px rgba(40, 52, 120, .14);
  --focus: #3D5BDB;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 20px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E; --ink: #FFFFFF; --ink-2: #E5E5EA; --ink-3: #A1A1A8;
    --rule: #38383A; --accent-ink: #9DB0FF; --accent-soft: #1D2240; --focus: #9DB0FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E; --ink: #FFFFFF; --ink-2: #E5E5EA; --ink-3: #A1A1A8;
  --rule: #38383A; --accent-ink: #9DB0FF; --accent-soft: #1D2240; --focus: #9DB0FF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(112, 140, 246, .3); }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.03em; }
h3 { font-size: 21px; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent-ink); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .lead { margin: 0 auto; }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 242, 247, .78);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header.on-dark { background: rgba(7, 7, 11, .62); color: var(--night-ink); border-bottom-color: rgba(255, 255, 255, .08); }
.js .is-home .site-header.on-dark:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.is-home .site-header { margin-bottom: -64px; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a:not(.btn) { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; transition: opacity .2s, background .2s; }
.main-nav a:not(.btn):hover { opacity: 1; background: rgba(127, 127, 140, .14); }
@media (max-width: 560px) { .main-nav a.nav-opt { display: none; } }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; padding: 14px 24px; font-size: 17px; box-shadow: 0 8px 24px rgba(95, 124, 244, .35); }
.btn-sm { padding: 9px 16px; font-size: 15px; }

.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .25s var(--ease), filter .25s var(--ease); }
.store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 12px 24px rgba(60, 80, 200, .35)); }
.store-badge:active { transform: scale(.97); }
.store-badge img { height: 50px; width: auto; }

/* ---------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--night-ink);
  padding: calc(64px + clamp(40px, 7vw, 88px)) 0 clamp(64px, 8vw, 104px);
}
.hero::before { /* glows */
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 45% at 72% 42%, rgba(112, 140, 246, .38), transparent 70%),
    radial-gradient(30% 35% at 88% 70%, rgba(216, 75, 151, .22), transparent 70%),
    radial-gradient(35% 40% at 12% 10%, rgba(59, 166, 230, .16), transparent 70%);
  animation: glow 14s ease-in-out infinite alternate;
}
.hero::after { /* dotted world texture, like the onboarding */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 65% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 65% 45%, #000 20%, transparent 75%);
}
@keyframes glow { to { transform: translate3d(-3%, 4%, 0) scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero .eyebrow { color: #AFC0FF; background: rgba(112, 140, 246, .14); border: 1px solid rgba(112, 140, 246, .3); padding: 6px 12px; border-radius: 999px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .grad-text { display: inline; }
.hero-sub { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--night-ink-2); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; color: var(--night-ink-2); font-size: 14px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.chips-row li { font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #E4E4EE; }
.rating { margin: 0; color: var(--night-ink-2); font-size: 14px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-art picture { display: block; animation: float 7s ease-in-out infinite; will-change: transform; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 40px 80px rgba(80, 100, 255, .28)); }
@keyframes float { 50% { transform: translate3d(0, -14px, 0); } }
.bubble {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  padding: 14px 26px; border-radius: 24px; min-width: 150px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(240, 244, 255, .92));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 18px 40px rgba(60, 80, 220, .35), 0 2px 0 rgba(255, 255, 255, .8) inset;
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap;
}
.bubble::after { /* tail */
  content: ""; position: absolute; left: 50%; bottom: -10px; width: 22px; height: 22px; transform: translateX(-50%) rotate(45deg);
  background: rgba(240, 244, 255, .95); border-radius: 0 0 6px 0; z-index: -1;
}
.bubble-track { position: relative; display: grid; }
.bubble-word { grid-area: 1 / 1; opacity: 0; transform: translateY(12px) scale(.96); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.bubble-word.is-on { opacity: 1; transform: none; filter: none; }
.no-js .bubble-word:first-child { opacity: 1; transform: none; filter: none; }

/* ---------- stats */
.stats { background: var(--night); color: var(--night-ink); padding: 0 0 clamp(56px, 7vw, 88px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 22px 22px 20px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .09); }
.stat dd { margin: 0; font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dt { margin: 8px 0 0; color: var(--night-ink-2); font-size: 15px; line-height: 1.35; }

/* ---------- feature showcase (sticky phone on wide screens) */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
.showcase-media { position: sticky; top: 96px; height: calc(100vh - 128px); max-height: 760px; display: grid; place-items: center; }
.showcase-media .phone { grid-area: 1 / 1; width: min(100%, 470px); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.showcase-media .phone.is-on { opacity: 1; transform: none; }
.showcase-media .phone img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(40, 52, 120, .18)); }
.showcase-media::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(112, 140, 246, .22), transparent); z-index: -1; }
.feature { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.feature .phone-inline { display: none; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-bottom: 12px; }
.kicker i { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; }
.kicker i svg { width: 16px; height: 16px; color: #fff; }
.feature h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.feature p { color: var(--ink-2); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23708CF6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.text-link::after { content: "→"; transition: transform .25s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- more modes */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.card {
  background: var(--surface); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--ink-3); font-size: 15px; line-height: 1.5; margin: 0; }

/* ---------- AI text style demo */
.style-demo { max-width: 820px; margin: 0 auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); }
.segmented { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface-2); border-radius: 14px; padding: 3px; margin-bottom: 22px; }
.segmented button {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; font: 600 15px/1 var(--font); color: var(--ink-2);
  padding: 11px 4px; border-radius: 11px; cursor: pointer; transition: color .25s;
}
.segmented button[aria-selected="true"] { color: var(--ink); }
.segmented .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 5); border-radius: 11px; background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .45s var(--ease); }
:root[data-theme="dark"] .segmented .thumb, :root:not([data-theme="light"]) .segmented .thumb { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented .thumb { background: #636366; } }
.style-pair { display: grid; gap: 12px; }
.style-src, .style-out { border-radius: var(--r); padding: 20px 22px; }
.style-src { background: var(--surface-2); }
.style-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.style-label img { width: 20px; height: 20px; }
.style-src p { font-size: 20px; font-weight: 600; margin: 0; }
.style-out { background: linear-gradient(135deg, rgba(112, 140, 246, .12), rgba(216, 75, 151, .08)); border: 1px solid rgba(112, 140, 246, .25); }
.style-texts { display: grid; }
.style-texts p { grid-area: 1 / 1; font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; letter-spacing: -0.015em; margin: 0; transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease); }
.js .style-texts p:not(.is-on) { opacity: 0; transform: translateY(8px); filter: blur(4px); pointer-events: none; }
.no-js .style-texts p { grid-area: auto; margin-bottom: 8px; }
.style-note { color: var(--ink-3); font-size: 13px; margin: 14px 0 0; text-align: center; }

/* ---------- languages */
.marquee { overflow: hidden; padding: 12px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; width: max-content; animation: marquee 60s linear infinite; padding: 6px 0; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-row, .marquee:focus-within .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hello {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow); white-space: nowrap; margin-right: 14px;
}
.motion-paused .marquee-row, .motion-paused .hero-art picture, .motion-paused .hero::before, .motion-paused .final-cta picture img { animation-play-state: paused; }
.motion-toggle {
  display: flex; align-items: center; gap: 8px; margin: 10px auto 0; appearance: none; border: 0; cursor: pointer;
  font: 500 14px/1 var(--font); color: var(--ink-3); background: none; padding: 8px 12px; border-radius: 999px;
}
.motion-toggle:hover { color: var(--ink); background: var(--surface); }
.no-js .motion-toggle { display: none; }
.hello img { width: 30px; height: 30px; }
.hello b { font-size: 22px; letter-spacing: -0.01em; }
.hello small { color: var(--ink-3); font-size: 13px; }
.lang-panel { margin-top: 40px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); }
.lang-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 4px 10px; }
.lang-grid li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; min-width: 0; }
.lang-grid img, .lang-grid .globe { width: 26px; height: 26px; flex: none; border-radius: 50%; }
.lang-grid .globe { background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.lang-grid .globe svg { width: 16px; height: 16px; }
.lang-grid span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lang-grid b { font-size: 15px; font-weight: 600; }
.lang-grid small { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-panel .collapse { position: relative; max-height: 330px; overflow: hidden; transition: max-height .8s var(--ease); }
.lang-panel .collapse::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(transparent, var(--surface)); transition: opacity .5s; pointer-events: none; }
.lang-panel.is-open .collapse { max-height: 3200px; }
.lang-panel.is-open .collapse::after { opacity: 0; }
.no-js .lang-panel .collapse { max-height: none; }
.no-js .lang-panel .collapse::after, .no-js .lang-toggle { display: none; }
.lang-toggle { display: flex; margin: 18px auto 0; appearance: none; border: 0; cursor: pointer; font: 600 15px/1 var(--font); color: var(--accent-ink); background: var(--accent-soft); padding: 12px 20px; border-radius: 999px; }
.lang-legend { color: var(--ink-3); font-size: 14px; margin: 18px 0 0; text-align: center; }

/* ---------- steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; letter-spacing: -0.01em; }
.steps span { color: var(--ink-3); }

/* ---------- situations, guides, chips */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 22px; border-radius: var(--r);
  text-decoration: none; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--line);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--line) 85%, #fff 15%), var(--line) 55%, color-mix(in srgb, var(--line) 60%, #000 40%));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tiles a::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.tiles a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .42)); }
.tiles a:hover { transform: translateY(-4px); box-shadow: 0 20px 40px color-mix(in srgb, var(--line) 40%, transparent); }
.tiles b { font-size: 21px; letter-spacing: -0.015em; }
.tiles span { font-size: 15px; opacity: .9; line-height: 1.4; margin-top: 4px; }

.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.guide-item a {
  display: flex; gap: 16px; align-items: center; height: 100%; padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.guide-item a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-item picture { flex: none; width: 128px; aspect-ratio: 1200 / 630; border-radius: 10px; overflow: hidden; background: var(--night); }
.guide-item picture img { width: 100%; height: 100%; object-fit: cover; }
.guide-item b { display: block; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 4px; }
.guide-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-3); font-size: 14px; line-height: 1.45; }
.guide-item .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tag, var(--ink-3)); margin-bottom: 4px; }
.guide-item .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .guide-item .tag { color: var(--ink-3); } }
:root[data-theme="dark"] .guide-item .tag { color: var(--ink-3); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; font-weight: 500; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s; }
.chips a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.chips img { width: 22px; height: 22px; }
.chips .chip-all { padding-left: 16px; color: var(--accent-ink); }
.more { margin: 24px 0 0; text-align: center; }

/* ---------- FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 32px; }
.faq details { background: var(--surface); border-radius: var(--r); margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 18px; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23708CF6' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--accent-ink); }

/* ---------- final CTA */
.final-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; text-align: center; padding: clamp(88px, 12vw, 150px) 0; }
.final-cta picture { position: absolute; inset: 0; z-index: -2; }
.final-cta picture img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transform: scale(1.08); animation: drift 24s ease-in-out infinite alternate; }
.final-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 50% 50%, rgba(7, 7, 11, .78), rgba(7, 7, 11, .25) 80%), linear-gradient(rgba(7, 7, 11, .5), transparent 25%, transparent 75%, rgba(7, 7, 11, .7)); }
@keyframes drift { to { transform: scale(1.16) translate3d(-2%, -2%, 0); } }
.final-cta .app-icon { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 20px 50px rgba(112, 140, 246, .45); }
.final-cta h2 { max-width: 760px; margin: 0 auto 14px; }
.final-cta p { color: var(--night-ink-2); font-size: 19px; margin: 0 auto 32px; max-width: 560px; }

/* ---------- footer */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: 56px 0 36px; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8C8C9A; margin: 4px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-fine { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #8C8C9A; }

/* ---------- inner pages */
.page-top { padding: 28px 0 0; }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.page-head { max-width: 820px; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font-size: 14px; margin: 0; }
.meta a { color: inherit; }
.cover { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 40px; }
.cover img { width: 100%; height: auto; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.aside { position: sticky; top: 88px; display: grid; gap: 14px; }
.app-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.app-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.app-card-head img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.app-card-head strong { display: block; font-size: 17px; }
.app-card-head span { font-size: 13px; color: var(--ink-3); }
.app-card p { font-size: 15px; color: var(--ink-2); }
.app-card .store-badge img { height: 44px; }
.toc { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; font-size: 15px; }
.toc summary { font-weight: 600; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--accent-ink); }

.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); min-width: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); color: var(--ink); margin: 1.8em 0 .55em; }
.prose h3 { color: var(--ink); margin: 1.5em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent-ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.prose table, table.phrases { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 13px; color: var(--ink-3); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.inline-cta { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin: 2em 0; padding: 22px; border-radius: var(--r); background: var(--night); color: #fff; font-size: 16px; line-height: 1.5; }
.inline-cta p { margin: 0; color: #D6D6E2; }
.inline-cta strong { color: #fff; }
.notes { display: grid; gap: 12px; margin: 0; }
.notes div { background: var(--surface); border-radius: var(--r-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.notes dt { font-weight: 600; color: var(--ink); }
.notes dd { margin: 4px 0 0; font-size: 16px; }
.how-modes { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.how-modes li { background: var(--surface); border-radius: var(--r-sm); padding: 14px 18px; box-shadow: var(--shadow); margin: 0; }
.group { margin: 48px 0 0; }
.group h2 { font-size: 26px; }
.group-desc { color: var(--ink-3); margin-top: -6px; }
.topics-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.topics-nav a { padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.topics-nav a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band h2 { text-align: center; margin-bottom: 32px; }
.notfound { text-align: center; padding: 72px var(--gutter); }

/* ---------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js:not(.js-ready) .reveal { animation: reveal-fallback .6s 2.5s forwards; }  /* site.js failed to load */
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .chips-row { justify-content: center; }
  .hero-art { width: min(88%, 380px); margin-top: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .showcase-media { display: none; }
  .feature { min-height: 0; padding: 32px 0; }
  .feature .phone-inline { display: block; width: min(100%, 400px); margin: 0 auto 24px; }
  .steps { grid-template-columns: 1fr; }
  .guide-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .cards, .tiles { grid-template-columns: 1fr; }
  .tiles a { min-height: 150px; }
  .segmented button { font-size: 13px; padding: 10px 2px; letter-spacing: -0.02em; }
}
@media (max-width: 380px) {
  .segmented button { font-size: 11.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .guide-item picture { width: 96px; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
  .bubble { min-width: 120px; padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.js .is-home .site-header:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--night-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header { background: rgba(0, 0, 0, .7); } }

/* ---------- live translator (hero and /app) */
.hero-grid > * { min-width: 0; }
.hero-live { width: 100%; max-width: 520px; justify-self: end; }
.live {
  position: relative; isolation: isolate; color: #fff; text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(40, 52, 160, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: 18px 18px 14px;
}
.live-langs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.live-lang { display: block; min-width: 0; padding: 8px 12px 9px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; transition: background .2s; }
.live-lang:hover, .live-lang:focus-within { background: rgba(255, 255, 255, .13); }
.live-lang-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9A9AAE; margin-bottom: 3px; }
.live-lang-pick { display: flex; align-items: center; gap: 8px; min-width: 0; }
.live-lang-pick img { width: 22px; height: 22px; flex: none; border-radius: 50%; }
.live-lang select {
  appearance: none; -webkit-appearance: none; min-width: 0; width: 100%; border: 0; background: transparent; color: #fff;
  font: 600 16px/1.2 var(--font); padding: 0 18px 0 0; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23708CF6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 18px;
}
.live-lang:focus-within { outline: 3px solid #9DB0FF; outline-offset: 2px; }
.live-lang select:focus { outline: none; }
.live-lang select:disabled, .live-swap:disabled { opacity: .5; cursor: default; }
.live-mic[aria-disabled="true"] { cursor: progress; }
.live-end h3:focus { outline: none; }
.live-lang select option { color: #1C1C1E; }
.live-swap { appearance: none; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--ease), background .2s; }
.live-swap:hover { background: rgba(255, 255, 255, .14); transform: rotate(180deg); }
.live-swap svg { width: 18px; height: 18px; }
.live-styles { display: flex; gap: 6px; margin: 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.live-styles::-webkit-scrollbar { display: none; }
.live-styles button { appearance: none; flex: none; border: 1px solid rgba(255, 255, 255, .12); background: transparent; color: #C9C9D6; font: 500 13px/1 var(--font); padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.live-styles button:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.live-styles button[aria-pressed="true"] { background: #fff; color: #1C1C1E; border-color: #fff; }
.live-stage {
  height: 210px; margin: 14px -6px 0; padding: 4px 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%);
}
.live-stage::-webkit-scrollbar { display: none; }
.live-feed { list-style: none; margin: 0; padding: 0; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.live-empty { color: #A3A3B5; font-size: 15px; line-height: 1.5; text-align: center; padding: 0 12px 26px; }
.live-row { animation: live-in .45s var(--ease) both; }
@keyframes live-in { from { opacity: 0; transform: translateY(10px); } }
.live-src { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: #A3A3B5; }
.live-tgt { margin: 0; font-size: clamp(19px, 2.2vw, 22px); font-weight: 650; line-height: 1.3; letter-spacing: -0.012em; color: #fff; min-height: 1.3em; }
.live-row.is-interim .live-src { color: #E6E6F0; font-size: 17px; }
.live-row.is-interim .live-src::after, .live-row.is-translating .live-tgt:empty::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; animation: live-dot 1s ease-in-out infinite; }
@keyframes live-dot { 50% { opacity: .2; } }
.live-row:last-child .live-tgt { background: linear-gradient(90deg, #8FD0FF, #B9A7FF 55%, #FF9ACB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-row.is-failed .live-tgt { color: #FF8A80; font-size: 15px; font-weight: 500; background: none; }
.live-controls { display: grid; justify-items: center; gap: 6px; margin-top: 12px; }
.live-mic { position: relative; width: 92px; height: 92px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.live-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.live-ring circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 4; }
.live-ring .live-ring-bar { stroke: url(#none); stroke: #9DB0FF; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--progress, 0)); transition: stroke-dashoffset .2s linear; opacity: 0; }
.live[data-state="listening"] .live-ring-bar { opacity: 1; }
.live-mic-core {
  position: absolute; inset: 10px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 12px 30px rgba(80, 100, 240, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  transform: scale(calc(1 + var(--level, 0) * .08));
}
.live-mic:hover .live-mic-core { box-shadow: 0 16px 40px rgba(80, 100, 240, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.live-mic:active .live-mic-core { transform: scale(.94); }
.live-mic svg.i-mic, .live-mic svg.i-stop { width: 30px; height: 30px; grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease); }
.live .i-stop { opacity: 0; transform: scale(.6); }
.live[data-state="listening"] .i-mic { opacity: 0; transform: scale(.6); }
.live[data-state="listening"] .i-stop { opacity: 1; transform: none; }
.live[data-state="listening"] .live-mic-core { background: linear-gradient(135deg, #E5484D, #D6336C); box-shadow: 0 0 0 calc(6px + var(--level, 0) * 14px) rgba(229, 72, 77, .18), 0 12px 30px rgba(229, 72, 77, .45); }
.live[data-state="starting"] .live-mic-core, .live[data-state="ending"] .live-mic-core { animation: live-wait 1s ease-in-out infinite; }
@keyframes live-wait { 50% { opacity: .65; } }
.live-time { margin: 0; min-height: 1.2em; font-size: 13px; font-variant-numeric: tabular-nums; color: #C9C9D6; font-weight: 600; }
.live-status { margin: 0; font-size: 14px; color: #A3A3B5; text-align: center; min-height: 1.4em; }
.live-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #C9C9D6; cursor: pointer; margin-top: 4px; }
.live-switch input { position: absolute; opacity: 0; pointer-events: none; }
.live-switch span { width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .18); position: relative; transition: background .25s; flex: none; }
.live-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.live-switch input:checked + span { background: #34C759; }
.live-switch input:checked + span::after { transform: translateX(16px); }
.live-switch input:focus-visible + span { outline: 3px solid #9DB0FF; outline-offset: 2px; }
.live-note { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: #8C8C9E; text-align: center; }
.live-note a { color: #C9C9D6; }
.live-end {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 18px; border-radius: inherit;
  background: rgba(10, 10, 16, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: live-fade .45s var(--ease) both;
}
/* under the card only the languages stay, faintly: the feed and controls would read through it */
.live-stage, .live-controls, .live-note { transition: opacity .35s var(--ease); }
.live[data-ended] .live-stage, .live[data-ended] .live-controls, .live[data-ended] .live-note { opacity: 0; }
.live-end[hidden] { display: none; }
@keyframes live-fade { from { opacity: 0; } }
.live-end-card { text-align: center; max-width: 380px; animation: live-in .55s .05s var(--ease) both; }
.live-end-icon { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px; box-shadow: 0 14px 34px rgba(112, 140, 246, .45); }
.live-end h3 { font-size: 23px; margin-bottom: 8px; }
.live-end p { color: #C9C9D6; font-size: 15px; line-height: 1.5; margin-bottom: 16px; }
.live-end-actions { display: flex; align-items: center; justify-content: center; gap: 16px; }
.live-qr { width: 96px; height: 96px; background: #fff; border-radius: 12px; padding: 6px; }
.live-end-more { margin: 14px 0 0 !important; font-size: 14px !important; }
.live[data-ended="allowance"] .live-end-more, .live[data-ended="network"] .live-end-more { display: none; }
.live-end-more a { color: #fff; }
.live-end-close { appearance: none; border: 0; background: none; color: #9A9AAE; font: 500 13px/1 var(--font); margin-top: 14px; cursor: pointer; padding: 6px 10px; border-radius: 999px; }
.live-end-close:hover { color: #fff; }
.live-end-close[hidden] { display: none; }
@media (hover: none), (max-width: 640px) { .live-qr { display: none; } }

/* /app page */
.app-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; padding: 28px 0 clamp(56px, 8vw, 96px); }
.app-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1; background: radial-gradient(40% 45% at 50% 55%, rgba(112, 140, 246, .32), transparent 70%), radial-gradient(30% 35% at 80% 75%, rgba(216, 75, 151, .18), transparent 70%); }
.app-hero .crumbs, .app-hero .crumbs a { color: #A3A3B5; }
.app-head { text-align: center; max-width: 720px; margin: 8px auto 28px; }
.app-head h1 { font-size: clamp(36px, 5.4vw, 60px); }
.app-head .lead { color: var(--night-ink-2); }
.app-hero .live { max-width: 640px; margin: 0 auto; }
.app-hero .live-stage { height: 300px; }

@media (max-width: 860px) {
  .hero-live { justify-self: center; margin-top: 8px; }
}
@media (max-width: 420px) {
  .live { padding: 14px 12px 12px; }
  .live-langs { gap: 6px; }
  .live-lang { padding: 7px 10px 8px; }
  .live-lang-label { font-size: 10px; letter-spacing: .04em; }
  .live-lang select { font-size: 16px; }  /* below 16px iOS zooms in on focus */
  .live-swap { width: 32px; height: 32px; }
  .live-stage { height: 190px; }
}
