@font-face {
  font-family: "Onest";
  src: url(fonts/onest-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  /* Static instance of Bricolage Grotesque (wght 760, wdth 82, opsz 72): the only setting the page uses. Latin + Spanish subset. */
  font-family: "Bricolage Grotesque";
  src: url(fonts/bricolage-grotesque-760-82.woff2) format("woff2");
  font-weight: 760;
  font-stretch: 82%;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2026, U+20AC;
}
@font-face {
  /* Metric-matched fallback so the swap does not reflow h1/h2: widths measured against the instance. */
  font-family: "Bricolage Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 760;
  size-adjust: 77.75%;
  ascent-override: 119.6%;
  descent-override: 34.7%;
  line-gap-override: 0%;
}

:root {
  --bg: #FFFFFF;
  --ink: #0E1116;
  --ink-2: #2A2F38;
  --ink-3: #464D5A;
  --muted: #5F6673;
  --line: #E4E6EA;
  --line-2: #D3D6DC;
  --mist: #F4F5F7;
  --mist-2: #ECEEF1;
  --gold: #F5A524;
  --gold-ink: #7A4A00;
  --gold-tint: #FEF4E2;
  --gold-line: #F6D596;
  --ok: #15803D;
  --ok-tint: #EEF8F1;
  --ok-line: #BFE3CB;
  --back: #B45309;
  --back-tint: #FFF6EB;
  --back-line: #F6D7AE;
  --err: #B91C1C;
  /* Dark band */
  --d-bg: #0E1116;
  --d-panel: #151920;
  --d-line: rgba(255, 255, 255, .09);
  --d-ink: #EEF0F3;
  --d-muted: #A0A7B3;
  /* Example content (Toche's pieces, not Kubbo's brand) */
  --toche-navy: #1D2D4A;

  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 5vw, 7rem);
  --section-sm: clamp(3rem, 2rem + 3vw, 4.5rem);
  --head-gap: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  --r: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, .06);
  --shadow-md: 0 1px 2px rgba(14, 17, 22, .05), 0 10px 28px -14px rgba(14, 17, 22, .2);
  --shadow-lg: 0 1px 1px rgba(14, 17, 22, .04), 0 2px 4px rgba(14, 17, 22, .04), 0 12px 24px -8px rgba(14, 17, 22, .08), 0 40px 80px -32px rgba(14, 17, 22, .28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; scrollbar-color: var(--line-2) var(--bg); }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(245, 165, 36, .38); color: var(--ink); }
input, textarea, select { caret-color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #B4B9C2; }
::-webkit-scrollbar-track { background: var(--bg); }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
p { text-wrap: pretty; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--gold); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; box-shadow: 0 0 0 5px rgba(245, 165, 36, .45); }
svg { flex: none; }
code { font-family: var(--mono); font-size: .9em; }
.sprite { position: absolute; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.num, .tally, .badge, .row-time, .lw-count, .trace-meta, .steps, .ledger { font-variant-numeric: tabular-nums; }

/* Status language: one dot, one label. Used everywhere a state is shown. */
.st { display: inline-flex; align-items: center; gap: .45em; font-size: .75rem; font-weight: 550; line-height: 1.2; color: var(--ink-3); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st.pill { padding: .25rem .6rem .25rem .5rem; border-radius: 99px; border: 1px solid var(--line); background: #fff; align-self: flex-start; justify-self: start; }
.st-wait { color: var(--gold-ink); }
.st-wait::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); }
.st-wait.pill { background: var(--gold-tint); border-color: var(--gold-line); }
.st-ok { color: var(--ok); }
.st-ok.pill { background: var(--ok-tint); border-color: var(--ok-line); }
.st-back { color: var(--back); }
.st-back.pill { background: var(--back-tint); border-color: var(--back-line); }
.st-sent { color: var(--ink); }
.st-done { color: var(--ink-3); }
.st-done::before { background: var(--ok); }
.st-prop, .st-idle { color: var(--muted); }
.st-prop::before { background: transparent; border: 1.5px dashed #8C93A0; width: 8px; height: 8px; }
.st-idle::before { background: transparent; border: 1.5px solid #8C93A0; }
.st-work { color: var(--ink); }
.st-work::before { background: var(--ink); animation: beat 2.4s var(--ease) infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 17, 22, .28); } 50% { box-shadow: 0 0 0 4px rgba(14, 17, 22, 0); } }

/* Buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  height: 44px; padding: 0 1.15rem;
  font: 550 .9375rem/1 var(--sans); letter-spacing: -0.005em;
  color: #fff; background: var(--ink);
  border: 0; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(14, 17, 22, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: #262B34; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.loading { cursor: progress; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { height: 36px; padding: 0 .9rem; font-size: .875rem; border-radius: 8px; }
.btn-xs { height: 30px; padding: 0 .75rem; font-size: .8125rem; border-radius: 7px; margin-top: .75rem; pointer-events: none; }
.btn-wide { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 40px; padding: 0 .95rem;
  font: 550 .9375rem/1 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn-ghost:hover { background: var(--mist); border-color: #A8AEB8; }
.btn-ghost svg { width: 18px; height: 18px; color: var(--ink-3); }

input[type=email], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input[type=email], select { height: 44px; padding: 0 .9rem; }
textarea { padding: .6rem .75rem; resize: vertical; font-size: .9375rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #A8AEB8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 165, 36, .4); }
.waitlist.error input[type=email] { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .14); }
.waitlist .msg { margin-top: .6rem; font-size: .875rem; color: var(--muted); min-height: 1.4em; }
.waitlist.error .msg { color: var(--err); }
.waitlist.sent .msg { color: var(--ok); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 2rem; height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; font-size: 1.1875rem; letter-spacing: -0.045em; color: var(--ink); text-decoration: none; }
.mark { width: 24px; height: 24px; }
.nav nav { flex: 1; }
.nav ul { display: flex; gap: .125rem; }
.nav nav a { display: block; padding: .4rem .7rem; border-radius: 8px; font-size: .9375rem; color: var(--ink-3); text-decoration: none; transition: color .15s, background-color .15s; }
.nav nav a:hover { color: var(--ink); background: var(--mist); }
.nav-end { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; gap: .15rem; font-size: .8125rem; font-weight: 550; }
.lang > * { padding: .25rem .45rem; border-radius: 6px; }
.lang span { color: var(--ink); background: var(--mist-2); }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: clamp(2rem, 1rem + 2.5vw, 3.5rem); }
.hero-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 1rem + 2.2vw, 2.75rem); }
h1 { font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; max-width: 12ch; }
.hl { background: linear-gradient(transparent 64%, rgba(245, 165, 36, .62) 64%, rgba(245, 165, 36, .62) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .04em; }
.lede { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.55; color: var(--ink-3); max-width: 46ch; margin-bottom: 1.5rem; }
.field-row { display: flex; gap: .5rem; max-width: 30rem; }
.field-row input { flex: 1; min-width: 0; }
.hero-stage { position: relative; padding-bottom: var(--section-sm); }
.hero-stage::before { content: ""; position: absolute; inset: 42% 0 0; background: var(--mist); border-top: 1px solid var(--line); z-index: -1; }

/* Product frames */
.frame { border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-lg); }
.js .frame.pre { opacity: .001; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .frame.pre.in { opacity: 1; transform: none; }
.app { position: relative; overflow: hidden; font-size: .875rem; line-height: 1.45; animation: rise 1s var(--ease) both .1s; }
@keyframes rise { from { opacity: .2; transform: translateY(28px); } }
.app-bar { display: flex; align-items: center; gap: 1rem; height: 42px; padding: 0 1rem; border-bottom: 1px solid var(--line); background: var(--mist); border-radius: var(--r) var(--r) 0 0; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.crumbs { color: var(--muted); font-size: .8125rem; }
.crumbs span { margin: 0 .3rem; color: #A8AEB8; }
.crumbs strong { color: var(--ink); font-weight: 550; }
.sample { margin-left: auto; font-size: .75rem; font-weight: 550; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .15rem .6rem; }

.app-body { display: grid; grid-template-columns: 196px 318px 1fr; height: 492px; }
.app-side { background: var(--mist); border-right: 1px solid var(--line); padding: .9rem .6rem; }
.side-ws { display: flex; align-items: center; gap: .5rem; font-weight: 600; padding: .25rem .5rem .9rem; }
.side-ws .mark { width: 20px; height: 20px; }
.side-nav li, .side-agents li { display: flex; align-items: center; gap: .55rem; padding: .38rem .5rem; border-radius: 7px; color: var(--ink-3); }
.side-nav li.on { background: #fff; color: var(--ink); font-weight: 550; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.side-nav svg { width: 17px; height: 17px; }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: .6875rem; font-weight: 700; }
.side-h { margin: 1.1rem .5rem .35rem; font-size: .75rem; font-weight: 550; color: var(--muted); }
.side-soon { padding: .2rem .5rem; color: var(--muted); font-size: .8125rem; }
.dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #8C93A0; }
.dot-work { border: 0; background: var(--ink); animation: beat 2.4s var(--ease) infinite; }


.app-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.list-head { padding: .9rem 1rem .75rem; border-bottom: 1px solid var(--line); }
.list-title { font-weight: 600; font-size: .9375rem; }
.tally { display: flex; gap: 1rem; margin-top: .15rem; color: var(--muted); font-size: .8125rem; }
.tally b { display: inline-block; color: var(--ink); font-weight: 600; }
.groups { padding: .5rem; overflow: auto; flex: 1; }
.group-h { display: flex; align-items: center; gap: .4rem; padding: .6rem .5rem .35rem; font-size: .75rem; font-weight: 550; color: var(--muted); }
.group-h span { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.rows { display: grid; gap: 2px; }
.row {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem;
  padding: .5rem .6rem; text-align: left; font: inherit; color: inherit;
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.row:hover { background: var(--mist); }
.row.sel { background: var(--gold-tint); box-shadow: inset 0 0 0 1px var(--gold-line); }
.row-main { display: grid; min-width: 0; }
.row-t { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-s { color: var(--muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { color: var(--muted); font-size: .75rem; }
.row-ok { width: 18px; height: 18px; color: var(--ok); }
.empty { margin: .1rem .5rem .5rem; padding: .7rem .75rem; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-size: .8125rem; }

/* Row thumbnails */
.th { position: relative; display: grid; place-items: center; width: 32px; height: 40px; border-radius: 6px; flex: none; overflow: hidden; }
.th-plan { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.th-plan svg { width: 18px; height: 18px; }
.th-reel { width: 26px; height: 42px; border-radius: 5px; }

/* Piece previews (Toche's content, authored in HTML/CSS) */
.cover { position: relative; display: grid; align-content: start; overflow: hidden; border-radius: 10px; color: #fff; background: var(--toche-navy); }
.cover-sm { width: 52px; height: 92px; flex: none; }


.reel-prev { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; align-items: start; }
.reel-prev .cover { aspect-ratio: 9 / 16; padding: .6rem; box-shadow: var(--shadow-md); }
.cv-dur { justify-self: end; font-size: .6875rem; font-weight: 600; background: rgba(0, 0, 0, .35); padding: .05rem .35rem; border-radius: 4px; font-variant-numeric: tabular-nums; }
.cv-play { position: absolute; left: 50%; top: 48%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 246, 229, .92); color: var(--toche-navy); transform: translate(-50%, -50%); }
.cv-play svg { width: 16px; height: 16px; margin-left: 2px; }
.pipe { display: grid; gap: .1rem; margin-top: .9rem; }
.pipe li { display: flex; align-items: center; gap: .45rem; padding: .4rem 0; border-top: 1px solid var(--line); font-weight: 550; }
.pipe svg { width: 16px; height: 16px; color: var(--ok); }
.pipe span { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .8125rem; }

.app-detail { min-width: 0; display: flex; overflow: auto; }
.detail-in { flex: 1; display: flex; flex-direction: column; padding: 1.25rem 1.5rem; gap: 1rem; }
.detail-head { display: grid; gap: .45rem; }
.detail-t { font-weight: 600; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.025em; }
.detail-s { color: var(--muted); font-size: .8125rem; }
.detail-p { color: var(--ink-2); max-width: 56ch; }

.sw { width: 10px; height: 10px; border-radius: 3px; }
.sw-est { background: var(--ink); }
.sw-pos { background: #fff; box-shadow: inset 0 0 0 1px var(--ink-3); }

.actions { margin-top: auto; display: grid; gap: .75rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.act-row { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.act-next { margin-right: auto; color: var(--muted); font-size: .8125rem; max-width: 34ch; }
.act-row .btn { height: 40px; }
.comment { display: grid; gap: .35rem; }
.comment label { font-size: .8125rem; font-weight: 550; color: var(--ink-2); }
.done { margin-top: auto; display: grid; gap: .25rem; padding: .9rem 1rem; border-radius: 10px; background: var(--ok-tint); border: 1px solid var(--ok-line); outline: none; }
.done.back { background: var(--back-tint); border-color: var(--back-line); }
.done-t { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ok); }
.done.back .done-t { color: var(--back); }
.done-t svg { width: 18px; height: 18px; }
.done-s { color: var(--ink-2); }

.app-list { position: relative; }
.toast {
  position: absolute; left: .75rem; right: .75rem; bottom: .75rem; z-index: 2; font-size: .8125rem;
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .6rem .55rem .9rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 500;
  box-shadow: 0 2px 4px rgba(14, 17, 22, .2), 0 12px 28px -8px rgba(14, 17, 22, .45);
  opacity: 0; transform: translateY(10px) scale(.98); visibility: hidden;
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.toast.show { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s; }
.toast svg { width: 16px; height: 16px; color: #6EE7A0; }
.toast-undo { margin-left: auto; font: 600 .8125rem var(--sans); color: var(--ink); background: var(--gold); border: 0; border-radius: 7px; padding: .35rem .65rem; cursor: pointer; }
.toast-undo:hover { background: #FFB840; }
.app-note { padding-top: 1rem; font-size: .875rem; color: var(--muted); text-align: center; }

/* Section heads */
.sec-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem 4rem; align-items: end; margin-bottom: var(--head-gap); }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.04; letter-spacing: -0.038em; }
.sec-head p { color: var(--ink-3); font-size: 1.125rem; max-width: 44ch; }

/* Control */
.control { padding-block: var(--section); }
.control-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.control-copy { display: grid; gap: 1.25rem; }
.control-copy h2 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.25rem); margin-bottom: .25rem; }
.control-copy p { color: var(--ink-3); font-size: 1.125rem; max-width: 44ch; }
.control-vis { position: relative; display: grid; gap: 1rem; }
.mail { padding: 1rem 1.15rem 1.15rem; font-size: .9375rem; box-shadow: var(--shadow-md); }
.mail-from { display: flex; align-items: center; gap: .55rem; font-size: .875rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.mail-from .mark { width: 22px; height: 22px; }
.mail-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.mail-main { display: flex; gap: 1rem; padding-top: .9rem; align-items: flex-start; }
.mail-subj { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; }
.mail-body { margin-top: .25rem; color: var(--ink-3); }
.thread { padding: 1.1rem 1.15rem; display: grid; gap: 1.1rem; margin-left: clamp(0rem, -2rem + 6vw, 3rem); box-shadow: var(--shadow-md); font-size: .9375rem; }
.msg-line { display: grid; grid-template-columns: auto 1fr; gap: .75rem; }
.msg-meta { color: var(--ink-3); font-size: .875rem; margin-bottom: .4rem; }
.msg-meta strong { color: var(--ink); font-weight: 600; }
.msg-meta em { font-style: normal; color: var(--ink); }
.bubble-row { display: flex; gap: .75rem; align-items: flex-start; }
.pin { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50% 50% 50% 2px; background: var(--gold); color: var(--ink); font: 700 .625rem var(--sans); font-style: normal; box-shadow: 0 1px 3px rgba(14, 17, 22, .25); }
.bubble { padding: .55rem .8rem; background: var(--mist); border-radius: 4px 12px 12px 12px; color: var(--ink-2); }
.vis-note { font-size: .8125rem; color: var(--muted); justify-self: end; }

/* Area deep-dive: the one dark band */
.area-dive { padding-block: var(--section); background: var(--d-bg); color: var(--d-ink); }
.area-dive h2 { color: #fff; }
.area-dive .sec-head p { color: var(--d-muted); }
.area-dive ::selection { background: rgba(245, 165, 36, .5); color: #fff; }
.org-app { background: var(--d-panel); border-color: var(--d-line); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; font-size: .875rem; }
.org-app .app-bar { background: #11151B; border-color: var(--d-line); }
.org-app .dots i { background: #343A45; }
.org-app .crumbs { color: var(--d-muted); }
.org-app .crumbs span { color: #4F5664; }
.org-app .crumbs strong { color: var(--d-ink); }
.org-app .sample { background: transparent; color: var(--d-muted); border-color: #3A404B; }
.lead-row { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--d-line); }
.lead-main { flex: 1; min-width: 0; }
.lead-n { font-weight: 650; font-size: 1.125rem; color: #fff; letter-spacing: -0.02em; }
.lead-d { color: var(--d-muted); }
.org-app .st { color: var(--d-muted); }
.org-app .st-work { color: #fff; }
.org-app .st-work::before { background: #fff; animation-name: beat-d; }
.org-app .st-done::before { background: #4ADE80; }
.org-app .st-idle::before { border-color: #6B7280; }
.org-app .st-wait.pill { background: rgba(245, 165, 36, .12); border-color: rgba(245, 165, 36, .4); color: #FFD08A; }
@keyframes beat-d { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); } 50% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0); } }
.teams { display: grid; grid-template-columns: 1.25fr 1fr; }
.team { padding: .5rem 0 .75rem; }
.team + .team { border-left: 1px solid var(--d-line); }
.team-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 1.4rem .5rem; }
.team-h.shared { margin-top: .75rem; border-top: 1px solid var(--d-line); padding-top: 1.1rem; }
.team-n { font-weight: 600; color: #fff; font-size: .9375rem; }
.team-c { color: var(--d-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.agents li { display: grid; grid-template-columns: minmax(9rem, auto) 1fr auto; align-items: center; gap: 1rem; padding: .62rem 1.4rem; border-top: 1px solid rgba(255, 255, 255, .05); transition: background-color .2s var(--ease); }
.agents li:hover { background: rgba(255, 255, 255, .03); }
.ag-n { font-weight: 550; color: var(--d-ink); }
.ag-d { color: var(--d-muted); min-width: 0; }

/* Toche */
.toche { padding-block: var(--section); }
.toche-in { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.toche-copy { display: grid; gap: 1.25rem; }
.toche-copy > p:not(.toche-honest) { color: var(--ink-3); font-size: 1.0625rem; max-width: 50ch; }
.toche-honest { margin-top: .5rem; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.22; letter-spacing: -0.03em; font-weight: 550; color: var(--ink); padding-top: 1.25rem; border-top: 2px solid var(--ink); max-width: 26ch; }
.toche-honest span { color: var(--muted); }
.art { display: grid; gap: .9rem; }
.art-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(1rem, .5rem + 2vw, 2rem); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(1rem, .5rem + 2vw, 2.5rem); background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.art-cover { width: clamp(150px, 9rem + 6vw, 230px); aspect-ratio: 9 / 16; flex: none; box-shadow: var(--shadow-lg); }
.art-cover .cv-play { width: 48px; height: 48px; }
.art-cover .cv-play svg { width: 20px; height: 20px; }
.art-slides { position: relative; width: clamp(140px, 8rem + 7vw, 240px); aspect-ratio: 4 / 5.6; flex: none; }
.art figcaption { display: flex; align-items: center; gap: .6rem; font-size: .875rem; color: var(--muted); }
.art figcaption .sample { margin: 0; }

/* Technical */
.tech { padding-block: var(--section); background: var(--mist); border-bottom: 1px solid var(--line); }
.tech-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.tech-copy h2 { max-width: 14ch; }
.tech-lede { margin: 1.1rem 0 2rem; color: var(--ink-3); font-size: 1.125rem; max-width: 42ch; }
.spec > div { padding: 1rem 0 1.1rem; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.spec dt { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.spec dd { color: var(--ink-3); font-size: 1rem; max-width: 46ch; }
.spec .spec-lead { grid-template-columns: 1fr; gap: .4rem; padding-block: 1.1rem 1.5rem; border-top: 2px solid var(--ink); }
.spec .spec-lead dt { font-size: 1.375rem; letter-spacing: -0.025em; }
.spec .spec-lead dd { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.45; color: var(--ink-2); }

.trace { position: sticky; top: 5.5rem; margin-top: .5rem; overflow: hidden; font-size: .8125rem; }
.trace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.trace-t { font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; }
.trace-s { color: var(--muted); }
.trace-s code { color: var(--ink-2); }
.trace-meta { display: grid; grid-template-columns: 1.3fr .8fr 1.3fr; border-bottom: 1px solid var(--line); }
.trace-meta > div { padding: .7rem 1.15rem; }
.trace-meta > div + div { border-left: 1px solid var(--line); }
.trace-meta dt { font-size: .75rem; color: var(--muted); }
.trace-meta dd { font-weight: 600; color: var(--ink); }
.trace-meta dd span { font-weight: 400; color: var(--muted); }
.steps { padding: .4rem 0; }
.steps li { display: grid; grid-template-columns: 5.5rem minmax(0, 1.4fr) 6.5rem minmax(0, 1fr) 4.75rem; align-items: center; gap: .75rem; padding: .48rem 1.15rem; }
.steps li:hover { background: var(--mist); }
.sp-k { font-size: .6875rem; font-weight: 600; color: var(--muted); }
.llm .sp-k { color: var(--ink); }
.sp-n { color: var(--ink-2); }
.sp-tok { color: var(--muted); font-family: var(--mono); font-size: .6875rem; text-align: right; }
.sp-bar { position: relative; height: 8px; border-radius: 2px; background: var(--mist-2); }
.sp-bar i { position: absolute; top: 0; bottom: 0; left: calc(var(--s) / var(--total) * 100%); width: max(3px, calc(var(--d) / var(--total) * 100%)); border-radius: 2px; background: #8C93A0; }
.llm .sp-bar i { background: var(--ink); }
.sp-t { text-align: right; color: var(--ink-2); }
.trace-foot { padding: .65rem 1.15rem; border-top: 1px solid var(--line); color: var(--muted); background: #FBFBFC; }

/* Pricing */
.pricing { padding-block: var(--section); }
.pricing-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.pricing-copy { display: grid; gap: 1.25rem; }
.pricing-copy h2 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.25rem); }
.pricing-copy p { color: var(--ink-3); font-size: 1.125rem; max-width: 42ch; }
.ledger { overflow: hidden; box-shadow: var(--shadow-md); }
.ledger table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ledger th { text-align: left; font-size: .8125rem; font-weight: 550; color: var(--muted); background: #FBFBFC; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); }
.ledger td { padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.ledger td:first-child { font-weight: 550; color: var(--ink); }
.ledger .num { text-align: right; color: var(--ink); }
.ledger th.num { color: var(--muted); }
.ledger tr.idle td { color: var(--muted); }
.ledger .st { font-size: .8125rem; }
.ledger figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.1rem; font-size: .8125rem; color: var(--muted); background: #FBFBFC; }
.ledger figcaption b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Areas */
.areas { padding-block: var(--section-sm) var(--section); background: var(--mist); border-top: 1px solid var(--line); }

/* Close: the committed colour moment */
.close { padding-block: var(--section); background: var(--gold); }
.close ::selection { background: var(--ink); color: #fff; }
.close-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.close h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); line-height: .98; letter-spacing: -0.042em; max-width: 12ch; }
.close-sub { margin-top: 1.25rem; color: var(--ink-2); font-size: 1.1875rem; max-width: 34ch; }
.waitlist.stacked { width: 100%; max-width: 30rem; justify-self: end; display: grid; gap: 1rem; padding: 1.5rem; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(14, 17, 22, .1), 0 24px 48px -20px rgba(14, 17, 22, .32); }
.f { display: grid; gap: .4rem; }
.f label { font-size: .875rem; font-weight: 550; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--muted); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.waitlist.stacked .msg { margin-top: 0; text-align: center; }

/* Footer */
.wordmark.small { font-size: 1.0625rem; }
.wordmark.small .mark { width: 20px; height: 20px; }

/* Responsive */
@media (max-width: 1120px) {
  .app-body { grid-template-columns: 300px 1fr; }
  .app-side { display: none; }
  .tech-in { grid-template-columns: 1fr; }
  .trace { position: static; }
}
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav-in { justify-content: space-between; }
  .hero-top, .sec-head, .control-in, .toche-in, .pricing-in, .close-in { grid-template-columns: 1fr; }
  .hero-top { gap: 1.5rem; }
  .teams { grid-template-columns: 1fr; }
  .team + .team { border-left: 0; border-top: 1px solid var(--d-line); }
  .waitlist.stacked { justify-self: start; }
}
@media (max-width: 700px) {
  .app-body { grid-template-columns: 1fr; height: auto; }
  .app-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .groups { overflow: visible; }
  .detail-in { padding: 1.1rem; }
  .crumbs { display: none; }
  .hero-stage::before { inset: 20% 0 0; }
  .reel-prev { grid-template-columns: 110px 1fr; gap: 1rem; }
  .act-row { flex-wrap: wrap; }
  .act-next { flex-basis: 100%; }
  .agents li { grid-template-columns: 1fr auto; gap: .1rem .75rem; padding-inline: 1.1rem; }
  .ag-d { grid-column: 1; grid-row: 2; white-space: normal; font-size: .8125rem; }
  .ag-n { grid-column: 1; }
  .agents .st { grid-column: 2; grid-row: 1 / span 2; }
  .team-h { padding-inline: 1.1rem; flex-wrap: wrap; gap: .1rem .75rem; }
  .lead-row { flex-wrap: wrap; padding: 1.1rem; }
  .lead-main { flex-basis: calc(100% - 56px); }
  .spec > div { grid-template-columns: 1fr; gap: .25rem; }
  .trace-meta { grid-template-columns: 1fr 1fr; }
  .trace-meta > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .steps li { grid-template-columns: 1fr auto; gap: .2rem .75rem; padding-block: .55rem; }
  .sp-k { grid-column: 1; }
  .sp-n { grid-column: 1; grid-row: 2; white-space: normal; }
  .sp-t { grid-column: 2; grid-row: 1; }
  .sp-tok { grid-column: 2; grid-row: 2; }
  .sp-bar { grid-column: 1 / -1; grid-row: 3; margin-top: .25rem; }
  .ledger th, .ledger td { padding-inline: .7rem; }
  .ledger th:nth-child(2), .ledger td:nth-child(2) { display: none; }
  .bubble-row { flex-direction: column; }
  .toast { left: 1rem; right: 1rem; }
}
@media (max-width: 480px) {
  .field-row { flex-direction: column; }
  .field-row input { flex: none; }
  .field-row .btn { width: 100%; }
  .nav-end .lang { display: none; }
  .waitlist.stacked { padding: 1.15rem; }
  .mail-main { gap: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Round 2 */
.pricing-copy h2 { font-size: clamp(2.4rem, 1.4rem + 2.8vw, 3.75rem); }
.trace-meta dd span, .ledger figcaption span { white-space: nowrap; }
.ledger figcaption { flex-wrap: wrap; }

/* Reviewer batch */
.ok-mark { background: linear-gradient(transparent 58%, rgba(245, 165, 36, .62) 58%, rgba(245, 165, 36, .62) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--ink); padding-inline: .06em; }
.done-t span { color: var(--ink); }
.mini { display: grid; gap: .45rem; }
.mini-h { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; color: var(--muted); font-size: .8125rem; }
.mini-h span { display: inline-flex; align-items: center; gap: .35rem; }
.mini-h b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-h .sample { margin-left: auto; }
.pw-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pw-c { display: grid; gap: .3rem; padding: .4rem .5rem .5rem; font-size: .75rem; }
.pw-c + .pw-c { border-left: 1px solid var(--line); }
.pw-c.g { background: var(--gold-tint); }
.pw-c b { font-weight: 650; }
.pw-dots { display: flex; gap: 3px; min-height: 10px; }
.also { display: grid; gap: .5rem; }
.also-row { display: grid; grid-template-columns: auto auto 1fr; gap: .75rem; align-items: start; }
.also-item { display: grid; gap: .4rem; padding: .5rem; font: inherit; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.also-item:hover { border-color: #A8AEB8; background: var(--mist); }
.also-slides { display: flex; gap: .35rem; }

.also-t { font-size: .75rem; font-weight: 550; }
@media (max-width: 1120px) {
  .tech-copy h2 { max-width: 20ch; }
}
@media (max-width: 900px) {
  .art-stage { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .toast { position: static; margin: 0 .5rem .5rem; display: none; transform: none; }
  .toast.show { display: flex; }
  .also-row { grid-template-columns: auto 1fr; }
  .pw-c { padding: .35rem .3rem .4rem; }
  .art-stage { justify-content: center; }
}

/* Reviewer batch, round 2 */
.row-t { white-space: normal; }
.hero { padding-top: clamp(1.75rem, 1rem + 2vw, 3rem); }
.detail-in { gap: .8rem; padding-block: 1.1rem; }
.also-cover { width: 47px; height: 83px; }
.actions { padding-top: .75rem; }
@media (max-width: 700px) {
  .art-cover { width: 136px; }
  .art-slides { width: 128px; }
  .art-cover .cv-play { top: 56%; width: 36px; height: 36px; }
}

/* ===== Personality round: display face, cast, voice ===== */
:root { --display: "Bricolage Grotesque", "Bricolage Fallback", var(--sans); }
h1, h2 { font-family: var(--display); font-weight: 760; font-stretch: 82%; letter-spacing: -0.028em; }
h1 { font-size: clamp(2.75rem, 1.2rem + 3.6vw, 4.25rem); line-height: .96; max-width: none; }
h2 { font-size: clamp(2.25rem, 1.2rem + 3.1vw, 4.25rem); line-height: .98; }
.control-copy h2, .pricing-copy h2 { font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.25rem); }
.close h2 { font-size: clamp(3rem, 1.2rem + 5.2vw, 6rem); line-height: .92; letter-spacing: -0.018em; }
h1 { letter-spacing: -0.018em; }
.tech-copy h2 { max-width: 12ch; }

/* Team tones: muted, AA with ink text, readable on white and on the ink band. Marigold stays with Tú. */
:root { --t-est: #6F8BBF; --t-pos: #8DAE96; --t-sha: #C98B76; }
.sw-est { background: var(--t-est); box-shadow: inset 0 0 0 1px rgba(14, 17, 22, .35); }
.sw-pos { background: var(--t-pos); box-shadow: inset 0 0 0 1px rgba(14, 17, 22, .35); }

/* Hero: headline left, lede and waitlist right, the inbox frame rising into the fold */
.hero-top { grid-template-columns: 1.6fr 1fr; align-items: start; margin-bottom: clamp(1.75rem, 1rem + 1.4vw, 2rem); }
.hero-side { padding-top: .35rem; }

/* Team markers: an 8px dot in the team tone stands in for an avatar; the name carries the rest.
   CMO ink (slate on the ink band), Estudio blue, Posts sage, Compartidos clay, Tú marigold. */
.tm { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: inset 0 0 0 1px rgba(14, 17, 22, .28); }
.tm-cmo { --tone: var(--ink); box-shadow: none; }
.tm-est { --tone: var(--t-est); }
.tm-pos { --tone: var(--t-pos); }
.tm-sha { --tone: var(--t-sha); }
.tm-you { --tone: var(--gold); }
.msg-line { grid-template-columns: 8px 1fr; }
.msg-line .tm { margin-top: .4rem; }
.who { display: inline-flex; align-items: center; gap: .55rem; }

/* Team headers carry the team tone as a 2px rule */
.team-h { position: relative; }
.team-h::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: 0; height: 2px; border-radius: 1px; background: var(--tone, rgba(255, 255, 255, .5)); }
.team-est { --tone: var(--t-est); }
.team-pos { --tone: var(--t-pos); }
.team-h.team-sha { --tone: var(--t-sha); }
.team-h + .agents { margin-top: .35rem; }
.agents li:first-child { border-top: 0; }


.close-copy { min-width: 0; }

/* Toast: one line in the inbox column */
.toast { left: .5rem; right: .5rem; gap: .45rem; padding: .5rem .45rem .5rem .7rem; white-space: nowrap; }
.toast [data-toast-t] { flex: none; }
.toast-undo { padding: .32rem .5rem; flex: none; }

@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .team-h::after { left: 1.1rem; right: 1.1rem; }
}
.hero { padding-top: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }

/* ===== Round 6 ===== */

/* Inbox sidebar: team dot in a 17px slot so names sit on the nav text column */
.side-agents .tm { margin-inline: 4.5px; }
/* Dark band: team names lead with the same round dot */
.team-n { display: inline-flex; align-items: center; gap: .55rem; }

/* kbd hints on the approval actions */
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: .15rem; border-radius: 5px; font: 600 .6875rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.btn .kbd { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.btn-ghost .kbd { background: var(--mist); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 var(--line-2); }
@media (hover: none), (max-width: 700px) { .kbd { display: none; } }

/* Small covers carry no episode text; the carousel thumbnail reserves a folio row */

/* Piece micro tags (shared by the live week) */
.pc-type { display: inline-flex; align-items: center; gap: .3rem; font-size: .6875rem; font-weight: 600; color: var(--muted); }
.pc-type svg { width: 13px; height: 13px; }
.pc-t { font-weight: 550; color: var(--ink); }
.st-rev { color: var(--ink-3); }
.st-rev::before { background: transparent; border: 2px solid var(--ink-3); width: 8px; height: 8px; }

/* ---- La semana en vivo ---- */
.live { padding-block: var(--section-sm) var(--section); background: var(--mist); border-bottom: 1px solid var(--line); }
.live-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem 4rem; align-items: end; margin-bottom: var(--head-gap); }
.live-head p { color: var(--ink-3); font-size: 1.125rem; max-width: 44ch; }
.lw-rail { display: none; }

/* Static sequence (default, reduced motion, small screens) */
.lw-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.5rem 2rem; margin-bottom: clamp(2rem, 1rem + 2vw, 3rem); }
.lw-steps li { display: grid; gap: .35rem; align-content: start; padding-top: .9rem; border-top: 1px solid var(--line-2); }
.lw-days li.you span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); margin-right: .2rem; }
.lw-steps h3 { font-family: var(--display); font-weight: 760; font-stretch: 82%; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.02; letter-spacing: -0.02em; }
.lw-say { color: var(--ink-3); font-size: .9375rem; max-width: 46ch; }

/* The frame */
.lw-app { overflow: hidden; font-size: .8125rem; line-height: 1.35; }
.lw-app .app-bar { gap: .9rem; }
.lw-app .app-bar .st.pill { align-self: center; }
.lw-count { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.lw-body { display: grid; grid-template-columns: minmax(0, 1fr) 272px; }
.lw-main { position: relative; min-width: 0; }
.lw-board { display: grid; grid-template-columns: 128px repeat(6, minmax(0, 1fr)); grid-template-rows: auto repeat(4, minmax(84px, auto)); }
.lw-col { grid-column: calc(var(--d) + 1); grid-row: 1 / -1; border-left: 1px solid var(--line); }
.lw-col.g { background: #FFFAF0; }
.lw-rowline { grid-column: 1 / -1; grid-row: calc(var(--l) + 1); border-bottom: 1px solid var(--line); }
.lw-corner, .lw-dh { grid-row: 1; padding: .55rem .7rem; font-size: .8125rem; color: var(--muted); background: #FBFBFC; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.lw-corner { grid-column: 1; align-self: stretch; display: flex; align-items: end; }
.lw-dh { grid-column: calc(var(--d) + 1); border-left: 1px solid var(--line); }
.lw-dh.g { background: var(--gold-tint); }
.lw-dh b { color: var(--ink); font-weight: 650; margin-right: .2rem; }
.lw-dh span { display: block; font-size: .75rem; }
.lw-dh.g span { color: var(--gold-ink); font-weight: 600; }
.lw-lane { grid-column: 1; grid-row: calc(var(--l) + 1); display: flex; align-items: flex-start; gap: .55rem; padding: .75rem .8rem; font-weight: 600; font-size: .875rem; line-height: 1.25; }
.lw-lane .tm { margin-top: .32rem; }
.lw-lane small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.lw-cell { grid-column: calc(var(--d) + 1); grid-row: calc(var(--l) + 1); display: grid; align-content: start; gap: .4rem; padding: .45rem; min-width: 0; position: relative; z-index: 1; }
.lw-card { display: grid; gap: .2rem; padding: .5rem .55rem .55rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease); }
.lw-card .st { margin-top: .15rem; white-space: normal; }
.lw-card.prop { border-style: dashed; border-color: #B9BEC7; box-shadow: none; }
.lw-card.gate { border-color: var(--gold-line); background: var(--gold-tint); }
.lw-card.okc { border-color: var(--ok-line); background: var(--ok-tint); }
.lw-card.off { opacity: 0; transform: translateY(12px) scale(.97); filter: blur(4px); }
.lw-team { display: none; }

/* Inbox column */
.lw-inbox { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); background: #FBFBFC; }
.lw-ib-h { padding: .7rem .9rem .6rem; border-bottom: 1px solid var(--line); background: #fff; }
.lw-ib-t { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .875rem; }
.lw-ib-t svg { width: 16px; height: 16px; }
.lw-ib-list { padding: .35rem .5rem .6rem; display: grid; align-content: start; }
.lw-ib-list .group-h { padding-inline: .3rem; }
.lw-ib-list .empty { margin: .35rem 0 0; }
.lw-rows { display: grid; gap: 4px; }
.lw-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .42rem .55rem; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.lw-row-m { display: grid; min-width: 0; }
.lw-row-t { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-row-s { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-row .row-ok { width: 16px; height: 16px; }
.lw-ask { display: grid; gap: .35rem; margin-top: .35rem; padding: .8rem .85rem .85rem; background: #fff; border: 1px solid var(--gold-line); border-radius: 10px; box-shadow: var(--shadow-md); transition: border-color .4s var(--ease); }
.lw-ask.done { border-color: var(--ok-line); }
.lw-ask-t { font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; }
.lw-ask-s { color: var(--muted); }
.lw-ask-ok { display: flex; align-items: center; gap: .35rem; margin-top: .4rem; padding-top: .5rem; border-top: 1px solid var(--line); color: var(--ok); font-weight: 600; }
.lw-ask-ok svg { width: 16px; height: 16px; }

/* Live mode: pinned stage, step follows scroll */
.is-live .live-track { height: calc(7 * 72vh + 100vh); view-timeline: --wk block; view-timeline-inset: 60px 0px; }
.is-live .live-stage { position: sticky; top: 60px; height: calc(100vh - 60px); display: flex; align-items: center; }
.is-live .live-in { width: 100%; display: grid; gap: 1.1rem; }
.is-live .lw-rail { display: block; }
.lw-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lw-days li { display: flex; align-items: baseline; gap: .3rem; padding: 0 .5rem .6rem 0; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .3s var(--ease); }
.lw-days li b { font-weight: 650; }
.lw-days li span { display: inline-flex; align-items: center; gap: .3rem; margin-left: .2rem; }
.lw-days li.past, .lw-days li.on { color: var(--ink); }
.lw-days li.on span { font-weight: 600; }
.lw-bar { position: relative; height: 2px; border-radius: 1px; background: var(--line-2); overflow: hidden; }
.lw-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(var(--p, 0)); }
@keyframes lw-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lw-rise { from { transform: translateY(56px) scale(.965); } }
@supports (animation-timeline: view()) {
  .is-live .lw-fill { animation: lw-fill linear both; animation-timeline: --wk; animation-range: contain 0% contain 100%; }
  .is-live .lw-app { animation: lw-rise linear both; animation-timeline: --wk; animation-range: entry 20% entry 100%; }
}
.is-live .lw-steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; min-height: 4.6rem; }
.is-live .lw-steps li { grid-area: 1 / 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto; column-gap: 3rem; align-items: end; padding: 0; border: 0; opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .6s var(--ease); }
.is-live .lw-steps li h3 { grid-column: 1; grid-row: 1; font-size: clamp(1.75rem, 1rem + 1.4vw, 2.375rem); }
.is-live .lw-steps li .lw-say { grid-column: 2; grid-row: 1; font-size: 1.0625rem; color: var(--ink-2); }
.is-live .lw-steps li[aria-current] { opacity: 1; transform: none; }
@media (max-height: 820px) {
  .is-live .live-in { gap: .8rem; }
  .is-live .lw-board { grid-template-rows: auto repeat(4, minmax(72px, auto)); }
  .is-live .lw-steps li h3 { font-size: 1.625rem; }
  .is-live .lw-steps li .lw-say { font-size: .9375rem; }
}

/* Static frame on narrower screens */
@media (max-width: 1099px) {
  .lw-body { grid-template-columns: 1fr; }
  .lw-inbox { border-left: 0; border-top: 1px solid var(--line); }
  .lw-ib-list .lw-rows { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
}
@media (max-width: 800px) {
  .live-head { grid-template-columns: 1fr; }
  .lw-app .app-bar { flex-wrap: wrap; height: auto; padding-block: .6rem; row-gap: .4rem; }
  .lw-app .crumbs { display: inline; flex-basis: 100%; }
  .lw-app .dots { display: none; }
  .lw-app .app-bar .sample { margin-left: auto; }
  .lw-board { display: flex; flex-direction: column; }
  .lw-col, .lw-rowline, .lw-lane, .lw-corner { display: none; }
  .lw-dh { order: calc(var(--d) * 10); border-left: 0; padding: .6rem .9rem .5rem; display: flex; gap: .5rem; align-items: baseline; }
  .lw-dh span { display: inline; }
  .lw-cell { order: calc(var(--d) * 10 + var(--l)); padding: .35rem .75rem; }
  .lw-cell:has(+ .lw-dh), .lw-cell:last-child { padding-bottom: .75rem; }
  .lw-card { grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; }
  .lw-card .pc-type, .lw-card .pc-t { grid-column: 1; }
  .lw-card .st { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; white-space: nowrap; }
  .lw-team { display: inline-flex; align-items: center; gap: .35rem; margin-left: .35rem; font-weight: 500; }
  .lw-team::before { content: "·"; margin-right: .05rem; }
  .lw-app .lw-count { order: 3; }
}

/* ---- Areas: the switcher as a product frame ---- */
.areas-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.areas h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); max-width: 16ch; }
.areas-copy p { margin-top: 1.25rem; color: var(--ink-3); font-size: 1.125rem; max-width: 42ch; }
.switch { overflow: hidden; font-size: .875rem; box-shadow: var(--shadow-md); }
.sw-list { display: grid; gap: 4px; padding: .6rem; background: var(--mist); }
.sw-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .75rem .9rem; border-radius: 9px; color: var(--ink-3); }
.sw-item.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.sw-m { display: grid; gap: .1rem; min-width: 0; }
.sw-n { font-weight: 600; font-size: .9375rem; color: var(--ink); letter-spacing: -0.01em; }
.sw-item:not(.on) .sw-n { color: var(--ink-2); }
.sw-d { color: var(--muted); font-size: .8125rem; }
.sw-ask { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 7px; font-size: .8125rem; font-weight: 550; color: var(--ink); background: #fff; border: 1px solid var(--line-2); text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.sw-ask:hover { border-color: #A8AEB8; background: var(--mist-2); }
.sw-ask svg { width: 14px; height: 14px; }
.sw-foot { padding: .7rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; background: #fff; }

/* ---- Founder note ---- */
.story { padding-block: var(--section); }
.story-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.note { display: grid; gap: 1.1rem; max-width: 40rem; }
.note > p { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); }
.note > p:first-child { color: var(--ink); }
.sign { margin-top: .9rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); display: grid; gap: .15rem; justify-self: start; min-width: 16rem; }
.sign-n { font-family: var(--display); font-weight: 760; font-stretch: 82%; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; }
.sign-r { color: var(--muted); font-size: .9375rem; }

/* ---- FAQ ---- */
.faq { padding-block: var(--section); background: var(--mist); border-top: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-copy { position: sticky; top: 6rem; }
.faq-copy h2 { max-width: 11ch; }
.faq-copy p { margin-top: 1.1rem; color: var(--ink-3); font-size: 1.125rem; }
.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem .25rem; font-weight: 600; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); letter-spacing: -0.015em; cursor: pointer; list-style: none; border-radius: 6px; transition: color .2s var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--ink-2); }
.qa-i { width: 20px; height: 20px; color: var(--ink-3); transition: transform .35s var(--ease); }
.qa details[open] .qa-i { transform: rotate(45deg); color: var(--ink); }
.qa-a { padding: 0 2.5rem 1.25rem .25rem; }
.qa-a p { color: var(--ink-3); font-size: 1.0625rem; max-width: 58ch; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2.25rem 1.75rem; }
.foot-brand { display: grid; gap: .5rem; align-content: start; }
.foot-nav { display: flex; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.foot-nav ul { display: grid; gap: .45rem; align-content: start; }
.foot-nav a { color: var(--ink-3); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.foot-base { display: flex; gap: 1.5rem; padding-block: 1rem 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; }
.foot-base p:last-child { margin-left: auto; }
.foot-lang a { color: var(--muted); }
.foot-lang a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .areas-in, .story-in, .faq-in { grid-template-columns: 1fr; }
  .faq-copy { position: static; }
  .foot-in { flex-direction: column; }
}
@media (max-width: 480px) {
  .foot-base { flex-wrap: wrap; gap: .5rem 1.25rem; }
  .sw-item { grid-template-columns: 1fr; gap: .5rem; }
  .sign { min-width: 0; justify-self: stretch; }
}

/* Live stage sizing: wider than the page column, never taller than the viewport */
.is-live .live-stage { align-items: safe center; }
.is-live .live-in { max-width: 1400px; }
.is-live .lw-body { grid-template-columns: minmax(0, 1fr) 256px; }
.is-live .lw-board { grid-template-columns: 116px repeat(6, minmax(0, 1fr)); grid-template-rows: auto repeat(4, minmax(76px, auto)); }
.is-live .lw-card .st { white-space: nowrap; }
.lw-card .pc-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lw-card .pc-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-lane { padding: .7rem .75rem; }
.is-live .lw-board { grid-template-columns: 132px repeat(6, minmax(0, 1fr)); }
.is-live .lw-body { grid-template-columns: minmax(0, 1fr) 248px; }

/* ===== Round 6b: day gutter, playhead, inbox payoff ===== */
/* Static steps: the day sits in a left time gutter beside the heading, never above it */
.lw-steps li { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1rem; }
.lw-steps li > h3, .lw-steps li > .lw-say { grid-column: 2; }
.lw-day { grid-column: 1; grid-row: 1 / span 2; display: grid; align-content: start; gap: .1rem; padding-top: .2rem; font-size: .8125rem; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }
.lw-day b { color: var(--ink); font-weight: 650; }
.lw-steps li.you .lw-day::after { content: ""; width: 7px; height: 7px; margin-top: .35rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); }
.is-live .lw-day { display: none; }
.is-live .lw-steps li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.is-live .lw-steps li > h3 { grid-column: 1; }
.is-live .lw-steps li > .lw-say { grid-column: 2; }

/* Gate days are no longer tinted columns: the phase label stays marigold-ink, the playhead marks the day */
.lw-col.g { background: none; }
.lw-dh.g { background: #FBFBFC; }

/* Playhead: one tinted column with an ink hairline that travels with the rail */
.lw-head { display: none; }
.is-live .lw-head { display: block; position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: 0; pointer-events: none; background: rgba(14, 17, 22, .035); box-shadow: inset 1.5px 0 0 var(--ink); transition: transform .7s var(--ease), width .7s var(--ease); }
.is-live .lw-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.is-live .lw-dh { position: relative; z-index: 1; transition: background-color .5s var(--ease), opacity .5s var(--ease), color .3s var(--ease); }
.is-live .lw-dh.now { background: transparent; color: var(--ink); }
.is-live .lw-dh.now b { font-weight: 700; }
.is-live .lw-cell, .is-live .lw-dh { transition: opacity .55s var(--ease); }
.is-live .lw-cell.next, .is-live .lw-dh.next { opacity: .55; }
.is-live .lw-cell:not(.now):not(.next) .lw-card { box-shadow: none; }
.is-live .lw-cell.now .lw-card { box-shadow: var(--shadow-md); }
.lw-card.backc { border-color: var(--back-line); background: var(--back-tint); }

/* Week inbox: the gold dot alone means "te toca"; titles may take two lines */
.lw-you { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); margin-right: 2px; }
.lw-row { align-items: start; }
.lw-row > .tm, .lw-row > .lw-you, .lw-row > .row-ok { margin-top: .3rem; }
.lw-row-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.lw-row-s { white-space: normal; }
.group-note { margin-left: auto; font-weight: 500; color: var(--muted); }
.lw-ask-go { margin-top: .3rem; font-size: .8125rem; }
.lw-ask-go a { font-weight: 550; }
@media (prefers-reduced-motion: reduce) { .lw-head { transition: none; } }

/* ===== Toche's real art: framed, never tinted ===== */
.cover > img, .th > img, .sl-img > img, .sl-mini > img, .art-slides > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover > img { position: absolute; inset: 0; }
.cover > :not(img) { position: relative; z-index: 1; }
.cover > .cv-play { position: absolute; }
.cover::after, .sl-img::after, .th::after, .sl-mini::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(14, 17, 22, .14); pointer-events: none; z-index: 2; }
.cv-dur { color: #fff; background: rgba(14, 17, 22, .55); }
.cv-play { top: 50%; }
.th-carr { width: 32px; height: 40px; border-radius: 5px; }
.sl-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--mist-2); }
.slides { display: grid; grid-template-columns: repeat(3, 116px) 44px; gap: .5rem; }
.sl-more { display: grid; place-items: center; border-radius: 6px; background: var(--mist); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-size: .75rem; font-weight: 600; }
.also-slides .sl-img { width: 58px; }
.also-cover { width: 41px; height: 73px; }
.also-cover .cv-play { width: 20px; height: 20px; }
.also-cover .cv-play svg { width: 10px; height: 10px; margin-left: 1px; }
.cover-sm .cv-play, .th .cv-play { display: none; }
.sl-mini { position: relative; display: block; width: 64px; aspect-ratio: 4 / 5; flex: none; border-radius: 6px; overflow: hidden; }
.sl-mini > img { border-radius: 6px; }
.sl-mini { overflow: visible; }
.sl-mini > .pin { right: -6px; top: -6px; }
.art-slides > img { position: absolute; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 10px; box-shadow: var(--shadow-md), 0 0 0 1px rgba(14, 17, 22, .1); background: var(--mist-2); }
.art-slides > img:nth-child(1) { z-index: 3; left: 0; top: 0; }
.art-slides > img:nth-child(2) { z-index: 2; left: 9%; top: 9%; transform: rotate(3deg); }
.art-slides > img:nth-child(3) { z-index: 1; left: 18%; top: 18%; transform: rotate(6deg); }
.art figcaption { color: var(--muted); }
@media (max-width: 700px) {
  .slides { grid-template-columns: repeat(3, minmax(0, 1fr)) 36px; }
  .also-slides .sl-img:nth-child(3) { display: none; }
}
/* Play mark sits in the corner so it never covers the art */
.cover > .cv-play { top: auto; left: auto; right: .6rem; bottom: .6rem; transform: none; }
.also-cover > .cv-play { right: .25rem; bottom: .25rem; }

/* ---- WordPress -------------------------------------------------------- */
/* Template parts render as the header/footer element itself; keep the landing's spacing. */
.wp-site-blocks > * { margin-block: 0; }
.wp-block-heading { text-wrap: balance; }
/* Plain pages (index template): readable column under the sticky nav. */
.page-main { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.page-main > * + * { margin-top: 1.25rem; }
