/* Kara landing — layout and tokens follow the "1Office Website" Figma file
   (node 13:281, "Home - Quy trình"): stone neutrals, Inter, 6/8/12/16 radii,
   96/192px margins. Only the brand layer is Kara's: the 1Office orange
   (--primary #f15822) becomes Kara's primary ink, and the AI accents become
   Kara's Mint gradient (kara-prototype globals.css, gradientPalette "mint"). */

:root {
  /* CTA hover fill (owner, 2026-10-05): the gradient blocks' own tones — pale
     teal · butter · leaf, the 2b block's mix, each ~35% into the blocks' base
     (#f3f6ef) as their glows read on screen — not the saturated Mint, so a
     hovered button sits in the same family as the fills below it. Mirrored so
     vflow can run it back and forth. */
  --fill-cta: linear-gradient(100deg, rgb(192 231 236), rgb(224 240 224) 18%, rgb(251 240 206) 34%, rgb(197 228 183) 50%, rgb(251 240 206) 66%, rgb(224 240 224) 82%, rgb(192 231 236));
  /* Figma variables (get_variable_defs on 13:281) */
  --background: #fafaf9;
  --page: #f5f5f4;
  --foreground: #292524;
  --secondary: #f5f5f4;
  --secondary-foreground: #1c1917;
  --muted-foreground: #78716c;
  --border: #e7e5e4;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --green-100: #dcfce7;
  --orange-100: #ffedd5;
  --violet-100: #ede9fe;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;

  /* Interaction motion — every hover/press on the page uses these, so the
     whole site responds at one speed. */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .5, 1);
  --t-fast: .2s;
  --t: .3s;

  /* Kara brand layer */
  --primary: oklch(0.228 0.013 107.4);
  --primary-border: oklch(0.12 0.006 107);
  --primary-foreground: #ffffff;
  --mint-1: #8ff5f0;
  --mint-2: #c2fa9a;
  --mint-3: #e7f696;
  --mint-4: #f8e990;
  --mint: linear-gradient(100deg, var(--mint-1), var(--mint-2) 40%, var(--mint-3) 70%, var(--mint-4));
  --mint-ink: #3fa69b;
  /* The Mint run at ~40%: a fill text sits on (the hero tabs' progress). */
  --mint-soft: linear-gradient(100deg, rgba(143, 245, 240, .4), rgba(194, 250, 154, .4) 40%, rgba(231, 246, 150, .4) 70%, rgba(248, 233, 144, .45));

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Merriweather", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --tracking-tight: -0.4px;
  --margin: 96px;
  /* The page's card inset: hero, the pause band and every section below sit
     this far in from the viewport, so the page reads as one column of cards.
     Section copy still lands on the 192/96px line — paddings subtract it. */
  --inset: 48px;
  --card-r: 64px;
  --card-gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: #000;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: var(--radius-md); }
.skip:focus { top: 16px; }

/* ── Type (Figma text styles) ─────────────────────────────────────────── */
/* Kara's type set: headings Merriweather Semibold, body Inter Regular, code
   and data JetBrains Mono. Subtitles (.h-sub, .lead) are body copy. */
.h-display { font-family: var(--font-serif); font-weight: 500; font-size: 36px; line-height: 44px; letter-spacing: var(--tracking-tight); color: #000; }   /* heading/h1 */
.h-display--center { text-align: center; }
.h-sub { font-weight: 600; font-size: 24px; line-height: 32px; letter-spacing: var(--tracking-tight); color: var(--stone-700); } /* heading/h3 */
.h-2 { font-family: var(--font-serif); font-weight: 600; font-size: 30px; line-height: 40px; letter-spacing: var(--tracking-tight); color: #000; }           /* heading/h2 */
.h-3 { font-family: var(--font-serif); font-weight: 600; font-size: 24px; line-height: 32px; letter-spacing: var(--tracking-tight); color: #000; }
.lead { font-size: 20px; line-height: 28px; color: var(--stone-600); }

/* ── Buttons (Figma "button") ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: var(--radius-md); border: 1px solid transparent; font-weight: 600; font-size: 14px; line-height: 20px;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); border-color: transparent; color: var(--primary-foreground); padding: 0 16px; }
/* Main actions (primary): on hover a
   Mint fill fades in and flows — the same mirrored run as the "ộ" pill
   (.vpill::before / vflow) — in the gradient blocks' tones (--fill-cta). No stroke on
   hover: the Mint layer sits at inset -1px, over the border box, with the
   button's own outer radius — so it covers the border ring corners included.
   (At inset 0 its 6px corners sat inside the padding box's 5px ones and the
   dark base peeked out at all four corners.) Hence no overflow: hidden — that
   clips to the padding box and would cut the ring back off.
   That alone still left a hairline at the corners: the button's OWN dark
   background sat right under the Mint layer, and two identical rounded edges
   stacked still let the lower one's anti-aliased fringe through. So on hover
   the base background goes transparent too, on the same timing as the Mint
   fade — nothing dark is left under the curve. */
.btn--primary { position: relative; isolation: isolate; transition-property: background-color, border-color, box-shadow, color, transform; transition-duration: var(--t), var(--t), var(--t-fast), var(--t-fast), var(--t-fast); }
.btn--primary::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0;
  background: var(--fill-cta) 0 0 / 200% 100%;
  animation: vflow 2.4s ease-in-out infinite alternate paused;
  transition: opacity var(--t) var(--ease-out);
}
.btn--primary:hover, .btn--primary:focus-visible { color: var(--secondary-foreground); border-color: transparent; background-color: transparent; box-shadow: 0 8px 20px -10px rgba(63, 166, 155, .7); }
.btn--primary:hover::before, .btn--primary:focus-visible::before { opacity: 1; animation-play-state: running; }
/* …and the gradient blocks' dot grain inside it (main.js dotGrain, owner
   2026-10-05): a canvas over the Mint, under the label, shown on hover only. */
.btn__dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity var(--t) var(--ease-out); }
.btn--primary:hover .btn__dots, .btn--primary:focus-visible .btn__dots, .btn--mint:hover .btn__dots, .btn--mint:focus-visible .btn__dots { opacity: 1; }
.btn--secondary { background: var(--secondary); border-color: var(--stone-300); color: var(--secondary-foreground); }
.btn--secondary:hover { background: var(--stone-200); }
.btn--flat { border-color: transparent; }
.btn--ghost-soft { background: rgba(245, 245, 244, .5); color: var(--secondary-foreground); }
.btn--ghost-soft:hover { background: var(--stone-200); }
.header__sales { font-weight: 400; }
.btn--block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding: 8px; }
.btn-group--left { justify-content: flex-start; padding: 8px 0; }

.link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid #000; font-weight: 600; font-size: 16px; line-height: 28px; letter-spacing: var(--tracking-tight); color: var(--foreground); align-self: flex-start; }
.link { transition: border-color var(--t-fast) var(--ease-out); }
.link:hover { border-color: var(--stone-400); }
.link img { transition: transform var(--t-fast) var(--ease-out); }
.link:hover img { transform: translate(2px, -2px); }

/* ── Header (13:293) ──────────────────────────────────────────────────── */
/* The header is NOT sticky: it sits above the hero, inset 16px inside the
   hero card's edges, and scrolls away with the page. No fill of its own:
   it sits on the page background, so the logo and buttons stand bare. Past the hero its
   actions come back as the bottom .dock instead. */
.header { position: relative; z-index: 50; padding: 8px 48px; }
.header__bar {
  margin-inline: 16px; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 9px 9px 9px 20px;
  border: 1px solid transparent;
}
.header__left { display: flex; align-items: center; gap: 24px; }
.header__logo img { height: 20px; width: auto; transition: opacity var(--t-fast) var(--ease-out); }
.header__logo:hover img { opacity: .7; }
.header__actions { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
/* VI | EN switch: a small segmented pair; the current language is filled. */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 9999px; background: rgba(28, 25, 23, .05); }
.lang a { display: grid; place-items: center; min-width: 32px; height: 26px; padding: 0 8px; border-radius: 9999px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--stone-600); transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.lang a:hover { color: #000; }
.lang a[aria-current] { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(28, 25, 23, .08); }
.lang--menu { justify-self: start; margin: 12px 0 4px; }   /* the menu is a grid: justify-self keeps the pill its own width */
/* Phones (owner, 2026-10-07: "đưa nút đổi ngôn ngữ lên header cả trên
   mobile … chọn layout cho gọn gàng"): no room for the two-pill switch, so
   the header shows ONE 36px chip twinned with the burger, labelled with the
   OTHER language — "EN" on the Vietnamese page, "VI" on the English one —
   and a tap switches. Under 375px the CTA slims down to make room; under
   360px there is none, and the switch goes back into the menu. */
@media (max-width: 767px) {
  .header__actions > .lang { gap: 0; padding: 0; background: none; }
  .header__actions > .lang a[aria-current] { display: none; }
  .header__actions > .lang a { width: 36px; height: 36px; min-width: 0; padding: 0; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--secondary); color: #000; transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
  .header__actions > .lang a:hover { background: var(--stone-200); }
  .header__actions > .lang a:active { transform: scale(.94); }
  .lang--menu { display: none; }
}
@media (max-width: 374px) { .header__actions { gap: 6px; } .header__actions > .btn--primary { padding: 0 12px; } }
@media (max-width: 359px) { .header__actions > .lang { display: none; } .lang--menu { display: inline-flex; } }

/* ── Dock ─────────────────────────────────────────────────────────────────
   Bottom-centre pill that hugs its content (logo + the two header actions),
   solid white on a soft layered shadow. Parked below the screen until main.js
   adds .is-on (section 2 coming into view); it is inert while parked. */
.dock {
  position: fixed; left: 50%; bottom: 16px; z-index: 50; width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 24px; height: 56px; padding: 9px 9px 9px 20px;
  background: #fff; border: 1px solid transparent; border-radius: 22px; corner-shape: squircle;
  box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 6px 16px -4px rgba(28, 25, 23, .1), 0 18px 40px -12px rgba(28, 25, 23, .16);
  transform: translate(-50%, calc(100% + 32px)); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease-out), opacity var(--t) var(--ease-out), visibility 0s linear .45s;
}
.dock.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ease-out), opacity var(--t) var(--ease-out), visibility 0s; }
.dock__actions { display: flex; align-items: center; gap: 8px; }
/* Where corner-shape is not supported (Safari, iOS — every browser on an
   iPhone), a 22px radius is a plain round corner and reads far rounder than
   the 22px squircle the desktop shows (owner, 2026-10-05: the mobile dock
   should look like the desktop one). A round corner of ~0.6× the squircle's
   radius matches its silhouette. */
@supports not (corner-shape: squircle) { .dock { border-radius: 14px; } }
@media (max-width: 420px) { .dock__sales { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock, .dock.is-on { transition: opacity var(--t) linear, visibility 0s; transform: translate(-50%, 0); } }

/* ── Section rail ─────────────────────────────────────────────────────────
   Fixed to the right edge, vertically centred: one short tick per section,
   the current one longer and dark. No background, ever. Hovering the rail
   (or keyboard focus inside) pushes every tick out, staggered top to bottom
   by --i (set in main.js); the tick under the pointer sticks out furthest and
   only ITS section name fades in beside it. Labels are absolutely placed and
   never take the pointer, so the rail's narrow strip is the only hover target.
   A label reaches left over the dark pause band, where
   dark ink disappeared: main.js marks those items .is-dark and the label
   turns light — still no background. */
.rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; padding: 12px 14px 12px 8px;
}
.rail__item { --i: 0; position: relative; display: flex; align-items: center; justify-content: flex-end; height: 20px; padding-left: 16px; color: var(--secondary-foreground); }
.rail__tick {
  width: 12px; height: 2px; border-radius: 2px; background: var(--stone-300); flex: none;
  transition: width var(--t) var(--ease-out) calc(var(--i) * 18ms), background-color var(--t-fast) var(--ease-out);
}
.rail__label {
  position: absolute; right: calc(100% - 4px); font-size: 13px; line-height: 16px; font-weight: 500; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateX(8px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.rail__item.is-dark .rail__label { color: #f4f4f0; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.rail__item[aria-current] .rail__tick { width: 20px; background: var(--secondary-foreground); }
.rail:hover .rail__tick, .rail:focus-within .rail__tick { width: 20px; }
.rail__item:hover .rail__tick, .rail__item:focus-visible .rail__tick { width: 32px; background: var(--secondary-foreground); transition-delay: 0s; }
.rail__item:hover .rail__label, .rail__item:focus-visible .rail__label { opacity: 1; transform: none; }
.rail__item:focus-visible { outline: none; }
@media (max-width: 767px) { .rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .rail__tick, .rail__label { transition: none; } }
.header__burger { display: none; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--secondary); border: 1px solid var(--border); align-items: center; justify-content: center; transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.header__burger:hover { background: var(--stone-200); }
.header__burger:active { transform: scale(.94); }
.header__burger span, .header__burger span::before, .header__burger span::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
.header__burger span::before, .header__burger span::after { content: ""; position: absolute; left: 0; }
.header__burger span::before { top: -5px; }
.header__burger span::after { top: 5px; }
.header__burger[aria-expanded="true"] span { background: transparent; }
.header__burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.header__burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { margin-top: 8px; padding: 8px 16px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-xl); display: grid; }
.mobile-menu[hidden] { display: none; }
/* No lead endpoint configured (main.js) → no control that opens the lead form. */
.no-lead [data-open-lead] { display: none !important; }
/* Direct children only: the VI | EN pills inside the menu are links too, and
   this row style (padding, 16px bold, rule) knocked their labels out of the pills. */
.mobile-menu > a { padding: 12px 0; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--border); }
.mobile-menu > a:last-child { border-bottom: 0; }

/* ── Hero (13:317) ────────────────────────────────────────────────────── */
/* Inset card with a squircle edge (corner-shape where supported, plain radius
   elsewhere), lined up with the header bar. The fill is a soft mesh: elliptical
   radial washes of sky, sun and leaf over a pale base, each fading to its own
   colour at alpha 0 (never "transparent", which greys the falloff). --p (0 → 1)
   is written by main.js as the hero scrolls away: the sun drifts left and down,
   the sky slides right, and the two greens swell and rise from the bottom, so
   the colour "fills" the card. Reduced motion leaves --p at 0. */
.hero {
  --p: 0;
  position: relative; margin: 0 var(--inset); padding: 96px var(--margin) 0; border-radius: 64px 64px 0 0; corner-shape: squircle; overflow: clip; isolation: isolate;
  background:
    radial-gradient(42% 46% at calc(80% - 22% * var(--p)) calc(12% + 14% * var(--p)), rgba(255, 238, 186, .9), rgba(255, 238, 186, 0) 72%),
    radial-gradient(58% 52% at calc(10% + 26% * var(--p)) calc(6% + 8% * var(--p)), rgba(164, 222, 234, .8), rgba(164, 222, 234, 0) 72%),
    radial-gradient(calc(62% + 22% * var(--p)) calc(48% + 22% * var(--p)) at calc(14% + 22% * var(--p)) calc(104% - 22% * var(--p)), rgba(172, 218, 152, .85), rgba(172, 218, 152, 0) 72%),
    radial-gradient(calc(56% + 20% * var(--p)) calc(44% + 20% * var(--p)) at calc(90% - 24% * var(--p)) calc(100% - 26% * var(--p)), rgba(194, 240, 160, .7), rgba(194, 240, 160, 0) 72%),
    linear-gradient(180deg, #e4f0f0 0%, #eef3ea 50%, #eaf1e0 100%);
}
.hero__content { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
/* App Store / Google Play under the heading (owner, 2026-10-05) */
.hero__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.hero__stores a { display: block; border-radius: 11px; overflow: hidden; transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.hero__stores a:hover, .hero__stores a:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45); }
.hero__stores img { display: block; width: auto; height: 40px; }
@media (max-width: 767px) { .hero__stores { margin-top: 8px; gap: 10px; } .hero__stores img { height: 36px; } .hero__stores a { border-radius: 10px; } }
html.i18n-pending body { visibility: hidden; }   /* English on its way (index.html <head>, main.js) */
/* a block in two languages: only the page's shows (html[lang], main.js) */
html:not([lang="en"]) [data-lang-only="en"], html[lang="en"] [data-lang-only="vi"] { display: none; }
.hero__title { font-family: var(--font-serif); font-weight: 600; font-size: 52px; line-height: 60px; letter-spacing: -1.3px; color: #000; max-width: 1159px; text-wrap: balance; }
/* The "o" of "to" doubles as the video button. The real glyph stays in
   flow — so the letter keeps its own width and baseline — with its bowl
   masked out (a plain "o" is all bowl, so nothing of it is left; an "ộ"
   would keep its circumflex and dot); the button sits where the bowl was.
   All sizes are em, so it tracks the heading at every
   breakpoint. Measured on Merriweather Semibold (per em): circumflex .855 →
   .625 above the baseline, bowl .570 above → .010 below, dot below .065 →
   .212 below. In a line-height:1 box the baseline sits .856em from the top
   (ascent .985, descent .273), so the bowl runs .286 → .866em, centre .576em;
   the mask cuts .40 → 1.045em of the padded glyph, inside both .055em gaps.
   Re-measure if the heading font changes.
   Rest: play triangle on a Mint-filled scalloped badge (#g-mint in the
   sprite) that turns slowly; the badge is .66em, a touch larger than the
   pill, and centred on the play circle.
   Hover/keyboard focus: the slot widens and it becomes the full "▶ Xem" pill
   on the Mint gradient. */
.nw { white-space: nowrap; }   /* the word that carries the video badge never breaks around it */
/* phones: no video badge in the heading — the letter reads plain again (owner, 2026-10-06) */
@media (max-width: 767px) { .vo .vpill { display: none; } .vo .vo__glyph { mask-image: none; } .nw .vo, .nw .vo:hover { padding-inline: 0; } }
.vo { position: relative; display: inline-block; line-height: 1; transition: padding-inline .45s var(--ease-out); }
.vo__glyph {
  display: block; padding-block: .15em; margin-block: -.15em; transition: color var(--t) var(--ease-out);
  mask-image: linear-gradient(#000 .40em, transparent .40em, transparent 1.045em, #000 1.045em);
}
.vpill {
  position: absolute; inset-inline: 0; top: .276em; height: .6em; isolation: isolate;
  display: flex; align-items: center; padding-left: .08em; border-radius: 9999px; color: #000;
  font-family: var(--font-sans); letter-spacing: 0;
  transition: transform var(--t-fast) var(--ease-out);
}
/* The hover fill flows: a mirrored Mint run twice the pill's width slides
   end to end and back, so it never jumps. Paused at rest, runs on hover. */
.vpill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: linear-gradient(100deg, var(--mint-1), var(--mint-2) 20%, var(--mint-3) 35%, var(--mint-4) 50%, var(--mint-3) 65%, var(--mint-2) 80%, var(--mint-1)) 0 0 / 200% 100%;
  animation: vflow 2.4s ease-in-out infinite alternate paused;
  transition: opacity var(--t) var(--ease-out);
}
@keyframes vflow { to { background-position: 100% 0; } }
/* max-width: none — the global svg { max-width: 100% } would cap the ring at
   the pill's width and pull its centre off the play circle. */
.vpill__ring { position: absolute; left: -.03em; top: -.03em; width: .66em; height: .66em; max-width: none; pointer-events: none; animation: vring 20s linear infinite; transition: opacity var(--t) var(--ease-out); }
@keyframes vring { to { transform: rotate(1turn); } }
.vpill__play { position: relative; isolation: isolate; width: .44em; height: .44em; flex: none; display: grid; place-items: center; border-radius: 50%; color: #000; transition: color var(--t) var(--ease-out); }
.vpill__play::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #000; opacity: 0; transform: scale(.6); transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out); }
.vpill__play svg { width: .25em; height: .25em; }   /* i-play is drawn optically centred in its box */
.vpill__label { display: grid; grid-template-columns: 0fr; opacity: 0; font-size: .26em; font-weight: 600; transition: grid-template-columns .45s var(--ease-out), opacity var(--t) var(--ease-out); }
/* The gap lives on the innermost span: padding on the clipped track item would
   count toward its width and leave a sliver open at rest. */
.vpill__label > span { min-width: 0; overflow: hidden; }
.vpill__label > span > span { display: block; padding-left: .45em; white-space: nowrap; }
.vo:hover, .vo:has(.vpill:focus-visible) { padding-inline: .4em; }
:is(.vo:hover, .vo:has(.vpill:focus-visible)) .vpill::before { opacity: 1; animation-play-state: running; }
:is(.vo:hover, .vo:has(.vpill:focus-visible)) .vpill__ring { opacity: 0; }
:is(.vo:hover, .vo:has(.vpill:focus-visible)) .vpill__play { color: #fff; }
:is(.vo:hover, .vo:has(.vpill:focus-visible)) .vpill__play::before { opacity: 1; transform: none; }
:is(.vo:hover, .vo:has(.vpill:focus-visible)) .vpill__label { grid-template-columns: 1fr; opacity: 1; }
.vpill:active { transform: scale(.97); transition-duration: .1s; }
.vpill:focus-visible { outline-offset: .06em; border-radius: 9999px; }
.btn svg { flex: none; }
/* A white card: two columns — on the left only the open step (its title
   and line; .dnow, one per tab), on the right a cropped shot of the
   app — under the steps nav centred across the top. */
.demo {
  margin-top: 64px; padding: 40px 48px 48px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: 40px 56px; text-align: left;
  background: #fff; border-radius: 48px 48px 0 0; corner-shape: squircle; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.demo__nav { grid-column: 1 / -1; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dtab {
  position: relative; overflow: hidden; isolation: isolate; flex: none;
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 9999px;
  border: 1px solid rgba(28, 25, 23, .06); background: #fff; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--stone-600);
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.dtab:hover { background: var(--stone-50); color: var(--secondary-foreground); }
.dtab:active { transform: scale(.97); }
.dtab:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 2px; }
.dtab[aria-selected="true"] { border-color: rgba(28, 25, 23, .1); color: var(--secondary-foreground); }
/* No autoplay (reduced motion) means no fill to mark the open tab. */
.demo:not(.is-auto) .dtab[aria-selected="true"] { background: var(--mint-soft); }
.demo > .dash-frame { justify-self: end; }
/* Every step's copy shares one grid cell, so the column is as tall as the
   longest and the tabs above never shift when the step changes. */
.demo__now { display: grid; }
.dnow { grid-area: 1 / 1; }
.dnow[hidden] { display: block; visibility: hidden; }
.dnow__t { font-family: var(--font-serif); font-weight: 600; font-size: 30px; line-height: 40px; letter-spacing: var(--tracking-tight); color: #000; text-wrap: balance; }
.dnow__d { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--stone-600); text-wrap: pretty; }
.dnow.is-playing > * { animation: rise .45s var(--ease-out) both; }
.dnow.is-playing > .dnow__d { animation-delay: .08s; }
.tab {
  position: relative; overflow: hidden; isolation: isolate;
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--radius-md);
  background: var(--secondary); border: 1px solid var(--border); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--secondary-foreground);
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.tab:hover { background: var(--stone-200); }
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--stone-200); }
.tab__save { font-size: 12px; line-height: 16px; padding: 2px 6px; border-radius: 9999px; background: var(--mint); color: var(--secondary-foreground); }
/* Autoplay progress — the Mint gradient sweeps left to right behind the
   open tab's label (z-index -1 inside the tab's isolation). The bar's own animationend advances the tab (main.js), so pausing the
   animation (hover, off-screen) pauses the carousel too. */
.tab__bar { position: absolute; inset: 0; z-index: -1; background: var(--mint-soft); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.demo.is-auto .dtab[aria-selected="true"] .tab__bar { animation: tabbar var(--dur, 7s) linear forwards; }
.demo.is-paused .tab__bar, .demo.is-hover .tab__bar { animation-play-state: paused !important; }
@keyframes tabbar { to { transform: scaleX(1); } }
/* Tab icons act out their verb while the tab is hovered (or keyboard-focused).
   They are inlined in index.html, not <use>d, so CSS can reach each part; at
   rest every icon is identical to its sprite symbol. (The pricing toggle
   reuses .tab; the hero steps are .dtab.)
   Nghe — recording: sound waves ripple out from the mic on both sides.
   Nhớ  — loading data: each drive's bar fills in turn, its LED blinking.
   Suy luận — thinking: the brain tilts side to side, its folds firing.
   Hành động — acting: the bolt charges up (fills) and strikes. */
.ti { overflow: visible; }
.ti__wave { opacity: 0; }
.ti__head, .ti__bolt { transform-box: fill-box; transform-origin: center; }
.ti__bolt { fill: currentColor; fill-opacity: 0; }
.dtab:is(:hover, :focus-visible) .ti__wave { animation: tiwave 1.2s var(--ease-out) infinite; }
.dtab:is(:hover, :focus-visible) .ti__wave--2 { animation-delay: .2s; }
.dtab:is(:hover, :focus-visible) .ti__fill { stroke-dasharray: 5 10; animation: tiload 1.6s var(--ease-out) infinite; }
.dtab:is(:hover, :focus-visible) .ti__fill--2 { animation-delay: .5s; }
.dtab:is(:hover, :focus-visible) .ti__led { animation: tiled .5s steps(1) infinite; }
.dtab:is(:hover, :focus-visible) .ti__led--2 { animation-delay: .25s; }
.dtab:is(:hover, :focus-visible) .ti__head { animation: tithink 2.4s ease-in-out infinite; }
.dtab:is(:hover, :focus-visible) .ti__folds { stroke-dasharray: 3 1.5; animation: tifire .9s linear infinite; }
.dtab:is(:hover, :focus-visible) .ti__bolt { animation: tistrike 1.2s var(--ease-out) infinite; }
@keyframes tiwave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tiload { 0% { stroke-dashoffset: 5; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes tiled { 50% { opacity: .15; } }
@keyframes tithink { 0%, 100% { transform: none; } 25% { transform: rotate(-8deg) scale(1.04); } 75% { transform: rotate(8deg) scale(1.04); } }
@keyframes tifire { to { stroke-dashoffset: -4.5; } }
@keyframes tistrike {
  0% { transform: none; fill-opacity: 0; }
  12% { transform: translateY(-1.5px) scale(1.15); fill-opacity: 1; }
  22% { transform: translateX(1px) rotate(7deg); }
  32% { transform: translateX(-1px) rotate(-7deg); }
  42% { transform: none; fill-opacity: 1; }
  100% { transform: none; fill-opacity: 0; }
}

/* Fixed-size stages scaled to their column (main.js sets --s). */
.fit { width: 100%; min-width: 0; max-width: calc(var(--fw) * 1px); }
.fit.is-scaled { height: calc(var(--fh) * var(--s, 1) * 1px); }
.fit__inner { width: calc(var(--fw) * 1px); height: calc(var(--fh) * 1px); transform-origin: top left; }
.fit.is-scaled > .fit__inner { transform: scale(var(--s, 1)); }
.dash-frame { --fw: 720; --fh: 420; }

/* Shared motion vocabulary. An `.a` element rests in its FINAL state; the
   keyframes only run while an ancestor carries `.is-playing` (main.js
   restarts it), so no-JS, reduced motion and a missed frame all show the
   finished screen rather than an empty one. */
@keyframes rise { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.9); } 60% { opacity: 1; transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes paint { from { background-size: 0 .42em; } to { background-size: 100% .42em; } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.32); opacity: 0; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(143, 245, 240, 0); } 30% { box-shadow: 0 0 0 4px rgba(143, 245, 240, .6); } }

/* ── The Kara app replica (kara-prototype, olive preset) ─────────────── */
.app {
  --app-bg: oklch(0.966 0.005 106.5);
  --app-fg: oklch(0.153 0.006 107.1);
  --app-accent: oklch(0.925 0.006 106.5);
  --app-muted: oklch(0.58 0.031 107.3);
  --app-border: oklch(0.93 0.007 106.5);
  --app-surface: color-mix(in oklab, #fff 50%, var(--app-bg));
  --app-primary: oklch(0.228 0.013 107.4);
  --app-ink: oklch(0.53 0.1 140);
  position: relative; display: flex; overflow: hidden; text-align: left;
  background: var(--app-bg); color: var(--app-fg); font-size: 13.5px; line-height: 20px;
  border: 1px solid rgba(0, 0, 0, .08); border-radius: 20px;
  box-shadow: 0 48px 96px -40px rgba(0, 0, 0, .28), 0 12px 24px -12px rgba(0, 0, 0, .08);
}
.app .mono, .vis .mono, .hub .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: -.2px; }
.app__toggle { position: absolute; z-index: 3; left: 18px; top: 22px; color: var(--app-muted); }
.app__main { position: relative; flex: 1; min-width: 0; background: var(--app-bg); overflow: hidden; }
.view { position: absolute; inset: 0; }
.view[hidden] { display: none; }
.page { position: relative; height: 100%; max-width: 1060px; margin: 0 auto; padding: 18px 44px 0; }
.page__top { height: 32px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--app-muted); }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--app-accent); font-weight: 500; font-size: 12.5px; }
.page__title { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 30px; letter-spacing: -.6px; color: var(--app-fg); margin-bottom: 16px; }
.page__sub { font-size: 12.5px; line-height: 18px; color: var(--app-muted); }
/* stretch: the Transcribe / Summary tray runs the full height of the meta column. */
.page__grid { display: grid; grid-template-columns: 1fr 272px; gap: 16px; align-items: stretch; }
.tray { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 26px; overflow: hidden; }
.tray--pad { padding: 14px 18px 16px; }
.tray__head { padding: 12px 20px; border-bottom: 1px solid var(--app-border); font-weight: 600; font-size: 14px; line-height: 22px; color: var(--app-fg); }
.pav { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 12px; color: var(--app-fg, var(--foreground)); background: var(--stone-200); }
.pav--t { background: #dff4f1; } .pav--l { background: #eef5d6; } .pav--m { background: #f6efcf; }
.tx { padding: 14px 20px 18px; display: grid; gap: 14px; }
.tx__line { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.tx__line b, .txl b { font-weight: 600; font-size: 13px; }
.tx__line time, .txl time { font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; color: var(--app-muted, var(--muted-foreground)); margin-left: 6px; }
.tx__line p { margin-top: 2px; color: color-mix(in oklab, var(--app-fg) 82%, transparent); }
.tx__line--live p { color: var(--app-muted); }
.app mark, .vis mark { color: inherit; background: linear-gradient(90deg, var(--mint-1), var(--mint-2)) no-repeat 0 88% / 100% .42em; padding: 0 1px; }
.meta { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 26px; padding: 4px 16px; }
.meta__sec { padding: 12px 0; border-bottom: 1px solid var(--app-border); }
.meta__sec:last-child { border-bottom: 0; }
.meta__label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 600; font-size: 10.5px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--app-muted); }
.meta__label--ai { color: var(--app-ink); }
.person { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.person b { display: block; font-weight: 500; font-size: 13px; line-height: 16px; }
.person small { display: block; font-size: 11.5px; line-height: 16px; color: var(--app-muted); }
.fact { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--app-border); font-weight: 500; font-size: 12.5px; line-height: 18px; }
.fact time { font-family: var(--font-mono); font-size: 10.5px; color: var(--app-muted); }
.meta__val { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--mint-ink); animation: blink 1s infinite; }

.wave { display: flex; align-items: center; gap: 3px; height: 48px; }
.wave i { flex: 1; height: 100%; border-radius: 2px; background: linear-gradient(to top, var(--mint-ink), var(--mint-2)); transform: scaleY(var(--h, .5)); animation: wave 1.1s ease-in-out infinite; animation-delay: var(--d, 0s); }
.wave--sm { height: 36px; }
.wave--pill { flex: 1; min-width: 0; height: 22px; gap: 2px; }
.app .wave--pill i { background: var(--app-fg); }
@keyframes wave { 0%, 100% { transform: scaleY(calc(var(--h, .5) * .4)); } 50% { transform: scaleY(var(--h, .5)); } }

/* The recorder pill — kara-prototype's RecordControl while recording: the
   dark `.ai-button` glass, 48px tall with a 6px inset all round; Pause chip
   (76px) on the left, the clock centred, the solid red End on the right.
   Every ink on the glass is the light colour. */
.abar {
  position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px; border-radius: 24px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(37, 39, 31, .9), rgba(37, 39, 31, .8)); color: #f4f4f0;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2), 0 2px 6px rgba(0, 0, 0, .16); font-weight: 500; font-size: 14px; line-height: 20px;
}
.abar__pause { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 36px; flex: none; border-radius: 18px; background: rgba(244, 244, 240, .15); }
.abar__clock { flex: 1; min-width: 72px; padding: 0 4px; text-align: center; font-variant-numeric: tabular-nums; }
.abar__end { display: inline-flex; align-items: center; gap: 6px; height: 36px; flex: none; padding: 0 12px; border-radius: 18px; background: #dc2626; color: #fff; }

/* NGHE */
.is-playing .tx__line { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.25s + var(--i) * .72s); }
.is-playing .tx__line mark { animation: paint .6s ease-out both; animation-delay: calc(.7s + var(--i) * .72s); }
.is-playing .fact { animation: pop .45s ease-out both, flash 1.2s ease-out both; animation-delay: var(--d), var(--d); }

/* NHỚ — the Nghe meeting page after the call: same grid and meta column,
   the tray now holds Kara's Summary. Marks reuse the transcript's facts. */
.tray--trace { border: 1px solid transparent; background: linear-gradient(var(--app-surface), var(--app-surface)) padding-box, linear-gradient(100deg, var(--app-border) 0 35%, var(--mint-1) 45%, var(--mint-2) 50%, var(--mint-4) 55%, var(--app-border) 65% 100%) border-box; background-size: 100% 100%, 300% 100%; background-position: 0 0, 100% 0; }
.is-playing .tray--trace { animation: trace 2.2s .1s ease-in-out both; }
@keyframes trace { from { background-position: 0 0, 100% 0; } to { background-position: 0 0, 0 0; } }
.sum { padding: 14px 20px 18px; display: grid; gap: 12px; }
.sum__sec b { display: block; margin-bottom: 2px; font-weight: 600; font-size: 13px; }
.sum__sec p, .sum__sec li { color: color-mix(in oklab, var(--app-fg) 82%, transparent); }
.sum__sec ul { margin: 0; padding-left: 18px; }
.sum__todo { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: color-mix(in oklab, var(--app-fg) 82%, transparent); }
.sum__box { width: 14px; height: 14px; flex: none; border: 1.5px solid var(--stone-400); border-radius: 4px; }
.sum__todo .kchip { margin-left: auto; }
.src { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--app-muted); }
.kchip { font-style: normal; font-family: var(--font-mono); font-size: 10px; line-height: 16px; padding: 1px 6px; border-radius: 6px; background: var(--app-accent); color: var(--app-fg); white-space: nowrap; letter-spacing: -.2px; }
.is-playing .sum__sec { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.5s + var(--i) * .45s); }
.is-playing .sum__sec mark { animation: paint .6s ease-out both; animation-delay: calc(.9s + var(--i) * .45s); }

/* SUY LUẬN — the contact page Kara keeps up to date, beside the Ask Kara
   panel. .page--side leaves the panel its 420px on the right. */
.page--side { max-width: none; padding: 18px 420px 0 44px; }
.tray__label { font-weight: 600; font-size: 10.5px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--app-ink); }
.tray__label--row { padding: 12px 18px 4px; }
@keyframes strike { from { background-size: 0 1.5px; } to { background-size: 100% 1.5px; } }
.contact { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; margin-bottom: 16px; }
.contact .page__title { margin: 0; }
.cav { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--app-accent); font-family: var(--font-serif); font-size: 18px; }
.contact__type { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--app-muted); }
.contact__upd { display: inline-flex; align-items: center; gap: 14px; color: var(--app-muted); }
.contact__btn { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--app-fg); }
.col { display: grid; gap: 14px; }
.sumtext { margin-top: 8px; font-size: 13.5px; line-height: 22px; }
.sumtext b { font-weight: 600; }
.ins { padding: 10px 18px 12px; border-top: 1px solid var(--app-border); }
.ins:nth-child(2) { border-top: 0; }
.ins b { display: block; font-weight: 600; font-size: 13px; }
.ins p { margin: 2px 0 4px; }
.field { padding: 6px 0; }
.field small { display: block; font-size: 11.5px; line-height: 16px; color: var(--app-muted); }
.field > span { font-weight: 500; font-size: 13px; }
.budget { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.budget s { text-decoration: none; color: var(--app-muted); background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 100% 1.5px; }
.budget i { font-style: normal; color: var(--app-muted); }
.budget b { font-weight: 600; padding: 0 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(143, 245, 240, .55), rgba(194, 250, 154, .55)); }
.field em { display: block; font-style: normal; color: var(--app-muted); }
.mt { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 12.5px; }
.mt .mono { color: var(--app-muted); }
.mt em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 10px; line-height: 16px; padding: 1px 6px; border-radius: 6px; background: var(--mint); color: var(--app-fg); white-space: nowrap; letter-spacing: -.2px; }
.is-playing .sumtext { animation: rise .8s .35s ease-out both; }
.is-playing .ins { animation: rise .5s ease-out both; animation-delay: calc(1.1s + var(--i) * .35s); }
.is-playing .budget s { animation: strike .35s ease-out both; }
.is-playing .budget s:nth-of-type(1) { animation-delay: 2.5s; }
.is-playing .budget s:nth-of-type(2) { animation-delay: 2.9s; }
.is-playing .budget b { animation: pop .45s 3.3s ease-out both; }
.is-playing .mt--new { animation: pop .45s 3.7s ease-out both; }

/* SUY LUẬN */
.who { font-size: 12.5px; color: var(--app-muted); }
.due { font-family: var(--font-mono); font-size: 10.5px; color: var(--app-muted); white-space: nowrap; }
.due--hot { color: #c2410c; }
.chat {
  position: absolute; z-index: 4; top: 12px; right: 12px; bottom: 12px; width: 372px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--app-border); border-radius: 28px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .2);
}
.chat__head { display: flex; align-items: center; gap: 4px; padding: 10px; }
.chat__ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 15px; color: var(--app-muted); }
.chat__ic.is-on { background: var(--app-accent); color: var(--app-fg); }
.chat__sp { flex: 1; }
.chat__msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 6px 20px; }
.bub-me { align-self: flex-end; max-width: 270px; padding: 9px 14px; border-radius: 18px 18px 6px 18px; background: color-mix(in oklab, var(--app-accent) 94%, black); font-weight: 500; }
/* Thinking state: a spinning star + "Đang suy luận…" over three reasoning
   steps that tick in one by one, then the whole block folds away before the
   answer arrives. At rest (no .is-playing) it is collapsed, like every `.a`
   resting in its final state. */
.think { flex: none; display: grid; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; margin: -7px 0; font-size: 12.5px; line-height: 18px; color: var(--app-muted); }
.think__head { display: flex; align-items: center; gap: 8px; }
.think__head svg { flex: none; color: var(--mint-ink); }
.think__head span { font-weight: 500; background: linear-gradient(90deg, var(--app-muted) 35%, var(--app-fg) 50%, var(--app-muted) 65%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.think__steps { list-style: none; margin: 0 0 0 6px; padding: 0 0 0 15px; border-left: 1px solid var(--app-border); display: grid; gap: 4px; }
.think__steps li { position: relative; }
.think__steps li::before { content: ""; position: absolute; left: -19px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--mint-ink); }
/* Two shimmer passes + two star turns cover the 2.6s the block is open; an
   infinite loop kept repainting the masked shot long after it had collapsed. */
.is-playing .think { animation: think 2.6s .6s ease both; }
.is-playing .think__head span { animation: shimmer 1.3s .6s linear 2; }
.is-playing .think__head svg { animation: spin 1.3s .6s cubic-bezier(.5, 0, .5, 1) 2; }
.is-playing .think__steps li { animation: fadeup .4s ease-out both; animation-delay: calc(.9s + var(--i) * .45s); }
.is-playing .think__steps li::before { animation: tick .3s ease-out both; animation-delay: calc(1.3s + var(--i) * .45s); }
@keyframes think { 0% { max-height: 0; opacity: 0; margin: -7px 0; } 10%, 88% { max-height: 96px; opacity: 1; margin: 0; } 100% { max-height: 0; opacity: 0; margin: -7px 0; } }
@keyframes spin { to { transform: rotate(180deg); } }
@keyframes tick { from { background: #fff; } to { background: var(--mint-ink); } }
.ans { display: grid; gap: 8px; font-size: 13.5px; line-height: 21px; }
.ans ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ans li b { font-weight: 600; }
.cite { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 3px; border-radius: 6px; background: var(--app-accent, var(--stone-100)); font-family: var(--font-mono); font-size: 10px; line-height: 16px; color: var(--app-fg, var(--foreground)); vertical-align: 1px; letter-spacing: -.2px; }
.ans__tip { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(100deg, rgba(143, 245, 240, .22), rgba(248, 233, 144, .26)); font-size: 13px; line-height: 19px; }
.ans__tip svg { flex: none; margin-top: 3px; color: var(--mint-ink); }
.ans__foot { font-size: 11px; color: var(--app-muted); }
.chat__box { margin: 10px; padding: 10px; border-radius: 16px; background: color-mix(in oklab, var(--app-bg) 94%, black); }
.focus { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 12px; background: #fff; font-weight: 500; font-size: 12px; }
.focus em { font-style: normal; color: var(--app-muted); margin-left: 2px; }
.chat__ph { margin: 8px 2px 10px; color: var(--app-muted); }
.chat__tools { display: flex; justify-content: space-between; }
.chat__tools span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .1); }
.chat__tools .chat__send { background: var(--app-primary); border-color: transparent; color: #fff; }
.is-playing .bub-me { animation: rise .45s .15s ease-out both; }
/* No blur here: the shot is scaled and masked, and a filter ending on text in
   that layer makes Chrome re-raster it — each line visibly flickers sharp. */
.is-playing .ans .a { animation: fadeup .5s ease-out both; animation-delay: calc(3.2s + var(--i) * .4s); }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.is-playing .ans .cite { animation: pop .4s ease-out both; animation-delay: calc(3.5s + var(--i) * .4s); }

/* HÀNH ĐỘNG */
.page--todos { padding: 22px 44px 0; }
.todos__head { display: flex; align-items: flex-start; justify-content: space-between; }
.todos__head .page__title { margin-bottom: 2px; }
.todos__bar { display: flex; align-items: center; gap: 6px; margin: 16px 0 12px; }
.seg { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; font-weight: 500; font-size: 12.5px; color: var(--app-muted); }
.seg em { margin-left: 6px; padding: 0 5px; border-radius: 6px; background: rgba(0, 0, 0, .06); font-style: normal; font-family: var(--font-mono); font-size: 10.5px; }
.seg.is-on { background: var(--app-accent); color: var(--app-fg); }
.todos__tools { margin-left: auto; display: flex; gap: 16px; font-size: 12.5px; color: var(--app-muted); }
.todos__tools span { display: inline-flex; align-items: center; gap: 5px; }
.nba {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; padding: 11px 14px;
  border: 1px solid transparent; border-radius: 16px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, var(--mint-1), var(--mint-2) 50%, var(--mint-4)) border-box;
}
.nba b { font-weight: 600; font-size: 13px; }
.nba p { font-size: 12.5px; line-height: 18px; color: color-mix(in oklab, var(--app-fg) 75%, transparent); }
.nba__mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--mint); }
.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 14px; border: 0; background: var(--app-accent, var(--stone-200)); font-weight: 600; font-size: 12.5px; color: var(--app-fg, var(--foreground)); white-space: nowrap; }
.abtn--primary { background: var(--app-primary, var(--primary)); color: #fff; }
.table .tr { display: grid; grid-template-columns: 1fr 120px 80px 96px; gap: 12px; align-items: center; min-height: 46px; padding: 0 16px; border-top: 1px solid var(--app-border); font-size: 13px; }
.table .tr--th { min-height: 36px; border-top: 0; font-weight: 500; font-size: 11.5px; color: var(--app-muted); }
.tr--th span:last-child { text-align: right; }
.tr__t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tr--done .tr__t { color: var(--app-muted); text-decoration: line-through; }
.act { justify-self: end; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--app-border); background: #fff; font-weight: 500; font-size: 12px; }
.act--on { background: var(--app-primary); border-color: transparent; color: #fff; }
.kchip--swap { display: inline-grid; padding: 0; background: none; }
.kchip--swap > span { grid-area: 1 / 1; padding: 1px 6px; border-radius: 6px; background: var(--app-accent); }
.kchip--swap > span:first-child { opacity: 0; }
.kchip--swap > span:last-child { background: #dcfce7; color: #166534; }
.sync {
  position: absolute; z-index: 5; top: 338px; right: 60px; width: 344px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--app-border); border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .28);
  opacity: 0; visibility: hidden;
}
.sync__head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.sync__head b { font-weight: 600; font-size: 13.5px; }
.sync__tag { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: var(--app-accent); font-family: var(--font-mono); font-size: 10px; color: var(--app-muted); }
.sync__row { display: grid; grid-template-columns: 96px auto auto auto; justify-content: start; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--app-border); font-size: 12.5px; }
.sync__row small { font-size: 12px; color: var(--app-muted); }
.sync__row s { color: var(--app-muted); }
.sync__row i { font-style: normal; color: var(--app-muted); }
.sync__row b { font-weight: 600; }
.sync__add { grid-column: 2 / -1; padding: 0 4px; border-radius: 4px; background: rgba(194, 250, 154, .5); }
.sync__foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--app-border); }
.sync__ok { position: relative; }
.cursor { position: absolute; left: 55%; top: 55%; width: 20px; height: 20px; opacity: 0; pointer-events: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 2.5v13.2l3.4-3.1 2.2 5 2.3-1-2.2-4.9 4.6-.2z' fill='%23111' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.toast { position: absolute; z-index: 6; left: 50%; bottom: 80px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 19px; background: var(--app-fg); color: #fff; font-weight: 500; font-size: 13px; white-space: nowrap; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .4); }
.toast svg { color: var(--mint-2); }
.is-playing .tr.a { animation: rise .45s ease-out both; animation-delay: calc(.2s + var(--i) * .14s); }
.is-playing .nba { animation: pop .5s .9s ease-out both; }
.is-playing .sync { animation: syncio 3.3s 1.7s ease both; }
@keyframes syncio { 0% { opacity: 0; visibility: visible; transform: translateY(8px) scale(.98); } 12%, 84% { opacity: 1; visibility: visible; transform: none; } 100% { opacity: 0; visibility: hidden; transform: translateY(4px) scale(.98); } }
.is-playing .cursor { animation: cursorgo 1.7s 2.4s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes cursorgo { 0% { opacity: 0; transform: translate(-170px, -90px); } 15% { opacity: 1; } 72% { opacity: 1; transform: none; } 82% { transform: scale(.82); } 92%, 100% { opacity: 1; transform: none; } }
.is-playing .sync__ok { animation: flash .8s 3.75s ease-out both; }
.is-playing .toast { animation: rise .45s 4.95s ease-out both; }
.is-playing .kchip--swap > span:first-child { animation: swapout .3s 4.95s both; }
.is-playing .kchip--swap > span:last-child { animation: pop .4s 4.95s ease-out both; }
@keyframes swapout { from { opacity: 1; } to { opacity: 0; } }

/* ── Hero shots ───────────────────────────────────────────────────────────
   The hero shows each view as a 720×420 crop, not the whole window: the
   chrome that is not the point (crumbs, sidebar toggle, side columns) goes,
   the focus is laid out to fill the frame, and the top fades into the hero
   so the shot reads as "the bottom of the app". --fade is where the frame
   becomes fully opaque; each view sets its own. */
.demo .app { --fade: 36%; border-radius: 36px; box-shadow: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--fade)); mask-image: linear-gradient(180deg, transparent, #000 var(--fade)); }
.demo .app[data-view="nho"] { --fade: 12%; }
.demo .app[data-view="suy"] { --fade: 18%; }
.demo .app[data-view="hanh"] { --fade: 12%; }
.demo .app__toggle, .demo .page__top { display: none; }
.demo .page { max-width: none; padding: 0 24px; }
.is-playing.view { animation: shotin .5s var(--ease-out) both; }
@keyframes shotin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Nghe — the live transcript running down into the recording bar. */
.demo #view-nghe .page { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 82px; }
.demo #view-nghe .page__title, .demo #view-nghe .meta { display: none; }
.demo #view-nghe .page__grid { grid-template-columns: 1fr; }
.demo #view-nghe .tx { gap: 16px; padding: 16px 22px 22px; }
.demo #view-nghe .tx__line p { font-size: 14.5px; line-height: 22px; }

/* Nhớ — just the Summary, kept short: the overview, needs and concerns side
   by side, one next step. (The "Kara đã ghi nhớ" column repeated it.) */
.demo #view-nho .page { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 24px; }
.demo #view-nho .page__grid { grid-template-columns: 1fr; }
.demo #view-nho .meta, .demo #view-nho .sum__todo + .sum__todo { display: none; }
.demo #view-nho .sum { grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 16px 22px 20px; }
.demo #view-nho .sum__sec:first-child, .demo #view-nho .sum__sec:last-child { grid-column: 1 / -1; }
.demo #view-nho .sum__sec p, .demo #view-nho .sum__sec li, .demo #view-nho .sum__todo { font-size: 14.5px; line-height: 22px; }
.demo #view-nho .sum__sec b { font-size: 14px; }

/* Suy luận — the Ask Kara answer alone, centred in the frame. */
.demo #view-suy .chat { top: 12px; bottom: 12px; right: auto; left: 50%; translate: -50% 0; width: min(480px, calc(100% - 24px)); }
.demo #view-suy .chat__head, .demo #view-suy .ans__foot { display: none; }
.demo #view-suy .chat__tools { margin-top: 0; }
.demo #view-suy .chat__msgs { padding-top: 16px; }

/* Hành động — three Kara-suggested todos, each one tap from done, and the CRM write the middle one prepares. */
.demo #view-hanh .page--todos { display: flex; flex-direction: column; justify-content: center; padding: 0 24px 48px; }
.demo #view-hanh .todos__head { margin-bottom: 16px; }
.demo #view-hanh .table .tr { grid-template-columns: 1fr 72px 96px; min-height: 56px; }
.demo #view-hanh .table .tr:first-child { border-top: 0; }
.demo #view-hanh .sync { top: auto; bottom: 76px; right: 24px; }
.demo #view-hanh .toast { bottom: 28px; }

/* Primitives the workflow rows (19:1270) still draw with. */
@keyframes blink { 50% { opacity: .3; } }
.rec__top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--foreground); margin-bottom: 12px; }
.rec__src { display: inline-flex; align-items: center; gap: 8px; }
.rec__time { font-variant-numeric: tabular-nums; color: var(--muted-foreground); font-weight: 500; }
.line, .phone-rec { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.line { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 16px; font-size: 14px; line-height: 20px; }
.line b { font-weight: 600; color: var(--foreground); }
.line time { font-weight: 400; font-size: 12px; color: var(--muted-foreground); margin-left: 6px; font-variant-numeric: tabular-nums; }
.line p { color: var(--stone-600); margin-top: 2px; }
.line mark { background: none; color: var(--foreground); box-shadow: inset 0 -.45em 0 var(--mint-3); }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--foreground); background: var(--stone-200); }
.av--a { background: #d9f7f4; } .av--b { background: #f3f5c9; } .av--c { background: #e3f6d3; }
.node { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.node__head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--foreground); white-space: nowrap; }
.ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: var(--radius-lg); color: var(--foreground); }
.ico--green { background: var(--green-100); } .ico--orange { background: var(--orange-100); } .ico--violet { background: var(--violet-100); }
.flow { position: absolute; }
.flow__start { position: absolute; top: 0; left: 36px; padding: 16px; height: 52px; background: var(--stone-200); border: 1px solid var(--border); border-radius: var(--radius-xl) var(--radius-xl) 0 0; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.node { position: absolute; z-index: 1; min-width: 168px; }
.node__body { padding: 16px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); text-align: center; }
.node__body--list { display: grid; gap: 8px; text-align: center; }
.opt { display: block; padding: 6px 12px; background: var(--stone-50); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 12px; line-height: 16px; color: var(--muted-foreground); white-space: nowrap; }
.flow__wires { position: absolute; left: 0; top: 0; overflow: visible; }
.flow__wires path { stroke: var(--stone-400); stroke-width: 1; }
.flow__wires circle { fill: var(--stone-400); }

/* ── Split (19:1165) — Solutions + FAQ ────────────────────────────────── */

/* ── Solutions — three problems, sticky stage ─────────────────────────── */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 600; font-size: 13px; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-600); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(143, 245, 240, .3); }
.kicker--plain::before { content: none; }
/* The section opens on a PAUSE: one dark band, one large sentence, the two
   costs lit in Mint lime. No kicker — the band itself is the break. */
/* The band is the hero card's lower half: same inset (48px), flush under it,
   square where the two meet and rounded below — so hero + pause read as one
   card. The left padding keeps the sentence on the page's 192px line. */
.sol__head { margin: 0 var(--inset); padding: 160px 72px; border-radius: 0 0 64px 64px; corner-shape: squircle; background: var(--primary); color: #f4f4f0; }
/* Sound glow: the reference card's blue → cyan → mint → lime wash rises
   from the band's bottom edge. ::before is the light: its top is a low,
   long, heavily blurred sine (an SVG mask, periodic over the 640-unit tile so
   repeat-x has no seam) whose fill also fades upward, so the dark band melts
   into the colour instead of meeting it at a line. The wave drifts one way
   and the colour bands the other, both very slowly. ::after is the same
   moving colour seen through a 4px dot matrix: dense and lit at the bottom
   edge, gone by 60% of the glow's height. Nothing sits behind the sentence —
   a grain under Merriweather's thin hairlines and stacked Vietnamese
   diacritics made it read as noise. */
.sol__head { position: relative; isolation: isolate; overflow: hidden; }
.sol__head::before, .sol__head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #7fb4f2, var(--mint-1) 22%, #9ee8c6 40%, var(--mint-3) 55%, var(--mint-1) 75%, #7fb4f2) 0 0 / 2400px 100% repeat-x;
}
.sol__head::before {
  --wl: 1600px; height: var(--glow-h, 270px); opacity: .9;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 300' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='70' x2='0' y2='300'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23fff' stop-opacity='.6'/%3E%3Cstop offset='1' stop-color='%23fff'/%3E%3C/linearGradient%3E%3Cfilter id='b' filterUnits='userSpaceOnUse' x='-700' y='-60' width='2040' height='520'%3E%3CfeGaussianBlur stdDeviation='30'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23b)' fill='url(%23g)' d='M-640 160C-533 130-427 130-320 160S-107 190 0 160S213 130 320 160S533 190 640 160S853 130 960 160S1173 190 1280 160V420H-640Z'/%3E%3C/svg%3E");
  mask-repeat: repeat-x; mask-position: 0 100%; mask-size: var(--wl) 100%;
  animation: solcolor 30s linear infinite, solwave 16s linear infinite;
}
.sol__head::after {
  top: 0; opacity: .5;
  mask-image: linear-gradient(to top, #000, transparent calc(var(--glow-h, 270px) * .6)), radial-gradient(circle, #000 0 .9px, transparent 1.4px);
  mask-size: 100% 100%, 4px 4px; mask-composite: intersect;
  animation: solcolor 30s linear infinite;
}
/* With JS + motion, main.js swaps the CSS dot layer for a canvas of the same
   dots (same 4px pitch, same fade, same drifting colours, synced to this
   ::before's own animation clock) so each dot can answer the pointer:
   ripples ring out from the cursor and the dots near it brighten. */
.sol__dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.sol__head.has-dots::after { display: none; }
@keyframes solcolor { to { background-position: 2400px 0; } }
@keyframes solwave { to { mask-position: var(--wl) 100%; } }
.sol__pause { max-width: 1000px; margin-inline: auto;   /* centred in the band (owner, 2026-10-10: "cụm paragraph căn giữa block") */ font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 52px; letter-spacing: 0; text-wrap: pretty; }
.sol__pause em { font-style: normal; color: var(--mint-2); }
/* Typing (main.js): each glyph waits at opacity 0 and the caret rides the
   last one typed — absolutely placed, so it takes no width from the line.
   The caret is a horizontal underscore just under the baseline, not an
   I-beam: in Merriweather's content box (ascent .985, descent .273) the
   baseline sits .273em above the bottom, so bottom .16em lands it under. */
.sol__pause.is-typing .tch { opacity: 0; }
.sol__pause.is-typing .tch.is-on { opacity: 1; }
.sol__pause .tch.is-caret { position: relative; }
.sol__pause .tch.is-caret::after { content: ""; position: absolute; left: 100%; bottom: .16em; width: .5em; height: max(2px, .09em); margin-left: .06em; background: var(--mint-2); animation: blink 1s steps(1) infinite; }
/* Reduced motion / no JS: the sentence is never split, so the caret is a
   plain trailing underscore — always there, held still (no blink). */
.sol__pause:not(.is-typing)::after { content: ""; display: inline-block; width: .5em; height: max(2px, .09em); margin-left: .06em; vertical-align: -.1em; background: var(--mint-2); }
.sol__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 24px; border-top: 1px solid var(--stone-300); border-bottom: 1px solid var(--stone-300); }
.sol__steps { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--stone-300); }
.step { display: flex; flex-direction: column; justify-content: center; min-height: clamp(560px, 86vh, 820px); padding: 72px 96px 72px calc(192px - var(--inset)); border-bottom: 1px solid var(--stone-300); transition: opacity .45s ease; }
.sol.is-live .step { opacity: .32; }
.step:last-child { border-bottom: 0; }
.sol.is-live .step.is-active { opacity: 1; }
.step__text { max-width: 520px; cursor: default; }
.step__title { margin-bottom: 16px; }
.step__chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.step__chips li { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--stone-300); font-weight: 600; font-size: 13px; color: var(--stone-600); background: rgba(255, 255, 255, .5); }
/* Step 1's facets (main.js). Same autoplay contract as the hero tabs: the
   active facet's bar is the timer, its animationend picks the next one, and
   it only runs while `.is-run` is on (step active / on screen), pausing on
   hover. The open facet shows its line; the rest fold to their title. */
.feats { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--stone-300); }
.step__title + .feats { margin-top: 24px; }
.feat { position: relative; display: block; width: 100%; padding: 16px 0 18px; border-bottom: 1px solid var(--stone-300); text-align: left; cursor: pointer; }
.feat__t { display: block; font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: var(--tracking-tight); color: var(--stone-400); transition: color var(--t) var(--ease-out); }
.feat:hover .feat__t, .feat.is-on .feat__t { color: var(--foreground); }
.feat__d { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease-out), opacity .3s ease; }
.feat__d > span { min-height: 0; overflow: hidden; }
.feat__d > span > span { display: block; padding-top: 6px; font-size: 16px; line-height: 24px; color: var(--stone-600); }
.feat.is-on .feat__d { grid-template-rows: 1fr; opacity: 1; }
.feat__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.feats.is-run .feat.is-on .feat__bar { animation: tabbar var(--fdur, 6.5s) linear forwards; }
/* held only while the pointer is on the item whose bar is running (owner,
   2026-10-05) — the rest of the list and the picture no longer pause it */
.feat:hover .feat__bar, .feat:focus-visible .feat__bar { animation-play-state: paused !important; }
.step__slot { display: none; min-width: 0; }
/* Outputs facets: filled blocks instead of ruled rows. Each block carries its
   colour (--c, inline on the button); the icon sits on a pale disc of it,
   and the timer is a FILL — the bar becomes the block's own background,
   a pale tint of --c sweeping left to right. */
/* The list spans exactly the deck block's height (same 16px inset top and
   bottom); the open item takes the spare height, and flex-grow animates. */
.feats--ic { border-top: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.feats--ic > li { display: flex; flex: 0 1 auto; transition: flex-grow .45s var(--ease-out); }
.feats--ic > li:has(.feat.is-on) { flex-grow: 1; }
.feats--ic > li > .feat { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; } /* a <button> centres its content vertically by default */
.feats--ic .feat { padding: 13px 15px 15px; border: 1px solid var(--stone-200); border-radius: var(--radius-xl); background: transparent; isolation: isolate; overflow: hidden; transition: background var(--t) var(--ease-out), border-color var(--t) var(--ease-out); }
.feats--ic .feat.is-on { background: #fff; border-color: #fff; }
.feats--ic .feat__t { display: flex; align-items: center; gap: 12px; }
.feat__ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in oklab, var(--c, var(--stone-400)) 16%, #fff); color: var(--c, var(--stone-600)); transition: transform var(--t) var(--ease-spring), background-color var(--t) var(--ease-out), color var(--t) var(--ease-out); }
.feat.is-on .feat__ic { transform: scale(1.06); }
/* Only the active facet wears its colour; the rest sit neutral until picked. */
.feats--ic .feat:not(.is-on) .feat__ic { background: var(--stone-100); color: var(--stone-400); }
.feats--ic .feat__d > span > span { padding-left: 44px; }
/* The timer runs on the item that comes NEXT: a white fill sweeps across it,
   and when it is full that item becomes the open (white) one. */
.feats--ic .feat__bar { inset: 0; height: auto; bottom: 0; z-index: -1; background: #fff; }
.feats--ic.is-run .feat.is-on .feat__bar { animation: none; }
.feats--ic.is-run .feat.is-next .feat__bar { animation: tabbar var(--fdur, 6.5s) linear forwards; }

/* Outputs section (#noi-dung), two rows on the hub's 50/50 grid:
   body (title + description + facets | deck) · foot (coming formats | the one
   action). Two equal columns with a gap, on tight side gutters (--outs-l /
   --outs-r, owner 2026-10-05: the Solutions block's 48px+ read too wide here).
   The title's
   top sits on the deck block's top edge, and the facets stretch so the left
   column ends where the deck does. */
.outs { --outs-l: 48px; --outs-r: 48px; }
.outs__head { margin-bottom: 32px; }
.outs__head .h-display { font-size: 34px; line-height: 42px; text-wrap: wrap; } /* fills the column: breaks only where a line runs out of room (owner, 2026-10-05) */
.outs__lead { margin-top: 16px; font-size: 16px; line-height: 24px; color: var(--stone-600); text-wrap: pretty; }
.outs__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 64px var(--outs-r) 0 var(--outs-l); }
.outs__text { display: flex; flex-direction: column; }
/* .outs--flip mirrors the two columns: the demo block on the left. */
.outs--flip .outs__demo { order: -1; }
.outs > .outs__body:last-child { padding-bottom: 64px; } /* a section with no footer (2c) keeps its bottom air */
.outs__text .feats { margin-top: 0; }
/* Living gradient fills (.outs__demo, .tst__side — owner,
   2026-10-05): each block's three glows drift slowly on their own (--gNx/y,
   24s, alternating paths), are shoved further when its items switch (--kx/y,
   set by main.js stirFill, eased over 1.6s) and lean a little toward the
   pointer (--px/y). Registered properties, so the gradients interpolate
   instead of jumping. Reduced motion: still. */
@property --g1x { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --g1y { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --g2x { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --g2y { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --g3x { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --g3y { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --kx { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --ky { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --px { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --py { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.outs__demo, .tst__side, .footer__hero { animation: gdrift 24s ease-in-out infinite alternate; transition: --kx 1.6s cubic-bezier(.2, .7, .2, 1), --ky 1.6s cubic-bezier(.2, .7, .2, 1), --px 1.2s ease-out, --py 1.2s ease-out; }
@keyframes gdrift {
  0% { --g1x: 0%; --g1y: 0%; --g2x: 0%; --g2y: 0%; --g3x: 0%; --g3y: 0%; }
  33% { --g1x: 7%; --g1y: 6%; --g2x: -6%; --g2y: 7%; --g3x: -7%; --g3y: -4%; }
  66% { --g1x: -4%; --g1y: 10%; --g2x: -10%; --g2y: -3%; --g3x: 6%; --g3y: -7%; }
  100% { --g1x: 5%; --g1y: -3%; --g2x: 4%; --g2y: 5%; --g3x: -3%; --g3y: 3%; }
}
@media (prefers-reduced-motion: reduce) { .outs__demo, .tst__side, .footer__hero { animation: none; transition: none; } }
/* Heat (owner, 2026-10-07: "đang xem trên mobile thì thiết bị rất nóng").
   1. Off screen, every animation in and on a looping block is paused —
      main.js marks .is-offscreen (the gradient blocks, the pause band, the
      meeting types, the logo marquees). A paused CSS animation costs nothing;
      a running one ticks style every frame and, for a gradient, repaints.
   2. On touch screens the costliest loops stand still even on screen: the
      blocks' gradient drift (three big radial layers repainted each frame,
      under deck cards that re-blur whatever moves behind them), the deck's
      frosted back cards (backdrop blur → a little more opaque instead) and
      the meeting-type glows' pan (a 28px blur redrawn each frame). The
      colours, the stir on a switch and every interaction stay. That half
      sits at the END of this file, so it wins over the rules it overrides. */
.is-offscreen, .is-offscreen::before, .is-offscreen::after, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
/* One brand palette, a different MIX per section (owner, 2026-10-05), so
   arriving at a new section feels new: each block sets its three glows'
   colours (--c1..3, RGB triplets) and strengths (--a1..3), the fill under
   them (--cb) and where the glows sit (--oNx/y, offsets from the shared
   layout). Colours: mint-1 #8ff5f0, mint-2 #c2fa9a, mint-3 #e7f696, mint-4
   #f8e990, blue #7fb4f2, seafoam #9ee8c6 + the original teal/butter/leaf.
   main.js reads the same variables for the dot grain's colours. */
.outs__demo, .tst__side { --c1: 164 222 234; --a1: .85; --c2: 255 238 186; --a2: .9; --c3: 172 218 152; --a3: .85; }
/* 2b Nội dung — morning mist: teal · butter · leaf (the original mix). */
/* 2c Phối hợp — clear sky: blue and cyan up top on the right (the block sits left), lime below. */
#dong-nghiep .outs__demo { --c1: 127 180 242; --a1: .55; --c2: 143 245 240; --a2: .7; --c3: 231 246 150; --a3: .9; --cb: #f1f5f6; --o1x: 62%; --o1y: 4%; --o2x: -64%; --o2y: 20%; --o3x: 12%; }
/* 2d Dữ liệu — fresh lime: green low on the left, cyan across the top, butter warming the right. */
#du-lieu .outs__demo { --c1: 194 250 154; --a1: .85; --c2: 143 245 240; --a2: .65; --c3: 248 233 144; --a3: .85; --cb: #f4f7ec; --o1y: 74%; --o1x: -6%; --o2x: -40%; --o2y: -14%; --o3x: 40%; --o3y: -60%; }
/* Testimonials — warm light: butter crown, seafoam middle, a cool blue foot. */
.tst__side { --c1: 248 233 144; --a1: .9; --c2: 158 232 198; --a2: .75; --c3: 127 180 242; --a3: .45; --cb: #f6f5ee; --o1x: 20%; --o2x: -50%; --o2y: 30%; }
/* The deck sits on a soft gradient block (the hero's palette, every stop
   fading to its own colour at alpha 0, never "transparent"). */
.outs__demo { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; padding: 32px 16px; border-radius: 40px; corner-shape: squircle;
  background:
    radial-gradient(60% 55% at calc(18% + var(--o1x, 0%) + var(--g1x) + var(--kx) + var(--px)) calc(12% + var(--o1y, 0%) + var(--g1y) + var(--ky) + var(--py)), rgb(var(--c1) / var(--a1)), rgb(var(--c1) / 0) 72%),
    radial-gradient(55% 50% at calc(88% + var(--o2x, 0%) + var(--g2x) - var(--ky) + var(--px) * .6) calc(18% + var(--o2y, 0%) + var(--g2y) + var(--kx) + var(--py) * .6), rgb(var(--c2) / var(--a2)), rgb(var(--c2) / 0) 72%),
    radial-gradient(75% 60% at calc(45% + var(--o3x, 0%) + var(--g3x) - var(--kx) * .8 - var(--px) * .5) calc(105% + var(--o3y, 0%) + var(--g3y) - var(--ky) * .6 - var(--py) * .5), rgb(var(--c3) / var(--a3)), rgb(var(--c3) / 0) 72%),
    var(--cb, #f3f6ef); }
/* The pause band's pointer grain (main.js dotGrain) under the deck, clipped to the block's squircle. */
.outs__dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; border-radius: inherit; corner-shape: inherit; }
.outs__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 32px var(--outs-r) 40px var(--outs-l); }
.outs__soon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* Coming formats read as muted: light ink, lighter circles — not yet clickable things. */
.outs__soonlabel { padding: 1px 10px; border-radius: 9999px; border: 1px solid var(--stone-200); font-weight: 600; font-size: 12px; line-height: 20px; color: var(--stone-400); }
.outs__soon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.outs__soon li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--stone-400); }
.outs__soon .feat__ic { width: 28px; height: 28px; background: var(--stone-100); color: var(--stone-400); }

/* The output deck. No frame of its own: the cards are the content.
   Four cards share one spot; .is-p0 is the front, large and centred, and
   .is-p1…3 stack straight behind it (no tilt): each one a step smaller and a
   step lower, so only a sliver shows under the card above (origin = the card's
   bottom edge, so the scale keeps the bottoms lined up and translateY is the
   sliver). A new facet re-ranks them: the next card rises out of the stack
   into the front while the old front drops to the bottom. */
.vis.vis--deck { background: none; border: 0; box-shadow: none; overflow: visible; padding: 0; }
.vis-fit.outs-fit { --fw: 560; --fh: 540; } /* a tighter canvas than the other stages, so the front card fills the block */
.deck { position: absolute; left: 60px; top: 8px; width: 440px; height: 400px; transform: scale(1.2); transform-origin: 50% 0; }
.dk { position: absolute; inset: 0; padding: 22px 24px; border-radius: 20px; background: #fff; border: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .28); overflow: hidden; transform-origin: 50% 100%; transition: transform .65s cubic-bezier(.2, .7, .2, 1), box-shadow .65s ease, background-color .65s ease, backdrop-filter .65s ease; }
.dk.is-p0 { z-index: 4; transform: none; }
.dk.is-p1 { z-index: 3; transform: translateY(12px) scale(.94); background: rgba(255, 255, 255, .7); }
.dk.is-p2 { z-index: 2; transform: translateY(24px) scale(.88); background: rgba(255, 255, 255, .55); }
.dk.is-p3 { z-index: 1; transform: translateY(36px) scale(.82); background: rgba(255, 255, 255, .4); }
.dk:not(.is-p0) { box-shadow: 0 10px 20px -16px rgba(0, 0, 0, .25); backdrop-filter: blur(14px); } /* the back cards are frosted glass: translucent, blurring whatever sits behind them */
.dk:not(.is-p0) > * { opacity: .55; transition: opacity .4s ease; }
.dk.is-p0 > * { opacity: 1; transition: opacity .4s .15s ease; }
.dk__h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; }
.dk__h b { font-weight: 600; }
.dk__ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; }
.dk__tag { margin-left: auto; padding: 2px 8px; border-radius: 9999px; background: var(--stone-100); font-size: 11.5px; color: var(--stone-600); }
.dk__t { font-family: var(--font-serif); font-weight: 600; font-size: 19px; line-height: 26px; margin-bottom: 14px; }
.dk__sec { padding: 10px 0; border-top: 1px solid var(--border); }
.dk__sec small { display: block; margin-bottom: 4px; font-weight: 600; font-size: 10.5px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.dk__sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dk__sec li { position: relative; padding-left: 12px; font-size: 13px; line-height: 20px; color: var(--stone-700); }
.dk__sec li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--stone-400); }
.dk__sec p { font-size: 13px; line-height: 20px; color: var(--stone-700); }
.dk .cite { vertical-align: 1px; }
.dk__todos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dk__todos li { display: grid; grid-template-columns: 18px 1fr auto; align-items: start; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--stone-50); }
.dk__todos b { display: block; font-weight: 600; font-size: 13px; line-height: 18px; }
.dk__todos small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 16px; color: var(--muted-foreground); }
.dk__box { width: 16px; height: 16px; margin-top: 1px; display: grid; place-items: center; border-radius: 5px; border: 1.5px solid var(--stone-300); background: #fff; color: #fff; }
.dk__todos .is-done .dk__box { border-color: #8b5cf6; background: #8b5cf6; }
.dk__todos .is-done b { color: var(--muted-foreground); text-decoration: line-through; }
.due--hot { color: #e11d48; }
.mm { position: relative; height: 300px; }
.mm__wires { position: absolute; inset: 0; }
.mm__wires path { stroke: var(--c); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }
.mm__root { position: absolute; left: 0; top: 128px; width: 86px; height: 44px; display: grid; place-content: center; text-align: center; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 600; font-size: 12px; line-height: 15px; }
.mm__root small { display: block; font-weight: 400; font-size: 10.5px; opacity: .7; }
.mm__b { position: absolute; left: 116px; width: 92px; height: 28px; display: grid; place-items: center; border-radius: 9999px; background: color-mix(in oklab, var(--c) 16%, #fff); color: color-mix(in oklab, var(--c) 70%, #000); font-weight: 600; font-size: 12px; }
.mm__l { position: absolute; left: 220px; min-width: 104px; height: 24px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; background: var(--stone-100); font-size: 11.5px; color: var(--stone-700); white-space: nowrap; }
.sl { position: relative; height: 190px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(135deg, #fff 55%, #fff5f6); border: 1px solid var(--border); overflow: hidden; }
.sl small { font-family: var(--font-mono); font-size: 10px; color: var(--muted-foreground); }
.sl h5 { margin: 6px 0 12px; font-family: var(--font-serif); font-weight: 600; font-size: 18px; line-height: 24px; }
.sl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sl li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--stone-700); }
.sl li i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.sl__art { position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fda4af, #f43f5e 70%); opacity: .2; }
.sl__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.sl__thumbs span { height: 38px; border-radius: 6px; background: var(--stone-100); border: 1px solid var(--border); }
.sl__thumbs .is-on { border-color: #f43f5e; box-shadow: 0 0 0 2px rgba(244, 63, 94, .18); background: #fff; }
.is-playing .dk.is-p0 .a { animation: rise .45s ease-out both; animation-delay: calc(.3s + var(--i) * .12s); }
.is-playing .dk.is-p0 .mm__wires path { stroke-dasharray: 1; animation: mmdraw .5s ease-out both; animation-delay: calc(.35s + var(--i) * .07s); }
@keyframes mmdraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* 2c's cards (#dong-nghiep) are Kara's chat panel, one per facet: header
   (sphere, "Hỏi Kara", history / new / close), the conversation, and the
   dock — the Focus chip over the composer, as in the app. The deck here is a
   touch taller and less scaled than 2b's so a panel has room to read. */
.vis--chat .deck { height: 430px; transform: scale(1.12); }
.dk.ak { padding: 0; display: flex; flex-direction: column; }
.ak__h { flex: none; display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 16px 0 18px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.ak__h b { font-weight: 600; }
.ak__tools { margin-left: auto; display: flex; gap: 14px; color: var(--stone-400); }
.ak__body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 18px 0; overflow: hidden; }
.ak__dock { flex: none; padding: 10px 14px 14px; }
.ak__qrow { flex: none; display: flex; justify-content: flex-end; align-items: flex-end; gap: 8px; }
.ak__me { flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ak__q { max-width: 80%; padding: 8px 13px; border-radius: 16px 16px 4px 16px; background: var(--stone-100); font-size: 13px; line-height: 19px; color: var(--stone-700); }
.ak__a { flex: none; margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--stone-700); }
.ak__a + .ak__qrow { margin-top: 16px; }
.ak__src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ak__src > span { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--stone-50); font-size: 11.5px; line-height: 18px; color: var(--stone-600); }
.ak__in { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 6px 0 14px; border-radius: 14px; border: 1px solid var(--border); background: #fff; box-shadow: 0 4px 12px -8px rgba(0, 0, 0, .12); font-size: 13px; color: var(--muted-foreground); }
.ak__in i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--primary); color: #fff; }
/* Chat demo (owner, 2026-10-05, main.js [data-chat]): while the Chat card is
   in front it plays — the question is typed into the box, sent (the button
   presses, the bubble rises in), "Kara đang suy nghĩ…" with three bouncing
   dots, then the answer and its sources; twice, then it rests and loops.
   .is-chat hides what has not been "said" yet; without JS, reduced motion or
   while the card is behind, the whole conversation simply shows. */
.ak__typing { display: none; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip; color: var(--foreground); }
.ak__typing::after { content: ""; display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--foreground); animation: akcaret 1s steps(1) infinite; }
.dk.is-typing .ak__ph { display: none; }
.dk.is-typing .ak__typing { display: block; }
.ak__in i { transition: transform .15s var(--ease-out), background-color .15s var(--ease-out); }
.ak__in i.is-press { transform: scale(.86); }
.dk.is-chat .a { animation: none !important; }
.dk.is-chat .ak__qrow:not(.is-shown), .dk.is-chat .ak__a:not(.is-shown) { display: none; }
.dk.is-chat .is-shown { animation: rise .4s var(--ease-out) both !important; }
.ak__think { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; line-height: 18px; color: var(--muted-foreground); animation: rise .3s var(--ease-out) both; }
.ak__think[hidden] { display: none; }
.ak__dots { display: inline-flex; gap: 3px; }
.ak__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--stone-400); animation: akdot 1s ease-in-out infinite; }
.ak__dots i:nth-child(2) { animation-delay: .15s; }
.ak__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes akdot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
/* The "/" skill token: gradient text, no fill — the composer's own look. */
.ak__typed { display: inline-flex; align-items: center; gap: 1px; }
.ak__tok { font-weight: 600; color: #6d5bd0; background: linear-gradient(90deg, #3b82f6, #8b5cf6); background-clip: text; -webkit-text-fill-color: transparent; }
.ak__caret { width: 1.5px; height: 17px; background: var(--foreground, #1c1917); animation: akcaret 1s steps(1) infinite; }
@keyframes akcaret { 50% { opacity: 0; } }
/* The "/" menu, open above the composer. */
.ak__menu { margin-top: auto; padding: 6px; border-radius: 14px; border: 1px solid var(--border); background: #fff; box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .28); }
.ak__menu > small { display: block; padding: 4px 8px 6px; font-weight: 600; font-size: 10.5px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.ak__sk { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ak__sk li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.ak__sk li.is-on { background: var(--stone-100); }
.ak__sk li > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in oklab, var(--c) 14%, #fff); color: var(--c); }
.ak__sk b { display: block; font-weight: 600; font-size: 12.5px; line-height: 17px; }
.ak__sk small { display: block; font-size: 11px; line-height: 15px; color: var(--muted-foreground); }
.ak__pill { padding: 1px 8px; border-radius: 9999px; border: 1px solid var(--border); background: #fff; font-size: 11px; line-height: 16px; color: var(--stone-600); }
.ak__pill--own { border-color: transparent; background: color-mix(in oklab, #8b5cf6 12%, #fff); color: #6d28d9; }
.ak__sk .ak__new { display: flex; gap: 8px; margin-top: 2px; padding: 8px 10px; border-top: 1px solid var(--border); border-radius: 0; font-weight: 600; font-size: 12.5px; color: var(--stone-600); }
/* The Focus chip — what Kara reads first — and its hover hint. */
.ak__focus { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px 2px; padding: 3px 8px; border-radius: 9999px; background: var(--stone-100); font-weight: 500; font-size: 11.5px; line-height: 18px; color: var(--stone-700); }
.ak__focus .ak__fx { color: var(--stone-400); }
.ak__fk { margin-right: -2px; opacity: .7; }   /* "Đang trong ghi chú:" — quieter than the note's name */
.ak__focus--hl { background: color-mix(in oklab, #f59e0b 14%, #fff); box-shadow: 0 0 0 1.5px #f59e0b; color: #92400e; }
.ak__focus--hl .ak__fx { color: #d97706; }
.ak__tip { position: relative; flex: none; width: fit-content; max-width: 250px; margin-top: auto; margin-bottom: 6px; padding: 7px 11px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11.5px; line-height: 16px; }
.ak__tip::after { content: ""; position: absolute; left: 22px; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); }
/* Action: the edit, as a diff of the note. */
.ak__diff { margin-top: 8px; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.ak__diff small { display: block; padding: 5px 12px; background: var(--stone-50); font-weight: 600; font-size: 10.5px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.ak__diff small + span, .ak__diff span + small { border-top: 1px solid var(--border); }
.ak__del, .ak__add { display: block; padding: 5px 12px; font-size: 12px; line-height: 18px; }
.ak__del::before, .ak__add::before { display: inline-block; width: 14px; font-family: var(--font-mono); }
.ak__del { background: #fef2f2; color: #b91c1c; text-decoration: line-through; text-decoration-color: rgba(185, 28, 28, .45); }
.ak__del::before { content: "−"; }
.ak__add { background: #f0fdf4; color: #15803d; }
.ak__add::before { content: "+"; }
/* Action card: the CRM fields Kara changed — field · old (struck) · new */
.ak__crm { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 6px 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); font-size: 12px; line-height: 17px; }
.ak__crm span { font-weight: 600; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); }
.ak__crm s { color: #b4536b; text-decoration-color: rgba(180, 83, 107, .6); }
.ak__crm b { font-weight: 500; color: #15803d; }
.ak__crm b::before { content: "→ "; color: var(--stone-400); font-weight: 400; }
.ak__ok { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px 4px 8px; border-radius: 9999px; background: color-mix(in oklab, #16a34a 12%, #fff); font-weight: 500; font-size: 12px; line-height: 17px; color: #166534; }
.ak__ok svg { color: #16a34a; }
.ak__btns { display: flex; gap: 8px; margin-top: 10px; }
.ak__btns span { padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--border); font-weight: 600; font-size: 12px; line-height: 18px; color: var(--stone-700); }
.ak__btns .is-pri { border-color: var(--primary); background: var(--primary); color: #fff; }
@media (prefers-reduced-motion: reduce) { .ak__caret { animation: none; } }
/* 2e (#du-lieu): the facets and the cards wear the connectors' own logos. An
   inactive facet's logo goes grey like the stroke icons beside it; the coming
   ones in the foot stay grey. */
.feats--logo .feat__ic { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.feats--logo .feat:not(.is-on) .feat__ic { background: var(--stone-100); box-shadow: none; }
.feats--logo .feat__ic img, .outs__soon--logos .feat__ic img { transition: filter var(--t) var(--ease-out), opacity var(--t) var(--ease-out); }
.feats--logo .feat:not(.is-on) .feat__ic img { filter: grayscale(1); opacity: .5; }
.outs__soon--logos .feat__ic img { filter: grayscale(1); opacity: .55; }
/* One row: label · items · action (2b's formats and 2d's logos). The logos sit in a viewport; when they
   overflow it, main.js doubles them and they run sideways (pausing on hover),
   faded out at both edges. Reduced motion: no run, the row scrolls by hand. */
.outs__foot--row { flex-wrap: nowrap; }
.outs__soon--row { flex: 1; min-width: 0; flex-wrap: nowrap; }
.outs__soon--row .outs__soonlabel { flex: none; }
.outs__foot--row > .btn { flex: none; }
.soon__vp { flex: 1; min-width: 0; overflow: hidden; }
.soon__track { flex-wrap: nowrap; width: max-content; gap: 0 20px; }
.soon__track li { flex: none; white-space: nowrap; }
.soon__vp.is-running { mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 64px), transparent); }
.soon__vp.is-running .soon__track { animation: soonrun var(--dur, 30s) linear infinite; }
.soon__vp.is-running:hover .soon__track { animation-play-state: paused; }
@keyframes soonrun { to { transform: translateX(calc(-1 * var(--dist, 50%))); } }
@media (prefers-reduced-motion: reduce) {
  .soon__vp { overflow-x: auto; scrollbar-width: none; }
  .soon__vp.is-running .soon__track { animation: none; }
}
.dk__ic--logo { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.cn__rows { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.cn__rows li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--stone-50); }
.cn__rows b { display: block; font-weight: 600; font-size: 13px; line-height: 18px; }
.cn__rows small { display: block; margin-top: 1px; font-size: 11.5px; line-height: 16px; color: var(--muted-foreground); }
.cn__ft { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in oklab, var(--c) 12%, #fff); color: var(--c); font-family: var(--font-mono); font-weight: 600; font-size: 10px; }
.cn__rows--cal li { grid-template-columns: 40px 1fr auto; }
.cn__rows--cal time { font-size: 12px; font-weight: 600; color: var(--stone-700); }
.cn__ok { padding: 2px 8px; border-radius: 9999px; background: #fff; border: 1px solid var(--border); font-size: 11px; line-height: 16px; color: var(--stone-600); }
.cn__ok--hot { border-color: transparent; background: color-mix(in oklab, #4285f4 12%, #fff); color: #1a56c4; }
.cn__fields { margin: 0; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.cn__fields > div { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 9px 14px; font-size: 13px; line-height: 18px; }
.cn__fields > div + div { border-top: 1px solid var(--border); }
.cn__fields dt { color: var(--muted-foreground); }
.cn__fields dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--stone-700); }
.cn__fields s { color: var(--muted-foreground); }
.cn__new { padding: 0 7px; border-radius: 6px; background: #f0fdf4; color: #15803d; font-weight: 600; }
.cn__sync { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--stone-50); font-size: 12.5px; line-height: 18px; color: var(--stone-700); }
.cn__sync b { font-weight: 600; }
.cn__btns { display: flex; gap: 6px; flex: none; }
.cn__btns span { padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: 12px; line-height: 18px; color: var(--stone-700); }
.cn__btns .is-pri { border-color: var(--primary); background: var(--primary); color: #fff; }
.cn__person { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cn__person b { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 17px; line-height: 24px; }
.cn__person small { display: block; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.cn__init { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #e0f2fe; color: #0369a1; font-weight: 600; font-size: 14px; }
.cn__by { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.cn__dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #7fb4f2, var(--mint-1)); }
@media (prefers-reduced-motion: reduce) { .dk { transition: none; } }

.sol__rail { position: relative; }
.sol__stage { position: sticky; top: 0; height: 100vh; min-height: 640px; max-height: 900px; display: grid; place-items: center; padding: 96px 48px 32px; }
.sol__stage > .vis-fit { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.985); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s .6s; }
.sol__stage > .vis-fit.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.vis-fit { --fw: 600; --fh: 540; }

/* A stage card. Same system as the app replica: white surface, olive ink. */
.vis {
  --app-fg: var(--foreground); --app-muted: var(--muted-foreground); --app-border: var(--border); --app-accent: var(--stone-200); --app-primary: var(--primary);
  position: relative; overflow: hidden; padding: 24px; text-align: left;
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl);
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, .2); font-size: 14px; line-height: 20px; color: var(--foreground);
}
.vis__replay { position: absolute; z-index: 3; right: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--stone-100); font-weight: 600; font-size: 12px; color: var(--stone-600); transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.vis__replay:hover { background: var(--stone-200); color: var(--stone-700); }
.vis__replay:active { transform: scale(.96); }
.vis__hint { position: absolute; left: 24px; bottom: 20px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }

/* VIS 1 — listen */
/* Only the "with Kara" side now: the recording pill and the transcript it
   writes, centred in the stage (the toggle that sat on top is gone). */
.lis { position: absolute; inset: 24px 24px 60px; display: flex; flex-direction: column; justify-content: center; }
.lis__cap { margin-top: 16px; text-align: center; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--stone-700); }
.listen { align-self: center; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 5px; border-radius: 18px; background: var(--primary); color: #fff; font-size: 13px; }
.listen b { font-weight: 600; }
.listen .mono { opacity: .7; }
.listen__mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.listen .wave--pill { flex: none; width: 92px; }
.listen .wave--pill i { background: linear-gradient(to top, var(--mint-1), var(--mint-3)); }
.txcard { margin-top: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.txl { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--border); transition: background .15s; }
.txl:first-child { border-top: 0; }
.txl p { margin-top: 2px; color: var(--stone-700); }
.txl:hover { background: var(--stone-50); }
.txl__play { position: absolute; right: 12px; top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--primary); color: #fff; font-weight: 600; font-size: 11px; opacity: 0; transform: translateX(4px); transition: opacity .15s, transform .15s; }
.txl:hover .txl__play { opacity: 1; transform: none; }
.is-playing .lis--on .listen { animation: pop .45s .1s ease-out both; }
.is-playing .txl { animation: rise .5s ease-out both; animation-delay: calc(.5s + var(--i) * .7s); }
.is-playing .txl mark { animation: paint .55s ease-out both; animation-delay: calc(.9s + var(--i) * .7s); }
.is-playing .lis--on .lis__cap { animation: rise .5s 3.4s ease-out both; }
/* One transcript per facet: `data-mode` on .lis shows the matching
   `[data-set]` (card and caption). Set 0 is the no-JS / default screen. */
.lis [data-set] { display: none; }
.lis[data-mode="0"] [data-set="0"], .lis[data-mode="1"] [data-set="1"], .lis[data-mode="2"] [data-set="2"] { display: block; }
.lhead { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--stone-50); font-size: 12px; color: var(--stone-600); white-space: nowrap; }
.lhead .pav { width: 20px; height: 20px; font-size: 10px; }
.lhead .pav:not(:first-child) { margin-left: 8px; }
.lhead__r { margin-left: auto; font-weight: 600; color: var(--stone-700); }
/* 0 — speakers: every avatar carries a ring, and it pulses as its line lands. */
.lis[data-mode="0"] .txl .pav { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--mint-ink); }
.is-playing .lis[data-mode="0"] .txl .pav { animation: spk .9s ease-out both; animation-delay: calc(.6s + var(--i) * .7s); }
@keyframes spk { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px var(--mint-ink); } 45% { box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(143, 245, 240, .9); } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--mint-ink); } }
/* 1 — languages: a tag per line, English runs underlined in Mint ink. */
.lchip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: 11.5px; color: var(--stone-700); }
.lg { position: absolute; right: 12px; top: 10px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; border: 1px solid var(--border); background: var(--stone-50); font-family: var(--font-mono); font-size: 10.5px; color: var(--stone-600); transition: opacity .15s; }
.lg--mix { border-color: var(--mint-ink); color: var(--mint-ink); background: #effbf9; }
.txl:hover .lg { opacity: 0; }
.en { font-style: normal; text-decoration: underline dotted var(--mint-ink) 1.5px; text-underline-offset: 3px; }
.is-playing .lis[data-mode="1"] .lg { animation: pop .4s ease-out both; animation-delay: calc(.85s + var(--i) * .7s); }
/* 2 — noise: the room's sounds sit struck out in front of the words kept. */
.lhead .nzw { flex: none; width: 48px; height: 16px; }
.lhead .nzw i { background: linear-gradient(to top, var(--mint-ink), var(--mint-2)); }
.lhead .nzw--raw i { background: var(--stone-400); animation-duration: .45s; }
.lhead__to { color: var(--stone-400); }
.lhead__ok { display: inline-flex; align-items: center; gap: 5px; color: var(--mint-ink); }
.nz { display: inline-flex; align-items: center; height: 18px; margin-right: 6px; padding: 0 6px; border-radius: 5px; border: 1px dashed var(--stone-300); background: var(--stone-100); font-size: 11px; line-height: 16px; color: var(--stone-400); text-decoration: line-through; vertical-align: 1px; }
.is-playing .lis[data-mode="2"] .nz { animation: nzoff .8s ease-out both; animation-delay: calc(.95s + var(--i) * .7s); }
@keyframes nzoff { 0%, 35% { color: var(--stone-700); border-color: var(--stone-400); text-decoration-color: transparent; } 100% { color: var(--stone-400); border-color: var(--stone-300); text-decoration-color: currentColor; } }

/* VIS 2 — extract */
.ex__labels { position: absolute; top: 22px; left: 24px; right: 24px; display: grid; grid-template-columns: 316px 1fr; gap: 12px; font-size: 12.5px; line-height: 20px; color: var(--muted-foreground); }
.ex__labels b { font-weight: 600; color: #000; }
.ex__field { position: absolute; left: 24px; top: 54px; width: 316px; bottom: 60px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px 6px; padding: 12px; overflow: hidden; background: var(--stone-100); border: 1px solid var(--border); border-radius: 14px; }
.frag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 7px; background: #fff; border: 1px solid var(--border); font-size: 11.5px; color: var(--stone-600); white-space: nowrap; opacity: .32; filter: grayscale(1); transition: box-shadow .2s, border-color .2s, opacity .2s; }
.frag svg { flex: none; color: var(--stone-400); }
.frag--key { opacity: 1; filter: none; color: #000; font-weight: 600; border-color: var(--mint-ink); box-shadow: 0 0 0 3px rgba(143, 245, 240, .4); }
.frag--key svg { color: var(--mint-ink); }
.frag--key.is-hl { box-shadow: 0 0 0 4px rgba(143, 245, 240, .75), 0 6px 16px -6px rgba(63, 166, 155, .5); }
.is-playing .frag { animation: fragdim .45s ease both; animation-delay: var(--t, 1s); }
.is-playing .frag--key { animation: fragkey .5s ease both; animation-delay: var(--t, 1s); }
@keyframes fragdim { from { opacity: 1; filter: none; } to { opacity: .32; filter: grayscale(1); } }
@keyframes fragkey { 0% { border-color: var(--border); box-shadow: none; color: var(--stone-600); font-weight: 400; } 60% { box-shadow: 0 0 0 6px rgba(143, 245, 240, .6); } 100% { border-color: var(--mint-ink); box-shadow: 0 0 0 3px rgba(143, 245, 240, .4); color: #000; font-weight: 600; } }
.beam { position: absolute; z-index: 2; top: 0; bottom: 0; left: -48px; width: 48px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(143, 245, 240, .6) 60%, rgba(63, 166, 155, .9) 92%, transparent); }
.is-playing .beam { animation: beam 2.3s .4s cubic-bezier(.45, 0, .55, 1) both; }
@keyframes beam { 0% { opacity: 0; transform: none; } 8%, 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(380px); } }
.memo { position: absolute; right: 24px; top: 54px; width: 236px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .22); }
.memo__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.memo__head b { display: block; font-weight: 600; font-size: 13.5px; line-height: 18px; }
.memo__head small { display: block; font-size: 11.5px; line-height: 16px; color: var(--muted-foreground); }
.memo__head em { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: var(--mint); font-style: normal; color: var(--secondary-foreground); }
.memo__row { position: relative; padding: 10px 14px; border-top: 1px solid var(--border); cursor: default; transition: background .15s; }
.memo__head + .memo__row { border-top: 0; }
.memo__row small { display: block; font-size: 11.5px; line-height: 16px; color: var(--muted-foreground); }
.memo__row b { display: block; font-weight: 600; font-size: 14px; line-height: 20px; }
.memo__row .mono { display: block; color: var(--stone-400); }
.memo__row.is-hl { background: rgba(143, 245, 240, .16); }
.is-playing .memo__row { animation: rise .5s ease-out both; animation-delay: calc(2.85s + var(--i) * .3s); }
.ex__wires { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.ex__wires path { stroke: var(--mint-ink); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .5; transition: opacity .2s, stroke-width .2s; }
.ex__wires path.is-hl { opacity: 1; stroke-width: 2; }
.ex__wires circle { fill: var(--mint-ink); opacity: .7; }
.is-playing .ex__wires path { animation: draw .6s ease-out both; animation-delay: calc(2.85s + var(--i) * .3s); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* VIS 3 — reason */
.srcs { position: absolute; top: 16px; left: 18px; display: flex; gap: 12px; }
.srcc { width: 132px; height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; transition: box-shadow .2s, border-color .2s; }
.srcc > svg, .srcc > img { flex: none; color: var(--stone-600); }
.srcc b { display: block; font-weight: 600; font-size: 12px; line-height: 16px; white-space: nowrap; }
.srcc small { display: flex; align-items: center; gap: 5px; font-size: 10.5px; line-height: 14px; color: var(--muted-foreground); white-space: nowrap; }
.srcc small i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, .2); }
.rs__wires { position: absolute; left: 0; top: 0; overflow: visible; }
.rs__wires path { stroke: var(--stone-300); stroke-width: 1.25; transition: stroke .2s, stroke-width .2s; }
.pulse { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--mint-ink); box-shadow: 0 0 0 3px rgba(143, 245, 240, .45); offset-path: var(--p); offset-rotate: 0deg; offset-anchor: 50% 50%; opacity: 0; }
.is-playing .pulse { animation: travel 1.5s ease-in infinite; animation-delay: calc(.7s + var(--i) * .22s); }
.core { position: absolute; left: 272px; top: 100px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--primary); box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .4); }
.core__ring { position: absolute; inset: -6px; border-radius: 22px; border: 2px solid rgba(143, 245, 240, .75); opacity: 0; }
.is-playing .core__ring { animation: ring 1.8s .7s ease-out infinite; }
.insight { position: absolute; left: 40px; right: 40px; top: 170px; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, var(--mint-1), var(--mint-2) 50%, var(--mint-4)) border-box; box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .24); }
.insight__label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 10.5px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: oklch(0.53 0.1 140); }
.insight__label svg { color: var(--mint-ink); }
.insight__text { margin-top: 4px; padding-right: 60px; font-size: 14.5px; line-height: 22px; color: #000; }
.insight__why { position: absolute; right: 12px; top: 12px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--stone-100); border: 1px solid var(--border); font-weight: 600; font-size: 11.5px; color: var(--stone-700); transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.insight__why:active { transform: scale(.96); }
.insight__why:hover, .vis--reason.is-why .insight__why { background: var(--stone-200); }
.vis--reason.is-why [data-w="0"], .vis--reason.is-why [data-w="1"] { stroke: var(--mint-ink); stroke-width: 2; }
.vis--reason.is-why [data-src="0"], .vis--reason.is-why [data-src="1"] { border-color: var(--mint-ink); box-shadow: 0 0 0 3px rgba(143, 245, 240, .45); }
.nbas { position: absolute; left: 40px; right: 40px; top: 282px; }
.nbas__label { margin-bottom: 2px; font-weight: 600; font-size: 10.5px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.nbar { display: grid; grid-template-columns: 18px 1fr auto 76px; gap: 10px; align-items: center; margin-top: 8px; padding: 9px 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; transition: background .25s, border-color .25s; }
.nbar__check { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--stone-300); transition: background .25s, border-color .25s; }
.nbar__check::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1) .05s; }
.nbar__t b { display: block; font-weight: 600; font-size: 13px; line-height: 18px; transition: color .25s; }
.nbar__t small { display: block; font-size: 11.5px; line-height: 16px; color: var(--muted-foreground); }
.nbar .abtn { width: 76px; border: 1px solid transparent; transition: background .2s, color .2s; }
.nbar .abtn:hover { background: oklch(0.32 0.014 107.4); }
.nbar.is-done { background: var(--stone-50); }
.nbar.is-done .nbar__check { background: var(--primary); border-color: var(--primary); }
.nbar.is-done .nbar__check::after { transform: rotate(45deg) scale(1); }
.nbar.is-done .nbar__t b { color: var(--muted-foreground); }
.nbar.is-done .abtn { background: transparent; border-color: var(--border); color: var(--stone-600); cursor: default; }
.is-playing .srcc { animation: rise .45s ease-out both; animation-delay: calc(var(--i) * .12s); }
.is-playing .core { animation: pop .5s .55s ease-out both; }
.is-playing .insight { animation: rise .55s 1.7s ease-out both; }
.is-playing .nbar { animation: rise .45s ease-out both; animation-delay: calc(2.3s + var(--i) * .18s); }

/* ── Connectors hub ───────────────────────────────────────────────────── */
.hub { display: flex; border-bottom: 1px solid var(--stone-300); }
.hub > * { flex: 0 0 50%; min-width: 0; }
.hub__text { display: flex; flex-direction: column; justify-content: center; padding: 112px 96px 112px calc(192px - var(--inset)); border-right: 1px solid var(--stone-300); }
.hub__text .h-display { margin-bottom: 20px; font-size: 34px; line-height: 42px; }
.hub__text .h-sub { margin-bottom: 36px; }
.hub__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.hub__points li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.hub__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); color: var(--stone-700); }
.hub__points b { display: block; font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: var(--tracking-tight); }
.hub__points p { margin-top: 2px; font-size: 16px; line-height: 26px; color: var(--stone-600); }
.hub__note { margin-top: 32px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.hub__demo { display: flex; align-items: center; justify-content: center; padding: 72px 48px; }
.hub-fit { --fw: 600; --fh: 600; }
.hub__stage { position: relative; }
.hub__wires { position: absolute; left: 0; top: 0; overflow: visible; }
.hub__wires path { stroke: var(--stone-300); stroke-width: 1.25; stroke-dasharray: 3 5; transition: stroke .3s, stroke-width .3s; }
.hub__wires path.is-on { stroke: var(--mint-ink); stroke-width: 2; stroke-dasharray: none; }
.hub__dot { position: absolute; z-index: 1; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--mint-ink); box-shadow: 0 0 0 4px rgba(143, 245, 240, .5); offset-path: path("M300 50L300 200"); offset-rotate: 0deg; opacity: 0; animation: travel 1.6s ease-in-out infinite; }
.hub__dot--out { offset-path: path("M300 200L300 50"); background: #fff; border: 2px solid var(--mint-ink); animation-delay: .8s; }
.hub__core { position: absolute; z-index: 2; left: 254px; top: 154px; width: 92px; height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 26px; background: var(--primary); color: #fff; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .4); }
.hub__core b { font-weight: 600; font-size: 13px; line-height: 16px; }
.hub__ring { position: absolute; inset: -10px; border-radius: 32px; border: 2px solid rgba(143, 245, 240, .65); animation: ring 2.4s ease-out infinite; }
.hub__app { position: absolute; z-index: 2; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .25); transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t) var(--ease-out); }
.hub__app span { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: 600; font-size: 12px; line-height: 16px; color: var(--stone-600); transition: color .25s; }
.hub__app:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .3); }
.hub__app.is-on { border-color: var(--mint-ink); box-shadow: 0 0 0 4px rgba(143, 245, 240, .5), 0 14px 28px -12px rgba(0, 0, 0, .3); }
.hub__app.is-on span { color: #000; }
.hub__card { position: absolute; z-index: 2; left: 24px; right: 24px; top: 420px; padding: 14px 16px 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-2xl); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .25); }
.hub__card.is-swap > * { animation: rise .4s ease-out both; }
.hub__card.is-swap > :nth-child(2) { animation-delay: .06s; }
.hub__card.is-swap > :nth-child(3) { animation-delay: .14s; }
.hub__card.is-swap > :nth-child(4) { animation-delay: .22s; }
.hub__cardhead { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.hub__cardhead b { font-weight: 600; font-size: 14px; }
.perm { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-foreground); }
.perm i { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.perm.is-always i { background: #22c55e; }
.hq { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 20px; }
.hq__who { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px; color: var(--muted-foreground); }
.hq--k .hq__who { color: oklch(0.53 0.1 140); }
.hq--k .hq__who svg { color: var(--mint-ink); }
.hq--w { grid-template-columns: 70px 1fr; }
.hq--w em { grid-column: 2; justify-self: start; margin-top: -4px; padding: 1px 6px; border-radius: 6px; background: var(--stone-100); font-style: normal; font-family: var(--font-mono); font-size: 10.5px; line-height: 16px; color: var(--stone-600); white-space: nowrap; }

/* ── Intro video dialog ───────────────────────────────────────────────── */
.vbox { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius-2xl); background: #000; overflow: hidden; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6); }
.vbox::backdrop { background: rgba(28, 25, 23, .72); backdrop-filter: blur(6px); }
.vbox__video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.vbox__close { position: absolute; z-index: 2; right: 12px; top: 12px; }
.vbox__close button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.vbox__close button:hover { background: rgba(0, 0, 0, .8); }

/* ── Workflow rows (19:1270) ──────────────────────────────────────────── */
.rows { border-top: 1px solid var(--stone-300); }
.row { display: flex; min-height: 576px; border-bottom: 1px solid var(--stone-300); }
.row > * { flex: 0 0 50%; min-width: 0; }
.row__content { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 72px 96px 48px calc(192px - var(--inset)); border-right: 1px solid var(--stone-300); }
.row__main { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.row__icon { width: 24px; height: 24px; display: grid; place-items: center; }
.row__icon--mint { color: var(--mint-ink); } .row__icon--green { color: #16a34a; } .row__icon--blue { color: #3b82f6; }
.row__demo { position: relative; overflow: hidden; }
.gridbg { background-image: linear-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .045) 1px, transparent 1px); background-size: 96px 96px; background-position: 48px 48px; }
.dotsbg { background: url("assets/figma/flow-dots.webp") 0 0 / 40px 40px; }
.hatchbg::before { content: ""; position: absolute; left: 50%; top: 50%; width: 580px; height: 464px; transform: translate(-50%, -50%); background: repeating-linear-gradient(45deg, transparent 0 11px, var(--stone-300) 11px 12px); opacity: .7; }

.mind { position: absolute; left: 96px; top: 0; width: 593px; height: 576px; }
.mind__ring { position: absolute; left: 0; top: 141.33px; width: 302.667px; height: 245.333px; }
.mind__ring > img:first-child { width: 302.667px; height: 245.333px; }
.mind__mark { position: absolute; left: 39px; top: 129.67px; width: 34px; height: 34px; }
.mind__chip { position: absolute; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--radius-md); background: var(--stone-200); font-weight: 600; font-size: 12px; line-height: 16px; color: var(--secondary-foreground); white-space: nowrap; }
.mind__chip--hot { background: var(--background); box-shadow: inset 0 0 0 1px var(--stone-300), 0 0 0 3px rgba(143, 245, 240, .45); }
.mind__ghost { position: absolute; width: 214px; height: 36px; border-radius: var(--radius-md); border: 1px dashed var(--stone-300); background: var(--stone-100); }

.phone-rec { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 420px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .16); }
.phone-rec .rec__top { margin: 0; }
.phone-rec .line { padding: 0; border: 0; background: none; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: blink 1.4s infinite; }

.flow--row { left: 50%; top: 50%; width: 560px; height: 380px; transform: translate(-50%, -50%); }
.flow--row .node { min-width: 0; }

/* ── Use cases (19:1227) ──────────────────────────────────────────────── */
.cases { display: flex; align-items: stretch; min-height: 708px; }
.cases__nav { flex: none; display: flex; align-items: center; justify-content: center; padding: 0 var(--margin); transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out); }
.cases__nav--prev img { transform: scaleX(-1); }
.cases__nav:hover { transform: translateX(-4px); }
.cases__nav--next:hover { transform: translateX(4px); }
.cases__main { flex: 1; min-width: 0; padding: 200px 0; position: relative; }
.case { display: flex; align-items: center; gap: 24px; }
.case[hidden] { display: none; }
.case__art { width: 260px; height: 281px; flex: none; object-fit: contain; }
.case__content { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.case__quote { font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 36px; color: #000; }
.case__who { font-size: 20px; line-height: 28px; letter-spacing: var(--tracking-tight); color: var(--stone-600); }
.case__who b { font-weight: 600; }
.cases__dots { display: flex; gap: 8px; margin-top: 24px; padding-left: 284px; }
.cases__dots button { width: 8px; height: 8px; background: var(--stone-200); }
.cases__dots button[aria-selected="true"] { background: var(--primary); }
/* ── Testimonials: two columns in the card ──────────────────────────────
   Left, narrow: who said it, on 2b's gradient + dot grain. Right, wide and
   white: the quote, its one-line win, dots and arrows. The person and the
   quote switch together (main.js showCase: [data-case] + [data-case-who]). */
.cases.tst { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.6fr); min-height: 0; background: #fff; }
.tst__side { position: relative; isolation: isolate; display: grid; place-items: center; padding: 56px 28px;
  background:
    radial-gradient(70% 45% at calc(20% + var(--o1x, 0%) + var(--g1x) + var(--kx) + var(--px)) calc(10% + var(--o1y, 0%) + var(--g1y) + var(--ky) + var(--py)), rgb(var(--c1) / var(--a1)), rgb(var(--c1) / 0) 72%),
    radial-gradient(70% 40% at calc(90% + var(--o2x, 0%) + var(--g2x) - var(--ky) + var(--px) * .6) calc(30% + var(--o2y, 0%) + var(--g2y) + var(--kx) + var(--py) * .6), rgb(var(--c2) / var(--a2)), rgb(var(--c2) / 0) 72%),
    radial-gradient(90% 50% at calc(40% + var(--o3x, 0%) + var(--g3x) - var(--kx) * .8 - var(--px) * .5) calc(105% + var(--o3y, 0%) + var(--g3y) - var(--ky) * .6 - var(--py) * .5), rgb(var(--c3) / var(--a3)), rgb(var(--c3) / 0) 72%),
    var(--cb, #f3f6ef); }
.tst__side .outs__dots { border-radius: 0; }
.tst__person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tst__person[hidden] { display: none; }
.tst__av { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 14px 30px -16px rgba(0, 0, 0, .35); }
.tst__name { margin-top: 20px; font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 28px; color: #000; }
.tst__role { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--stone-600); }
.tst__co { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 12px; border-radius: 9999px; background: rgba(255, 255, 255, .75); font-weight: 600; font-size: 13px; line-height: 20px; color: var(--stone-700); }
.tst__main { display: flex; flex-direction: column; gap: 24px; padding: 64px 64px 48px; }
.tst__mark { color: var(--stone-200); }
.tst__slides { flex: 1; }
.tst__q { flex-direction: column; align-items: flex-start; gap: 20px; margin: 0; }
.tst__q .case__quote { margin: 0; font-size: 26px; line-height: 40px; text-wrap: pretty; }
.tst__win { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-md); background: color-mix(in oklab, var(--mint-1) 30%, #fff); font-weight: 600; font-size: 14px; line-height: 20px; color: #0f766e; }
.tst__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tst .cases__dots { margin: 0; padding: 0; }
.tst__navs { display: flex; gap: 8px; }
.tst .cases__nav { padding: 8px; }
.tst .cases__nav img { width: 56px; height: auto; }
/* The switch (main.js showCase). Out and in share one grid cell, so the
   section never changes height mid-swap; --dx/--rot follow the direction. */
.tst { --dx: 28px; --rot: -10deg; --tst-dur: 7s; }
.tst[data-dir="prev"] { --dx: -28px; --rot: 10deg; }
.tst { touch-action: pan-y; }
/* more air between the testimonials and their neighbours (owner, 2026-10-05):
   vertical margins collapse with the neighbours' --card-gap, so this is the gap */
.cases.tst { margin-block: 96px; }
@media (max-width: 767px) { .cases.tst { margin-block: 56px; } }   /* sideways swipes are the carousel's (main.js), vertical ones scroll the page */
.tst__person, .tst__q { grid-area: 1 / 1; }
.tst__slides { display: grid; align-items: start; }
.tst__q.is-out, .tst__person.is-out { animation: tstout .36s cubic-bezier(.4, 0, 1, 1) both; pointer-events: none; }
@keyframes tstout { to { opacity: 0; transform: translateX(calc(var(--dx) * -1)); filter: blur(6px); } }
@keyframes tstin { from { opacity: 0; transform: translateX(var(--dx)); filter: blur(4px); } }
/* The quote lands word by word, blurred to sharp. */
.tst__q .w { display: inline-block; }
.tst__q.is-in .w { animation: tstword .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(90ms + var(--i) * 16ms); }
@keyframes tstword { from { opacity: 0; transform: translate(calc(var(--dx) * .5), .4em); filter: blur(5px); } }
.tst__q.is-in .tst__win { animation: tstpop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(220ms + var(--wn, 30) * 16ms); }
@keyframes tstpop { from { opacity: 0; transform: translateY(6px) scale(.85); } }
/* The person: avatar springs in and rings out; the lines follow. */
.tst__person.is-in .tst__av { animation: tstav .7s cubic-bezier(.34, 1.56, .64, 1) both, tstring 1.1s .3s ease-out; }
@keyframes tstav { from { opacity: 0; transform: scale(.55) rotate(var(--rot)); } }
@keyframes tstring {
  from { box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 0 0 4px rgba(255, 255, 255, .9), 0 14px 30px -16px rgba(0, 0, 0, .35); }
  to { box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 0 0 30px rgba(255, 255, 255, 0), 0 14px 30px -16px rgba(0, 0, 0, .35); }
}
.tst__person.is-in .tst__name { animation: tstin .5s .14s cubic-bezier(.2, .7, .2, 1) backwards; }
.tst__person.is-in .tst__role { animation: tstin .5s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
.tst__person.is-in .tst__co { animation: tstin .5s .26s cubic-bezier(.2, .7, .2, 1) backwards; }
/* The quote mark nods at every switch. */
.tst.is-switch .tst__mark { animation: tstmark .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tstmark { 35% { transform: scale(.8) rotate(var(--rot)); color: var(--mint-2); } }
/* The active dot is the autoplay timer: it widens and fills over --tst-dur. */
.tst .cases__dots button { position: relative; overflow: hidden; transition: width .35s var(--ease-out), background-color .35s var(--ease-out); }
.tst .cases__dots button[aria-selected="true"] { width: 32px; background: var(--stone-200); }
.tst .cases__dots button[aria-selected="true"]::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform-origin: left; animation: tstprog var(--tst-dur) linear both; animation-play-state: paused; }
.tst.is-run:not(:hover):not(:focus-within) .cases__dots button[aria-selected="true"]::after { animation-play-state: running; }
@keyframes tstprog { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .tst__q.is-in *, .tst__person.is-in *, .tst__q.is-out, .tst__person.is-out, .tst.is-switch .tst__mark { animation: none !important; }
  .tst .cases__dots button[aria-selected="true"]::after { animation: none; }
}

/* ── Capabilities (49:839) ────────────────────────────────────────────── */
.caps { border-top: 1px solid var(--stone-200); }
.caps__track { display: flex; padding: 0 56px; scroll-padding-inline: 56px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.caps__track::-webkit-scrollbar { display: none; }
.cap { flex: 0 0 calc((100% - 0px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 32px; padding: 56px 40px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); margin-right: -1px; min-height: 339px; }
.cap__logo { display: inline-flex; align-items: center; gap: 10px; height: 32px; font-weight: 700; font-size: 18px; letter-spacing: var(--tracking-tight); color: var(--stone-700); }
.cap__logo em { font-style: normal; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 9999px; background: var(--mint); color: var(--secondary-foreground); letter-spacing: 0; }
.cap .h-3 { margin-bottom: -20px; }
.cap p { font-size: 16px; line-height: 28px; color: var(--stone-600); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.caps__bar { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px 0 56px; border-top: 1px solid var(--stone-300); }
.caps__label { font-size: 16px; line-height: 28px; color: var(--stone-700); }
.caps__nav { display: flex; gap: 8px; }
.caps__nav button:disabled { opacity: .3; cursor: default; }

/* ── Meeting types (#loai-hoi-thoai) — one column per type, scrolled
   sideways like .caps; reuses .caps__bar/.caps__nav for the footer. Fixed
   column width so the next column always peeks in as a scroll hint. ───── */
.mtypes__head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 96px var(--margin) 40px; }
.mtypes__head .h-display { max-width: 820px; margin: 0 auto 16px; font-size: 34px; line-height: 42px; text-wrap: balance; }
.mtypes__head .h-sub { max-width: 720px; font-weight: 400; font-size: 20px; line-height: 30px; color: var(--stone-600); }
/* The strip breaks out of the section to the full screen width; the track's
   inline padding (= --inset, the section's own offset) puts card 1 on the container's
   left edge. body has overflow-x: clip, so 100vw never adds a page scroll. */
.mtypes__strip { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.mtypes__track { --x0: var(--inset); display: flex; gap: var(--mt-gap); padding: 0 var(--x0) 72px; scroll-padding-inline: var(--x0); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.mtypes__veil { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 28vw, calc((100vw - var(--mt-aw)) / 2)); pointer-events: none; background: linear-gradient(to right, rgba(245, 245, 244, 0), var(--page) 92%); }
.mtypes__veil i { position: absolute; inset: 0; }
.mtypes__veil i:nth-child(1) { backdrop-filter: blur(1px); mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 40%, transparent 60%); }
.mtypes__veil i:nth-child(2) { backdrop-filter: blur(3px); mask-image: linear-gradient(to right, transparent 20%, #000 40%, #000 60%, transparent 80%); }
.mtypes__veil i:nth-child(3) { backdrop-filter: blur(6px); mask-image: linear-gradient(to right, transparent 40%, #000 60%, #000 80%, transparent 100%); }
.mtypes__veil i:nth-child(4) { backdrop-filter: blur(12px); mask-image: linear-gradient(to right, transparent 60%, #000 80%); }
.mtypes__track::-webkit-scrollbar { display: none; }
.mtypes__track:focus-visible { outline-offset: -4px; }
/* White cards, no stroke; main.js sets --f (0 → 1) from where the card sits
   in the viewport, so cards toward the right edge melt into the page colour.
   The card at the container's left edge is .is-active: twice as wide, full
   content, each section a filled block with its icon. Every other card keeps
   number, title and description, but its sections collapse to placeholder
   bars (--w ≈ label length) — the labels stay in the DOM for screen readers. */
/* --mt-aw = the active width; the trailing padding lets the LAST card reach
   the left edge too, so every card can be the active one. */
.mtypes { --mt-w: 304px; --mt-gap: 12px; --mt-px: 32px; --mt-aw: min(calc(var(--mt-w) * 2 + var(--mt-gap)), calc(100vw - var(--inset) * 2 - 40px)); }
.mtypes__track { position: relative; align-items: stretch; padding-right: max(var(--x0), calc(100vw - var(--x0) - var(--mt-aw))); }
/* tighter inside (owner, 2026-10-06): less air between number, title, line and items */
.mtype { flex: 0 0 var(--mt-w); scroll-snap-align: start; display: flex; flex-direction: column; padding: 32px var(--mt-px) 32px; border-radius: var(--radius-2xl); background: color-mix(in oklab, var(--page) calc(var(--f, 0) * 100%), #fff); cursor: pointer; transition: flex-basis .5s var(--ease-out); }
.mtype.is-active { flex-basis: var(--mt-aw); cursor: auto; }
.mtypes__glow, .mtypes__veil--l { display: none; }
/* Driven by sideways input (main.js adds .is-driven): its position sets each
   card's width and the track's translateX directly — no CSS transition, so
   nothing animates against anything else. The active card is centred. The
   page's vertical scroll passes straight through (no pin, owner 2026-10-05).
   A card's content keeps a fixed width (inactive or active width) and the card
   clips it, so text never re-wraps while the width grows: the full content
   is revealed rather than reflowed. */
.mtypes.is-driven .mtypes__strip { overflow: clip; }
.mtypes.is-driven .mtypes__track { overflow: visible; padding: 0 0 72px; scroll-snap-type: none; will-change: transform; touch-action: pan-y; }
.mtypes.is-driven .mtype { flex: none; overflow: hidden; transition: none; }
.mtypes.is-driven .mtype > * { flex: none; width: calc(var(--mt-w) - var(--mt-px) * 2); }
.mtypes.is-driven .mtype.is-active > * { width: calc(var(--mt-aw) - var(--mt-px) * 2); }
.mtypes.is-driven .mtypes__veil--l { display: block; left: 0; right: auto; transform: scaleX(-1); }
.mtypes.is-driven .mtypes__track { cursor: grab; }
.mtypes.is-dragging .mtypes__track { cursor: grabbing; user-select: none; -webkit-user-select: none; }
/* Swipe cue (owner, 2026-10-05; moved 2026-10-06 "đưa gợi ý vuốt sang ở bên
   trái item đầu tiên … hiện khi chưa vuốt lần nào"). The hint sits in the
   empty space LEFT of the first card — inside the track, so it slides off
   with the cards — wherever that space is wide enough (main.js measures and
   adds .is-hint-side); where it is not (phones) it sits above the strip with
   the dots. Either way it shows only until the strip is first moved
   (.is-swiped). The dots: phones and tablets only. */
.mtypes__ind { display: none; }
.mtypes__hint { display: none; }
.mtypes.is-driven .mtypes__hint { display: block; position: relative; width: 150px; height: 44px; color: var(--stone-300); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
/* The cue is a gesture, no words, no arrow (owner, 2026-10-06): a fingertip
   (40px) touches down just inside the first card's left edge and drags out
   to the left, stretching into a pill whose tail lags and fades; the tail
   catches up and it lifts off, then again. */
.mtypes__hint .mt-dot { position: absolute; z-index: 3; top: 50%; left: 110px; right: 0; height: 40px; margin-top: -20px; border-radius: 9999px; background: rgba(28, 25, 23, .07); border: 1.5px solid rgba(28, 25, 23, .11); box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .25); backdrop-filter: blur(1px); transform-origin: 20px 50%; mask-image: linear-gradient(to right, #000 28px, transparent); animation: mthead 2.8s cubic-bezier(.45, 0, .25, 1) 3 forwards, mttail 2.8s cubic-bezier(.45, 0, .25, 1) 3 forwards, mtpress 2.8s cubic-bezier(.45, 0, .25, 1) 3 forwards; }   /* three swipes, then it stays gone (owner, 2026-10-06) */
/* Head and tail are two single smooth moves (a keyframe in the middle of one
   move eases to a stop and starts again — it read as a second slide): the
   head leaves at 12%, the tail at 22%, both arrive at 58% with the cards.
   The finger travels 56px, well past the cards' 22px, so it ends just past the
   card's edge, out on the page (owner, 2026-10-06). */
@keyframes mthead { 0%, 12% { left: 110px; } 58%, 100% { left: 54px; } }
@keyframes mttail { 0%, 22% { right: 0; } 58%, 100% { right: 56px; } }
@keyframes mtpress {   /* touch down (press in), hold through the drag, lift off (swell and fade) */
  0% { opacity: 0; transform: scale(1.3); }
  12%, 58% { opacity: 1; transform: scale(.9); }
  66%, 100% { opacity: 0; transform: scale(1.3); }   /* gone before the cards spring back */
}

/* …and the cards are pulled along: they follow the drag a little, and when
   the fingertip lifts they spring back (one overshoot, no second tug) — same
   2.8s timeline as the dot. `translate`, not transform: main.js owns the
   track's transform. Only until the strip is first moved. */
.mtypes.is-driven:not(.is-swiped) .mtypes__track > .mtype { animation-name: mtnudge; animation-duration: 2.8s; animation-timing-function: cubic-bezier(.45, 0, .25, 1); animation-iteration-count: 3; }
@keyframes mtnudge {   /* one pull per gesture, then one small spring back — no second tug */
  0%, 12% { translate: 0; }
  58% { translate: -22px 0; }
  66% { translate: -22px 0; animation-timing-function: cubic-bezier(.3, 1.5, .5, 1); }   /* held until the fingertip has lifted off */
  82%, 100% { translate: 0; }
}
.mtypes.is-swiped .mtypes__hint { opacity: 0; pointer-events: none; }
/* beside the first card: its right 44px lie over the card's left edge, so the
   fingertip starts on the card; above the cards (z-index) */
.mtypes.is-driven .mtypes__track > .mtypes__hint { position: absolute; left: -106px; top: calc(50% - 58px); }
/* …and the arrow slides out from UNDER the first card while the fingertip
   rides on top of it (owner, 2026-10-06): no transform or z-index on the cue
   itself, so it makes no stacking context — the arrow (z 0) sits below the
   cards (z 1), the dot (z 3) above them. */
.mtypes.is-driven .mtypes__track > .mtype { position: relative; z-index: 1; }
/* left of the first card there is nothing to blur: the left veil steps aside while the hint is up */
.mtypes__veil--l { transition: opacity .4s var(--ease-out); }
.mtypes.is-hint-side:not(.is-swiped) .mtypes__veil--l { opacity: 0; }
@media (max-width: 1023px) {
  .mtypes.is-driven .mtypes__pin { display: flex; flex-direction: column; }
  .mtypes.is-driven .mtypes__ind { order: -1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }   /* above the strip: a card is taller than a phone screen, so a cue under it is never seen */
  .mtypes.is-swiped .mtypes__ind .mtypes__hint { transform: translateY(-4px); }
  .mtypes__dots { display: flex; align-items: center; gap: 6px; }
  .mtypes__dots button { width: 6px; height: 6px; padding: 0; border-radius: 3px; background: var(--stone-300); transition: width .3s var(--ease-out), background-color .3s var(--ease-out); }
  .mtypes__dots button[aria-selected="true"] { width: 20px; background: var(--foreground); }
}
@media (prefers-reduced-motion: reduce) { .mtypes__hint .mt-dot { animation: none; left: 110px; right: 0; } .mtypes.is-driven:not(.is-swiped) .mtypes__track > .mtype { animation: none; } }
/* Mint glow: one per card, in the track (main.js), so it travels with its card.
   Its opacity is the card's closeness to the centre — the outgoing card's glow
   slides off with it and fades, the incoming one's fades in under it. Behind
   the cards: the pinned track is a stacking context (will-change), z-index -1. */
.mtype__glow { position: absolute; bottom: 44px; height: 40%; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(100deg, var(--ga), var(--gb) 25%, var(--gc) 50%, var(--gb) 75%, var(--ga)) 0 0 / 200% 100%; filter: blur(28px); opacity: 0; pointer-events: none; z-index: -1; animation: mtglow 9s ease-in-out infinite alternate; }
/* Each card's glow has its own mix of the brand palette (owner, 2026-10-05),
   so changing slide crossfades one colour into the next as the glows trade
   places; inside a card the wash pans slowly across its mirrored gradient, so
   the colour keeps shifting while it sits. Reduced motion: still. */
.mtype__glow:nth-of-type(7n+1) { --ga: var(--mint-1); --gb: var(--mint-2); --gc: var(--mint-4); }
.mtype__glow:nth-of-type(7n+2) { --ga: #7fb4f2; --gb: var(--mint-1); --gc: #9ee8c6; }
.mtype__glow:nth-of-type(7n+3) { --ga: var(--mint-2); --gb: var(--mint-3); --gc: var(--mint-4); }
.mtype__glow:nth-of-type(7n+4) { --ga: #9ee8c6; --gb: var(--mint-1); --gc: #7fb4f2; }
.mtype__glow:nth-of-type(7n+5) { --ga: var(--mint-4); --gb: var(--mint-3); --gc: #9ee8c6; }
.mtype__glow:nth-of-type(7n+6) { --ga: #7fb4f2; --gb: #9ee8c6; --gc: var(--mint-2); }
.mtype__glow:nth-of-type(7n+7) { --ga: var(--mint-1); --gb: var(--mint-3); --gc: var(--mint-4); }
@keyframes mtglow { to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .mtype__glow { animation: none; } }
.mtype__n { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--stone-400); margin-bottom: 16px; }
.mtype .h-3 { margin-bottom: 6px; }
.mtype__d { min-height: 48px; max-width: 520px; margin-bottom: 20px; font-size: 15px; line-height: 24px; color: var(--stone-600); }
.mtype__secs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }   /* placeholder bars of the cards behind: tight, so they never set the strip height (2026-10-06) */
.mtype__secs li { display: flex; align-items: center; gap: 10px; min-height: 16px; }
.mtype__secs svg { flex: none; width: 16px; height: 16px; visibility: hidden; }
.mtype__secs li::before { content: ""; flex: none; width: 16px; height: 16px; margin-right: -26px; border-radius: 4px; background: var(--stone-200); }
.mtype__secs span { display: block; width: var(--w); height: 8px; border-radius: 4px; background: var(--stone-200); font-size: 0; color: transparent; overflow: hidden; }
.mtype.is-active .mtype__secs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mtype.is-active .mtype__secs li { min-height: 40px; padding: 6px 14px 6px 6px; border-radius: var(--radius-xl); background: var(--stone-100); animation: mt-in .35s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 30ms); }
.mtype.is-active .mtype__secs li::before { content: none; }
/* The icon sits on a light circle of its own colour, drawn in a deeper shade
   of it (same recipe as the #noi-dung facets' .feat__ic). */
.mtype.is-active .mtype__secs svg { visibility: visible; box-sizing: border-box; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: color-mix(in oklab, var(--ic, var(--mint-ink)) 16%, #fff); color: color-mix(in oklab, var(--ic, var(--mint-ink)) 78%, #000); }
/* One cheerful colour per row (fill icons), cycling every 9 rows. */
.mtype__secs li:nth-child(9n+1) { --ic: #0ea5a4; }
.mtype__secs li:nth-child(9n+2) { --ic: #8b5cf6; }
.mtype__secs li:nth-child(9n+3) { --ic: #f59e0b; }
.mtype__secs li:nth-child(9n+4) { --ic: #f43f5e; }
.mtype__secs li:nth-child(9n+5) { --ic: #0ea5e9; }
.mtype__secs li:nth-child(9n+6) { --ic: #65a30d; }
.mtype__secs li:nth-child(9n+7) { --ic: #f97316; }
.mtype__secs li:nth-child(9n+8) { --ic: #ec4899; }
.mtype__secs li:nth-child(9n+9) { --ic: #6366f1; }
.mtype.is-active .mtype__secs span { width: auto; height: auto; background: none; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--secondary-foreground); }
/* Last card — "make your own type" hook + one action under the description.
   Inactive: a dashed "+" slot instead of the button. */
.mtype__make { display: flex; flex-direction: column; flex: 1; }
.mtype__cta .btn svg { margin-right: 8px; }
/* Everything in this card sits centre-centre, in both states. */
.mtype--custom { justify-content: center; align-items: center; text-align: center; padding-block: 44px; }
.mtype--custom .mtype__d { min-height: 0; max-width: none; margin-bottom: 32px; }
.mtype--custom .mtype__make { flex: none; align-items: center; }
.mtype--custom:not(.is-active) .mtype__make { align-self: stretch; align-items: stretch; }
.mtype--custom:not(.is-active) .mtype__make > * { display: none; }
/* Not in front: no placeholder slot any more (owner, 2026-10-06) — the card
   shows only its number, title and line until it comes to the centre. */
@keyframes mt-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .mtype { transition: none; } .mtype.is-active .mtype__secs li { animation: none; } }

/* ── Pricing (built in the same system) ───────────────────────────────── */
.pricing { padding: 96px 0 0; border-top: 1px solid var(--stone-300); margin-top: 96px; }
.pricing__head { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 0 var(--margin); margin-bottom: 56px; }
.pricing__toggle { padding: 0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 56px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 56px 40px; border-left: 1px solid var(--border); position: relative; }
.plan:last-child { border-right: 1px solid var(--border); }
.plan--hot { background: var(--background); }
.plan__badge { position: absolute; top: 20px; left: 40px; font-weight: 600; font-size: 12px; line-height: 16px; padding: 3px 8px; border-radius: 9999px; background: var(--mint); color: var(--secondary-foreground); }
.plan__desc { font-size: 16px; line-height: 24px; color: var(--stone-600); min-height: 48px; }
.plan__price { display: flex; flex-direction: column; gap: 2px; min-height: 72px; }
.plan__price strong { font-weight: 700; font-size: 40px; line-height: 48px; letter-spacing: -1px; color: #000; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 14px; color: var(--muted-foreground); }
.plan__sub { font-size: 14px; line-height: 20px; color: var(--muted-foreground); min-height: 20px; margin-top: -12px; }
.plan .btn { width: 100%; }
.plan ul { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 14px; line-height: 20px; color: var(--stone-700); }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 16px; height: 16px; margin-top: 2px; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2357534e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E"); }
.pricing__note { max-width: 760px; margin: 24px auto 0; padding: 0 24px; text-align: center; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
/* ── Pricing banner (#bang-gia) ─────────────────────────────────────────
   A centred invitation on a NEUTRAL card (owner, 2026-10-05): the colour and
   the motion live in the five charts, not in the block. The plans themselves
   are in the pricing dialog below. */
.pricing.pbanner { position: relative; isolation: isolate; padding: 0; margin-top: var(--card-gap); border: 0; } /* no stroke: a faint dot grid (main.js dotGrain) marks the area */
.pbanner__in { display: flex; flex-direction: column; gap: 40px; padding: 120px 40px; }   /* more air above and below (owner, 2026-10-05; was 80px) */
/* Title left, the action right, on one row. */
.pbanner__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.pbanner .h-display { max-width: 640px; text-align: left; text-wrap: balance; }
.pbanner__cta { flex: none; min-width: 200px; }
.pbanner .outs__dots { border-radius: 0; }
/* The five figures, one chart each. One brand hue per tile (--hue, >= 3:1 on
   white) for the marks; the unfilled track is a lighter step of the same hue
   (--tint); "before" marks are neutral; value and label stay ink. The chart
   area is 88px tall so the five numbers line up. */
.pstats { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; text-align: left; }
.pstat { --tint: color-mix(in oklab, var(--hue) 16%, #fff); --d: calc(var(--t, 0) * 380ms); display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; border-radius: 20px; background: #fff; box-shadow: 0 12px 28px -22px rgba(28, 25, 23, .3); }
.pchart { position: relative; height: 88px; margin-bottom: 12px; }
.pstat__n { font-weight: 600; font-size: clamp(32px, 3.4vw, 40px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; color: #1c1917; }
.pstat__l { font-weight: 500; font-size: 15px; line-height: 21px; letter-spacing: -.01em; color: var(--stone-600); }
/* -50%: before vs with Kara, horizontal bars. */
.pc-bars { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.pc-row { display: grid; gap: 4px; font-size: 11.5px; line-height: 14px; color: var(--muted-foreground); }
.pc-row b { display: block; height: 12px; border-radius: 4px; background: var(--stone-100); overflow: hidden; }
.pc-row i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 4px; background: var(--stone-300); transform-origin: left; }
.pc-row.is-hl { color: #1c1917; font-weight: 600; }
.pc-row.is-hl b { background: var(--tint); }
.pc-row.is-hl i { background: var(--hue); }
/* >90%: 90 of 100 cells. */
.pc-waffle { display: grid; grid-template-columns: repeat(10, 6.4px); grid-auto-rows: 6.4px; gap: 2.2px; align-content: center; }
.pc-waffle i { border-radius: 1.5px; background: var(--tint); }
.pc-waffle i.on { background: var(--hue); }
/* +15%: 100 -> 115, two columns on a shared baseline. */
.pc-cols { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 18px; }
.pc-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 40px; height: 100%; }
.pc-col b { display: block; height: calc(var(--v) * 100%); border-radius: 4px 4px 0 0; background: var(--stone-300); transform-origin: bottom; }
.pc-col.is-hl b { background: var(--hue); }
.pc-col span { position: absolute; left: 0; bottom: -18px; font-size: 11.5px; line-height: 14px; white-space: nowrap; color: var(--muted-foreground); }
.pc-col.is-hl span { color: #1c1917; font-weight: 600; }
.pc-cols::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; background: var(--stone-200); }
/* +10: ten steps up. */
.pc-steps { display: flex; align-items: flex-end; gap: 4px; }
.pc-steps i { flex: 1; max-width: 10px; height: var(--h); border-radius: 3px 3px 0 0; background: var(--hue); transform-origin: bottom; opacity: calc(.45 + var(--i) * .06); }
/* >95%: a ring meter. */
.pc-ring { width: 88px; }
.pc-ring svg:first-child { transform: rotate(-90deg); }
.pc-ring circle { fill: none; stroke-width: 9; }
.pc-ring__track { stroke: var(--tint); }
.pc-ring__arc { stroke: var(--hue); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 5; }
.pc-ring__ic { position: absolute; left: 33px; top: 33px; color: var(--hue); }
/* Play-in: main.js arms the row (empty), then adds .is-in on screen, which is
   the markup's own final state; without JS or with reduced motion the charts
   simply show their data. */
.pstats.is-armed .pstat { opacity: 0; transform: translateY(16px); }
.pstats.is-armed .pc-row i { transform: scaleX(0); }
.pstats.is-armed .pc-steps i, .pstats.is-armed .pc-col b { transform: scaleY(0); }
.pstats.is-armed .pc-waffle i.on { background: var(--tint); }
.pstats.is-armed .pc-ring__arc { stroke-dashoffset: 100; }
.pstats.is-armed .pc-ring__ic { opacity: 0; transform: scale(.6); }
.pstats.is-in .pstat { opacity: 1; transform: none; transition: opacity .5s ease var(--d), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d); }
.pstats.is-in .pc-row i { transform: none; transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d) + .15s); }
.pstats.is-in .pc-row.is-hl i { animation: pcshrink 1.4s cubic-bezier(.2, .7, .2, 1) calc(var(--d) + .3s) both; transition: none; }
@keyframes pcshrink { 0% { transform: scaleX(0); } 45% { transform: scaleX(2); } 100% { transform: none; } } /* fills to the "before" length, then drops to half */
.pstats.is-in .pc-waffle i.on { background: var(--hue); transition: background-color .25s ease; transition-delay: calc(var(--d) + .15s + var(--i) * 9ms); }
.pstats.is-in .pc-col b { transform: none; transition: transform .8s cubic-bezier(.34, 1.4, .64, 1) calc(var(--d) + .15s); }
.pstats.is-in .pc-col.is-hl b { transition-delay: calc(var(--d) + .35s); }
.pstats.is-in .pc-steps i { transform: none; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--d) + .15s + var(--i) * 70ms); }
.pstats.is-in .pc-ring__arc { stroke-dashoffset: 5; transition: stroke-dashoffset 1.3s cubic-bezier(.2, .7, .2, 1) calc(var(--d) + .15s); }
.pstats.is-in .pc-ring__ic { opacity: 1; transform: none; transition: opacity .3s calc(var(--d) + 1.25s), transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d) + 1.25s); }
@media (max-width: 1023px) { .pstats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .pbanner__in { padding: 80px 0 72px; gap: 24px; }
  .pbanner__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-inline: 24px; }
  .pbanner .h-display { font-size: 28px; line-height: 36px; }
  /* Phones: one swipeable row, so five figures cost one card of height. */
  .pstats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; padding: 4px 24px 8px; scrollbar-width: none; }
  .pstats::-webkit-scrollbar { display: none; }
  .pstat { flex: 0 0 62%; scroll-snap-align: start; }
}
/* ── Pricing dialog (#pricing) — PlanSection.tsx > PricingDialog ─────── */
.pricebox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--background); color: #000; }
.pricebox[open] { display: flex; flex-direction: column; animation: pbin .3s var(--ease-out) both; }
.pricebox::backdrop { background: rgba(28, 25, 23, .4); }
@keyframes pbin { from { opacity: 0; transform: translateY(16px); } }
html:has(.pricebox[open]) { overflow: hidden; }
.pricebox__bar { flex: none; display: flex; justify-content: flex-end; align-items: center; height: 48px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.pricebox__x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-md); color: var(--stone-600); transition: background var(--t-fast) var(--ease-out); }
.pricebox__x:hover { background: var(--stone-100); color: #000; }
.pricebox__body { --pb-pad: 32px; flex: 1; min-height: 0; overflow-y: auto; padding: var(--pb-pad); }
.pricebox__in { width: 100%; max-width: 1152px; margin: 0 auto; }
.pricebox__title { font-family: var(--font-serif); font-weight: 500; font-size: 30px; line-height: 36px; letter-spacing: -.01em; }
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.pcard { display: flex; flex-direction: column; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(28, 25, 23, .05); }
.pcard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__name { font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 28px; }
.pcycle { display: inline-flex; padding: 2px; border-radius: 9999px; background: var(--stone-100); font-size: 12px; line-height: 16px; }
.pcycle button { padding: 4px 8px; border-radius: 9999px; font-weight: 500; color: var(--muted-foreground); transition: color var(--t-fast), background var(--t-fast); }
.pcycle button:hover { color: #000; }
.pcycle button[aria-pressed="true"] { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pcycle i { margin-left: 4px; padding: 1px 4px; border-radius: 9999px; background: var(--primary); color: #fff; font-style: normal; font-weight: 600; font-size: 10px; }
.pcard__tag { min-height: 32px; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.pcard__price { margin-top: 8px; }
.pcard__year { height: 16px; font-size: 11px; line-height: 16px; color: var(--muted-foreground); }
.pcard__price strong { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 32px; font-variant-numeric: tabular-nums; }
.pcard__price span { font-size: 12px; color: var(--muted-foreground); }
.pcard .btn { width: 100%; height: 36px; margin-top: 16px; font-size: 14px; }
.pcard ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pcard li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 16px; }
.pcard li svg, .ptable svg { flex: none; color: var(--primary); }
.pcard li svg { margin-top: 1px; }
.pricebox__h2 { margin-top: 40px; font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 28px; }
.ptable__wrap { margin-top: 12px; }
.ptable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.ptable thead th { position: sticky; top: calc(var(--pb-pad) * -1); z-index: 1; padding: 8px 12px; background: var(--background); box-shadow: inset 0 -1px 0 var(--border); font-weight: 500; text-align: center; }
.ptable thead th:first-child { padding-left: 0; text-align: left; color: var(--muted-foreground); }
.ptable .pt-group th { padding: 28px 0 8px; border-bottom: 1px solid var(--border); text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); }
.ptable tbody:first-of-type .pt-group th { padding-top: 12px; }
.ptable td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; font-variant-numeric: tabular-nums; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable td:first-child { padding-left: 0; text-align: left; color: var(--muted-foreground); }
.ptable td svg { display: block; margin: 0 auto; }
.ptable .pt-no { color: rgba(120, 113, 108, .4); }
@media (max-width: 1023px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .pricebox__body { --pb-pad: 20px; }
  .pcards { grid-template-columns: minmax(0, 1fr); }
  .ptable__wrap { overflow-x: auto; } /* sticky header is inert here, as in the app */
}
@media (prefers-reduced-motion: reduce) { .pricebox[open] { animation: none; } }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { margin-top: 0; }
/* Every section under the pause band takes the hero's inset, so their rules
   and fills stop where the two cards above stop. */
.sol__body, .mtypes, .outs, .hub, .rows, .cases, .caps, .pricing, .faq { margin-inline: var(--inset); }
/* …and each is a card of its own: the hero's squircle radius on all four
   corners, a --card-gap between neighbours that used to touch, and — where
   the section already drew a rule — that rule closed into a full outline.
   overflow: clip (not hidden) rounds the fills off without making a scroll
   container, so .sol__stage stays sticky. Rules that used to sit on the
   section's edge are dropped so the outline is never doubled. */
.sol__body, .outs, .hub, .rows, .cases, .caps, .pricing, .faq { border-radius: var(--card-r); corner-shape: squircle; overflow: clip; }
.mtypes, .outs, .hub, .rows, .cases, .caps, .faq { margin-top: var(--card-gap); }
.sol__body, .hub, .rows, .caps, .pricing { border: 1px solid var(--stone-300); }
.rows .row:last-child { border-bottom: 0; }
.pricing { padding-bottom: 48px; }
/* Advisors (owner, 2026-10-05): no band and no box — rendered portraits
   standing back to back on a ring, the card overlapping them from the waist
   down. */
.experts { --xps-w: min(100vw, 1280px); margin-top: 120px; overflow-x: clip; }
.experts[hidden], .rail__item[hidden] { display: none; }   /* advisors temporarily off (owner, 2026-10-05) */
.experts__head { max-width: 720px; margin: 0 auto 40px; padding: 0 24px; text-align: center; }
.experts__head .h-display { font-size: 34px; line-height: 42px; text-wrap: balance; }
/* The ring of advisors as living particle portraits on the light page
   (owner, 2026-10-05): main.js samples the rendered frames onto a dot grid
   and animates the dots, beam, interference and turn scatter, plus the dot
   floor behind (.xps__fx); a soft Mint halo and a flicker sit here. The
   card overlaps the figures' foot. */
.xps { position: relative; width: var(--xps-w); aspect-ratio: 2 / 1; margin: 0 auto; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.xps.is-dragging { cursor: grabbing; }
/* behind the figures: the undulating dot floor and rising motes (main.js) */
.xps__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.xps__poster, .xps__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; filter: drop-shadow(0 0 10px rgb(143 245 240 / .55)); }
.xps__canvas { animation: holo-flicker 7s steps(1) infinite; }
@keyframes holo-flicker { 0%, 100% { opacity: 1; } 31% { opacity: .93; } 32% { opacity: 1; } 64% { opacity: .96; } 65% { opacity: .9; } 66% { opacity: 1; } }
.xps.is-ready .xps__poster { visibility: hidden; }
.xps:focus-visible { box-shadow: inset 0 0 0 2px var(--mint-1); }
/* prev/next sit inside the card (owner, 2026-10-05), level with the name:
   top = card padding 32 + role 20 + gap 6 + half the 44px name − half the arrow */
.xps__nav { position: absolute; z-index: 2; top: 60px; left: 24px; right: 24px; display: flex; justify-content: space-between; pointer-events: none; }
.xps__arrow { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--stone-300); color: var(--stone-700); background: #fff; pointer-events: auto; transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.xps__arrow:hover { background: #000; color: #fff; box-shadow: none; }
/* The advisor's card (owner, 2026-10-05): a white block with a living
   Mint glow rising from its foot (.xps__glow — the gdrift fill of
   .outs__demo, its glows sat low and faded upward by a mask), stirred on
   each advisor switch (main.js stirFill). Every .xpi shares one grid cell
   and the hidden ones keep their space, so the card holds its height
   from one advisor to the next. */
.xps__info { position: relative; z-index: 1; isolation: isolate; overflow: hidden; display: grid; width: calc(100% - 48px); max-width: 960px; margin: calc(var(--xps-w, 100vw) * -.075) auto 0; padding: 32px 96px 44px; border-radius: 40px; corner-shape: squircle; background: #fff; text-align: center; }
.xps__info > .xpi { grid-area: 1 / 1; }
.xps__glow { --c1: 143 245 240; --a1: .75; --c2: 194 250 154; --a2: .8; --c3: 248 233 144; --a3: .9; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 70% at calc(18% + var(--g1x) + var(--kx)) calc(108% + var(--g1y) + var(--ky)), rgb(var(--c1) / var(--a1)), rgb(var(--c1) / 0) 72%),
    radial-gradient(45% 70% at calc(82% + var(--g2x) - var(--ky)) calc(104% + var(--g2y) + var(--kx)), rgb(var(--c2) / var(--a2)), rgb(var(--c2) / 0) 72%),
    radial-gradient(55% 60% at calc(50% + var(--g3x) - var(--kx) * .8) calc(118% + var(--g3y) - var(--ky) * .6), rgb(var(--c3) / var(--a3)), rgb(var(--c3) / 0) 72%);
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 75%); mask-image: linear-gradient(to top, #000 15%, transparent 75%);
  animation: gdrift 14s ease-in-out infinite alternate; transition: --kx 1.6s cubic-bezier(.2, .7, .2, 1), --ky 1.6s cubic-bezier(.2, .7, .2, 1); }
.xpi { animation: xpi-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.xpi[hidden] { display: block; visibility: hidden; animation: none; }
.xpi__role { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mint-ink); }
.xpi__name { margin-top: 6px; font-family: var(--font-serif); font-weight: 500; font-size: 36px; line-height: 44px; letter-spacing: var(--tracking-tight); color: #000; }
/* a short intro paragraph under the name (owner, 2026-10-05) — the same
   sourced facts as before, written as one sentence instead of a list */
.xpi__bio { max-width: 720px; margin: 12px auto 0; font-size: 16px; line-height: 26px; color: var(--stone-600); text-wrap: pretty; }
@keyframes xpi-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .xpi, .xps__glow, .xps__canvas { animation: none; }
  .xps__glow { transition: none; }
}
@media (max-width: 767px) {
  .experts { --xps-w: 100vw; margin-top: 72px; }
  .experts__head .h-display { font-size: 28px; line-height: 36px; }
  /* phone: the front figure fills the width, the side ones are cut at the edges */
  .xps { aspect-ratio: 5 / 4; overflow: hidden; }
  .xps__poster, .xps__canvas { left: -30%; width: 160%; height: auto; aspect-ratio: 2 / 1; top: auto; bottom: 0; }
  .xps__info { width: calc(100% - 32px); margin-top: -18vw; padding: 24px 20px 28px; border-radius: 28px; }
  /* no room beside the name on a phone: the arrows sit centred under the facts */
  .xps__nav { position: static; justify-content: center; gap: 16px; margin-top: 16px; }
  .xpi__name { font-size: 28px; line-height: 36px; }
  .xpi__bio { margin-top: 12px; font-size: 15px; line-height: 24px; }
}
/* FAQ in the 2b–2d language (owner, 2026-10-05): no outline, a narrow lead
   column on the left and a wider column of questions on the right; each
   question a stone-200 hairline box that turns white when open. Rebuilt the
   same day (owner: "dựng lại … chất lượng cao hơn"): the lead — kicker,
   title, and the consult card right under it (no lead line, owner) —
   is sticky beside the list, so no dead band opens between title and card;
   each question is numbered and carries a round +/−; the answer slides open
   (::details-content where the browser has it, instant elsewhere). */
.faq { --faq-l: 48px; --faq-r: 48px; }
.faq__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 72px; align-items: start; padding: 80px var(--faq-r) 56px var(--faq-l); }
.faq__lead { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 40px; }
.faq__intro { display: flex; flex-direction: column; gap: 16px; }
.faq__kicker { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-ink); }
.faq__title { text-wrap: balance; }
/* consult card: white, a Mint glow rising from its foot (the advisors card's) */
.faq__ask { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; gap: 6px; max-width: 420px; padding: 24px 24px 28px; background: #fff; border-radius: 24px; corner-shape: squircle; box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 16px 40px -24px rgba(28, 25, 23, .18); }
.faq__ask::after { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -70%; height: 100%; background: var(--mint-soft); border-radius: 50%; filter: blur(30px); pointer-events: none; }
.faq__ask-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: var(--stone-100); color: var(--foreground); }
.faq__ask-t { font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: var(--tracking-tight); color: #000; }
.faq__ask-d { font-size: 15px; line-height: 22px; color: var(--stone-600); }
.faq__ask-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.faq__docs { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--foreground); }
.faq__docs svg { transition: transform var(--t-fast) var(--ease-out); }
.faq__docs:hover svg { transform: translate(2px, -2px); }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.qa { border: 1px solid var(--stone-200); border-radius: var(--radius-2xl); interpolate-size: allow-keywords; transition: background-color var(--t) var(--ease-out), border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out); }
.qa:hover { border-color: var(--stone-300); }
.qa[open] { background: #fff; border-color: #fff; box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 14px 32px -20px rgba(28, 25, 23, .16); }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size .38s var(--ease-out), content-visibility .38s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 28px minmax(0, 1fr) 32px; gap: 16px; align-items: center; padding: 18px 18px 18px 24px; border-radius: inherit; font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: var(--tracking-tight); color: var(--stone-700); transition: color var(--t-fast) var(--ease-out); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover, .qa[open] summary { color: #000; }
.qa summary:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 2px; }
.qa__n { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--stone-400); transition: color var(--t-fast) var(--ease-out); }
.qa[open] .qa__n { color: var(--mint-ink); }
/* +/−: two strokes in a round chip; the vertical one folds flat on open */
.qa__ic { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--stone-100); color: var(--foreground); transition: background-color var(--t) var(--ease-out), color var(--t) var(--ease-out); }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 10px; top: 15.25px; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform var(--t) var(--ease-out); }
.qa__ic::after { transform: rotate(90deg); }
.qa summary:hover .qa__ic { background: var(--stone-200); }
.qa[open] .qa__ic, .qa[open] summary:hover .qa__ic { background: var(--primary); color: #fff; }
.qa[open] .qa__ic::after { transform: rotate(0deg); }
.qa__a { padding: 0 66px 24px 68px; }     /* the answer starts on the question's own left line */
.qa__a p { max-width: 62ch; font-size: 16px; line-height: 26px; color: var(--stone-600); text-wrap: pretty; }
.qa p a, .qa__lead { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--stone-400); text-underline-offset: 3px; }
.qa p a:hover, .qa__lead:hover { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .qa::details-content { transition: none; } }

/* ── Footer (49:1011) ─────────────────────────────────────────────────── */
/* The page's last sheet (owner, 2026-10-05): a dark stone fill with no
   hairlines anywhere, the cards' radius on its two top corners, clear air
   above it; the Figma link-menu block stays dropped (owner). Rebuilt the
   same day ("chất lượng cao hơn"): Figma's closing call is back as the
   sheet's head — serif title and one line on the left, the two CTAs on the
   right, a faint Mint glow bleeding in from the top edge — then one
   four-column grid of info cells, then the bottom bar, the only faint white
   lift on the sheet. */
.footer { position: relative; isolation: isolate; overflow: clip; margin-top: 120px; display: flex; flex-direction: column; padding: 96px 88px 24px; background: #1c1917; color: var(--stone-100); border-radius: var(--card-r) var(--card-r) 0 0; corner-shape: squircle; }
.footer::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -300px; width: min(1100px, 110%); height: 440px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 245, 240, .55), rgba(194, 250, 154, .25) 60%, transparent); opacity: .22; filter: blur(60px); pointer-events: none; }
.footer__cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-bottom: 80px; }
.footer__title { font-family: var(--font-serif); font-weight: 500; font-size: 48px; line-height: 58px; letter-spacing: -0.8px; color: #fff; text-wrap: balance; }
.footer__sub { max-width: 520px; margin-top: 16px; font-size: 16px; line-height: 24px; color: var(--stone-400); text-wrap: pretty; }
.footer__cta-act { flex: none; display: flex; gap: 12px; }
.footer__cta-act .btn { height: 44px; padding: 0 20px; border-radius: var(--radius-lg); font-size: 15px; }
.btn--mint { position: relative; isolation: isolate; background: var(--fill-cta) 0 0 / 200% 100%; color: var(--secondary-foreground); }
.btn--mint:hover, .btn--mint:focus-visible { box-shadow: 0 10px 28px -12px rgba(143, 245, 240, .65); transform: translateY(-1px); }
.btn--on-dark { background: rgba(255, 255, 255, .08); color: #fff; }
.btn--on-dark:hover, .btn--on-dark:focus-visible { background: rgba(255, 255, 255, .14); }
.footer__info { display: grid; grid-template-columns: 1.25fr 1fr 1fr .8fr; gap: 48px; padding-bottom: 64px; }
/* layout b (default): brand on a wide first column, then resources and the
   store badges; layout a (?footer=a) keeps the enterprise and data cells */
.footer[data-variant="a"] [data-only]:not([data-only~="a"]),
.footer[data-variant="b"] [data-only]:not([data-only~="b"]),
.footer[data-variant="c"] [data-only]:not([data-only~="c"]),
.footer[data-variant="d"] [data-only]:not([data-only~="d"]) { display: none; }
.footer[data-variant="b"] .footer__info { grid-template-columns: 1fr auto auto; column-gap: 80px; }
.footer[data-variant="b"] .footer__bottom { grid-template-columns: 1fr auto; }
.footer__apps--col { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 4px; }
/* layout c (default): the call centred; a strip (links | badges + social)
   and a meta line; then the wordmark across the whole sheet — the logo as a
   mask over the Mint, intersected with a 4px dot grid (the page's grain),
   brightest at the top and fading as the bottom edge cuts it off. */
.footer[data-variant="c"] { padding-bottom: 0; }
.footer[data-variant="c"] .footer__cta { flex-direction: column; align-items: center; text-align: center; gap: 32px; padding-bottom: 88px; }
.footer[data-variant="c"] .footer__title { font-size: 56px; line-height: 66px; }
.footer[data-variant="c"] .footer__sub { margin-inline: auto; }
.footer__strip { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: 20px 24px; background: rgba(255, 255, 255, .05); border-radius: var(--radius-2xl); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { font-size: 14px; line-height: 22px; color: var(--stone-300); transition: color var(--t-fast) var(--ease-out); }
.footer__links a:hover { color: #fff; }
.footer__get { display: flex; align-items: center; gap: 24px; }
.footer__get .footer__social { justify-self: auto; }
.footer__meta { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 20px 24px 0; font-size: 13px; line-height: 20px; color: var(--stone-400); }
.footer__mark { --dot: 5px; width: 100%; aspect-ratio: 657 / 181; margin: 48px 0 calc(-0.2 * (100vw - 176px) * 181 / 657); background: linear-gradient(100deg, var(--mint-1), var(--mint-2) 40%, var(--mint-3) 70%, var(--mint-4)); opacity: .9;
  -webkit-mask: url("assets/logo-kara-full.svg") center / 100% 100% no-repeat, radial-gradient(circle at center, #000 1.1px, transparent 1.6px) 0 0 / var(--dot) var(--dot), linear-gradient(#000 20%, rgba(0, 0, 0, .25));
  mask: url("assets/logo-kara-full.svg") center / 100% 100% no-repeat, radial-gradient(circle at center, #000 1.1px, transparent 1.6px) 0 0 / var(--dot) var(--dot), linear-gradient(#000 20%, rgba(0, 0, 0, .25));
  -webkit-mask-composite: source-in, source-in; mask-composite: intersect; }
/* layout d (default): light, on the page colour like the Figma footer. The
   call sits in a living gradient block — the blocks' fill formula and drift
   (gdrift), its own mix (cyan crown, lime middle, butter foot), and their
   pointer dot grain (main.js) — then brand · resources · apps and a meta
   line straight on the page. */
.footer[data-variant="d"] { margin-top: var(--card-gap); margin-inline: var(--inset); padding: 0 0 24px; background: none; color: var(--foreground); border-radius: 0; overflow: visible; }
.footer[data-variant="d"]::before { content: none; }
.footer__hero { --c1: 143 245 240; --a1: .8; --c2: 194 250 154; --a2: .75; --c3: 248 233 144; --a3: .9; --cb: #f3f6ef; --o1x: 4%; --o2x: -10%; --o3y: -10%;
  position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 112px 48px 104px; text-align: center; border-radius: var(--card-r); corner-shape: squircle;
  background:
    radial-gradient(60% 55% at calc(18% + var(--o1x, 0%) + var(--g1x) + var(--kx) + var(--px)) calc(12% + var(--o1y, 0%) + var(--g1y) + var(--ky) + var(--py)), rgb(var(--c1) / var(--a1)), rgb(var(--c1) / 0) 72%),
    radial-gradient(55% 50% at calc(88% + var(--o2x, 0%) + var(--g2x) - var(--ky) + var(--px) * .6) calc(18% + var(--o2y, 0%) + var(--g2y) + var(--kx) + var(--py) * .6), rgb(var(--c2) / var(--a2)), rgb(var(--c2) / 0) 72%),
    radial-gradient(75% 60% at calc(45% + var(--o3x, 0%) + var(--g3x) - var(--kx) * .8 - var(--px) * .5) calc(105% + var(--o3y, 0%) + var(--g3y) - var(--ky) * .6 - var(--py) * .5), rgb(var(--c3) / var(--a3)), rgb(var(--c3) / 0) 72%),
    var(--cb); }
.footer__kicker { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-700); }
.footer__hero .footer__title { color: #000; font-size: 56px; line-height: 66px; max-width: 760px; }
.footer__hero .footer__sub { margin: 0 auto; color: var(--stone-600); }
.footer__hero .btn-group { margin-top: 16px; }
.footer__hero .btn { height: 44px; padding: 0 20px; border-radius: var(--radius-lg); font-size: 15px; }
.footer__hero .btn--secondary { border-color: transparent; background: rgba(255, 255, 255, .72); }   /* no stroke on the gradient; 72% white at rest, solid on hover (owner, 2026-10-05) */
.footer__hero .btn--secondary:hover, .footer__hero .btn--secondary:focus-visible { background: #fff; }
@media (max-width: 767px), (hover: none) { .footer__hero .btn--secondary { background: #fff; } }   /* phones / touch: always solid */
.footer__base { display: grid; grid-template-columns: 1fr auto auto; column-gap: 96px; row-gap: 32px; padding: 64px 40px 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer[data-variant="d"] .footer__logo { filter: none; }
.footer__brand p { font-size: 15px; line-height: 22px; color: var(--stone-600); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col h3 { margin-bottom: 4px; font-weight: 600; font-size: 15px; line-height: 24px; letter-spacing: var(--tracking-tight); color: #000; }
.footer__col > a:not(.footer__badge) { font-size: 14px; line-height: 22px; color: var(--stone-600); transition: color var(--t-fast) var(--ease-out); }
.footer__col > a:not(.footer__badge):hover { color: #000; }
.footer__badges { display: flex; flex-direction: column; gap: 10px; }
.footer__badge { transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
/* store badges round like the hero's (owner, 2026-10-06): the art is full-bleed black, so clipping widens its corners — 9px at 34px tall ≈ the hero's 11px at 40px */
.footer__badge, .footer__apps a { display: block; border-radius: 9px; overflow: hidden; }
.footer__badge img, .footer__apps a img { display: block; }
.footer__badge:hover { opacity: .8; transform: translateY(-1px); }
.footer__end { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 20px 40px; font-size: 13px; line-height: 20px; color: var(--muted-foreground); background: rgba(255, 255, 255, .6); border-radius: var(--radius-2xl); }
.footer[data-variant="d"] .footer__social a { color: var(--stone-600); }
.footer[data-variant="d"] .footer__social a:hover { color: #000; background: var(--stone-200); }
.footer__cell { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__cell h3 { font-weight: 600; font-size: 15px; line-height: 24px; letter-spacing: var(--tracking-tight); color: #fff; }
.footer__cell p { font-size: 14px; line-height: 22px; color: var(--stone-400); text-wrap: pretty; }
.footer__cell--brand { gap: 16px; }
.footer__cell--brand p:first-of-type { color: var(--stone-200); }
.footer__logo { height: 32px; width: auto; align-self: flex-start; margin-bottom: 4px; filter: brightness(0) invert(1); }
.footer__more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; font-weight: 600; font-size: 14px; line-height: 20px; color: #fff; transition: color var(--t-fast) var(--ease-out); }
.footer__more svg { flex: none; color: var(--mint-1); }
.footer__more:hover { color: var(--mint-2); }
.footer__menu { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__menu a { font-size: 14px; line-height: 22px; color: var(--stone-400); transition: color var(--t-fast) var(--ease-out); }
.footer__menu a:hover { color: #fff; }
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 20px 24px; background: rgba(255, 255, 255, .05); border-radius: var(--radius-2xl); }
.footer__apps { display: flex; gap: 12px; }
.footer__apps a { transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.footer__apps a:hover { opacity: .8; transform: translateY(-1px); }
.footer__copy { font-size: 13px; line-height: 20px; color: var(--stone-400); }
.footer__end-r { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.footer__bct { display: block; flex: none; transition: opacity var(--t-fast) var(--ease-out); } /* Bộ Công Thương badge, bottom strip before the social marks — only once CONFIG.bct is filled */
.footer__bct:hover { opacity: .8; }
.footer__bct[hidden] { display: none; }
/* The owner's legal details under the tagline (owner, 2026-10-12): small, quiet, readable. */
.footer__legal { max-width: 440px; margin-top: 16px; font-size: 12px; line-height: 18px; color: var(--stone-500); }
.footer__legal p + p { margin-top: 2px; }
.footer__company { font-weight: 600; color: var(--stone-600); letter-spacing: .01em; }
.footer__legal a { color: inherit; }
.footer__legal a:hover { color: var(--stone-600); }
.footer__bct img { display: block; height: 44px; width: auto; } /* the height the Bộ's embed code sets */
.footer__social { justify-self: end; display: flex; gap: 4px; margin-right: -8px; } /* -8px: the last mark's glyph, not its hit area, sits on the bar's inner edge */
.footer__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--stone-400); transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
.footer__social a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
/* desktop: smaller marks (owner, 2026-10-05) — the 36px hit area stays; phones keep 20px */
@media (min-width: 768px) { .footer__social svg { width: 16px; height: 16px; } }

/* ── Lead dialog ──────────────────────────────────────────────────────── */
.leadbox { width: min(560px, calc(100vw - 32px)); padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--background); box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .3); color: #000; }
html:has(.leadbox[open]) { overflow: hidden; }
.leadbox { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.leadbox::backdrop { background: rgba(28, 25, 23, .4); backdrop-filter: blur(4px); }
.leadbox__close { position: absolute; right: 16px; top: 16px; }
.leadbox__close button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-md); transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.vbox__close button:active, .leadbox__close button:active { transform: scale(.92); }
.leadbox__close button:hover { background: var(--stone-100); }
.leadbox__sub { margin: 6px 0 24px; font-size: 16px; line-height: 24px; color: var(--stone-600); }
.fld { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--foreground); }
.fld input, .fld select { height: 40px; padding: 0 12px; border: 1px solid var(--stone-300); border-radius: var(--radius-md); background: #fff; font: inherit; font-weight: 400; font-size: 16px; color: #000; width: 100%; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--mint-ink); box-shadow: 0 0 0 3px rgba(143, 245, 240, .45); }
/* Our own chevron (owner, 2026-10-07: the native arrow sat on the right
   border): the browser's is dropped, a 16px stone-500 chevron sits 12px in. */
.fld select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2378716c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; line-height: 20px; color: var(--stone-600); margin: 4px 0 12px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.form__err { min-height: 20px; font-size: 14px; line-height: 20px; color: #dc2626; margin-bottom: 8px; }
.leadbox__ok .btn { margin-top: 8px; }
#lead { width: min(480px, calc(100vw - 32px)); } /* one column (owner, 2026-10-07: "layout form về 1 cột") */
.fld .req { font-style: normal; color: #dc2626; } /* a required field (the Google Form's own required questions) */

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1279px) {
  .demo { padding: 32px 36px 36px; gap: 32px 40px; }
  .dnow__t { font-size: 26px; line-height: 34px; }
  .dnow__d { font-size: 16px; line-height: 24px; }
  :root { --margin: 56px; }
  .row__content { padding: 64px 56px 48px calc(96px - var(--inset)); }
  .mind { left: 24px; }
  .sol__head { padding: 128px 48px; --glow-h: 225px; }
  .sol__pause { font-size: 30px; line-height: 48px; }
  .step { padding: 64px 56px 64px calc(96px - var(--inset)); }
  .hub__text { padding: 96px 56px 96px calc(96px - var(--inset)); }
  .outs { --outs-l: 24px; --outs-r: 24px; }
  .hub__demo { padding: 56px 32px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan:nth-child(2) { border-right: 1px solid var(--border); }
  .plan:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 1023px) {
  /* Tablet keeps the two columns; give the shot the larger share. */
  .demo { padding: 24px; gap: 24px 28px; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border-radius: 40px 40px 0 0; }
  .dnow__t { font-size: 22px; line-height: 30px; }
  .dnow__d { margin-top: 10px; font-size: 15px; line-height: 22px; }
  .sol__head { padding: 112px 32px; --glow-h: 200px; }
  .sol__pause { font-size: 26px; line-height: 42px; }
  .header__sales { display: none; }
  .header__burger { display: inline-flex; }
  .hero { padding-top: 72px; }
  .hero__title { font-size: 42px; line-height: 50px; letter-spacing: -.9px; }
  .demo { margin-top: 48px; }
  .sol__body { grid-template-columns: minmax(0, 1fr); }
  .sol__steps { border-right: 0; }
  .sol__rail { display: none; }
  .step, .sol.is-live .step { min-height: 0; opacity: 1; padding: 56px; }
  .step__text { max-width: 640px; }
  .step__slot { display: block; margin-top: 32px; }
  .step__slot .vis-fit { margin: 0 auto; }
  .hub { flex-direction: column; }
  .hub > * { flex-basis: auto; }
  .outs { --outs-l: 32px; --outs-r: 32px; }
  .outs__body { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 72px; }
  .outs--flip .outs__demo { order: 0; } /* one column: text first, like 2b */
  .outs__foot { padding: 24px var(--outs-r) 24px var(--outs-l); }
  .hub__text { border-right: 0; border-bottom: 1px solid var(--stone-300); padding: 72px 56px; }
  .row { flex-direction: column; }
  .row > * { flex-basis: auto; }
  .faq { --faq-l: 32px; --faq-r: 32px; }
  .faq__body { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 72px; padding-bottom: 72px; }
  .faq__lead { display: contents; }
  .faq__intro { order: 1; }
  .faq__list { order: 2; }
  .faq__ask { order: 3; max-width: none; }
  .row__content { border-right: 0; border-bottom: 1px solid var(--stone-300); padding: 56px 56px 40px; }
  .row__demo { min-height: 576px; }
  .mind { left: 50%; transform: translateX(-50%); }
  .cases__nav { padding: 0 24px; }
  .cases__nav img { width: 56px; height: auto; }
  .cap { flex-basis: 50%; }
  .footer { padding: 72px 40px 16px; }
  .footer__cta { flex-direction: column; align-items: flex-start; gap: 32px; padding-bottom: 64px; }
  .footer__title { font-size: 40px; line-height: 48px; }
  .footer__info, .footer[data-variant="b"] .footer__info { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer[data-variant="b"] .footer__cell--brand { grid-column: 1 / -1; }
  .footer[data-variant="c"] .footer__title { font-size: 44px; line-height: 52px; }
  .footer__mark { margin-bottom: calc(-0.2 * (100vw - 80px) * 181 / 657); }
  .footer__hero { padding: 80px 32px 72px; }
  .footer__hero .footer__title { font-size: 44px; line-height: 52px; }
  .footer__base { grid-template-columns: 1fr 1fr; column-gap: 40px; padding: 48px 24px 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__badges { flex-direction: row; flex-wrap: wrap; }   /* both store badges on one row below desktop (owner, 2026-10-05) */
}
@media (max-width: 767px) {
  :root { --margin: 24px; --inset: 8px; --card-r: 40px; --card-gap: 16px; }
  body { font-size: 15px; }
  .header { padding: 8px; }
  .header__bar { padding: 9px 9px 9px 16px; margin-inline: 8px; }
  .dock { bottom: 12px; padding-left: 14px; gap: 12px; }
  .hero { padding: 56px 12px 0; border-radius: 40px 40px 0 0; }
  .hero__title { font-size: 30px; line-height: 38px; letter-spacing: -.6px; }
  /* Phones: one column — tabs (scrolling sideways), the open step's copy,
     then its shot. */
  .demo { margin-top: 32px; padding: 12px 12px 16px; grid-template-columns: minmax(0, 1fr); gap: 16px; border-radius: 32px 32px 0 0; }
  .demo > .dash-frame { justify-self: center; }
  /* The nav on a phone: icon-only circles, the open one also shows its
     label — four labelled pills would not fit 351px. */
  .dtab { width: 36px; padding: 0; justify-content: center; }
  .dtab[aria-selected="true"] { width: auto; padding: 0 12px; }
  .dtab__l { display: none; }
  .dtab[aria-selected="true"] .dtab__l { display: inline; }
  .demo__now { padding: 0 4px; text-align: center; }   /* the step's title + line centred on a phone (owner, 2026-10-05) */
  .demo__side { min-width: 0; }
  .dnow__t { font-size: 20px; line-height: 28px; }
  .dnow__d { margin-top: 6px; font-size: 15px; line-height: 22px; }
  .outs__head .outs__lead { display: none; }   /* 2b–2d: title only on a phone, no lead paragraph (owner, 2026-10-05) */
  .faq__ask { display: none; }   /* FAQ: no consult card on a phone (owner, 2026-10-05) */
  .sol__head { padding: 88px 16px; border-radius: 0 0 40px 40px; --glow-h: 150px; }
  .sol__pause { font-size: 20px; line-height: 32px; }
  .step { padding: 40px 24px; }
  .hub__text { padding: 48px 24px; }
  .hub__text .h-display, .outs__head .h-display { font-size: 28px; line-height: 36px; }
  .outs { --outs-l: 24px; --outs-r: 24px; }
  .outs__body { padding-top: 48px; }
  .outs__foot .btn { width: 100%; }
  .outs__foot--row { flex-wrap: wrap; } /* phones: the logos keep their row, the action drops under it */
  .outs__foot--row .outs__soon--row { flex-basis: 100%; }
  .outs__demo { padding: 24px 8px; border-radius: 28px; }
  .mtypes__head { padding: 48px 24px 32px; }
  .mtypes__head .h-display { font-size: 28px; line-height: 36px; }
  .mtypes__head .h-sub { font-size: 17px; line-height: 26px; }
  .mtypes { --mt-w: 56vw; --mt-px: 20px; }
  .mtype { padding-block: 24px 28px; }
  .mtype.is-active .mtype__secs { grid-template-columns: minmax(0, 1fr); }
  .mtype__d { min-height: 0; }
  .hub__points b { font-size: 17px; line-height: 24px; }
  .hub__points p { font-size: 15px; line-height: 24px; }
  .hub__demo { padding: 32px 16px; }
  .h-display { font-size: 28px; line-height: 36px; }
  .h-sub { font-size: 20px; line-height: 28px; }
  .h-2 { font-size: 24px; line-height: 32px; }
  .lead { font-size: 17px; line-height: 26px; }
  .row__content { padding: 40px 24px 32px; gap: 32px; }
  .row__demo { min-height: 0; height: 420px; }
  .mind { top: -60px; transform: translateX(-50%) scale(.62); transform-origin: 50% 50%; }
  .flow--row { transform: translate(-50%, -50%) scale(.6); }
  .phone-rec { width: calc(100% - 32px); }
  .hatchbg::before { width: 100%; }
  .cases { flex-wrap: wrap; min-height: 0; padding: 48px 0; }
  .cases__main { order: -1; flex-basis: 100%; padding: 0 24px; }
  .case { flex-direction: column; align-items: flex-start; }
  .case__art { width: 180px; height: 150px; }
  .case__quote { font-size: 19px; line-height: 30px; }
  .case__who { font-size: 16px; line-height: 24px; }
  .cases__dots { padding-left: 0; }
  .cases__nav { flex: 1; padding: 24px; }
  .cases__nav--prev { justify-content: flex-start; }
  .cases__nav--next { justify-content: flex-end; }
  /* Facet lists on phones: compact rows so more of the section fits on one
     screen — 24px icon, 15px title, tighter padding and gap; the open facet's
     description drops to 14/20. Order and behaviour are unchanged. */
  .feats--ic { gap: 6px; }
  .feats--ic .feat { padding: 8px 12px 9px; border-radius: var(--radius-lg, 10px); }
  .feats--ic .feat__t { gap: 10px; font-size: 15px; line-height: 22px; }
  .feats--ic .feat__ic { width: 24px; height: 24px; }
  .feats--ic .feat__ic svg, .feats--ic .feat__ic img { width: 13px; height: 13px; }
  .feats--ic .feat__d > span > span { padding: 2px 0 2px 34px; font-size: 14px; line-height: 20px; }
  .cases.tst { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .tst__side { padding: 32px 24px; place-items: start; }
  .tst__person { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; text-align: left; }
  .tst__av { width: 64px; height: 64px; grid-row: span 3; }
  .tst__name { margin-top: 0; font-size: 18px; line-height: 24px; }
  .tst__co { justify-self: start; margin-top: 8px; }
  .tst__main { padding: 32px 24px; gap: 20px; }
  .tst__q .case__quote { font-size: 20px; line-height: 32px; }
  .tst .cases__nav { flex: none; padding: 8px; }
  .caps__track { padding: 0 16px; scroll-padding-inline: 16px; }
  .cap { flex-basis: 85%; padding: 40px 24px; min-height: 0; }
  .caps__bar { padding: 0 16px; }
  .caps__label { font-size: 13px; }
  .caps__nav img { width: 56px; height: auto; }
  .pricing { padding-top: 56px; margin-top: 56px; }
  .pricing__head { margin-bottom: 32px; }
  .plans { grid-template-columns: 1fr; padding: 0 16px; }
  .plan { padding: 48px 24px 32px; border-right: 1px solid var(--border); }
  .plan + .plan { border-top: 1px solid var(--border); }
  .plan__badge { left: 24px; }
  .faq { --faq-l: 16px; --faq-r: 16px; }
  .faq__body { padding-top: 48px; padding-bottom: 48px; }
  .faq__title { font-size: 30px; line-height: 38px; }
  .qa summary { grid-template-columns: 22px minmax(0, 1fr) 28px; gap: 12px; padding: 14px 12px 14px 16px; font-size: 16px; line-height: 24px; }
  .qa__n { font-size: 12px; }
  .qa__ic { width: 28px; height: 28px; }
  .qa__ic::before, .qa__ic::after { left: 8px; top: 13.25px; }
  .qa__a { padding: 0 16px 18px 50px; }
  .qa__a p { font-size: 15px; line-height: 24px; }
  .faq__ask { padding: 20px 20px 24px; }
  .footer { margin-top: 64px; padding: 56px 20px 12px; border-radius: 32px 32px 0 0; }
  .footer__title { font-size: 30px; line-height: 38px; }
  .footer__cta { gap: 24px; padding-bottom: 48px; }
  .footer__cta-act { flex-wrap: wrap; }
  .footer__info, .footer[data-variant="b"] .footer__info { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer__bottom, .footer[data-variant="b"] .footer__bottom { grid-template-columns: 1fr; justify-items: start; padding: 20px 16px; }
  .footer__apps--col { flex-direction: row; }
  .footer[data-variant="c"] .footer__cta { padding-bottom: 56px; }
  .footer[data-variant="c"] .footer__title { font-size: 32px; line-height: 40px; }
  .footer__strip { flex-direction: column; align-items: flex-start; padding: 20px 16px; }
  .footer__links { flex-direction: column; gap: 10px; }
  .footer__get { flex-wrap: wrap; gap: 16px; }
  .footer__meta { flex-direction: column; padding: 16px 16px 0; }
  .footer__hero { padding: 56px 20px 48px; border-radius: 32px; }
  .footer__hero .footer__title { font-size: 32px; line-height: 40px; }
  .footer__base { grid-template-columns: 1fr; padding: 40px 12px 32px; }
  .footer__end { flex-direction: column; align-items: flex-start; padding: 16px; }
  .footer[data-variant="d"] .footer__social { margin: 0 0 0 -8px; }
  .footer__mark { --dot: 4px; margin: 32px 0 calc(-0.2 * (100vw - 40px) * 181 / 657); }
  .footer__social { justify-self: start; margin: 0 0 0 -8px; } /* stacked under the badges: hang the first glyph on the left edge instead */
  .fld-row { grid-template-columns: 1fr; }
  .leadbox { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i, .caret, .dot-live, .think__head span, .think__head svg, .hub__ring, .hub__dot { animation: none; }
  .hub__dot { display: none; }
  /* The "ộ" button: no turning ring, and the slot snaps open instead of sliding. */
  .vpill__ring, .vpill::before, .btn--primary::before { animation: none; }
  /* The sound glow holds still: no wave drift, no colour drift. */
  .sol__head::before, .sol__head::after { animation: none; }
  /* Tab icons stay at rest; nothing acts out on hover. */
  .dtab .ti * { animation: none !important; }
  /* No autoplay through the listening facets: each one opens on click. */
  .feat__bar { display: none; }
  .vo, .vpill__label { transition-property: color, opacity; }
  .sol__stage > .vis-fit { transition: none; }
  /* Hover/press still fade colour, but nothing scales or shifts. */
  .btn:active, .tab:active, .vpill:active,
  .header__burger:active, .vis__replay:active, .insight__why:active, .hub__app:hover, .footer__apps a:hover,
  .vbox__close button:active, .leadbox__close button:active, .cases__nav:hover { transform: none; }
  /* With no motion the Todos screen rests on the preview, not on its aftermath. */
  .sync { opacity: 1; visibility: visible; }
  .toast { display: none; }
  .kchip--swap > span:first-child { opacity: 1; }
  .kchip--swap > span:last-child { opacity: 0; }
}

/* Survey fields in the lead modal (temporary — mirrors the Google Form). */
fieldset.fld { border: 0; padding: 0; margin-inline: 0; min-width: 0; } /* no default side margin: its legend lines up with the other labels */
fieldset.fld legend { padding: 0; margin-bottom: 6px; }
.fld textarea { padding: 8px 12px; border: 1px solid var(--stone-300); border-radius: var(--radius-md); background: #fff; font: inherit; font-weight: 400; font-size: 16px; color: #000; width: 100%; resize: vertical; }
.fld textarea:focus { outline: none; border-color: var(--mint-ink); box-shadow: 0 0 0 3px rgba(143, 245, 240, .45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--stone-300); border-radius: 999px; background: #fff; font-weight: 400; font-size: 14px; color: var(--stone-700, #44403c); transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.chip:hover span { background: var(--stone-100); }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(143, 245, 240, .45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Touch screens: the heat half of "Heat" above (owner, 2026-10-07) — last in
   the file so it overrides the drift, the frosted deck cards and the glow pan. */
@media (hover: none), (max-width: 767px) {
  .outs__demo, .tst__side, .footer__hero { animation: none; }
  .dk:not(.is-p0) { backdrop-filter: none; }
  .dk.is-p1 { background: rgba(255, 255, 255, .86); }
  .dk.is-p2 { background: rgba(255, 255, 255, .74); }
  .dk.is-p3 { background: rgba(255, 255, 255, .62); }
  .mtype__glow { animation: none; }
}

/* ── Cookie consent banner (#cookie, analytics.js) ─────────────────────
   Above the dock (z 50) while it is up; both answers weigh the same size. */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin-inline: auto;
  display: flex; align-items: center; gap: 12px 24px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-2xl); box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  font-size: 14px; line-height: 22px; color: var(--stone-700);
}
.cookie[hidden] { display: none; }
.cookie__text a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.cookie__act { display: flex; gap: 8px; flex: none; }
@media (max-width: 767px) {
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__act > .btn { flex: 1; }
}
