/* Seller setup (onboarding). Same design language as the stage: warm grey
   page, white cards, grey stat tiles, small uppercase eyebrows, a black pill
   toggle, the ink-outlined Ad tag. Colors, type and radii come from
   theme.css; ink is for text, the current step and the one primary action. */

/* frame: header, two columns, bottom bar */
.wrap { min-height: 100vh; padding: 18px 24px 0; display: flex; flex-direction: column; gap: 14px; }
.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; }
.brand { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.wordmark { margin: 0; font-weight: 800; font-size: 28px; letter-spacing: -0.035em; line-height: 1; display: flex; align-items: center; gap: 8px; }
.wordmark .wm-ad { font-style: normal; color: var(--accent); }
.wordmark .mark { width: 26px; height: 26px; border-radius: 9px; background: var(--accent); position: relative; flex: 0 0 auto; box-shadow: 0 4px 12px var(--accent-glow); }
.wordmark .mark::before { content: ""; position: absolute; left: 6px; top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--on-accent); box-sizing: border-box; }
.wordmark .mark::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--on-accent); }
.tagline { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 34px; }
.hook { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; padding-left: 26px; border-left: 1.5px solid var(--border-strong); }
.hook em { font-style: normal; color: var(--muted); }

/* steps: the stage's pill toggle */
.seg { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.seg span { font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 12px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg span.done { color: var(--text-2); }
.seg span.done::before { content: '✓'; font-size: 11px; }
.seg span.on { background: var(--text); color: var(--on-accent); }

.ob { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; align-items: start; padding-bottom: 86px; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.row1 { display: flex; align-items: center; justify-content: space-between; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; background: var(--text); color: var(--on-accent); }

/* the onboarding agent's question */
.agent-q { padding: 14px 18px; }
.agent-q p { margin: 6px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }

/* the banner it replaces */
.banner-strip { display: flex; align-items: center; gap: 18px; padding: 12px 16px; }
.banner-strip[hidden] { display: none; }
.banner-strip figure { position: relative; margin: 0; flex-shrink: 0; line-height: 0; }
.banner-strip img { display: block; border-radius: 10px; filter: grayscale(1); opacity: .45; }
.banner-strip figcaption { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); white-space: nowrap; line-height: 1.2; font-size: 12px; font-weight: 800; color: var(--loss); background: var(--surface); border-radius: 8px; padding: 4px 9px; box-shadow: inset 0 0 0 1.5px var(--loss-ring), var(--shadow); }
.banner-strip p { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.banner-strip .eyebrow { margin-bottom: 3px; }
.banner-strip small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* answer area */
.step { display: flex; flex-direction: column; gap: 10px; }
.step > .card, .step .panel { padding: 14px 18px; }
.step label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.step input, .step select { font-size: 16px; font-weight: 700; padding: 10px 12px; width: 100%; min-width: 0; background: var(--surface); text-transform: none; letter-spacing: 0; }
.step input:focus, .step select:focus { outline: 2px solid var(--accent-glow); outline-offset: 0; border-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.money, .unit { position: relative; display: block; }
.money input { padding-left: 24px; }
.money::before { content: '£'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; font-weight: 700; pointer-events: none; }
.unit em { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; font-size: 13px; font-weight: 700; pointer-events: none; }
.step label .lock { align-self: flex-start; text-transform: none; letter-spacing: 0; font-weight: 600; }
.hint { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }

/* 2: selling speed */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { cursor: pointer; padding: 14px 16px; gap: 6px !important; text-transform: none !important; letter-spacing: 0 !important; }
.choice input { display: none; }
.choice b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.choice small { font-size: 13.5px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.choice.on { box-shadow: inset 0 0 0 2px var(--text), var(--shadow); }

/* 3: floor */
.auto { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auto .big { display: block; margin-top: 2px; font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.auto p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; font-weight: 600; }
.auto button, .manual button { flex-shrink: 0; }
.manual { display: flex; align-items: flex-end; gap: 12px; }
.floor { max-width: 220px; }
.mbar { padding: 34px 18px 12px; }
.track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); }
.track .zone { position: absolute; top: 0; bottom: 0; background: var(--border-strong); border-radius: 5px; }
.mk { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--muted); }
.mk em { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; font-style: normal; white-space: nowrap; color: var(--text-2); }
.mk.floor { background: var(--text); } .mk.floor em { color: var(--text); bottom: auto; top: 22px; }
.mk.cost { background: var(--loss); } .mk.cost em { color: var(--loss); }
.mk.list em { transform: translateX(-90%); }
.mnote { margin-top: 28px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.mnote b.pos { color: var(--text); } .mnote b.neg { color: var(--loss); }
.below { display: none; background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn-ring); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; }
.below.show { display: block; }
.below b { color: var(--warn); }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { cursor: pointer; flex-direction: row !important; border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px; font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text) !important; background: var(--surface); }
.pill input { display: none; }
.pill.on { background: var(--text); border-color: var(--text); color: var(--on-accent) !important; }

/* ROAS per won deal: stat tiles, like the stage's win card */
.roas { padding: 14px 18px; }
.roas[data-state="loading"] { color: var(--muted); font-size: 13px; font-weight: 600; }
.roas .tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.roas small { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stat { background: var(--surface-2); border-radius: 10px; padding: 8px 10px 7px; }
.stat .n { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat .n small { display: inline; margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.stat .l { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-top: 3px; }
.stat.good { background: var(--deal-soft); } .stat.good .n { color: var(--deal); }

/* 4: offers */
.autopilot { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.reach-total { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.reach-total b { color: var(--text); font-weight: 800; }
.reach-total small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.picks { display: flex; flex-direction: column; gap: 8px; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.pick b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.pick p { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--text-2); line-height: 1.4; }
.pick p small { color: var(--muted); }
.pick .rec-tag { font-weight: 800; color: var(--text); }
.pick .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.pick .cost { font-size: 17px; font-weight: 800; }
.pick.none { color: var(--muted); box-shadow: none; border-style: dashed; }
.reach { display: inline-flex; align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.reach.up { background: var(--deal-soft); color: var(--deal); }
.pick .reach { align-self: flex-end; }
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.offer { padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.offer.on { box-shadow: inset 0 0 0 2px var(--text), var(--shadow); }
.offer small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tgl { cursor: pointer; flex-direction: row !important; align-items: center; gap: 8px !important; text-transform: none !important; letter-spacing: 0 !important; }
.tgl input { display: none; }
.tgl .box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border-strong); background: var(--surface); flex-shrink: 0; display: grid; place-items: center; }
.offer.on .tgl .box { background: var(--text); border-color: var(--text); }
.offer.on .tgl .box::after { content: '✓'; color: var(--on-accent); font-weight: 800; font-size: 12px; }
.tgl b { color: var(--text); font-size: 15px; }
.terms { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.offer:not(.on) .terms { opacity: .5; }
.terms input { font-size: 14px !important; padding: 5px 7px !important; width: 66px !important; }
.terms input.n { width: 48px !important; }
.terms input.item { width: 100% !important; }
.terms .money.sm { display: inline-block; }
.terms .money.sm input { padding-left: 19px !important; }
.terms .money.sm::before { left: 7px; font-size: 13px; }
.step > button, .linkish { align-self: flex-start; }

/* 5: your ads */
.yours { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ad { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--text); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.ad b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.ad .cost { font-size: 13px; font-weight: 700; color: var(--text-2); }
.ad.none { box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--muted); grid-column: 1 / -1; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.next-steps div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.next-steps b { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; margin-right: 6px; background: var(--text); color: var(--on-accent); font-size: 11px; }
.fixes:empty { display: none; }
.fixes { font-size: 13px; font-weight: 700; color: var(--warn); }

/* the live seller-agent card (right column) */
.agentcard { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pid { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.pneed { font-size: 14px; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.stats { display: grid; gap: 6px; }
.stats.three { grid-template-columns: 1fr 1fr 1fr; }
.stats.two { grid-template-columns: 1fr 1fr; }
.sum-ads { display: flex; flex-direction: column; gap: 6px; }
.sum-ad { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; font-weight: 700; }
.sum-ad.none { color: var(--muted); font-weight: 600; }
.sum-foot { font-size: 12px; font-weight: 600; color: var(--muted); }
.divider { height: 1px; background: var(--border); margin: 2px 0; }

/* bottom bar */
.ob-nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(6px); z-index: 5; }
.ob-nav button { padding: 11px 18px; font-size: 14px; font-weight: 800; border-radius: 999px; }
.ob-nav #skip { white-space: nowrap; background: var(--surface); }
.ob-nav #next { margin-left: auto; min-width: 140px; }

@media (max-width: 900px) {
  .wrap { padding: 12px 14px 0; }
  .topbar { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hook { padding-left: 0; border-left: 0; font-size: 16px; }
  .seg { overflow-x: auto; }
  .ob { grid-template-columns: minmax(0, 1fr); }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .choices, .offers, .ads, .next-steps, .roas .tiles { grid-template-columns: 1fr; }
  .banner-strip { flex-direction: column; align-items: stretch; }
  .banner-strip img { width: 100%; max-width: 320px; height: auto; }
  .banner-strip figure { align-self: center; }
  .ob-nav { padding: 10px 14px; }
  .ob-nav button { padding: 10px 12px; font-size: 13px; }
  .ob-nav #next { min-width: 0; }
}
.reachcard { display: flex; flex-direction: column; gap: 8px; }
