:root {
  --p-bg: #eef0f3; --p-surface: #e2e5ea; --p-ink: #0b0c0e; --p-muted: #5d6470;
  --p-accent: #1f2de6; --p-accent-ink: #ffffff; --p-action: #1f2de6; --p-action-ink: #ffffff;
  --p-inv-bg: #0b0c0e; --p-inv-surface: #17181a; --p-inv-ink: #eef0f3; --p-inv-muted: #8e8f92;
  --p-inv-accent: #eef0f3; --p-inv-accent-ink: #0b0c0e; --p-inv-action: #eef0f3; --p-inv-action-ink: #0b0c0e;
  --font-display: "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
}

.tp-label { font: 500 11px/1.4 var(--font-mono); color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.hero--centred .hero__lead, .mo-la__sub { color: var(--ink); }
#toi-uu { --g-screen: calc(var(--h, 1) * 100svh); padding-block: var(--padt) var(--padb); align-content: stretch; }
.tp-mono { font: 400 13px/1.5 var(--font-mono); letter-spacing: 0; }
.tp-state { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid color-mix(in oklab, currentColor 40%, transparent); border-radius: 4px; font: 500 12px/1 var(--font-mono); white-space: nowrap; transition: border-color 180ms cubic-bezier(.2, .8, .2, 1); }
.tp-state::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.tp-nav-visual { display: flex; align-items: center; justify-content: center; gap: 20px; height: 96px; margin-bottom: 12px; background: var(--g-alt); color: var(--ink); font-size: 14px; font-weight: 500; }
.tp-nav-visual i { display: block; width: 28px; height: 1px; background: color-mix(in oklab, var(--muted) 60%, transparent); }
.tp-hero-app { --u-bg: #fff; color: #17212d; border: 1px solid #b4bfcf; border-radius: 10px; background: var(--u-bg); overflow: hidden; box-shadow: 0 20px 48px #25303a1a, 0 4px 12px #25303a0d; font-family: var(--font-text); }
.tp-window-bar { display: flex; align-items: center; gap: 12px; padding: 0 20px; min-height: 44px; background: #f9fafb; border-bottom: 1px solid #e5e9f0; font-size: 13px; font-weight: 500; }
.tp-window-meta { margin-left: auto; color: #5d6875; font-weight: 400; }
.tp-bar-divider { padding: 0 6px; color: #bac2cf; }
.tp-hero-body { display: grid; grid-template-columns: 144px minmax(0, 1fr); min-height: 320px; }
.tp-mini-nav { display: grid; align-content: start; gap: 6px; padding: 20px 12px; border-right: 1px solid #e5e9f0; color: #5d6875; font-size: 13px; }
.tp-mini-nav > :first-child { margin-bottom: 12px; color: #8a93a0; font-size: 12px; }
.tp-mini-nav strong { padding: 8px 10px; margin: 0 -10px; border-radius: 6px; background: #eef1f6; color: #17212d; font-weight: 500; }
.tp-hero-content { min-width: 0; padding: 20px 24px 24px; }
.tp-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.tp-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; font-size: 13px; }
.tp-pipeline > span { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.tp-pipeline i { display: inline-grid; place-items: center; width: 26px; height: 26px; background: #e9edf5; border-radius: 5px; font: 400 12px var(--font-mono); color: #5d6875; }
.tp-hero-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.tp-hero-comparison .tp-label { color: #5d6875; font-size: 12px; }
.tp-hero-comparison strong { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.tp-bars { display: flex; align-items: end; gap: 6px; height: 56px; margin-top: 12px; }
.tp-bars i { flex: 1; height: 72%; background: #d1d8e3; border-radius: 2px 2px 0 0; transition: height 240ms cubic-bezier(.2, .8, .2, 1); }
.tp-bars i:nth-child(3n) { height: 96%; }.tp-bars i:nth-child(2n) { height: 52%; }
.tp-bars-trial i { background: #1f2de6; }.tp-bars-trial i:nth-child(3n) { height: 72%; }
.tp-hero-foot { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-size: 12px; color: #5d6875; }

.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane--list::after { content: ""; position: absolute; inset: auto 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.app .ui-win__row { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) auto; }
.app .ui-win__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.app .ui-win__bar .tp-mark { width: 18px; height: 18px; }
.tp-tabs { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--u-line); background: transparent; }
.tp-tabs [role="tab"] { min-height: 40px; padding: 0 12px; font: 500 14px var(--font-text); border-radius: 6px; transition: background-color 180ms cubic-bezier(.2, .8, .2, 1), color 180ms cubic-bezier(.2, .8, .2, 1); }
.tp-tabs [role="tab"]:hover { background: #f5f7fa; }
.tp-tabs [role="tab"][aria-selected="true"] { background: #eef1f6; color: #17212d; }
.tp-strategy { padding: 28px 32px 32px; color: var(--u-ink); }
.tp-strategy-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tp-strategy-head .tp-label { color: var(--u-muted); }
.tp-strategy-title { margin-top: 20px; font-size: 26px; line-height: 1.25; letter-spacing: -.03em; font-weight: 500; }
.tp-strategy-lead { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #3a4553; }
.tp-transform { margin-top: 24px; }
.tp-request, .tp-result { padding: 16px; border: 1px solid var(--u-line); border-radius: 6px; }
.tp-request .tp-mono, .tp-result .tp-mono { color: var(--u-muted); font-size: 12px; }
.tp-request p, .tp-result p { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.tp-text-lines { display: grid; gap: 8px; margin-top: 16px; }
.tp-text-lines i { display: block; width: 100%; height: 4px; border-radius: 2px; background: #c4cdd9; transition: width 240ms cubic-bezier(.2, .8, .2, 1); }
.tp-text-lines i:nth-child(2) { width: 80%; }.tp-text-lines i:nth-child(3) { width: 64%; }
.tp-result { border-left: 2px solid var(--p-accent); background: #f2f5fa; }
.tp-result .tp-text-lines i { background: #8794b3; }
.tp-transform-join { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 12px; color: var(--u-muted); font-weight: 500; }
.tp-transform-join svg { width: 20px; height: 20px; color: #8a93a0; }
.tp-guardrails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; font-size: 13px; }
.tp-guardrails dt { color: var(--u-muted); font-size: 12px; }.tp-guardrails dd { margin: 6px 0 0; font-weight: 500; }

.tp-features { margin-top: var(--s-7); }
.tp-features .panel { --p-h: 352px; }
.tp-cache-visual { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 0; padding: 28px; background: #dae2eb; color: #25303a; border-radius: 8px; }
.tp-cache-requests { display: grid; gap: 20px; font-size: 14px; }
.tp-cache-requests span { display: block; padding: 14px 16px; border: 1px solid #b4c0d0; border-radius: 6px; background: #f7f9fb; transition: border-color 180ms cubic-bezier(.2, .8, .2, 1); }
.tp-cache-path { display: grid; gap: 64px; }.tp-cache-path i { width: 100%; height: 1px; background: #96a8be; }
.tp-cache-core { display: grid; justify-items: center; align-content: center; gap: 14px; padding: 20px 16px; min-height: 168px; background: #f7f9fb; border: 1px solid #b4c0d0; border-radius: 6px; text-align: center; }
.tp-cache-core .tp-mark { width: 44px; height: 44px; color: #1f2de6; }.tp-cache-core strong { font-size: 15px; font-weight: 500; line-height: 1.3; }.tp-cache-core > span:last-child { font-size: 12px; line-height: 1.4; color: #4a5766; }
.tp-compression-visual { padding: 28px; background: #dae2eb; color: #25303a; border-radius: 8px; }
.tp-code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #b4c0d0; border-bottom: 0; border-radius: 6px 6px 0 0; background: #ecf1f7; font-size: 12px; }
.tp-code-lines { display: grid; gap: 20px; padding: 20px 16px; border: 1px solid #b4c0d0; border-top: 0; border-radius: 0 0 6px 6px; background: #f7f9fb; font: 400 13px/1.5 var(--font-mono); letter-spacing: 0; }
.tp-code-lines > span { display: flex; align-items: baseline; gap: 10px; }.tp-code-lines i { color: #6b7785; font-style: normal; }.tp-code-lines b { font-weight: 500; color: #1f2de6; }.tp-code-removed { color: #6b7785; text-decoration: line-through; }.tp-code-kept { color: #1f2de6; }
.tp-role-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 52px; }
.tp-role-flow > div { padding: 20px 0 0; border-top: 1px solid #5a5b61; }.tp-role-flow ul { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 16px; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }.tp-role-flow .tp-label { color: #c4c6ca; font-size: 12px; }
.tp-faq-intro { margin-top: 20px; max-width: 28ch; line-height: 1.5; }

@media (min-width: 1024px) and (max-width: 1279px) {
  .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .tp-cache-visual, .tp-compression-visual { padding: 24px; }
  .tp-cache-visual { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 196px; }.app > .app__pane--list::after { display: none; }.app .ui-win__side { display: none; }.app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
  .tp-features { row-gap: 40px; }
  .tp-hero-body { grid-template-columns: 120px minmax(0, 1fr); min-height: 280px; }
  .tp-mini-nav { padding: 16px 10px; gap: 4px; }
  .tp-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tp-features .panel { --p-h: 520px; }
  .tp-role-flow ul { display: grid; gap: 10px; }
  .tp-role-flow li { min-height: 32px; }
  .closing__links .footer__brand { grid-column: 1 / -1; }
  .closing__links .footer__col { grid-column: auto / span 6; }
}
@media (max-width: 639px) {
  #toi-uu { --g-screen: calc(var(--hm, 2) * 100lvh); }
  .hero--centred .pill { width: 100%; justify-content: center; }
  .tp-window-bar { padding: 0 16px; gap: 8px; min-height: 40px; }.tp-window-meta { display: none; }
  .tp-hero-body { display: block; min-height: 0; }.tp-mini-nav { display: none; }
  .tp-hero-content { padding: 16px 20px 20px; }
  .tp-preview-head { font-size: 16px; }
  .tp-pipeline { margin-top: 16px; gap: 10px; grid-template-columns: 1fr; }
  .tp-pipeline > span { font-size: 12px; gap: 8px; }
  .tp-pipeline i { width: 24px; height: 24px; font-size: 11px; }
  .tp-hero-comparison { gap: 16px; margin-top: 16px; }
  .tp-hero-comparison strong { font-size: 14px; margin-top: 4px; }
  .tp-bars { height: 44px; gap: 4px; margin-top: 10px; }
  .tp-hero-foot { gap: 12px; margin-top: 16px; font-size: 11px; }
  .app.ui { grid-template-rows: minmax(0, 1fr); }.app > .app__pane--list { display: none; }.app > .app__pane + .app__pane { border-top: 0; }
  .tp-tabs { padding: 12px; gap: 6px; }.tp-tabs [role="tab"] { padding-inline: 10px; min-height: 36px; font-size: 13px; }
  .tp-strategy { padding: 20px; }
  .tp-strategy-head { flex-wrap: wrap; }
  .tp-strategy-title { margin-top: 16px; font-size: 22px; }
  .tp-strategy-lead { margin-top: 8px; font-size: 14px; }
  .tp-transform { margin-top: 20px; }
  .tp-request, .tp-result { padding: 12px; border-radius: 5px; }
  .tp-text-lines { margin-top: 12px; gap: 6px; }
  .tp-request p, .tp-result p { font-size: 13px; margin-top: 6px; }
  .tp-transform-join { padding: 8px 12px; }
  .tp-guardrails { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
  .tp-guardrails > :last-child { grid-column: 1 / -1; }
  .tp-features .panel { --p-h: 340px; }
  .tp-cache-visual { padding: 20px; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
  .tp-cache-requests { gap: 16px; font-size: 13px; }
  .tp-cache-requests span { padding: 12px; }
  .tp-cache-core { padding: 16px 12px; gap: 12px; min-height: 144px; }
  .tp-cache-core .tp-mark { width: 36px; height: 36px; }
  .tp-cache-core strong { font-size: 14px; }
  .tp-cache-core > span:last-child { font-size: 11px; }
  .tp-cache-path { gap: 56px; }
  .tp-compression-visual { padding: 20px; }
  .tp-code-head { padding: 12px; flex-wrap: wrap; font-size: 11px; }
  .tp-code-lines { padding: 20px 12px; gap: 16px; font-size: 12px; }
  .tp-code-lines > span { flex-wrap: wrap; gap: 6px; }
  .tp-code-lines i { display: none; }
  .tp-role-flow { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .tp-role-flow > div { padding-block: 20px 16px; }
  .tp-role-flow ul { margin-top: 12px; gap: 10px; font-size: 14px; }
}
@media (min-width: 640px) and (max-height: 800px) {
  .tp-mini-nav, .tp-hero-comparison { display: none; }
  .tp-hero-body { display: block; min-height: 0; }
  .tp-hero-content { padding: 16px 24px 20px; }
  .tp-pipeline, .tp-hero-foot { margin-top: 16px; }
}
@media (max-width: 389px) {
  header.nav:not(.is-open) .nav__actions { display: none; }
  header.nav .nav__toggle { margin-left: auto; }
}

.tp-mark { display: inline-block; flex: none; width: 22px; height: 22px; fill: var(--accent); }

@media (min-width: 640px) and (max-width: 719px) { #toi-uu { --h: 2; } }
