/* aipozi app. Tokens from /design/tokens.css. Light-first dashboard; the sign-in,
   onboarding and upgrade screens use the dark Aurora world of aipozi.com. */

:root { --font-sans: "Instrument Sans", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; --side-w: 248px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-subtle); color: var(--text); font-family: var(--font-sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.sm { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 28px; height: 18px; background: linear-gradient(90deg, currentColor 0 14%, transparent 14% 21%, currentColor 21% 35%, transparent 35% 42%, currentColor 42% 56%, transparent 56% 63%, currentColor 63% 77%, transparent 77% 84%, color-mix(in srgb, currentColor 30%, transparent) 84%); opacity: .5; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .15; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.btn-quiet { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-1); }
.btn-quiet:hover { border-color: var(--border-strong); }
.btn-danger { background: var(--state-miss); color: #fff; }
.btn-light { background: #f2f6f4; color: #06121a; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 30px -10px rgba(0,0,0,.6); }
.btn-light:hover:not(:disabled) { background: #fff; }
.btn-light:disabled { opacity: 1; background: rgba(242,246,244,.16); color: rgba(238,243,246,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.btn-glass { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #eef3f6; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,.11); }
.ghost { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-2); cursor: pointer; padding: 6px 8px; border-radius: 6px; font-size: 13px; }
.ghost svg { width: 14px; height: 14px; }
.ghost:hover { background: var(--bg-muted); color: var(--text); }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--text-3); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: rgba(127,127,127,.12); color: var(--state-miss-text); }
.link { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Shared marks ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.035em; }
.wordmark .mark { width: 20px; height: 20px; }
.tile { width: 28px; height: 28px; flex: none; border-radius: 7px; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--text); background: var(--bg-muted); box-shadow: inset 0 0 0 1px var(--border); }
.strip { display: inline-flex; gap: 2px; vertical-align: middle; flex-wrap: nowrap; }
.strip i { width: 5px; height: 14px; border-radius: 1.5px; background: var(--border); }
.strip i.on { background: var(--state-named); }
.strip i.on.part { background: var(--state-partial); }
.sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--border-strong); }
.sdot.ok { background: var(--state-named); }
.sdot.part { background: var(--state-partial); }
.sdot.miss { background: transparent; box-shadow: inset 0 0 0 1.5px var(--state-miss); }
.pill { display: inline-flex; font-size: 12.5px; font-weight: 500; padding: 2px 8px; border-radius: 5px; }
.pill.ok { background: var(--state-named-bg); color: var(--accent-text); }
.pill.part { background: var(--state-partial-bg); color: var(--state-partial-text); }
.pill.miss { background: var(--state-miss-bg); color: var(--state-miss-text); }
.pill.err { background: var(--bg-muted); color: var(--text-3); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--state-partial); box-shadow: 0 0 0 0 color-mix(in srgb, var(--state-partial) 60%, transparent); animation: live 1.8s ease-out infinite; vertical-align: 1px; margin-right: 8px; }
.live.ok { background: var(--state-named); animation: none; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.progress { height: 6px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); }
.progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #0b8a63, #1a8fb0); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.progress.lg { height: 8px; }
.badge { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.badge.pro { color: var(--accent-text); border-color: color-mix(in srgb, var(--state-named) 40%, var(--border)); }
.badge.owner { color: var(--text-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); z-index: 60; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translate(-50%, 8px); }

/* ---------- Dashboard shell ---------- */
body[data-mode="dash"] { background: var(--bg-subtle); }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 16px; padding: 16px 12px; border-right: 1px solid var(--border); background: var(--bg); }
.side-top { padding: 6px 8px 8px; }
.side-nav { display: grid; gap: 1px; overflow-y: auto; align-content: start; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 14px; min-width: 0; }
.side-nav a svg { width: 17px; height: 17px; flex: none; }
.side-nav a:hover { background: var(--bg-muted); color: var(--text); }
.side-nav a.on { background: var(--bg-muted); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
.side-nav .tile { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
.side-nav .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.side-nav .st { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.side-nav .st.ok { background: var(--state-named); }
.side-nav .st.running { background: var(--state-partial); animation: pulse 1.4s ease-in-out infinite; }
.side-label { font-size: 12px; color: var(--text-3); padding: 14px 8px 4px; }
.side-add { color: var(--text-3) !important; }
.side-foot { margin-top: auto; border-top: 1px solid var(--rule); padding: 12px 4px 0; display: grid; gap: 8px; }
.who { display: flex; gap: 10px; align-items: center; padding: 0 4px; min-width: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-muted); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; box-shadow: inset 0 0 0 1px var(--border); }
.who-t { display: grid; min-width: 0; }
.who-t b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-t small { font-size: 12px; color: var(--text-3); }
.side-actions { display: flex; justify-content: space-between; }
.content { min-width: 0; outline: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 36px 40px 80px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-h h1, .site-h h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.page-h p, .site-h p { margin: 4px 0 0; }

/* ---------- Overview cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.scard { display: grid; gap: 18px; align-content: start; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 250px; }
.scard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.sc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sc-t { display: grid; min-width: 0; }
.sc-t b { font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-t small { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-kpis .k { display: block; font-size: 12.5px; color: var(--text-2); }
.sc-kpis .v { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.sc-kpis .v small { font-size: 15px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.sc-engines { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sc-engines li { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.sc-engines .en { color: var(--text-2); }
.sc-engines .num { color: var(--text-2); font-size: 12.5px; }
.sc-foot { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--text-2); }
.sc-foot b { color: var(--text); font-weight: 500; }
.sc-foot span { color: var(--text-3); white-space: nowrap; }
.sc-run { display: grid; gap: 12px; align-content: center; flex: 1; padding: 22px 0 6px; }
.sc-big { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.sc-note { margin: 0; font-size: 13.5px; color: var(--text-2); }
.scard.running { position: relative; overflow: hidden; }
.scard.running::after { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%; background: radial-gradient(40% 40% at 60% 40%, rgba(26,143,176,.12), transparent 70%), radial-gradient(35% 35% at 40% 60%, rgba(11,138,99,.12), transparent 70%); pointer-events: none; }
.scard.add { border-style: dashed; box-shadow: none; background: transparent; place-content: center; justify-items: center; text-align: center; gap: 6px; color: var(--text-2); }
.scard.add b { color: var(--text); font-weight: 600; }
.scard.add small { font-size: 13px; }
.add-i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); margin-bottom: 6px; }
.add-i svg { width: 16px; height: 16px; }

/* ---------- Site detail ---------- */
.site-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.site-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.site-id .tile { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; }
.site-id p { max-width: 60ch; }
.site-meta { display: flex; gap: 12px; align-items: center; flex: none; }
.status { font-size: 13px; color: var(--text-2); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 12px; text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--text); }
.tab-body { display: grid; gap: 16px; }
.skeleton { height: 240px; border-radius: 14px; background: linear-gradient(90deg, var(--bg-muted), var(--surface), var(--bg-muted)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-1); }
.panel h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel.empty { text-align: center; padding: 56px 24px; }
.panel.empty h2 { font-size: 20px; letter-spacing: -0.02em; }
.panel.empty p { max-width: 52ch; margin: 10px auto 0; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-1); display: grid; align-content: start; }
.kpi .k { font-size: 13px; color: var(--text-2); }
.kpi .v { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; margin-top: 4px; }
.kpi .v small { font-size: 15px; letter-spacing: 0; color: var(--text-3); font-weight: 500; margin-left: 6px; }
.kpi .v.sm { font-size: 22px; letter-spacing: -0.02em; margin-top: 10px; }
.kpi .sub { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.kpi .bar { height: 4px; border-radius: 2px; background: var(--bg-muted); margin-top: 14px; overflow: hidden; }
.kpi .bar span { display: block; height: 100%; background: var(--state-named); }
.engine-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ecard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-1); display: grid; gap: 10px; }
.ec-h { display: flex; justify-content: space-between; font-weight: 600; }
.ec-h .num { font-weight: 500; color: var(--text-2); }
.ec-s { margin: 0; font-size: 13px; color: var(--text-3); }
.inline-note { margin: 0; font-size: 13.5px; color: var(--text-2); }

.qgrid { display: grid; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.qg-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 128px); align-items: center; gap: 0; text-decoration: none; border-top: 1px solid var(--rule); }
.qg-row:first-child { border-top: 0; }
.qg-row > * { padding: 12px 14px; }
.qg-head { background: var(--bg-subtle); font-size: 12.5px; color: var(--text-3); font-weight: 500; }
a.qg-row:hover { background: var(--bg-subtle); }
.qg-q { display: flex; gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.4; }
.qn { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 14px; }
.qg-c { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.qgrid.compact .qg-t { display: none; }
.qgrid.compact .qg-row { grid-template-columns: minmax(0, 1fr) repeat(4, 84px); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; font-size: 12.5px; color: var(--text-3); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rivals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rivals li { display: grid; grid-template-columns: 200px 1fr 40px; align-items: center; gap: 14px; font-size: 14px; }
.rbar { height: 6px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--text-3); border-radius: 3px; }
.rivals .num { text-align: right; color: var(--text-2); }

.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); text-decoration: none; }
.back svg { width: 14px; height: 14px; }
.qtitle { margin: 4px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; max-width: 60ch; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.ans { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-1); display: grid; gap: 14px; align-content: start; min-width: 0; }
.ans-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ans-h b { font-size: 15px; }
.ans-text { font-family: var(--font-serif); font-size: 15.5px; line-height: 1.62; color: var(--text); }
.ans-text p { margin: 0 0 .7em; }
.ans-text .ah { font-family: var(--font-sans); font-weight: 600; font-size: 14px; margin-top: 1em; }
.ans-text ul { margin: 0 0 .7em; padding-left: 1.2em; }
.ans-text li { margin-bottom: .3em; }
.ans-text mark { background: var(--state-named-bg); color: inherit; border-radius: 2px; padding: 0 2px; box-shadow: inset 0 -1.5px 0 var(--state-named); }
.ans-text u { text-decoration-color: var(--border-strong); }
.ans-r, .ans-s { margin: 0; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--rule); padding-top: 12px; }
.ans-r span, .ans-s > span { display: block; color: var(--text-3); font-size: 12px; margin-bottom: 4px; }
.ans-r b { color: var(--text); font-weight: 500; }
.ans-s ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.ans-s a { text-decoration: none; overflow-wrap: anywhere; }
.ans-s a:hover { text-decoration: underline; }
.ans-s li.us { color: var(--accent-text); font-weight: 500; }

.running-panel { position: relative; overflow: hidden; padding: 0; }
.rp-glow { position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 0%, rgba(26,143,176,.14), transparent 70%), radial-gradient(45% 70% at 100% 100%, rgba(11,138,99,.14), transparent 70%), radial-gradient(30% 40% at 70% 110%, rgba(240,169,74,.12), transparent 70%); pointer-events: none; }
.rp-in { position: relative; padding: 36px 36px 32px; display: grid; gap: 12px; max-width: 680px; }
.rp-in h2 { font-size: 22px; letter-spacing: -0.02em; display: inline; }
.rp-in .live { margin-right: 10px; }
.rp-in > .live { position: absolute; left: 36px; top: 46px; }
.rp-in h2 { padding-left: 20px; }
.rp-in p { margin: 0; }
.rp-count { font-size: 13px; color: var(--text-2); }
.rp-engines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rp-engines li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--rule); font-size: 13px; }
.rp-engines li span:first-child { color: var(--text-2); }
.rp-engines .num { font-weight: 600; }

.aurora-empty { position: relative; overflow: hidden; }
.ae-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 60% at 50% 120%, rgba(11,138,99,.16), transparent 70%), radial-gradient(30% 50% at 75% 110%, rgba(240,169,74,.12), transparent 70%), radial-gradient(35% 55% at 25% 110%, rgba(26,143,176,.14), transparent 70%); }
.aurora-empty > * { position: relative; }
.ae-days { display: inline-flex; gap: 8px; margin-top: 24px; }
.ae-days span { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--border-strong); color: var(--text-3); }
.ae-days span.on { border-style: solid; color: var(--text); background: var(--surface); }

.chart { width: 100%; height: auto; }
.chart .gl { stroke: var(--rule); }
.chart .gt { fill: var(--text-3); font-size: 11px; }
.chart .ln { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.named { stroke: var(--state-named); }
.chart .ln.linked { stroke: var(--text-3); stroke-dasharray: 5 4; }
.sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.sw.named { background: var(--state-named); }
.sw.linked { background: var(--text-3); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.tbl th { color: var(--text-3); font-weight: 500; font-size: 12.5px; }
.tbl .r { text-align: right; padding-right: 0; }
.tbl tfoot td { border-bottom: 0; padding-top: 14px; }
.bill-site { display: inline-flex; align-items: center; gap: 10px; }
.bill-site .tile { width: 22px; height: 22px; border-radius: 5px; font-size: 11px; }

.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.form input { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 14.5px; }
.form input:focus { outline: none; border-color: var(--text-3); box-shadow: var(--focus-ring); }
.form input:disabled { background: var(--bg-muted); color: var(--text-3); }
.form.row { grid-template-columns: 1fr auto; align-items: end; max-width: 640px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }
.plan-line { margin: 0; color: var(--text-2); }
.plan-line b { color: var(--text); }
.panel.danger { border-color: color-mix(in srgb, var(--state-miss) 35%, var(--border)); }

/* ---------- Question editor ---------- */
.qed { display: grid; gap: 12px; }
.qed-head { display: flex; align-items: center; gap: 14px; }
.qed-count { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.qed-count b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.qed-bar { flex: 1; max-width: 200px; height: 4px; border-radius: 2px; background: var(--bg-muted); overflow: hidden; }
.qed-bar span { display: block; height: 100%; background: var(--text); transition: width .3s; }
.qed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qcard { display: grid; grid-template-columns: 26px 1fr 32px; gap: 8px; align-items: start; padding: 12px 10px 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transition: border-color .12s, box-shadow .12s; }
.qcard:focus-within { border-color: var(--border-strong); box-shadow: var(--focus-ring); }
.qcard .qn { padding-top: 3px; }
.qbody { display: grid; gap: 4px; min-width: 0; }
.qbody textarea { width: 100%; border: 0; background: none; resize: none; padding: 0; font-size: 15px; line-height: 1.45; color: var(--text); outline: none; overflow: hidden; min-height: 22px; }
.qmeta { font-size: 12px; color: var(--text-3); }
.qed-add { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; border: 1px dashed var(--border-strong); background: none; color: var(--text-2); font-weight: 500; cursor: pointer; }
.qed-add svg { width: 14px; height: 14px; }
.qed-add:hover:not(:disabled) { color: var(--text); border-color: var(--text-3); }
.qed-add:disabled { opacity: .45; cursor: not-allowed; }
.qed-cap { margin: 0; font-size: 13px; color: var(--state-partial-text); min-height: 0; }
.qed-cap:empty { display: none; }

/* =================================================================
   The dark flow: sign-in, onboarding and the upgrade gate (Aurora).
   ================================================================= */
body[data-mode="dark-flow"] { background: #06121a; color: #eef3f6; color-scheme: dark; }
.flow {
  --bg: #06121a; --bg-subtle: rgba(255,255,255,.03); --bg-muted: rgba(255,255,255,.06); --surface: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.1); --border-strong: rgba(255,255,255,.18); --rule: rgba(255,255,255,.07);
  --text: #eef3f6; --text-2: rgba(226,236,240,.72); --text-3: rgba(214,226,232,.52);
  --state-named: #4fd1a5; --state-partial: #f1c27a; --state-partial-text: #f1c27a; --state-miss: #f29a8a; --accent-text: #7fe3c0;
  --focus-ring: 0 0 0 3px rgba(127,227,192,.3);
  position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; color: var(--text);
}
.aurora-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #06121a; }
.aurora-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 25% 45%, rgba(6,18,26,.55), transparent 70%); }
.flow-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(16px, 4vw, 40px); }
.flow-top .wordmark { color: #eef3f6; }
.flow-x { background: none; border: 0; color: var(--text-2); font-size: 14px; text-decoration: none; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.flow-x:hover { color: #fff; background: rgba(255,255,255,.06); }
.flow-body { position: relative; z-index: 1; padding: 0 clamp(16px, 4vw, 40px) 160px; }
.ob { max-width: 640px; margin: clamp(48px, 10vh, 120px) 0 0 clamp(0px, 7vw, 120px); }
.ob h1, .auth h1 { margin: 10px 0 0; font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.2rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; }
.ob .sub, .auth .sub { margin: 18px 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.5; color: var(--text-2); max-width: 34em; }
.ob-step { margin: 0; font-size: 13px; color: var(--accent-text); font-weight: 500; }
.dom { color: #fff; }
.msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--state-miss); }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }
.urlform { display: flex; gap: 10px; margin-top: 36px; }
.urlfield { flex: 1; display: flex; align-items: center; height: 48px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-left: 14px; min-width: 0; }
.urlfield:focus-within { border-color: rgba(255,255,255,.4); box-shadow: 0 0 0 4px rgba(255,255,255,.07); }
.urlfield .pre { color: var(--text-3); font-size: 16px; }
.urlfield input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; color: #fff; padding: 0 12px 0 1px; }
.urlfield input:focus, .urlfield input:focus-visible { box-shadow: none; outline: none; } /* the field wrapper shows the one focus ring */
.urlfield input::placeholder { color: rgba(214,226,232,.4); }

.scan-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; max-width: 520px; }
.scan-steps li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text-3); transition: color .3s, background .3s; }
.scan-steps li[data-status="active"] { color: #fff; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.scan-steps li[data-status="done"] { color: var(--text-2); }
.si { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); position: relative; }
li[data-status="active"] .si { border-color: rgba(255,255,255,.2); border-top-color: #fff; animation: spin .9s linear infinite; }
li[data-status="done"] .si { border-color: var(--state-named); background: var(--state-named); }
li[data-status="done"] .si::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #06121a; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.sd { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.ob-q { max-width: 720px; }
.brandcard { margin-top: 32px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.brandcard label { display: grid; gap: 6px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.brandcard input { height: 40px; border-radius: 8px; border: 1px solid var(--border); background: rgba(0,0,0,.18); padding: 0 12px; font-size: 15px; color: #fff; outline: none; }
.brandcard input:focus { border-color: rgba(255,255,255,.35); }
.brandcard .hint { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--text-3); }
.ob-q [data-editor] { margin-top: 28px; }
.flow .qcard { background: rgba(255,255,255,.045); border-color: var(--border); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.flow .qbody textarea { color: #fff; }
.flow .qed-bar span { background: linear-gradient(90deg, #4fd1a5, #6cc3e0); }
.flow .qed-add { background: rgba(255,255,255,.02); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 16px clamp(16px, 4vw, 40px); background: linear-gradient(180deg, rgba(6,18,26,0), rgba(6,18,26,.86) 30%); }
.dock-in { max-width: 720px; margin-left: clamp(0px, 7vw, 120px); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 12px 12px 20px; border-radius: 16px; background: rgba(14,30,38,.78); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.dock-note { margin: 0; font-size: 13.5px; color: var(--text-2); }
.dock-note b { color: #fff; font-weight: 600; }

.flow-center .auth { max-width: 420px; margin: clamp(40px, 12vh, 140px) auto 0; padding: 0 16px; text-align: center; display: grid; gap: 12px; }
.auth h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }
.auth .sub { margin: 4px auto 18px; }
.auth form { display: grid; gap: 10px; }
.auth input { height: 48px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); padding: 0 14px; font-size: 16px; color: #fff; outline: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.auth input:focus { border-color: rgba(255,255,255,.4); }
.auth input::placeholder { color: rgba(214,226,232,.42); }
.auth .btn svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.sent { display: grid; gap: 10px; justify-items: center; }
.sent-i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(79,209,165,.12); color: #7fe3c0; box-shadow: inset 0 0 0 1px rgba(79,209,165,.3); }
.sent-i svg { width: 22px; height: 22px; }

.ob-gate { max-width: 1060px; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.chip { display: inline-flex; align-items: center; margin: 0; font-size: 13.5px; color: var(--text-2); padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.chip .live { margin-right: 8px; }
.gate-copy h1 { margin-top: 20px; }
.gate-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; color: var(--text-2); }
.gate-points li, .pc-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.gate-points svg, .pc-list svg { width: 16px; height: 16px; margin-top: 3px; color: #7fe3c0; }
.price-card { position: relative; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, rgba(16,32,40,.82), rgba(8,20,27,.86)); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 50px 120px -30px rgba(0,0,0,.8); display: grid; gap: 14px; }
.price-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(127,227,192,.8), rgba(240,169,74,.7), transparent); }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-tag { font-size: 12px; color: #7fe3c0; border: 1px solid rgba(127,227,192,.35); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pc-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.pc-price .num { font-size: 56px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.pc-price small { color: var(--text-2); font-size: 15px; }
.pc-line { margin: 0; color: var(--text-2); }
.pc-list { list-style: none; margin: 4px 0 8px; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 14.5px; }
.pc-soon { margin: -4px 0 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
.pc-fine { margin: 4px 0 0; font-size: 12px; color: var(--text-3); text-align: center; }

/* ---------- Dark dashboard (theme toggle or system) ---------- */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side { background: var(--bg); } }

/* ---------- Small screens ---------- */
@media (max-width: 1100px) { .engine-row { grid-template-columns: 1fr 1fr; } .answers { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side-top { padding: 0; margin-right: auto; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; order: 3; width: 100%; }
  .side-nav a { flex: none; }
  .side-label { display: none; }
  .side-foot { margin: 0; border: 0; padding: 0; display: flex; }
  .who-t { display: none; }
  .side-actions .ghost span { display: none; }
  .page { padding: 24px 16px 64px; }
  .kpi-row { grid-template-columns: 1fr; }
  .qg-row, .qgrid.compact .qg-row { grid-template-columns: minmax(0, 1fr) repeat(4, 30px); }
  .qg-row > * { padding: 12px 8px; }
  .qg-row > :first-child { padding-left: 12px; }
  .qg-head span:not(:first-child) { font-size: 0; }
  .qg-head span:not(:first-child)::first-letter { font-size: 12px; }
  .qg-t { display: none; }
  .rivals li { grid-template-columns: 1fr 80px 30px; }
  .site-h { flex-direction: column; }
  .page-h { flex-direction: column; align-items: flex-start; }
  .rp-in { padding: 28px 20px 24px; }
  .rp-in > .live { left: 20px; top: 38px; }
  .rp-engines { grid-template-columns: 1fr 1fr; }
  .ob-gate { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .engine-row { grid-template-columns: 1fr; }
  .urlform { flex-direction: column; }
  .brandcard { grid-template-columns: 1fr; }
  .dock-in { flex-direction: column; align-items: stretch; text-align: left; }
  .dock-in .btn { width: 100%; }
  .form.row { grid-template-columns: 1fr; }
  .ob { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- contract states ---------- */
.banner { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; color: var(--text-2); background: var(--state-partial-bg); border: 1px solid color-mix(in srgb, var(--state-partial) 30%, var(--border)); }
.live.idle { background: var(--text-3); animation: none; }
.scard.waiting .btn { justify-self: start; margin-top: 4px; }
.sc-rival { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-rival b { margin-left: 4px; }
.shell { background-image: linear-gradient(90deg, var(--bg) calc(var(--side-w) - 1px), var(--border) calc(var(--side-w) - 1px), var(--border) var(--side-w), transparent var(--side-w)); }
.content:focus, .content:focus-visible { box-shadow: none; outline: none; }
@media (max-width: 900px) { .shell { background-image: none; } }
@media (max-width: 600px) {
  .engine-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ecard { padding: 14px; }
  .ecard .strip i { width: 4px; }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-row .kpi:last-child { grid-column: 1 / -1; }
  .kpi .v { font-size: 28px; }
  .kpi .v small { display: block; margin: 2px 0 0; }
}
@media (max-width: 900px) { .side-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; } }

/* ---------- Sign in / create account: galaxy left, form right ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 55fr 45fr; background: #06121a; }
.auth-art { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; }
.aurora-bg.contained { position: absolute; inset: 0; z-index: -1; }
.aurora-bg.contained::after { background: linear-gradient(90deg, transparent 70%, rgba(6,18,26,.9)); }
.art-copy { position: absolute; left: clamp(28px, 5vw, 64px); bottom: clamp(32px, 7vh, 72px); max-width: 30rem; }
.art-h { margin: 0; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; color: #fff; text-wrap: balance; }
.art-s { margin: 14px 0 0; color: rgba(226,236,240,.74); font-size: 15.5px; line-height: 1.5; max-width: 26rem; }
.auth-panel { position: relative; display: flex; flex-direction: column; padding: 28px clamp(24px, 4vw, 64px); background: linear-gradient(180deg, #0a1820, #071219); border-left: 1px solid rgba(255,255,255,.06); color: #eef3f6;
  --text: #eef3f6; --text-2: rgba(226,236,240,.72); --text-3: rgba(214,226,232,.52); --border: rgba(255,255,255,.1); --focus-ring: 0 0 0 3px rgba(127,227,192,.3); }
.auth-top .wordmark { color: #fff; }
.auth-body { flex: 1; display: grid; align-content: center; }
.auth-form { width: 100%; max-width: 380px; margin: 0 auto; display: grid; gap: 14px; }
.auth-form h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.auth-form .sub { margin: -4px 0 12px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.auth-form form { display: grid; gap: 10px; }
.auth-form label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.auth-form input { height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); padding: 0 14px; font-size: 15.5px; color: #fff; outline: none; }
.auth-form input:focus { border-color: rgba(255,255,255,.38); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.auth-form input::placeholder { color: rgba(214,226,232,.38); }
.auth-form .btn svg { width: 18px; height: 18px; }
.auth-form .msg { margin: 0; min-height: 1.3em; }
.swap { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.swap .linkbtn { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.auth-form.sent { justify-items: start; }
.auth-form.sent .sent-i { margin-bottom: 6px; }
.legal { margin: 0 auto; max-width: 380px; font-size: 12px; color: var(--text-3); line-height: 1.5; text-align: left; width: 100%; }
.legal a { color: var(--text-2); }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { min-height: 230px; height: 230px; }
  .art-copy { left: 20px; right: 20px; bottom: 20px; }
  .art-h { font-size: 26px; }
  .art-s { display: none; }
  .aurora-bg.contained::after { background: linear-gradient(180deg, transparent 60%, rgba(6,18,26,.9)); }
  .auth-panel { border-left: 0; padding: 20px 20px 28px; }
  .auth-top { display: none; }
  .auth-body { align-content: start; padding: 8px 0 28px; }
  .auth-form h1 { font-size: 26px; }
}
.art-mark { display: none; position: absolute; left: 20px; top: 18px; }
.art-mark .wordmark { color: #fff; }
@media (max-width: 860px) { .art-mark { display: block; } }
@media (max-width: 860px) { .auth-panel { background: linear-gradient(180deg, #06121a, #071219); } .aurora-bg.contained::after { background: linear-gradient(180deg, transparent 55%, #06121a); } }

/* ---------- Can the AIs read your site? ---------- */
.aia { display: grid; gap: 16px; }
.aia-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.aia h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.aia-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); max-width: 60ch; }
.aia-rows { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.aia-rows li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 11px 14px; border-top: 1px solid var(--rule); font-size: 14px; }
.aia-rows li:first-child { border-top: 0; }
.aia-n { font-weight: 500; }
.aia-bot { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.aia-rows .pill { min-width: 104px; justify-content: center; }
.aia-train { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.aia-finding { display: grid; gap: 10px; padding: 16px 18px; border-radius: 12px; background: var(--state-partial-bg); border: 1px solid color-mix(in srgb, var(--state-partial) 35%, transparent); }
.aia-f { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--text); font-weight: 500; }
.aia-howto { margin: 0; font-size: 13.5px; color: var(--text-2); }
.codebox { position: relative; border-radius: 10px; background: color-mix(in srgb, var(--text) 92%, transparent); color: var(--bg); }
.codebox pre { margin: 0; padding: 14px 80px 14px 16px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.codebox .copy { position: absolute; top: 10px; right: 10px; height: 28px; padding: 0 12px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--bg); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.codebox .copy:hover { background: color-mix(in srgb, var(--bg) 22%, transparent); }
.aia-panel { padding: 22px; }
/* on the dark onboarding */
.ob-aia { margin-top: 28px; padding: 20px; border-radius: 16px; background: rgba(8,20,27,.72); border: 1px solid var(--border); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.flow .aia-finding { background: rgba(241,194,122,.1); border-color: rgba(241,194,122,.3); }
.flow .codebox { background: rgba(0,0,0,.45); color: #eef3f6; border: 1px solid var(--border); }
.flow .codebox .copy { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.flow .pill.ok { background: rgba(79,209,165,.13); color: #7fe3c0; }
.flow .pill.part { background: rgba(241,194,122,.12); color: #f1c27a; }
.flow .pill.miss { background: rgba(242,154,138,.12); color: #f29a8a; }
.flow .pill.err { background: rgba(255,255,255,.06); color: var(--text-3); }
/* describe step */
.describe { display: grid; gap: 10px; margin-top: 32px; max-width: 600px; }
.describe label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.describe textarea { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); padding: 14px; font-size: 16px; line-height: 1.5; color: #fff; resize: vertical; outline: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.describe textarea:focus { border-color: rgba(255,255,255,.4); }
.describe textarea::placeholder { color: rgba(214,226,232,.4); }
.describe-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.describe-actions .linkbtn { color: var(--text-2); font-size: 14.5px; }
.verify-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 600px) { .aia-rows li { grid-template-columns: 1fr auto; } .aia-bot { display: none; } .aia-head { flex-direction: column; } }
.qbody textarea:focus-visible, .describe textarea:focus-visible, .brandcard input:focus-visible, .auth-form input:focus-visible { box-shadow: none; }

/* ---------- The nudge after the free check ---------- */
.nudge { position: relative; overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); isolation: isolate; }
.nudge-edge { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 120% at 100% 0%, rgba(26,143,176,.16), transparent 70%), radial-gradient(40% 110% at 100% 100%, rgba(11,138,99,.18), transparent 70%), radial-gradient(25% 60% at 88% 110%, rgba(240,169,74,.16), transparent 70%); }
.nudge::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #1a8fb0, #0b8a63 55%, #f0a94a); }
.nudge-in { padding: 26px 28px 24px 30px; display: grid; gap: 8px; max-width: 760px; }
.nudge-k { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.nudge h2 { margin: 0; font-size: 24px; letter-spacing: -0.025em; line-height: 1.2; font-weight: 600; }
.nudge-v { margin: 4px 0 0; font-size: 16px; color: var(--text); line-height: 1.5; }
.nudge-p { margin: 0; color: var(--text-2); font-size: 15px; }
.nudge-p b { color: var(--text); font-weight: 600; }
.nudge-a { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.nudge-msg { margin: 0; font-size: 13px; color: var(--state-miss-text); min-height: 0; }
.nudge-msg:empty { display: none; }
.sc-up { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; color: var(--text-2); background: linear-gradient(90deg, rgba(11,138,99,.08), rgba(26,143,176,.06), rgba(240,169,74,.08)); border: 1px solid var(--border); }
.sc-up b { color: var(--text); font-weight: 600; }
/* ---------- Why, and what to do ---------- */
.why-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-list li { padding: 14px 16px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--rule); }
.why-list b { font-size: 14px; }
.why-list p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.why-h { margin: 18px 0 10px; font-size: 14px; font-weight: 600; }
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.moves > li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); }
.mv-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--bg-muted); }
.mv-t { margin: 1px 0 0; font-weight: 600; font-size: 15px; }
.mv-d { margin: 4px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.moves > li.locked .mv-d { filter: blur(5px); user-select: none; }
.moves > li.locked { background: linear-gradient(90deg, var(--surface), var(--bg-subtle)); }
.unlock { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-subtle); border: 1px dashed var(--border-strong); font-size: 14px; color: var(--text-2); flex-wrap: wrap; }
@media (max-width: 700px) { .why-list { grid-template-columns: 1fr; } .nudge-in { padding: 22px 20px 20px 22px; } .nudge h2 { font-size: 21px; } }
.pc-site { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(0,0,0,.2); border: 1px solid var(--rule); }
.pcs-k { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcs-k span { display: block; font-size: 12px; color: var(--text-3); }
.pcs-k b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.pcs-k small { font-size: 13px; color: var(--text-3); font-weight: 500; }
.pcs-e { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pcs-e li { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.flow .strip i { background: rgba(255,255,255,.14); }
.flow .strip i.on { background: var(--state-named); }
.flow .strip i.on.part { background: var(--state-partial); }
.why-top { display: flex; justify-content: space-between; align-items: baseline; }
.why-top .num { font-size: 13px; color: var(--text-2); }
.why-list li { display: grid; gap: 8px; align-content: start; }
.why-list li > p { margin: 0; }
.why-read { font-size: 12.5px !important; color: var(--text-3) !important; }
.mix { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--bg-muted); gap: 1px; }
.mix i { display: block; height: 100%; }
.mix-l { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px !important; color: var(--text-2) !important; }
.mix-l span { display: inline-flex; align-items: center; gap: 5px; }
.mix-l i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.m-yours { background: var(--state-named); } .m-roundups { background: #1a8fb0; } .m-appStores { background: #f0a94a; } .m-forums { background: #6b7f99; }
.m-competitors { background: var(--state-miss); } .m-wikipedia { background: #6d7671; } .m-help { background: #9aa29d; } .m-news { background: #c5cbc7; } .m-other { background: var(--border-strong); }
.mv-b { min-width: 0; display: grid; gap: 4px; }
.mv-k { margin: 0; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.moves .mv-t { margin: 0; }
.moves .mv-d { margin: 0; }
.mv-urls { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.mv-urls li { display: grid; gap: 1px; font-size: 13.5px; padding: 8px 10px; border-radius: 8px; background: var(--bg-subtle); border: 1px solid var(--rule); }
.mv-urls a { color: var(--text); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.mv-urls a:hover { text-decoration: underline; }
.mv-urls span { font-size: 12px; color: var(--text-3); }
.mv-i { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); }
.moves .codebox { margin-top: 8px; }

/* ---------- Market ---------- */
.mk { display: grid; gap: 14px; max-width: 640px; }
.mk-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-opt { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; }
.mk-opt:has(input:checked) { border-color: var(--text-3); box-shadow: inset 0 0 0 1px var(--text-3); }
.mk-opt input { margin: 3px 0 0; accent-color: var(--state-named); }
.mk-opt b { display: block; font-size: 14.5px; font-weight: 600; }
.mk-opt small { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.mk-place { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.mk-place[hidden] { display: none; }
.mk-field { display: grid; gap: 6px; position: relative; }
.mk-field label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.mk-field .opt { color: var(--text-3); font-weight: 400; }
.mk-field input { height: 40px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 0 12px; font-size: 14.5px; outline: none; }
.mk-field input:focus { border-color: var(--text-3); }
.mk-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 4px 0 0; padding: 4px; list-style: none; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-2), 0 12px 30px -10px rgba(0,0,0,.25); max-height: 280px; overflow-y: auto; }
.mk-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 14px; cursor: pointer; }
.mk-list li span { color: var(--text-3); font-size: 12px; }
.mk-list li:hover, .mk-list li[aria-selected="true"] { background: var(--bg-muted); }
.mk-list li.none { color: var(--text-3); cursor: default; }
.mk-lead { margin: -6px 0 14px; }
.mk-chip { display: inline-flex; align-items: center; vertical-align: 5px; margin-left: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--text-2); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; background: var(--surface); }
.mk-chip:hover { color: var(--text); border-color: var(--border-strong); }
.ans-loc { margin: -6px 0 0; font-size: 12.5px; color: var(--text-3); }
.ans-loc span { display: block; margin-top: 2px; font-style: italic; }
.mk-mark line { stroke: var(--state-partial); stroke-dasharray: 3 3; }
.mk-mark text { fill: var(--state-partial-text); font-size: 11px; font-weight: 600; }
.tbl-mk { display: block; font-size: 11.5px; color: var(--text-3); }
/* onboarding */
.ob-market { margin-top: 22px; display: grid; gap: 8px; }
.obm-line { margin: 0; font-size: 15px; color: var(--text-2); }
.obm-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 500; cursor: pointer; }
.obm-btn svg { width: 12px; height: 12px; }
.obm-pick { padding: 16px; border-radius: 14px; background: rgba(8,20,27,.78); border: 1px solid var(--border); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.flow .mk-field input { background: rgba(0,0,0,.2); border-color: var(--border); color: #fff; }
.flow .mk-list { background: #0c1c24; }
.flow .mk-opt { background: rgba(255,255,255,.02); }
.obm-hint { margin: 0; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 600px) { .mk-mode, .mk-place { grid-template-columns: 1fr; } }
.pc-alt { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--text-3); } .pc-alt a { color: var(--text-2); }
