/* ==========================================================================
   Vito — vito.talk
   Design tokens and component styles, translated from the design handoff.
   Light/dark are driven by CSS custom properties on :root.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (self-hosted — no third-party requests, in line with "no tracking")
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/baloo2-variable-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;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/baloo2-variable-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sora-variable-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;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sora-variable-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — identical in both themes */
  --coral: #FF6B5E;
  --violet-brand: #7C3AED;
  --brand-gradient: linear-gradient(135deg, #FF6B5E, #7C3AED);
  --coral-chip: rgba(255, 107, 94, 0.12);

  /* Light theme */
  --bg: #FAF6EF;
  --bg-alt: #FFFFFF;
  --card: #FFFFFF;
  --ink: #2B2440;
  --muted: #6B6480;
  --line: rgba(43, 36, 64, 0.14);
  --violet: #7C3AED;
  --chip: rgba(124, 58, 237, 0.08);
  --nav-bg: rgba(250, 246, 239, 0.85);
  --glow-blend: multiply;
  --card-shadow: 0 20px 50px rgba(43, 36, 64, 0.12);
  --photo-shadow: 0 24px 60px rgba(43, 36, 64, 0.22);

  /* Type scale */
  --font-display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout — 1120px of content plus the 40px gutters, as in the design file */
  --wrap: 1200px;

  /* How far the speech glow reaches, as a fraction of the hero's height.
     Read by vito.js so the breakpoint below stays the only one. */
  --glow-reach: 0.72;
  --nav-height: 63px;

  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #171221;
  --bg-alt: #1E1830;
  --card: #251E38;
  --ink: #F3EFFA;
  --muted: #A79FC0;
  --line: rgba(255, 255, 255, 0.12);
  --violet: #A78BFA;
  --chip: rgba(167, 139, 250, 0.16);
  --nav-bg: rgba(23, 18, 33, 0.85);
  --glow-blend: screen;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --photo-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

/* Chinese. Baloo 2 and Sora carry no CJK glyphs — a webfont that does runs to
   several megabytes, which is not worth it here — so keep them first for the
   Latin words (Vito, Windows, GitHub) and name good system faces behind them
   for the rest. The display face is a rounded Latin one; Chinese headings pick
   up the system UI face instead, which is the honest trade-off. */
:root:lang(zh) {
  --font-display: 'Baloo 2', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;
  --font-body: 'Sora', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;
}

/* Tight tracking is a Latin nicety; on CJK it just crowds the characters. */
:root:lang(zh) .hero__h1,
:root:lang(zh) .nav__wordmark { letter-spacing: 0; }

/* Chinese breaks between any two characters, which was splitting the headline's
   accent phrase down the middle. Keep it whole and let it move to its own line. */
:root:lang(zh) .hero__h1 .gradient-text { display: inline-block; }
:root:lang(zh) .eyebrow,
:root:lang(zh) .lang-group__region,
:root:lang(zh) .demo-card__status { letter-spacing: .04em; }

/* Follow the OS until the visitor makes a choice (which sets data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #171221;
    --bg-alt: #1E1830;
    --card: #251E38;
    --ink: #F3EFFA;
    --muted: #A79FC0;
    --line: rgba(255, 255, 255, 0.12);
    --violet: #A78BFA;
    --chip: rgba(167, 139, 250, 0.16);
    --nav-bg: rgba(23, 18, 33, 0.85);
    --glow-blend: screen;
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --photo-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* Components below set their own display, which would otherwise beat [hidden] */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--coral); }

/* width/height attributes are there to reserve layout space; the box still scales */
img, video { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); }

/* Spacing is set per component, never inherited from the UA stylesheet. */
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  margin: 0 0 10px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* Shared layout helpers -------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 40px;
}

.band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow--violet { color: var(--violet); }
.eyebrow--coral { color: var(--coral); }

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 26px;
  text-wrap: pretty;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn--gradient {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .28);
}
.btn--gradient:hover { color: #fff; filter: brightness(1.08); }

.btn--outline {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: transparent;
}
.btn--outline:hover { color: var(--coral); border-color: var(--coral); }

.btn--lg { font-size: 17px; padding: 16px 34px; box-shadow: 0 10px 30px rgba(124, 58, 237, .3); }
.btn--md { font-size: 16px; padding: 14px 28px; }
.btn--sm { font-size: 14px; padding: 9px 18px; }

.btn--ghost-pill {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 9px 18px;
}
.btn--ghost-pill:hover { color: var(--coral); border-color: var(--coral); }

.pill-disabled {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  opacity: .7;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo:hover { color: inherit; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 12px;
}
.nav__links a:hover { color: var(--coral); }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Language picker ---------------------------------------------------------- */
.lang-picker { position: relative; }

.lang-picker > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang-picker > summary::-webkit-details-marker { display: none; }
.lang-picker > summary:hover { border-color: var(--coral); color: var(--coral); }

.lang-picker__caret { transition: transform .18s ease; opacity: .7; }
.lang-picker[open] .lang-picker__caret { transform: rotate(180deg); }

.lang-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(43, 36, 64, .18);
}

.lang-picker__menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.lang-picker__menu a:hover { background: var(--chip); color: var(--violet); }
.lang-picker__menu a[aria-current] { color: var(--violet); background: var(--chip); }

/* Offer to switch, when the browser asks for a language we publish ---------- */
.lang-offer {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(43, 36, 64, .22);
  animation: v-fade-up .3s ease both;
}

.lang-offer__text { font-size: 14px; font-weight: 600; }

.lang-offer__go {
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.lang-offer__go:hover { color: #fff; filter: brightness(1.08); }

.lang-offer__no {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang-offer__no:hover { color: var(--coral); }

@keyframes v-fade-up {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--coral); color: var(--coral); }

/* Moon = "switch to dark", sun = "switch back to light". Which one shows follows
   the same rules as the theme tokens, so it is right before any JS runs. */
.theme-toggle__sun { display: none; }
:root[data-theme='dark'] .theme-toggle__moon { display: none; }
:root[data-theme='dark'] .theme-toggle__sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle__moon { display: none; }
  :root:not([data-theme='light']) .theme-toggle__sun { display: block; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; }

.hero__glow-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Soft "speech dome" that swells with the spoken-word animation. */
.hero__glow {
  position: absolute;
  left: -5%;
  bottom: 0;
  width: 110%;
  height: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse at 50% 100%, #FF6B5E 0%, #7C3AED 55%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .45) 55%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .45) 55%, transparent 100%);
  filter: blur(6px);
  opacity: 0;
  mix-blend-mode: var(--glow-blend);
  transition: height 130ms ease-out, opacity 260ms ease-out;
}

.hero__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 84px 40px 72px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.chip-violet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--violet);
  background: var(--chip);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero__h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 58px;
  line-height: 1.04;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}

.hero__spoken {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 44ch;
  text-wrap: pretty;
  color: var(--muted);
}

/* Karaoke word states */
.hero__spoken .w { transition: opacity .25s; opacity: .42; }
.hero__spoken .w.is-past { opacity: 1; }
.hero__spoken .w.is-current {
  opacity: 1;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 5px;
  padding: 0 3px;
  margin: 0 -3px;
  transition: color .12s;
}

.hero__cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero__platforms {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* App screenshot, hero right column --------------------------------------- */
.hero__shot { margin: -20px 0; }

.hero__shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px var(--line),
    0 12px 40px rgba(43, 36, 64, .18),
    0 0 80px rgba(124, 58, 237, .25),
    0 0 40px rgba(255, 107, 94, .15);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.section-intro { color: var(--muted); margin: 0 0 40px; font-size: 16px; }

.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-tile--coral { background: rgba(255, 107, 94, .14); }
.icon-tile--violet { background: var(--chip); }
.icon-tile--gradient {
  background: var(--brand-gradient);
  box-shadow: 0 6px 16px rgba(124, 58, 237, .3);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
}
.step__num--coral { color: var(--coral); }
.step__num--violet { color: var(--violet); }

.card__title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.card__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
}
.pricing__head-text { max-width: 640px; }
.pricing__head-text strong { color: var(--ink); }

.piggy { position: relative; width: 190px; height: 200px; justify-self: end; }
.piggy__pig-wrap {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 150px;
  height: 150px;
  transform: scaleX(-1);
}
.piggy__pig { animation: v-pig 2.7s ease-in-out infinite; transform-origin: 50% 80%; }
.piggy__coin { position: absolute; animation: v-coin 2.7s ease-in infinite; }
.piggy__coin--1 { top: 34px; left: 78px; filter: drop-shadow(0 4px 8px rgba(228, 87, 109, .35)); }
.piggy__coin--2 { top: 30px; left: 58px; animation-delay: .9s; filter: drop-shadow(0 4px 8px rgba(124, 58, 237, .35)); }
.piggy__coin--3 { top: 36px; left: 100px; animation-delay: 1.8s; filter: drop-shadow(0 4px 8px rgba(124, 58, 237, .3)); }

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}
.price-card__title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.price-card__hint { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }

.calc__slider { width: 100%; accent-color: var(--violet); }

.calc__readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  gap: 16px;
}
.calc__hours { font-size: 14px; color: var(--muted); }
.calc__hours strong { color: var(--ink); font-size: 18px; }
.calc__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  white-space: nowrap;
}
.calc__note { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.6; }

.compare { display: flex; flex-direction: column; gap: 16px; }
.compare__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.compare__row--vito {
  border: 1.5px solid var(--violet);
  background: var(--chip);
}
.compare__name { font-weight: 700; font-size: 15px; }
.compare__sub { font-size: 13px; color: var(--muted); }
.compare__price { font-weight: 800; font-size: 20px; color: var(--muted); white-space: nowrap; }
.compare__price--vito { color: var(--violet); }
.compare__price small { font-size: 13px; font-weight: 600; }
.compare__price .plus { font-size: 13px; font-weight: 600; color: var(--muted); }
.compare__foot { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   BYOK
   -------------------------------------------------------------------------- */
.byok { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.byok__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: byok;
}
.byok__steps li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  counter-increment: byok;
}
.byok__steps li::before {
  content: counter(byok);
  color: var(--violet);
  font-weight: 800;
}

.provider-list { display: flex; flex-direction: column; gap: 14px; }

.provider {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.provider__name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.provider__name { font-weight: 700; font-size: 15.5px; }
.provider__desc { font-size: 13.5px; color: var(--muted); }

.badge-recommended {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 999px;
  padding: 3px 10px;
}

.tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.tag--coral { color: var(--coral); background: rgba(255, 107, 94, .1); }
.tag--violet { color: var(--violet); background: var(--chip); }

.byok__foot { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Privacy (photo background)
   -------------------------------------------------------------------------- */
.privacy {
  background-color: #171221;
  background-image:
    linear-gradient(rgba(16, 11, 26, .35), rgba(16, 11, 26, .35)),
    image-set(
      url('../images/vito-private-speech-to-text-night-office-1920w.webp') 1x,
      url('../images/vito-private-speech-to-text-night-office-2520w.webp') 2x
    );
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.privacy__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 88px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.privacy__head { grid-column: 1 / -1; max-width: 560px; }
.privacy__head h2 { color: #F3EFFA; text-shadow: 0 2px 20px rgba(10, 7, 18, .6); }
.privacy__head p {
  color: rgba(243, 239, 250, .78);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 26px;
  text-shadow: 0 1px 14px rgba(10, 7, 18, .6);
}

.glass-card {
  background: rgba(23, 18, 33, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 239, 250, .14);
  border-radius: 16px;
  padding: 26px;
}
.glass-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  color: #F3EFFA;
}
.glass-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(243, 239, 250, .72);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Languages
   -------------------------------------------------------------------------- */
.languages { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; align-items: start; }

.languages__side { position: sticky; top: 96px; }
.languages__count-row { display: flex; align-items: center; gap: 20px; margin-bottom: 4px; }
.languages__count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 110px;
  line-height: 1;
}
.languages__side h2 { margin: 6px 0 14px; }

.globe { flex-shrink: 0; width: 110px; height: 110px; display: block; }

.stat-tile {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--card);
}
.stat-tile__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  min-width: 74px;
}
.stat-tile__value--coral { color: var(--coral); }
.stat-tile__value--violet { color: var(--violet); }
.stat-tile__label { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.stat-tile__label strong { color: var(--ink); }

.languages__groups { display: flex; flex-direction: column; gap: 22px; }

.lang-group__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.lang-group__region {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.lang-group__region--coral { color: var(--coral); }
.lang-group__region--violet { color: var(--violet); }
.lang-group__count { font-size: 11.5px; font-weight: 600; color: var(--muted); opacity: .7; }
.lang-group__rule { flex: 1; border-top: 1px solid var(--line); transform: translateY(-3px); }

.lang-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lang-pill {
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: default;
  transition: border-color .15s ease, color .15s ease;
}
.lang-pill:hover { border-color: var(--coral); color: var(--coral); }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
}
.features__intro p { color: var(--muted); margin: 0 0 18px; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.features__photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--photo-shadow);
  display: block;
}

.tag-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-chip {
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
}
.tag-chip--coral { color: var(--coral); background: var(--coral-chip); }
.tag-chip--violet { color: var(--violet); background: var(--chip); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
/* soft radial wash, top-right */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 107, 94, .1), transparent);
  pointer-events: none;
}
.feature-card--violet-wash::before {
  background: radial-gradient(ellipse 80% 60% at 100% 0%, var(--chip), transparent);
}
.feature-card > * { position: relative; }
.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
}
.feature-card p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.feature-card .icon-tile { margin-bottom: 14px; }

/* Wide history card */
.feature-card--wide {
  grid-column: 1 / -1;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
}
.feature-card--wide::before {
  background: radial-gradient(ellipse 60% 90% at 0% 0%, rgba(255, 107, 94, .09), transparent);
}
.feature-card--wide .feature-card__text {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-card--wide h3 { font-size: 19px; margin: 0; }
.feature-card--wide p { font-size: 14.5px; margin: 0; }
.feature-card__shot { padding: 24px 24px 0 0; display: flex; align-items: flex-end; }
.feature-card__shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  box-shadow: 0 -2px 30px rgba(43, 36, 64, .10);
}

.brand-glow {
  box-shadow:
    0 0 0 1px var(--line),
    0 8px 26px rgba(43, 36, 64, .16),
    0 0 46px rgba(124, 58, 237, .22),
    0 0 24px rgba(255, 107, 94, .14);
}

.video-embed {
  width: 100%;
  display: block;
  border-radius: 12px;
  background: var(--bg-alt);
}

/* Dictionary examples */
.dict-rows { display: flex; flex-direction: column; gap: 7px; }
.dict-row {
  display: grid;
  grid-template-columns: 1fr 14px 1fr;
  gap: 8px;
  align-items: center;
}
.dict-row__from {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-style: italic;
}
.dict-row__to {
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--violet);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--violet);
}

/* Stats card */
.stat-row { display: flex; gap: 8px; margin-bottom: 12px; }
.stat-box {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 4px;
}
.stat-box__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}
.stat-box__value--coral { color: var(--coral); }
.stat-box__value--violet { color: var(--violet); }
.stat-box__label { font-size: 10.5px; font-weight: 600; color: var(--muted); }

.spark {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 46px;
  margin-bottom: 12px;
  padding: 0 2px;
}
.spark span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #A78BFA, #7C3AED);
}
.spark span:last-child { background: linear-gradient(180deg, #FF6B5E, #E4576D); }

.achievements { display: flex; gap: 6px; flex-wrap: wrap; }
.achievement {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.achievement--locked {
  color: var(--muted);
  border-style: dashed;
  opacity: .75;
}

/* Small feature tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.tile {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .15s ease;
}
.tile__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile--coral .tile__icon { background: var(--coral-chip); }
.tile--coral:hover { border-color: var(--coral); }
.tile--violet .tile__icon { background: var(--chip); }
.tile--violet:hover { border-color: var(--violet); }
.tile__title { display: block; font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.tile__desc { display: block; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* --------------------------------------------------------------------------
   See it in action
   -------------------------------------------------------------------------- */
.showcase { text-align: center; }
.showcase p {
  color: var(--muted);
  margin: 0 auto 32px;
  font-size: 15.5px;
  max-width: 62ch;
  text-wrap: pretty;
}
.showcase video {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  background: var(--bg-alt);
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 70px rgba(43, 36, 64, .18),
    0 0 90px rgba(124, 58, 237, .22);
}

/* --------------------------------------------------------------------------
   Open source band
   -------------------------------------------------------------------------- */
.opensource {
  background-color: #2a1a4a;
  background-image:
    linear-gradient(rgba(23, 18, 33, .30), rgba(23, 18, 33, .30)),
    image-set(
      url('../images/vito-open-source-coral-violet-waves-1920w.webp') 1x,
      url('../images/vito-open-source-coral-violet-waves-2400w.webp') 2x
    );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.opensource__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
}
.opensource h2 { font-size: 32px; margin: 0 0 10px; text-shadow: 0 2px 18px rgba(23, 18, 33, .5); }
.opensource p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
  opacity: .95;
  text-shadow: 0 1px 12px rgba(23, 18, 33, .55);
}
.opensource__text { max-width: 560px; }
.opensource__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn--white {
  background: #fff;
  color: #2B2440;
  font-size: 15px;
  padding: 13px 24px;
}
.btn--white:hover { color: #2B2440; filter: brightness(.95); }

.btn--outline-white {
  border: 1.5px solid rgba(255, 255, 255, .7);
  color: #fff;
  font-size: 15px;
  padding: 13px 24px;
}
.btn--outline-white:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */
.download { text-align: center; padding-top: 80px; padding-bottom: 80px; }

.download__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: var(--brand-gradient);
  box-shadow: 0 14px 34px rgba(124, 58, 237, .35), 0 0 0 1px rgba(255, 255, 255, .15) inset;
  margin-bottom: 20px;
}

.download h2 { font-size: 40px; margin: 0 0 12px; }
.download__sub { color: var(--muted); font-size: 15.5px; margin: 0 0 30px; }

.download__primary { margin-bottom: 28px; }

.download__soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.download__soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 999px;
}
.download__soon-link { font-size: 13.5px; font-weight: 600; color: var(--violet); }

.download__secondary { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.download__release {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 16px 0 0;
  opacity: .75;
}

.download__disclaimer {
  font-size: 13px;
  color: var(--muted);
  margin: 26px auto 0;
  max-width: 46ch;
  line-height: 1.6;
  opacity: .85;
}
.download__disclaimer a { color: var(--violet); font-weight: 600; }

/* Talking equalizer on the app icon */
.vito-talk rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: v-bar .9s ease-in-out infinite;
}
.vito-talk rect:nth-of-type(1),
.vito-talk rect:nth-of-type(7) { animation-delay: .3s; animation-duration: .8s; }
.vito-talk rect:nth-of-type(2),
.vito-talk rect:nth-of-type(6) { animation-delay: .15s; animation-duration: 1.05s; }
.vito-talk rect:nth-of-type(3),
.vito-talk rect:nth-of-type(5) { animation-delay: .45s; animation-duration: .7s; }
.vito-talk rect:nth-of-type(4) { animation-delay: 0s; animation-duration: .95s; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq__inner { max-width: 840px; margin: 0 auto; padding: 72px 40px; }
.faq__inner h2 { margin: 0 0 32px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
}
.faq summary {
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--coral); }
.faq details p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}
.footer__brand { display: flex; align-items: center; gap: 9px; }
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.footer__links { margin-left: auto; display: flex; gap: 20px; font-weight: 600; }
.footer__meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  opacity: .8;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes v-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.75); }
}
@keyframes v-bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.45); }
}
@keyframes v-coin {
  0%   { transform: translateY(-78px) rotate(-16deg); opacity: 0; }
  8%   { opacity: 1; }
  46%  { transform: translateY(-6px) rotate(5deg); opacity: 1; }
  56%  { transform: translateY(0) rotate(2deg) scale(1.05, .88); opacity: 1; }
  64%  { transform: translateY(-3px) rotate(0) scale(1); opacity: 1; }
  80%, 100% { transform: translateY(10px) rotate(0) scale(.5, .3); opacity: 0; }
}
@keyframes v-pig {
  0%, 74%, 100% { transform: rotate(0); }
  78% { transform: rotate(-2.5deg); }
  84% { transform: rotate(1.8deg); }
  90% { transform: rotate(-1deg); }
}

/* --------------------------------------------------------------------------
   Responsive — single breakpoint at 780px, as specified
   -------------------------------------------------------------------------- */
@media (max-width: 780px) {
  .nav { padding: 12px 16px; gap: 14px; }
  .nav__links { display: none; }

  /* The picker stays — it is a control now, not decoration — but shrinks to
     the globe and the caret so it still fits next to the download button. */
  .nav__lang { padding: 6px 9px; }
  .nav__lang > span { display: none; }

  .wrap { padding: 56px 20px; }
  .privacy__inner,
  .opensource__inner,
  .faq__inner { padding: 56px 20px; }
  .download { padding-top: 64px; padding-bottom: 64px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 20px 48px;
  }

  /* The stacked hero is far taller than the side-by-side one, so the same
     fraction of it reaches much further down the page. Pull it back by a third. */
  :root { --glow-reach: 0.48; }

  /* Stacked, the screenshot sits at the bottom of the hero and swallows a glow
     that rises from there. Flip the dome over so it spills down from the top,
     behind the headline — which is where the speaking is happening anyway. */
  .hero__glow {
    top: 0;
    bottom: auto;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: radial-gradient(ellipse at 50% 0%, #FF6B5E 0%, #7C3AED 55%, transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .45) 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .45) 55%, transparent 100%);
  }
  .hero__h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .download h2 { font-size: 34px; }
  .opensource h2 { font-size: 28px; }

  .grid-2,
  .grid-3,
  .byok,
  .languages,
  .pricing__head,
  .features__intro,
  .feature-grid,
  .privacy__inner { grid-template-columns: 1fr; }

  .feature-card--wide { grid-template-columns: 1fr; }
  .feature-card__shot { padding: 0 24px 24px; }
  .feature-card__shot img { border-radius: 14px; border-bottom: 1px solid var(--line); }

  .languages__side { position: static; }
  .languages__count { font-size: 76px; }

  .piggy { justify-self: center; }

  .footer__links { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Reduced motion — static end states, no loops
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .piggy__coin,
  .piggy__pig,
  .lang-offer,
  .vito-talk rect { animation: none !important; }

  .piggy__coin { opacity: 1; transform: none; }

  *,
  *::before,
  *::after { transition-duration: .01ms !important; }
}
