/* VocalLab landing page. Self-contained: the studio CSP only allows same-origin styles, scripts and fonts.
   Font: Geist, Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font), SIL Open Font License 1.1. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/fonts/geist-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/fonts/geist-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: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/fonts/geist-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; }

:root {
  color-scheme: light;
  --bg: #fcfafb;
  --card: #f3f1ef;
  --line: #ebe8e9;
  --line-strong: #d9d5d7;
  --ink: #000000;
  --ink-2: #6d6b6c;
  --ink-3: #757374;
  --blue: #5d8dd6;
  --blue-text: #3f6db9;
  --mauve: #9a6f92;
  --orange: #d3431f;
  --orange-text: #c93a16;
  --tag: #8a3fc4;
  /* One fluid scale: every size below is in rem, and the root grows from 16px (up to ~1100px wide) to 20px (from ~1800px),
     so type, buttons and spacing keep their proportions on any desktop screen instead of floating apart. */
  --frame: clamp(min(100vw, 60rem), 100vw - 4rem, 82rem);
  --gutter: clamp(1rem, 2.2vw, 2.25rem);
  --section: clamp(3rem, 4.4vw, 5.25rem);
  --font: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(1rem, 0.55vw + 0.625rem, 1.25rem); scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 0.9375rem/1.6 var(--font); font-feature-settings: 'ss01' 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; max-width: 100%; overflow-x: hidden; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
/* No lonely last word under a paragraph, and a phone number never breaks across lines. */
p, li, summary { text-wrap: pretty; }
a[href^="tel:"] { white-space: nowrap; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .88em; background: #f1eeef; border-radius: 0.3125rem; padding: 1px 0.375rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 0.1875rem; border-radius: 0.375rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 0.75rem; top: -3.75rem; z-index: 60; background: var(--ink); color: #fff; padding: 0.625rem 0.875rem; border-radius: 0.625rem; text-decoration: none; }
.skip:focus { top: 0.75rem; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Page frame: a centre column with hairline rails and small crosses where sections meet. */
.frame { position: relative; width: min(var(--frame), 100%); margin-inline: auto; border-inline: 1px solid var(--line); }
.tick { position: relative; border-top: 1px solid var(--line); }
.tick > .frame::before, .tick > .frame::after { content: ""; position: absolute; top: -5px; width: 9px; height: 9px; background:
  linear-gradient(var(--line-strong), var(--line-strong)) center / 1px 100% no-repeat,
  linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat; }
.tick > .frame::before { left: -5px; }
.tick > .frame::after { right: -5px; }
.pad { padding: 0 var(--gutter); }

/* Gradient text: blue to mauve to orange, as on the reference page. */
.g { display: block; width: fit-content; color: var(--blue); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .g, .g-orange { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.g-1 { background-image: linear-gradient(90deg, var(--blue) 0%, var(--blue) 34%, var(--mauve) 66%, var(--orange) 100%); }
.g-2 { background-image: linear-gradient(90deg, var(--blue) 0%, var(--blue) 46%, var(--mauve) 72%, var(--orange) 100%); }
.g-end { display: block; color: var(--ink); }
/* Optical alignment: each line starts with a different letter (T, p, t) whose side bearing pushes it right, so pull lines two and three back until the ink lines up. */
.hero h1 .g-2 { margin-left: -.07em; }
.hero h1 .g-end { margin-left: -.044em; }
.g-title { display: inline; background-image: linear-gradient(90deg, var(--blue) 0%, var(--blue) 55%, var(--mauve) 100%); }
.g-final { display: inline; background-image: linear-gradient(90deg, var(--blue), var(--mauve)); }
.g-orange { display: inline; color: var(--orange); background-image: linear-gradient(90deg, var(--mauve), var(--orange) 60%); }
em.hb, em.ho { font-style: normal; }
.hb { color: var(--blue-text); }
.ho { color: var(--orange-text); }
.tg { color: var(--tag); font-weight: 500; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.5rem; padding: 0 1.25rem; border-radius: 62.4375rem; border: 1px solid transparent; font: 500 0.9375rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.pill:active { transform: translateY(1px); }
.pill-md { height: 2.875rem; padding: 0 1.5rem; font-size: 1rem; }
.pill-dark { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .16); }
.pill-dark:hover { background: #262424; }
.pill-line { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.pill-line:hover { background: #f6f4f4; border-color: #c9c4c6; }
.pill-block { width: 100%; }
.link-quiet { padding: 0.5rem 0.75rem; color: var(--ink-2); font-size: 0.9375rem; text-decoration: none; }
.link-quiet:hover { color: var(--ink); }
[data-guest-only][hidden] { display: none; }
.chip { display: inline-flex; align-items: center; height: 1.25rem; padding: 0 0.4375rem; border: 1px solid var(--line-strong); border-radius: 0.3125rem; color: var(--ink-2); font-size: 0.6875rem; font-weight: 500; line-height: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(252, 250, 251, .86); backdrop-filter: blur(0.875rem); -webkit-backdrop-filter: blur(0.875rem); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; height: 4rem; padding: 0 var(--gutter); border-inline: 0; }
.logo { display: inline-flex; flex: none; }
.logo img { flex: none; height: 1.5rem; width: auto; max-width: none; }
.header-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.header-nav a,
.header-nav-link { font-size: 0.9375rem; color: var(--ink-2); text-decoration: none !important; font-weight: 450; padding: 0.375rem 0.25rem; transition: color .15s ease; white-space: nowrap; }
.header-nav a:hover,
.header-nav-link:hover { color: var(--ink); text-decoration: none !important; }
.header-actions { display: flex; align-items: center; gap: 0.375rem; margin-left: auto; }
.header-nav .header-app { display: inline-flex; align-items: center; gap: 0.375rem; }
.header-app .i { width: 1.0625rem; height: 1.0625rem; stroke-width: 1.8; transition: transform .15s ease; }
.header-app:hover .i { transform: translateY(0.125rem); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(2rem, 4.2vw, 4.75rem); align-items: stretch; padding: clamp(2rem, 3.2vw, 3.75rem) var(--gutter) clamp(2.5rem, 4vw, 4.5rem); }
/* The picture is shorter on a wide screen so both columns end at the same height; the note card sits at the foot of the left column. */
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy .ticks { margin-bottom: 2.5rem; }
@media (min-width: 721px) { .hero-copy .note { margin-bottom: 2.75rem; } }
@media (min-width: 1100px) {
  .hero .media-frame { aspect-ratio: 4 / 3; }
  /* The copy and the player sit close together instead of drifting to the two edges. */
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: clamp(2rem, 3vw, 3.5rem); }
}
/* iPad upright: a taller picture gives the script room and ends level with the left column. */
@media (min-width: 721px) and (max-width: 900px) { .hero .media-frame { aspect-ratio: 4 / 5; } }
.eyebrow { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-2); font-size: 0.875rem; }
.hero h1 { margin-top: 1.5rem; font-size: clamp(2.125rem, 3.5vw, 3.375rem); font-weight: 340; letter-spacing: -.032em; line-height: 1.1; }
.lead { margin-top: 1.25rem; max-width: 34rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.hero-copy > .pill { margin-top: 1.75rem; }
.ticks { display: grid; gap: 0.5rem; margin-top: 1.5rem; color: var(--ink-2); font-size: 0.9rem; }
.ticks li { display: flex; align-items: center; gap: 0.5rem; }
.ticks .i { width: 1rem; height: 1rem; color: var(--ink); }
.note { position: relative; max-width: 34rem; margin-top: auto; padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--line); border-radius: 0.875rem; background: rgba(255, 255, 255, .55); }
.note-mark { width: 1.5rem; height: auto; opacity: .22; }
.note p { margin-top: 0.625rem; font-size: 1rem; line-height: 1.55; color: #2a2828; }
.note em { white-space: nowrap; }
.note figcaption { display: flex; align-items: center; gap: 0.625rem; margin-top: 0.875rem; color: var(--ink-2); font-size: 0.8125rem; }
.note .sep { width: 0.1875rem; height: 0.1875rem; border-radius: 50%; background: var(--ink-3); }

.hero-media { position: relative; min-width: 0; }
.media-frame { position: relative; aspect-ratio: 1; border: 1px solid rgba(0, 0, 0, .1); border-radius: 1.125rem; background: #c4cdef; overflow: hidden; box-shadow: 0 1.5rem 3.5rem -2rem rgba(30, 28, 60, .5); }
.media-stage { position: absolute; inset: 0; padding: 6% 6% 3rem; background: linear-gradient(150deg, #a9bcee 0%, #c4cdef 42%, #e9d3cf 78%, #efc9b4 100%); }
.editor { display: flex; flex-direction: column; height: 100%; border-radius: 0.875rem; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 1.5rem 3.125rem -1rem rgba(30, 28, 60, .35); }
.editor-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.875rem 1.125rem 0.625rem; }
.editor-voice { display: inline-flex; align-items: center; gap: 0.4375rem; min-width: 0; padding: 0.375rem 0.8125rem; border: 1px solid var(--line); border-radius: 62.4375rem; background: var(--card); font-size: 0.875rem; font-weight: 550; line-height: 1.2; }
.editor-voice .i { width: 0.9375rem; height: 0.9375rem; flex: none; }
.editor-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: 0.875rem; }
.script-wrap { position: relative; flex: 1 1 auto; min-height: 0; }
.script-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5rem; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.script-wrap.is-note::after { display: none; }
.script { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0.25rem 1.25rem 2.5rem; color: #1f1d1d; font-size: 1rem; line-height: 1.7; scrollbar-width: thin; scrollbar-color: #cdcacb transparent; }
.script:focus-visible { outline-offset: -3px; }
.script p + p { margin-top: 0.75rem; }
.script .tg { display: inline-block; margin-right: 0.25rem; padding: 0 0.3125rem; border: 1px solid rgba(138, 63, 196, .32); border-radius: 0.3125rem; background: rgba(138, 63, 196, .07); font-size: 0.9375rem; line-height: 1.5; }
.script-note { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem; min-height: 100%; padding-bottom: 1.5rem; text-align: center; }
.note-avatar { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; margin-bottom: 0.5rem; border-radius: 50%; background: var(--card); color: var(--ink); font-size: 1.5rem; font-weight: 500; }
.script-note strong { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.script-note span { color: var(--ink-2); font-size: 0.9375rem; }
.script-note small { margin-top: 0.5rem; color: var(--ink-3); font-size: 0.8125rem; }
.wave-card { flex: none; display: flex; align-items: center; gap: 0.75rem; margin: 0 1rem 1rem; padding: 0.625rem 0.875rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #f7f5f5; }
.wave { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.1875rem; height: 2.5rem; overflow: hidden; }
.wave span { flex: 1; min-width: 1px; height: 30%; border-radius: 2px; background: #c9c6c7; transition: background-color .12s; }
.wave span.on { background: #0b0a0a; }
.wave-time { flex: none; min-width: 2.25rem; padding: 2px 0.375rem; border: 1px solid var(--line-strong); border-radius: 0.3125rem; background: #fff; color: var(--ink-2); font: 500 0.6875rem/1.4 var(--mono); text-align: center; }
.see { z-index: 2; position: absolute; right: 1.125rem; bottom: 1.125rem; display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1.25rem 0.5rem 0.5rem; border: 0; border-radius: 0.875rem; background: #fff; box-shadow: 0 0.625rem 1.875rem -0.625rem rgba(0, 0, 0, .45); font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: transform .15s; }
.see:hover { transform: translateY(-1px); }
.see-btn { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #000; color: #fff; }
.see-btn .i { width: 1rem; height: 1rem; stroke: none; }
.see .i-pause { display: none; }
.is-playing .see .i-play { display: none; }
.is-playing .see .i-pause { display: block; }
.player-meta { margin-top: 0.875rem; color: var(--ink-2); font-size: 0.8125rem; }
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.625rem; }
.voice { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; padding: 0.625rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 0.625rem; background: transparent; font-size: 0.875rem; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.voice span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice small { max-width: 100%; text-wrap: balance; }
.voice small { color: var(--ink-3); font-size: 0.75rem; font-weight: 400; }
.voice:hover { background: #fff; }
.voice.is-active { border-color: #000; background: #fff; }
.voice-name { display: flex; align-items: center; gap: 0.4375rem; }
.voice-hot { grid-column: 1 / -1; padding: 0.8125rem 1rem; border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, var(--blue), var(--mauve) 55%, var(--orange)) border-box; box-shadow: 0 0.75rem 1.5rem -1.125rem rgba(211, 67, 31, .55); }
.voice-hot:hover { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, var(--blue), var(--mauve) 55%, var(--orange)) border-box; }
.voice-hot.is-active { border-color: transparent; box-shadow: 0 0 0 3px rgba(154, 111, 146, .2), 0 0.75rem 1.75rem -1.125rem rgba(211, 67, 31, .7); }
.voice-hot .voice-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.voice-hot small { color: var(--ink-2); font-size: 0.8125rem; }
.lang { padding: 0 0.3125rem; border: 1px solid var(--line-strong); border-radius: 0.25rem; color: var(--ink-2); font-size: 0.625rem; font-weight: 600; letter-spacing: .05em; line-height: 1.5; }
.hot { display: inline-flex; align-items: center; gap: 0.1875rem; padding: 0.125rem 0.4375rem 0.125rem 0.3125rem; border-radius: 62.4375rem; background: var(--orange); color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: .07em; line-height: 1.3; }
.hot .i { width: 0.75rem; height: 0.75rem; }
.player-noscript { margin-top: 0.75rem; color: var(--ink-3); font-size: 0.875rem; }

/* Model names strip */
.strip { padding: 2.25rem 0 1.75rem; }
.strip .frame { border-inline: 0; }
.strip-title { text-align: center; color: var(--ink-3); font-size: 0.875rem; }
.names { align-items: center; }
.names li { margin-right: 3rem; color: var(--ink-3); font-size: 1.125rem; font-weight: 450; letter-spacing: -.02em; white-space: nowrap; }
.strip .marquee { margin-top: 1.5rem; }

/* Marquee (duplicated by landing.js; static and scrollable without it) */
.marquee { overflow: hidden; contain: paint; max-width: 100%; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.marquee[data-reverse] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-fade { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.no-js .marquee { overflow-x: auto; }
.no-js .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section titles */
.block { padding: var(--section) 0; }
.h2 { font-size: clamp(1.625rem, 2.4vw, 2.875rem); font-weight: 340; letter-spacing: -.028em; line-height: 1.15; text-wrap: balance; }
.head-center { text-align: center; }
.head-center .sub { margin: 0.75rem auto 0; max-width: 38rem; color: var(--ink-2); font-size: 1.0625rem; text-wrap: balance; }
.cta-after { margin-top: 2rem; }
.cta-center { display: flex; justify-content: center; }

/* Feature cards: three equal columns on a wide screen, two on a tablet, one on a phone. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; background: var(--card); }
.card-copy { padding: 1.5rem 1.5rem 1.5rem; }
.card h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; color: #2a2828; }
.card p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.mock { width: min(calc(100% - 3rem), 30rem); height: 20rem; margin: auto auto 0; overflow: hidden; border-radius: 0.625rem 0.625rem 0 0; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 0.625rem 1.875rem -0.875rem rgba(0, 0, 0, .2);
  /* The screenshot melts into the card instead of ending on a hard cut. */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 5rem), transparent); mask-image: linear-gradient(#000 calc(100% - 5rem), transparent); }
.mock img { width: 100%; height: auto; }
.card-grad { background: linear-gradient(135deg, #6577da 0%, #5b6bcf 34%, #8a5a98 72%, #c9532a 100%); }
.card-grad h3 { color: #fff; }
.card-grad p { color: rgba(255, 255, 255, .92); }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.use { display: flex; flex-direction: column; padding: 1.5rem; border-radius: 1rem; background: var(--card); }
.use-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; color: #2a2828; font-size: 1.125rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.use h3 { margin-top: 1.125rem; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; color: #2a2828; }
.use > p { margin-top: 0.5rem; min-height: 3.2em; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.use ul { margin-top: 1.125rem; padding-top: 1rem; border-top: 1px solid var(--line-strong); display: grid; gap: 0.625rem; }
.use li { display: flex; align-items: flex-start; gap: 0.625rem; color: #2a2828; font-size: 0.875rem; line-height: 1.45; }
.use li .i { margin-top: 2px; width: 0.9375rem; height: 0.9375rem; color: var(--ink-2); }

/* Pricing: plain white cards, the same look as the studio's pricing page. */
.plan-bar { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 2rem; }
.plan-switch { display: flex; width: max-content; max-width: 100%; padding: 0.25rem; border: 1px solid var(--line-strong); border-radius: 62.4375rem; background: #fff; }
.plan-switch button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border: 0; border-radius: 62.4375rem; background: none; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.plan-switch small { color: var(--ink-3); font-size: 0.8125rem; font-weight: 400; }
.plan-switch button[aria-selected="true"] { background: #000; color: #fff; }
.plan-switch button[aria-selected="true"] small { color: #cfcccd; }
.no-js .plan-switch { display: none; }
.plan-arrows { position: absolute; top: 50%; right: 0; display: flex; gap: 0.5rem; transform: translateY(-50%); }
.plan-arrow { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); cursor: pointer; transition: background-color .15s, opacity .15s; }
.plan-arrow:hover:not(:disabled) { background: #f6f4f4; }
.plan-arrow:disabled { opacity: .35; box-shadow: none; cursor: default; }
.plan-arrow .i { width: 1.125rem; height: 1.125rem; }
.no-js .plan-arrows, .plan-arrows[hidden] { display: none; }
/* Plans slide sideways: four in view on a computer or a tablet held sideways, the rest one swipe or arrow away.
   Both edges fade a little, and further on a side that still has plans behind it. The top padding leaves room for the Phổ biến badge. */
.plans { --fade-start: var(--gutter); --fade-end: var(--gutter); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 4); column-gap: 1rem; margin: 1.25rem calc(var(--gutter) * -1) 0; padding: 0.875rem var(--gutter) 0.5rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent); }
.plans::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .plans { --fade-start: calc(var(--gutter) + 1.25rem); --fade-end: calc(var(--gutter) + 1.25rem); } }
.plans[data-more-start] { --fade-start: calc(var(--gutter) + 3rem); }
.plans[data-more-end] { --fade-end: calc(var(--gutter) + 3rem); }
.plans[hidden] { display: none; }
.plan { scroll-snap-align: start; }
.plan { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-strong); border-radius: 1.125rem; background: #fff; }
.plan-head { display: flex; flex-direction: column; padding: 1.375rem 1.375rem 1.5rem; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 1.875rem; }
.plan-name { font-size: 1.125rem; font-weight: 450; letter-spacing: -.01em; }
.plan-badge { position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%); padding: 0.25rem 0.875rem; border-radius: 62.4375rem; background: linear-gradient(90deg, #f2a766, #ec7d3f); color: #fff; font-size: 0.8125rem; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.plan-price { margin-top: 1.25rem; }
.plan-price b { display: block; font-size: clamp(1.375rem, 1.55vw, 1.875rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-price small { margin-left: 0.3em; color: var(--ink-2); font-size: 0.5em; font-weight: 550; letter-spacing: .03em; }
.plan-note { min-height: 2.9em; margin-top: 0.5rem; color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; text-wrap: balance; }
.plan-head .pill { margin-top: 1.25rem; }
.plan-rows { display: grid; gap: 0.875rem; padding: 1.25rem 1.375rem 1.5rem; border-top: 1px solid #f1eeef; border-radius: 0 0 1.0625rem 1.0625rem; background: #faf8f9; }
.plan-rows li { display: flex; align-items: flex-start; gap: 0.625rem; color: #2a2828; font-size: 0.9rem; line-height: 1.45; }
.plan-rows .i { margin-top: 0.15rem; width: 1rem; height: 1rem; color: var(--ink); }
.plan-rows b { font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-rows .more { color: var(--ink-2); }
.plan-rows .more .i { color: var(--ink-2); }
/* Every price, note, button and feature line lines up across the cards (rows taken from the list itself). */
@supports (grid-template-rows: subgrid) {
  .plans { grid-template-rows: repeat(10, auto); row-gap: 0; }
  .plans .plan { display: grid; grid-row: span 10; grid-template-rows: subgrid; row-gap: 0; }
  .plans .plan-head { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-items: start; }
  .plans .plan-note { min-height: 0; }
  .plans .plan-rows { grid-row: span 6; grid-template-rows: subgrid; }
}
/* A running top-up campaign ("Khuyến mãi nạp") set in the admin portal. */
.promo { display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: max-content; max-width: 100%; margin: 1rem auto 0; padding: 0.5625rem 1.25rem 0.5625rem 0.5625rem; border: 1px solid rgba(211, 67, 31, .28); border-radius: 62.4375rem; background: #fff7f3; }
.promo-tag { flex: none; padding: 0.1875rem 0.625rem; border-radius: 62.4375rem; background: var(--orange); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: .02em; }
.promo p { display: flex; flex-wrap: wrap; gap: 0.125rem 0.5rem; color: #2a2828; font-size: 0.9375rem; line-height: 1.45; }
.promo p > b { font-weight: 600; }
.promo p span b { color: var(--orange-text); font-weight: 600; }
.plan-plus { color: var(--orange-text); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .promo { align-items: flex-start; border-radius: 1rem; } }
/* The cheapest way to buy a million characters. */
.cheap { display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: center; column-gap: 1.75rem; width: max-content; max-width: 100%; margin: 1.75rem auto 0; padding: 1.125rem 2rem; border: 1px solid var(--line-strong); border-radius: 1.25rem; background: #fff; box-shadow: 0 1rem 2.5rem -2rem rgba(30, 28, 60, .35); }
.cheap-item { display: flex; align-items: baseline; gap: 0.5rem; white-space: nowrap; }
.cheap-tag { align-self: center; padding: 0.1875rem 0.5625rem; border-radius: 62.4375rem; background: var(--orange); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: .02em; }
.cheap-big { font-size: clamp(1.75rem, 2.3vw, 2.5rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cheap-item:first-child .cheap-big { color: var(--orange-text); }
.cheap-unit { color: var(--ink-2); font-size: 1rem; }
.cheap-sep { width: 1px; height: 2.25rem; background: var(--line-strong); }
.plan-custom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line-strong); border-radius: 1.125rem; background: #fff; }
.plan-custom p { margin-top: 0.25rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.fineprint { margin-top: 1.5rem; color: var(--ink-3); font-size: 0.8125rem; text-align: center; }
.fineprint a { text-underline-offset: 0.1875rem; }

/* Comparison table */
.compare { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; margin-top: clamp(3rem, 5vw, 5rem); }
.compare-title { font-size: 1.5rem; font-weight: 450; letter-spacing: -.015em; }
.compare-tabs { display: flex; gap: 0.25rem; padding: 0.1875rem; overflow-x: auto; scrollbar-width: none; }
.compare-tabs::-webkit-scrollbar { display: none; }
.compare-tabs button { flex: none; min-height: 2.5rem; padding: 0 1rem; border: 1px solid transparent; border-radius: 0.625rem; background: transparent; font-size: 0.9375rem; white-space: nowrap; cursor: pointer; }
.compare-tabs button:hover { background: rgba(0, 0, 0, .04); }
.compare-tabs button[aria-selected="true"] { border-color: var(--line-strong); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.no-js .compare-tabs { display: none; }
.compare-panel { min-width: 0; overflow-x: auto; }
.compare-panel[hidden] { display: none; }
.compare-panel[data-more] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
.no-js .compare-panel[hidden] { display: block; }
.compare-table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { padding: 0.9375rem 0 0.9375rem 1rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.compare-table td { text-wrap: balance; }
.compare-table thead th { padding-top: 0.375rem; border-bottom: 0; font-weight: 500; white-space: nowrap; }
.compare-table tbody th { padding-left: 0; color: var(--ink-2); font-weight: 400; text-align: left; }
.compare-table tbody th small { display: block; margin-top: 0.1875rem; color: var(--ink-3); font-size: 0.8125rem; }
.compare-table th:first-child { position: sticky; left: 0; z-index: 1; width: 27%; min-width: 11rem; padding-right: 0.75rem; background: var(--bg); }
.compare-table td .i { display: inline-block; width: 1.0625rem; height: 1.0625rem; vertical-align: -0.2rem; color: var(--ink); }
.compare-table .no { color: var(--ink-3); }

/* Questions: heading on the left, a plain list on the right. */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.faq-head { position: sticky; top: 5.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.faq-head .sub { color: var(--ink-2); font-size: 1.0625rem; }
.faq-head .pill { margin-top: 0.5rem; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.125rem 0; font-size: 1.0625rem; font-weight: 450; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-right: 0.25rem; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq summary:hover::after { border-color: var(--ink); }
.faq-body { padding: 0 2rem 1.25rem 0; color: var(--ink-2); font-size: 0.9688rem; line-height: 1.65; }
.faq-body a { color: var(--ink); text-underline-offset: 0.1875rem; }
.rates { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.9rem; }
.rates th, .rates td { padding: 0.625rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; color: #2a2828; }
.rates thead th { color: var(--ink-3); font-size: 0.8125rem; }
.rates tbody th { padding-right: 1rem; }
.rates td { text-align: right; white-space: nowrap; font-weight: 500; }
.rates thead th:last-child { text-align: right; }

/* Facts reel */
.reel { padding: var(--section) 0; overflow: hidden; }
.reel-head { text-align: center; }
.reel-rows { display: grid; gap: 1rem; margin-top: 2.25rem; }
.facts { align-items: stretch; }
.fact { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; flex: none; width: 20rem; margin-right: 1rem; padding: 1.25rem; border: 1px solid var(--line-strong); border-radius: 0.875rem; background: #fff; }
.fact p { color: #2a2828; font-size: 0.9375rem; line-height: 1.6; }
.fact-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; color: var(--ink-3); font-size: 0.8125rem; }
.fact-foot > * { white-space: nowrap; }
.fact-foot b { color: #2a2828; font-weight: 500; }
.fact-icon { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--card); color: var(--ink-2); font-size: 0.875rem; }

/* Final call to action */
.final { padding: calc(var(--section) * 1.1) 0 calc(var(--section) * 1.2); }
.final-box { display: flex; flex-direction: column; align-items: center; padding-inline: var(--gutter); border-inline: 0; text-align: center; }
.h2-final { font-size: clamp(1.75rem, 2.8vw, 3.25rem); }
.final .sub { margin: 0.75rem 0 1.75rem; color: var(--ink-2); font-size: 1.0625rem; }
.final-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.5rem; color: var(--ink-2); font-size: 0.875rem; }
.final-trust span { display: inline-flex; align-items: center; gap: 0.375rem; }
.final-trust .i { width: 1rem; height: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0 2.25rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 0 var(--gutter); border-inline: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1.75rem; }
.footer-links a { color: var(--ink-2); font-size: 0.875rem; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1179px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The download link joins the centred nav; on narrower screens the plain "Đăng nhập" link goes first (the black button opens the same sign-in), and the Mac link goes on tablets and phones. */
@media (max-width: 1240px) {
  .header-actions .link-quiet { display: none; }
}
@media (max-width: 900px) {
  .header-nav .header-app { display: none; }
}
/* Narrower screens: the comparison keeps every value on one line by giving the label column less room. */
@media (max-width: 1279px) {
  .compare-table { font-size: 0.875rem; }
  .compare-table th, .compare-table td { padding-left: 0.75rem; }
  .compare-table th:first-child { width: 10.5rem; min-width: 10.5rem; }
}
@media (max-width: 999px) {
  /* Tablets upright and phones: cards keep a readable width and the next one peeks in. */
  .plans { grid-auto-columns: min(17.5rem, 78vw); margin-top: 0.75rem; }
}
@media (max-width: 760px) {
  .plan-arrows { display: none; }
}
@media (max-width: 560px) {
  .cheap { grid-template-columns: auto; justify-items: center; row-gap: 0.375rem; width: 100%; padding: 1rem 1.25rem; }
  .cheap-sep { display: none; }
}
@media (max-width: 1000px) {
  /* Tablets: a wider margin than a phone, so the page does not run to the edge of an iPad. */
  :root { --gutter: clamp(1rem, 4vw, 2rem); }
  .frame { border-inline: 0; }
  .tick > .frame::before, .tick > .frame::after { display: none; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .faq-head { position: static; }
}
@media (max-width: 860px) {
  .voices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; padding-top: 1.75rem; padding-bottom: 2.75rem; }
  .hero h1 { font-size: clamp(1.625rem, 8.3vw, 2.25rem); }
  .hero-copy .ticks { margin-bottom: 0; }
  .hero-copy .note { margin-top: 2rem; }
  .lead { max-width: none; }
  .media-frame { aspect-ratio: 5 / 6; }
}
@media (max-width: 760px) {
  .header-nav { display: none; }
  .h2 { font-size: clamp(1.5rem, 6vw, 1.8125rem); }
  .h2-final { font-size: clamp(1.625rem, 6.8vw, 2rem); }
  .card-copy { padding: 1.25rem 1.25rem 0; }
  .mock { width: auto; height: auto; max-height: 17.5rem; margin: 1.125rem 0 0; border-radius: 0; box-shadow: none; border-top: 1px solid rgba(0, 0, 0, .07); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .use > p { min-height: 0; }
}
@media (max-width: 640px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  /* Four links (with the language link) still share one line on a 390px phone. */
  .footer-links { justify-content: flex-start; gap: 0.75rem 1.125rem; }
}
@media (max-width: 520px) {
  .plan-custom { flex-direction: column; align-items: flex-start; }
  .media-frame { aspect-ratio: 4 / 5; }
  .plan-switch small { display: none; }
  .fact { width: 16.25rem; }
  .fact-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.625rem; row-gap: 0; }
  .fact-foot .fact-icon { grid-row: span 2; }
  .fact-foot > b, .fact-foot > span:last-child { grid-column: 2; white-space: normal; }
  .link-quiet { display: none; }
  .pill { padding: 0 0.9375rem; }
  .wave-card { padding: 0.5rem 0.75rem; }
  .wave { height: 2rem; }
  .compare-table { min-width: 42rem; }
  .compare-table th:first-child { width: 9.5rem; min-width: 9.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* The Mac app download. */
.mac-box { display: flex; justify-content: center; padding-inline: var(--gutter); text-align: center; }
.mac-copy { width: min(100%, 52rem); padding: clamp(2rem, 3.6vw, 3.25rem) clamp(1.25rem, 4vw, 4rem); border: 1px solid var(--line-strong); border-radius: 1.5rem; background: #fff; box-shadow: 0 1.75rem 3.5rem -2.5rem rgba(30, 28, 60, .3); }
/* The app's own icon sits above the title, the way the Mac shows it. */
.mac-copy::before { content: ""; display: block; width: 4rem; height: 4rem; margin: 0 auto 1.25rem; border-radius: 23%; background: url('/landing/img/mac-app-icon.png') center / cover no-repeat; box-shadow: 0 0.875rem 1.5rem -0.75rem rgba(0, 0, 0, .45); }
.mac-copy .sub { margin: 0.75rem auto 1.75rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; text-wrap: balance; }
.mac-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.mac-actions .i { width: 1.125rem; height: 1.125rem; }
.mac-note { margin: 1.25rem auto 0; max-width: 36rem; color: var(--ink-2); font-size: 0.875rem; line-height: 1.6; text-wrap: balance; }
@media (max-width: 480px) { .mac-actions .pill { width: 100%; } }

/* Community channels: a band after the FAQ and the same three icons in the footer. */
.b { display: block; width: 2.5rem; height: 2.5rem; flex: none; }
.community { padding: var(--section) 0; }
.community-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 2.5rem 3.5rem; padding: clamp(1.75rem, 3.6vw, 3.25rem); overflow: hidden; border: 1px solid #cfe7f6; border-radius: 1.75rem; color: var(--ink); background:
  radial-gradient(38rem 26rem at 100% 0%, rgba(42, 171, 238, .2), transparent 65%),
  radial-gradient(30rem 22rem at 0% 110%, rgba(42, 171, 238, .1), transparent 70%),
  #fff; box-shadow: 0 1.75rem 3.5rem -2.5rem rgba(30, 110, 170, .45); isolation: isolate; }
.community-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(42, 120, 180, .12) 1px, transparent 1px); background-size: 1.25rem 1.25rem; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.community-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3125rem 0.875rem 0.3125rem 0.3125rem; border: 1px solid #cfe7f6; border-radius: 62.4375rem; background: #eef8fe; color: #1d6fa5; font-size: 0.8125rem; font-weight: 550; }
.community-chip .b { width: 1.5rem; height: 1.5rem; }
.community-title { margin-top: 1.125rem; font-size: clamp(1.875rem, 3.2vw, 3.25rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.community-title span { color: #1a95d8; }
.community-sub { margin-top: 0.875rem; max-width: 34rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.community-perks { display: grid; gap: 0.625rem; margin-top: 1.375rem; }
.community-perks li { display: flex; align-items: flex-start; gap: 0.625rem; color: #2a2828; font-size: 0.9375rem; line-height: 1.5; }
.community-perks .i { width: 1.25rem; height: 1.25rem; margin-top: 0.0625rem; padding: 0.1875rem; border-radius: 50%; background: #e3f3fc; color: #1a95d8; stroke-width: 2.4; }
.community-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.875rem; }
.community-join { display: inline-flex; align-items: center; gap: 0.625rem; height: 3.25rem; padding: 0 1.25rem 0 0.5rem; border-radius: 62.4375rem; background: #2aabee; color: #fff; font-size: 1rem; font-weight: 600; text-decoration: none; box-shadow: 0 0.75rem 1.75rem -0.75rem rgba(42, 171, 238, .75), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, background-color .15s, box-shadow .15s; }
.community-join .b { width: 2.25rem; height: 2.25rem; }
.community-join .i { width: 1.125rem; height: 1.125rem; stroke-width: 2.2; transition: transform .15s; }
.community-join:hover { background: #229ed9; transform: translateY(-1px); box-shadow: 0 1rem 2.25rem -0.75rem rgba(42, 171, 238, 1), inset 0 1px 0 rgba(255, 255, 255, .25); }
.community-join:hover .i { transform: translateX(3px); }
.community-handle { color: var(--ink-2); font-size: 0.875rem; }
.community-chat { justify-self: end; width: min(100%, 24rem); overflow: hidden; border: 1px solid #d6e6f0; border-radius: 1.375rem; background: #e7f0f6; box-shadow: 0 1.5rem 3rem -1.75rem rgba(30, 90, 140, .45); transform: rotate(1.5deg); }
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-bottom: 1px solid #d6e6f0; background: #fff; }
.chat-head > span:last-child { display: grid; }
.chat-head b { font-size: 0.9375rem; font-weight: 600; }
.chat-head small { color: var(--ink-2); font-size: 0.75rem; }
.chat-avatar { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-body { display: grid; gap: 0.5rem; padding: 1rem; }
.bubble { max-width: 88%; color: #1f1f1f; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); padding: 0.5625rem 0.8125rem; border-radius: 1rem; font-size: 0.875rem; line-height: 1.45; }
.bubble b { display: block; margin-bottom: 0.125rem; color: #1a95d8; font-size: 0.75rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.bubble em { color: var(--tag); font-style: normal; font-family: var(--mono); font-size: 0.8125rem; }
.bubble.in { justify-self: start; border-bottom-left-radius: 0.3125rem; background: #fff; }
.bubble.out { justify-self: end; border-bottom-right-radius: 0.3125rem; background: #e1f6cb; }
@media (max-width: 900px) {
  .community-card { grid-template-columns: 1fr; }
  .community-chat { justify-self: stretch; width: 100%; transform: none; }
}
@media (max-width: 520px) {
  .community-card { border-radius: 1.25rem; }
  .community-join { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .community-join, .community-join .i { transition: none; } }
.footer-social { display: flex; gap: 0.625rem; }
.footer-social .b { width: 2rem; height: 2rem; transition: transform .15s; }
.footer-social a:hover .b { transform: translateY(-2px); }
.footer-row .footer-links { margin-left: auto; }
@media (max-width: 860px) {
  .community-box { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
}
@media (max-width: 640px) {
  .footer-row .footer-links { margin-left: 0; }
}
