/* =====================================================================
   LiveGen home page, layout v3 (2026-10-19), structured after veed.io:
   a centred launcher first screen (mode tabs + looks + Go live, which
   opens /studio), the made-with wall right under it, then what each mode
   does and the way into every mode's own landing page.
   Markup: landing/index.template.html (+ landing.js renders repeated cards).
   The launcher's own styles live in generator.css.
   body[data-pop] follows the mode picked in the launcher: morph = blue,
   outfit = pink, style = yellow, move = orange, summon = green.
   ===================================================================== */
/* Fonts (fonts/colorpop-fonts.css) and the launcher (generator.css) are linked from the page
   head next to this file, not @imported: an @import chain delays the first paint by a round trip. */

:root {
  --ink: #111111;
  --paper: #FFFFFF;
  --mist: #F3F3F0;
  --line: rgba(17, 17, 17, .1);
  --muted: #555555;
  --orange: #FF5B35;
  --blue: #2F4BFF;
  --yellow: #FFD23F;
  --pink: #FF9ACB;
  --green: #19C39A;
  --live: #FF3B30;
  --pop: var(--blue);
  --pop-ink: #FFFFFF;
  --pop-soft: #EDF0FF;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --play: running;
}
body[data-pop="morph"] { --pop: var(--blue); --pop-ink: #FFFFFF; --pop-soft: #EDF0FF; }
body[data-pop="outfit"] { --pop: var(--pink); --pop-ink: #111111; --pop-soft: #FFF0F7; }
body[data-pop="style"] { --pop: var(--yellow); --pop-ink: #111111; --pop-soft: #FFF8DD; }
body[data-pop="move"], body[data-pop="freestyle"] { --pop: var(--orange); --pop-ink: #111111; --pop-soft: #FFF0EB; }
body[data-pop="summon"] { --pop: var(--green); --pop-ink: #111111; --pop-soft: #E6F8F2; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@keyframes h-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes h-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in, html.no-js .reveal { opacity: 1; transform: none; }

/* ---------- layout primitives ---------- */
.h-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.h-sec { padding-top: 128px; }
.h-head { max-width: 780px; margin: 0 auto 52px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.h-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--mist); font: 700 12.5px var(--body); letter-spacing: .04em; text-transform: uppercase;
}
.h-kicker-dark { background: rgba(255, 255, 255, .1); color: #FFFFFF; }
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pop); transition: background .3s; }
.h-h2 { font: 800 clamp(36px, 4.8vw, 64px)/.98 var(--display); letter-spacing: -.05em; }
.h-h2-sm { font-size: clamp(28px, 3.4vw, 44px); text-transform: capitalize; }
.h-lead { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 620px; }
.h-small { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.h-center { text-align: center; display: flex; flex-direction: column; align-items: center; margin-top: 44px; }

/* ---------- buttons ---------- */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font: 700 15px var(--body); cursor: pointer; border: 0;
  transition: transform .15s var(--ease), filter .15s, background .3s;
}
.h-btn:hover { transform: translateY(-2px); }
.h-btn-lg { min-height: 58px; padding: 0 30px; font-size: 17.5px; }
.h-btn-ink { background: var(--ink); color: #FFFFFF; }
.h-btn-pop { background: var(--pop); color: var(--pop-ink); }

/* ---------- nav ---------- */
.h-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.h-nav.scrolled { border-bottom-color: var(--line); }
.h-nav-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.h-brand { display: inline-flex; align-items: center; flex: none; }
.h-logo { height: 34px; width: auto; }
.h-nav-links { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; font-weight: 500; font-size: 15.5px; }
.h-nav-links > a, .h-menu summary { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer; }
.h-nav-links > a:hover, .h-menu summary:hover, .h-menu[open] summary { background: var(--mist); }
.h-menu { position: relative; }
.h-menu summary { list-style: none; }
.h-menu summary::-webkit-details-marker { display: none; }
.h-chev { width: 12px; height: 12px; transition: transform .2s; }
.h-menu[open] .h-chev { transform: rotate(180deg); }
.h-menu-panel {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); z-index: 60;
  width: 560px; padding: 10px; border-radius: 24px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(17, 17, 17, .14);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
}
.h-menu-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; }
.h-menu-item:hover { background: var(--mist); }
.h-menu-item strong { display: block; font: 800 16px var(--display); letter-spacing: -.02em; }
.h-menu-item span span { font-size: 13.5px; color: var(--muted); }
.h-menu-swatch { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--c); }
.h-menu-links { width: 300px; grid-template-columns: 1fr; }
.h-menu-links a { padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.h-menu-links a:hover { background: var(--mist); }
.h-menu-links .h-menu-all { font-weight: 700; }
.h-nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.h-login { font-weight: 500; }
.h-login:hover { text-decoration: underline; text-underline-offset: 5px; }

/* language menu (landing.js drives it) */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px;
  border-radius: 999px; background: var(--mist); cursor: pointer; font-size: 14px; font-weight: 500;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 16px; height: 16px; }
.lang-switch .lang-chevron { width: 12px; height: 12px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px; padding: 6px;
  border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  display: flex; flex-direction: column;
}
.lang-option { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--ink); }
.lang-option:hover { background: var(--mist); }
.lang-option[aria-current="page"] { font-weight: 700; }
.lang-option[aria-current="page"]::after { content: "✓"; }

/* ---------- hero: centred launcher ---------- */
.h-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  max-width: 980px; padding-top: 56px; padding-bottom: 28px; animation: h-rise .6s both;
}
.h-hero-title { font: 800 clamp(48px, 6.6vw, 96px)/.92 var(--display); letter-spacing: -.06em; max-width: 14ch; }
.h-hero-title span { color: var(--pop); transition: color .3s; }
.h-hero-sub { font-size: 18.5px; line-height: 1.5; color: #333333; max-width: 640px; }
.h-hero .lg-gen { margin-top: 14px; }
.h-hero-note { font-size: 13.5px; color: var(--muted); }

/* ---------- proof wall ---------- */
.h-proof { padding-top: 24px; overflow: hidden; }
.marquee-mask { overflow: hidden; }
.marquee-track { display: flex; gap: 14px; width: max-content; padding: 0 7px; }
.marquee-track.a { animation: h-marquee 90s linear infinite; animation-play-state: var(--play); }
.marquee-mask:hover .marquee-track { animation-play-state: paused; }
.gtile { position: relative; flex: none; width: 236px; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; background: var(--c, var(--ink)); cursor: pointer; }
.gtile .glabel { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 700 12.5px var(--body); }
.gtile[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- values strip ---------- */
.h-values-wrap { padding-top: 56px; }
.h-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h-value { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding: 20px 22px; border-radius: 22px; background: var(--mist); }
.h-value-n { grid-row: span 2; font: 800 30px/1 var(--display); letter-spacing: -.05em; }
.h-value:nth-child(1) .h-value-n { color: var(--orange); }
.h-value:nth-child(2) .h-value-n { color: var(--blue); }
.h-value:nth-child(3) .h-value-n { color: #D63384; }
.h-value:nth-child(4) .h-value-n { color: #0E8F70; }
.h-value-title { font: 800 18px var(--display); letter-spacing: -.02em; }
.h-value-desc { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- features: dark bento ---------- */
.h-dark { background: var(--ink); color: #FFFFFF; margin-top: 128px; padding: 112px 0; border-radius: 48px; }
.h-dark .h-small { color: #B5B5B5; }
.h-bento { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px; }
.h-feature { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 12px 12px 26px; border-radius: 32px; background: #1C1C1C; }
.h-feature-tall { grid-row: span 2; }
.h-feature-media { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: var(--c); }
.h-feature-tall .h-feature-media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.h-feature:nth-child(4) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.h-feature:nth-child(4) .h-feature-media { width: 52%; flex: none; }
.h-feature-body { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.h-feature-label { padding: 6px 12px; border-radius: 999px; background: var(--c); color: var(--c-ink); font: 700 12.5px var(--body); }
.h-feature h3 { font: 800 clamp(24px, 2.4vw, 32px)/1.02 var(--display); letter-spacing: -.04em; }
.h-feature p { font-size: 15.5px; line-height: 1.5; color: #C9C9C9; max-width: 560px; }
.h-feature-cap { position: absolute; left: 14px; bottom: 12px; font: 500 12px var(--mono); color: rgba(255, 255, 255, .85); }
.h-show-top { position: absolute; top: 14px; left: 14px; }
.h-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(17, 17, 17, .8); color: #FFFFFF; font: 700 12px var(--body); letter-spacing: .05em; }
.h-rec { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: hg-blink 1.1s infinite; animation-play-state: var(--play); }

/* ---------- modes showcase ---------- */
.h-modes { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.h-modes-list { display: flex; flex-direction: column; gap: 8px; }
.h-modes-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 22px; border: 0; border-radius: 22px;
  background: var(--mist); color: var(--ink); text-align: left; cursor: pointer; transition: background .2s, color .2s;
}
.h-modes-tab[aria-pressed="true"] { background: var(--c); color: var(--c-ink); }
.h-modes-name { font: 800 22px var(--display); letter-spacing: -.035em; }
.h-modes-desc { font-size: 14.5px; opacity: .8; }
.h-modes-stage { position: relative; min-height: 520px; }
.h-modes-panel { position: absolute; inset: 0; padding: 14px; border-radius: 34px; background: var(--c); display: flex; }
.h-modes-screen { position: relative; flex: 1; border-radius: 24px; overflow: hidden; background: var(--ink); }
.h-modes-open {
  position: absolute; left: 32px; right: 32px; bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px 14px 22px; border-radius: 999px; background: var(--paper); font-weight: 700;
}
.h-modes-open span:first-child { font: 800 19px var(--display); letter-spacing: -.02em; }
.h-modes-open span:last-child { padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 14px; }

/* ---------- use cases ---------- */
.h-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.h-case { display: flex; flex-direction: column; border-radius: 30px; padding: 10px 10px 18px; background: var(--c); color: var(--c-ink); transition: transform .3s var(--ease); }
.h-case:hover { transform: translateY(-6px); }
.h-case-media { position: relative; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; background: rgba(0, 0, 0, .2); }
.h-case-body { padding: 16px 10px 0; display: flex; flex-direction: column; gap: 12px; }
.h-case-title { font: 800 22px/1.05 var(--display); letter-spacing: -.035em; }
.h-case-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.h-case-kw { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .75); color: var(--ink); font: 600 12px var(--mono); }
.h-case-go { font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- how it works ---------- */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h-step { display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 24px; border-radius: 30px; background: var(--mist); }
.h-step-top { display: none; }
.h-step-media { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--c); }
.h-step-media::after {
  content: attr(data-n); position: absolute; left: 14px; top: 10px; font: 800 64px/1 var(--display); letter-spacing: -.06em; color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.h-step-title { padding: 0 12px; font: 800 24px var(--display); letter-spacing: -.035em; }
.h-step-desc { padding: 0 12px; color: var(--muted); font-size: 15.5px; }

/* ---------- pricing ---------- */
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--mist); }
.seg button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font: 700 15px var(--body); color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--ink); color: #FFFFFF; }
.off-note { padding: 2px 7px; border-radius: 6px; background: var(--green); color: var(--ink); font-size: 12px; margin-left: 4px; }
.h-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; align-items: stretch; }
.h-tier { position: relative; border-radius: 32px; background: var(--mist); padding: 32px 28px; display: flex; flex-direction: column; gap: 6px; }
.h-tier.pop { background: var(--ink); color: #FFFFFF; }
.h-tier-badge { position: absolute; top: -13px; left: 28px; padding: 6px 12px; border-radius: 999px; background: var(--pop); color: var(--pop-ink); font: 800 12px var(--body); letter-spacing: .05em; }
.h-tier-name { font: 800 24px var(--display); letter-spacing: -.03em; }
.h-tier-tag { font-size: 15px; color: var(--muted); min-height: 44px; }
.h-tier.pop .h-tier-tag, .h-tier.pop .h-tier-note, .h-tier.pop .h-tier-per { color: #BDBDBD; }
.h-tier-price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.h-tier-amount { font: 800 60px/1 var(--display); letter-spacing: -.06em; }
.h-tier-per { font-size: 16px; color: var(--muted); }
.h-tier-note { font: 500 12.5px var(--mono); color: var(--muted); margin-bottom: 18px; }
.h-tier-cta { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: var(--paper); font-weight: 800; font-size: 16px; margin-bottom: 22px; }
.h-tier.pop .h-tier-cta { background: var(--pop); color: var(--pop-ink); }
.h-tier-feats { display: flex; flex-direction: column; gap: 10px; }
.h-tier-feat { display: flex; gap: 10px; font-size: 15px; }
.h-tier-feat .ck { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #FFFFFF; font-size: 11px; font-weight: 800; }
.h-tier.pop .h-tier-feat .ck { background: var(--pop); color: var(--pop-ink); }

/* ---------- FAQ ---------- */
.h-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.h-faq-head { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: 24px; background: var(--mist); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; cursor: pointer; }
.faq-q .qt { font: 700 17.5px var(--body); }
.faq-q .sign { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); font: 700 20px var(--body); }
.faq-item:has(.faq-a) { background: var(--pop-soft); }
.faq-item:has(.faq-a) .sign { background: var(--ink); color: #FFFFFF; }
.faq-a { padding: 0 22px 22px; font-size: 16px; line-height: 1.6; color: #333333; max-width: 640px; }

/* ---------- explore: every landing page ---------- */
.h-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.h-chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 14px;
  background: var(--mist); font-size: 15px; font-weight: 600;
}
.h-chips a:hover { background: var(--ink); color: #FFFFFF; }

/* ---------- final CTA ---------- */
.h-cta {
  border-radius: 44px; background: var(--pop); color: var(--pop-ink); padding: 80px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px; transition: background .3s;
}
.h-cta h2 { font: 800 clamp(44px, 6.4vw, 92px)/.9 var(--display); letter-spacing: -.06em; max-width: 12ch; }
.h-cta p { font-size: 19px; line-height: 1.45; max-width: 560px; }

/* ---------- footer ---------- */
.h-foot { margin-top: 128px; background: var(--ink); color: #FFFFFF; border-radius: 48px 48px 0 0; padding: 64px 0 36px; }
.h-foot-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.h-foot-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.h-foot-brand p { color: #BDBDBD; font-size: 15px; max-width: 280px; }
.h-foot-cols { flex: 3 1 600px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.h-foot-title { font: 800 15px var(--display); letter-spacing: .02em; margin-bottom: 14px; }
.h-foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.h-foot-links a, .h-foot-legal a, .h-foot-bottom a { color: #C9C9C9; }
.h-foot-links a:hover, .h-foot-legal a:hover, .h-foot-bottom a:hover { color: #FFFFFF; }
.h-foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13.5px; color: #A8A8A8; }
.h-foot-legal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.h-foot .lang-switch summary { background: rgba(255, 255, 255, .1); color: #FFFFFF; }
.lang-switch-footer .lang-menu { top: auto; bottom: calc(100% + 8px); }
/* the menu is a white card inside the dark footer: keep its items ink, not the footer link greys */
.h-foot .lang-menu .lang-option, .h-foot .lang-menu .lang-option:hover { color: var(--ink); }

/* ---------- tablets ---------- */
@media (max-width: 1024px) {
  .h-nav-links { display: none; }
  .h-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-bento { grid-template-columns: minmax(0, 1fr); }
  .h-feature-tall { grid-row: auto; }
  .h-feature-tall .h-feature-media { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .h-feature:nth-child(4) { flex-direction: column; align-items: stretch; }
  .h-feature:nth-child(4) .h-feature-media { width: auto; }
  .h-modes { grid-template-columns: minmax(0, 1fr); }
  .h-modes-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .h-modes-tab { flex: none; }
  .h-modes-desc { display: none; }
  .h-modes-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .h-cases, .h-steps, .h-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .h-faq-head { position: static; }
  .h-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phones: the launcher's image slot sits on the first screen ---------- */
@media (max-width: 640px) {
  .h-wrap { padding-left: 16px; padding-right: 16px; }
  .h-sec { padding-top: 88px; }
  .h-nav-inner { min-height: 60px; gap: 12px; }
  .h-logo { height: 28px; }
  .h-nav-right .lang-switch, .h-nav-right .h-btn { display: none; }
  .h-hero { padding-top: 18px; gap: 12px; }
  .h-hero .h-kicker, .h-hero-note { display: none; }
  .h-hero-title { font-size: 44px; }
  .h-hero-sub { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .h-hero .lg-gen { margin-top: 4px; }
  .gtile { width: 170px; }
  .h-values { grid-template-columns: minmax(0, 1fr); }
  .h-dark { margin-top: 88px; padding: 80px 0; border-radius: 32px; }
  .h-modes-stage { aspect-ratio: 4 / 5; }
  .h-modes-open { left: 22px; right: 22px; bottom: 22px; }
  .h-cases, .h-steps, .h-tiers { grid-template-columns: minmax(0, 1fr); }
  .h-cta { padding: 56px 22px; border-radius: 32px; }
  .h-foot { border-radius: 32px 32px 0 0; margin-top: 88px; }
  .h-foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --play: paused; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .h-hero { animation: none; }
}

/* ---------- media loading state (landing.js / livegen.js add the classes) ----------
   A clip tile shimmers until its poster arrives, then the clip fades in once it plays.
   The sweep is a transform animation on its own element (.lg-shim), so it runs on the compositor
   and costs the main thread nothing; it is hidden as soon as the poster or the clip is there. */
@keyframes lg-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.lg-shim { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: rgba(17, 17, 17, .07); }
/* Only tiles that are fetching something sweep; idle off-screen tiles stay a flat placeholder. */
.lg-media.is-loading > .lg-shim::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .45) 50%, transparent 75%);
  animation: lg-sweep 1.3s linear infinite;
}
.lg-media.has-poster > .lg-shim, .lg-media.is-ready > .lg-shim { display: none; }
.lg-media > video { opacity: 0; transition: opacity .45s ease; }
.lg-media.has-poster > video, .lg-media.is-ready > video { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lg-media.is-loading > .lg-shim::after { animation: none; } }
