/* Hunchwire landing v3: new site components on top of Lab::UI and the Hunchwire brand (styles.css). */
:root {
  --test: #b9c4a8;
  --scale: #d9b56c;
  --line: rgba(236, 232, 225, 0.10);
  --line-2: rgba(236, 232, 225, 0.18);
  --fill: rgba(236, 232, 225, 0.05);
  --fill-2: rgba(236, 232, 225, 0.09);
  --panel: #111112;
  --term: #0e0e0f;
}
html { scroll-padding-top: 5rem; }
.ui-app { overflow-x: clip; }
.label i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 0.6rem; vertical-align: 2px; background: var(--c, var(--ui-text-muted)); }
.t-test { --c: var(--test); }
.t-scale { --c: var(--scale); }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--ui-text-muted); max-width: 38rem; line-height: 1.6; }
.sec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 52rem; }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; max-width: none; }
.sec-head--row > div { display: grid; gap: 1.25rem; max-width: 46rem; }
.h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.small { font-size: 0.875rem; }
.muted { color: var(--ui-text-muted); }

/* Navigation with menus */
.site-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(11, 11, 12, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ui-border); }
.site-nav .wrap { display: flex; align-items: center; gap: 2.25rem; padding-block: 0.85rem; }
.menus { display: flex; align-items: center; gap: 0.25rem; }
.menu { position: relative; }
.menu > button, .menus > a { display: inline-flex; align-items: center; gap: 0.35rem; height: 2.25rem; padding: 0 0.75rem; border: 0; border-radius: 8px; background: none; color: var(--ui-text-muted); font: inherit; font-size: 0.875rem; cursor: pointer; }
.menu > button:hover, .menu.open > button, .ui-app .menus > a:hover, .ui-app .menus > a[aria-current="page"] { color: var(--ui-text); background: var(--fill); }
.menu > button svg { width: 10px; height: 10px; transition: transform var(--ui-dur-1) var(--ui-ease); }
.menu.open > button svg { transform: rotate(180deg); }
.panel { position: absolute; left: -0.5rem; top: calc(100% + 0.6rem); width: max-content; max-width: min(56rem, 92vw); padding: 0.75rem; border: 1px solid var(--line-2); border-radius: 14px; background: #121213; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); display: none; }
.menu.open .panel { display: grid; animation: ui-rise var(--ui-dur-2) var(--ui-ease) both; }
.panel--mega { grid-template-columns: 17rem 17rem 15rem; gap: 0.5rem; }
.panel--list { grid-template-columns: 18rem; }
.panel--two { grid-template-columns: 15rem 15rem; }
.mcol { display: grid; align-content: start; gap: 2px; }
.mcol > .label { padding: 0.5rem 0.75rem 0.4rem; font-size: 0.6875rem; }
.ui-app a.mcol-head { color: var(--ui-text-muted); }
.ui-app .mi { display: grid; gap: 0.1rem; padding: 0.6rem 0.75rem; border-radius: 9px; color: var(--ui-text); }
.mi b { font-weight: 500; font-size: 0.9rem; }
.mi span { font-size: 0.8125rem; color: var(--ui-text-muted); line-height: 1.4; }
.mi:hover { background: var(--fill-2); }
.ui-app .promo { display: grid; gap: 0.6rem; align-content: start; padding: 1rem; border-radius: 10px; background: var(--fill); border: 1px solid var(--line); color: var(--ui-text); }
.promo .mini-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 5.5rem; }
.promo .mini-split i { border-radius: 5px; border: 1px solid var(--line); }
.promo .mini-split i:first-child { background: var(--term); }
.promo .mini-split i:last-child { background: #1a1a1c; }
.promo b { font-family: var(--serif); font-weight: 450; font-size: 1.2rem; line-height: 1.15; }
.promo small { font-size: 0.8125rem; color: var(--ui-text-muted); }
.panel-foot { grid-column: 1 / -1; padding: 0.6rem 0.75rem 0.2rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ui-text-muted); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.ui-app .nav-end > a:not(.ui-button) { color: var(--ui-text-muted); font-size: 0.875rem; }
.burger { display: none; }
.mobile-menu { display: none; }
@media (max-width: 60rem) {
  .menus, .nav-end .login { display: none; }
  .burger { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--ui-text); cursor: pointer; }
  .mobile-menu.open { display: grid; gap: 1.5rem; padding: 1.5rem clamp(1rem, 4vw, 3rem) 2rem; border-top: 1px solid var(--ui-border); max-height: calc(100vh - 4rem); overflow-y: auto; }
  .mobile-menu section { padding: 0; display: grid; gap: 0.25rem; }
  .ui-app .mobile-menu a { color: var(--ui-text); padding: 0.4rem 0; }
}

/* Copy line: the one line you paste into your agent */
.copyline { min-width: 0; display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0.4rem 0.4rem 1rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); max-width: 48rem; }
.copyline .label { flex: none; display: inline-block; margin: 0; font-size: 0.625rem; }
.copyline code { flex: 1; min-width: 0; font-family: var(--ui-font-mono); font-size: 0.8125rem; color: var(--ui-text); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.copyline code::before { content: "› "; color: var(--faint); }
.copy-btn { flex: none; height: 2.1rem; padding: 0 0.9rem; border: 1px solid var(--line-2); border-radius: 7px; background: transparent; color: var(--ui-text); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.copy-btn:hover { background: var(--fill-2); }
.works { font-size: 0.8125rem; color: var(--ui-text-muted); }
.works b { font-weight: 400; color: var(--ui-text); }
@media (max-width: 40rem) { .copyline .label { display: none; } }

/* Hero v3 */
.hero3 { padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero3 .hero-title { max-width: 13ch; }
.hero3 .hero-foot { margin-top: clamp(2.5rem, 5vw, 4rem); }
.hero-actions { display: grid; gap: 1.25rem; justify-items: start; }
.hero-actions .ui-button { height: 3rem; }

/* Split screen: an agent's terminal beside a browser */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.75rem; height: 36rem; }
.term { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 12px; background: var(--term); overflow: hidden; font-family: var(--ui-font-mono); font-size: 0.8125rem; line-height: 1.75; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.term-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--line); color: var(--ui-text-muted); font-size: 0.75rem; }
.term-bar .frame-dots { margin-right: 0.25rem; }
.term-bar span:last-child { margin-left: auto; color: var(--faint); }
.term-body { flex: 1; padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.1rem; overflow: hidden; }
.tl { color: var(--ui-text-muted); white-space: pre-wrap; animation: ui-rise 220ms var(--ui-ease) both; }
.tl.first, .tl:first-child { margin-top: 0; }
.tl.you { margin-top: 0.9rem; padding: 0.35rem 0.65rem; border-radius: 6px; background: rgba(236, 232, 225, 0.09); color: var(--ui-text); }
.tl.you::before { content: "› "; color: var(--ui-text-muted); }
.tl.do { margin-top: 0.45rem; }
.tl.do.done::before { content: "✓ "; color: var(--test); }
.tl.do.run { color: var(--ui-text); }
.tl.do .spin { display: inline-block; width: 1.5ch; color: var(--test); }
.tl.res { padding-left: 2ch; color: var(--faint); }
.tl.res::before { content: "⎿ "; }
.tl.say { margin-top: 0.6rem; color: var(--ui-text); }
.tl.say::before { content: "● "; color: var(--ui-text); }
.tl.gap { margin-top: 0.9rem; color: var(--faint); text-align: center; }
.tl.gap::before, .tl.gap::after { content: " —— "; }
.term-status { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1.25rem; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }
.term-status .who-now::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.5rem; border-radius: 50%; background: var(--faint); vertical-align: 1px; }
.who-now[data-mode="working"] { color: var(--ui-text-muted); }
.who-now[data-mode="working"]::before { background: var(--test); animation: pulse 1s ease-in-out infinite; }
.who-now[data-mode="typing"] { color: var(--ui-text); }
.who-now[data-mode="typing"]::before { background: var(--ui-text); }
@keyframes pulse { 50% { opacity: 0.3; } }
.term-input { display: flex; align-items: center; min-height: 2.6rem; margin: 0 0.75rem 0.75rem; padding: 0.45rem 0.75rem; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ui-text); transition: border-color var(--ui-dur-2) var(--ui-ease), background var(--ui-dur-2) var(--ui-ease); }
.term-input::before { content: "›"; margin-right: 0.6rem; color: var(--faint); }
.term-input.active { border-color: rgba(236, 232, 225, 0.55); background: rgba(236, 232, 225, 0.04); }
.term-input .typed { white-space: pre-wrap; }
.term-input .caret { flex: none; margin-left: 1px; }
.caret { display: inline-block; width: 0.55em; height: 1.1em; background: var(--ui-text); vertical-align: -0.2em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.browser, .view { --app-bg: #141416; --app-line: rgba(236, 232, 225, 0.09); }
.browser { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 12px; background: #141416; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); font-size: 14px; line-height: 1.5; }
.browser .frame-bar { flex: none; }
.browser .frame-url { transition: color var(--ui-dur-2) var(--ui-ease); }
.browser-body { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.scene { display: none; flex: 1; flex-direction: column; min-height: 0; animation: ui-rise 320ms var(--ui-ease) both; }
.scene.on { display: flex; }
.split-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1rem; font-size: 0.8125rem; color: var(--ui-text-muted); }
.split-foot .ticks { display: flex; gap: 0.4rem; }
.split-foot .ticks i { width: 1.5rem; height: 3px; border-radius: 2px; background: var(--line-2); }
.split-foot .ticks i.on { background: var(--ui-text); }
.split-foot a { margin-left: auto; }
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; height: auto; }
  .term { height: 24rem; }
  .browser { min-height: 26rem; }
}

/* Scenes inside the browser */
.site-page { flex: 1; display: grid; align-content: center; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem); background: #f3f1ec; color: #1b1b1a; }
.site-page .v { display: flex; gap: 0.35rem; }
.site-page .v span { padding: 0.15rem 0.6rem; border: 1px solid #cfccc4; border-radius: 999px; font: 11px var(--ui-font-mono); color: #6a665f; }
.site-page .v span.on { background: #1b1b1a; color: #f3f1ec; border-color: #1b1b1a; }
.site-page .brand { font-weight: 600; font-size: 14px; }
.site-page h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 16ch; }
.site-page p { color: #55524c; max-width: 30rem; font-size: 14.5px; }
.site-page .btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.site-page .b1, .site-page .b2 { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1.1rem; border-radius: 6px; font-size: 14px; }
.site-page .b1 { background: #1b1b1a; color: #f3f1ec; }
.site-page .b2 { border: 1px solid #1b1b1a; }
.site-page .b2.new { animation: pop 500ms var(--ui-ease) both; }
.site-page small { color: #6a665f; font-size: 12.5px; }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.thanks { justify-items: center; text-align: center; }
.thanks .place { font-family: var(--serif); font-size: clamp(3.5rem, 2rem + 5vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; }
.thanks .reflink { font: 12.5px var(--ui-font-mono); padding: 0.5rem 0.9rem; border: 1px solid #cfccc4; border-radius: 6px; background: #fff; }
.thanks .tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.thanks .tiers span { padding: 0.25rem 0.7rem; border-radius: 999px; background: #e6e3dc; font-size: 12.5px; color: #3e3b36; }

.approve-scene { flex: 1; display: grid; place-items: center; padding: 1.5rem; background: var(--ui-bg); }
.approve { width: min(100%, 25rem); display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--ui-border); border-radius: 14px; background: var(--ui-surface); }
.approve h5 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.approve .code { font: 600 1.35rem var(--ui-font-mono); letter-spacing: 0.12em; padding: 0.5rem 0.8rem; border: 1px dashed var(--line-2); border-radius: 8px; text-align: center; }
.perm { display: grid; grid-template-columns: 1rem 1fr; gap: 0.1rem 0.6rem; font-size: 13px; }
.perm i { width: 14px; height: 14px; margin-top: 3px; border: 1px solid var(--line-2); border-radius: 3px; }
.perm i.on { background: var(--ui-text); border-color: var(--ui-text); box-shadow: inset 0 0 0 3px var(--ui-surface); }
.perm span { grid-column: 2; font-size: 12px; color: var(--ui-text-muted); }
.approve .row { display: flex; gap: 0.5rem; }
.approve .row span { flex: 1; display: grid; place-items: center; height: 2.4rem; border-radius: 3px; font-size: 14px; }
.approve .row span:first-child { background: var(--ui-text); color: var(--ui-bg); font-weight: 500; }
.approve .row span:last-child { flex: none; padding: 0 1rem; border: 1px solid var(--line-2); }

/* The app inside a frame (extends .frame patterns in styles.css) */
.app-scene { flex: 1; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.app-scene .app { align-content: start; overflow: hidden; }
.insight { padding: 1rem 1.15rem; border: 1px solid rgba(236, 232, 225, 0.28); border-radius: 10px; background: rgba(236, 232, 225, 0.04); display: grid; gap: 0.5rem; animation: ui-rise 400ms var(--ui-ease) both; }
.insight .who { display: flex; align-items: center; gap: 0.5rem; font-size: 11.5px; color: var(--ui-text-muted); }
.insight .who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--test); }
.insight p { font-size: 13.5px; }
.insight .acts { display: flex; gap: 0.5rem; }
.insight .acts span { padding: 0.2rem 0.6rem; border: 1px solid var(--app-line, var(--line)); border-radius: 999px; font-size: 11.5px; color: var(--ui-text-muted); }
.wave { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid rgba(217, 181, 108, 0.4); border-radius: 10px; animation: ui-rise 400ms var(--ui-ease) both; }
.wave b { font-weight: 600; font-size: 13.5px; }
.wave small { display: block; font-size: 12px; color: var(--ui-text-muted); }
.wave span { margin-left: auto; font: 11px var(--ui-font-mono); color: var(--scale); letter-spacing: 0.08em; text-transform: uppercase; }

/* Chapters and scenario pickers */
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pickers { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pick { height: 2.25rem; padding: 0 0.95rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ui-text-muted); font: inherit; font-size: 0.875rem; cursor: pointer; }
.pick:hover { color: var(--ui-text); }
.pick[aria-pressed="true"] { background: var(--ui-text); border-color: var(--ui-text); color: var(--ui-bg); }
.controls { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1rem; margin-top: 1rem; }
.controls .btns { display: flex; gap: 0.5rem; align-items: center; }
.icon-btn { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 3px; background: none; color: var(--ui-text); cursor: pointer; font: inherit; }
.icon-btn:hover { background: var(--fill-2); }
.play { min-width: 6.5rem; }
.chapters { flex: 1; min-width: min(100%, 30rem); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.chapter { display: grid; gap: 0.1rem; align-content: start; padding: 0.55rem 0.4rem 0.2rem; border: 0; border-top: 2px solid var(--line-2); background: none; color: var(--faint); font: inherit; font-size: 0.8125rem; text-align: left; cursor: pointer; line-height: 1.3; }
.chapter small { font: 10.5px var(--ui-font-mono); letter-spacing: 0.08em; }
.chapter.done { border-top-color: rgba(236, 232, 225, 0.5); color: var(--ui-text-muted); }
.chapter.on { border-top-color: var(--ui-text); color: var(--ui-text); }
@media (max-width: 40rem) { .chapters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* The path, 0 to 1 */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ui-border-strong); }
.path > div { display: grid; gap: 0.75rem; align-content: start; padding: 2rem 2rem 0 0; }
.path > div + div { padding-left: 2rem; border-left: 1px solid var(--ui-border); }
.path .n { font-family: var(--serif); color: var(--ui-text-muted); }
.path h3 { font-family: var(--serif); font-weight: 450; font-size: 1.5rem; line-height: 1.15; }
.path p { color: var(--ui-text-muted); font-size: 0.9375rem; }
@media (max-width: 52rem) {
  .path { grid-template-columns: 1fr 1fr; }
  .path > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .path > div { padding-bottom: 2rem; }
}
@media (max-width: 34rem) { .path { grid-template-columns: 1fr; } .path > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--ui-border); } .path > div { padding-top: 1.5rem; } }

/* Showcase: tabs, copy, product view */
.tabs { display: flex; gap: 1.75rem; border-bottom: 1px solid var(--ui-border); overflow-x: auto; scrollbar-width: none; margin-bottom: 2.5rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 0.25rem 0 0.9rem; border: 0; background: none; color: var(--ui-text-muted); font: inherit; font-size: 0.9375rem; cursor: pointer; }
.tab:hover { color: var(--ui-text); }
.tab[aria-selected="true"] { color: var(--ui-text); box-shadow: inset 0 -2px 0 var(--ui-text); }
.show { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.show--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
.show--flip .show-copy { order: 2; }
.show-copy { display: grid; gap: 1.25rem; align-content: start; padding-top: 0.5rem; }
.show-copy ul, .ticklist { margin: 0; padding: 0; list-style: none; display: grid; }
.show-copy li, .ticklist li { padding: 0.7rem 0 0.7rem 1.4rem; border-bottom: 1px solid var(--ui-border); color: var(--ui-text-muted); font-size: 0.9375rem; position: relative; }
.show-copy li:first-child, .ticklist li:first-child { border-top: 1px solid var(--ui-border); }
.show-copy li::before, .ticklist li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 0.6rem; height: 1px; background: var(--c, var(--ui-text)); }
.tabpanel[hidden] { display: none; }
@media (max-width: 52rem) { .show, .show--flip { grid-template-columns: minmax(0, 1fr); } .show--flip .show-copy { order: 0; } }

/* Product views: small app screens on example data */
.view { pointer-events: none; user-select: none; }
.view .app { gap: 1rem; }
.view-note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--faint); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.vcard { padding: 0.9rem; border: 1px solid var(--app-line); border-radius: 10px; display: grid; gap: 0.55rem; align-content: start; }
.vcard.win { border-color: rgba(236, 232, 225, 0.35); }
.vcard .vlabel { display: flex; justify-content: space-between; font-size: 11px; color: var(--ui-text-muted); font-family: var(--ui-font-mono); letter-spacing: 0.06em; }
.vcard .thumb { height: 4.5rem; border-radius: 6px; background: #f3f1ec; padding: 0.6rem; display: grid; gap: 0.3rem; align-content: start; }
.vcard .thumb b { font-family: var(--serif); font-weight: 450; color: #1b1b1a; font-size: 12.5px; line-height: 1.15; }
.vcard .thumb i { display: block; width: 3.5rem; height: 0.8rem; border-radius: 3px; background: #1b1b1a; }
.vcard .big { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vcard small { font-size: 11.5px; color: var(--ui-text-muted); }
.chipx { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.5rem; border: 1px solid var(--app-line); border-radius: 999px; font-size: 11px; color: var(--ui-text-muted); white-space: nowrap; }
.chipx.ok { color: var(--test); border-color: rgba(185, 196, 168, 0.35); }
.chipx.no { color: var(--ui-danger); border-color: rgba(215, 154, 140, 0.35); }
.chipx.gold { color: var(--scale); border-color: rgba(217, 181, 108, 0.35); }
.bars { display: grid; gap: 0.7rem; }
.bar-row { display: grid; grid-template-columns: 4.5rem 1fr 4.5rem 4.5rem; gap: 0.75rem; align-items: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bar-row > span { color: var(--ui-text-muted); text-align: right; }
.bar-row > span:first-child { text-align: left; color: var(--ui-text); }
.bar-row .track2 { height: 8px; border-radius: 4px; background: rgba(236, 232, 225, 0.06); overflow: hidden; }
.bar-row .track2 i { display: block; height: 100%; border-radius: 4px; background: rgba(236, 232, 225, 0.75); }
.bar-row.win .track2 i { background: var(--ui-text); }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0.75rem; }
.who-head { display: flex; align-items: center; gap: 0.75rem; }
.who-head .av { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--fill-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.who-head b { font-weight: 600; font-size: 14px; display: block; }
.who-head small { font-size: 12px; color: var(--ui-text-muted); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 12.5px; }
.facts dt { color: var(--ui-text-muted); }
.facts dd { margin: 0; }
.timeline { display: grid; gap: 0.6rem; font-size: 12.5px; }
.timeline div { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.75rem; color: var(--ui-text-muted); }
.timeline div b { font-weight: 400; color: var(--ui-text); }
.timeline time { font-family: var(--ui-font-mono); font-size: 11px; color: var(--faint); padding-top: 1px; }
.ladder { display: grid; gap: 0.5rem; }
.rung { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 0.75rem; align-items: center; padding: 0.65rem 0.8rem; border: 1px solid var(--app-line); border-radius: 9px; font-size: 13px; }
.rung b { font-family: var(--serif); font-weight: 450; font-size: 1.35rem; line-height: 1; }
.rung small { font-size: 11.5px; color: var(--ui-text-muted); }
.share-card { border-radius: 10px; padding: 1.1rem; background: #f3f1ec; color: #1b1b1a; display: grid; gap: 0.35rem; }
.share-card .place { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.share-card small { color: #6a665f; font-size: 11.5px; }
.post { padding: 0.75rem 0.85rem; border: 1px solid var(--app-line); border-radius: 9px; display: grid; gap: 0.3rem; font-size: 12.5px; }
.post .vlabel { font: 10.5px var(--ui-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-text-muted); }
.log { display: grid; }
.log div { display: grid; grid-template-columns: 1.25rem 1fr auto; gap: 0.75rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--app-line); font-size: 12.5px; }
.log i { width: 8px; height: 8px; border-radius: 50%; background: var(--test); align-self: center; }
.log i.you { background: var(--ui-text-muted); }
.log small { color: var(--ui-text-muted); font-size: 11.5px; }
.log span { color: var(--ui-text-muted); }
.log u { text-decoration: none; font-size: 11.5px; color: var(--ui-text); border-bottom: 1px solid var(--line-2); }
.formv { display: grid; gap: 0.6rem; }
.formv .q { padding: 0.7rem 0.8rem; border: 1px solid var(--app-line); border-radius: 9px; display: grid; gap: 0.35rem; font-size: 12.5px; }
.formv .q small { font-size: 11px; color: var(--ui-text-muted); font-family: var(--ui-font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.formv .opts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
@media (max-width: 40rem) { .cols3, .profile { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 3.5rem 1fr 3.5rem; } .bar-row > span:last-child { display: none; } }

/* You or your agent */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.duo > div { display: grid; gap: 0.75rem; align-content: start; }
.duo .term { min-height: 17rem; }
.duo .term-body { justify-content: flex-start; }
.duo .frame { min-height: 17rem; }
@media (max-width: 52rem) { .duo { grid-template-columns: 1fr; } }

/* One tool, not five */
.stack { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 2rem; align-items: center; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ui-border); }
.tools div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--ui-border); display: grid; gap: 0.1rem; }
.tools div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--ui-border); }
.tools b { font-weight: 400; }
.tools small { font-size: 0.8125rem; color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(236, 232, 225, 0.25); }
.arrow { font-family: var(--serif); font-size: 2.5rem; color: var(--ui-text-muted); }
.one { padding: 2rem; border: 1px solid var(--ui-border-strong); display: grid; gap: 1rem; }
.one .wordmark { font-size: 2rem; }
@media (max-width: 52rem) { .stack { grid-template-columns: 1fr; } .arrow { transform: rotate(90deg); justify-self: start; } }

/* Cards in a row */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); border-top: 1px solid var(--ui-border-strong); }
.cards > * { display: grid; gap: 0.75rem; align-content: start; padding: 2rem 2rem 2rem 0; }
.cards > * + * { padding-left: 2rem; border-left: 1px solid var(--ui-border); }
.cards h3 { font-size: 1.0625rem; font-weight: 500; }
.cards p { color: var(--ui-text-muted); font-size: 0.9375rem; }
@media (max-width: 40rem) { .cards > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--ui-border); } }

/* Feature grid with thumbnails */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.ui-app .fcard { display: grid; gap: 1rem; align-content: start; padding: 1rem 1rem 1.5rem; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); color: var(--ui-text); transition: border-color var(--ui-dur-2) var(--ui-ease), transform var(--ui-dur-2) var(--ui-ease); }
.ui-app .fcard:hover { border-color: var(--ui-border-strong); transform: translateY(-2px); }
.fcard .fthumb { height: 9rem; border-radius: 8px; background: #141416; border: 1px solid var(--line); overflow: hidden; padding: 0.9rem; display: grid; gap: 0.45rem; align-content: start; }
.fcard .fthumb i { display: block; height: 7px; border-radius: 3px; background: rgba(236, 232, 225, 0.12); }
.fcard .fthumb i.hi { background: rgba(236, 232, 225, 0.6); }
.fcard .fthumb i.c { background: var(--c, var(--test)); opacity: 0.8; }
.fcard h3 { font-family: var(--serif); font-weight: 450; font-size: 1.4rem; line-height: 1.15; padding-inline: 0.5rem; }
.fcard p { color: var(--ui-text-muted); font-size: 0.9375rem; padding-inline: 0.5rem; }
.fcard .more { padding-inline: 0.5rem; font-size: 0.875rem; }

/* Pricing teaser and compare table */
.plans4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.plan .limits { font-size: 0.875rem; color: var(--ui-text); }
.plan.rec { position: relative; }
.plan .tagline { font-size: 0.6875rem; font-family: var(--ui-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ui-text-muted); }
.ctable-wrap { position: relative; overflow-x: auto; border-top: 1px solid var(--ui-border-strong); }
.ctable { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.ctable th { padding: 1.25rem 0.75rem 1rem; text-align: center; font-weight: 400; font-size: 0.875rem; border-bottom: 1px solid var(--ui-border); }
.ctable th:first-child, .ctable td:first-child { text-align: left; padding-left: 0; }
.ctable td { padding: 0.8rem 0.75rem; text-align: center; border-bottom: 1px solid var(--ui-border); color: var(--ui-text-muted); }
.ctable td:first-child { color: var(--ui-text); }
.ctable tr.g td { padding-top: 2rem; font-family: var(--ui-font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ui-text-muted); text-align: left; }
.yes { color: var(--ui-text); }
.ctable td.hw { color: var(--ui-text); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); column-gap: 4rem; border-top: 1px solid var(--ui-border-strong); }
.faq details { border-bottom: 1px solid var(--ui-border); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ui-text-muted); font-family: var(--ui-font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 2rem 1.25rem 0; color: var(--ui-text-muted); font-size: 0.9375rem; }

/* Footer */
.site-foot { padding-block: 4rem 3rem; border-top: 1px solid var(--ui-border); font-size: 0.875rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.site-foot .cols > div { display: grid; gap: 0.6rem; align-content: start; }
.ui-app .site-foot a { color: var(--ui-text-muted); }
.ui-app .site-foot a:hover { color: var(--ui-text); }
.site-foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ui-border); color: var(--faint); font-size: 0.8125rem; }
@media (max-width: 52rem) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > div:first-child { grid-column: 1 / -1; } }

/* Feature pages */
.crumbs { font-size: 0.8125rem; color: var(--ui-text-muted); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ui-app .crumbs a { color: var(--ui-text-muted); }
.ui-app .crumbs a:hover { color: var(--ui-text); }
.page-hero { padding-block: clamp(4rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero .h1 { font-family: var(--serif); font-weight: 450; font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 15ch; text-wrap: balance; }
.page-hero .h1 em { font-style: italic; }
.shot { padding-top: 0; }
.rows { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.row:nth-child(even) > :first-child { order: 2; }
.row .copy { display: grid; gap: 1.25rem; }
@media (max-width: 52rem) { .row { grid-template-columns: minmax(0, 1fr); } .row:nth-child(even) > :first-child { order: 0; } }
.agent-row .term { height: 24rem; }
.agent-row .term-body { justify-content: flex-start; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); border-top: 1px solid var(--ui-border-strong); }
.ui-app .related a { display: grid; gap: 0.4rem; padding: 1.5rem 1.5rem 1.5rem 0; color: var(--ui-text); }
.ui-app .related a + a { padding-left: 1.5rem; border-left: 1px solid var(--ui-border); }
.related a span { color: var(--ui-text-muted); font-size: 0.9375rem; }
.related a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ui-border-strong); }
.related b { font-weight: 500; }
@media (max-width: 40rem) { .ui-app .related a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--ui-border); } }
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.5rem; border: 1px solid var(--ui-border-strong); }
.next .h3 { max-width: 22ch; }

/* Steps */
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; counter-reset: s; }
.steps3 > div { display: grid; gap: 0.9rem; align-content: start; }
.steps3 h3 { font-size: 1.0625rem; font-weight: 500; }
.steps3 h3::before { counter-increment: s; content: counter(s) " · "; font-family: var(--serif); color: var(--ui-text-muted); }
.steps3 p { color: var(--ui-text-muted); font-size: 0.9375rem; }

/* Plain table */
.ptable-wrap { overflow-x: auto; border-top: 1px solid var(--ui-border-strong); }
.ptable { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: 0.9375rem; }
.ptable th { text-align: left; font-family: var(--ui-font-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ui-text-muted); padding: 1rem 1rem 0.75rem 0; border-bottom: 1px solid var(--ui-border); }
.ptable td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--ui-border); color: var(--ui-text-muted); vertical-align: top; }
.ptable td:first-child { color: var(--ui-text); }

/* Changelog */
.entries { border-top: 1px solid var(--ui-border-strong); max-width: 56rem; }
.entry { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; padding-block: 2rem; border-bottom: 1px solid var(--ui-border); }
.entry h3 { font-family: var(--serif); font-weight: 450; font-size: 1.6rem; line-height: 1.15; margin-bottom: 0.75rem; }
@media (max-width: 40rem) { .entry { grid-template-columns: 1fr; gap: 0.75rem; } }

/* Reveal */
.reveal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.5rem; align-items: start; }
.reveal .card { padding: clamp(1.75rem, 4vw, 2.75rem); border: 1px solid var(--ui-border-strong); display: grid; gap: 1.25rem; }
.reveal .place { font-family: var(--serif); font-size: clamp(4rem, 2.5rem + 6vw, 7rem); line-height: 0.95; letter-spacing: -0.03em; }
.reflink { display: flex; gap: 0.75rem; align-items: center; padding: 0.4rem 0.4rem 0.4rem 0.9rem; border: 1px solid var(--line-2); font: 0.8125rem var(--ui-font-mono); }
.reflink span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sharebtns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.milestones { display: grid; border-top: 1px solid var(--ui-border); }
.milestones div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--ui-border); font-size: 0.9375rem; color: var(--ui-text-muted); }
.milestones b { font-weight: 400; color: var(--ui-text); }

.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); padding: 0.6rem 1rem; border-radius: 8px; background: var(--ui-text); color: var(--ui-bg); font-size: 0.875rem; z-index: 50; animation: ui-rise var(--ui-dur-2) var(--ui-ease) both; }

@media (prefers-reduced-motion: reduce) {
  .tl, .scene, .insight, .wave, .site-page .b2.new, .menu.open .panel, .who-now::before { animation: none; }
  .caret { animation: none; }
}

/* Light theme for public pages. The app stays dark (decision 0005), so product views keep the dark tokens. */
:root {
  color-scheme: light;
  --ui-bg: #f6f5f1;
  --ui-surface: #ffffff;
  --ui-surface-2: #efede7;
  --ui-border: rgba(29, 29, 27, 0.12);
  --ui-border-strong: rgba(29, 29, 27, 0.26);
  --ui-text: #1d1d1b;
  --ui-text-muted: #57534b;
  --ui-link: #1d1d1b;
  --ui-accent: #1d1d1b;
  --ui-accent-2: #1d1d1b;
  --ui-on-accent: #f6f5f1;
  --ui-success: #56693f;
  --ui-danger: #9a4a3a;
  --faint: #6b675e;
  --line: rgba(29, 29, 27, 0.12);
  --line-2: rgba(29, 29, 27, 0.24);
  --fill: rgba(29, 29, 27, 0.04);
  --fill-2: rgba(29, 29, 27, 0.07);
  --panel: #ffffff;
  --dot-test: #7d8f63;
  --dot-scale: #b8893a;
}
body, .ui-app { background: var(--ui-bg); color: var(--ui-text); }
.t-test { --c: var(--dot-test); }
.t-scale { --c: var(--dot-scale); }
.ui-button:hover { background: #000; }
.ui-button--ghost:hover { background: var(--fill-2); }
.site-nav { background: rgba(246, 245, 241, 0.9); }
.panel { background: #ffffff; box-shadow: 0 24px 48px -20px rgba(29, 29, 27, 0.25); }
.promo .mini-split i:last-child { background: #e3e1da; }
.tools small { text-decoration-color: var(--ui-border-strong); }
.fcard .fthumb { background: var(--ui-surface-2); }
.fcard .fthumb i { background: rgba(29, 29, 27, 0.12); }
.fcard .fthumb i.hi { background: rgba(29, 29, 27, 0.55); }
.ui-app .fcard:hover { box-shadow: 0 16px 32px -24px rgba(29, 29, 27, 0.35); }

/* Dark islands: the app, the terminal, code. */
.frame, .browser, .term, .ui-code {
  color-scheme: dark;
  --ui-bg: #0b0b0c;
  --ui-surface: #111112;
  --ui-surface-2: #161617;
  --ui-border: rgba(236, 232, 225, 0.10);
  --ui-border-strong: rgba(236, 232, 225, 0.22);
  --ui-text: #ece8e1;
  --ui-text-muted: #aba69d;
  --ui-link: #ece8e1;
  --ui-success: #b9c4a8;
  --ui-danger: #d79a8c;
  --faint: #7a756d;
  --line: rgba(236, 232, 225, 0.10);
  --line-2: rgba(236, 232, 225, 0.18);
  --fill: rgba(236, 232, 225, 0.05);
  --fill-2: rgba(236, 232, 225, 0.09);
  --panel: #111112;
  color: var(--ui-text);
}
.frame, .browser, .term { box-shadow: 0 30px 60px -30px rgba(29, 29, 27, 0.45); }
.ui-code { background: #141416; border-color: #141416; }

/* Pricing: plan cards with a monthly or annual toggle */
.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.pricing-hero { text-align: center; padding-bottom: clamp(2rem, 4vw, 3rem); }
.pricing-hero .wrap { display: grid; gap: 1.25rem; justify-items: center; }
.pricing-hero .h1 { max-width: 18ch; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem); }
.pricing { display: grid; gap: 1.5rem; justify-items: start; }
.pricing--center { justify-items: center; }
.pricing--center .note { text-align: center; }
.billing { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ui-surface); }
.bill { height: 2.25rem; padding: 0 1.1rem; border: 0; border-radius: 999px; background: none; color: var(--ui-text-muted); font: inherit; font-size: 0.875rem; cursor: pointer; }
.bill:hover { color: var(--ui-text); }
.bill[aria-pressed="true"] { background: var(--ui-text); color: var(--ui-bg); }
.bill span { margin-left: 0.35rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: rgba(184, 137, 58, 0.16); color: #7a5a1e; font-size: 0.75rem; }
.bill[aria-pressed="true"] span { background: rgba(246, 245, 241, 0.16); color: var(--ui-bg); }
.pcards { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pcard { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.5rem; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); text-align: left; }
.pcard.rec { border-color: var(--ui-text); box-shadow: 0 24px 48px -32px rgba(29, 29, 27, 0.45); }
.pcard-head { display: flex; align-items: center; justify-content: space-between; min-height: 1.5rem; }
.pcard h3 { font-size: 1rem; font-weight: 500; }
.badge { padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--ui-text); color: var(--ui-bg); font: 0.625rem var(--ui-font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.pcard { container-type: inline-size; }
.pprice { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.4rem; margin-top: 0.25rem; }
.pprice b { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 16cqw, 3rem); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.pprice b small { font-size: 0.45em; letter-spacing: 0; }
.pprice span { color: var(--ui-text-muted); font-size: 0.875rem; }
.bill-note { margin-top: -0.35rem; min-height: 1.25rem; font-size: 0.8125rem; color: var(--ui-text-muted); }
.pcard .who { font-size: 0.9375rem; }
.plimits { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ui-border); }
.plimits li { padding: 0.6rem 0; border-bottom: 1px solid var(--ui-border); font-size: 0.875rem; color: var(--ui-text-muted); }
.pcard .ui-button { margin-top: auto; width: 100%; }
.pcard .plimits { margin-bottom: 0.75rem; }
@media (max-width: 64rem) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .pcards { grid-template-columns: 1fr; } }
.ctable-box { position: relative; overflow-x: auto; padding: 0 1.5rem 0.5rem; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); }
.ctable-box .ctable { table-layout: fixed; }
.ctable-box .ctable th { padding-top: 1.1rem; font-weight: 500; }
.ctable-box .ctable tr.g td { padding-top: 1.5rem; padding-bottom: 0.6rem; }
.ctable-box .ctable tbody tr:last-child td { border-bottom: 0; }
.pcard .who { min-height: 3.1em; }
.tight .sec-head { margin-bottom: 1.5rem; }

/* Yes / No / Some marks in comparison tables */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mk { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ui-text); }
.mk i { flex: none; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; }
.mk svg { width: 0.75rem; height: 0.75rem; }
.mk.y i { background: rgba(47, 125, 79, 0.13); color: #2f7d4f; }
.mk.n i { background: rgba(180, 65, 47, 0.11); color: #b4412f; }
.mk.s i { background: rgba(163, 107, 18, 0.13); color: #946010; }
.mk.s span { color: var(--ui-text-muted); }
.ctable tr.us td { background: rgba(47, 125, 79, 0.06); color: var(--ui-text); }
.ctable tr.us td:first-child { padding-left: 0.75rem; }

/* AEO: plain lines in the words people ask with, and the answer-first guides */
.hero-plain { margin-top: 1.5rem; max-width: 40rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; color: var(--ui-text); }
.plain { max-width: 38rem; color: var(--ui-text-muted); line-height: 1.6; }
.plain .textlink { margin-left: 0.25rem; }
.guide { display: grid; gap: 1.75rem; max-width: 46rem; }
.guide .answer { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.55; color: var(--ui-text); padding-left: 1.25rem; border-left: 2px solid var(--line-2); }
.prose { display: grid; gap: 1.1rem; color: var(--ui-text-muted); font-size: 1.0625rem; line-height: 1.65; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.25; color: var(--ui-text); margin-top: 1.5rem; }
.prose strong, .prose a { color: var(--ui-text); font-weight: 500; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ol, .prose ul { display: grid; gap: 0.65rem; padding-left: 1.4rem; }
.prose code { font-family: var(--ui-font-mono); font-size: 0.875em; overflow-wrap: anywhere; }

/* Home: three product moments */
.moments { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.more { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.amt small.from { font-size: 0.9375rem; font-family: inherit; letter-spacing: 0; margin-right: 0.15rem; }

/* Phones (#196): 44px tap targets, 16px body copy, tables that fit or say they scroll */
.swipe { display: none; }
@media (max-width: 40rem) {
  /* Tap targets. Inline links keep their look and get a larger hit area. */
  .burger { width: 2.75rem; height: 2.75rem; }
  .copy-btn, .bill, .pick { height: 2.75rem; }
  .ui-app .mobile-menu a { display: flex; align-items: center; min-height: 2.75rem; padding: 0; }
  .site-foot .cols > div { gap: 0; }
  .site-foot .cols > div > .label { margin-bottom: 0.4rem; }
  .ui-app .site-foot .cols a { display: flex; align-items: center; min-height: 2.75rem; }
  .crumbs { align-items: center; }
  .ui-app .crumbs a { padding-block: 0.8rem; margin-block: -0.8rem; }
  .textlink, .nav-end .ui-button--sm, .site-nav .wordmark { position: relative; }
  .textlink::before, .nav-end .ui-button--sm::before, .site-nav .wordmark::before { content: ""; position: absolute; inset: -0.5rem -0.25rem; }
  .nav-end .ui-button--sm::before { inset: -0.25rem 0; }
  /* Body copy at 16px */
  .textlink, .path p, .show-copy li, .ticklist li, .cards p, .fcard p, .faq details p, .related a span, .steps3 p,
  .milestones div, .pcard .who { font-size: 1rem; }
  /* Wide tables: the first column stays put while the rest scroll, and a line says so */
  .swipe { display: block; margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--ui-text-muted); }
  .ctable-box { padding-inline: 1rem; }
  .ctable-box .ctable { min-width: 31rem; }
  .ctable-box .ctable col:first-child { width: 9.5rem !important; }
  .ctable:not(.ctable--duo) td:first-child, .ctable:not(.ctable--duo) th:first-child { position: sticky; left: 0; z-index: 1; background: var(--ui-bg); }
  .ctable-box .ctable td:first-child, .ctable-box .ctable th:first-child { background: var(--ui-surface); }
  .ctable:not(.ctable--duo) td:first-child { min-width: 8.5rem; box-shadow: 1px 0 0 var(--ui-border); padding-right: 0.75rem; }
  .ctable tr.g td:first-child { box-shadow: none; }
  .ctable tr.us td:first-child { background: linear-gradient(rgba(47, 125, 79, 0.06), rgba(47, 125, 79, 0.06)), var(--ui-bg); }
  .ctable--duo { min-width: 0; }
  .ctable--duo th, .ctable--duo td { padding-inline: 0.5rem; }
  .ctable--duo th:first-child, .ctable--duo td:first-child { width: 40%; }
  /* Narrow tables: each row becomes a short block */
  .ptable { min-width: 0; }
  .ptable thead { display: none; }
  .ptable tr { display: grid; gap: 0.3rem; padding: 1rem 0; border-bottom: 1px solid var(--ui-border); }
  .ptable td { padding: 0; border: 0; }
  .ptable td:first-child { font-weight: 500; }
  .tbl table, .tbl tbody { display: block; min-width: 0; }
  .tbl tr { display: grid; gap: 0.3rem; padding: 0.9rem 0; border-bottom: 1px solid var(--ui-border); }
  .tbl tr:first-child { display: none; }
  .tbl td { padding: 0; border: 0; }
  .tbl td[data-label]::before { content: attr(data-label) ": "; color: var(--ui-text-muted); }
  .bd .chipx { white-space: normal; }
  /* Product views: drop the least useful column so the rest fit */
  .bd .wide { display: none; }
}

/* Phones (#196): the demo player fits one screen under the sticky nav: hunches, terminal, browser, controls */
@media (max-width: 40rem) {
  [data-demo="full"] { display: flex; flex-direction: column; gap: 0.5rem; height: calc(100svh - 4.5rem); padding-block: 0.5rem; }
  [data-demo="full"] .demo-head { margin: 0; flex: none; }
  [data-demo="full"] .demo-head .label { display: none; }
  [data-demo="full"] .pickers { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; }
  [data-demo="full"] .pick { flex: none; }
  [data-demo="full"] .split { flex: 1; min-height: 0; height: auto; grid-template-rows: minmax(0, 2fr) minmax(0, 3fr); gap: 0.5rem; }
  [data-demo="full"] .term, [data-demo="full"] .browser { height: auto; min-height: 0; }
  [data-demo="full"] .term { line-height: 1.6; }
  [data-demo="full"] .term-body { padding: 0.6rem 0.9rem; }
  [data-demo="full"] .browser-body { overflow-y: auto; }
  [data-demo="full"] .controls { position: relative; flex: none; display: grid; gap: 0.25rem; margin: 0; }
  [data-demo="full"] .chapters { min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  [data-demo="full"] .chapter { min-height: 2.75rem; padding-top: 0.6rem; }
  [data-demo="full"] .chapter span { display: none; }
  [data-demo="full"] .chapter.on span { display: flex; align-items: center; position: absolute; top: 0; right: 0; height: 2.75rem; font-size: 0.9375rem; color: var(--ui-text); }
}
