:root {
  --hue: 277;
  /* Light theme (default): white paper, cool neutrals, saturated indigo and sky */
  --paper: oklch(100% 0 0);
  --paper-2: oklch(97.4% 0.012 262);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(95.4% 0.016 268);
  --line: oklch(92.6% 0.014 268);
  --line-2: oklch(85% 0.026 268);
  --ink: oklch(21% 0.05 272);
  --ink-2: oklch(40% 0.04 272);
  --ink-3: oklch(49% 0.035 272);
  /* Brand */
  --accent: #5B5BD6;
  --accent-hi: oklch(46% 0.21 var(--hue));
  --accent-text: oklch(48% 0.21 var(--hue));
  --accent-soft: oklch(94.6% 0.036 var(--hue));
  --accent-ink: oklch(99.5% 0 0);
  --glow: oklch(72% 0.16 255);
  --tile: oklch(100% 0 0);
  --on-tile: oklch(22% 0.03 var(--hue));
  --hl-a: oklch(50% 0.24 280);
  --hl-b: oklch(62% 0.17 228);
  /* Surfaces and shadows that differ per theme */
  --top-bg: oklch(100% 0 0 / 0.94);
  --glass: oklch(100% 0 0 / 0.72);
  --glass-hi: oklch(100% 0 0);
  --hover: oklch(50% 0.08 var(--hue) / 0.05);
  --ring: oklch(62% 0.13 262 / 0.24);
  --ring-fill: oklch(100% 0 0 / 0.36);
  --ring-fill-3: oklch(100% 0 0 / 0.72);
  --chip-bg: oklch(100% 0 0 / 0.9);
  --stg-hi: oklch(100% 0 0 / 0.8);
  --shadow-card: 0 1px 2px oklch(35% 0.08 272 / 0.06), 0 14px 36px oklch(45% 0.12 268 / 0.1);
  --shadow-float: 0 2px 4px oklch(35% 0.08 272 / 0.08), 0 14px 32px oklch(45% 0.14 265 / 0.2);
  --hero-wash: radial-gradient(38% 48% at 14% 26%, oklch(90% 0.11 176 / 0.9), transparent 72%), radial-gradient(44% 58% at 80% 36%, oklch(82% 0.12 254 / 0.85), transparent 72%), radial-gradient(34% 40% at 48% 6%, oklch(89% 0.08 302 / 0.7), transparent 72%);
  --tint-bg: linear-gradient(180deg, oklch(97.2% 0.02 252), oklch(98.4% 0.014 205));
  /* Tone scale: lightness and chroma for the coloured cards, hue comes from .t-* */
  --t-bg-l: 95.6%; --t-bg-c: 0.036; --t-mid-l: 89%; --t-mid-c: 0.07; --t-fg-l: 47%; --t-fg-c: 0.17;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.26rem + 0.55vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.35rem + 3.4vw, 3.75rem);
  --step-5: clamp(2.25rem, 1.15rem + 4.6vw, 4.5rem);
  --ui-1: 0.75rem;
  --ui-2: 0.8125rem;
  --ui-3: 0.875rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(72px, 5vw + 44px, 136px);
  --gutter: clamp(20px, 4vw, 48px);
  --container: 1200px;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-win: 0 24px 48px oklch(45% 0.12 268 / 0.14), 0 60px 120px oklch(50% 0.14 262 / 0.2);

  --dur-press: 120ms;
  --dur-state: 240ms;
  --dur-layout: 360ms;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
  interpolate-size: allow-keywords;
}

/* Dark theme, also used for the bands that stay dark on the light page */
:root[data-theme="dark"], .inv {
  --paper: oklch(15% 0.022 var(--hue));
  --paper-2: oklch(18% 0.026 var(--hue));
  --surface: oklch(20.5% 0.028 var(--hue));
  --surface-2: oklch(25% 0.032 var(--hue));
  --line: oklch(28% 0.03 var(--hue));
  --line-2: oklch(36% 0.036 var(--hue));
  --ink: oklch(96.5% 0.008 var(--hue));
  --ink-2: oklch(80% 0.02 var(--hue));
  --ink-3: oklch(66% 0.026 var(--hue));
  --accent-hi: oklch(60% 0.19 var(--hue));
  --accent-text: oklch(79% 0.12 var(--hue));
  --accent-soft: oklch(28% 0.075 var(--hue));
  --glow: oklch(55% 0.2 var(--hue));
  --hl-a: oklch(70% 0.17 var(--hue));
  --hl-b: oklch(82% 0.12 250);
  --top-bg: oklch(15% 0.022 var(--hue) / 0.93);
  --glass: oklch(100% 0 0 / 0.05);
  --glass-hi: oklch(100% 0 0 / 0.09);
  --hover: oklch(100% 0 0 / 0.035);
  --ring: oklch(100% 0 0 / 0.12);
  --ring-fill: oklch(60% 0.19 var(--hue) / 0.08);
  --ring-fill-3: oklch(60% 0.19 var(--hue) / 0.12);
  --chip-bg: oklch(22% 0.03 var(--hue) / 0.86);
  --stg-hi: oklch(100% 0 0 / 0.05);
  --shadow-card: 0 0 0 0 transparent;
  --shadow-float: 0 12px 32px oklch(8% 0.03 var(--hue) / 0.55);
  --shadow-win: 0 1px 0 oklch(100% 0 0 / 0.06) inset, 0 24px 48px oklch(8% 0.03 var(--hue) / 0.5), 0 60px 120px oklch(8% 0.03 var(--hue) / 0.45);
  --hero-wash: radial-gradient(46% 52% at 50% 26%, oklch(52% 0.21 var(--hue) / 0.5), transparent 72%), radial-gradient(30% 34% at 80% 34%, oklch(58% 0.18 315 / 0.2), transparent 70%), radial-gradient(28% 30% at 18% 38%, oklch(60% 0.14 240 / 0.16), transparent 70%);
  --tint-bg: oklch(18% 0.026 var(--hue));
  --t-bg-l: 24%; --t-bg-c: 0.05; --t-mid-l: 30%; --t-mid-c: 0.08; --t-fg-l: 80%; --t-fg-c: 0.12;
  --mk-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 8C40 3 92 9 150 5C170 4 186 6 197 4C199 12 198 26 199 33C150 38 96 33 52 36C34 37 16 35 2 37C0 28 2 16 4 8Z' fill='%237a78ff' fill-opacity='.55'/%3E%3C/svg%3E");
  --mk-img-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 8C40 3 92 9 150 5C170 4 186 6 197 4C199 12 198 26 199 33C150 38 96 33 52 36C34 37 16 35 2 37C0 28 2 16 4 8Z' fill='%23e04fb0' fill-opacity='.55'/%3E%3C/svg%3E");
  --zig-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5Q5 0 10 5T20 5' fill='none' stroke='%23a5a8ff' stroke-width='2.2'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] { color-scheme: dark; }
.inv { color: var(--ink); }
.tone { --t-bg: oklch(var(--t-bg-l) var(--t-bg-c) var(--th, 277)); --t-mid: oklch(var(--t-mid-l) var(--t-mid-c) var(--th, 277)); --t-fg: oklch(var(--t-fg-l) var(--t-fg-c) var(--th, 277)); }
.t-sky { --th: 240; } .t-mint { --th: 168; } .t-amber { --th: 58; } .t-coral { --th: 28; } .t-pink { --th: 352; } .t-violet { --th: 304; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + var(--space-4)); -webkit-text-size-adjust: 100%; color-scheme: light; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 var(--step-0) / 1.65 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.3; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -80px; z-index: 30; padding: var(--space-3) var(--space-4); background: var(--ink); color: var(--paper); border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-3); }

.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
main { overflow-x: clip; }
.section { padding-block: var(--section-y); }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ci { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--tile); box-shadow: 0 0 0 1px var(--line); }
.ci img { width: 20px; height: 20px; }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-6); border-radius: 999px; font: 600 var(--step-0) / 1 var(--font); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.btn .arr { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -18px; margin-left: var(--space-2); border-radius: 50%; background: var(--tile); color: var(--accent); transition: transform var(--dur-layout) var(--ease-expo); }
.btn .arr .ic { width: 16px; height: 16px; stroke-width: 2.25; }
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px oklch(70% 0.16 var(--hue) / 0.5) inset, 0 8px 24px oklch(45% 0.2 var(--hue) / 0.45); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 0 0 1px oklch(78% 0.14 var(--hue) / 0.6) inset, 0 10px 32px oklch(50% 0.22 var(--hue) / 0.6); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, oklch(100% 0 0 / 0.28) 50%, transparent 65%); transform: translateX(-120%); }
.btn > .ic { width: 18px; height: 18px; }
.btn-sm { min-height: 44px; padding: 0 var(--space-5); font-size: var(--ui-3); }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary::after { transition: transform 910ms var(--ease-out); }
  .btn-primary:hover::after { transform: translateX(120%); }
}

/* Header */
.top { position: sticky; top: 0; z-index: 20; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--top-bg); border-bottom: 1px solid var(--line); }
@supports (animation-timeline: scroll()) {
  .top::before { animation: top-in linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
}
@keyframes top-in { from { opacity: 0; } to { opacity: 1; } }
.top-in { position: relative; display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 132px; height: auto; }
.brand .logo-d, [data-theme="dark"] .brand .logo-l { display: none; }
[data-theme="dark"] .brand .logo-d { display: block; }
.nav { display: flex; gap: var(--space-1); margin-inline: auto; }
.nav > a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); font-size: var(--ui-3); font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: var(--radius-sm); transition: color var(--dur-state) var(--ease-out); }
.nav > a::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 8px; height: 1.5px; background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-state) var(--ease-out); }
.nav > a:hover { color: var(--ink); }
.nav > a:hover::after { transform: scaleX(1); }

/* Header dropdowns: hover opens them here, click and keyboard toggle .open in site.js */
.dd-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-3); font-size: var(--ui-3); font-weight: 500; color: var(--ink-2); border-radius: var(--radius-sm); transition: color var(--dur-state) var(--ease-out); }
.dd-btn .ic { width: 14px; height: 14px; stroke-width: 2.25; transition: transform var(--dur-state) var(--ease-out); }
.dd:hover .dd-btn, .dd.open .dd-btn { color: var(--ink); }
.dd:hover .dd-btn .ic, .dd.open .dd-btn .ic { transform: rotate(180deg); }
.dd-panel { position: absolute; left: 50%; top: calc(100% - 8px); z-index: 30; width: min(var(--w, 680px), 100%); translate: -50% 8px; padding: var(--space-3); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-float), 0 32px 80px oklch(30% 0.1 268 / 0.18); opacity: 0; visibility: hidden; transition: opacity var(--dur-state) var(--ease-out), translate var(--dur-state) var(--ease-out), visibility var(--dur-state); }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd:hover .dd-panel, .dd.open .dd-panel { opacity: 1; visibility: visible; translate: -50% 0; }
.dd-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 2px; }
.dd-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: var(--space-3); padding: 10px var(--space-3); border-radius: 12px; text-decoration: none; transition: background-color var(--dur-state) var(--ease-out); }
.dd-item:hover { background: var(--paper-2); }
.dd-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--t-bg); color: var(--t-fg); }
.dd-item .ci { width: 40px; height: 40px; border-radius: 12px; }
.dd-item .ci img { width: 24px; height: 24px; }
.dd-item b { display: block; font-size: var(--ui-3); font-weight: 600; line-height: 1.35; }
.dd-item small { display: block; font-size: var(--ui-1); line-height: 1.4; color: var(--ink-3); }
.dd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-4); }
.dd-h { padding: var(--space-2) var(--space-3); font-size: var(--ui-1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.top-cta { display: flex; align-items: center; gap: var(--space-2); }
.theme-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-inline: calc(-1 * var(--space-4)); border-radius: 50%; color: var(--ink-2); transition: background-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out); }
.theme-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-btn .sun, [data-theme="dark"] .theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }
.mnav { display: none; margin-left: auto; }
.mnav:not([open]) .mnav-panel { display: none; }
.mnav > summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav > summary:hover { background: var(--surface-2); }
.mnav-panel { position: absolute; left: 0; right: 0; top: var(--header-h); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--space-2) var(--gutter) var(--space-5); display: grid; gap: var(--space-1); }
.mgrp > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 500; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.mgrp > summary .ic { width: 16px; height: 16px; color: var(--ink-3); transition: transform var(--dur-state) var(--ease-out); }
.mgrp[open] > summary .ic { transform: rotate(180deg); }
.mnav-panel .mgrp a { padding-left: var(--space-4); font-weight: 400; color: var(--ink-2); }
.mnav-panel a:not(.btn) { display: flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav-panel .btn { margin-top: var(--space-4); }
@media (max-width: 899px) {
  .nav, .top-cta { display: none; }
  .top-in { gap: var(--space-2); }
  .theme-btn { margin-inline: auto 0; }
  .mnav { display: block; margin-left: 0; }
}

/* Hero */
.hero { position: relative; overflow: clip; margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(48px, 4vw + 24px, 104px)); padding-bottom: clamp(48px, 5vw, 88px); }
/* The wash spans past both edges of the viewport, so its colour never ends in a straight line. */
.hero::before { content: ""; position: absolute; inset: -140px -12% auto; height: 900px; pointer-events: none; background: var(--hero-wash); -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.hero > * { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; justify-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); height: 34px; padding: 0 var(--space-4) 0 var(--space-3); border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass); color: var(--ink); font-size: var(--ui-2); font-weight: 500; }
.eyebrow .ic { width: 16px; height: 16px; color: var(--accent-text); }
.hero h1 { margin-top: var(--space-5); font-size: clamp(2rem, 1.3rem + 2.4vw, 2.875rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.03em; text-wrap: wrap; }
.hero h1 .l { display: block; text-wrap: balance; }
.hero h1 .w { transition: translate 420ms var(--ease-expo), rotate 420ms var(--ease-expo), color var(--dur-state) var(--ease-out); cursor: default; }
.hero h1 .w:hover { translate: 0 -0.12em; rotate: -3deg; color: var(--accent-text); }
/* Headline slot: the words share one cell; site.js swaps them, each time with a different move */
.rot { display: inline-grid; vertical-align: bottom; perspective: 600px; color: var(--accent-text); }
.rot > span { grid-area: 1 / 1; justify-self: start; display: flex; align-items: center; gap: 0.18em; margin: 0 -0.12em; padding: 0 0.12em; white-space: nowrap; background: var(--mk-img) no-repeat 0 96% / 100% 32%; opacity: 0; transform-origin: 0 85%; }
.rot > span.on { opacity: 1; }
.rot .ri { flex: none; display: grid; place-items: center; width: 0.92em; height: 0.92em; border-radius: 0.26em; background: var(--tile); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.rot .ri img { width: 64%; height: 64%; }
.rot .t { color: var(--bc, inherit); }
.rot .t i { display: inline-block; font-style: normal; }
.c-tt { --bc: var(--ink); }
.c-tt .t { text-shadow: -0.035em -0.02em 0 #25f4ee, 0.035em 0.02em 0 #fe2c55; }
[data-theme="dark"] .rot [aria-hidden] .t { color: color-mix(in oklch, var(--bc) 68%, white); }
.hl { background: linear-gradient(92deg, var(--hl-a), var(--hl-b), var(--hl-a)) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Key phrases inside copy. build.mjs hands each one a different effect; site.js adds .in when it comes into view
   (.kx on the root means that is armed). Every effect also answers the pointer. */
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
:root { --mk-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 8C40 3 92 9 150 5C170 4 186 6 197 4C199 12 198 26 199 33C150 38 96 33 52 36C34 37 16 35 2 37C0 28 2 16 4 8Z' fill='%23ffe14d'/%3E%3C/svg%3E"); }
:root { --zig-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5Q5 0 10 5T20 5' fill='none' stroke='%235b5bd6' stroke-width='2.2'/%3E%3C/svg%3E"); }
:root { --mk-img-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 8C40 3 92 9 150 5C170 4 186 6 197 4C199 12 198 26 199 33C150 38 96 33 52 36C34 37 16 35 2 37C0 28 2 16 4 8Z' fill='%237df0c6'/%3E%3C/svg%3E"); }
.k { --kc: var(--t-fg, var(--accent-text)); font-weight: 600; color: var(--ink); cursor: default; }
.nb { white-space: nowrap; }
.k svg { position: absolute; max-width: none; overflow: visible; pointer-events: none; fill: none; stroke: var(--kc); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.k svg path { stroke-dasharray: 1; transition: stroke-dashoffset 1170ms var(--ease-out) var(--kd, 0ms); }
.kx .k:not(.in) svg path { stroke-dashoffset: 1; }
/* brush: a marker stroke behind the words */
.k-brush { margin: 0 -4px; padding: 0 4px; background: var(--mk-img) no-repeat 0 90% / 100% 60%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1040ms var(--ease-out) var(--kd, 0ms); }
.k-brush:hover { background-image: var(--mk-img-2); background-size: 100% 100%; transition-duration: 420ms; }
.kx .k-brush:not(.in) { background-size: 0 60%; }
/* line: an underline that floods the phrase */
.k-line { margin: 0 -3px; padding: 0 3px 2px; border-radius: 5px; background: linear-gradient(90deg, var(--hl-a), var(--hl-b)) no-repeat 0 100% / 100% 2.5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 910ms var(--ease-out) var(--kd, 0ms), color 260ms var(--ease-out); }
.k-line:hover { background-size: 100% 100%; color: var(--paper); transition-duration: 470ms, 260ms; }
.kx .k-line:not(.in) { background-size: 0 2.5px; }
/* pill: a tilted label that fills with colour */
.k-pill { display: inline-block; padding: 0 0.55em; border-radius: 999px; background: linear-gradient(var(--kp-bg, var(--t-bg, var(--accent-soft))) 0 0) no-repeat 0 0 / 100% 100%; color: var(--kc); white-space: nowrap; rotate: -1.5deg; transition: background-size 780ms var(--ease-out) var(--kd, 0ms), rotate 420ms var(--ease-expo), scale 420ms var(--ease-expo), color var(--dur-state) var(--ease-out) var(--kd, 0ms); }
.k-pill:hover { --kp-bg: var(--kc); rotate: 2deg; scale: 1.08; color: var(--paper); }
.kx .k-pill:not(.in) { background-size: 0 100%; color: var(--ink-2); }
/* ring and scrib: a hand-drawn loop or underline, drawn as a stroke. They stay inline so headings still balance. */
.k-ring, .k-scrib { position: relative; white-space: nowrap; }
:is(h1, h2, h3):has(.k-ring, .k-scrib) { text-wrap: pretty; }
.k-ring { margin: 0 0.7em; }
.k-ring svg { left: -0.85em; top: -0.2em; width: calc(100% + 1.7em); height: calc(100% + 0.4em); }
.k-scrib svg { left: -2%; bottom: -0.2em; width: 104%; height: 0.46em; }
.k-ring:hover, .k-scrib:hover { color: var(--kc); }
/* zig: a wavy underline that springs up, then flows */
.k-zig { padding-bottom: 6px; background: var(--zig-img) repeat-x 0 100% / 20px 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 680ms var(--ease-expo) var(--kd, 0ms), color var(--dur-state) var(--ease-out); }
.k-zig:hover { color: var(--accent-text); }
.kx .k-zig:not(.in) { background-size: 20px 0; }
/* block: the phrase is knocked out of a solid block */
.k-block { margin: 0 1px; padding: 0.02em 0.36em 0.08em; border-radius: 6px; background: linear-gradient(var(--kc) 0 0) no-repeat 0 0 / 100% 100%; color: var(--paper); -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 830ms var(--ease-expo) var(--kd, 0ms), color 420ms var(--ease-out) var(--kd, 0ms); }
.kx .k-block:not(.in) { background-size: 0 100%; color: var(--ink); }
/* shine: gradient lettering with a glint passing through */
.k-shine { background: linear-gradient(90deg, var(--hl-a), var(--hl-b) 34%, oklch(86% 0.12 200) 50%, var(--hl-b) 66%, var(--hl-a)) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: -webkit-text-fill-color 910ms var(--ease-out) var(--kd, 0ms); }
.kx .k-shine:not(.in) { -webkit-text-fill-color: var(--ink); }
/* decode: letters scramble, then settle (site.js) */
.k-decode { display: inline-block; color: var(--kc); white-space: nowrap; font-variant-ligatures: none; border-bottom: 1.5px dashed color-mix(in oklch, var(--kc) 50%, transparent); line-height: 1.25; }
/* slot: the phrase rolls like a counter. The copies above and below are text shadows, so nothing is duplicated in
   the page; the real letters go transparent only while a roll is running. */
.k-slot { --roll: 1.9em; display: inline-block; vertical-align: bottom; overflow: clip; padding: 0 0.3em; border-radius: 6px; background: color-mix(in oklch, var(--kc) 13%, transparent); color: var(--kc); white-space: nowrap; text-shadow: 0 calc(-1 * var(--roll)) 0 var(--ink), 0 0 0 var(--kc), 0 var(--roll) 0 var(--paper); transition: text-shadow 810ms var(--ease-expo) var(--kd, 0ms), background-color 420ms var(--ease-out) var(--kd, 0ms), color 0s linear calc(var(--kd, 0ms) + 810ms); }
.k-slot:hover { background: var(--kc); color: transparent; text-shadow: 0 calc(-2 * var(--roll)) 0 var(--ink), 0 calc(-1 * var(--roll)) 0 var(--kc), 0 0 0 var(--paper); transition-delay: 0s; }
.kx .k-slot:not(.in) { background: transparent; color: transparent; text-shadow: 0 0 0 var(--ink), 0 var(--roll) 0 var(--kc), 0 calc(2 * var(--roll)) 0 var(--paper); }
@media (forced-colors: active) { .k-slot, .k-shine { color: CanvasText; -webkit-text-fill-color: CanvasText; text-shadow: none; } }
/* wave: letters rise one by one, and hop under the pointer (site.js splits them) */
.k-wave { color: var(--kc); white-space: nowrap; }
.k-wave i { position: relative; top: 0; display: inline-block; font-style: normal; transition: top 730ms var(--ease-expo), color 550ms var(--ease-out); transition-delay: calc(var(--kd, 0ms) + var(--c) * 28ms); }
.kx .k-wave:not(.in) i { top: 0.55em; color: transparent; }
.rc { margin: 0 -2px; padding: 0 2px; border-radius: 4px; font-style: normal; background: linear-gradient(var(--rc, color-mix(in oklch, var(--t-fg, var(--accent)) 24%, transparent)) 0 0) no-repeat 0 0 / 100% 100%; }
.b.out .rc { --rc: oklch(100% 0 0 / 0.26); }
.hero .lead { margin-top: var(--space-5); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-pts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); font-size: var(--ui-3); font-weight: 500; color: var(--ink-2); }
.hero-pts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-pts .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: oklch(60% 0.15 165); color: oklch(100% 0 0); stroke-width: 3; }
@media (max-width: 479px) { .hero-cta .btn, .closing-cta .btn { flex: 1 1 100%; } }

/* Hero orbit: channels circling the Nekonect mark */
.orb { --s: min(440px, 76vw); position: relative; width: var(--s); height: var(--s); margin-inline: auto; }
.orb-ring { position: absolute; inset: var(--in, 0); border-radius: 50%; border: 1px solid var(--ring); background: var(--ring-fill); }
.orb-ring.r2 { --in: 20%; }
.orb-ring.r3 { --in: 36%; background: var(--ring-fill-3); }
.sat { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; transform: rotate(var(--a)) translateX(var(--rad)) rotate(calc(-1 * var(--a))); }
.r1 .sat { --rad: calc(var(--s) * 0.5); }
.r2 .sat { --rad: calc(var(--s) * 0.3); width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.sat span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 18px; background: var(--tile); box-shadow: 0 0 0 6px var(--glass), var(--shadow-float); }
.sat img { width: 58%; height: 58%; }
.orb-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%; background: linear-gradient(140deg, var(--accent-hi), oklch(46% 0.2 300)); box-shadow: 0 0 0 10px oklch(60% 0.19 var(--hue) / 0.18), 0 0 90px oklch(60% 0.2 var(--hue) / 0.65); }
/* The mascot: head, ears, face and eyes are separate parts, so the head can turn (motion block below) */
.cat { width: 86px; height: 86px; padding: 6px; border-radius: 50%; background: var(--tile); overflow: visible; }
.cat-head { transform-box: fill-box; transform-origin: 50% 92%; }
.cat-el, .cat-er, .cat-eye { transform-box: fill-box; transform-origin: 50% 50%; }
.cat-ear { transform-box: fill-box; transform-origin: 50% 100%; }
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .orb { margin-top: var(--space-5); }
}
@media (max-width: 479px) {
  .sat { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .r2 .sat { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .sat span { border-radius: 14px; }
  .orb-core { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
  .cat { width: 70px; height: 70px; padding: 5px; }
}
.win-wrap { position: relative; margin-top: clamp(32px, 3vw + 8px, 52px); perspective: 1600px; }
.win-wrap::before { content: ""; position: absolute; inset: -8% -4% -14%; pointer-events: none; opacity: 0.34; background: radial-gradient(30% 46% at 10% 44%, oklch(66% 0.21 277), oklch(66% 0.21 277 / 0.4) 36%, transparent 72%), radial-gradient(30% 48% at 90% 54%, oklch(76% 0.15 205), oklch(76% 0.15 205 / 0.4) 36%, transparent 72%), radial-gradient(34% 34% at 50% 84%, oklch(74% 0.17 345), oklch(74% 0.17 345 / 0.4) 36%, transparent 72%); }
/* A light travels round the window edge. It is four thin strips, each sliding its own highlight, so
   only slivers ever move and nothing large has to be kept in memory. */
.win-fx { position: relative; isolation: isolate; border-radius: var(--radius); transform-origin: 50% 55%; }
.edge { --eg: transparent, var(--hl-b) 30%, oklch(80% 0.14 200) 50%, oklch(72% 0.2 320) 70%, transparent; position: absolute; z-index: -1; overflow: hidden; pointer-events: none; }
.edge::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--eg)); transform: translateX(-100%); }
.e-t, .e-b { left: var(--radius); right: var(--radius); height: 2px; }
.e-r, .e-l { top: var(--radius); bottom: var(--radius); width: 2px; }
.e-t { top: -2px; } .e-b { bottom: -2px; } .e-r { right: -2px; } .e-l { left: -2px; }
.e-r::before { background-image: linear-gradient(180deg, var(--eg)); transform: translateY(-100%); }
.e-b::before { background-image: linear-gradient(270deg, var(--eg)); transform: translateX(100%); }
.e-l::before { background-image: linear-gradient(0deg, var(--eg)); transform: translateY(100%); }
.hint { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-5); color: var(--ink-3); font-size: var(--ui-3); }
.hint .ic { width: 16px; height: 16px; }

/* Product window */
.win { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-win); overflow: hidden; font-size: var(--ui-3); line-height: 1.45; transform-origin: 50% 0; }
.win-bar { display: flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-4); border-bottom: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2); font-size: var(--ui-2); }
.win-bar b { color: var(--ink); font-weight: 600; }
.win-bar .sep { width: 1px; height: 14px; background: var(--line-2); }
.win-bar .mark { width: 18px; height: 18px; border-radius: 5px; background: var(--tile); padding: 1px; }
.win-ctl { display: flex; gap: var(--space-4); margin-left: auto; color: var(--ink-3); }
.win-ctl .ic { width: 14px; height: 14px; }
.win-body { display: grid; grid-template-columns: 300px minmax(0, 1fr) 316px; height: 624px; }
.pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.pane + .pane { border-left: 1px solid var(--line); }
.pane-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; padding: 0 var(--space-4); border-bottom: 1px solid var(--line); flex: none; }
.pane-h b { font-weight: 600; }
.pane-h small { font-size: var(--ui-1); color: var(--ink-3); }
.chips { display: flex; align-items: center; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); flex: none; }
.chip { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 30px; padding: 0 var(--space-3); border-radius: 8px; font-size: var(--ui-1); font-weight: 600; white-space: nowrap; color: var(--ink-2); transition: background-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out), opacity var(--dur-state) var(--ease-out); }
.chip.icon { padding: 0; background: var(--tile); box-shadow: 0 0 0 1px var(--line); opacity: 0.55; }
.chip.icon img { width: 18px; height: 18px; }
.chip:hover { opacity: 1; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); opacity: 1; }
.chip.icon[aria-pressed="true"] { background: var(--tile); box-shadow: 0 0 0 2px var(--accent-text); }
.rows { flex: 1; min-height: 0; overflow: hidden; }
.row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); transition: background-color var(--dur-state) var(--ease-out); }
.row:hover { background: var(--hover); }
.row[aria-current="true"] { background: var(--accent-soft); }
.row[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-text); }
.row:focus-visible { outline-offset: -3px; }
.av { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: var(--ui-2); font-weight: 600; flex: none; }
.av .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chb { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--tile); box-shadow: 0 0 0 2px var(--surface); }
.chb img { width: 12px; height: 12px; }
.av-ai { background: linear-gradient(140deg, var(--accent-hi), oklch(48% 0.19 300)); color: var(--accent-ink); }
.row b { display: block; font-weight: 600; }
.row-msg { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-st { display: block; font-size: var(--ui-1); color: var(--ink-3); }
.row-st.ai { color: var(--accent-text); }
.row-st.wait { color: var(--ink); font-weight: 600; }
.row-side { display: grid; justify-items: end; align-content: start; gap: 6px; }
.row time { font-size: var(--ui-1); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.unread { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 0.6875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.th-who { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.th-who small { display: block; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--space-3); border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: var(--ui-1); font-weight: 600; white-space: nowrap; }
.tag.human { background: var(--surface-2); color: var(--ink-2); }
.msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); padding: var(--space-4); overflow: hidden; }
.day { align-self: center; margin-bottom: auto; font-size: var(--ui-1); color: var(--ink-3); }
.b { max-width: min(80%, 380px); padding: 9px 13px; border-radius: 14px; }
.b.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.b.out { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.by { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-2); font-size: var(--ui-1); color: var(--ink-3); }
.by b { color: var(--ink); font-weight: 600; }
.typing { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.draft { align-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border: 1px dashed var(--accent-text); border-radius: var(--radius-sm); background: var(--accent-soft); }
.send { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-4); border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: background-color var(--dur-state) var(--ease-out), transform var(--dur-press) var(--ease-out); }
button.send:hover { background: var(--accent-hi); }
button.send:active { transform: scale(0.97); }
.send .ic { width: 16px; height: 16px; }
.composer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: 0 var(--space-4) var(--space-4); height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--ink-3); flex: none; }
.composer .ic { color: var(--accent-text); }
/* Pointer that runs the demo */
.cur { position: absolute; z-index: 6; left: 0; top: 0; width: 24px; height: 24px; pointer-events: none; opacity: 0; filter: drop-shadow(0 3px 5px oklch(20% 0.05 270 / 0.35)); transition: transform 1170ms var(--ease-expo), opacity 420ms var(--ease-out); }
.cur.show { opacity: 1; }
.cur svg { display: block; width: 100%; height: 100%; fill: oklch(20% 0.03 272); stroke: oklch(100% 0 0); stroke-width: 1.6; stroke-linejoin: round; }
.cur::before { content: ""; position: absolute; left: -10px; top: -12px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent-text); opacity: 0; }
.cur.tap::before { animation: tap 680ms var(--ease-out); }

/* Customer info pane */
.info-body { flex: 1; min-height: 0; overflow: hidden; padding: var(--space-4); display: grid; align-content: start; gap: var(--space-3); }
.prof { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-3); align-items: center; }
.prof .av { width: 56px; height: 56px; }
.prof .chb { width: 20px; height: 20px; right: -2px; bottom: -2px; }
.prof b { display: block; font-size: var(--step-0); font-weight: 600; line-height: 1.3; }
.prof small { display: block; color: var(--ink-3); font-size: var(--ui-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags > * { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-2); border-radius: 6px; border: 1px solid var(--line-2); font-size: var(--ui-1); font-weight: 500; color: var(--ink-2); }
.tags > .hot { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }
.blk { display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.lbl { display: flex; align-items: center; gap: var(--space-2); font-size: var(--ui-1); font-weight: 600; color: var(--ink-3); }
.lbl .ic { width: 14px; height: 14px; }
.kv { display: grid; gap: 6px; }
.kv div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-3); }
.kv dt { color: var(--ink-3); font-size: var(--ui-2); }
.kv dd { font-weight: 500; }
.notebox { padding: var(--space-3); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink-2); }
.notebox small { display: block; margin-top: 4px; color: var(--ink-3); font-size: var(--ui-1); }
.none { color: var(--ink-3); }
.owner { display: flex; align-items: center; gap: var(--space-2); font-weight: 500; }
.owner .av { width: 28px; height: 28px; font-size: var(--ui-1); }
.owner small { color: var(--ink-3); font-size: var(--ui-2); font-weight: 400; }
@media (max-width: 1099px) {
  .win-body { grid-template-columns: 300px minmax(0, 1fr); height: auto; }
  .win-body > .pane:nth-child(1), .win-body > .pane:nth-child(2) { height: 500px; }
  .pane.info { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .info-body { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); overflow: visible; }
  .info-body .blk { padding-top: 0; border-top: 0; }
  .info-body .tags { align-content: start; }
}
/* The window needs room for its columns, so phones and small tablets do not get it at all. */
@media (max-width: 899px) { .win-wrap, .sec-win { display: none; } }

/* Channel marquee */
.mq { padding-block: var(--space-7) var(--space-5); }
.mq-view { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-8); }
.mq-set { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-8); }
.mq li { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--step-1); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.mq .ci { width: 36px; height: 36px; border-radius: 10px; }
.mq .ci img { width: 24px; height: 24px; }
.mq.run .mq-track { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: mq-move var(--mq-d, 46.8s) linear infinite; }
.mq.run .mq-set { flex-wrap: nowrap; gap: 0; }
.mq.run li { padding-right: var(--space-8); }
.mq.run .mq-view:hover .mq-track { animation-play-state: paused; }
@keyframes mq-move { to { transform: translateX(calc(-1 * var(--mq-w, 50%))); } }

/* Feature rows */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feat + .feat { margin-top: var(--section-y); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); font-size: var(--ui-3); line-height: 1.45; }
@media (min-width: 900px) { .feat.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .feat.rev .feat-copy { order: 2; } }
@media (max-width: 899px) { .feat { grid-template-columns: minmax(0, 1fr); } .feat-copy h3 { max-width: 24ch; } }

/* Cursor spotlight */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), oklch(66% 0.17 var(--hue) / 0.16), transparent 68%); opacity: 0; transition: opacity var(--dur-layout) var(--ease-out); }
.spot:hover::after { opacity: 1; }

/* Hub: one inbox with room beside it, where a new message shows up (.hub-fly) before site.js slides it into the
   list as the newest row. Beside means to the left on a wide stage and above on a narrow one: the layout follows
   the width of the stage itself, because the same piece sits in wide and narrow columns. Until the script marks
   the hub (.go) there is only the inbox, centred. */
.hub { container-type: inline-size; }
.hub-in { position: relative; display: grid; grid-template-columns: minmax(0, 400px); justify-content: center; }
.hub-src { display: none; }
.go > .hub-in { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: var(--space-5); }
.go .hub-src { display: block; }
.hub-box { overflow: hidden; }
.hub-box .pane-h { min-height: 44px; white-space: nowrap; }
.hub-list { --rh: 60px; height: calc(var(--rh) * 4.5); overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.hub-list .row { grid-template-columns: 40px minmax(0, 1fr); align-items: center; height: var(--rh); padding-block: 0; cursor: default; }
.hub-list .row:hover { background: none; }
.hub-list .row b { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hub-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--t-fg); opacity: 0; transition: opacity 300ms var(--ease-out); }
.hub-list .new .hub-dot { opacity: 1; }
.hub-via { min-width: 0; margin-left: auto; padding: 3px 9px; overflow: hidden; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: var(--ui-1); font-weight: 500; text-overflow: ellipsis; }
.hub-fly { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: var(--space-2); max-width: 240px; height: 36px; padding: 0 var(--space-3) 0 4px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); font-size: var(--ui-2); font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; }
.hub-fly img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.hub-fly span { overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 499px) {
  .go > .hub-in { grid-template-columns: minmax(0, 400px); gap: var(--space-3); }
  .go .hub-src { height: 48px; }
  .hub-list { height: calc(var(--rh) * 3.5); -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
}
@container (max-width: 279px) {
  .hub-list { --rh: 84px; }
  .hub-list .row b { display: grid; justify-items: start; gap: 3px; }
  .hub-dot { display: none; }
  .hub-via { margin: 0; }
}

/* Assistant demo: documents and delegation level */
.docs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.docs > span { flex-basis: 100%; color: var(--ink-3); }
.doc { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--space-3); border: 1px solid var(--line-2); border-radius: 6px; font-weight: 500; }
.doc .ic { width: 16px; height: 16px; color: var(--ink-3); }
.lv { padding: var(--space-5); }
.lv legend { float: left; width: 100%; margin-bottom: var(--space-3); font-weight: 600; }
.seg { position: relative; clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); padding: var(--space-1); background: var(--paper-2); border-radius: var(--radius-sm); }
.seg::before { content: ""; position: absolute; top: var(--space-1); bottom: var(--space-1); left: var(--space-1); width: calc((100% - 4 * var(--space-1)) / 3); border-radius: 6px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2); transition: transform var(--dur-layout) var(--ease-expo); }
.lv:has(#lv-draft:checked) .seg::before { transform: translateX(calc(100% + var(--space-1))); }
.lv:has(#lv-watch:checked) .seg::before { transform: translateX(calc(200% + 2 * var(--space-1))); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: var(--space-2) var(--space-3); border-radius: 6px; font-weight: 500; color: var(--ink-3); cursor: pointer; transition: color var(--dur-state) var(--ease-out); }
.seg label:hover { color: var(--ink); }
.seg input:checked + label { color: var(--ink); font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--accent-text); outline-offset: 2px; }
@media (max-width: 479px) {
  .seg { grid-template-columns: minmax(0, 1fr); }
  .seg::before { right: var(--space-1); width: auto; bottom: auto; height: calc((100% - 4 * var(--space-1)) / 3); }
  .lv:has(#lv-draft:checked) .seg::before { transform: translateY(calc(100% + var(--space-1))); }
  .lv:has(#lv-watch:checked) .seg::before { transform: translateY(calc(200% + 2 * var(--space-1))); }
}
.stage { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-5); min-height: 204px; }
.lv-p { display: none; flex-direction: column; gap: var(--space-2); flex: 1; }
.lv:has(#lv-auto:checked) .p-auto, .lv:has(#lv-draft:checked) .p-draft, .lv:has(#lv-watch:checked) .p-watch { display: flex; }
.empty { display: flex; align-items: center; height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--ink-3); }
.state { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.state .ic { width: 18px; height: 18px; color: var(--accent-text); }

/* Memory demo */
.memo { display: grid; }
.memo-card { padding: var(--space-5); }
.memo-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.memo-head .th-who b { display: block; font-weight: 600; }
.memo-head .th-who small { color: var(--ink-3); font-size: var(--ui-2); }
.memo-head > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: var(--ui-2); }
.memo-head .ic { width: 16px; height: 16px; }
.memlist div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.memlist div:last-child { padding-bottom: 0; }
.memlist dt { color: var(--ink-3); font-size: var(--ui-2); }
.memlist dd { font-weight: 600; }
.later { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) 0 var(--space-4) var(--space-5); color: var(--accent-text); font-size: var(--ui-2); font-weight: 600; }
.later::before { content: ""; width: 2px; height: 44px; border-radius: 2px; background: linear-gradient(var(--line-2), var(--accent-text)); transform-origin: top; }
.memo-chat { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); }
.memo-chat .by { margin-top: 0; }

.tint { background: var(--tint-bg); border-block: 1px solid var(--line); }

/* Stage: the coloured backdrop each illustration floats on */
.stg { position: relative; isolation: isolate; padding: clamp(20px, 3.2vw, 44px); border-radius: 28px; background: linear-gradient(150deg, var(--t-bg), var(--t-mid)); }
.stg::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 70% at 88% 0%, var(--stg-hi), transparent 70%); }
.flt { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-4) 0 var(--space-3); border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); font-size: var(--ui-2); font-weight: 600; white-space: nowrap; }
.flt .ic { width: 18px; height: 18px; color: var(--t-fg); }
.flt .ci { width: 24px; height: 24px; }
.flt .ci img { width: 16px; height: 16px; }
.flt.tr { right: var(--space-5); top: -18px; }
.flt.bl { left: var(--space-5); bottom: -18px; }

/* Dark band on the light page */
.band-dark { position: relative; overflow: clip; isolation: isolate; background: oklch(16% 0.035 272); }
.band-dark::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(40% 70% at 10% 0%, oklch(55% 0.2 277 / 0.42), transparent 70%), radial-gradient(36% 60% at 94% 100%, oklch(62% 0.15 220 / 0.28), transparent 70%); }

/* Section heads: small kicker, two-tone headline */
.kicker { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--ui-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.kicker .ic { width: 18px; height: 18px; }
.sec-head { display: grid; justify-items: center; text-align: center; gap: var(--space-4); margin-bottom: var(--space-8); }
.sec-head h2 { max-width: 36ch; }
.sec-head h2 .hl { display: block; }
.sec-head .lead { font-size: var(--step-0); max-width: 64ch; }
.two .kicker { margin-bottom: var(--space-4); }
@media (max-width: 719px) { .sec-head { margin-bottom: var(--space-7); } }

/* Feature copy: numbered label, headline, then tabs that each own one scene */
.feat-copy h3 { font-size: clamp(1.5rem, 1.22rem + 1.2vw, 2.125rem); line-height: 1.22; letter-spacing: -0.02em; max-width: 20ch; }
.fi-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--t-bg, var(--accent-soft)); color: var(--t-fg, var(--accent-text)); transition: background-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out), transform var(--dur-layout) var(--ease-expo); }
.fx-k { display: inline-flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); font-size: var(--ui-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-fg); }
.fx-k b { display: grid; place-items: center; min-width: 36px; height: 26px; padding: 0 var(--space-3); border-radius: 999px; background: var(--t-fg); color: var(--paper); font-variant-numeric: tabular-nums; }
.tabs { display: grid; gap: var(--space-2); margin-top: var(--space-5); margin-inline: calc(-1 * var(--space-4)); }
.tab { position: relative; overflow: hidden; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-4); width: 100%; padding: var(--space-4); border: 1px solid transparent; border-radius: 18px; text-align: left; transition: background-color var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out); }
.tab:hover { background: var(--hover); }
.tab:hover .fi-ic { transform: translateY(-2px); }
.tab[aria-pressed="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-card), 0 18px 40px -24px var(--t-fg); }
.tab[aria-pressed="true"] .fi-ic { background: var(--t-fg); color: var(--paper); }
.tab b { display: block; padding-block: 8px; font-weight: 600; line-height: 1.4; color: var(--ink-2); transition: color var(--dur-state) var(--ease-out); }
.tab[aria-pressed="true"] b { color: var(--ink); }
.tab .d { display: grid; grid-template-rows: 1fr; color: var(--ink-2); font-size: var(--step--1); line-height: 1.65; transition: grid-template-rows var(--dur-layout) var(--ease-out); }
.tab .d > span { min-height: 0; overflow: hidden; }
.js .tab[aria-pressed="false"] .d { grid-template-rows: 0fr; }
@media (min-width: 900px) { .js .tab[aria-pressed="true"] .d > span { min-height: 4.95em; } }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; pointer-events: none; }
.bar > i { display: block; height: 100%; background: var(--t-fg); transform: scaleX(0); transform-origin: left; }
.fx:not(.auto) [aria-pressed="true"] .bar > i { transform: none; }
/* Each feature block times its tabs its own way: a bar along the bottom, a rail down the side, a ring round the card. */
.fx-flip .tab[aria-pressed="true"] { background: color-mix(in oklch, var(--t-bg) 72%, var(--surface)); border-color: transparent; box-shadow: none; }
.fx-flip .bar { top: 0; right: auto; width: 4px; height: auto; }
.fx-flip .bar > i { transform: scaleY(0); transform-origin: top; }
.fx-iris .bar { inset: 0; height: auto; padding: 2px; border-radius: inherit; background: conic-gradient(var(--t-fg) var(--p), transparent 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.fx-iris .bar > i { background: none; }
.fx-iris .tab:not([aria-pressed="true"]) .bar { visibility: hidden; }
.fx-iris:not(.auto) [aria-pressed="true"] .bar { --p: 100%; }
@media (max-width: 899px) { .tabs { margin-inline: 0; } }

/* Scenes: one per tab, stacked in the same cell so the block never changes height */
.scn { position: relative; isolation: isolate; display: grid; min-width: 0; perspective: 1400px; }
.scn::before { content: ""; position: absolute; z-index: -1; inset: 4% -4% -10%; border-radius: 50%; background: radial-gradient(closest-side, var(--t-fg), color-mix(in oklch, var(--t-fg) 36%, transparent) 40%, transparent); opacity: 0.16; pointer-events: none; }
.sc { grid-area: 1 / 1; display: grid; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.98); transition: opacity 470ms var(--ease-out), transform 680ms var(--ease-expo), visibility 0s 470ms; }
.sc.on { opacity: 1; visibility: visible; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition-delay: 0s; }
.sc > .stg { display: grid; align-content: center; min-width: 0; }
.fx .stg::after, .ipane::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 1px 1px, color-mix(in oklch, var(--t-fg) 30%, transparent) 1px, transparent 1.6px) 0 0 / 20px 20px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 48%); mask-image: linear-gradient(200deg, #000, transparent 48%); }
/* ...and each stage has its own backdrop: a dot grid, a night sky, rings from the corner. They stay still:
   anything that moves underneath a scene forces the whole scene onto its own layer. */
.fx-flip .stg::after { background: radial-gradient(2px 2px at 9% 16%, var(--t-fg) 98%, transparent), radial-gradient(1.5px 1.5px at 23% 7%, var(--t-fg) 98%, transparent), radial-gradient(2.5px 2.5px at 41% 13%, var(--t-fg) 98%, transparent), radial-gradient(1.5px 1.5px at 58% 5%, var(--t-fg) 98%, transparent), radial-gradient(2px 2px at 71% 17%, var(--t-fg) 98%, transparent), radial-gradient(1.5px 1.5px at 86% 9%, var(--t-fg) 98%, transparent), radial-gradient(2px 2px at 94% 30%, var(--t-fg) 98%, transparent), radial-gradient(1.5px 1.5px at 5% 44%, var(--t-fg) 98%, transparent), radial-gradient(2px 2px at 96% 62%, var(--t-fg) 98%, transparent), radial-gradient(1.5px 1.5px at 4% 78%, var(--t-fg) 98%, transparent); -webkit-mask-image: none; mask-image: none; opacity: 0.55; }
.fx-iris .stg::after { background: repeating-radial-gradient(circle at 100% 0%, transparent 0 27px, color-mix(in oklch, var(--t-fg) 20%, transparent) 27px 28.5px); -webkit-mask-image: radial-gradient(110% 110% at 100% 0%, #000, transparent 64%); mask-image: radial-gradient(110% 110% at 100% 0%, #000, transparent 64%); }
.more { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; margin-top: var(--space-5); color: var(--accent-text); font-weight: 600; text-decoration: none; }
.more .ic { width: 18px; height: 18px; transition: transform var(--dur-state) var(--ease-out); }
.more:hover .ic { transform: translateX(5px); }

/* Industries: pick a trade, see its assistant at work */
.itabs { display: flex; gap: var(--space-2); width: fit-content; max-width: 100%; margin: 0 auto var(--space-6); padding: 6px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); }
.itabs::-webkit-scrollbar { display: none; }
.itab { position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border-radius: 999px; font-size: var(--ui-3); font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out); }
.itab .ic { width: 18px; height: 18px; color: var(--t-fg); transition: color var(--dur-state) var(--ease-out); }
.itab:hover { background: var(--t-bg); color: var(--ink); }
.itab[aria-pressed="true"] { background: var(--t-fg); color: var(--paper); }
.itab[aria-pressed="true"] .ic { color: inherit; }
.itab .bar > i { background: var(--paper); opacity: 0.5; }
.ipanes { display: grid; }
.ipane { position: relative; isolation: isolate; grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(28px, 5vw, 72px); min-width: 0; padding: clamp(20px, 4vw, 56px); border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(140deg, var(--surface) 12%, var(--t-bg) 58%, var(--t-mid) 135%); box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.985); transition: opacity 470ms var(--ease-out), transform 680ms var(--ease-expo), visibility 0s 470ms; }
.ipane.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ipane h3 { font-size: clamp(1.5rem, 1.22rem + 1.2vw, 2.125rem); line-height: 1.22; letter-spacing: -0.02em; }
.ipane h3 .hl { display: block; background: none; color: var(--t-fg); animation: none; }
.ipane-copy > p:not([class]) { margin-top: var(--space-4); color: var(--ink-2); }
.ipane .lbl { margin-top: var(--space-5); }
.ipane .docs { margin-top: var(--space-3); padding: 0; border: 0; }
.ipane .doc { background: var(--surface); font-size: var(--ui-3); }
@media (max-width: 899px) { .ipane { grid-template-columns: minmax(0, 1fr); border-radius: 24px; } }

/* Team grid */
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.cell { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); transition: border-color var(--dur-state) var(--ease-out), translate var(--dur-layout) var(--ease-expo); }
.cell:hover { border-color: var(--t-mid); translate: 0 -4px; }
.cell-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--t-bg); color: var(--t-fg); transition: transform var(--dur-layout) var(--ease-expo), background-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out); }
.cell:hover .cell-ic { transform: translateY(-2px) rotate(-6deg); background: var(--t-fg); color: var(--paper); }
.cell p { margin-top: var(--space-2); color: var(--ink-2); }
@media (max-width: 719px) { .grid4 { grid-template-columns: minmax(0, 1fr); } .cell { padding: var(--space-5); } }

/* Data */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.facts li { display: grid; align-content: start; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--line); border-radius: 20px; background: var(--glass); transition: border-color var(--dur-state) var(--ease-out), translate var(--dur-layout) var(--ease-expo); }
.facts li:hover { border-color: var(--line-2); translate: 0 -3px; }
.facts .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.facts b { display: block; font-weight: 600; }
.facts span { display: block; margin-top: var(--space-1); color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 599px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two h2 { max-width: 18ch; }
.two .lead { margin-top: var(--space-5); font-size: var(--step-0); }
@media (max-width: 899px) { .two { grid-template-columns: minmax(0, 1fr); } .two h2 { max-width: 22ch; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); counter-reset: s; }
.steps li { padding: var(--space-6); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, var(--t-bg), var(--surface) 72%); box-shadow: var(--shadow-card); counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; margin-bottom: var(--space-5); font-size: var(--step-4); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--t-fg); font-variant-numeric: tabular-nums; }
.steps p { margin-top: var(--space-2); color: var(--ink-2); }
@media (max-width: 719px) { .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: var(--space-4); min-height: 64px; padding: var(--space-3) 0; font-weight: 600; cursor: pointer; list-style: none; transition: color var(--dur-state) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary .ic { color: var(--ink-3); transition: transform var(--dur-layout) var(--ease-expo); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--accent-text); }
.faq details p { padding: 0 var(--space-7) var(--space-5) 0; color: var(--ink-2); max-width: 62ch; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-layout) var(--ease-out), content-visibility var(--dur-layout) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Closing band: full-bleed and saturated in both themes */
.band { position: relative; overflow: clip; isolation: isolate; padding-block: clamp(64px, 7vw, 128px); text-align: center; background: linear-gradient(120deg, oklch(38% 0.2 282), oklch(47% 0.22 270) 50%, oklch(52% 0.19 246)); }
.band::before, .band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.band::before { width: 680px; height: 680px; right: -180px; top: -320px; background: radial-gradient(closest-side, oklch(80% 0.14 230 / 0.55), transparent); }
.band::after { width: 520px; height: 520px; left: -160px; bottom: -300px; background: radial-gradient(closest-side, oklch(78% 0.15 175 / 0.4), transparent); }
.band-in { display: grid; justify-items: center; gap: var(--space-4); }
.band h2 { font-size: var(--step-4); line-height: 1.16; max-width: 20ch; }
.band p { color: oklch(94% 0.03 var(--hue)); max-width: 58ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); width: min(100%, 780px); margin-block: var(--space-5); }
.stats b { display: block; font-size: var(--step-5); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: var(--space-3); color: oklch(92% 0.03 var(--hue)); font-size: var(--step--1); }
.closing-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }
.band .btn-primary { background: var(--tile); color: var(--on-tile); box-shadow: 0 8px 24px oklch(15% 0.05 var(--hue) / 0.4); }
.band .btn-primary:hover { background: oklch(100% 0 0); }
.band .btn-primary::after { background: linear-gradient(105deg, transparent 35%, oklch(60% 0.19 var(--hue) / 0.22) 50%, transparent 65%); }
.band .btn-primary .arr { background: var(--accent); color: var(--accent-ink); }
.band :focus-visible { outline-color: var(--tile); }
@media (max-width: 599px) { .stats { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* Footer */
.foot { padding-block: var(--space-8) var(--space-6); border-top: 1px solid var(--line); background: oklch(14.5% 0.028 272); font-size: var(--step--1); color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 3fr) repeat(5, minmax(0, 2fr)); gap: var(--space-7) var(--space-6); }
@media (min-width: 720px) and (max-width: 1099px) { .foot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.foot-note p + p { margin-top: var(--space-2); }
.foot .foot-note a { display: inline; min-height: 0; color: inherit; }
.foot-brand img { width: 132px; height: auto; }
.foot-brand p { margin-top: var(--space-4); max-width: 34ch; }
.foot-h { margin-bottom: var(--space-2); font-size: var(--ui-1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.foot li { display: flex; align-items: center; min-height: 40px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color var(--dur-state) var(--ease-out); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--ink-3); }
@media (max-width: 719px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* Motion: everything below only runs when the visitor has not asked for less motion.
   Content is fully visible without it. */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.45em); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes win-in { from { opacity: 0; transform: rotateX(14deg) translateY(48px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes b-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pane-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes unread-pop { 0%, 100% { box-shadow: 0 0 0 0 oklch(60% 0.19 var(--hue) / 0.6); } 50% { box-shadow: 0 0 0 6px oklch(60% 0.19 var(--hue) / 0); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes from-right { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.94) translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* Reveals: site.js adds .in just before a block scrolls into view (.rvx on the root means that is
     armed). The entrance plays once and leaves nothing behind. */
  .rvx :is(.rv, .rv-l, .rv-r, .rv-z, .win-fx):not(.in) { opacity: 0; }
  .rv.in, .rv-l.in, .rv-r.in, .rv-z.in { animation: rise 780ms var(--ease-expo) backwards; animation-delay: calc(var(--d, 0) * 90ms); }
  .rv-l.in { animation-name: from-left; }
  .rv-r.in { animation-name: from-right; }
  .rv-z.in { animation-name: zoom-in; }
  .fx-flip > .feat-copy.in { animation-name: rv-swing; }
  .fx-flip > .scn.in { animation-name: rv-tilt; }
  .fx-iris > .feat-copy.in { animation-name: zoom-in; }
  .fx-iris > .scn.in { animation-name: rv-pop; }
  .win-fx.in { animation: win-in 1300ms var(--ease-expo) 120ms backwards; }
  .eyebrow { animation: rise 910ms var(--ease-expo) both; }
  .hero h1 .w { display: inline-block; animation: word-in 1040ms var(--ease-expo) both; animation-delay: calc(var(--i) * 80ms + 160ms); }
  .hero .lead { animation: rise 1040ms var(--ease-expo) 810ms both; }
  .hero-cta { animation: rise 1040ms var(--ease-expo) 940ms both; }
  .hero-pts { animation: rise 1040ms var(--ease-expo) 1070ms both; }
  .edge::before { animation: edge-t 9.1s linear infinite; }
  .e-r::before { animation-name: edge-r; }
  .e-b::before { animation-name: edge-b; }
  .e-l::before { animation-name: edge-l; }
  .msgs .pop { animation: b-in 490ms var(--ease-out) both; }
  .typing i { animation: dot 1.3s ease-in-out infinite; animation-delay: calc(var(--k) * 180ms); }
  .info-body.sw > * { animation: pane-in 550ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
  .unread { animation: unread-pop 2.6s ease-out infinite; }
  .flt { animation: bob 4.7s ease-in-out infinite alternate; }
  .stage .lv-p > * { animation: b-in 470ms var(--ease-out) both; }
  .stage .lv-p > *:nth-child(2) { animation-delay: 120ms; }
  .stage .lv-p > *:nth-child(3) { animation-delay: 230ms; }

  /* Tabbed showcases: the open tab's bar is the timer, hovering the tabs holds it */
  .auto.live [aria-pressed="true"] .bar > i { animation: grow-x var(--cyc, 8.5s) linear both; }
  .auto.live.fx-flip [aria-pressed="true"] .bar > i { animation-name: grow-y; }
  .auto.live.fx-iris [aria-pressed="true"] .bar > i { animation-name: tick; }
  .auto.live.fx-iris [aria-pressed="true"] .bar { animation: ring-go var(--cyc, 8.5s) linear both; }
  .auto.live .tabs:hover .bar, .auto.live .tabs:hover .bar > i, .auto.live .itabs:hover .bar > i { animation-play-state: paused; }
  /* The open tab's icon reacts differently in each block, and so do the backdrop and the floating label. */
  .fx-slide [aria-pressed="true"] .fi-ic { animation: ic-pop 730ms var(--ease-expo); }
  .fx-flip [aria-pressed="true"] .fi-ic { animation: ic-turn 990ms var(--ease-expo); }
  .fx-iris [aria-pressed="true"] .fi-ic { animation: ic-beat 1300ms var(--ease-out); }
  .fx-flip .flt { transform-origin: 50% -60px; animation: sway 5.5s ease-in-out infinite alternate; }
  .fx-iris .flt { animation: chip-beat 3.4s ease-in-out infinite; }
  .ipane.on .stag > * { animation: b-in 600ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 120ms + 210ms); }

  /* Feature scenes. Each block changes scene its own way and every scene has its own entrance,
     held back (.seen) until the visitor can see it. */
  .armed .sc.on > .stg > * { transition: opacity 550ms var(--ease-out); }
  .armed:not(.seen) .sc.on > .stg > * { opacity: 0; }
  .fx-slide .sc:not(.on) { transform: translateX(-64px); }
  .fx-slide .sc.on { animation: sc-slide 830ms var(--ease-expo) backwards; }
  .fx-flip .sc:not(.on) { transform: rotateY(70deg) scale(0.92); }
  .fx-flip .sc.on { animation: sc-flip 1010ms var(--ease-expo) backwards; }
  .fx-iris .sc:not(.on) { transform: scale(0.94); }
  .fx-iris .sc.on { animation: sc-iris 1170ms var(--ease-out) backwards; }
  /* Hộp thư: the inbox rises; site.js then feeds it one message at a time */
  .seen .sc.on[data-fx="hub"] .hub-box { animation: hub-up 820ms var(--ease-expo) 320ms backwards; }
  .hub-list .new .row { animation: hub-new 2200ms var(--ease-out) 420ms backwards; }
  /* Kết nối: tiles flip up in a wave, then keep rippling */
  .seen .sc.on[data-fx="wall"] .wall li { animation: tile-flip 880ms var(--ease-expo) backwards, tile-wave 4.7s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 70ms + 210ms), calc(var(--n, 0) * 200ms + 2340ms); }
  .seen .sc.on[data-fx="wall"] .wall .ok { animation: pop-in 550ms var(--ease-expo) backwards; animation-delay: calc(var(--n, 0) * 70ms + 940ms); }
  /* Phân việc: rows drop in, then a highlight walks down the list */
  .seen .sc.on[data-fx="scan"] .lst li { transform-origin: 50% 0; animation: row-drop 780ms var(--ease-expo) backwards; animation-delay: calc(var(--n, 0) * 160ms + 210ms); }
  .seen .sc.on[data-fx="scan"] .lrow { animation: row-scan 6.8s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 1.7s + 1.7s); }
  .seen .sc.on[data-fx="scan"] .lrow .tag { animation: pop-in 600ms var(--ease-expo) backwards; animation-delay: calc(var(--n, 0) * 160ms + 810ms); }
  /* Đêm qua: the night's conversations slide in one after another, each status flips over */
  .seen .sc.on[data-fx="night"] .lst li { animation: from-right 810ms var(--ease-expo) backwards; animation-delay: calc(var(--n, 0) * 360ms + 260ms); }
  .seen .sc.on[data-fx="night"] .lrow .av { animation: pop-in 680ms var(--ease-expo) backwards; animation-delay: calc(var(--n, 0) * 360ms + 360ms); }
  .seen .sc.on[data-fx="night"] .lrow .tag { animation: flip-x 730ms var(--ease-expo) backwards; animation-delay: calc(var(--n, 0) * 360ms + 860ms); }
  /* Giao việc: documents pop in, then site.js walks through the three levels */
  .seen .sc.on[data-fx="lv"] .doc { animation: pop-in 600ms var(--ease-expo) 260ms backwards; }
  .seen .sc.on[data-fx="lv"] .doc:nth-child(3) { animation-delay: 390ms; }
  .seen .sc.on[data-fx="lv"] .doc:nth-child(4) { animation-delay: 520ms; }
  /* Ghi nhớ: tags pop, each remembered line is written in */
  .seen .sc.on[data-fx="mem"] .prof { animation: b-in 680ms var(--ease-out) 210ms backwards; }
  .seen .sc.on[data-fx="mem"] .tags > * { animation: pop-in 680ms var(--ease-expo) 550ms backwards; }
  .seen .sc.on[data-fx="mem"] .tags > :nth-child(2) { animation-delay: 680ms; }
  .seen .sc.on[data-fx="mem"] .tags > :nth-child(3) { animation-delay: 810ms; }
  .seen .sc.on[data-fx="mem"] .lbl .ic { animation: twirl 1170ms var(--ease-expo) 910ms backwards; }
  .seen .sc.on[data-fx="mem"] .kv dd { justify-self: start; border-radius: 4px; animation: write-in 810ms steps(10, end) backwards, mem-flash 2080ms ease-out backwards; animation-delay: calc(var(--m, 0) * 550ms + 1040ms); }
  .seen .sc.on[data-fx="mem"] .blk ~ .blk { animation: b-in 680ms var(--ease-out) 3250ms backwards; }
  .seen .sc.on[data-fx="mem"] .blk ~ .blk ~ .blk { animation-delay: 3510ms; }
  /* Nhớ lại: the note, two months pass, then the reply picks up what was remembered */
  .seen .sc.on[data-fx="recall"] .memo-card { animation: b-in 680ms var(--ease-out) 180ms backwards; }
  .seen .sc.on[data-fx="recall"] .later { animation: b-in 550ms var(--ease-out) 910ms backwards; }
  .seen .sc.on[data-fx="recall"] .later::before { animation: grow-y 680ms var(--ease-out) 990ms backwards; }
  .seen .sc.on[data-fx="recall"] .memo-chat { animation: b-in 680ms var(--ease-out) 1630ms backwards; }
  .seen .sc.on[data-fx="recall"] .memo-chat > * { animation: b-in 550ms var(--ease-out) 1950ms backwards; }
  .seen .sc.on[data-fx="recall"] .memo-chat > :nth-child(2) { animation-delay: 2600ms; }
  .seen .sc.on[data-fx="recall"] .memo-chat > :nth-child(3) { animation-delay: 2800ms; }
  .seen .sc.on[data-fx="recall"] .memo-chat > :nth-child(4) { animation-delay: 3580ms; }
  .seen .sc.on[data-fx="recall"] .rc { animation: rc-in 910ms var(--ease-out) 4290ms backwards; }
  /* Sửa: rows settle, then site.js types the correction and saves it */
  .seen .sc.on[data-fx="edit"] .memlist > div { animation: b-in 600ms var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 120ms + 210ms); }
  .ipane.on .shot > img { animation: shot-in 1170ms var(--ease-expo) both; }
  .caret { animation: blink 1.3s steps(1) infinite; }
  .hl { animation: hl-pan 7.8s ease-in-out infinite alternate; }
  .hero h1 .rot { animation: word-in 1040ms var(--ease-expo) 680ms both; }
  /* Headline slot: site.js names the move, the marker under the word redraws each time */
  .rot > .on { animation: var(--rin, none), r-mark 910ms var(--ease-out) 210ms both; }
  .rot > .out { animation: var(--rout, r-fade 290ms var(--ease-out) both); }
  .rot[data-fx="flip"] { --rin: r-flip-in 830ms var(--ease-expo) both; --rout: r-flip-out 550ms var(--ease-out) both; }
  .rot[data-fx="blur"] { --rin: r-blur-in 910ms var(--ease-out) both; --rout: r-blur-out 550ms var(--ease-out) both; }
  .rot[data-fx="slide"] { --rin: r-slide-in 810ms var(--ease-expo) both; --rout: r-slide-out 490ms var(--ease-out) both; }
  .rot[data-fx="drop"] { --rin: r-drop-in 990ms var(--ease-out) both; --rout: r-drop-out 490ms ease-in both; }
  .rot[data-fx="zoom"] { --rin: r-zoom-in 810ms var(--ease-out) both; --rout: r-zoom-out 490ms var(--ease-out) both; }
  .rot[data-fx="wipe"] { --rin: r-wipe-in 910ms var(--ease-expo) both; --rout: r-wipe-out 550ms var(--ease-out) both; }
  .rot[data-fx="swing"] { --rin: r-swing-in 1070ms var(--ease-out) both; --rout: r-swing-out 490ms var(--ease-out) both; }
  .rot[data-fx="chars"] .on .t i { animation: r-char 780ms var(--ease-expo) both; animation-delay: calc(var(--c) * 50ms); }
  .rot[data-fx="type"] .on .t::after { content: ""; display: inline-block; width: 0.06em; height: 0.86em; margin-left: 0.06em; vertical-align: -0.06em; background: var(--ink); animation: blink 910ms steps(1) infinite; }
  /* Key phrases: the looping and pointer-driven parts */
  .k-shine.in { animation: k-shine 4.9s linear infinite; }
  .k-shine:hover { animation-duration: 1.6s; }
  .k-brush.in:hover { animation: k-draw 680ms var(--ease-out); }
  .k-line.in:hover { animation: k-draw 680ms var(--ease-out); }
  .k-zig.in:hover { animation: k-flow 680ms linear infinite; }
  .k-block.in:hover { animation: k-block 880ms var(--ease-expo); }
  .k-ring:hover path, .k-scrib:hover path { animation: k-stroke 990ms var(--ease-out); }
  .k-wave:hover i { animation: k-hop 810ms var(--ease-out) calc(var(--c) * 40ms); }

}

.stag > :nth-child(2) { --n: 1; } .stag > :nth-child(3) { --n: 2; } .stag > :nth-child(4) { --n: 3; } .stag > :nth-child(5) { --n: 4; } .stag > :nth-child(6) { --n: 5; } .stag > :nth-child(7) { --n: 6; }
.stag > :nth-child(8) { --n: 7; } .stag > :nth-child(9) { --n: 8; } .stag > :nth-child(10) { --n: 9; } .stag > :nth-child(11) { --n: 10; } .stag > :nth-child(12) { --n: 11; } .stag > :nth-child(13) { --n: 12; }
.kv > div:nth-child(2) { --m: 1; } .kv > div:nth-child(3) { --m: 2; } .kv > div:nth-child(4) { --m: 3; }
@keyframes k-draw { from { background-size: 0 100%; } }
@keyframes k-flow { to { background-position-x: -20px; } }
@keyframes k-block { 0% { background-position: 100% 0; background-size: 100% 100%; } 45% { background-position: 100% 0; background-size: 0 100%; color: var(--ink); } 46% { background-position: 0 0; background-size: 0 100%; color: var(--ink); } 100% { background-position: 0 0; background-size: 100% 100%; } }
@keyframes k-shine { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes k-stroke { from { stroke-dashoffset: 1; } }
@keyframes k-hop { 40% { top: -0.3em; } }
@keyframes r-mark { from { background-size: 0 32%; } }
@keyframes r-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes r-flip-in { from { opacity: 0; transform: translateY(0.55em) rotateX(-80deg); } }
@keyframes r-flip-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-0.55em) rotateX(80deg); } }
@keyframes r-blur-in { from { opacity: 0; filter: blur(14px); transform: scale(1.14); } }
@keyframes r-blur-out { from { opacity: 1; } to { opacity: 0; filter: blur(14px); transform: scale(0.9); } }
@keyframes r-slide-in { from { opacity: 0; transform: translateX(0.9em) skewX(-16deg); } }
@keyframes r-slide-out { from { opacity: 1; } to { opacity: 0; transform: translateX(-0.9em) skewX(16deg); } }
@keyframes r-drop-in { from { opacity: 0; transform: translateY(-1.1em) rotate(-7deg); } 60% { opacity: 1; transform: translateY(0.09em) rotate(1.5deg); } 80% { transform: translateY(-0.04em); } }
@keyframes r-drop-out { from { opacity: 1; } to { opacity: 0; transform: translateY(0.9em) rotate(9deg); } }
@keyframes r-zoom-in { from { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.08); } }
@keyframes r-zoom-out { from { opacity: 1; } to { opacity: 0; filter: blur(8px); transform: scale(1.5); } }
@keyframes r-wipe-in { from { opacity: 1; clip-path: inset(-20% 100% -20% 0); } to { opacity: 1; clip-path: inset(-20% -10% -20% 0); } }
@keyframes r-wipe-out { from { opacity: 1; clip-path: inset(-20% 0 -20% 0); } to { opacity: 1; clip-path: inset(-20% 0 -20% 100%); } }
@keyframes r-swing-in { from { opacity: 0; transform: rotate(16deg) translateY(0.5em); } 55% { opacity: 1; transform: rotate(-4deg); } 80% { transform: rotate(1.5deg); } }
@keyframes r-swing-out { from { opacity: 1; } to { opacity: 0; transform: rotate(-12deg) translateY(-0.4em); } }
@keyframes r-char { from { opacity: 0; transform: translateY(0.7em) rotate(14deg) scale(0.5); } }
@keyframes ring-go { to { --p: 100%; } }
@keyframes tick { to { opacity: 1; } }
@keyframes ic-pop { from { transform: scale(0.5) rotate(-20deg); } 60% { transform: scale(1.15) rotate(6deg); } }
@keyframes ic-turn { from { transform: perspective(300px) rotateY(180deg); } }
@keyframes ic-beat { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--t-fg) 60%, transparent); } 30% { transform: scale(1.14); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes chip-beat { 0%, 100% { transform: none; } 50% { transform: scale(1.06); } }
@keyframes rv-swing { from { opacity: 0; transform: translateY(40px) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes rv-tilt { from { opacity: 0; transform: perspective(1200px) rotateX(38deg) translateY(60px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes rv-pop { from { opacity: 0; transform: scale(0.8) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes rc-in { from { background-size: 0 100%; } }
@keyframes tap { from { opacity: 0.9; transform: scale(0.3); } to { opacity: 0; transform: scale(1.5); } }
@keyframes edge-t { 0% { transform: translateX(-50%); } 48.15% { transform: translateX(100%); } 48.16%, 83.95% { transform: translateX(-100%); } 100% { transform: translateX(-50%); } }
@keyframes edge-r { 0%, 23.15% { transform: translateY(-100%); } 58.95%, 100% { transform: translateY(100%); } }
@keyframes edge-b { 0%, 33.95% { transform: translateX(100%); } 98.15%, 100% { transform: translateX(-100%); } }
@keyframes edge-l { 0% { transform: translateY(-50%); } 8.95% { transform: translateY(-100%); } 8.96%, 73.15% { transform: translateY(100%); } 100% { transform: translateY(-50%); } }
@keyframes sc-slide { from { opacity: 0; transform: translateX(84px); } }
@keyframes sc-flip { from { opacity: 0; transform: rotateY(-70deg) scale(0.92); } }
@keyframes sc-iris { from { clip-path: circle(0% at 0% 50%); } to { clip-path: circle(142% at 0% 50%); } }
@keyframes hub-up { from { opacity: 0; transform: translateY(26px); } }
@keyframes hub-new { 0% { opacity: 0; transform: scale(0.94); background-color: color-mix(in oklch, var(--t-fg) 22%, transparent); } 12% { opacity: 1; transform: none; } 40% { background-color: color-mix(in oklch, var(--t-fg) 22%, transparent); } 100% { background-color: transparent; } }
@keyframes tile-flip { from { opacity: 0; transform: perspective(500px) rotateY(-92deg) scale(0.8); } }
@keyframes tile-wave { 0%, 16%, 100% { translate: 0 0; border-color: var(--line); } 8% { translate: 0 -8px; border-color: var(--t-fg); } }
@keyframes row-drop { from { opacity: 0; transform: perspective(700px) translateY(-26px) rotateX(-55deg); } }
@keyframes row-scan { 0%, 25%, 100% { background-color: transparent; } 5%, 20% { background-color: color-mix(in oklch, var(--t-fg) 12%, transparent); } }
@keyframes flip-x { from { opacity: 0; transform: perspective(300px) rotateX(92deg); } }
@keyframes twirl { from { transform: rotate(-180deg) scale(0); } 60% { transform: rotate(20deg) scale(1.5); } }
@keyframes write-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -6px 0 0); } }
@keyframes mem-flash { from, 45% { background-color: color-mix(in oklch, var(--t-fg) 26%, transparent); } to { background-color: transparent; } }
@keyframes hl-pan { to { background-position: 100% 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes shot-in { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes cat-bob { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
@keyframes cat-turn { 0%, 10%, 42%, 54%, 86%, 100% { rotate: 0deg; translate: 0 0; } 18%, 34% { rotate: -10deg; translate: -7px 3px; } 62%, 78% { rotate: 10deg; translate: 7px 3px; } }
@keyframes cat-face { 0%, 10%, 42%, 54%, 86%, 100% { translate: 0 0; } 18%, 34% { translate: -14px 2px; } 62%, 78% { translate: 14px 2px; } }
@keyframes cat-ears { 0%, 10%, 42%, 54%, 86%, 100% { translate: 0 0; } 18%, 34% { translate: -6px 0; } 62%, 78% { translate: 6px 0; } }
@keyframes cat-far-l { 0%, 10%, 42%, 100% { scale: 1 1; } 18%, 34% { scale: 0.74 1; } }
@keyframes cat-far-r { 0%, 54%, 86%, 100% { scale: 1 1; } 62%, 78% { scale: 0.74 1; } }
@keyframes cat-look { 0%, 6%, 40%, 50%, 84%, 100% { translate: 0 0; } 13%, 33% { translate: -7px 0; } 57%, 77% { translate: 7px 0; } }
@keyframes cat-blink { 0%, 92%, 100% { scale: 1 1; } 96% { scale: 1 0.08; } }
@keyframes cat-ear { 0%, 80%, 100% { rotate: 0deg; } 86% { rotate: -16deg; } 92% { rotate: 9deg; } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .hl { animation: word-in 1170ms var(--ease-expo) 160ms both, hl-pan 7.8s ease-in-out infinite alternate; }
  .orb { animation: zoom-in 1430ms var(--ease-expo) 390ms both; }
  .orb-ring.r1 { animation: spin 41.6s linear infinite; }
  .orb-ring.r1 .sat span { animation: spin-rev 41.6s linear infinite; }
  .orb-ring.r2 { animation: spin-rev 29.9s linear infinite; }
  .orb-ring.r2 .sat span { animation: spin 29.9s linear infinite; }
  .cat { animation: cat-bob 2.6s ease-in-out infinite alternate; }
  .cat-head { animation: cat-turn 7s ease-in-out infinite; }
  .cat-face { animation: cat-face 7s ease-in-out infinite; }
  .cat-ears { animation: cat-ears 7s ease-in-out infinite; }
  .cat-el { animation: cat-far-l 7s ease-in-out infinite; }
  .cat-er { animation: cat-far-r 7s ease-in-out infinite; }
  .cat-eye { animation: cat-blink 3.6s ease-in-out infinite, cat-look 7s ease-in-out infinite; }
  .cat-ear { animation: cat-ear 4s ease-in-out infinite; }
  .cat-ear + .cat-ear { animation-delay: 300ms; }
}

/* Sub-pages */
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); margin-bottom: var(--space-3); font-size: var(--ui-2); color: var(--ink-3); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--accent-text); }
.crumb [aria-current] { color: var(--ink); font-weight: 500; }
.hero.sub { padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: clamp(32px, 3vw, 56px); }
.hero.sub .hero-grid { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); }
.hero.sub h1 { font-size: clamp(2rem, 1.1rem + 2.3vw, 2.75rem); }
.hero-vis { position: relative; min-width: 0; }
@media (max-width: 899px) { .hero.sub .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-vis { margin-top: var(--space-5); } }
@media (prefers-reduced-motion: no-preference) { .hero-vis { animation: zoom-in 1430ms var(--ease-expo) 390ms both; } }

/* Benefit cards */
.bens { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.ben { flex: 1 1 calc((100% - 2 * var(--space-4)) / 3); min-width: 280px; max-width: 389px; display: grid; align-content: start; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); transition: border-color var(--dur-state) var(--ease-out), translate var(--dur-layout) var(--ease-expo); }
.bens.n4 .ben { flex-basis: 40%; max-width: 592px; }
.ben:hover { border-color: var(--t-mid); translate: 0 -4px; }
.ben:hover .cell-ic { transform: translateY(-2px) rotate(-6deg); background: var(--t-fg); color: var(--paper); }
.ben p { color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 719px) { .ben, .bens.n4 .ben { flex-basis: 100%; max-width: none; padding: var(--space-5); } }

/* Feature rows on sub-pages: paragraph and check list */
.feat-copy > p { margin-top: var(--space-4); color: var(--ink-2); }
.checks { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); color: var(--ink-2); }
.checks .ic { width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%; background: var(--t-bg, var(--accent-soft)); color: var(--t-fg, var(--accent-text)); stroke-width: 2.5; }

/* Link cards to other pages */
.rels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.rel { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; align-items: center; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); text-decoration: none; transition: border-color var(--dur-state) var(--ease-out), translate var(--dur-layout) var(--ease-expo); }
.rel:hover { border-color: var(--t-mid, var(--line-2)); translate: 0 -4px; }
.rel .ci { width: 48px; height: 48px; border-radius: 14px; }
.rel .ci img { width: 28px; height: 28px; }
.rel b { display: block; font-weight: 600; line-height: 1.35; }
.rel small { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--ui-2); line-height: 1.45; }
.rel > .ic { color: var(--ink-3); transition: transform var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out); }
.rel:hover > .ic { transform: translateX(4px); color: var(--t-fg, var(--accent-text)); }
@media (max-width: 999px) { .rels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .rels { grid-template-columns: minmax(0, 1fr); } }

/* Capability table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); }
.tbl { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--step--1); }
.tbl th, .tbl td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { font-size: var(--ui-1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { font-weight: 600; white-space: nowrap; }
.tbl tbody th span { display: inline-flex; align-items: center; gap: var(--space-3); }
.tbl td { color: var(--ink-2); }

/* Illustrations built from product pieces */
.tcard .msgs, .phone .msgs { justify-content: flex-start; }
.tcard .day, .phone .day { margin-bottom: 0; }
.gap { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-block: var(--space-2); padding: 4px var(--space-3); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: var(--ui-1); font-weight: 600; }
.gap .ic { width: 14px; height: 14px; }
.phone { width: min(300px, 100%); margin-inline: auto; padding: 10px; border-radius: 42px; background: oklch(19% 0.03 272); box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.12), var(--shadow-win); }
.phone-in { display: flex; flex-direction: column; min-height: 470px; border-radius: 32px; overflow: hidden; background: var(--surface); font-size: var(--ui-3); line-height: 1.45; }
.phone-top { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); }
.phone-top b { display: block; font-weight: 600; }
.phone-top small { display: block; color: var(--ink-3); font-size: var(--ui-1); }
.phone .msgs { padding: var(--space-4) var(--space-3); }
.phone .b { max-width: 86%; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; flex: none; height: 40px; margin: 0 var(--space-3) var(--space-3); padding: 0 var(--space-4); border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-3); }
.phone-bar .ic { width: 18px; height: 18px; color: var(--accent-text); }
.lst .pane-h { min-height: 52px; }
.lrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.lst li:last-child .lrow { border-bottom: 0; }
.lrow .cell-ic { width: 40px; height: 40px; border-radius: 12px; }
.lrow b { display: block; font-weight: 600; }
.lrow small { display: block; color: var(--ink-3); font-size: var(--ui-2); }
.aprof { display: grid; gap: var(--space-4); padding: var(--space-5); }
.aprof-h { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); }
.aprof-h .av { width: 52px; height: 52px; font-size: var(--step-1); }
.aprof-h b { display: block; font-size: var(--step-0); font-weight: 600; }
.aprof-h small { display: block; color: var(--ink-3); font-size: var(--ui-2); }
.aprof .docs { padding: 0; border: 0; }
.chs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cust { display: grid; gap: var(--space-3); padding: var(--space-4); }
.mtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding: var(--space-4); }
.mtile { padding: var(--space-4); border-radius: 14px; background: var(--paper-2); }
.mtile small { display: block; color: var(--ink-3); font-size: var(--ui-1); }
.mtile b { display: block; margin-top: 2px; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: var(--space-2); height: 104px; padding: 0 var(--space-4) var(--space-4); }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--t-fg, var(--accent)); opacity: 0.85; }
.bars i:nth-child(even) { opacity: 0.45; }
.shot { position: relative; padding-bottom: var(--space-8); }
.shot > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-win); }
.shot .tcard { position: absolute; right: 0; bottom: 0; width: min(330px, 86%); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
.shot .flt { left: var(--space-4); right: auto; top: var(--space-4); }

/* Platform wall, memory being edited, extra platforms under the capability table */
.wall { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); padding: var(--space-4); }
.wall li { position: relative; display: grid; justify-items: center; gap: 6px; flex: none; width: calc((100% - 4 * var(--space-2)) / 5); min-width: 78px; padding: var(--space-3) 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); font-size: var(--ui-1); }
.wall .ci { width: 40px; height: 40px; border-radius: 12px; }
.wall .ci img { width: 26px; height: 26px; }
.wall b { font-weight: 600; white-space: nowrap; }
.wall .ok { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: oklch(60% 0.15 165); color: oklch(100% 0 0); }
.wall .ok .ic { width: 10px; height: 10px; stroke-width: 3.5; }
.memlist .edit dd { display: grid; gap: var(--space-2); }
.inp { display: flex; align-items: center; min-height: 38px; padding: 0 var(--space-3); border: 1.5px solid var(--t-fg, var(--accent)); border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 4px color-mix(in oklch, var(--t-fg, var(--accent)) 16%, transparent); }
.caret { width: 1.5px; height: 1.15em; margin-left: 2px; background: var(--ink); }
.acts { display: flex; gap: var(--space-2); }
.save { transition: transform 160ms var(--ease-out), background-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out); }
.save.press { transform: scale(0.88); }
.saved { display: inline-flex; align-items: center; gap: 4px; margin-left: var(--space-2); color: oklch(58% 0.15 165); font-size: var(--ui-1); font-weight: 600; opacity: 0; transition: opacity 390ms var(--ease-out); }
.saved .ic { width: 14px; height: 14px; stroke-width: 3; }
.edit.ok .saved { opacity: 1; }
.edit.ok .inp { border-color: oklch(60% 0.15 165); box-shadow: 0 0 0 4px oklch(60% 0.15 165 / 0.18); }
.edit.ok .caret { visibility: hidden; }
.edit.ok .save { background: oklch(60% 0.15 165); color: oklch(100% 0 0); }
.memo-card .state { margin-top: var(--space-4); }
.tbl-more { margin-top: var(--space-6); padding: var(--space-5); border: 1px dashed var(--line-2); border-radius: 20px; }
.pchips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.pchips li { display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-4) 0 var(--space-2); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: var(--ui-3); font-weight: 600; scroll-margin-top: calc(var(--header-h) + var(--space-5)); }
.pchips li:target { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.tbl-more .hint { justify-content: flex-start; margin-top: var(--space-3); }

/* Long-form pages: legal, company, contact, blog */
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--accent-text) inset; color: var(--accent-text); }
.doc-head { padding-top: calc(var(--header-h) + var(--space-6)); padding-bottom: var(--space-6); }
.doc-head h1 { max-width: 24ch; font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.doc-head .lead { margin-top: var(--space-4); }
.doc-head.nf { min-height: 60vh; }
.doc-meta { margin-top: var(--space-4); color: var(--ink-3); font-size: var(--ui-3); }
.doc-meta a { color: var(--accent-text); }
.doc-wrap { max-width: 820px; }
.page-doc > .prose { padding-bottom: var(--space-9); }
.prose { color: var(--ink-2); font-size: var(--step-0); line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; color: var(--ink); font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.01em; scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.prose h3 { margin-top: 1.8em; color: var(--ink); font-size: var(--step-1); line-height: 1.4; scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote { padding: var(--space-4) var(--space-5); border-left: 3px solid var(--accent-text); border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper-2); color: var(--ink); }
.prose figure { margin-block: 1.8em; }
.prose figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.prose figcaption { margin-top: var(--space-2); color: var(--ink-3); font-size: var(--ui-3); text-align: center; }
.prose-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.prose-tbl table { width: 100%; border-collapse: collapse; font-size: var(--step--1); line-height: 1.55; }
.prose-tbl th, .prose-tbl td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose-tbl thead th { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.prose-tbl tbody th { width: 34%; color: var(--ink); font-weight: 600; }
.prose-tbl tr:last-child > * { border-bottom: 0; }
.post-cover { max-width: 1040px; }
.post-cover img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-card); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); padding-block: var(--space-7) var(--space-9); max-width: 1040px; }
@media (min-width: 1000px) { .post-grid:has(.toc) { grid-template-columns: 220px minmax(0, 1fr); } .toc { position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; } }
.toc ol { display: grid; gap: var(--space-2); font-size: var(--ui-3); line-height: 1.5; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-text); }
@media (max-width: 999px) { .toc { padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); } }
.post-faq { margin-top: 2.6em; }
.post-faq h2 { margin-bottom: var(--space-4); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.post-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: inherit; text-decoration: none; box-shadow: var(--shadow-card); transition: transform var(--dur-layout) var(--ease-expo), border-color var(--dur-state) var(--ease-out); }
.post-card a:hover { transform: translateY(-3px); border-color: var(--line-2); }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-card-in { display: grid; gap: var(--space-2); padding: var(--space-5); }
.post-card small { color: var(--ink-3); font-size: var(--ui-2); }
.post-card b { color: var(--ink); font-size: var(--step-1); line-height: 1.35; }
.post-card-in > span { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }
.blog-list { padding-top: 0; }
.contact-sec { padding-top: 0; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-8); }
.contact li { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); }
@media (max-width: 719px) { .contact li { flex-direction: row; } }
.contact .cell-ic { flex: none; }
.contact li > span:last-child { display: grid; align-content: start; gap: var(--space-1); min-width: 0; color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }
.contact b { color: var(--ink); font-size: var(--step-0); }
.contact a { justify-self: start; color: var(--accent-text); font-weight: 600; }
