/* ==========================================================================
   GloxChat public site (home, content pages, legal pages).
   Built on gx.css tokens (loaded first). Pattern: "Product Demo + Features"
   (Minimalism & Swiss Style, messenger blue + online green).
   Motion: transform/opacity only, --gx-dur-* / --gx-ease-* tokens,
   everything reduced-motion safe (gx.css also clamps durations globally).
   ========================================================================== */

:root { --hdr-h: 64px; --sec-y: clamp(64px, 6vw + 32px, 112px); }
body { min-height: 100dvh; background: var(--gx-bg); overflow-x: clip; }
main { display: block; }
svg { flex: none; }
svg:not(.fill-all) { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
.gx-skip { inset-inline-start: 12px; left: auto; }
code { background: var(--gx-surface-2); border: 1px solid var(--gx-border); border-radius: var(--gx-r-xs); padding: .05em .4em; }
[hidden] { display: none !important; }

/* ── Header (sticky, translucent, one line) ── */
.site-header {
  position: sticky; top: 0; z-index: var(--gx-z-sticky);
  background: color-mix(in srgb, var(--gx-bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-block-end: 1px solid transparent;
  transition: border-color var(--gx-dur-2) var(--gx-ease-out), box-shadow var(--gx-dur-2) var(--gx-ease-out);
}
.site-header.scrolled { border-block-end-color: var(--gx-border); box-shadow: var(--gx-shadow-sm); }
.hdr { display: flex; align-items: center; gap: 24px; min-height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gx-fg); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; min-height: 44px; }
.brand img { border-radius: 9px; }
.nav-menu { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--gx-fg-2); text-decoration: none; font-weight: 600; font-size: var(--gx-text-sm); border-radius: var(--gx-r-sm);
  transition: color var(--gx-dur-1) var(--gx-ease-out), background-color var(--gx-dur-1) var(--gx-ease-out);
}
.nav-links a:hover { color: var(--gx-fg); background: var(--gx-surface-2); }
.nav-links a[aria-current="page"] { color: var(--gx-primary-text); }
.nav-actions { display: flex; gap: 8px; margin-inline-start: auto; }
.nav-actions .gx-btn { min-height: 40px; font-size: var(--gx-text-sm); padding: 0 16px; }
.nav-toggle {
  display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: var(--gx-r-sm);
  border: 1px solid var(--gx-border); background: var(--gx-surface); color: var(--gx-fg);
  align-items: center; justify-content: center;
}
.nav-toggle .i-close { display: none; }
.site-header.open .nav-toggle .i-open { display: none; }
.site-header.open .nav-toggle .i-close { display: inline; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 16px 20px; background: var(--gx-bg); border-block-end: 1px solid var(--gx-border); box-shadow: var(--gx-shadow-lg);
    max-height: calc(100dvh - var(--hdr-h)); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity var(--gx-dur-1) var(--gx-ease-in), transform var(--gx-dur-1) var(--gx-ease-in), visibility 0s linear var(--gx-dur-1);
  }
  .site-header.open .nav-menu {
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: opacity var(--gx-dur-2) var(--gx-ease-out), transform var(--gx-dur-2) var(--gx-ease-out), visibility 0s;
  }
  .nav-links { flex-direction: column; margin: 0; }
  .nav-links a { font-size: var(--gx-text-md); min-height: 48px; }
  .nav-actions { margin: 0; }
  .nav-actions .gx-btn { flex: 1; min-height: 48px; font-size: var(--gx-text-md); }
}

/* ── Shared section scaffolding ── */
.section { padding-block: var(--sec-y); }
.section-alt { background: var(--gx-bg-subtle); border-block: 1px solid var(--gx-border); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: start; }
.section-head h2 { font-size: var(--gx-text-4xl); font-weight: 800; margin-bottom: 14px; }
.eyebrow { margin: 0 0 12px; color: var(--gx-primary-text); font-weight: 700; font-size: var(--gx-text-sm); letter-spacing: .06em; text-transform: uppercase; }
.sub { margin: 0; color: var(--gx-muted); font-size: var(--gx-text-lg); }
.section-more { margin: 40px 0 0; text-align: center; }
.section-more a, .frow-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--gx-primary-text);
}
.section-more a svg, .frow-links a svg { transition: transform var(--gx-dur-2) var(--gx-ease-out); }
.section-more a:hover svg { transform: translateX(3px); }
.section-more a:hover, .frow-links a:hover { text-decoration: underline; }

/* ── Hero ── */
.hero { position: relative; padding-block: clamp(32px, 4vw, 56px) clamp(48px, 5vw, 72px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(48% 50% at 50% 20%, rgb(37 99 235 / .14), transparent 70%),
    radial-gradient(30% 40% at 82% 30%, rgb(20 184 166 / .10), transparent 70%);
}
.hero::after { /* hairline grid: Swiss, quiet */
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 640px; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--gx-border) 1px, transparent 1px), linear-gradient(90deg, var(--gx-border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000 30%, transparent 80%); mask-image: radial-gradient(60% 70% at 50% 0%, #000 30%, transparent 80%);
}
.hero-copy { text-align: center; max-width: 880px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 14px 6px 12px;
  border: 1px solid var(--gx-border); border-radius: var(--gx-r-full); background: var(--gx-surface);
  color: var(--gx-fg-2); font-size: var(--gx-text-sm); font-weight: 600; box-shadow: var(--gx-shadow-sm);
}
.live-dot { animation: gx-pulse 2.4s ease-out infinite; }
.hero h1 { font-feature-settings: normal; font-size: var(--gx-text-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 0 0 20px; }
.hero h1 .hl { display: block; color: var(--gx-primary); }
.hero-lead { max-width: 640px; margin: 0 auto 28px; color: var(--gx-muted); font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.hero-cta .i { transition: transform var(--gx-dur-2) var(--gx-ease-out); }
.hero-cta a:hover .i { transform: translateX(3px); }
.tour-open .i { color: var(--gx-primary); }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 36px; padding: 0; list-style: none; color: var(--gx-fg-2); font-size: var(--gx-text-sm); font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { color: var(--gx-online); stroke-width: 2.4; }

/* The one orchestrated page-load moment: copy rises in sequence, then the demo. */
@media (prefers-reduced-motion: no-preference) {
  .hero-kicker, .hero h1, .hero-lead, .hero-cta, .hero-points, .demo {
    animation: gx-rise var(--gx-dur-4) var(--gx-ease-out) both;
  }
  .hero h1 { animation-delay: 60ms; }
  .hero-lead { animation-delay: 120ms; }
  .hero-cta { animation-delay: 180ms; }
  .hero-points { animation-delay: 220ms; }
  .demo { animation-name: hero-demo-in; animation-duration: 760ms; animation-delay: 280ms; }
}
@keyframes hero-demo-in { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }

/* ── Product demo ── */
.demo { margin: 0; position: relative; }
.demo-stage {
  --pane-h: 460px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr) 236px; gap: 20px; align-items: end;
  padding: 28px; border-radius: 24px; border: 1px solid var(--gx-border);
  background: linear-gradient(180deg, var(--gx-surface), var(--gx-bg-subtle)); box-shadow: var(--gx-shadow-xl);
}
.pane { position: relative; min-width: 0; transition: opacity var(--gx-dur-3) var(--gx-ease-out), transform var(--gx-dur-3) var(--gx-ease-out); }
.pane-tag {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 3px 10px; border-radius: var(--gx-r-full);
  font-size: var(--gx-text-xs); font-weight: 700; color: var(--gx-muted); background: var(--gx-surface-2);
  transition: color var(--gx-dur-2), background-color var(--gx-dur-2);
}
.demo.is-live .pane.is-focus .pane-tag { color: var(--gx-on-primary); background: var(--gx-primary); }
.demo.is-live .pane.is-focus .win, .demo.is-live .pane.is-focus .phone { box-shadow: 0 0 0 2px var(--gx-primary), var(--gx-shadow-lg); }

/* Shared chat atoms (demo + feature art) */
.av {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  font-size: 11px; font-weight: 800; color: #fff; background: var(--gx-blue-600);
}
.av .on { position: absolute; inset-block-end: -1px; inset-inline-end: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--gx-online); border: 2px solid var(--gx-surface); }
.av-m { background: #0f766e; } .av-v { background: #4f46e5; } .av-a { background: #b45309; } .av-b { background: #0369a1; } .av-c { background: #be123c; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gx-online); margin-inline-end: 5px; vertical-align: 1px; }
.b {
  max-width: 86%; margin: 0; padding: 8px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45;
  background: var(--gx-bubble-in); color: var(--gx-bubble-in-fg); overflow-wrap: anywhere;
}
.b-l { align-self: flex-start; border-end-start-radius: 4px; }
.b-r { align-self: flex-end; border-end-end-radius: 4px; background: var(--gx-bubble-out); color: var(--gx-bubble-out-fg); }
.b .who { display: block; font-size: 10.5px; font-weight: 700; color: var(--gx-muted); margin-bottom: 2px; }
.b .meta { display: flex; justify-content: flex-end; margin-top: 3px; font-size: 10px; font-weight: 600; opacity: .9; }
.st { display: inline-flex; align-items: center; gap: 3px; }
.st svg { stroke-width: 2.6; }
.b-r .st.seen { color: #bbf7d0; }
.b-l .st.seen { color: var(--gx-online); }
.typing { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.typing .av { width: 22px; height: 22px; font-size: 10px; }
.dots { display: inline-flex; gap: 4px; padding: 9px 11px; border-radius: 14px; border-end-start-radius: 4px; background: var(--gx-bubble-in); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gx-muted); animation: gx-typing 1.2s var(--gx-ease-out) infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.demo:not(.is-playing) .dots i { animation-play-state: paused; }
.row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; min-width: 0; }
.row > div { min-width: 0; flex: 1; }
.row strong, .row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row strong { font-size: 12px; color: var(--gx-fg); }
.row small { font-size: 11px; color: var(--gx-muted); }
.row em { font-style: normal; font-size: 10.5px; color: var(--gx-subtle); }
.row em.unread { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gx-primary); color: #fff; font-weight: 800; }
.row-new { background: var(--gx-primary-soft); }

/* Browser windows */
.win { position: relative; height: var(--pane-h); border-radius: 14px; overflow: hidden; background: var(--gx-surface); border: 1px solid var(--gx-border); box-shadow: var(--gx-shadow-md); transition: box-shadow var(--gx-dur-3) var(--gx-ease-out); }
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--gx-surface-2); border-bottom: 1px solid var(--gx-border); }
.win-bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--gx-border-strong); }
.win-bar .url { display: inline-flex; align-items: center; gap: 5px; margin-inline: auto; padding: 3px 12px; border-radius: 8px; background: var(--gx-surface); color: var(--gx-muted); font-size: 11px; font-weight: 600; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sample shop */
.shop { padding: 14px 16px; }
.shop-nav { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--gx-border); font-size: 11.5px; color: var(--gx-muted); }
.shop-nav b { color: var(--gx-fg); font-size: 13px; margin-inline-end: auto; letter-spacing: -.01em; }
.shop-cart { padding: 3px 9px; border: 1px solid var(--gx-border); border-radius: 999px; }
.shop-main { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; }
.bag {
  height: 150px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, #b45309, #78350f); box-shadow: inset 0 -18px 0 rgb(0 0 0 / .12);
}
.bag span { padding: 6px 8px; border-radius: 6px; background: #fef3c7; color: #78350f; font-weight: 800; font-size: 12px; }
.shop-copy small { display: block; color: var(--gx-subtle); font-size: 10.5px; }
.shop-copy strong { display: block; font-size: 17px; letter-spacing: -.02em; margin: 2px 0 4px; }
.shop-copy p { margin: 0 0 8px; color: var(--gx-muted); font-size: 11.5px; line-height: 1.45; }
.shop-price { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.shop-btn { display: inline-block; padding: 7px 12px; border-radius: 8px; background: var(--gx-fg); color: var(--gx-bg); font-size: 11px; font-weight: 700; }
.shop-sk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-sk i { height: 70px; border-radius: 10px; background: var(--gx-surface-2); }

/* Widget */
.w-launcher {
  position: absolute; inset-inline-end: 16px; inset-block-end: 16px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gx-primary); color: #fff; box-shadow: var(--gx-shadow-lg);
}
.w {
  position: absolute; inset-inline-end: 12px; inset-block-end: 12px; width: min(262px, calc(100% - 24px)); height: calc(100% - 58px);
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--gx-surface);
  border: 1px solid var(--gx-border); box-shadow: var(--gx-shadow-xl); transform-origin: bottom right;
}
.w-head { display: flex; align-items: center; gap: 9px; padding: 11px 12px; background: var(--gx-primary); color: #fff; }
.w-head strong { display: block; font-size: 12.5px; }
.w-head small { display: block; font-size: 10.5px; opacity: .92; }
.w-head .dot { background: #6ee7b7; }
.w-head .av { box-shadow: 0 0 0 2px rgb(255 255 255 / .5); }
.w-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; overflow: hidden; }
.w-input { display: flex; align-items: center; gap: 8px; margin: 0 10px 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--gx-border-strong); border-radius: 12px; }
.w-field { flex: 1; min-width: 0; font-size: 12px; color: var(--gx-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-field.typed { color: var(--gx-fg); }
.w-field.typed::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-inline-start: 1px; vertical-align: -2px; background: var(--gx-primary); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.w-send, .ph-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--gx-primary); color: #fff; }
.w-send.press, .ph-send.press { animation: press 260ms var(--gx-ease-spring); }
@keyframes press { 40% { transform: scale(.82); } }

/* Web inbox */
.app { display: grid; grid-template-columns: 42% 1fr; height: calc(100% - 34px); }
.app-list { border-inline-end: 1px solid var(--gx-border); padding: 8px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.app-tabs { display: flex; gap: 4px; padding: 2px 2px 8px; font-size: 10.5px; font-weight: 700; color: var(--gx-muted); }
.app-tabs > * { padding: 3px 7px; border-radius: 6px; }
.app-tabs b { background: var(--gx-primary-soft); color: var(--gx-primary-text); }
.app-list .av { width: 26px; height: 26px; font-size: 10px; }
.app-thread { position: relative; display: flex; flex-direction: column; min-width: 0; }
.app-empty { margin: auto; color: var(--gx-subtle); font-size: 12px; }
.app-head { padding: 10px 12px; border-bottom: 1px solid var(--gx-border); }
.app-head strong { display: block; font-size: 12px; }
.app-head small { display: block; font-size: 10.5px; color: var(--gx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; }
.app-msgs .b { max-width: 92%; }
.app-compose { display: flex; align-items: center; justify-content: space-between; margin: 0 10px 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--gx-border-strong); border-radius: 10px; font-size: 11.5px; color: var(--gx-subtle); }
.ai-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; background: var(--gx-ai-soft); color: var(--gx-ai); font-weight: 800; font-size: 10.5px; }
.toast {
  position: absolute; inset-block-start: 44px; inset-inline-end: 10px; display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: 12px; background: var(--gx-surface); border: 1px solid var(--gx-border); box-shadow: var(--gx-shadow-lg); z-index: 2;
}
.toast strong { display: block; font-size: 11.5px; }
.toast small { display: block; font-size: 10.5px; color: var(--gx-muted); }
.toast-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--gx-primary-soft); color: var(--gx-primary-text); }

/* Phone */
.phone {
  position: relative; height: var(--pane-h); padding: 9px; border-radius: 36px; background: #0b1220;
  box-shadow: var(--gx-shadow-lg), inset 0 0 0 1.5px #334155; transition: box-shadow var(--gx-dur-3) var(--gx-ease-out);
}
.ph-screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: var(--gx-surface); display: flex; flex-direction: column; }
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: 9px 18px 4px; font-size: 11px; }
.ph-island { width: 64px; height: 18px; border-radius: 10px; background: #0b1220; }
.ph-bat { width: 20px; height: 10px; border-radius: 3px; border: 1.5px solid var(--gx-fg-2); position: relative; }
.ph-bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1px; background: var(--gx-fg-2); }
.ph-title { margin: 6px 14px 6px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.ph-inbox { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.ph-inbox .av { width: 28px; height: 28px; }
.ph-push {
  position: absolute; inset-inline: 8px; inset-block-start: 34px; display: flex; gap: 9px; padding: 10px; border-radius: 16px; z-index: 3;
  background: color-mix(in srgb, var(--gx-surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--gx-border); box-shadow: var(--gx-shadow-lg);
}
.ph-push img { border-radius: 7px; height: 28px; }
.ph-push b { display: flex; justify-content: space-between; font-size: 10px; color: var(--gx-muted); font-weight: 700; }
.ph-push b small { font-weight: 600; }
.ph-push strong { display: block; font-size: 11.5px; }
.ph-push > div > small { display: block; font-size: 11px; color: var(--gx-fg-2); }
.ph-push > div { flex: 1; min-width: 0; }
.ph-chat { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ph-chat-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; border-bottom: 1px solid var(--gx-border); }
.ph-chat-head .av { width: 26px; height: 26px; font-size: 10px; }
.ph-chat-head strong { display: block; font-size: 11.5px; }
.ph-chat-head small { display: block; font-size: 10px; color: var(--gx-online); font-weight: 600; }
.ph-chat-head svg { color: var(--gx-primary-text); }
.ph-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px; min-height: 0; }
.ph-msgs .b { font-size: 11.5px; max-width: 92%; }
.ai-chip { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; color: var(--gx-ai); }
.ai-card {
  margin: 0 8px 8px; padding: 10px; border-radius: 14px; background: var(--gx-ai-soft);
  border: 1px solid color-mix(in srgb, var(--gx-ai) 28%, transparent);
}
.ai-head { display: flex; align-items: center; gap: 5px; margin: 0 0 6px; font-size: 10.5px; font-weight: 800; color: var(--gx-ai); }
.ai-text { margin: 0 0 8px; font-size: 11.5px; line-height: 1.45; color: var(--gx-fg); }
.ai-skel { display: grid; gap: 6px; margin-bottom: 8px; }
.ai-skel i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--gx-ai) 18%, transparent), color-mix(in srgb, var(--gx-ai) 34%, transparent), color-mix(in srgb, var(--gx-ai) 18%, transparent)); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.ai-skel i:last-child { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ai-actions { display: flex; gap: 6px; }
.ai-actions span { padding: 4px 11px; border-radius: 8px; font-size: 10.5px; font-weight: 800; border: 1px solid color-mix(in srgb, var(--gx-ai) 30%, transparent); color: var(--gx-ai); }
.ai-actions .ai-use { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.ai-use.press { animation: press 260ms var(--gx-ease-spring); }
.ph-compose { display: flex; align-items: center; gap: 6px; margin: 0 8px 10px; padding: 5px 5px 5px 10px; border-radius: 12px; border: 1px solid var(--gx-border-strong); }
.ph-field { flex: 1; min-width: 0; font-size: 11px; color: var(--gx-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-field.filled { color: var(--gx-fg); }
.ph-send { width: 24px; height: 24px; border-radius: 8px; }

/* Timeline visibility: data-s = shown from beat N, data-until = hidden from beat M.
   demo.js toggles .is-off; newly shown elements play one short entrance. */
.demo [data-s].is-off, .demo [data-until].is-off, .demo:not(.is-live) [data-until] { display: none !important; }
.demo.is-live .is-new { animation: demo-pop var(--gx-dur-3) var(--gx-ease-out) both; }
.demo.is-live .w.is-new { animation: demo-open var(--gx-dur-3) var(--gx-ease-spring) both; }
.demo.is-live .ph-push.is-new, .demo.is-live .toast.is-new { animation: demo-drop var(--gx-dur-3) var(--gx-ease-out) both; }
.demo.is-live .ph-chat.is-new { animation: demo-slide var(--gx-dur-3) var(--gx-ease-out) both; }
.demo.is-live .st.is-new { animation: gx-fade var(--gx-dur-2) var(--gx-ease-out) both; }
@keyframes demo-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes demo-open { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes demo-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes demo-slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* Controls + caption */
.demo-bar { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 10px 12px; border-radius: var(--gx-r-md); background: var(--gx-surface); border: 1px solid var(--gx-border); box-shadow: var(--gx-shadow-sm); }
.demo-play {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gx-border-strong); background: var(--gx-surface); color: var(--gx-fg);
  transition: background-color var(--gx-dur-1) var(--gx-ease-out), border-color var(--gx-dur-1), transform var(--gx-dur-1) var(--gx-ease-out);
}
.demo-play:hover { border-color: var(--gx-primary); color: var(--gx-primary-text); }
.demo-play:active { transform: scale(.92); }
.demo-play .i-play { display: none; }
.demo-play[data-state="paused"] .i-play { display: inline; }
.demo-play[data-state="paused"] .i-pause { display: none; }
.demo-play .i-pause { stroke-width: 2.6; }
.demo-caption { flex: 1; min-width: 0; margin: 0; font-weight: 600; font-size: var(--gx-text-md); color: var(--gx-fg); min-height: 3.2em; display: flex; align-items: center; }
.demo-caption.swap { animation: gx-fade var(--gx-dur-3) var(--gx-ease-out); }
.demo-dots { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.demo-dots button {
  position: relative; width: 28px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center;
}
.demo-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gx-border-strong); transition: background-color var(--gx-dur-2), transform var(--gx-dur-2) var(--gx-ease-out); }
.demo-dots button:hover::before { background: var(--gx-muted); }
.demo-dots button[aria-current="step"]::before { background: var(--gx-primary); transform: scale(1.35); }
.demo-dots button.done::before { background: color-mix(in srgb, var(--gx-primary) 45%, var(--gx-border-strong)); }

/* Transcript: always in the accessibility tree; shown as a list when the demo
   does not animate (no JavaScript, or reduced motion). */
.demo-transcript { margin: 16px 0 0; padding: 18px 22px 18px 44px; border-radius: var(--gx-r-md); background: var(--gx-surface); border: 1px solid var(--gx-border); color: var(--gx-fg-2); display: grid; gap: 6px; }
.demo.is-live .demo-transcript { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.demo.is-static .demo-caption { min-height: 0; }

/* Demo responsive: one device at a time below 1000px, following the story. */
@media (max-width: 1099px) { .demo-stage { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 212px; gap: 14px; padding: 20px; } }
@media (max-width: 999px) {
  .demo-stage { display: grid; grid-template-columns: 1fr; padding: 16px; --pane-h: 440px; }
  .demo.is-live .pane { grid-area: 1 / 1; }
  .demo.is-live .pane:not(.is-show) { opacity: 0; transform: translateY(10px) scale(.98); visibility: hidden; transition: opacity var(--gx-dur-2) var(--gx-ease-in), transform var(--gx-dur-2) var(--gx-ease-in), visibility 0s linear var(--gx-dur-2); }
  .pane-phone { justify-self: center; width: min(260px, 100%); }
  .demo:not(.is-live) .demo-stage { gap: 24px; }
  .demo-dots { display: none; }
}
@media (max-width: 520px) {
  .demo-stage { --pane-h: 420px; padding: 10px; border-radius: 18px; }
  .shop-main { grid-template-columns: 84px 1fr; }
  .bag { height: 110px; }
  .shop-sk { display: none; }
  .demo-bar { align-items: flex-start; }
  .demo-caption { font-size: var(--gx-text-sm); }
  .app { grid-template-columns: 1fr; }
  .app-list { display: none; }
}

/* ── Works-on strip ── */
.strip { border-block: 1px solid var(--gx-border); background: var(--gx-bg-subtle); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding-block: 22px; }
.strip-label { font-size: var(--gx-text-sm); font-weight: 700; color: var(--gx-muted); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.strip li { font-weight: 700; color: var(--gx-fg-2); font-size: var(--gx-text-md); }

/* ── Feature rows ── */
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 36px; }
.frow + .frow { border-top: 1px solid var(--gx-border); }
.frow-flip .frow-copy { order: 2; }
.frow-copy h3 { font-size: var(--gx-text-3xl); font-weight: 800; margin: 16px 0 12px; }
.frow-copy p { color: var(--gx-fg-2); font-size: var(--gx-text-lg); margin: 0 0 14px; max-width: 54ch; }
.frow-copy strong { color: var(--gx-fg); }
.frow-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gx-primary-soft); color: var(--gx-primary-text); }
.ic-green { background: var(--gx-online-soft); color: var(--gx-success); }
.ic-ai { background: var(--gx-ai-soft); color: var(--gx-ai); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--gx-fg-2); }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gx-online-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.frow-art {
  position: relative; display: grid; place-items: center; min-height: 340px; padding: 32px; border-radius: 24px;
  background: var(--gx-bg-subtle); border: 1px solid var(--gx-border); overflow: hidden;
}
.frow-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 70% 20%, rgb(37 99 235 / .10), transparent 70%); pointer-events: none; }
.art-phone::before { background: radial-gradient(60% 60% at 30% 20%, rgb(16 185 129 / .12), transparent 70%); }
.art-ai::before { background: radial-gradient(60% 60% at 60% 30%, rgb(139 92 246 / .14), transparent 70%); }
.mini-w { position: relative; width: min(320px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 0 0 16px; border-radius: 18px; overflow: hidden; background: var(--gx-surface); border: 1px solid var(--gx-border); box-shadow: var(--gx-shadow-lg); }
.mini-w > .b, .mini-w > .typing { margin-inline: 14px; }
.mini-w .b { font-size: 13.5px; }
.mini-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--gx-primary); color: #fff; }
.mini-head strong { display: block; font-size: 14px; } .mini-head small { display: block; font-size: 12px; opacity: .92; }
.mini-head .dot { background: #6ee7b7; }
.mini-phone { position: relative; width: min(280px, 100%); padding: 14px 8px 18px; border-radius: 34px; background: var(--gx-surface); border: 8px solid #0b1220; box-shadow: var(--gx-shadow-lg); display: grid; gap: 2px; }
.mini-phone .row strong { font-size: 13px; } .mini-phone .row small { font-size: 12px; }
.ai-card-static { position: relative; width: min(360px, 100%); margin: 0; padding: 16px; background: var(--gx-surface); box-shadow: var(--gx-shadow-lg); }
.ai-card-static .ai-text { font-size: 14px; }
.ai-card-static .ai-head { font-size: 12.5px; }
.ai-card-static .ai-actions span { font-size: 12.5px; padding: 6px 14px; }
.ai-tools { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ai-tools span { padding: 6px 12px; border-radius: 999px; background: var(--gx-surface); border: 1px solid var(--gx-border); font-size: 13px; font-weight: 700; color: var(--gx-fg-2); }
.art-ai { align-content: center; }

/* Feature cards */
.grid-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.fcard {
  padding: 24px; border-radius: var(--gx-r-md); background: var(--gx-surface); border: 1px solid var(--gx-border); box-shadow: var(--gx-shadow-sm);
  transition: border-color var(--gx-dur-2) var(--gx-ease-out), box-shadow var(--gx-dur-2) var(--gx-ease-out), transform var(--gx-dur-2) var(--gx-ease-out);
}
.fcard:hover { border-color: var(--gx-border-strong); box-shadow: var(--gx-shadow-md); transform: translateY(-2px); }
.fcard .ic { width: 40px; height: 40px; border-radius: 11px; }
.fcard h3 { font-size: var(--gx-text-lg); font-weight: 750; margin: 16px 0 6px; }
.fcard p { margin: 0; color: var(--gx-muted); }

/* ── How it works ── */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.steps li { position: relative; display: flex; gap: 16px; padding: 12px 0 20px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 19px; top: 56px; bottom: 0; width: 2px; background: var(--gx-border); }
.step-n { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gx-primary); color: var(--gx-on-primary); font-weight: 800; }
.steps h3 { font-size: var(--gx-text-lg); margin: 8px 0 4px; }
.steps p { margin: 0; color: var(--gx-muted); }
.code-card { border-radius: var(--gx-r-lg); overflow: hidden; background: #0b1220; color: #e2e8f0; border: 1px solid #1e293b; box-shadow: var(--gx-shadow-xl); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid #1e293b; }
.code-file { display: inline-flex; align-items: center; gap: 8px; font-size: var(--gx-text-sm); font-weight: 600; color: #94a3b8; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 44px; padding: 0 14px; border-radius: var(--gx-r-sm);
  border: 1px solid #334155; background: #111a2e; color: #e2e8f0; font-weight: 700; font-size: var(--gx-text-sm);
  transition: background-color var(--gx-dur-1) var(--gx-ease-out), border-color var(--gx-dur-1), transform var(--gx-dur-1) var(--gx-ease-out);
}
.copy-btn:hover { background: #1a2642; border-color: #475569; }
.copy-btn:active { transform: scale(.96); }
.copy-btn .i-done { display: none; color: #34d399; stroke-width: 2.6; }
.copy-btn.done .i-done { display: inline; animation: gx-pop var(--gx-dur-2) var(--gx-ease-spring); }
.copy-btn.done .i-copy { display: none; }
.code-card pre { margin: 0; padding: 22px 18px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.code-card pre code { background: none; border: 0; padding: 0; color: #bfdbfe; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-note { margin: 0; padding: 14px 18px 18px; border-top: 1px solid #1e293b; color: #94a3b8; font-size: var(--gx-text-sm); }
.code-note strong { color: #e2e8f0; }
.code-note a { color: #93c5fd; }
.code-card :focus-visible { outline-color: #60a5fa; }

/* ── Security ── */
.sec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--gx-border); }
.sec-grid li { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--gx-border); }
.sec-grid li:not(:nth-child(3n + 1)) { padding-inline-start: 24px; border-inline-start: 1px solid var(--gx-border); }
.sec-grid h3 { display: flex; align-items: center; gap: 8px; font-size: var(--gx-text-lg); margin: 0 0 6px; }
.sec-grid h3::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.6-3.4 8.3-8 9-4.6-.7-8-4.4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sec-grid p { margin: 0; color: var(--gx-muted); }

/* ── Pricing ── */
.billing {
  position: relative; display: flex; width: max-content; max-width: 100%; margin: -16px auto 32px; padding: 4px; gap: 4px;
  border-radius: var(--gx-r-full); background: var(--gx-surface-2); border: 1px solid var(--gx-border);
}
.billing-opt {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--gx-r-full);
  background: transparent; color: var(--gx-fg-2); font-weight: 700;
  transition: background-color var(--gx-dur-2) var(--gx-ease-out), color var(--gx-dur-2) var(--gx-ease-out), box-shadow var(--gx-dur-2) var(--gx-ease-out), transform var(--gx-dur-1) var(--gx-ease-out);
}
.billing-opt:hover { color: var(--gx-fg); }
.billing-opt:active { transform: scale(.97); }
.billing-opt[aria-pressed="true"] { background: var(--gx-surface); color: var(--gx-fg); box-shadow: var(--gx-shadow-md); }
.billing-save { padding: 2px 8px; border-radius: var(--gx-r-full); background: var(--gx-online-soft); color: var(--gx-success); font-size: var(--gx-text-xs); font-weight: 800; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 216px), 1fr)); gap: 24px 16px; align-items: stretch; }
/* Each card spans 5 rows of a shared subgrid, so prices, descriptions and buttons line up across cards. */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid !important; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .plan-price { min-height: 0 !important; }
  .plan-desc { min-height: 0 !important; }
}
.plan {
  position: relative; display: flex; flex-direction: column; padding: 24px 20px; border-radius: var(--gx-r-lg);
  background: var(--gx-surface); border: 1px solid var(--gx-border); box-shadow: var(--gx-shadow-sm);
  transition: border-color var(--gx-dur-2) var(--gx-ease-out), box-shadow var(--gx-dur-2) var(--gx-ease-out), transform var(--gx-dur-2) var(--gx-ease-out);
}
.plan:hover { box-shadow: var(--gx-shadow-md); border-color: var(--gx-border-strong); }
.plan.featured { border: 2px solid var(--gx-primary); box-shadow: var(--gx-shadow-lg); padding: 23px 19px; }
.plan-badge { position: absolute; top: -13px; inset-inline-start: 18px; margin: 0; padding: 3px 10px; border-radius: var(--gx-r-full); background: var(--gx-primary); color: var(--gx-on-primary); font-size: var(--gx-text-xs); font-weight: 800; }
.plan:not(.featured) .plan-badge { background: var(--gx-fg); color: var(--gx-bg); }
.plan h3 { font-size: var(--gx-text-xl); font-weight: 800; margin: 0 0 10px; }
.plan-price { min-height: 104px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin: 0; font-variant-numeric: tabular-nums; }
.price .amt { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price .per { color: var(--gx-muted); font-weight: 600; font-size: var(--gx-text-sm); }
.price s { color: var(--gx-subtle); font-weight: 600; font-size: var(--gx-text-lg); text-decoration-thickness: 2px; }
.plan-alt { margin: 6px 0 0; color: var(--gx-muted); font-size: var(--gx-text-sm); }
.plan-alt strong { color: var(--gx-fg); }
.plan-save { display: inline-block; margin: 8px 0 0; padding: 2px 8px; border-radius: var(--gx-r-full); background: var(--gx-online-soft); color: var(--gx-success); font-size: var(--gx-text-xs); font-weight: 800; }
.plan-offer { display: block; margin-top: 6px; color: var(--gx-warning); font-size: var(--gx-text-xs); font-weight: 700; }
.plan-desc { margin: 10px 0 16px; color: var(--gx-fg-2); font-size: var(--gx-text-sm); min-height: 4.8em; }
.plan-cta { width: 100%; margin-bottom: 18px; }
.plan-list { align-content: start; list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--gx-border); display: grid; gap: 9px; font-size: var(--gx-text-sm); color: var(--gx-fg-2); }
.plan-list li { position: relative; padding-inline-start: 24px; }
.plan-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pricing.swap .plan-price { animation: gx-fade var(--gx-dur-3) var(--gx-ease-out); }
.plan-loading { grid-column: 1 / -1; text-align: center; padding: 32px; border: 1px dashed var(--gx-border-strong); border-radius: var(--gx-r-lg); }
.pricing-note { max-width: 760px; margin: 32px auto 0; text-align: center; color: var(--gx-muted); font-size: var(--gx-text-sm); }

/* ── FAQ (native <details>, crawlable) ── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--gx-border); }
.faq details { border-bottom: 1px solid var(--gx-border); }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 56px; padding: 16px 48px 16px 0; list-style: none;
  font-weight: 700; font-size: var(--gx-text-lg); color: var(--gx-fg); border-radius: var(--gx-r-xs);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 8px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--gx-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--gx-dur-2) var(--gx-ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gx-primary-text); }
.faq details p { margin: 0 0 20px; padding-inline-end: 48px; color: var(--gx-fg-2); max-width: var(--gx-measure); }
.faq details[open] p { animation: gx-rise var(--gx-dur-3) var(--gx-ease-out); }

/* ── Final CTA ── */
.final { padding-block: var(--sec-y); }
.final-inner {
  position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border-radius: 28px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0e7490 100%); color: #fff;
}
.final-inner::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgb(255 255 255 / .4) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .4) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent); }
.final-inner > * { position: relative; }
.final h2 { font-size: var(--gx-text-4xl); font-weight: 800; color: #fff; margin-bottom: 12px; }
.final p { margin: 0 auto 28px; max-width: 520px; color: #fff; font-size: var(--gx-text-lg); }
.final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-invert { background: #fff; color: #1e3a8a; }
.btn-invert:hover { background: #eff6ff; box-shadow: var(--gx-shadow-lg); }
.btn-outline-invert { background: transparent; color: #fff; border-color: rgb(255 255 255 / .55); }
.btn-outline-invert:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.final :focus-visible { outline-color: #fff; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--gx-border); background: var(--gx-bg-subtle); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin: 8px 0 0; color: var(--gx-muted); max-width: 32ch; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer nav h2 { font-size: var(--gx-text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--gx-fg); margin: 10px 0 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--gx-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--gx-primary-text); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-block: 22px; border-top: 1px solid var(--gx-border); color: var(--gx-subtle); font-size: var(--gx-text-sm); }

/* ── Tour video dialog ── */
.tour {
  width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--gx-border); border-radius: var(--gx-r-lg);
  background: var(--gx-surface); color: var(--gx-fg); box-shadow: var(--gx-shadow-xl); overflow: auto;
}
.tour::backdrop { background: rgb(2 6 23 / .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tour[open] { animation: gx-pop var(--gx-dur-3) var(--gx-ease-out); }
.tour[open]::backdrop { animation: gx-fade var(--gx-dur-3) var(--gx-ease-out); }
.tour-inner { padding: 12px 16px 16px; }
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tour-head h2 { font-size: var(--gx-text-lg); margin: 0; }
.tour-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gx-border); background: var(--gx-surface); color: var(--gx-fg); }
.tour-close:hover { background: var(--gx-surface-2); }
.tour-frame { aspect-ratio: 16 / 9; border-radius: var(--gx-r-md); overflow: hidden; background: #000; }
.tour-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.tour-note { margin: 10px 0 0; color: var(--gx-muted); font-size: var(--gx-text-sm); }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .grid-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-grid li:not(:nth-child(3n + 1)) { padding-inline-start: 0; border-inline-start: 0; }
  .sec-grid li:nth-child(even) { padding-inline-start: 24px; border-inline-start: 1px solid var(--gx-border); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 799px) {
  .frow, .how-grid, .faq-wrap { grid-template-columns: 1fr; }
  .frow-flip .frow-copy { order: 0; }
  .frow-art { min-height: 280px; padding: 24px 16px; }
  .section-head { margin-bottom: 32px; }
}
@media (max-width: 599px) {
  .grid-feat, .sec-grid { grid-template-columns: 1fr; }
  .sec-grid li:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; }
  .sec-grid li { padding-inline-end: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .gx-btn { width: 100%; }
  .final-cta .gx-btn { width: 100%; }
  .billing { width: 100%; }
  .billing-opt { flex: 1; justify-content: center; padding: 0 12px; }
  .faq summary { font-size: var(--gx-text-md); }
  .faq details p { padding-inline-end: 0; }
}

/* Reduced motion: no autoplay, no pulses; final states only. */
@media (prefers-reduced-motion: reduce) {
  .live-dot, .dots i, .ai-skel i, .w-field.typed::after { animation: none !important; }
  .fcard:hover { transform: none; }
}

/* Recording mode (tools/record-demo.js): the demo alone, filling 1280×720. */
.rec body, body.rec { overflow: hidden; }
.rec .demo { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 34px 40px; background: var(--gx-bg-subtle); animation: none !important; }
.rec .demo-stage { width: 100%; --pane-h: 560px; }
.rec .demo-bar, .rec .demo-transcript, .rec .site-header, .rec .gx-skip { display: none !important; }
.rec .hero { position: static; overflow: visible; isolation: auto; }

/* Plus Jakarta Sans draws punctuation with wide side bearings; at display
   sizes the comma looks detached, so it is pulled in optically. */
.hero h1 .punct { margin-inline-start: -.1em; }
