/* The landing page (/) and the scenario pages: dark, with a neon glow, and Bubbo.
   Always dark, whatever the app's appearance setting: this is the brand's page.
   style.css comes first for the app's own pieces (sentence cards, the play
   button) that draw the demo; their colours are set to the app's dark ones here. */

body.lp {
  /* the app's dark palette, for the demo's cards and controls */
  --bg: #05060a;
  --surface: #11141c;
  --surface-2: #1b2030;
  --text: #f5f7fb;
  --text-2: #b9c0cf;
  --text-3: #8b93a5;
  --hairline: rgba(255, 255, 255, 0.1);
  --glass: rgba(16, 19, 28, 0.72);
  /* the play button in the demo: the app's default accent, teal (style.css, dark) */
  --pearl-1: #4fcabc;
  --pearl-2: #14b8a6;
  --pearl-ink: #0b1016;
  --accent: #5eead4;
  --mark: #14b8a6;
  --tint: 12%;
  --who-mix: 100%;
  --dot-mix: 100%;
  /* this page's own: the logo's teal (icon.svg, #14b8a6 -> #0e7490), with a little violet in the glow */
  --sky: #14b8a6;
  --cyan: #22d3ee;
  --violet: #8b5cff;
  --cta-1: #0f766e;
  --cta-2: #0e7490;
  color-scheme: dark;
  overflow: visible;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}
html:has(body.lp) { height: auto; overflow-x: hidden; background: #05060a; color-scheme: dark; }
body.lp { height: auto; }
.lp a { color: inherit; }
.lp h1, .lp h2, .lp h3, .lp p { margin: 0; }
.lp h1, .lp h2, .lp h3 { letter-spacing: -0.02em; }

/* Top bar ----------------------------------------------------------------- */

.lp-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--sat) + 10px) 16px 10px;
  background: rgba(5, 6, 10, 0.72);
  border-bottom: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
          backdrop-filter: blur(20px) saturate(1.4);
}
.lp-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 17px; font-weight: 700; text-decoration: none; }
.lp-brand img { width: 30px; height: 30px; border-radius: 8px; }
.lp-nav { display: none; gap: 22px; margin-right: 8px; font-size: 15px; }
.lp-nav a { text-decoration: none; color: var(--text-2); }
.lp-nav a:hover { color: var(--text); }
/* The language: one button with the language in use, opening a small menu of the three */
.lp-lang { position: relative; }
.lp-lang summary { display: flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.lp-lang summary::-webkit-details-marker { display: none; }
.lp-lang summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-lang-globe { color: var(--text-2); }
.lp-lang-now { min-width: 1.2em; text-align: center; }
.lp-lang-caret { color: var(--text-2); transition: transform 0.15s; }
.lp-lang[open] .lp-lang-caret { transform: rotate(180deg); }
.lp-lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 6; min-width: 160px; padding: 6px; border: 1px solid var(--hairline); border-radius: 14px; background: #14161d; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8); }
.lp-lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; text-decoration: none; color: var(--text); white-space: nowrap; }
.lp-lang-menu a:hover, .lp-lang-menu a:focus-visible { background: var(--surface-2); outline: none; }
.lp-lang-menu a.on { font-weight: 700; }
.lp-lang-menu a.on::after { content: ""; width: 14px; height: 8px; margin-top: -4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* The call to action: a gradient pill that glows */
.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(120deg, var(--cta-1), var(--cta-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 12px 36px -10px rgba(13, 148, 136, 0.85), 0 0 40px -8px rgba(20, 184, 166, 0.6);
}
.lp-cta:active { transform: scale(0.98); }
/* "Sign in", for people who have an account already: next to the trial button, at every width */
.lp-signin { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--text); }
.lp-signin:hover { text-decoration: underline; }
.lp-signin[hidden] { display: none; }
.lp-cta-small { min-height: 36px; padding: 0 14px; font-size: 14px; box-shadow: 0 0 24px -8px rgba(13, 148, 136, 0.9); }

/* Hero ---------------------------------------------------------------------- */

.lp-hero {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 30px max(20px, calc((100% - 1080px) / 2)) 30px;
  isolation: isolate;
}
/* the neon light behind Bubbo */
.lp-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40px 0 auto;
  height: 520px;
  background:
    radial-gradient(40% 36% at 30% 32%, rgba(20, 184, 166, 0.5), transparent 70%),
    radial-gradient(34% 30% at 70% 22%, rgba(34, 211, 238, 0.42), transparent 70%),
    radial-gradient(30% 26% at 58% 58%, rgba(139, 92, 255, 0.28), transparent 70%);
  filter: blur(18px);
}
/* The landing page's picture: Bubbo on the right of a dark neon scene, full width;
   what he says sits in the dark part on the left. */
.lp-hero-art { position: relative; margin: -30px -20px 0; aspect-ratio: 16 / 9; overflow: hidden; }
.lp-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.lp-hero-art::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--bg)); }
.lp-speech {
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 16%;
  max-width: 50%;
  padding: 11px 14px;
  border-radius: 20px 20px 6px 20px;
  background: #fff;
  color: #10131b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  box-shadow: 0 10px 30px -10px rgba(20, 184, 166, 0.7);
}
/* A scenario page's picture: Bubbo at that place */
.lp-scene-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px -24px rgba(20, 184, 166, 0.6); }
.lp-head-bubbo { display: flex; align-items: center; gap: 8px; }
.lp-head-bubbo img { flex: none; width: 64px; height: 64px; margin: -8px 0 -8px -8px; }
.lp-brand img { width: 30px; height: 30px; border-radius: 8px; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.lp-hero h1 {
  white-space: pre-line;
  font-size: clamp(34px, 9.4vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 0 28px rgba(94, 234, 212, 0.35);
}
.lp-lead { margin-top: 14px !important; font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 560px; }
.lp-hero .lp-cta { margin-top: 24px; }
.lp-note { margin-top: 12px !important; font-size: 14px; color: var(--text-3); }
.lp-caution { margin-top: 14px !important; padding: 11px 15px; border-radius: 14px; background: rgba(255, 196, 80, 0.12); border: 1px solid rgba(255, 196, 80, 0.35); font-size: 14px; line-height: 1.55; color: #ffe3a8 !important; }

/* Sections ------------------------------------------------------------------ */

.lp-section { scroll-margin-top: 64px; max-width: 1080px; margin: 0 auto; padding: 56px 20px 8px; }
.lp-section h2, .lp-final h2 { font-size: clamp(27px, 7vw, 40px); font-weight: 800; line-height: 1.2; }
.lp-section-lead { margin-top: 12px !important; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.lp h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.lp-section p { line-height: 1.65; }
.lp-steps p, .lp-features p, .lp-card p, .lp-plan p { margin-top: 6px; color: var(--text-2); }

/* The demo ------------------------------------------------------------------ */

.lp-demo-section { position: relative; isolation: isolate; }
.lp-demo-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 120px 0 auto;
  height: 560px;
  background: radial-gradient(45% 50% at 50% 50%, rgba(34, 211, 238, 0.35), transparent 70%), radial-gradient(35% 40% at 30% 70%, rgba(20, 184, 166, 0.3), transparent 70%);
  filter: blur(20px);
}
.demo { margin-top: 22px; }
.demo-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); margin-bottom: 16px; }
.demo-tabs button { padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.demo-tabs button.on { background: #fff; color: #05060a; }
.demo-stage { display: grid; gap: 14px; }
.demo-bubbo { display: flex; align-items: center; gap: 10px; min-height: 96px; }
.demo-bubbo img { flex: none; width: 96px; height: 96px; filter: drop-shadow(0 10px 20px rgba(13, 148, 136, 0.45)); }
.demo-say {
  flex: 1;
  padding: 12px 15px;
  border-radius: 6px 20px 20px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.demo-say.pop { animation: pop 0.35s ease-out; }
@keyframes pop { from { transform: translateY(6px); opacity: 0.2; } }
.demo-phone {
  justify-self: center;
  width: min(100%, 380px);
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a3042, #121521);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px -24px rgba(34, 211, 238, 0.6), 0 0 60px -20px rgba(20, 184, 166, 0.55);
}
.demo-screen {
  display: flex;
  flex-direction: column;
  height: 520px;
  padding: 16px 10px 12px;
  border-radius: 36px;
  background: radial-gradient(130% 40% at 50% 108%, color-mix(in srgb, var(--sky) 18%, transparent), transparent 70%), var(--bg);
  --scale: 0.88;
}
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 10px; }
.demo-top .brand { font-size: 14px; }
.demo-top .meta { margin: 0; font-size: 11px; padding: 5px 10px 5px 8px; }
.demo-top .meta .dot-rec { background: #ff5a5a; box-shadow: 0 0 10px #ff5a5a; animation: pulse 1.8s ease-in-out infinite; }
.demo-feed { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 2px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px); mask-image: linear-gradient(to bottom, transparent 0, #000 12px); }
.demo-feed::-webkit-scrollbar { display: none; }
.demo-feed .line, .demo-feed .live-card { margin-bottom: 8px; padding: 11px 13px 12px; border-radius: 18px; }
.demo-feed .who { font-size: 12px; }
.demo-feed .live-card .typing { color: var(--text-2); }
.demo-feed .typing-tr:not(:empty)::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; animation: pulse 1s steps(1) infinite; }
.demo-screen .dock-row { height: 58px; margin-top: 8px; }
.demo-screen .dock-row .side { font-size: 14px; padding: 10px; }
.demo-screen .play { width: 62px; height: 62px; margin: -8px 0; cursor: default; }
.demo-screen .play .glyph { width: 24px; height: 24px; }
/* A talk: as the app shows Lecture mode, one speaker, no names, large text, no cards */
.demo-lecture .demo-feed .line { background: none; border-color: transparent; padding: 6px 8px; margin: 0; }
.demo-lecture .demo-feed .who { display: none; }
.demo-lecture .demo-feed .zh, .demo-lecture .demo-feed .typing-tr { font-size: calc(25px * var(--scale)); line-height: 1.5; }
.demo-lecture .demo-feed .en, .demo-lecture .demo-feed .typing { font-size: calc(15px * var(--scale)); }
.demo-lecture .demo-feed .live-card { background: var(--surface); border-color: var(--hairline); box-shadow: none; padding: 12px 14px; margin: 8px 0 0; }
.demo-lecture .demo-feed .typing .who { display: none; }
.demo-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; text-align: center; }
.demo-replay { padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); font-size: 15px; font-weight: 600; color: var(--text); }
.demo-note { font-size: 13px; color: var(--text-3); max-width: 420px; }

/* Steps, features, scenarios ------------------------------------------------ */

.lp-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.lp-steps li { position: relative; padding: 20px 20px 20px 74px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hairline); counter-increment: step; }
.lp-steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--cta-1), var(--cta-2));
  box-shadow: 0 0 18px -4px rgba(13, 148, 136, 0.9);
}

.lp-features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.lp-features li { padding: 18px 20px; border-radius: 24px; background: color-mix(in oklab, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); box-shadow: 0 0 30px -18px var(--c); }
.lp-features h3 { display: flex; align-items: center; gap: 9px; }
.lp-features h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

.lp-cards { margin-top: 24px; display: grid; gap: 12px; }
.lp-card { display: flex; flex-direction: column; padding: 22px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hairline); }
.lp-more { margin-top: 14px; align-self: flex-start; color: var(--accent) !important; font-weight: 650; text-decoration: none; }
/* A situation card: its picture on top (Bubbo stays in frame), and the whole card opens its page */
.lp-scene-card { position: relative; overflow: hidden; }
.lp-card-img { display: block; width: calc(100% + 40px); max-width: none; height: auto; aspect-ratio: 16 / 9; margin: -22px -20px 16px; object-fit: cover; object-position: 70% 50%; }
.lp-scene-card .lp-more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lp-scene-card:active { transform: scale(0.99); }
.lp-scene-card:has(.lp-more:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Bubbo by the step about the laptop speaker */
.lp-step-art { padding-right: 92px !important; }
.lp-step-bubbo { position: absolute; right: 12px; top: 50%; width: 72px; height: 72px; transform: translateY(-50%); }

/* Pricing */
.lp-plans { margin-top: 24px; display: grid; gap: 12px; }
.lp-plan { padding: 22px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hairline); }
.lp-plan[data-plan="standard"] { border-color: rgba(94, 234, 212, 0.5); box-shadow: 0 0 40px -20px rgba(20, 184, 166, 0.9); }
.lp-price { margin-top: 10px !important; color: var(--text) !important; }
.lp-price strong { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.lp-price span { margin-left: 2px; font-size: 15px; color: var(--text-2); }
.lp-plan .lp-year { margin-top: 2px; font-size: 15px; color: var(--accent); font-weight: 650; }
.lp-fine { font-size: 13px; color: var(--text-3) !important; line-height: 1.55; }
.lp-section > .lp-fine { margin-top: 16px; }
.lp-center { text-align: center; }
.lp-section > .lp-center .lp-cta { margin-top: 22px; }

/* FAQ: plain <details>, open and close without JavaScript */
.lp-faq { margin-top: 20px; display: grid; gap: 10px; }
.lp-faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-size: 17px; font-weight: 650; line-height: 1.4; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--text-3); }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details > p { padding: 0 20px 18px; color: var(--text-2); }
.lp-faq a, .lp-more-faq a { color: var(--accent); }
.lp-more-faq { margin-top: 16px; }

.lp-final { position: relative; isolation: isolate; margin: 64px 0 0; padding: 40px 20px 56px; text-align: center; }
.lp-final::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 60% at 50% 40%, rgba(13, 148, 136, 0.35), transparent 70%); filter: blur(10px); }
.lp-final-bubbo { width: 120px; height: 120px; margin-bottom: 10px; animation: float 5s ease-in-out infinite; }
.lp-final p { margin-top: 10px; color: var(--text-2); font-size: 17px; }
.lp-final .lp-cta { margin-top: 24px; }

.lp-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 28px 20px calc(var(--sab) + 32px); border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text-3); }
.lp-foot a { color: var(--accent); text-decoration: none; }

/* Narrow phones: the bar holds the name, the language, "Sign in" and the trial
   button on one line. */
@media (max-width: 440px) {
  .lp-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .lp-brand { gap: 6px; font-size: 16px; }
  .lp-brand img { width: 26px; height: 26px; }
  .lp-lang summary { gap: 4px; padding: 0 8px; }
  .lp-signin { padding: 0 3px; }
  .lp-cta-small { padding: 0 11px; }
}
/* The smallest phones (320 wide): the icon stands for the name */
@media (max-width: 359px) {
  .lp-brand span { display: none; }
}
.lp-signin, .lp-cta-small, .lp-lang { flex-shrink: 0; }
.lp-cta-small { white-space: nowrap; }

/* Wider screens ------------------------------------------------------------- */

@media (min-width: 760px) {
  .lp-bar { padding-left: 28px; padding-right: 28px; }
  .lp-nav { display: flex; }
  .lp-hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
  .lp-hero-scene .lp-scene-art { order: 2; }
  /* the picture behind the whole hero, the words on its dark left half */
  .lp-hero-home { min-height: 600px; }
  .lp-hero-home .lp-hero-art { position: absolute; z-index: -1; inset: 0 0 0 30%; margin: 0; aspect-ratio: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); }
  .lp-hero-home .lp-hero-img { object-position: 70% 50%; }
  .lp-hero-home .lp-hero-text { grid-column: 1; max-width: 500px; }
  .lp-speech { left: 26%; right: auto; top: 8%; max-width: 260px; font-size: 15px; border-radius: 20px 20px 6px 20px; }
  .lp-section { padding-left: 28px; padding-right: 28px; }
  .demo-stage { grid-template-columns: 1fr 380px; align-items: center; gap: 36px; }
  .demo-bubbo { flex-direction: column; align-items: flex-start; }
  .demo-bubbo img { width: 160px; height: 160px; }
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-cards { grid-template-columns: repeat(2, 1fr); }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-plans { grid-template-columns: repeat(4, 1fr); }
}

/* Reduce motion: nothing floats or pops (the demo shows the whole conversation at once) */
@media (prefers-reduced-motion: reduce) {
  .lp-final-bubbo, .demo-say.pop, .demo-top .meta .dot-rec { animation: none; }
}
