/* Fortax — Introducing hiSAI. One stylesheet, light and dark, no framework. */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Ubuntu+Mono:wght@400;700&display=swap');

:root {
  --bg: #F6F5F1;
  --bg-2: #EEEDE7;
  --surface: #FFFFFF;
  --surface-2: #FAFAF7;
  --ink: #0E1220;
  --ink-2: #3A4053;
  --muted: #6B7184;
  --line: rgba(14, 18, 32, .08);
  --line-2: rgba(14, 18, 32, .14);
  --royal: #3257E0;
  --royal-2: #2340B8;
  --royal-soft: rgba(50, 87, 224, .10);
  --seal: #15B877;
  --stamp: #D9344C;
  --amber: #E0A016;
  --glass: rgba(255, 255, 255, .55);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shade: rgba(14, 18, 32, .06);
  --shadow-1: 0 1px 2px rgba(14, 18, 32, .04), 0 4px 16px rgba(14, 18, 32, .06);
  --shadow-2: 0 2px 6px rgba(14, 18, 32, .05), 0 18px 48px rgba(14, 18, 32, .10);
  --shadow-3: 0 30px 90px rgba(35, 64, 184, .18);
  --radius: 22px;
  --radius-lg: 34px;
  --maxw: 1180px;
  --font: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Ubuntu Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #06070B;
  --bg-2: #0B0D14;
  --surface: #10131C;
  --surface-2: #0C0F17;
  --ink: #F1F3F9;
  --ink-2: #C2C7D6;
  --muted: #8A91A6;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --royal: #6C8BFF;
  --royal-2: #4D6CF0;
  --royal-soft: rgba(108, 139, 255, .14);
  --glass: rgba(22, 26, 38, .45);
  --glass-edge: rgba(255, 255, 255, .16);
  --glass-shade: rgba(0, 0, 0, .35);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .45), 0 24px 60px rgba(0, 0, 0, .5);
  --shadow-3: 0 30px 100px rgba(76, 108, 240, .28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
body.intro-on { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--royal); color: #fff; }
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ── type ─────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--royal);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; }
.h-xl { font: 700 clamp(56px, 11vw, 168px)/.92 var(--font); letter-spacing: -.045em; margin: 0; }
.h-lg { font: 700 clamp(40px, 6vw, 84px)/1 var(--font); letter-spacing: -.035em; margin: 0; }
.h-md { font: 700 clamp(30px, 3.8vw, 52px)/1.06 var(--font); letter-spacing: -.028em; margin: 0; }
.h-sm { font: 500 22px/1.25 var(--font); letter-spacing: -.01em; margin: 0; }
.lead { font: 400 clamp(18px, 1.7vw, 23px)/1.55 var(--font); color: var(--ink-2); margin: 0; max-width: 60ch; }
.muted { color: var(--muted); }
.grad-text {
  background: linear-gradient(100deg, var(--royal) 0%, #7C5CFF 40%, #19B6D8 70%, var(--royal) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }

/* ── liquid glass ─────────────────────────────────────────────────────── */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 var(--glass-shade), var(--shadow-1);
  isolation: isolate;
}
:root[data-theme="dark"] .glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .4), var(--shadow-1); }
/* the specular highlight follows the pointer (--mx, --my set by home.js) */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .45), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
:root[data-theme="dark"] .glass::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(140, 165, 255, .18), transparent 60%); }
.glass:hover::after { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--surface); }
}

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  --b: var(--royal);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 16px/1 var(--font); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, #4A6EF0, var(--royal-2)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px rgba(50, 87, 224, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 40px rgba(50, 87, 224, .45); }
.btn-glass { color: var(--ink); }
.btn-glass:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }

/* ── nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60;
  width: min(1180px, calc(100% - 28px)); height: 62px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 18px;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
body.intro-on .nav { opacity: 0; transform: translate(-50%, -30px); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 23px/1 var(--font); letter-spacing: -.03em; }
.brand-mascot { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2);
  transition: background .25s, color .25s;
}
.nav-links a:hover, .nav-links a.on { background: var(--royal-soft); color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.theme-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2);
  transition: background .25s, transform .4s var(--ease);
}
.theme-btn:hover { background: var(--royal-soft); transform: rotate(-20deg); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .3s; }
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 26px; }
  .nav.open .nav-links { display: flex; background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .menu-btn { display: grid; }
  .nav-end .btn-trial { display: none; }
}

/* ── intro: the video, then everything falls into the black hole ──────── */
.intro {
  position: fixed; inset: 0; z-index: 100; background: #F6F4F0; display: grid; place-items: center;
  transition: opacity .9s var(--ease), visibility .9s;
}
.intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease), transform 1.6s var(--ease), filter 1.2s var(--ease); }
.intro.done video { transform: scale(1.04); opacity: 0; filter: blur(10px); }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-chaos { position: absolute; inset: 0; pointer-events: none; }
.chaos-card {
  position: absolute; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-2); font-size: 14px; line-height: 1.3; white-space: nowrap; opacity: 0;
  border: 1px solid var(--line);
}
.chaos-card b { display: block; font-weight: 500; }
.chaos-card small { color: var(--muted); font-size: 12.5px; }
.chaos-card i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--stamp); margin-right: 8px; vertical-align: 2px; }
.intro-word {
  position: relative; z-index: 3; text-align: center; color: #0E1220; opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.intro-word.show { opacity: 1; transform: none; }
.intro-word p { margin: 0 0 14px; font: 500 15px/1 var(--font); letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.intro-word h2 { margin: 0; font: 700 clamp(64px, 12vw, 180px)/.9 var(--font); letter-spacing: -.05em; }
.intro-skip {
  position: absolute; right: 22px; bottom: 22px; z-index: 5; height: 42px; padding: 0 18px; border-radius: 999px;
  color: #0E1220; font-size: 14px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(14, 18, 32, .14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.intro-sound { right: auto; left: 22px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; justify-items: center; padding: 0 0 clamp(70px, 9vh, 110px); overflow: hidden; }
.hero::after { /* keeps the words readable over the disc's particles */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 58%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 22px; padding-top: 44vh; }
@media (max-height: 760px) { .hero-inner { padding-top: 40vh; gap: 16px; } }
.hero .h-xl { margin-top: 6px; }
.hero .lead { text-align: center; margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.hero-note { font-size: 14px; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px 0 6px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2);
}
.pill svg { width: 16px; height: 16px; flex: none; }
.pill b { height: 28px; padding: 0 11px; display: grid; place-items: center; border-radius: 999px; background: var(--royal); color: #fff; font-weight: 500; font-size: 12.5px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--line-2); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: var(--muted); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ── sections ─────────────────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: clamp(90px, 12vw, 170px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 860px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* film */
.film { padding-top: 40px; }
.film-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #F4F2EE;
  box-shadow: var(--shadow-3); border: 1px solid var(--line);
  transform: perspective(1400px) rotateX(var(--tilt, 14deg)) scale(var(--fs, .92)); transform-origin: 50% 0;
  transition: transform .2s linear;
}
.film-frame video { width: 100%; aspect-ratio: 1600 / 1000; object-fit: cover; }
.film-frame video.v-dark { display: none; }
:root[data-theme="dark"] .film-frame video.v-dark { display: block; }
:root[data-theme="dark"] .film-frame video.v-light { display: none; }
:root[data-theme="dark"] .film-frame { background: #09090B; }
.film-play {
  position: absolute; right: 18px; bottom: 18px; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--ink);
}
.film-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--surface); padding: 34px 28px; }
.stat b { display: block; font: 700 clamp(38px, 4.4vw, 60px)/1 var(--font); letter-spacing: -.04em; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* the rule: numbers from code */
.rule-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 960px) { .rule-grid { grid-template-columns: 1fr; } }
.flow { border-radius: var(--radius-lg); padding: 34px; display: grid; gap: 14px; background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.flow-row { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.flow-row .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--royal-soft); color: var(--royal); }
.flow-row .ic svg { width: 24px; height: 24px; }
.flow-row b { font-weight: 500; display: block; }
.flow-row small { color: var(--muted); font-size: 14px; }
.flow-row.ai .ic { background: rgba(124, 92, 255, .12); color: #7C5CFF; }
.flow-row.ca .ic { background: rgba(21, 184, 119, .12); color: var(--seal); }
.flow-arrow { height: 22px; margin-left: 39px; border-left: 2px dashed var(--line-2); position: relative; }
.flow-arrow::after { content: ""; position: absolute; left: -6px; bottom: -2px; border: 5px solid transparent; border-top-color: var(--line-2); }
.flow-arrow i { position: absolute; left: -4px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--royal); animation: drip 1.6s linear infinite; }
@keyframes drip { from { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(20px); opacity: 0; } }
.proof { border-radius: var(--radius-lg); padding: 34px; display: grid; gap: 22px; align-content: start; }
.proof table { width: 100%; border-collapse: collapse; font-size: 15px; }
.proof th, .proof td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.proof th { font-weight: 500; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.proof td.bad { color: var(--stamp); }
.proof td.good { color: var(--seal); font-weight: 500; }
.bar-compare { display: grid; gap: 10px; }
.bar { height: 14px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 8px; width: 0; transition: width 1.8s var(--ease); }
.bar.old i { background: linear-gradient(90deg, #F08A99, var(--stamp)); }
.bar.new i { background: linear-gradient(90deg, #58D6A5, var(--seal)); }
.in .bar.old i { width: 100%; }
.in .bar.new i { width: 1.2%; min-width: 8px; }
.bar-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }

/* agents */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.agent {
  border-radius: var(--radius); padding: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  display: grid; gap: 14px; align-content: start; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.agent:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.agent.lead { grid-column: span 2; grid-row: span 2; padding: 38px; background: linear-gradient(160deg, var(--royal-soft), transparent 60%), var(--surface); }
@media (max-width: 640px) { .agent.lead { grid-column: auto; grid-row: auto; } }
.agent .face { width: 64px; height: 64px; }
.agent.lead .face { width: 120px; height: 120px; }
.agent h3 { margin: 0; font: 700 22px/1.1 var(--font); letter-spacing: -.02em; }
.agent.lead h3 { font-size: 40px; }
.agent p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.agent.lead p { font-size: 18px; }
.tag { display: inline-flex; width: fit-content; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--bg-2); color: var(--muted); font: 500 12.5px/1 var(--mono); }
.agent ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.agent li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.agent li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--seal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* demo */
.demo { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-3); border: 1px solid var(--line); }
.demo-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dots { display: flex; gap: 7px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.demo-tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.demo-tabs button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .3s, color .3s; }
.demo-tabs button.on { background: var(--royal); color: #fff; }
.demo-body { display: grid; grid-template-columns: 250px 1fr; min-height: 560px; }
@media (max-width: 860px) { .demo-body { grid-template-columns: 1fr; } .demo-side { display: none; } }
.demo-side { border-right: 1px solid var(--line); padding: 18px 12px; display: grid; align-content: start; gap: 4px; background: var(--surface-2); }
.demo-side .t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; }
.demo-side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.demo-side a.on { background: var(--royal-soft); color: var(--ink); }
.demo-side a i { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); }
@media (max-width: 860px) {
  .demo-side { display: none; }
  .demo-bar > .brand { display: none; }
  .demo-tabs { margin-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .demo-tabs button { flex: none; }
  .demo-body { min-height: 620px; }
}
.demo-main { padding: 26px clamp(18px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.msg { max-width: 640px; padding: 14px 18px; border-radius: 20px; font-size: 15.5px; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg.show { opacity: 1; transform: none; }
.msg.me { align-self: flex-end; background: var(--royal); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.ai .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.msg.ai .who svg { width: 20px; height: 20px; }
.tool {
  align-self: flex-start; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; font: 400 14px/1.3 var(--mono);
  background: var(--bg-2); color: var(--ink-2); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tool.show { opacity: 1; transform: none; }
.tool .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--royal); animation: spin 1s linear infinite; }
.tool.done .spin { border: 0; background: var(--seal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { align-self: stretch; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 18px; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); box-shadow: var(--shadow-1); }
.result.show { opacity: 1; transform: none; }
.result h4 { margin: 0 0 12px; font: 500 15px/1.3 var(--font); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kv div { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.kv span { display: block; font-size: 12.5px; color: var(--muted); }
.kv b { font: 500 18px/1.3 var(--font); letter-spacing: -.01em; }
.kv b.g { color: var(--seal); } .kv b.r { color: var(--stamp); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 10px; background: var(--royal-soft); color: var(--royal); font: 400 13px/1 var(--mono); }
.rows { width: 100%; border-collapse: collapse; font-size: 14px; }
.rows td, .rows th { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.rows th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.rows tr { transition: background .5s; }
.rows tr.hit { background: rgba(21, 184, 119, .10); }
.rows tr.ai { background: rgba(124, 92, 255, .10); }
.rows tr.no { background: rgba(217, 52, 76, .08); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.g { background: rgba(21, 184, 119, .14); color: var(--seal); }
.badge.p { background: rgba(124, 92, 255, .14); color: #7C5CFF; }
.badge.r { background: rgba(217, 52, 76, .12); color: var(--stamp); }
.badge.b { background: var(--royal-soft); color: var(--royal); }
.portal { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.portal-url { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font: 400 13px/1 var(--mono); color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.portal-form { padding: 18px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.field span.v { height: 36px; border-radius: 9px; border: 1px solid var(--line-2); display: flex; align-items: center; padding: 0 10px; color: var(--ink); font-size: 14px; background: var(--surface); overflow: hidden; white-space: nowrap; }
.field span.v.typing::after { content: ""; width: 1.5px; height: 16px; background: var(--royal); margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.handover { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(224, 160, 22, .12); color: var(--ink); font-size: 14.5px; opacity: 0; transition: opacity .6s; }
.handover.show { opacity: 1; }
.handover svg { width: 22px; height: 22px; color: var(--amber); flex: none; }

/* recordings */
.rec-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.rec { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-3); background: var(--surface); }
.rec video { width: 100%; }
.rec video.v-dark { display: none; }
:root[data-theme="dark"] .rec video.v-dark { display: block; }
:root[data-theme="dark"] .rec video.v-light { display: none; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; border-radius: var(--radius); padding: 30px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); display: grid; gap: 14px; align-content: start; overflow: hidden; position: relative; min-height: 290px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; } .tile.w6 { grid-column: span 6; }
@media (max-width: 960px) { .tile, .tile.w3, .tile.w4 { grid-column: span 3; } .tile.w6 { grid-column: span 6; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: auto; } }
.tile .ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--royal-soft); color: var(--royal); }
.tile .ic svg { width: 26px; height: 26px; }
.tile h3 { margin: 0; font: 700 25px/1.12 var(--font); letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tile .soon { position: absolute; top: 22px; right: 22px; }
.tile.dark { background: #0A0C14; color: #F1F3F9; border-color: rgba(255, 255, 255, .06); }
.tile.dark p { color: #B9BFD0; }
.tile.dark .ic { background: rgba(108, 139, 255, .16); color: #8EA6FF; }
.mini-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mini-cards span { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.meter { display: grid; gap: 8px; margin-top: 8px; }
.meter div { display: grid; grid-template-columns: 90px 1fr 84px; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.meter i { height: 8px; border-radius: 6px; background: var(--bg-2); position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #7C9BFF, var(--royal)); }

/* security */
.sec-dark { background: #05060A; color: #F1F3F9; overflow: hidden; }
.sec-dark .lead { color: #B9BFD0; }
.sec-dark .eyebrow { color: #8EA6FF; }
.shield-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.shield-grid .h-lg, .card-grid .h-lg { font-size: clamp(38px, 4.6vw, 66px); }
@media (max-width: 960px) { .shield-grid { grid-template-columns: 1fr; } }
.guarantees { display: grid; gap: 14px; }
.guarantee { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.guarantee .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(108, 139, 255, .14); color: #8EA6FF; }
.guarantee .ic svg { width: 22px; height: 22px; }
.guarantee b { display: block; font-weight: 500; font-size: 17px; }
.guarantee span { color: #A8AEC0; font-size: 15px; }
.seal-orb { position: relative; aspect-ratio: 1; max-width: 480px; margin: auto; width: 100%; }
.seal-orb canvas { width: 100%; height: 100%; }
.stepper { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.stepper span { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #D6DAE6; }
.stepper span i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

/* card */
.card-sec { overflow: hidden; }
.card-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
@media (max-width: 960px) { .card-grid { grid-template-columns: 1fr; } }
.card-stage { perspective: 1400px; display: grid; place-items: center; min-height: 420px; }
.bcard {
  width: min(460px, 92vw); aspect-ratio: 1.586; border-radius: 26px; position: relative; overflow: hidden; color: #EAF0FF;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(120, 150, 255, .55), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, rgba(25, 182, 216, .35), transparent 55%),
    linear-gradient(135deg, #0D1640 0%, #1B2F8F 45%, #0A0F2A 100%);
  box-shadow: 0 40px 90px rgba(20, 40, 140, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -18deg)); transform-style: preserve-3d;
  transition: transform .3s var(--ease);
}
.bcard::before { /* holographic sheen */
  content: ""; position: absolute; inset: -40%; background: conic-gradient(from var(--sheen, 0deg), transparent 0 20%, rgba(255, 255, 255, .22) 25%, transparent 32% 70%, rgba(140, 220, 255, .18) 75%, transparent 82%);
  mix-blend-mode: overlay; animation: sheen 8s linear infinite;
}
@property --sheen { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sheen { to { --sheen: 360deg; } }
.bcard .lattice { position: absolute; inset: 0; opacity: .22; }
.bcard .top { position: absolute; top: 24px; left: 26px; right: 26px; display: flex; justify-content: space-between; align-items: center; }
.bcard .brandline { display: flex; align-items: center; gap: 9px; font: 700 20px/1 var(--font); letter-spacing: -.02em; }
.bcard .brandline svg { width: 26px; height: 26px; }
.bcard .nfc { width: 30px; height: 30px; opacity: .9; }
.bcard .chipx { position: absolute; left: 26px; top: 40%; width: 52px; height: 40px; border-radius: 9px; background: linear-gradient(135deg, #F7E3A1, #C9A34B 55%, #F2D98A); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bcard .chipx::after { content: ""; position: absolute; inset: 9px 12px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 4px; }
.bcard .num { position: absolute; left: 26px; bottom: 58px; font: 400 19px/1 var(--mono); letter-spacing: .16em; }
.bcard .bfoot { position: absolute; left: 26px; right: 26px; bottom: 22px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.bcard .verified { color: #7BF0C0; }

/* skills library */
.lib { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 54px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
@media (max-width: 960px) { .lib { grid-template-columns: 1fr; } }
.term { border-radius: 18px; background: #0A0C14; color: #D6DAE6; font: 400 14px/1.7 var(--mono); padding: 20px 22px; overflow-x: auto; box-shadow: var(--shadow-2); }
.term .c { color: #6B7390; } .term .g { color: #7BF0C0; } .term .b { color: #8EA6FF; }

/* pricing */
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; gap: 4px; margin-top: 10px; }
.toggle button { height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: background .35s var(--ease), color .35s; }
.toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.toggle .save { font-size: 12px; color: var(--seal); margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { border-radius: var(--radius); padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.pop { border: 1.5px solid var(--royal); box-shadow: var(--shadow-3); }
.plan.pop .badge { position: absolute; top: -12px; left: 26px; background: var(--royal); color: #fff; height: 26px; padding: 0 12px; border-radius: 999px; }
.plan h3 { margin: 0; font: 700 22px/1 var(--font); }
.plan .price { font: 700 46px/1 var(--font); letter-spacing: -.04em; }
.plan .price small { font: 400 15px/1 var(--font); color: var(--muted); letter-spacing: 0; }
.plan .per { font-size: 13.5px; color: var(--muted); margin-top: -8px; min-height: 20px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--royal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233257E0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan .btn { margin-top: auto; width: 100%; }
.price-note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 4px 24px; transition: box-shadow .4s; }
.faq details[open] { box-shadow: var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font: 500 18px/1.35 var(--font); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 28px/1 var(--font); color: var(--royal); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); }

/* final cta */
.final { text-align: center; padding: clamp(110px, 14vw, 200px) 0; overflow: hidden; }
.final .big-mascot { width: 150px; height: 150px; margin: 0 auto 30px; }
.final .hero-cta { margin-top: 30px; }

/* footer */
.foot {
  position: relative; background: #05060A; color: #C9CEDC; overflow: hidden; padding: 90px 0 0;
  border-top-left-radius: clamp(28px, 5vw, 60px); border-top-right-radius: clamp(28px, 5vw, 60px);
}
.foot::before { content: ""; position: absolute; left: 50%; top: -30%; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(50, 87, 224, .35), transparent); pointer-events: none; }
.foot-top { position: relative; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
@media (max-width: 960px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot .brand { color: #fff; }
.foot h4 { margin: 0 0 16px; font: 500 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #7E869C; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot a { color: #C9CEDC; font-size: 15px; transition: color .2s; }
.foot a:hover { color: #fff; }
.foot-about p { margin: 18px 0 22px; font-size: 15px; color: #9AA1B5; max-width: 34ch; }
.news { display: flex; gap: 8px; max-width: 380px; }
.news input { flex: 1; height: 46px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #fff; padding: 0 18px; font: 400 15px/1 var(--font); outline: none; }
.news input:focus { border-color: #6C8BFF; }
.news .btn { height: 46px; }
.foot-mid { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: #7E869C; }
.foot-mid .status { display: inline-flex; align-items: center; gap: 8px; }
.foot-mid .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 4px rgba(21, 184, 119, .18); }
.wordmark { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 1.2vw; line-height: .76; user-select: none; margin-top: 10px; }
.wordmark span {
  font: 700 clamp(64px, 19vw, 300px)/.76 var(--font); letter-spacing: -.07em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark .peek { flex: none; width: clamp(60px, 13vw, 200px); height: clamp(60px, 13vw, 200px); margin-bottom: -1.5vw; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.socials a:hover { background: rgba(108, 139, 255, .2); }
.socials svg { width: 18px; height: 18px; }

/* the follower mascot */
.buddy { position: fixed; left: 0; top: 0; width: 46px; height: 46px; z-index: 90; pointer-events: none; will-change: transform; opacity: 0; transition: opacity .6s; }
.buddy.on { opacity: 1; }
.buddy-say {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px) scale(.8); white-space: nowrap; padding: 7px 12px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: 13px; opacity: 0; transition: opacity .3s, transform .4s var(--ease);
}
.buddy-say.show { opacity: 1; transform: translate(-50%, -10px) scale(1); }
.mascot-hue { animation: hue 16s ease-in-out infinite; }
/* royal blue most of the time, then once round every colour and home again */
@keyframes hue { 0%, 45% { filter: hue-rotate(0deg) saturate(1.05); } 100% { filter: hue-rotate(360deg) saturate(1.05); } }
.ring-burst { position: fixed; z-index: 89; pointer-events: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--royal); transform: translate(-50%, -50%); animation: burst .7s var(--ease) forwards; }
@keyframes burst { to { width: 90px; height: 90px; opacity: 0; } }
@media (hover: none), (pointer: coarse) { .buddy { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── the light / dark switch: a sun in a cloudy sky, a moon among stars ─── */
.tswitch {
  position: relative; width: 66px; height: 34px; border-radius: 999px; overflow: hidden; flex: none;
  background: linear-gradient(180deg, #7DB6F0, #4E8FDB);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .22), inset 0 -1px 0 rgba(255, 255, 255, .35), 0 1px 0 rgba(255, 255, 255, .5);
  transition: background .7s var(--ease), box-shadow .7s var(--ease);
}
.tswitch:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
.ts-sky { position: absolute; inset: 0; }
.ts-sky i { position: absolute; display: block; transition: transform .7s var(--ease), opacity .6s var(--ease); }
.ts-sky .c1, .ts-sky .c2 { background: #fff; border-radius: 999px; }
.ts-sky .c1 { width: 22px; height: 9px; right: 7px; bottom: 7px; box-shadow: -6px -3px 0 1px #fff, 5px -4px 0 0 #F2F7FF; }
.ts-sky .c2 { width: 14px; height: 6px; right: 26px; top: 8px; opacity: .85; box-shadow: 4px -2px 0 0 #fff; }
.ts-sky .s1, .ts-sky .s2, .ts-sky .s3 { width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0; transform: translateY(8px); box-shadow: 0 0 4px #fff; }
.ts-sky .s1 { left: 12px; top: 9px; } .ts-sky .s2 { left: 22px; top: 20px; width: 1.5px; height: 1.5px; } .ts-sky .s3 { left: 32px; top: 11px; }
.ts-knob {
  position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3A8, #F7C83A 60%, #E6A417);
  box-shadow: 0 0 0 3px rgba(255, 226, 120, .35), 0 0 14px 3px rgba(255, 214, 90, .7), inset -2px -3px 4px rgba(170, 110, 0, .35);
  transition: transform .7s cubic-bezier(.68, -0.3, .27, 1.3), background .7s var(--ease), box-shadow .7s var(--ease);
}
.ts-knob i { position: absolute; border-radius: 50%; background: rgba(150, 160, 190, .55); opacity: 0; transition: opacity .5s var(--ease); }
.ts-knob i:nth-child(1) { width: 7px; height: 7px; left: 6px; top: 12px; }
.ts-knob i:nth-child(2) { width: 4px; height: 4px; left: 14px; top: 6px; }
.ts-knob i:nth-child(3) { width: 3px; height: 3px; left: 16px; top: 17px; }
:root[data-theme="dark"] .tswitch { background: linear-gradient(180deg, #0B1230, #1A2350); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .ts-sky .c1, :root[data-theme="dark"] .ts-sky .c2 { opacity: 0; transform: translateY(14px); }
:root[data-theme="dark"] .ts-sky .s1, :root[data-theme="dark"] .ts-sky .s2, :root[data-theme="dark"] .ts-sky .s3 { opacity: 1; transform: none; animation: twinkle 2.6s ease-in-out infinite; }
:root[data-theme="dark"] .ts-sky .s2 { animation-delay: .8s; } :root[data-theme="dark"] .ts-sky .s3 { animation-delay: 1.5s; }
@keyframes twinkle { 50% { opacity: .35; } }
:root[data-theme="dark"] .ts-knob {
  transform: translateX(32px) rotate(-30deg);
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #E9ECF5 60%, #C9CFDF);
  box-shadow: 0 0 0 3px rgba(220, 228, 255, .12), 0 0 16px 3px rgba(200, 214, 255, .45), inset -2px -3px 4px rgba(120, 130, 160, .35);
}
:root[data-theme="dark"] .ts-knob i { opacity: 1; }
.ts-foot { transform: scale(.9); }

/* ── the theme spreads out from where the mascot is ─────────────────────── */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 999; }
.theme-wave { position: fixed; inset: 0; z-index: 998; pointer-events: none; will-change: clip-path; }
/* the light the mascot gives off as it throws the switch */
.emit {
  position: fixed; z-index: 1000; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none;
  animation: emit 1.1s cubic-bezier(.22, 1, .36, 1) forwards;
}
.emit.to-light { background: radial-gradient(circle, rgba(255, 244, 190, .95), rgba(255, 214, 90, .55) 40%, rgba(255, 214, 90, 0) 70%); }
.emit.to-dark { background: radial-gradient(circle, rgba(210, 222, 255, .9), rgba(80, 105, 230, .55) 40%, rgba(40, 60, 180, 0) 70%); }
@keyframes emit { 0% { transform: scale(.4); opacity: 1; } 60% { opacity: .9; } 100% { transform: scale(26); opacity: 0; } }
.emit-ring { position: fixed; z-index: 1000; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none; border: 2px solid; animation: emitRing 1s cubic-bezier(.22, 1, .36, 1) forwards; }
.emit-ring.to-light { border-color: rgba(255, 210, 80, .9); box-shadow: 0 0 24px rgba(255, 210, 80, .8); }
.emit-ring.to-dark { border-color: rgba(150, 175, 255, .9); box-shadow: 0 0 24px rgba(110, 140, 255, .8); }
@keyframes emitRing { to { transform: scale(9); opacity: 0; } }
.buddy.glowing { filter: drop-shadow(0 0 10px var(--glow, #FFD65A)) drop-shadow(0 0 24px var(--glow, #FFD65A)); }
