/* TutorTracer homepage (index.html only).
   Layered after the Webflow CSS and tt-light-theme.css. Everything new is
   prefixed .tth / .ui so the shared stylesheets and other pages are untouched.
   Tokens follow the site theme: dark by default, light under
   html[data-theme="light"] (which tt-theme-toggle.js currently forces). */

.tth, .tth-body .tt-footer, .tth-lightbox, .tth-body .navbar-wrapper {
  --bg: #1e1e1e;
  --bg-2: #171717;
  --card: #232325;
  --card-2: #2a2a2d;
  --side: #1b1b1d;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.05);
  --accent: #a08fd6;
  --accent-soft: rgba(160, 143, 214, 0.16);
  --c-slate: #8aa3c4;
  --c-violet: #a08fd6;
  --c-red: #e07a7a;
  --c-amber: #e0a85a;
  --c-green: #5cc48f;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-frame: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  --lg-bg: rgba(36, 36, 40, 0.5);
  --lg-hi: rgba(255, 255, 255, 0.16);
  --lg-rim: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(30, 30, 33, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --f-1: rgba(88, 111, 141, 0.55);
  --f-2: rgba(118, 98, 172, 0.5);
  --f-3: rgba(204, 93, 93, 0.42);
  --f-4: rgba(167, 159, 183, 0.4);
  --f-5: rgba(63, 155, 110, 0.38);
  --field-opacity: 0.75;
  --gutter: var(--globals--gutter, 24px);
}
html[data-theme="light"] .tth,
html[data-theme="light"] .tth-body .tt-footer,
html[data-theme="light"] .tth-lightbox,
html[data-theme="light"] .tth-body .navbar-wrapper {
  --bg: #ffffff;
  --bg-2: #f6f5f9;
  --card: #ffffff;
  --card-2: #f7f7f9;
  --side: #f4f3f7;
  --ink: #1e1e1e;
  --ink-2: rgba(30, 30, 30, 0.72);
  --ink-3: rgba(30, 30, 30, 0.5);
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.045);
  --accent: #7662ac;
  --accent-soft: rgba(118, 98, 172, 0.12);
  --c-slate: #586f8d;
  --c-violet: #7662ac;
  --c-red: #c24d4d;
  --c-amber: #b7791f;
  --c-green: #2f8a5c;
  --shadow-card: 0 1px 2px rgba(20, 10, 40, 0.05), 0 10px 30px -12px rgba(20, 10, 40, 0.14);
  --shadow-frame: 0 2px 4px rgba(20, 10, 40, 0.04), 0 40px 100px -40px rgba(40, 20, 80, 0.35);
  --lg-bg: rgba(255, 255, 255, 0.5);
  --lg-hi: rgba(255, 255, 255, 0.95);
  --lg-rim: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --f-1: rgba(88, 111, 141, 0.55);
  --f-2: rgba(118, 98, 172, 0.5);
  --f-3: rgba(204, 93, 93, 0.42);
  --f-4: rgba(167, 159, 183, 0.5);
  --f-5: rgba(63, 155, 110, 0.4);
  --field-opacity: 1;
}

html:has(.tth-body), .tth-body { overflow-x: clip; }
.tth { display: block; color: var(--ink); }
.tth *, .tth *::before, .tth *::after { box-sizing: border-box; }
.tth a { color: inherit; }
.tth :focus-visible, .tth-body .navbar :focus-visible, .tt-footer :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ── Navbar tweaks (homepage only) ───────────────────────────────────── */
.tth-body .tth-login { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.tth-body .tth-login:hover { color: var(--ink); }
.tth-body .tth-nav-trial-m { display: none; }
@media (max-width: 991px) {
  .tth-body .navbar-row { gap: 12px; }
  .tth-body .nav-menu[data-nav-menu-open] { text-align: left; background-color: var(--bg); padding: 18px var(--gutter) 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25); max-height: calc(100svh - 70px); overflow: auto; }
  .tth-body .nav-menu[data-nav-menu-open] .dropdown-element.w-dropdown-list { position: static; display: block !important; min-width: 0; max-width: none; }
  .tth-body .nav-menu[data-nav-menu-open] .dropdown-wrapper { padding: 12px 0; border: 0; box-shadow: none; margin: 0; background: transparent; }
  .tth-body .nav-menu[data-nav-menu-open] .dropdown-menus._3-columns { grid-template-columns: 1fr; gap: 16px; }
  .tth-body .nav-menu[data-nav-menu-open] .dropdown-toggle { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .55; padding: 14px 0 0; }
  .tth-body .nav-menu[data-nav-menu-open] .tt-nav-link { margin: 0; padding: 8px 0; }
  .tth-body .nav-menu[data-nav-menu-open] .tt-nav-link-desc { display: none; }
  .tth-body .nav-menu[data-nav-menu-open] .nav-button-wrapper { padding-top: 20px; }
  .tth-body .menu-button.w--open .menu-button-icons img:first-child { margin-top: -24px; }
}
.tth-body .menu-button-icons { flex-direction: column; }
.tth-body .menu-button-icons img { transition: margin .25s ease; }

/* Primary button: solid ink, matches the hero's glass-dark variant feel */
.tth-body .button.tth-btn-primary { background: var(--ink, #1e1e1e); color: var(--bg, #fff); }
.tth-body .button.tth-btn-primary .button-text { color: var(--bg, #fff); }
.tth-body .button.tth-btn-primary:hover { opacity: .88; }
.tth-body .button.tth-btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.tth-hero .button.tth-btn-ghost, .tth-close-sec .button.tth-btn-ghost { box-shadow: inset 0 0 0 1px rgba(30, 30, 30, 0.22); background: rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
html:not([data-theme="light"]) .tth-hero .button.tth-btn-ghost, .tth-close-sec .button.tth-btn-ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.12); }
.tth-body .button.tth-btn-ghost:hover { background: var(--line-2); }

/* Webflow's .button-text-wrapper rolls text upward on hover via IX; do it in CSS */
.tth-body .button .button-text-wrapper .button-text { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.tth-body .button:hover .button-text-wrapper .button-text { transform: translateY(-100%); }

/* ── Type ────────────────────────────────────────────────────────────── */
.tth-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.tth-kicker::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.tth-h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500; margin: 0; color: var(--ink); text-wrap: balance; }
.tth-serif { font-family: var(--typefaces--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.tth-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 22px 0 0; max-width: 680px; text-wrap: pretty; }
.tth-body .tth-body, .tth-body p.tth-body { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 20px 0 0; max-width: 500px; }
.tth-head { margin-bottom: clamp(48px, 6vw, 80px); }
.tth-center { text-align: center; }
.tth-center .tth-lede { margin-left: auto; margin-right: auto; }
.tth-narrow { max-width: 860px; }

.tth-sec { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.tth-alt { background: var(--bg-2); }

.tth-ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.tth-ticks li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.tth-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 99px; background: var(--accent-soft); }
.tth-ticks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* Chips (capability colours) */
.tth-chip, .ui-flag { --c: var(--c-violet); display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent); }
.tth-chip::before, .ui-flag::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--c); flex: none; }
[data-c="red"] { --c: var(--c-red); }
[data-c="amber"] { --c: var(--c-amber); }
[data-c="slate"] { --c: var(--c-slate); }
[data-c="green"] { --c: var(--c-green); }
[data-c="violet"] { --c: var(--c-violet); }

/* Glass (floating chrome only) */
.tth-glass { background: var(--glass-bg); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--line), 0 14px 40px -14px rgba(0, 0, 0, 0.3); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.tth-hero-sec { padding-bottom: 0; }
.tth-hero { min-height: min(860px, 100svh); padding-bottom: clamp(160px, 18vw, 260px); }
.tth-hero .hero-1-content-wrap { position: relative; z-index: 5; }
.tth-hero-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: inherit; background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); margin-bottom: 26px; }
html:not([data-theme="light"]) .tth-hero-pill { background: rgba(0, 0, 0, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.tth-live-dot { width: 8px; height: 8px; border-radius: 99px; background: #2fa66a; box-shadow: 0 0 0 0 rgba(47, 166, 106, 0.5); animation: tth-pulse 2.4s ease-out infinite; flex: none; }
@keyframes tth-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 166, 106, 0.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(47, 166, 106, 0); } }
.tth-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.tth-cta-center { justify-content: center; }
.tth-hero-fine { margin: 16px 0 0; font-size: 13.5px; opacity: .72; }
.tth-hero .hero-2-content { gap: 0 !important; }

/* Rise-in on load */
.tth-js .tth-rise { opacity: 0; transform: translateY(18px); animation: tth-rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes tth-rise { to { opacity: 1; transform: none; } }

/* ── Hero film stage ─────────────────────────────────────────────────── */
.tth-stage-sec { position: relative; z-index: 6; margin-top: clamp(-240px, -16vw, -120px); display: flex; justify-content: center; }
.tth-tilt { perspective: 1800px; }
.tth-bezel { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(14px, 2.2vw, 28px); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-frame); isolation: isolate; transform-origin: 50% 0; will-change: transform; padding: 0; }
.tth-bezel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; z-index: 6; }
.tth-still { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--card); }
.tth-still-inner { position: absolute; left: 0; top: 0; width: 1120px; height: 630px; transform-origin: 0 0; transform: scale(var(--s, 1)); }
.tth-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: 0; transition: opacity .5s ease; }
.tth-poster.is-in { opacity: 1; }
.tth-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; opacity: 0; transition: opacity .7s ease; background: transparent; }
.tth-bezel.is-playing .tth-loop { opacity: 1; }
.tth-play { position: absolute; z-index: 5; left: 50%; bottom: clamp(14px, 3vw, 28px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 14px; border: 0; border-radius: 999px; cursor: pointer; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.tth-play:hover { transform: translateX(-50%) scale(1.04); }
.tth-play svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.tth-play .tth-play-ring { opacity: .35; }

.tth-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.tth-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 24px 8px 0; text-decoration: none; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; transition: color .2s; }
.tth-cap + .tth-cap { padding-left: 24px; border-left: 1px solid var(--line); }
.tth-cap:hover { color: var(--ink); }

/* ── Logos ───────────────────────────────────────────────────────────── */
.tth-logos { padding: clamp(56px, 7vw, 88px) 0 0; }
.tth-logos-row { display: flex; align-items: center; gap: 40px; }
.tth-logos-title { flex: none; max-width: 220px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.tth-marquee { flex: 1; min-width: 0; display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.tth-marquee .marquee-group { flex: none; animation: marquee-scroll 28s linear infinite; }
.tth-marquee .logo-marquee-row { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.tth-marquee .logo-marquee-item { height: 30px; width: auto; max-width: none; object-fit: contain; opacity: .75; }
html[data-theme="light"] .tth-marquee .logo-marquee-item { filter: brightness(0); opacity: .55; }

/* ── Statement ───────────────────────────────────────────────────────── */
.tth-statement-sec { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(60px, 8vw, 110px); }
.tth-statement { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 500; max-width: 1040px; margin: 0; color: var(--ink); text-wrap: pretty; }
.tth-statement .w { opacity: var(--o, 1); transition: opacity .15s linear; }
.tth-js .tth-statement .w { --o: .16; }

/* ── Stages (blurred brand-colour field behind glass) ────────────────── */
.tth-stage { position: relative; isolation: isolate; border-radius: 36px; padding: clamp(16px, 3.6vw, 48px); display: flex; align-items: center; justify-content: center; min-height: 440px; }
.tth-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--field-opacity); }
.tth-field i { position: absolute; display: block; border-radius: 50%; filter: blur(60px); }
.tth-stage .tth-field i:nth-child(1) { width: 58%; height: 62%; left: 2%; top: 4%; background: var(--f-1); }
.tth-stage .tth-field i:nth-child(2) { width: 52%; height: 56%; right: 0; top: 30%; background: var(--f-2); }
.tth-stage .tth-field i:nth-child(3) { width: 44%; height: 46%; left: 22%; bottom: 0; background: var(--f-4); }
.tth-stage[data-tone="warm"] .tth-field i:nth-child(1) { background: var(--f-3); }
.tth-stage[data-tone="warm"] .tth-field i:nth-child(2) { background: var(--f-2); }
.tth-stage[data-tone="violet"] .tth-field i:nth-child(1) { background: var(--f-2); }
.tth-stage[data-tone="violet"] .tth-field i:nth-child(3) { background: var(--f-3); }
.tth-stage[data-tone="slate"] .tth-field i:nth-child(2) { background: var(--f-1); }
.tth-stage[data-tone="slate"] .tth-field i:nth-child(3) { background: var(--f-3); }
.tth-stage[data-tone="green"] .tth-field i:nth-child(1) { background: var(--f-5); }
.tth-stage[data-tone="green"] .tth-field i:nth-child(3) { background: var(--f-1); }
@media (prefers-reduced-motion: no-preference) {
  .tth-field i { animation: tth-drift 34s ease-in-out infinite alternate; }
  .tth-field i:nth-child(2) { animation-duration: 42s; animation-delay: -12s; }
  .tth-field i:nth-child(3) { animation-duration: 50s; animation-delay: -20s; }
}
@keyframes tth-drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(5%, -4%, 0) scale(1.07); } 100% { transform: translate3d(-4%, 5%, 0) scale(.96); } }
.tth-lg { position: relative; z-index: 1; width: 100%; max-width: 560px; border-radius: 28px; padding: clamp(10px, 1.8vw, 18px); background: var(--lg-bg); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); box-shadow: inset 0 1px 0 var(--lg-hi), inset 0 0 0 1px var(--lg-rim), 0 40px 90px -40px rgba(30, 20, 60, 0.45); }

/* Feature rows */
.tth-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (min-width: 992px) {
  .tth-feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tth-feature-flip > :first-child { order: 2; }
}

/* ── The app, drawn (shared mockup styles) ───────────────────────────── */
.ui { font-family: var(--typefaces--body); color: var(--ink); font-size: 13px; line-height: 1.45; letter-spacing: -0.005em; text-align: left; }
.ui b { font-weight: 600; }
.ui-card { background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.ui-muted { color: var(--ink-3); }
.ui-sub { color: var(--ink-2); }
.ui-label { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 6px; }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; font-weight: 550; background: var(--line-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); white-space: nowrap; }
.ui-btn-dark { background: var(--ink); color: var(--bg); box-shadow: none; }
.ui-dot { width: 7px; height: 7px; border-radius: 99px; background: #2fa66a; display: inline-block; }
.ui-flag { height: 22px; font-size: 11.5px; padding: 0 9px 0 8px; gap: 6px; }
.ui-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; }
.is-strong { color: var(--c-green); }
.is-mid { color: var(--c-amber); }
.is-low { color: var(--c-red); }
.ui-pill.is-strong { background: color-mix(in srgb, var(--c-green) 12%, transparent); }
.ui-pill.is-mid { background: color-mix(in srgb, var(--c-amber) 12%, transparent); }
.ui-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 99px; background: linear-gradient(135deg, #7662ac, #586f8d); color: #fff; font-weight: 600; font-style: normal; font-size: 14px; flex: none; }
.ui-avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.ui-quote { margin: 0; padding: 10px 12px 10px 14px; border-left: 3px solid var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 8%, transparent); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.5; font-style: italic; color: var(--ink); }
.ui-spin { width: 14px; height: 14px; border-radius: 99px; border: 2px solid var(--line); border-top-color: var(--accent); display: inline-block; animation: tth-spin .8s linear infinite; flex: none; }
@keyframes tth-spin { to { transform: rotate(360deg); } }

/* App window (hero still) */
.ui-app { position: absolute; inset: 0; display: grid; grid-template-columns: 210px 1fr; background: var(--card); font-size: 13px; }
.ui-side { background: var(--side); padding: 18px 10px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.ui-brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; padding: 2px 8px 18px; letter-spacing: -0.02em; }
.ui-mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #7662ac, #cc5d5d); color: #fff; font-size: 13px; font-weight: 700; }
.ui-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); }
.ui-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ui-nav.is-on { background: var(--line-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; }
.ui-count { margin-left: auto; font-size: 11px; font-weight: 600; color: #fff; background: var(--c-red); border-radius: 99px; padding: 1px 7px; }
.ui-main { padding: 26px 30px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.ui-head { display: flex; align-items: flex-start; justify-content: space-between; }
.ui-title { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.ui-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.ui-live { display: inline-flex; align-items: center; gap: 7px; }
.ui-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ui-tile { padding: 14px 16px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 4px; }
.ui-tile small { font-size: 12px; color: var(--ink-3); }
.ui-tile b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ui-tile em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.ui-tile em.is-red { color: var(--c-red); }
.ui-tile em.is-green { color: var(--c-green); }
.ui-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; flex: 1; min-height: 0; }
.ui-cols .ui-card { padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.ui-card-h { display: flex; justify-content: space-between; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.ui-card-h .ui-muted { font-weight: 500; font-size: 12px; }
.ui-issue-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ui-who { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-sev { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: 12px; background: var(--line-2); box-shadow: inset 0 0 0 1px var(--line); }
.ui-qbar { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink-2); font-size: 12.5px; }
.ui-qbar i { height: 7px; border-radius: 9px; background: var(--line-2); position: relative; overflow: hidden; }
.ui-qbar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #586f8d, #7662ac); }
.ui-toast { position: absolute; right: 26px; bottom: 26px; width: 300px; padding: 14px 16px; border-radius: 18px; display: grid; gap: 5px; font-size: 12.5px; z-index: 2; }
.ui-toast .ui-flag { justify-self: start; }
.ui-toast b { font-size: 13.5px; }
.tth-js .ui-toast { animation: tth-toast 9s cubic-bezier(.2,.8,.2,1) infinite; animation-play-state: paused; }
.tth-js .is-live .ui-toast { animation-play-state: running; }
@keyframes tth-toast { 0%, 12% { opacity: 0; transform: translateY(16px) scale(.97); } 18%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(8px); } }
.ui-app.is-narrow { grid-template-columns: 1fr; }
.ui-app.is-narrow .ui-side { display: none; }

/* Transcript (how it works) */
.ui-transcript { padding: 18px; min-height: 420px; display: flex; flex-direction: column; gap: 12px; }
.ui-tx-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ui-tx-head b { display: block; font-size: 14px; }
.ui-tx-head .ui-muted { font-size: 12px; }
.ui-sync { position: relative; width: 28px; height: 28px; border-radius: 99px; background: var(--line-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ui-sync .ui-spin { position: absolute; }
.ui-tick { width: 16px; height: 16px; fill: none; stroke: var(--c-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ui-transcript.is-synced .ui-spin { opacity: 0; }
.ui-transcript.is-synced .ui-tick { opacity: 1; }
.ui-transcript.is-synced .ui-sync { background: color-mix(in srgb, var(--c-green) 14%, transparent); }
.ui-tx-lines { display: grid; gap: 8px; }
.ui-tx { display: grid; grid-template-columns: 40px 64px 1fr; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1), background .4s ease; }
.ui-tx time, .ui-moment time, .ui-ev-line time { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ui-tx p { margin: 0; font-size: 13.5px; }
.ui-spk { font-size: 11.5px; font-weight: 600; color: var(--ink-3); transition: color .4s ease; }
.ui-transcript.is-ided .ui-spk[data-r="t"] { color: var(--c-violet); }
.ui-transcript.is-ided .ui-spk[data-r="s"] { color: var(--c-slate); }
.ui-tx mark { background: transparent; color: inherit; border-radius: 4px; transition: background .5s ease; padding: 0 2px; }
.ui-transcript.is-hit .ui-tx-hit { background: color-mix(in srgb, var(--c-amber) 8%, transparent); }
.ui-transcript.is-hit .ui-tx-hit mark { background: color-mix(in srgb, var(--c-amber) 26%, transparent); }
.ui-tx-flag, .ui-tx-score { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.ui-tx-flag { padding: 12px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.ui-tx-flag .ui-sub { font-size: 12.5px; }
.ui-transcript .is-hidden { opacity: 0; transform: translateY(10px); }

.tth-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.tth-how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tth-how-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 18px; border-radius: 18px; transition: background .4s ease, opacity .4s ease; opacity: .5; }
.tth-how-steps li.is-on { opacity: 1; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.tth-how-steps h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.tth-how-steps p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.tth-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tth-how-steps li.is-on .tth-n { background: var(--ink); color: var(--bg); box-shadow: none; }

/* Issues scrolly */
.tth-scrolly { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.tth-scrolly-steps { display: grid; }
.tth-sstep { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 64vh; cursor: pointer; opacity: .32; transition: opacity .45s ease; }
.tth-sstep.is-on { opacity: 1; }
.tth-sstep h3 { margin: 18px 0 10px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.tth-sstep p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 440px; }
.tth-sstep:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 12px; }
.tth-scrolly-stage { position: sticky; top: max(90px, calc(50vh - 290px)); }
.ui-issues { padding: 16px; }
.ui-issues-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ui-issues-top b { font-size: 15px; }
.ui-tabsum { display: flex; gap: 12px; font-size: 12px; color: var(--ink-3); }
.ui-tabsum .is-on { color: var(--ink); font-weight: 600; }
.ui-tabsum i { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: var(--line-2); margin-left: 3px; }
.ui-cats { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ui-cats span { font-size: 11.5px; padding: 4px 10px; border-radius: 8px; color: var(--ink-3); transition: background .35s ease, color .35s ease; }
.ui-cats span.is-on { background: var(--ink); color: var(--bg); font-weight: 600; }
.ui-issue-card { padding: 14px 2px 4px; transition: opacity .3s ease, transform .3s ease; }
.ui-issue-card.is-swap { opacity: 0; transform: translateY(8px); }
.ui-issue-h { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ui-issue-h b { display: block; font-size: 14px; }
.ui-issue-h .ui-muted { font-size: 12px; }
.ui-sevbox { display: grid; justify-items: end; gap: 3px; flex: none; }
.ui-sevbox small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.ui-sevbox b { font-size: 20px; line-height: 1; letter-spacing: -0.02em; }
.ui-sevbar { width: 72px; height: 5px; border-radius: 9px; background: var(--line-2); display: block; overflow: hidden; }
.ui-sevbar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--c-amber), var(--c-red)); border-radius: inherit; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ui-issue-card .ui-sub { margin: 0; font-size: 13px; }
.ui-issue-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ui-guard { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 12px; color: var(--ink-2); }
.ui-guard svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; margin-top: 1px; }
.ui-guard b { color: var(--ink); }

.tth-note { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.tth-note > div { padding: 28px 32px 0 0; }
.tth-note > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.tth-note h3, .tth-gi h3, .tth-tile h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tth-note p, .tth-gi p, .tth-tile p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Quality */
.ui-quality { padding: 18px; }
.ui-q-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ui-q-head b { display: block; font-size: 15px; }
.ui-q-head .ui-muted { font-size: 12px; }
.ui-radar { width: 92px; height: 92px; flex: none; overflow: visible; }
.ui-radar-grid polygon { fill: none; stroke: var(--line); stroke-width: 1; }
.ui-radar-shape { fill: color-mix(in srgb, var(--c-violet) 22%, transparent); stroke: var(--c-violet); stroke-width: 1.6; stroke-linejoin: round; transform-origin: 60px 60px; }
.ui-dims { display: grid; gap: 2px; margin-top: 12px; }
.ui-dim { display: grid; grid-template-columns: 110px 1fr 128px; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ui-dim em { font-style: normal; font-size: 12px; font-weight: 600; text-align: right; }
.ui-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ui-seg i { height: 8px; border-radius: 4px; background: var(--line-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.ui-seg i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--seg, var(--c-green)); transform-origin: 0 50%; transform: scaleX(0); }
.ui-seg[data-v="3"] i::after { --seg: var(--c-green); transform: scaleX(1); }
.ui-seg[data-v="2"] i:nth-child(-n+2)::after { --seg: var(--c-amber); transform: scaleX(1); }
.ui-seg[data-v="1"] i:nth-child(1)::after { --seg: var(--c-red); transform: scaleX(1); }
.ui-evidence { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); min-height: 98px; }
.ui-evidence .ui-label { margin-top: 0; }
.ui-ev-line { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; font-style: italic; }
.ui-ev-line time { font-style: normal; }
.ui-evidence > .ui-muted { display: block; font-size: 12px; margin-top: 6px; }
[data-ev] { transition: opacity .3s ease; }
.ui-evidence.is-swap [data-ev] { opacity: 0; }

/* Live (in-view) animations: final state is the static style, keyframes run only while .is-live */
@media (prefers-reduced-motion: no-preference) {
  .tth-js [data-live] .ui-seg i::after { animation: tth-seg 7s cubic-bezier(.2,.8,.2,1) infinite paused; animation-delay: calc(var(--i, 0) * 120ms); }
  .tth-js [data-live] .ui-dim .ui-seg i:nth-child(2)::after { animation-delay: calc(var(--i, 0) * 120ms + 90ms); }
  .tth-js [data-live] .ui-dim .ui-seg i:nth-child(3)::after { animation-delay: calc(var(--i, 0) * 120ms + 180ms); }
  .tth-js [data-live] .ui-radar-shape { animation: tth-radar 7s cubic-bezier(.2,.8,.2,1) infinite paused; }
  .tth-js [data-live] .ui-p-bar { animation: tth-bar 8s cubic-bezier(.2,.8,.2,1) infinite paused; animation-delay: calc(var(--i, 0) * 140ms); }
  .tth-js [data-live] .ui-p-pin { animation: tth-pin 8s cubic-bezier(.2,.8,.2,1) infinite paused; }
  .tth-js [data-live] .ui-p-row .ui-flag { animation: tth-pop 8s cubic-bezier(.2,.8,.2,1) infinite paused; }
  .tth-js [data-live] .ui-spark-line { stroke-dasharray: 420; animation: tth-draw 8s cubic-bezier(.3,.7,.2,1) infinite paused; }
  .tth-js [data-live] .ui-spark-fill { animation: tth-fade 8s ease infinite paused; }
  .tth-js [data-live] .ui-sig { animation: tth-pop2 8s cubic-bezier(.2,.8,.2,1) infinite paused; }
  .tth-js [data-live] .ui-moment { animation: tth-pop3 8s cubic-bezier(.2,.8,.2,1) infinite paused; }
  .tth-js [data-live].is-live *, .tth-js [data-live].is-live *::after { animation-play-state: running; }
}
@keyframes tth-seg { 0%, 4% { transform: scaleX(0); } 16%, 92% { transform: scaleX(var(--sx, 1)); } 100% { transform: scaleX(var(--sx, 1)); } }
.ui-seg[data-v="2"] i:nth-child(3)::after, .ui-seg[data-v="1"] i:nth-child(n+2)::after { --sx: 0; }
@keyframes tth-radar { 0%, 6% { transform: scale(0); opacity: 0; } 24%, 100% { transform: scale(1); opacity: 1; } }

/* Punctuality */
.ui-punct { padding: 18px; }
.ui-p-head { display: flex; justify-content: space-between; align-items: baseline; }
.ui-p-head b { font-size: 15px; }
.ui-p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 16px; }
.ui-p-tiles div { padding: 10px 12px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; }
.ui-p-tiles small { font-size: 11.5px; color: var(--ink-3); }
.ui-p-tiles b { font-size: 20px; letter-spacing: -0.02em; }
.ui-p-axis { display: grid; grid-template-columns: 96px 1fr 120px; font-size: 10.5px; color: var(--ink-3); }
.ui-p-axis { display: flex; justify-content: space-between; padding: 0 128px 6px 108px; }
.ui-p-row { display: grid; grid-template-columns: 96px 1fr 116px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ui-p-row .ui-flag { justify-self: end; }
.ui-p-who b { display: block; font-size: 13px; }
.ui-p-who span { font-size: 11.5px; color: var(--ink-3); }
.ui-p-track { position: relative; height: 22px; border-radius: 7px; background: var(--line-2); }
.ui-p-sched { position: absolute; top: -3px; bottom: -3px; left: 14.3%; width: 71.4%; border-radius: 8px; border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.ui-p-bar { position: absolute; top: 4px; bottom: 4px; left: var(--l); width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #586f8d, #7662ac); transform-origin: 0 50%; }
.ui-p-bar.is-late { background: linear-gradient(90deg, var(--c-red), #7662ac); }
.ui-p-bar.is-early { background: linear-gradient(90deg, #586f8d, var(--c-amber)); }
.ui-p-pin { position: absolute; top: -6px; bottom: -6px; left: var(--l); width: 2px; margin-left: -1px; background: var(--c-red); border-radius: 2px; }
.ui-p-pin.is-amber { background: var(--c-amber); }
@keyframes tth-bar { 0%, 5% { transform: scaleX(0); } 28%, 100% { transform: scaleX(1); } }
@keyframes tth-pin { 0%, 22% { opacity: 0; transform: scaleY(0); } 32%, 100% { opacity: 1; transform: none; } }
@keyframes tth-pop { 0%, 30% { opacity: 0; transform: scale(.85); } 38%, 100% { opacity: 1; transform: none; } }

/* Satisfaction */
.ui-sat { padding: 18px; }
.ui-s-head { display: flex; align-items: center; gap: 12px; }
.ui-s-head > div { flex: 1; min-width: 0; }
.ui-s-head b { display: block; font-size: 15px; }
.ui-s-head .ui-muted { font-size: 12px; }
.ui-spark { margin: 16px 0 6px; }
.ui-spark svg { width: 100%; height: 110px; display: block; overflow: visible; }
.ui-spark-line { fill: none; stroke: var(--c-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ui-spark-fill { fill: url(#tthSpark); }
.ui-spark-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
@keyframes tth-draw { 0%, 4% { stroke-dashoffset: 420; } 34%, 100% { stroke-dashoffset: 0; } }
@keyframes tth-fade { 0%, 18% { opacity: 0; } 40%, 100% { opacity: 1; } }
.ui-sigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ui-sig { padding: 10px 12px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; }
.ui-sig b { font-size: 20px; letter-spacing: -0.02em; }
.ui-sig span { font-size: 11.5px; color: var(--ink-3); }
@keyframes tth-pop2 { 0%, 26% { opacity: 0; transform: translateY(10px); } 36%, 100% { opacity: 1; transform: none; } }
.ui-moment { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--c-green) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-green) 22%, transparent); font-style: italic; font-size: 13.5px; }
.ui-moment time { font-style: normal; }
@keyframes tth-pop3 { 0%, 44% { opacity: 0; transform: translateY(10px); } 54%, 100% { opacity: 1; transform: none; } }

/* Leaderboard */
.ui-board { padding: 18px; }
.ui-b-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ui-b-head b { font-size: 15px; }
.ui-b-cols, .ui-b-list li { display: grid; grid-template-columns: 26px 1fr 56px 62px 46px; gap: 8px; align-items: center; }
.ui-b-cols { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 0 10px 8px; }
.ui-b-cols span:nth-child(n+3), .ui-b-list li > span:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.ui-b-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ui-b-list li { padding: 10px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; will-change: transform; }
.ui-b-list li:first-child { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-amber) 45%, transparent); background: color-mix(in srgb, var(--c-amber) 7%, var(--card-2)); }
.ui-b-rank { font-weight: 650; color: var(--ink-3); }
.ui-b-list li:first-child .ui-b-rank { color: var(--c-amber); }
.ui-b-name { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Assistant + bento */
.tth-ask { max-width: 760px; margin: 0 auto; }
.ui-ask { padding: 14px; }
.ui-ask-q { display: flex; align-items: center; gap: 2px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); min-height: 52px; font-size: 15px; }
.ui-ask-typed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-ask-q .ui-btn { margin-left: auto; height: 34px; padding: 0 16px; border-radius: 10px; }
.ui-caret { display: inline-block; width: 2px; height: 18px; background: var(--accent); animation: tth-blink 1s steps(1) infinite; flex: none; }
@keyframes tth-blink { 50% { opacity: 0; } }
.ui-ask-a { padding: 16px 8px 4px; transition: opacity .4s ease, transform .4s ease; }
.ui-ask-a.is-hidden { opacity: 0; transform: translateY(8px); }
.ui-ask-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.ui-ask-a.is-done .ui-spin { border-color: var(--c-green); animation: none; }
.ui-ask-a p { margin: 10px 0 12px; font-size: 15px; line-height: 1.55; }
.ui-cites { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-cite { font-size: 12px; padding: 6px 10px; border-radius: 9px; background: var(--accent-soft); color: var(--ink-2); }
.ui-cite b { color: var(--ink); }

.tth-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.tth-tile { background: var(--card); border-radius: 24px; padding: 18px 18px 26px; box-shadow: 0 0 0 1px var(--line), var(--shadow-card); display: flex; flex-direction: column; }
.tth-tile-vis { height: 170px; border-radius: 16px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; margin-bottom: 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: hidden; }
.tth-tile h3, .tth-tile p { padding: 0 6px; }
.ui-doc { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ui-doc b { display: block; font-size: 12.5px; }
.ui-doc .ui-muted { font-size: 11.5px; }
.ui-doc-ic { width: 34px; height: 40px; border-radius: 6px; background: color-mix(in srgb, var(--c-red) 14%, transparent); color: var(--c-red); font-size: 10px; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; flex: none; }
.ui-check-line { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); }
.ui-check-line i { width: 60px; height: 6px; border-radius: 9px; background: var(--line-2); position: relative; overflow: hidden; flex: none; }
.ui-check-line i::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--accent); animation: tth-scan 1.8s ease-in-out infinite; }
@keyframes tth-scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.ui-mail { padding: 12px 14px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 6px; font-size: 12.5px; }
.ui-mail-h { display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ui-mail-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.ui-mail-row b { color: var(--ink); }
.ui-code { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.6; color: var(--ink-2); white-space: pre; overflow: hidden; }
.ui-code .c-k { color: var(--c-green); font-weight: 700; }
.ui-code .c-s { color: var(--c-violet); }
.ui-code .c-v { color: var(--c-amber); }
.ui-code .c-n { color: var(--c-red); }

/* Data grid */
.tth-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tth-gi { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); }
.tth-gi:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.tth-gi svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; display: block; }

/* Walkthrough */
.tth-walk { position: relative; aspect-ratio: 2 / 1; border-radius: clamp(16px, 2.4vw, 28px); overflow: hidden; background: #111; box-shadow: 0 0 0 1px var(--line), var(--shadow-frame); isolation: isolate; }
.tth-walk video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 1; }
.tth-walk-cover { position: absolute; inset: 0; z-index: 2; background: var(--colors-brand--brand-1, #586f8d); transition: opacity .4s ease; }
.tth-walk-cover .tth-field { opacity: 1; }
.tth-walk-cover .tth-field i:nth-child(1) { width: 60%; height: 90%; left: -6%; top: -10%; background: #cc5d5d; }
.tth-walk-cover .tth-field i:nth-child(2) { width: 50%; height: 80%; right: -4%; top: 10%; background: #7662ac; }
.tth-walk-cover .tth-field i:nth-child(3) { width: 40%; height: 60%; left: 34%; bottom: -20%; background: #a79fb7; }
.tth-walk-cover .tth-field i:nth-child(4) { width: 30%; height: 50%; left: 40%; top: -10%; background: #586f8d; }
.tth-walk .tth-play { bottom: auto; top: 50%; transform: translate(-50%, -50%); }
.tth-walk .tth-play:hover { transform: translate(-50%, -50%) scale(1.04); }
.tth-walk.is-open .tth-walk-cover, .tth-walk.is-open .tth-play { opacity: 0; pointer-events: none; }
.tth-walk.is-open .tth-play { display: none; }

/* FAQ */
.tth-faq { border-top: 1px solid var(--line); }
.tth-faq details { border-bottom: 1px solid var(--line); }
.tth-faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; position: relative; color: var(--ink); }
.tth-faq summary::-webkit-details-marker { display: none; }
.tth-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border: solid var(--ink-3); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .25s ease; }
.tth-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.tth-faq p { margin: -6px 0 24px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 720px; }

/* Close CTA */
.tth-close-sec { padding-top: 0; }
.tth-close-sec .cta-content { position: relative; z-index: 5; }
.tth-close-sec .tth-hero-fine { text-align: center; }

/* Footer */
.tth-footer { color: var(--ink); }
.tth-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.tth-footer .tt-footer-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.tth-footer .tt-footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 320px; }
.tth-footer-logo { height: 28px; width: auto; }
html:not([data-theme="light"]) .tth-footer-logo { content: url("../images/tutortracer_logowithtext_white_trpt.png"); }
.tth-footer .tt-footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 16px; }
.tth-footer .tt-footer-col a { display: block; font-size: 14px; margin-bottom: 12px; color: var(--ink-2); text-decoration: none; opacity: 1; transition: color .2s; }
.tth-footer .tt-footer-col a:hover { color: var(--ink); }
.tth-footer-note { font-size: 12px; color: var(--ink-3); margin: 0 0 16px; }
.tth-footer .tt-footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); opacity: 1; flex-wrap: wrap; }
.tth-footer .tt-footer-bar-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tth-footer .tt-footer-bar a { color: inherit; text-decoration: none; }
.tth-footer .tt-footer-bar a:hover { color: var(--ink); }
html[data-theme="light"] .tth-li { filter: invert(1); opacity: .75; }
.tth-body .tt-footer { padding: 80px 0 40px; }
.tth-body .tt-footer-inner { max-width: var(--containers--main-container-with-gutters, 1248px); margin: 0 auto; padding: 0 var(--gutter, 24px); width: 100%; }

/* Lightbox */
.tth-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 4vw, 56px); background: rgba(9, 9, 11, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s ease; }
.tth-lightbox[hidden] { display: none; }
.tth-lightbox.is-open { opacity: 1; }
.tth-lightbox-inner { position: relative; width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: calc(100svh - 48px); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); transform: scale(.97); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.tth-lightbox.is-open .tth-lightbox-inner { transform: none; }
.tth-lightbox video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.tth-lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 24px; line-height: 40px; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tth-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .tth-js .tth-reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
  .tth-js .tth-reveal.is-in { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .tth-feature, .tth-how, .tth-scrolly { grid-template-columns: 1fr; }
  .tth-caps { grid-template-columns: 1fr 1fr; }
  .tth-cap:nth-child(3) { padding-left: 0; border-left: 0; }
  .tth-cap:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tth-bento { grid-template-columns: 1fr 1fr; }
  .tth-grid3 { grid-template-columns: 1fr 1fr; }
  .tth-gi, .tth-gi:not(:nth-child(3n+1)) { padding: 28px 28px 32px 0; border-left: 0; }
  .tth-gi:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .tth-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .tth-footer-grid > :first-child { grid-column: 1 / -1; }

  /* Scrolly becomes a tabbed card: stage first, then the four steps as tabs */
  .tth-scrolly-stage { position: relative; top: 0; order: -1; }
  .tth-scrolly-steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tth-sstep { min-height: 0; padding: 16px; border-radius: 16px; opacity: .6; box-shadow: inset 0 0 0 1px var(--line); }
  .tth-sstep.is-on { opacity: 1; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
  .tth-sstep h3 { font-size: 18px; margin: 12px 0 6px; }
  .tth-sstep p { font-size: 14px; }
}
@media (max-width: 767px) {
  .tth-hero { min-height: 0; padding-bottom: 150px; }
  .tth-hero-pill { font-size: 12.5px; }
  .tth-stage-sec { margin-top: -110px; }
  .tth-play { height: 42px; font-size: 13.5px; padding: 0 16px 0 10px; bottom: 10px; }
  .tth-play svg { width: 22px; height: 22px; }
  .tth-logos-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tth-logos-title { max-width: none; }
  .tth-marquee { width: 100%; }
  .tth-stage { min-height: 0; padding: 14px; border-radius: 26px; }
  .tth-lg { border-radius: 22px; padding: 8px; }
  .tth-bento, .tth-grid3, .tth-note { grid-template-columns: 1fr; }
  .tth-note > div, .tth-note > div + div { padding: 24px 0 0; border-left: 0; }
  .tth-gi, .tth-gi:not(:nth-child(3n+1)), .tth-gi:nth-child(2n) { padding: 26px 0; border-left: 0; }
  .tth-walk { aspect-ratio: 16 / 10; }
  .tth-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tth-footer .tt-footer-bar { flex-direction: column; align-items: flex-start; }
  .tth-sstep h3 { font-size: 16px; }
  .tth-sstep p { display: none; }
  .tth-sstep.is-on p { display: block; }
  .tth-scrolly-steps { grid-template-columns: 1fr; }
  .tth-sstep { padding: 14px 16px; }
  .tth-sstep h3 { margin: 10px 0 0; }
  .tth-sstep.is-on h3 { margin-bottom: 6px; }
}
@media (max-width: 479px) {
  .tth-caps { grid-template-columns: 1fr; }
  .tth-cap, .tth-cap + .tth-cap { padding: 18px 0; border-left: 0; }
  .tth-cap + .tth-cap { border-top: 1px solid var(--line); }
  .tth-cta-row .button { flex: 1 1 auto; }
  .ui-dim { grid-template-columns: 92px 1fr 64px; font-size: 12px; }
  .ui-dim em { font-size: 11px; }
  .ui-p-row { grid-template-columns: 70px 1fr; }
  .ui-p-row .ui-flag { grid-column: 2; justify-self: start; }
  .ui-p-axis { padding: 0 0 6px 82px; }
  .ui-b-cols, .ui-b-list li { grid-template-columns: 20px 1fr 48px 52px; }
  .ui-b-cols span:nth-child(5), .ui-b-list li > span:nth-child(5) { display: none; }
  .ui-tabsum { display: none; }
  .ui-issue-actions .ui-btn:nth-child(2) { display: none; }
  .ui-tx { grid-template-columns: 36px 1fr; }
  .ui-tx .ui-spk { grid-column: 2; }
  .ui-tx p { grid-column: 2; }
  .ui-sigs { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .ui-sig b { font-size: 17px; }
  .ui-ask-q { font-size: 13.5px; }
  .tth-faq summary { font-size: 17px; }
}

/* Reduced motion: final states, no loops */
@media (prefers-reduced-motion: reduce) {
  .tth-js .tth-rise { animation: none; opacity: 1; transform: none; }
  .tth-live-dot, .ui-spin, .ui-caret, .ui-check-line i::after, .tth-marquee .marquee-group { animation: none !important; }
  .tth-js .ui-toast { animation: none; }
  .tth-js .tth-statement .w { --o: 1; }
  .tth-bezel { transform: none !important; }
}

.tth-feature-copy .tth-h2 { font-size: clamp(32px, 3.7vw, 50px); }

@media (max-width: 767px) {
  .tth-body .tth-nav-trial-m { display: flex; height: 36px; padding: 0 16px; margin-left: auto; }
}
/* Mobile nav: hamburger after the trial button, and visible on a light page */
@media (max-width: 991px) {
  .tth-body .nav-contents { align-items: center; gap: 4px; }
  .tth-body .nav-contents > .menu-button { order: 5; }
}
html[data-theme="light"] .tth-body .menu-icon { filter: invert(1); }
