/* Tweenyard: "motion lab" design system.
   Warm near-black, one acid accent, mono labels, hairline rules like a technical drawing.
   All site classes are prefixed `ty-` so they never collide with preset class names. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.f208f1ceee9d.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.6aaa5f578bc1.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0e0e0c;
  --bg-2: #121210;
  --panel: #161614;
  --panel-2: #1c1c19;
  --line: #2a2a25;
  --line-2: #3b3b34;
  --text: #ecebe5;
  --muted: #9a998f;
  --dim: #66655d;
  --accent: #d4ff3a;
  --accent-dim: rgba(212, 255, 58, 0.14);
  --ink: #0e0e0c;
  --warn: #ff6b4a;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px;
  --r: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ty-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; }
.ty-frame { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ty-mono { font-family: var(--mono); }
.ty-label {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.ty-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ty-a { color: var(--text); text-decoration: none; }
.ty-a:hover { color: var(--accent); }
.ty-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ header */
.ty-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 14, 12, 0.82);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.ty-header .ty-wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.ty-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 15px/1 var(--mono); letter-spacing: -0.02em; }
.ty-logo-mark { width: 26px; height: 26px; position: relative; flex: none; }
.ty-logo-mark svg { position: absolute; inset: 0; }
.ty-logo-dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  offset-path: path("M3 21 C 9 21, 9 5, 23 5"); offset-rotate: 0deg;
  animation: ty-logo 2.4s var(--ease-out) infinite alternate;
  box-shadow: 0 0 10px rgba(212, 255, 58, 0.6);
}
@keyframes ty-logo { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.ty-nav { display: flex; gap: 2px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.ty-nav a {
  font: 500 12px/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); text-decoration: none;
  padding: 8px 10px; border-radius: 7px; white-space: nowrap;
}
.ty-nav a:hover, .ty-nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.ty-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 7px 7px 2px 2px; }
.ty-head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ty-logo { flex: none; }
.ty-menu { display: none; position: relative; margin-right: auto; }
.ty-menu > summary { list-style: none; }
.ty-menu > summary::-webkit-details-marker { display: none; }
.ty-menu[open] > summary { color: var(--text); background: var(--panel-2); }
.ty-menu-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: min(440px, calc(100vw - 32px));
  padding: 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.ty-menu-panel a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font: 500 13px/1.2 var(--sans);
}
.ty-menu-panel a .ty-label { width: 18px; color: var(--muted); }
.ty-menu-panel a:hover, .ty-menu-panel a[aria-current="page"] { background: var(--panel-2); }
.ty-menu-panel a[aria-current="page"] .ty-label { color: var(--accent); }
.ty-menu-only-sm { display: none !important; }
@media (max-width: 1279px) {
  .ty-nav { display: none; }
  .ty-menu { display: block; }
}
@media (max-width: 480px) {
  .ty-header .ty-wrap { gap: 12px; }
  .ty-head-actions .ty-pricing-link { display: none; }
  .ty-menu-only-sm { display: flex !important; }
  .ty-menu-panel { position: fixed; top: 66px; left: 16px; right: 16px; width: auto; grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- buttons */
.ty-btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 9px;
  border: 1px solid var(--b); background: var(--panel); color: var(--text);
  font: 500 13px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease-out);
  white-space: nowrap;
}
.ty-btn:hover { --b: #55554b; background: var(--panel-2); }
.ty-btn:active { transform: translateY(1px); }
.ty-btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 600; }
.ty-btn--accent:hover { background: #e2ff70; border-color: #e2ff70; }
.ty-btn--ghost { background: transparent; }
.ty-btn--sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 7px; }
.ty-btn--lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 11px; }
.ty-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.ty-kbd { font: 500 10px/1 var(--mono); padding: 3px 5px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }

/* ------------------------------------------------------------------- hero */
.ty-hero { border-bottom: 1px solid var(--line); }
.ty-hero .ty-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding-top: 72px; padding-bottom: 72px; align-items: center; }
.ty-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.ty-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); animation: ty-blink 1.6s ease-in-out infinite; }
@keyframes ty-blink { 50% { opacity: 0.25; } }
.ty-h1 { font-size: clamp(42px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 640; margin: 0 0 24px; }
.ty-h1 .ty-dim { color: var(--dim); }
.ty-ticker { display: inline-flex; flex-direction: column; height: 1em; overflow: hidden; vertical-align: bottom; color: var(--accent); }
.ty-ticker span { display: block; height: 1em; line-height: 1em; animation: ty-tick 10s var(--ease-out) infinite; }
@keyframes ty-tick {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-100%); }
  40%, 56% { transform: translateY(-200%); }
  60%, 76% { transform: translateY(-300%); }
  80%, 96% { transform: translateY(-400%); }
  100% { transform: translateY(-500%); }
}
.ty-lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.ty-lead b { color: var(--text); font-weight: 500; }
.ty-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ty-stats { display: flex; gap: 28px; margin-top: 44px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.ty-stats div { display: flex; flex-direction: column; gap: 6px; }
.ty-stats b { font: 600 22px/1 var(--mono); letter-spacing: -0.02em; }

/* the instrument panel */
.ty-instrument { border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 255, 255, 0.015); }
.ty-instrument-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.ty-instrument-bar .ty-label b { color: var(--text); font-weight: 500; }
.ty-rec { display: inline-flex; align-items: center; gap: 7px; }
.ty-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: ty-blink 1.2s steps(1, end) infinite; }
.ty-instrument .ty-stage { min-height: 260px; border-radius: 0; border: 0; }
.ty-instrument-code { border-top: 1px solid var(--line); max-height: 176px; overflow: hidden; position: relative; }
.ty-instrument-code::after { content: ""; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(transparent, var(--panel)); }
.ty-instrument-code pre { margin: 0; padding: 14px 16px; font-size: 12px; }

/* ------------------------------------------------------------------ stage */
.ty-stage {
  --dot: rgba(255, 255, 255, 0.07);
  position: relative; display: grid; place-items: center; overflow: hidden;
  background-color: var(--bg-2);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 16px 16px; background-position: 8px 8px;
  border: 1px solid var(--line); border-radius: var(--r);
  color: #f2f2f2; font-family: var(--sans);
  isolation: isolate;
}
.ty-stage::before, .ty-stage::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.ty-stage::before { left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(255, 255, 255, 0.05); }
.ty-stage::after { top: 50%; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, 0.05); }
.ty-stage[data-bg="light"] { --dot: rgba(0, 0, 0, 0.09); background-color: #f4f3ee; color: #111; }
.ty-stage[data-bg="light"]::before, .ty-stage[data-bg="light"]::after { border-color: rgba(0, 0, 0, 0.07); }
.ty-stage[data-bg="checker"] { background-image: conic-gradient(#202020 25%, #2a2a2a 0 50%, #202020 0 75%, #2a2a2a 0); background-size: 18px 18px; }
.ty-stage-inner { display: grid; place-items: center; padding: 36px; width: max-content; transform-origin: center; }
.ty-stage-inner a { color: inherit; }

/* crop marks on specimen corners */
.ty-marks { position: absolute; inset: 10px; pointer-events: none; z-index: 2; }
.ty-marks::before, .ty-marks::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1px solid var(--line-2); }
.ty-marks::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ty-marks::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ------------------------------------------------------------------ tiles */
.ty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ty-tile {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  color: var(--text); text-decoration: none; overflow: hidden;
  transition: border-color 0.2s, transform 0.25s var(--ease-out), background 0.2s;
}
.ty-tile:hover { border-color: #4a4a40; background: var(--panel-2); transform: translateY(-2px); }
.ty-tile .ty-stage { aspect-ratio: 4 / 3; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.ty-tile-fit { transform-origin: center; display: grid; place-items: center; width: max-content; }
.ty-tile-meta { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ty-tile-idx { font: 500 11px/1 var(--mono); color: var(--dim); }
.ty-tile-name { font-size: 14px; font-weight: 500; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ty-tag { font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 7px; }
.ty-tile-open { position: absolute; top: 12px; right: 12px; z-index: 3; opacity: 0; transform: translateY(-4px); transition: 0.2s var(--ease-out); }
.ty-tile:hover .ty-tile-open { opacity: 1; transform: none; }
.ty-paused, .ty-paused * { animation-play-state: paused !important; }

/* --------------------------------------------------------------- sections */
.ty-section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.ty-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.ty-section-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; font-weight: 600; }
.ty-section-head h2 .ty-label { display: block; margin-bottom: 12px; }
.ty-more { font: 500 12px/1 var(--mono); color: var(--muted); text-decoration: none; }
.ty-more:hover { color: var(--accent); }
.ty-cross { position: absolute; width: 11px; height: 11px; transform: translate(-50%, -50%); }
.ty-cross::before, .ty-cross::after { content: ""; position: absolute; background: var(--line-2); }
.ty-cross::before { left: 5px; top: 0; bottom: 0; width: 1px; }
.ty-cross::after { top: 5px; left: 0; right: 0; height: 1px; }

/* formats band */
.ty-formats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ty-format { padding: 22px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-height: 170px; background: var(--panel); }
.ty-format:last-child { border-right: 0; }
.ty-format h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.ty-format p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ty-format code { font: 12px/1.5 var(--mono); color: var(--accent); margin-top: auto; }
.ty-format--paid { background: repeating-linear-gradient(135deg, var(--panel) 0 10px, #181816 10px 20px); }

/* ------------------------------------------------------------- page heads */
.ty-crumbs { display: flex; gap: 8px; align-items: center; padding: 26px 0 0; }
.ty-crumbs a { color: var(--muted); text-decoration: none; }
.ty-crumbs a:hover { color: var(--accent); }
.ty-crumbs span { color: var(--dim); }
.ty-pagehead { padding: 18px 0 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.ty-pagehead > div:first-child { flex: 1; min-width: 0; }
.ty-pagehead .ty-chips { flex-wrap: nowrap; }
.ty-pagehead h1 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 48px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 640; }
.ty-pagehead p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 46em; }
.ty-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ty-chip { font: 500 11px/1 var(--mono); padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; white-space: nowrap; }
a.ty-chip:hover { color: var(--text); border-color: #55554b; }
.ty-chip--on { color: var(--ink); background: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- editor */
.ty-bench { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.ty-bench-main { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.ty-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ty-toolbar .ty-spacer { flex: 1; }
.ty-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); }
.ty-seg button {
  font: 500 11px/1 var(--mono); letter-spacing: 0.03em; color: var(--muted); background: transparent; border: 0;
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
}
.ty-seg button:hover { color: var(--text); }
.ty-seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.ty-swatch-btn { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); cursor: pointer; padding: 0; }
.ty-bench .ty-stage { min-height: 420px; border: 0; border-radius: 0; }
.ty-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; }

/* timeline */
.ty-timeline { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--bg-2); }
.ty-play { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; }
.ty-play:hover { border-color: var(--accent); color: var(--accent); }
.ty-play svg { width: 12px; height: 12px; }
.ty-time { font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); min-width: 112px; }
.ty-time span { color: var(--dim); }
.ty-track { position: relative; height: 32px; }
.ty-track-rail { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line-2); border-radius: 2px; }
.ty-track-fill { position: absolute; left: 0; top: 50%; height: 2px; background: var(--accent); border-radius: 2px; width: 0; }
.ty-track-ticks { position: absolute; inset: 0; }
.ty-track-ticks i { position: absolute; top: 50%; width: 7px; height: 7px; background: var(--panel); border: 1px solid var(--muted); transform: translate(-50%, -50%) rotate(45deg); }
.ty-track-head { position: absolute; top: 3px; bottom: 3px; width: 2px; background: var(--accent); left: 0; transform: translateX(-1px); box-shadow: 0 0 10px var(--accent); }
.ty-track-head::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 6px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ty-track input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* params panel */
.ty-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; scrollbar-width: thin; }
.ty-panel-group { padding: 16px 16px 6px; border-bottom: 1px solid var(--line); }
.ty-panel-group:last-child { border-bottom: 0; }
.ty-panel-group > .ty-label { display: flex; justify-content: space-between; margin-bottom: 14px; }
.ty-field { margin-bottom: 16px; }
.ty-field-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.ty-field label { font-size: 13px; color: var(--text); }
.ty-field output, .ty-val {
  font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; min-width: 64px; text-align: right;
}
input.ty-val { width: 78px; color: var(--text); }
.ty-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; cursor: pointer; --pct: 50%; }
.ty-range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--pct), var(--line-2) var(--pct)); }
.ty-range::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--pct), var(--line-2) var(--pct)); }
.ty-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); transition: transform 0.15s; }
.ty-range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); }
.ty-range:active::-webkit-slider-thumb { transform: scale(1.25); background: var(--accent); }
.ty-select, .ty-input {
  width: 100%; height: 34px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  font: 500 12.5px/1 var(--mono); padding: 0 10px;
}
.ty-select:hover, .ty-input:hover { border-color: var(--line-2); }
.ty-color { display: flex; align-items: center; gap: 8px; }
.ty-color input[type="color"] { -webkit-appearance: none; appearance: none; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; background: var(--bg-2); cursor: pointer; }
.ty-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.ty-color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.ty-easing { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; }
.ty-curve { width: 64px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.ty-curve path { fill: none; stroke: var(--accent); stroke-width: 2; }
.ty-curve line { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 2; }
.ty-panel-foot { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel); }
.ty-panel-foot .ty-btn { flex: 1; }

/* code */
.ty-code { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.ty-code-head { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ty-tabs { display: flex; }
.ty-tabs button {
  position: relative; background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 500 13px/1 var(--sans); padding: 16px 14px;
}
.ty-tabs button:hover { color: var(--text); }
.ty-tabs button[aria-selected="true"] { color: var(--text); }
.ty-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }
.ty-subtabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ty-subtabs button { font: 500 11px/1 var(--mono); color: var(--muted); background: none; border: 1px solid transparent; border-radius: 6px; padding: 6px 9px; cursor: pointer; }
.ty-subtabs button[aria-selected="true"] { color: var(--text); border-color: var(--line-2); background: var(--panel); }
.ty-code-actions { margin-left: auto; display: flex; gap: 8px; padding: 9px 0; }
.ty-pre { margin: 0; padding: 18px 0; overflow: auto; max-height: 520px; font: 12.5px/1.7 var(--mono); color: #d8d7cf; tab-size: 2; counter-reset: ln; }
.ty-pre code { display: block; }
.ty-pre .ln { display: block; padding: 0 20px 0 0; white-space: pre; }
.ty-pre .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 44px; padding-right: 16px; text-align: right; color: #45443e; user-select: none; }
.tk-c { color: #6b6a62; font-style: italic; }
.tk-k { color: #ff9e64; }
.tk-s { color: #c3e88d; }
.tk-n { color: #f5c46b; }
.tk-p { color: #8fc7ff; }
.tk-t { color: #ff7a93; }
.tk-a { color: #c9a7ff; }
.tk-x { color: var(--accent); }
.ty-code-note { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--dim); font: 12px/1.5 var(--mono); }

/* ------------------------------------------------------------------ prose */
.ty-content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 64px 0; }
.ty-prose { font-size: 16.5px; line-height: 1.75; color: #cfcec6; max-width: 70ch; }
.ty-prose h2 { color: var(--text); font-size: 24px; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 18px; }
.ty-prose p { margin: 0 0 1.1em; }
.ty-prose code { font: 0.86em var(--mono); background: var(--panel-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; color: var(--text); }
.ty-aside { display: flex; flex-direction: column; gap: 14px; }
.ty-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px; }
.ty-card h3 { margin: 0 0 10px; font-size: 15px; }
.ty-card p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.ty-spec { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 13px; margin: 0; }
.ty-spec dt { color: var(--dim); font: 500 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.ty-spec dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--text); }

.ty-faq { border-top: 1px solid var(--line); margin-top: 40px; }
.ty-faq details { border-bottom: 1px solid var(--line); }
.ty-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--text); }
.ty-faq summary::-webkit-details-marker { display: none; }
.ty-faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--muted); transition: transform 0.25s var(--ease-out); }
.ty-faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.ty-faq details p { margin: 0 0 22px; color: var(--muted); line-height: 1.7; max-width: 68ch; }

/* ---------------------------------------------------------------- pricing */
.ty-plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ty-plan { padding: 30px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; background: var(--panel); }
.ty-plan:last-child { border-right: 0; }
.ty-plan--pro { background: linear-gradient(180deg, rgba(212, 255, 58, 0.06), transparent 40%), var(--panel-2); box-shadow: inset 0 2px 0 var(--accent); }
.ty-plan h2 { margin: 0; font-size: 18px; }
.ty-price { display: flex; align-items: baseline; gap: 6px; }
.ty-price b { font: 600 46px/1 var(--sans); letter-spacing: -0.04em; }
.ty-price span { color: var(--muted); font-size: 13px; }
.ty-plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.ty-plan li { display: flex; gap: 10px; align-items: baseline; color: #d5d4cc; }
.ty-plan li::before { content: "+"; font-family: var(--mono); color: var(--accent); }
.ty-plan li.no { color: var(--dim); }
.ty-plan li.no::before { content: "–"; color: var(--dim); }
.ty-plan .ty-btn { margin-top: auto; }
.ty-billing-toggle { display: flex; justify-content: center; margin: 0 0 26px; }
.ty-save { color: var(--accent); }

/* ------------------------------------------------------------------ forms */
.ty-auth { max-width: 420px; margin: 64px auto; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.ty-auth h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.03em; }
.ty-auth p { color: var(--muted); }
.ty-auth form p { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.ty-auth label { font-size: 13px; color: var(--text); }
.ty-auth input[type="email"], .ty-auth input[type="password"], .ty-auth input[type="text"] {
  height: 42px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; color: var(--text); padding: 0 12px; font: 14px var(--sans);
}
.ty-auth input:focus { outline: none; border-color: var(--accent); }
.ty-auth .helptext, .ty-auth ul.errorlist { font-size: 12px; color: var(--muted); }
.ty-auth ul.errorlist { color: var(--warn); padding-left: 16px; }
.ty-auth button[type="submit"], .ty-auth .ty-submit { width: 100%; height: 44px; margin-top: 8px; border: 0; border-radius: 10px; background: var(--accent); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.ty-auth a { color: var(--accent); }
.ty-messages { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ty-msg { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.ty-msg.error { border-color: var(--warn); }

.ty-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ty-table th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ty-table td { padding: 12px; border-bottom: 1px solid var(--line); color: #d5d4cc; }
.ty-meter { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.ty-meter i { display: block; height: 100%; background: var(--accent); }

/* ------------------------------------------------------------------ modal */
.ty-modal { border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); color: var(--text); padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.ty-modal::backdrop { background: rgba(5, 5, 4, 0.72); backdrop-filter: blur(4px); }
.ty-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ty-modal-head h2 { margin: 0; font-size: 17px; }
.ty-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.ty-modal-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.ty-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ty-option { position: relative; }
.ty-option input { position: absolute; opacity: 0; }
.ty-option span { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer; font: 500 12px/1.2 var(--mono); }
.ty-option small { color: var(--dim); font-size: 10px; letter-spacing: 0.04em; }
.ty-option input:checked + span { border-color: var(--accent); background: var(--accent-dim); }
.ty-option input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.ty-option input:focus-visible + span { outline: 2px solid var(--accent); }
.ty-progress { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.ty-progress i { display: block; height: 100%; width: 40%; background: var(--accent); animation: ty-indet 1.2s var(--ease-out) infinite; }
@keyframes ty-indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.ty-toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--text); color: var(--ink); font: 500 13px/1 var(--mono); padding: 11px 15px; border-radius: 9px; transition: 0.3s var(--ease-out); pointer-events: none; }
.ty-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------------------------------------------- footer */
.ty-footer { padding: 56px 0 40px; color: var(--muted); font-size: 13px; }
.ty-footer .ty-wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ty-footer h4 { margin: 0 0 14px; }
.ty-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ty-footer a { color: var(--muted); text-decoration: none; }
.ty-footer a:hover { color: var(--text); }
.ty-footer small { display: block; margin-top: 18px; color: var(--dim); font-family: var(--mono); font-size: 11px; }

.ty-404 { padding: 120px 0; text-align: center; }
.ty-404 b { display: block; font: 600 120px/1 var(--mono); letter-spacing: -0.06em; color: var(--accent); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .ty-bench { grid-template-columns: 1fr; }
  .ty-panel { position: static; max-height: none; }
  .ty-content { grid-template-columns: 1fr; }
  .ty-formats { grid-template-columns: repeat(2, 1fr); }
  .ty-format { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .ty-hero .ty-wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .ty-plans { grid-template-columns: 1fr; }
  .ty-plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .ty-footer .ty-wrap { grid-template-columns: 1fr 1fr; }
  .ty-nav { display: none; }
  .ty-pagehead { flex-direction: column; align-items: flex-start; }
  .ty-timeline { grid-template-columns: auto 1fr auto; }
  .ty-time { display: none; }
}
@media (max-width: 560px) {
  .ty-wrap { padding: 0 16px; }
  .ty-frame { border: 0; }
  .ty-formats { grid-template-columns: 1fr; }
  .ty-stats { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ty-logo-dot, .ty-ticker span, .ty-eyebrow i { animation: none; }
}
