/* Home page: the ClickUp example from KPIs to action. Loads after styles.css and uses its tokens.
   Yellow means "named you" in data and nothing else; tone uses an ink ramp. */

/* ---------- Hero ---------- */
.category { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 15px; font-weight: 600; color: rgba(17,17,17,.72); }
.category-apps { display: inline-flex; gap: 4px; }
.category-apps img { width: 22px; height: 22px; padding: 3px; border-radius: 7px; background: rgba(255,255,255,.6); }
.home-hero .hero-sub { max-width: 26em; }

.hx { display: grid; gap: 14px; }
.hx-window { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-3); overflow: hidden; }
.hx-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hx-app { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.hx-qa { display: grid; gap: 10px; padding: 14px 16px 16px; }
.hx-qa + .hx-qa { border-top: 1px solid var(--line); }
.hx-q { justify-self: end; max-width: 90%; margin: 0; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: var(--chalk); font-size: 14.5px; line-height: 1.4; }
.hx-names { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hx-names li { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--chalk); font-size: 14px; color: var(--ink-2); }
.hx-names li i { font: 500 11px/1 "Geist Mono", monospace; font-style: normal; color: var(--ink-4); }
.hx-names li.you { background: var(--yellow); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--ink); }
.hx-names li.you i { color: var(--ink); }
.hx-miss { margin: 0; padding: 8px 12px; border: 1.5px dashed var(--line-strong); border-radius: 10px; font-size: 13.5px; color: var(--ink-3); }
.hx-miss b { color: var(--ink); font-weight: 600; }
.hx-tally { background: var(--paper); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-2); }
.hx-tally-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; color: var(--ink-2); }
.hx-count { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hx-count b { margin-right: 4px; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.hx-dots { display: grid; grid-template-columns: repeat(27, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
.hx-dots i, .kpips i, .art-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--dot-off); }
.hx-dots i.y, .kpips i.y, .art-dots i.y { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.art-dots i.p { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(17,17,17,.25); }
.js .hx-dots i { transform: scale(.4); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s ease; transition-delay: calc(var(--i) * 28ms + .5s); }
.js .in .hx-dots i, .js .hx.in .hx-dots i { transform: none; opacity: 1; }
.mf-dots.hx-dots { grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.js .mf-dots.hx-dots i { transform: none; opacity: 1; }

/* ---------- Who it is for ---------- */
.who { padding: 26px 0; border-bottom: 1px solid var(--line); }
.who-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; font-size: 15px; color: var(--ink-3); }
.who a { padding: 8px 14px; border-radius: 999px; background: var(--chalk); color: var(--ink); font-weight: 500; text-decoration: none; transition: background-color .2s ease; }
.who a:hover { background: var(--chalk-2); }
.who a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.who + .section { border-top: 0; }

/* ---------- KPI window: three tabs, one frame, every panel the same height ---------- */
.kw { margin-top: 48px; display: grid; grid-template-columns: 300px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); overflow: hidden; }
.kw-tabs { display: grid; align-content: start; gap: 4px; padding: 10px; background: var(--chalk); border-right: 1px solid var(--line); }
.kw-tab { display: grid; gap: 2px; padding: 16px 18px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.kw-tab:hover { background: var(--chalk-2); }
.kw-tab[aria-selected="true"] { background: var(--paper); box-shadow: var(--shadow-1); }
.kw-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.kw-name { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.kw-tab[aria-selected="true"] .kw-name { color: var(--ink); }
.kw-fig { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kw-q { font-size: 14px; color: var(--ink-2); }
/* All three panels share one grid cell, so the frame keeps the tallest height and never jumps between tabs. */
.kw-panels { display: grid; min-width: 0; }
.kw-panel { grid-area: 1 / 1; display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 20px; padding: 28px 32px; min-width: 0; }
.kw-panel[hidden] { display: grid; visibility: hidden; }
.js .kw-panel:not([hidden]) { animation: kw-in .24s var(--ease-out); }
@keyframes kw-in { from { opacity: 0; transform: translateY(4px); } }
.kw-head { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.kw-head b { font-variant-numeric: tabular-nums; }
.kw-read { align-self: end; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.kw-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.kw-apps { display: grid; gap: 14px; }
.kw-app { display: grid; grid-template-columns: 150px minmax(0, 1fr) 56px; align-items: center; gap: 14px; font-size: 14.5px; }
.kw-app .app { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.kw-app .n { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kpips { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; max-width: 260px; }
.rivals { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; font-size: 14px; color: var(--ink-3); }
.rivals div { display: flex; gap: 6px; }
.rivals dt { color: var(--ink); font-weight: 600; }
.rivals dd { margin: 0; font-variant-numeric: tabular-nums; }
.answer-card { margin: 0; }
.answer-card figcaption { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--ink-3); }
.ranked { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ranked li { display: grid; grid-template-columns: 28px 1fr; align-items: center; padding: 7px 10px; border-radius: 9px; font-size: 15px; }
.ranked li i { font: 500 12px/1 "Geist Mono", monospace; font-style: normal; color: var(--ink-4); }
.ranked li.you { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; }
.ranked li.you i { color: var(--ink); }
.compare { margin: 0; display: grid; }
.compare div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.compare div:first-child { border-top: 0; padding-top: 0; }
.compare dt { font-size: 14px; color: var(--ink-3); }
.compare .you dt { color: var(--ink); font-weight: 600; }
.compare dd { margin: 0; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.compare dd b { margin-right: 6px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.quotes { display: grid; gap: 12px; }
.quotes blockquote { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--chalk); }
.quotes p { margin: 6px 0 4px; font-size: 16px; line-height: 1.45; }
.quotes cite { font-size: 12.5px; font-style: normal; color: var(--ink-3); }
.tone { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(17,17,17,.08); }
[data-tone="positive"] > .tone { background: var(--ink); color: var(--paper); }
.tone-split { display: grid; gap: 12px; }
.tone-total { margin: 0; font-size: 15px; color: var(--ink-2); }
.tone-total b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; display: block; }
.tone-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.tone-bar i { flex-basis: 0; }
.tone-bar [data-tone="positive"], .tone-key [data-tone="positive"] dt::before { background: var(--ink); }
.tone-bar [data-tone="mixed"], .tone-key [data-tone="mixed"] dt::before { background: rgba(17,17,17,.5); }
.tone-key [data-tone="neutral"] dt::before { background: rgba(17,17,17,.18); }
.tone-key [data-tone="negative"] dt::before { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--ink); }
.tone-key { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 22px; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.tone-key div { display: flex; gap: 8px; }
.tone-key dt { display: inline-flex; align-items: center; gap: 6px; }
.tone-key dt::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.tone-key dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tone-quiet { margin: 0; font-size: 13px; color: var(--ink-4); }
.tone-key [data-zero], .tone-key [data-zero] dd { color: var(--ink-4); font-weight: 500; }

/* ---------- Action band ---------- */
.act .lede { color: #C9C9C2; }
.act .split-head { margin-bottom: 48px; }
.act-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: stretch; }
.act-step { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: 18px; background: #1B1B19; border: 1px solid #34342F; }
.act-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: #A3A39B; }
.act-q { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.act-big { margin: 4px 0 0; font-size: 14.5px; color: #C9C9C2; }
.act-big b { display: block; font-size: 40px; line-height: 1.05; letter-spacing: -0.035em; color: var(--paper); font-variant-numeric: tabular-nums; }
.act-meta { margin: 0; font-size: 14px; line-height: 1.5; color: #A3A39B; }
.act-source { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: #262624; color: var(--paper); text-decoration: none; transition: background-color .2s ease, transform .2s var(--ease-out); }
.act-source:hover { background: #2E2E2B; transform: translateY(-1px); }
.act-source:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.act-source b { font-size: 17px; line-height: 1.3; }
.act-cited { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #A3A39B; }
.act-domain { font-size: 13px; color: #A3A39B; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.act-rec { background: var(--paper); border-color: var(--paper); color: var(--ink); box-shadow: 0 24px 48px -20px rgba(0,0,0,.6); }
.act-rec .act-label { color: var(--ink-3); }
.act-rec h3 { margin: 0; font-size: 23px; line-height: 1.22; letter-spacing: -0.02em; }
.act-rec p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.act-more { margin-top: 18px; border-top: 1px solid #34342F; }
.act-more summary { display: flex; align-items: center; gap: 8px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--paper); }
.act-more summary::-webkit-details-marker { display: none; }
.act-more summary::after { content: ""; width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); }
.act-more[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.act-more summary:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 6px; }
.act-answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.act-answers > div { padding: 14px 16px; border-radius: 14px; background: #1B1B19; font-size: 14px; line-height: 1.5; color: #D9D9D2; }
.act-answers p { margin: 0; }
.act-app { display: flex; align-items: center; gap: 6px; margin-bottom: 6px !important; font-weight: 600; color: var(--paper); }
.act-app img { filter: invert(1); }
.act-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #D9D9D2; }
.act-table th, .act-table td { padding: 10px 12px 10px 0; text-align: left; border-bottom: 1px solid #34342F; font-weight: 400; }
.act-table thead th { font-size: 12.5px; font-weight: 600; color: #A3A39B; }
.act-table tbody th { color: var(--paper); }
.act-form { margin-top: 40px; }
.act .check-form label { color: #D9D9D2; }
.act .form-row { box-shadow: none; }
.act .form-row:focus-within { box-shadow: 0 0 0 1.5px var(--paper); }
.act .check-form button[type="submit"]::after { background: var(--ink); }
.act .form-status { color: #D9D9D2; }

/* ---------- Report tour ---------- */
.rt { margin-top: 48px; }
.rt-tabs { display: flex; gap: 4px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; border-radius: 12px; background: var(--chalk); }
.rt-tab { padding: 9px 16px; border: 0; border-radius: 9px; background: transparent; font: 500 14.5px/1 "Geist", sans-serif; color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.rt-tab:hover { color: var(--ink); }
.rt-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.rt-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rt-window { display: grid; margin-top: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-2); }
.rt-panel { grid-area: 1 / 1; padding: 26px 30px 30px; min-width: 0; }
.rt-panel[hidden] { display: block; visibility: hidden; }
.js .rt-panel:not([hidden]) { animation: kw-in .24s var(--ease-out); }
.rt-job { margin: 0 0 20px; font-size: 15.5px; color: var(--ink-2); max-width: 44em; }
.rt-job b { color: var(--ink); }
.rt-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -8px 0 16px; font-size: 13px; color: var(--ink-3); }
.rt-key b { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-size: 12px; }
.rt-key em { margin-right: 4px; font-style: normal; color: var(--ink-4); }
.rt-sub { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); }
.qgrid, .srcs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.qgrid th, .qgrid td, .srcs th, .srcs td { padding: 10px 8px 10px 0; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.qgrid thead th, .srcs thead th { font-size: 12.5px; font-weight: 600; color: var(--ink-3); border-bottom-color: var(--ink); }
.qgrid thead img { display: inline-block; margin-right: 6px; vertical-align: -2px; }
.qgrid td b { display: inline-block; min-width: 34px; padding: 3px 8px; border-radius: 999px; background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); font: 600 12.5px/1.2 "Geist", sans-serif; text-align: center; }
.qgrid td.no { color: var(--ink-4); font-size: 13.5px; }
.qgrid tr.lost th { font-weight: 600; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 620px; }
.bars li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 60px; align-items: center; gap: 14px; font-size: 14.5px; }
.bars i { height: 8px; border-radius: 4px; background: var(--chalk-2); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--ink); }
.bars b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.st { font-size: 13.5px; color: var(--ink-3); }
.st-go { color: var(--ink); font-weight: 600; }
.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 640px; }
.recs li { display: grid; gap: 4px; justify-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.recs b { font-size: 16px; }
.recs li > span:last-child { font-size: 13.5px; color: var(--ink-3); }

/* ---------- Weekly progress ---------- */
.pg { margin-top: 48px; display: grid; gap: 12px; }
.pg-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.pg-q { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; }
.pg-d { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pg-date { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 44px; }
.pg-note { flex-basis: 100%; padding-left: 54px; font-size: 13px; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill-yes { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill-no { color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-weight: 500; }
.pg-cap { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); max-width: 56em; }
.pg-cap a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- How it works art ---------- */
.art-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.art-list li { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 9px; background: var(--paper); }
.art-list b { font-variant-numeric: tabular-nums; }
.art-card { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-1); font-size: 13.5px; color: var(--ink-3); }
.art-card b { font-size: 16px; color: var(--ink); }
.art-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }

/* ---------- Top AI Mentions ---------- */
.lb { margin-top: 40px; max-width: 760px; }
.lb-meta { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.lb-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); min-height: 290px; }
.lb-rows li a { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(80px, 1fr) 132px; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background-color .2s ease; }
.lb-rows li a:hover { background: var(--chalk); }
.lb-rows li a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.lb-rank { font: 500 12px "Geist Mono", monospace; color: var(--ink-4); }
.lb-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name img, .lb-name .lb-init { flex: none; width: 22px; height: 22px; border-radius: 6px; object-fit: contain; background: var(--chalk); }
.lb-init { display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.lb-tag { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--yellow); font-size: 11.5px; font-weight: 600; }
.lb-bar { height: 8px; border-radius: 4px; background: var(--chalk-2); position: relative; overflow: hidden; }
.lb-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--ink); transform-origin: left; }
.lb-val { white-space: nowrap; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-val b { font-weight: 600; }
.lb-val span { color: var(--ink-3); }
.lb-state { margin: 16px 0 0; font-size: 14.5px; color: var(--ink-3); }
.lb-state[data-kind="error"] { color: var(--ink-2); }
/* Waiting: five rows in the real layout (rank, logo and name, bar, value) breathe until the names arrive. No numbers. */
.lb-wait { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(80px, 1fr) 132px; align-items: center; gap: 14px; height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.lb-wait span { height: 10px; border-radius: 5px; background: var(--chalk-2); animation: lb-breathe 1.4s var(--ease-in-out) infinite; }
.lb-wait span:nth-child(1) { width: 12px; }
.lb-wait span:nth-child(2) { width: 46%; height: 14px; }
.lb-wait span:nth-child(4) { width: 70%; justify-self: end; }
.lb-wait:nth-child(2) span { animation-delay: .12s; }
.lb-wait:nth-child(3) span { animation-delay: .24s; }
.lb-wait:nth-child(4) span { animation-delay: .36s; }
.lb-wait:nth-child(5) span { animation-delay: .48s; }
@keyframes lb-breathe { 50% { opacity: .45; } }
/* Arrival: each real row rises in 60ms after the one above it, and its bar grows from zero. */
.lb-rows li a { height: 52px; padding-top: 0; padding-bottom: 0; }
.lb-in li { animation: lb-rise .42s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.lb-in .lb-bar::after { animation: lb-grow .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + .12s); }
@keyframes lb-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes lb-grow { from { transform: scaleX(0); } }
.lb-more { display: inline-block; margin-top: 20px; color: var(--ink); font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .kw { grid-template-columns: minmax(0, 1fr); }
  .kw-tabs { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .act-path { grid-template-columns: minmax(0, 1fr); }
  .act-answers { grid-template-columns: minmax(0, 1fr); }
  .pg-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pg-q { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .category { font-size: 13.5px; gap: 8px; align-items: flex-start; }
  .category-apps img { width: 20px; height: 20px; }
  .hx-dots { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .hx-qa:first-of-type { display: none; }
  .kw-tab { padding: 10px 10px; }
  .kw-q { display: none; }
  .kw-fig { font-size: 24px; }
  .kw-panel { padding: 20px 18px; }
  .kw-head { font-size: 18px; }
  .kw-split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .kw-app { grid-template-columns: minmax(0, 1fr) 48px; row-gap: 8px; }
  .kw-app .kpips { grid-column: 1 / -1; grid-row: 2; }
  .act-step { padding: 18px; }
  .act-big b { font-size: 34px; }
  .act-table thead { display: none; }
  .act-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 8px 0; border-bottom: 1px solid #34342F; }
  .act-table th, .act-table td { border: 0; padding: 2px 0; }
  .act-table td:nth-child(2) { grid-row: 2; color: #A3A39B; font-size: 13px; }
  .act-table td:last-child { text-align: right; }
  .rt-panel { padding: 18px 16px 22px; }
  .qgrid { font-size: 13.5px; }
  /* Narrow phones: the long domain wraps inside its column instead of widening the table past the page. */
  .srcs { table-layout: fixed; }
  .srcs th, .srcs td, .qgrid th, .qgrid td { overflow-wrap: anywhere; }
  .srcs thead th:last-child { width: 44%; }
  .qgrid thead img { display: block; margin: 0 0 4px; }
  .qgrid td.no { font-size: 12px; }
  .bars li { grid-template-columns: 96px minmax(0, 1fr) 46px; gap: 10px; font-size: 13.5px; }
  .pg-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .pg-note { padding-left: 0; }
  .lb-rows li a, .lb-wait { grid-template-columns: 22px minmax(0, 1fr) 118px; }
  .lb-wait span:nth-child(3) { display: none; }
  .lb-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hx-dots i { transition: none; transform: none; opacity: 1; }
  .js .kw-panel:not([hidden]), .js .rt-panel:not([hidden]) { animation: none; }
  .lb-wait span, .lb-in li, .lb-in .lb-bar::after { animation: none; }
}
.close .form-note { color: #A3A39B; }
/* Phones: the buying order is headline, promise, field, then the example. Each KPI panel takes its own height under
   the fixed tab row, so a short panel never leaves an empty half frame. */
@media (max-width: 720px) {
  .home-hero .hero-copy { display: block; }
  .home-hero .hx { margin-top: 20px; }
  .home-hero .check-form { margin-top: 24px; }
  .home-hero .hero-sub { margin-top: 16px; }
  .kw-panels { display: block; }
  .kw-panel[hidden] { display: none; }
  .kw-panel { grid-template-rows: none; }
  .compare dd b { font-size: 24px; }
}

/* ---------- Motion (restored, founder correction October 11, 2026) ----------
   Movement uses transform and opacity. Two small accents also animate paint: the highlighter sweep (background-size)
   and the ink ring that follows it (box-shadow). Every element holds its final place, so nothing below moves.
   Without the script, or with reduced motion, the final state shows at once. */

/* Hero answer story */
.hx-qa { position: relative; }
.hx-think { position: absolute; left: 16px; bottom: 18px; }
.hx-qa.thinking-on .hx-think { display: block; }
.hx[data-play] .hx-q { opacity: 0; transform: translateY(8px) scale(.98); transform-origin: 100% 100%; transition: opacity .3s ease, transform .45s var(--ease-out); }
.hx[data-play] .asked .hx-q { opacity: 1; transform: none; }
.hx[data-play] .hx-q span { opacity: 0; }
.hx[data-play] .hx-q span.on { opacity: 1; }
.hx[data-paused] *, .hx[data-paused] *::before, .hx[data-paused] *::after { animation-play-state: paused !important; }
.hx[data-play] .hx-names li { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s var(--ease-out); }
.hx[data-play] .hx-names li.in { opacity: 1; transform: none; }
/* ClickUp gets the highlighter: a sweep left to right, then its ink ring. */
.hx[data-play] .hx-names li.you { background: var(--chalk) linear-gradient(var(--yellow), var(--yellow)) 0 0 / 0% 100% no-repeat; box-shadow: inset 0 0 0 1.5px transparent; transition: opacity .35s ease, transform .45s var(--ease-out), background-size .6s var(--ease-out), box-shadow .3s ease .45s; }
.hx[data-play] .marked .hx-names li.you { background-size: 100% 100%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.hx[data-play] .hx-miss { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s var(--ease-out); }
.hx[data-play] .marked .hx-miss { opacity: 1; transform: none; }
.js .hx[data-play] .hx-dots i:not(.in) { opacity: 1; transform: none; background: var(--chalk-2); box-shadow: none; transition: none; }
.js .hx[data-play] .hx-dots i.in { opacity: 1; transform: none; animation: hx-pop .5s var(--ease-out); transition: none; }
@keyframes hx-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.hx.hx-out .hx-qa > *, .hx.hx-out .hx-dots { opacity: 0 !important; transition: opacity .4s ease !important; }

/* Timed tours: a progress track fills under the playing tab; it disappears once the visitor takes over. */
.kw-tab, .rt-tab { position: relative; }
.kw-tab::after, .rt-tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; transition: opacity .3s ease; }
.rt-tab::after { left: 10px; right: 10px; bottom: 3px; }
[data-playing] .kw-tab[aria-selected="true"]::after, [data-playing] .rt-tab[aria-selected="true"]::after { opacity: 1; }

/* Panel arrival: rows rise in turn, marks pop, bars grow. */
.arrive .kpips i { animation: hx-pop .5s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms + .1s); }
.arrive .kw-apps .kw-app:nth-child(2) .kpips i { animation-delay: calc(var(--i) * 45ms + .25s); }
.arrive .kw-apps .kw-app:nth-child(3) .kpips i { animation-delay: calc(var(--i) * 45ms + .4s); }
.arrive .compare > div, .arrive .ranked li, .arrive .quotes blockquote, .arrive .recs li, .arrive .qgrid tbody tr, .arrive .srcs tbody tr, .arrive .bars li { animation: rise .42s var(--ease-out) both; }
.arrive .ranked li:nth-child(2), .arrive .compare > div:nth-child(2), .arrive .quotes blockquote:nth-child(2), .arrive .recs li:nth-child(2), .arrive tbody tr:nth-child(2), .arrive .bars li:nth-child(2) { animation-delay: .06s; }
.arrive .ranked li:nth-child(3), .arrive .compare > div:nth-child(3), .arrive tbody tr:nth-child(3), .arrive .bars li:nth-child(3) { animation-delay: .12s; }
.arrive .ranked li:nth-child(4), .arrive tbody tr:nth-child(4), .arrive .bars li:nth-child(4) { animation-delay: .18s; }
.arrive .ranked li:nth-child(5), .arrive tbody tr:nth-child(5), .arrive .bars li:nth-child(5) { animation-delay: .24s; }
.arrive .ranked li:nth-child(6), .arrive tbody tr:nth-child(6), .arrive .bars li:nth-child(6) { animation-delay: .3s; }
.arrive tbody tr:nth-child(7) { animation-delay: .36s; }
.arrive tbody tr:nth-child(8) { animation-delay: .42s; }
.arrive tbody tr:nth-child(9) { animation-delay: .48s; }
.arrive .ranked li.you { animation-name: rise-mark; }
.arrive .qgrid td b { animation: hx-pop .45s var(--ease-out) both; animation-delay: .35s; }
.arrive .bars i::after, .arrive .tone-bar i { animation: grow .8s var(--ease-out) both; animation-delay: .2s; transform-origin: left; }
.arrive .kw-read { animation: fade .5s ease both .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes rise-mark { 0% { opacity: 0; transform: translateY(8px); } 70% { opacity: 1; transform: scale(1.02); } 100% { transform: none; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }

/* Weekly progress: the dates settle in order, and the newly named answer pops with its highlighter. */
.pg[data-beat] .pill, .pg[data-beat] .pg-note { opacity: 0; transform: scale(.8); }
.pg.beat .pill, .pg.beat .pg-note { animation: hx-pop .5s var(--ease-out) both; opacity: 1; transform: none; }
.pg.beat .pg-row:nth-child(1) .pg-q + .pg-d .pill { animation-delay: .1s; }
.pg.beat .pg-row:nth-child(1) .pg-d + .pg-d .pill { animation-delay: .6s; }
.pg.beat .pg-row:nth-child(1) .pg-note { animation: rise .45s var(--ease-out) both .9s; }
.pg.beat .pg-row:nth-child(2) .pg-q + .pg-d .pill { animation-delay: 1.2s; }
.pg.beat .pg-row:nth-child(2) .pg-d + .pg-d .pill { animation-delay: 1.6s; }
.pg.beat .pill-yes { background: var(--paper) linear-gradient(var(--yellow), var(--yellow)) 0 0 / 0% 100% no-repeat; animation: hx-pop .5s var(--ease-out) both .6s, sweep .6s var(--ease-out) forwards .75s; }
@keyframes sweep { to { background-size: 100% 100%; } }

/* How it works: each step's art plays its small proof once. */
.step-art[data-beat] .mini-field b { opacity: 0; font-weight: inherit; }
.step-art.beat .mini-field b { opacity: 1; transition: opacity .05s linear calc(var(--i) * 70ms + .2s); }
.step-art.beat .mini-field em { animation: press .4s var(--ease-out) 1.2s; }
.step-art[data-beat] .art-label + .art-list li, .step-art[data-beat] .art-card, .step-art[data-beat] p.art-label { opacity: 0; }
.step-art.beat .art-label + .art-list li, .step-art.beat .art-card, .step-art.beat p.art-label { opacity: 1; animation: rise .45s var(--ease-out) both; }
.step-art.beat p.art-label { animation-delay: 1.5s; }
.step-art.beat .art-label + .art-list li:nth-child(2) { animation-delay: .12s; }
.step-art.beat .art-label + .art-list li:nth-child(3) { animation-delay: .24s; }
.step-art.beat .art-card { animation-delay: .15s; }
.step-art[data-beat] .art-dots i:not(.p) { opacity: 0; transform: scale(.4); }
.step-art.beat .art-dots i:not(.p) { opacity: 1; transform: none; animation: hx-pop .45s var(--ease-out) both; animation-delay: calc(var(--i) * 35ms); }
.step-art.beat .art-dots i.p { animation: wait-pulse 1.6s var(--ease-in-out) infinite 1.2s; }
@keyframes press { 50% { transform: scale(.94); } }

@media (prefers-reduced-motion: reduce) {
  .kw-tab::after, .rt-tab::after { display: none; }
  .arrive *, .pg.beat *, .step-art.beat * { animation: none !important; }
}
