/* teleyes landing. Tokens come from the Claude Design prototype (light + dark). */
:root {
  --canvas: #f5f5f7; --surface: #ffffff; --sub: #eef0f3; --bubble: #ffffff;
  --ink: #171717; --ink2: #525866; --ink3: #6b7280; --line: #e3e5ea;
  --focus: #315ea8; --focusbg: rgba(49, 94, 168, .12);
  --ok: #176945; --okbg: #e8f5ec; --warn: #8b5a08; --warnbg: #fbf1de; --err: #b42318; --errbg: #fdecea;
  --glass: rgba(232, 234, 239, .42); --glassline: rgba(255, 255, 255, .84);
  --btn: #171717; --btnink: #ffffff; --shadow: 0 10px 30px rgba(23, 23, 23, .07);
  --fx: radial-gradient(900px 520px at 85% -10%, rgba(49, 94, 168, .10), transparent 60%), radial-gradient(700px 500px at -10% 30%, rgba(150, 120, 210, .08), transparent 60%);
  --dot: rgba(23, 23, 23, .10); --aur1: rgba(49, 94, 168, .20); --aur2: rgba(150, 120, 210, .16); --aur3: rgba(46, 160, 110, .10);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --canvas: #0f1116; --surface: #1b1f27; --sub: #232833; --bubble: #20252e;
  --ink: #eef1f6; --ink2: #a7afbd; --ink3: #8d95a3; --line: #2b313b;
  --focus: #8ab4f8; --focusbg: rgba(138, 180, 248, .16);
  --ok: #5ee08f; --okbg: rgba(34, 197, 94, .14); --warn: #f5c26b; --warnbg: rgba(245, 181, 68, .14); --err: #ff9b91; --errbg: rgba(255, 138, 128, .12);
  --glass: rgba(30, 34, 42, .55); --glassline: rgba(255, 255, 255, .14);
  --btn: #f2f4f8; --btnink: #14171c; --shadow: 0 12px 34px rgba(0, 0, 0, .35);
  --fx: radial-gradient(900px 520px at 85% -10%, rgba(84, 116, 210, .28), transparent 60%), radial-gradient(700px 500px at -10% 30%, rgba(150, 104, 205, .18), transparent 60%);
  --dot: rgba(255, 255, 255, .07); --aur1: rgba(84, 116, 210, .34); --aur2: rgba(150, 104, 205, .24); --aur3: rgba(60, 200, 140, .10);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0f1116; --surface: #1b1f27; --sub: #232833; --bubble: #20252e;
    --ink: #eef1f6; --ink2: #a7afbd; --ink3: #8d95a3; --line: #2b313b;
    --focus: #8ab4f8; --focusbg: rgba(138, 180, 248, .16);
    --ok: #5ee08f; --okbg: rgba(34, 197, 94, .14); --warn: #f5c26b; --warnbg: rgba(245, 181, 68, .14); --err: #ff9b91; --errbg: rgba(255, 138, 128, .12);
    --glass: rgba(30, 34, 42, .55); --glassline: rgba(255, 255, 255, .14);
    --btn: #f2f4f8; --btnink: #14171c; --shadow: 0 12px 34px rgba(0, 0, 0, .35);
    --fx: radial-gradient(900px 520px at 85% -10%, rgba(84, 116, 210, .28), transparent 60%), radial-gradient(700px 500px at -10% 30%, rgba(150, 104, 205, .18), transparent 60%);
    --dot: rgba(255, 255, 255, .07); --aur1: rgba(84, 116, 210, .34); --aur2: rgba(150, 104, 205, .24); --aur3: rgba(60, 200, 140, .10);
    color-scheme: dark;
  }
}

html, body { margin: 0; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { background: var(--canvas); }
[hidden] { display: none !important; }
a { color: inherit; }
a:hover { opacity: .8; }
.root {
  position: relative; min-height: 100vh; background: var(--fx), var(--canvas); background-repeat: no-repeat; color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* mascot: accent in light, inverse in dark */
.m-l, .m-d { display: block; }
.m-d { display: none; }
:root[data-theme="dark"] .m-l { display: none; }
:root[data-theme="dark"] .m-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m-l { display: none; }
  :root:not([data-theme="light"]) .m-d { display: block; }
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--btn); color: var(--btnink); font-weight: 700; font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* nav */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; padding: 0 14px; pointer-events: none; }
.nav {
  pointer-events: auto; position: relative; width: 100%; max-width: 1100px; height: 62px; box-sizing: border-box; padding: 0 10px 0 12px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glassline);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 34px rgba(0, 0, 0, .12); display: flex; align-items: center; gap: 6px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding-right: 10px; }
.brand-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.navlink { height: 40px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink2); text-decoration: none; }
.h-sub:hover { background: var(--sub) !important; color: var(--ink) !important; opacity: 1; }
.theme-btn { flex: none; height: 40px; min-width: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.theme-btn-sq { padding: 0; }
.theme-ico { width: 14px; height: 14px; border-radius: 50%; border: 1.8px solid currentColor; box-sizing: border-box; background: linear-gradient(90deg, transparent 50%, currentColor 50%); }
.menu-btn { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.menu-btn span { width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.cta-nav { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--btn); color: var(--btnink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.menu { position: absolute; top: 70px; left: 0; right: 0; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; }
.menu a { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: 14px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
@media (max-width: 759px) { .wide-only { display: none !important; } }
@media (min-width: 760px) { .narrow-only { display: none !important; } }

/* buttons */
.press:active { transform: scale(.96); }
.lift:hover { transform: translateY(-1px); }

/* form */
.ty-area { display: contents; }
.ty-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ty-field { display: flex; flex-direction: column; gap: 5px; }
.ty-label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.ty-input {
  width: 100%; height: 52px; box-sizing: border-box; padding: 0 18px; border-radius: 15px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; outline: none; transition: border-color .18s, box-shadow .18s;
}
.ty-tel { font-weight: 400; font-variant-numeric: tabular-nums; }
.ty-input::placeholder, .ty-xin::placeholder { color: var(--ink3); opacity: 1; }
.ty-input:focus { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focusbg); }
.ty-input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px var(--errbg); }
.ty-help { font-size: 12.5px; line-height: 1.4; font-weight: 400; color: var(--ink3); }
.ty-help.is-err { font-weight: 600; color: var(--err); }
.ty-msg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; font-weight: 500; }
.ty-msg[data-tone="err"] { color: var(--err); background: var(--errbg); }
.ty-msg[data-tone="focus"] { color: var(--focus); background: var(--focusbg); }
.ty-msg[data-tone="warn"] { color: var(--warn); background: var(--warnbg); }
.ty-msg-text { flex: 1; min-width: 200px; }
.ty-retry { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ty-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--ink2); cursor: pointer; }
.ty-check input, .ty-wlabel input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--focus); cursor: pointer; }
.ty-link { color: var(--focus); font-weight: 600; }
.ty-wcons { overflow: hidden; margin: 0 -12px; }
.ty-wlabel { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); cursor: pointer; background: transparent; box-shadow: none; transition: background .18s, box-shadow .18s; }
.ty-wlabel.is-err { background: var(--errbg); box-shadow: inset 0 0 0 1.5px var(--err); }
.ty-wtext { display: flex; flex-direction: column; gap: 2px; }
.ty-werr { font-weight: 700; color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ty-human:empty { display: none; }
.ty-human { display: flex; justify-content: center; min-height: 0; }
.ty-submit {
  width: 100%; height: 52px; padding: 0 24px; border-radius: 15px; border: 0; background: var(--btn); color: var(--btnink); font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.ty-submit:disabled { cursor: progress; opacity: .92; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; box-sizing: border-box; animation: ty-spin .8s linear infinite; }
@keyframes ty-spin { to { transform: rotate(360deg); } }

.ty-success { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--okbg); border: 1px solid var(--line); }
.ty-s-head { display: flex; align-items: center; gap: 16px; }
.ty-s-cat { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.ty-s-cat img { transform-origin: 50% 90%; }
.ty-s-copy { flex: 1; min-width: 0; }
.ty-s-title { font-size: 19px; font-weight: 800; color: var(--ok); }
.ty-s-sub { font-size: 14px; line-height: 1.5; color: var(--ink2); margin-top: 2px; }
.ty-extra { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ty-extra-lead { font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.ty-extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.ty-xl { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink2); justify-content: flex-end; }
.ty-xin { width: 100%; height: 46px; box-sizing: border-box; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; outline: none; transition: border-color .18s, box-shadow .18s; }
.ty-xin:focus { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focusbg); }
.ty-extra-actions { display: flex; gap: 8px; align-items: center; }
.ty-send { height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--btn); color: var(--btnink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.ty-skip { height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ty-thanks { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.ty-check-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--surface); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.ty-thanks-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.ty-reset { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--focus); cursor: pointer; min-height: 32px; }

.ty-seals { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink3); }
.ty-seals span { display: inline-flex; align-items: center; gap: 7px; }
.ty-seals span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* pinned scroll scenes */
.scene { position: relative; height: 230vh; }
@media (prefers-reduced-motion: no-preference) { .scene[data-scene="regra"] { height: 150vh; } }
.scene-in { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: visible; }
.scene-in > div { width: 100%; }
@media (max-width: 839px) { .scene-in { padding: 64px 0 20px; box-sizing: border-box; } }
@media (prefers-reduced-motion: reduce) { .scene .sc-grid { gap: 28px; } }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0; font: inherit; }
.faq-btn { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.chev { width: 9px; height: 9px; flex: none; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transition: transform .2s; transform: rotate(45deg) translate(-2px, -2px); }
.faq-btn[aria-expanded="true"] .chev { transform: rotate(225deg) translate(-2px, -2px); }
.faq-a { margin: 0; padding: 0 4px 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink2); max-width: 620px; }

img { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene { height: auto; padding: 40px 0; }
  .scene-in { position: static; height: auto; overflow: visible; }
  .chev { transition: none; }
  .lift:hover { transform: none; }
}
.privacy { background: var(--canvas); }

/* open source + price: price card hugs its text, demo card gets the room */
.open-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) { .open-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); } }

/* mascot wrapper used by fx/eye.js and fx/reactions.js */
.cat { display: inline-flex; position: relative; line-height: 0; }

/* fx: eye */
.ty-eye { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ty-eye-patch { fill: #fff; }
.ty-eye-pupil { fill: #3d6fd8; stroke: #3d6fd8; stroke-width: 1; }
:root[data-theme="dark"] .ty-eye-patch { fill: #0f1116; }
:root[data-theme="dark"] .ty-eye-pupil { fill: #7aa6f7; stroke: #7aa6f7; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ty-eye-patch { fill: #0f1116; }
  :root:not([data-theme="light"]) .ty-eye-pupil { fill: #7aa6f7; stroke: #7aa6f7; }
}

/* fx: bait */
.fx-bait-handle { position: absolute; left: calc(55.28% - 24px); top: 142.6px; width: 48px; height: 48px; border-radius: 50%; z-index: 3; cursor: grab; touch-action: none; pointer-events: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.fx-bait-handle.is-on { pointer-events: auto; }
.fx-bait-handle:active { cursor: grabbing; }
.fx-bait-hint { position: absolute; left: calc(55.28% + 20px); right: 0; top: 152px; z-index: 2; margin: 0; font-size: 11px; line-height: 1.25; color: var(--ink2); opacity: 0; pointer-events: none; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .fx-bait-handle, .fx-bait-hint { display: none; } }

/* hero card: no room for the time label on phones */
.card-when { display: none; } /* the notification already says "agora"; in the card it overflowed */

/* footer: no box. It shares the page background; the illustration's sky fades into the canvas.
   Light and dark use their own art, each with a sky that ends exactly in that theme's --canvas. */
.foot { position: relative; margin-top: clamp(24px, 4vw, 48px); color: var(--ink); overflow: hidden; isolation: isolate; }
.foot-in { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 24px 0; box-sizing: border-box; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; } }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.foot-brand p { margin: 18px 0 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 32px; }
.foot-cols h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.foot-cols a { display: flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--ink2); text-decoration: none; transition: color .18s; overflow-wrap: anywhere; }
.foot-cols a:hover { color: var(--ink); opacity: 1; }
.foot a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(28px, 4vw, 44px); font-size: 13.5px; color: var(--ink3); }
/* long fade so the art rises out of the page; with theme-matched art the mask is just insurance */
/* the art slides up under the footer text: its top third is plain sky in the canvas colour */
.foot { --art-h: clamp(300px, 40vw, 740px); }
.foot-art { position: relative; z-index: 0; margin-top: calc(var(--art-h) * -0.34); height: var(--art-h); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
.foot-art img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 100%; display: block; transform-origin: 50% 100%; will-change: transform; }
.foot-art .m-d { display: none; }
:root[data-theme="dark"] .foot-art .m-l { display: none; }
:root[data-theme="dark"] .foot-art .m-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .foot-art .m-l { display: none; }
  :root:not([data-theme="light"]) .foot-art .m-d { display: block; }
}
@media (max-width: 559px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .foot-cols a { overflow-wrap: normal; }
}
@media (max-width: 559px) { .foot-art { margin-top: calc(var(--art-h) * -0.24); } .foot-art img { object-position: 68% 100%; } }

/* fx: radial */
.fx-radial { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; z-index: 15; }
.fx-radial-btn, .fx-radial-ic { border: 1px solid var(--glassline); background: var(--glass); color: var(--ink); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.18)); }
.fx-radial-btn { position: relative; width: 56px; height: 56px; border-radius: 50%; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fx-radial-ico { display: flex; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.fx-radial-btn.is-open .fx-radial-ico { transform: rotate(45deg); }
.fx-radial-items[hidden] { display: none; }
.fx-radial-item { position: absolute; left: 4px; top: 4px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; opacity: 0; }
.fx-radial-ic { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.fx-radial-lab { position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.fx-radial-item:hover .fx-radial-lab, .fx-radial-item:focus-visible .fx-radial-lab { opacity: 1; }
.fx-radial-btn:focus-visible, .fx-radial-item:focus-visible .fx-radial-ic { outline: 2px solid var(--focus); outline-offset: 2px; }
.fx-radial-item:focus-visible { outline: none; }
@media (max-width: 559px) { .fx-radial { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .fx-radial-ico { transition: none; } .fx-radial-lab { transition-duration: .15s; } }

/* fx: theme reveal */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-old(root) { z-index: 1; }
  ::view-transition-new(root) { z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root) { animation-duration: .2s; }
}
html.theme-fade, html.theme-fade body, html.theme-fade header, html.theme-fade section, html.theme-fade footer, html.theme-fade a, html.theme-fade button {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ===== fx: intro (owned by intro task) ===== */
html.ty-intro { overflow: hidden; animation: ty-intro-scroll 0s 4s forwards; }
@keyframes ty-intro-scroll { to { overflow: visible; } }
@keyframes ty-intro-out { to { opacity: 0; visibility: hidden; } }
html.ty-intro::before { content: ""; position: fixed; inset: 0; z-index: 99; background: var(--canvas); animation: ty-intro-out .3s 4s forwards; }
.ty-ov { display: block; position: fixed; inset: 0; z-index: 100; background: var(--canvas); overflow: hidden; pointer-events: none; animation: ty-intro-out .3s 4s forwards; }
.ty-ov-brand { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--ink); }
.ty-ov-cat { display: block; will-change: transform, opacity; }
.ty-ov-cat img { width: 96px; height: 96px; }
.ty-ov-word { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
.ty-ov-blob { position: absolute; left: 0; top: -20vh; width: 300vw; height: 140vh; fill: #315ea8; will-change: transform; }
:root[data-theme="dark"] .ty-ov-blob { fill: #3f6fc0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ty-ov-blob { fill: #3f6fc0; } }
@media (max-width: 600px) { .ty-ov-cat img { width: 80px; height: 80px; } .ty-ov-word { font-size: 24px; } }


/* ===== fx: trail (owned by trail task) ===== */
:root { --trail: #315ea8; --rb-a: #8ab4f8; --rb-b: #315ea8; --rb-c: #1f3f78; --rb-hl: rgba(255, 255, 255, .34); --rb-hl2: rgba(255, 255, 255, .14); --rb-shade: rgba(12, 28, 66, .13); --rb-sh: rgba(20, 40, 90, .09); }
:root[data-theme="dark"] { --trail: #4d7fd6; --rb-a: #9dc2ff; --rb-b: #4d7fd6; --rb-c: #2c58ad; --rb-hl: rgba(255, 255, 255, .3); --rb-hl2: rgba(255, 255, 255, .12); --rb-shade: rgba(6, 14, 38, .3); --rb-sh: rgba(0, 0, 0, .34); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --trail: #4d7fd6; --rb-a: #9dc2ff; --rb-b: #4d7fd6; --rb-c: #2c58ad; --rb-hl: rgba(255, 255, 255, .3); --rb-hl2: rgba(255, 255, 255, .12); --rb-shade: rgba(6, 14, 38, .3); --rb-sh: rgba(0, 0, 0, .34); } }
main { position: relative; z-index: 1; isolation: isolate; }
.fx-trail { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-trail-front { z-index: 2; }
.fx-trail-svg { position: absolute; left: 0; top: 0; display: block; overflow: hidden; }
.rb-s0 { stop-color: var(--rb-a); }
.rb-s1 { stop-color: var(--rb-b); }
.rb-s2 { stop-color: var(--rb-c); }
.rb-shadow { fill: var(--rb-sh); }
.rb-shadow-far { opacity: .5; transform: translate(0, 22px); }
.rb-shadow-near { opacity: .9; transform: translate(0, 9px); }
.rb-shade { fill: var(--rb-shade); }
.rb-hl-soft { fill: var(--rb-hl2); }
.rb-hl { fill: var(--rb-hl); }
.fx-trail-pin { opacity: 0; transform-box: fill-box; }
.fx-trail-pin.is-on { opacity: 1; }
.fx-trail-halo { fill: var(--trail); opacity: .2; transform-box: fill-box; transform-origin: center; }
.fx-trail-dot { fill: var(--trail); stroke: var(--canvas); }
.fx-trail-lab {
  position: absolute; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
  font: 600 12.5px/1 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; letter-spacing: -.005em; white-space: nowrap; opacity: 0;
}
.fx-trail-lab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--trail); }
@media (prefers-reduced-motion: no-preference) {
  .fx-trail-pin { transition: opacity .4s ease; }
  .fx-trail-halo { animation: fx-trail-pulse 2.2s ease-in-out infinite; }
  .fx-trail-lab { transition: opacity .4s ease; }
  @keyframes fx-trail-pulse { 0%, 100% { transform: scale(.78); opacity: .26; } 50% { transform: scale(1.08); opacity: .1; } }
}
.fx-trail-lab.is-on { opacity: 1; }
@media (max-width: 559px) { .fx-trail-lab { height: 25px; font-size: 11.5px; padding: 0 10px 0 8px; } .rb-shadow-far { transform: translate(0, 12px); } .rb-shadow-near { transform: translate(0, 5px); } }

/* ===== background: dot grid + aurora at the top, glow behind the hero mockup, CTA corners ===== */
.bg-aurora { position: absolute; top: 0; left: 0; right: 0; height: 1300px; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-dots { position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1.1px, transparent 1.7px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 65% 18%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 75% 65% at 65% 18%, #000 15%, transparent 72%); }
.bg-blob { position: absolute; border-radius: 50%; }
.bg-blob.b1 { width: 680px; height: 680px; right: -140px; top: -200px; background: var(--aur1); filter: blur(100px); }
.bg-blob.b2 { width: 540px; height: 540px; left: -200px; top: 300px; background: var(--aur2); filter: blur(110px); }
.bg-blob.b3 { width: 440px; height: 440px; left: 42%; top: 700px; background: var(--aur3); filter: blur(110px); }
.bg-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(180deg, transparent, var(--canvas)); }
@media (prefers-reduced-motion: no-preference) {
  .bg-blob { will-change: transform; animation: bg-drift 22s ease-in-out infinite alternate; }
  .bg-blob.b2 { animation-duration: 27s; animation-delay: -9s; }
  .bg-blob.b3 { animation-duration: 31s; animation-delay: -15s; }
  @keyframes bg-drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(40px, 30px, 0) scale(1.08); } 100% { transform: translate3d(-30px, 50px, 0) scale(.96); } }
}
@media (max-width: 559px) { .bg-blob.b1 { width: 420px; height: 420px; right: -160px; } .bg-blob.b2 { width: 360px; height: 360px; } .bg-blob.b3 { display: none; } }
.hero-glow { position: absolute; inset: 6% -3% -5% -3%; border-radius: 48px; background: radial-gradient(closest-side, var(--aur1), transparent); filter: blur(36px); pointer-events: none; }
.cta-card { background: radial-gradient(520px 340px at 0% 0%, var(--aur1), transparent 70%), radial-gradient(520px 360px at 100% 100%, var(--aur2), transparent 70%), var(--surface); }
