/* New customer welcome (onboarding_v2). Loaded after app.css only while the switch is on, so nothing here touches the
   product when it's off. Brimstone stays for credits (the trial meter) and Publish; red is for actions. */
:root { --ob-hex: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); --ob-foot: #0F0C0F; }

/* ---------- Shared bits ---------- */
.ob-hex { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; clip-path: var(--ob-hex); background: var(--tint); color: var(--blueprint); }
.ob-hex svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ob-hex.ok { background: rgba(74, 222, 128, 0.13); color: var(--ok); }
.ob-hex.warn { background: rgba(255, 178, 36, 0.14); color: var(--pencil); }
.ob-help { display: inline-flex; align-items: center; gap: 7px; }
.ob-help svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pop-ups (onboard.js modal()): the builder's v2 look, a bottom sheet on phones ---------- */
dialog.ob-modal.hx-modal { width: min(560px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border-radius: 16px; background: var(--white); }
dialog.ob-modal[open] { display: flex; flex-direction: column; }
dialog.ob-modal::backdrop { background: rgba(5, 3, 5, 0.74); backdrop-filter: blur(4px); }
.ob-modal .ob-head { position: static; display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 12px; background: transparent; }
.ob-modal .ob-title { flex: 1; min-width: 0; padding-top: 1px; }
.ob-modal .ob-title h2 { margin: 0; font: 800 1.3rem/1.15 var(--display); letter-spacing: 0.005em; overflow-wrap: anywhere; }
.ob-modal .ob-sub { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--graphite); }
.ob-modal .hx-co-close { flex: none; width: 36px; height: 36px; margin: -4px -6px 0 0; border-color: transparent; color: var(--graphite); font-size: 1.4rem; }
.ob-modal .hx-co-close:hover, .ob-modal .hx-co-close:focus-visible { background: var(--raised); border-color: var(--rule-strong); color: var(--ink); }
.ob-modal .ob-body { flex: 1 1 auto; min-height: 0; overflow: auto; display: grid; align-content: start; gap: 16px; padding: 8px 24px 22px; }
.ob-modal .ob-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--rule); background: var(--ob-foot); }
.ob-modal .ob-foot .btn { margin: 0; }
.ob-foot-note { margin: 0 auto 0 0; font-size: 0.86rem; color: var(--graphite); }
.ob-callout { margin: 0; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--raised); font-size: 0.9rem; }

/* ---------- "Put <site> online" ---------- */
dialog.ob-up.hx-modal { width: min(720px, calc(100vw - 24px)); }
.ob-up .ob-head { padding-bottom: 16px; }
.ob-plans { list-style: none; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ob-plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px 20px 20px; border: 1px solid var(--rule); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%), var(--raised); }
.ob-plan.is-pick { border-color: rgba(255, 77, 106, 0.55); background: radial-gradient(120% 70% at 50% 0%, rgba(200, 16, 46, 0.18), transparent 70%), var(--raised); box-shadow: 0 0 0 1px rgba(255, 77, 106, 0.22), 0 26px 60px -34px rgba(200, 16, 46, 0.8); }
.ob-plan.is-off { opacity: 0.78; }
.ob-flag { position: absolute; top: -11px; left: 20px; padding: 3px 11px; border-radius: 999px; background: var(--blood); color: #fff; font: 600 0.7rem/1.5 var(--body); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 6px 18px -6px rgba(200, 16, 46, 0.8); }
.ob-plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ob-plan-id { min-width: 0; }
.ob-plan-name { margin: 0 0 4px; font: 800 1.3rem/1.1 var(--display); }
.ob-plan-blurb { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--graphite); }
.ob-price { margin: 0; display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.ob-amt { font: 800 2.1rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.ob-per { margin-top: 4px; font-size: 0.78rem; color: var(--graphite); }
.ob-inc { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: 0.9rem; flex: 1; align-content: start; }
.ob-inc li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 9px; align-items: start; line-height: 1.4; }
.ob-inc svg { width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: var(--blueprint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ob-plan-note { margin: -4px 0 0; font-size: 0.84rem; color: var(--graphite); }
.ob-choose { margin: 0; }
.ob-choose .btn, form.ob-choose .btn { width: 100%; margin: 0; }
.ob-choose .btn[disabled] { opacity: 0.5; }
.ob-choose .btn[aria-busy="true"] { cursor: progress; }
.ob-choose-err { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(255, 107, 107, 0.45); border-radius: 10px; background: rgba(255, 107, 107, 0.08); }
.ob-choose-err p { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--ink); }
form.ob-choose .ob-choose-err .btn { width: auto; margin-top: 8px; }
.ob-perks { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--rule); font-size: 0.86rem; line-height: 1.5; color: #CFC3C8; }

/* ---------- The trial meter: brimstone, because it's credits ---------- */
.credit-pill.ob-meter { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 14px; border: 1px solid rgba(255, 178, 36, 0.45); border-radius: 999px; background: rgba(255, 178, 36, 0.09); color: var(--pencil); font: 600 0.86rem/1.2 var(--body); white-space: nowrap; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.credit-pill.ob-meter:hover { background: rgba(255, 178, 36, 0.16); border-color: rgba(255, 178, 36, 0.7); }
.ob-meter .ob-m-k { font-weight: 700; }
.ob-meter .ob-m-p, .ob-meter .ob-m-dot { color: rgba(255, 178, 36, 0.78); font-weight: 500; }
.ob-trial .ob-left { padding: 16px 18px; border: 1px solid rgba(255, 178, 36, 0.35); border-radius: 14px; background: rgba(255, 178, 36, 0.06); }
.ob-left-n { margin: 0 0 12px; color: var(--ink); }
.ob-left-n strong { font: 700 2.2rem/1 var(--body); letter-spacing: -0.02em; color: var(--pencil); margin-right: 4px; }
.ob-left-n span { color: var(--ink); }
.ob-bar { height: 8px; border-radius: 999px; background: rgba(255, 178, 36, 0.14); overflow: hidden; }
.ob-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pencil-deep), #FFC34D); }
.ob-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ob-facts li { display: flex; gap: 14px; align-items: flex-start; }
.ob-facts .ob-hex { width: 36px; height: 36px; }
.ob-facts div > strong { display: block; font-weight: 600; margin: 1px 0 2px; }
.ob-facts div > span { display: block; font-size: 0.88rem; line-height: 1.5; color: var(--graphite); }

/* ---------- "<site> is ready" ---------- */
.ob-ready { margin-top: 12px; padding: 16px; border: 1px solid rgba(74, 222, 128, 0.32); border-radius: 14px; background: radial-gradient(120% 90% at 0% 0%, rgba(74, 222, 128, 0.10), transparent 60%), var(--raised); box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.9); }
.ob-ready-top { display: flex; gap: 12px; align-items: flex-start; }
.ob-ready-t { min-width: 0; }
.ob-ready h3 { margin: 2px 0 4px; font: 800 1.15rem/1.2 var(--display); overflow-wrap: anywhere; }
.ob-ready p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #CFC3C8; }
.ob-ready-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ob-ready-acts .btn { margin: 0; }
.ob-gate { font-size: 0.88rem; line-height: 1.5; }
.ob-gate p { margin: 0; color: #CFC3C8; }
.ob-gate strong { color: var(--ink); font-weight: 600; }
.ob-gate-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.ob-gate-row .btn { margin: 0; min-height: 32px; padding: 4px 12px; font-size: 0.84rem; }
.ob-gate-st { font-size: 0.82rem; color: var(--graphite); }
.ob-gate-card { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.ob-gate-bar { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; padding: 12px 14px; border: 1px solid rgba(255, 77, 106, 0.35); border-radius: 12px; background: rgba(200, 16, 46, 0.07); }
.ob-gate-bar .ob-hex { width: 32px; height: 32px; }
.ob-gate-bar .ob-hex svg { width: 15px; height: 15px; }
.ob-gate-t { min-width: 0; }
.ob-note-link { font-size: inherit; }

/* ---------- Go live checklist on the trial ---------- */
.launch-step.ob-locked .launch-text strong { color: var(--graphite); }
.launch-step.ob-locked .launch-mark { display: inline-grid; place-items: center; border-style: dashed; color: var(--graphite); }
.launch-step.ob-locked .launch-mark svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Dashboard ---------- */
.ob-notice { display: flex; align-items: flex-start; gap: 14px; max-width: 760px; margin: 0 auto 12px; padding: 14px 16px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--white); }
.ob-notice .ob-hex { width: 34px; height: 34px; }
.ob-notice .ob-hex svg { width: 16px; height: 16px; }
.ob-notice p { margin: 4px 0 0; line-height: 1.5; }
.ob-notice strong { font-weight: 600; }
.ob-notice .link { white-space: nowrap; }
.ob-strip { display: none; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; max-width: 760px; margin: 0 auto 12px; padding: 9px 14px; border: 1px solid rgba(255, 178, 36, 0.45); border-radius: 999px; background: rgba(255, 178, 36, 0.08); color: var(--pencil); font: 600 0.9rem/1.3 var(--body); text-decoration: none; }
.ob-strip:hover { color: var(--pencil); background: rgba(255, 178, 36, 0.14); }
.ob-strip .ob-m-p, .ob-strip .ob-m-dot { color: rgba(255, 178, 36, 0.78); font-weight: 500; }
.ob-continue { display: inline-flex; align-items: center; gap: 10px; max-width: min(100%, 520px); margin: 0 0 22px; padding: 8px 10px 8px 16px; border: 1px solid var(--rule-strong); border-radius: 999px; background: rgba(19, 16, 19, 0.85); color: var(--ink); text-decoration: none; font-size: 0.92rem; box-shadow: 0 14px 40px -24px rgba(0, 0, 0, 0.9); backdrop-filter: blur(6px); transition: border-color 0.15s; }
.ob-continue:hover { color: var(--ink); border-color: var(--blueprint); }
.ob-continue-k { color: var(--graphite); flex: none; }
.ob-continue-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ob-continue svg { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--blood); fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ob-ideas .ob-help { border-color: rgba(255, 77, 106, 0.5); color: var(--ink); background: rgba(200, 16, 46, 0.14); }
.ob-ideas .ob-help svg { color: var(--blueprint); }
@media (max-width: 800px) {
  .ob-strip { display: flex; }
  .hero-build.ob-hero { min-height: 0; justify-content: flex-start; padding: 28px 0 36px; }
  .ob-continue { margin-bottom: 18px; }
}

/* ---------- Starting-prompt picker ---------- */
dialog.ob-pick.hx-modal { width: min(620px, calc(100vw - 24px)); }
.ob-step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 0.98rem/1.3 var(--body); letter-spacing: 0; }
.ob-step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; clip-path: var(--ob-hex); background: var(--rule-strong); color: var(--ink); font: 700 0.75rem/1 var(--body); }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip { min-height: 36px; padding: 6px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--raised); color: var(--ink); font: 500 0.88rem/1.2 var(--body); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ob-chip:hover { border-color: var(--blueprint); }
.ob-chip[aria-pressed="true"] { border-color: var(--blood); background: var(--blood); color: #fff; }
.ob-town { max-width: 320px; border-radius: 10px; }
.ob-compose-k { margin: 4px 0 -8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.ob-compose { margin: 0; padding: 14px 16px; border: 1px solid rgba(255, 77, 106, 0.4); border-radius: 12px; background: rgba(200, 16, 46, 0.06); font-size: 0.95rem; line-height: 1.55; overflow-wrap: anywhere; }
.ob-compose.is-empty { border-style: dashed; border-color: var(--rule-strong); background: transparent; color: var(--graphite); }

/* ---------- Home page: the prompt box in the hero, no brimstone in the headline ---------- */
.ob-home { margin: 26px 0 12px; max-width: 600px; }
.ob-home .ob-home-k { margin: 0 0 10px; font: 600 0.95rem/1.3 var(--body); color: var(--ink); }
.ob-home-box { padding: 14px 14px 12px 18px; border: 1px solid var(--rule-strong); border-radius: 20px; background: rgba(19, 16, 19, 0.92); box-shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; transition: border-color 0.15s; }
.ob-home-box:focus-within { border-color: var(--blueprint); }
.ob-home-box textarea { width: 100%; min-height: 4.6em; padding: 0; border: 0; background: transparent; color: var(--ink); font: 400 1.02rem/1.5 var(--body); resize: none; box-shadow: none; }
.ob-home-box textarea:focus { outline: none; box-shadow: none; }
.ob-home-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ob-home-row .ob-help { min-height: 38px; padding: 6px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--raised); color: var(--ink); font: 500 0.88rem/1.2 var(--body); cursor: pointer; }
.ob-home-row .ob-help:hover { border-color: var(--blueprint); }
.ob-home-row .ob-help svg { color: var(--blueprint); }
.ob-home .ob-go { margin: 0; gap: 8px; }
.ob-home .ob-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ob-home-fine a { white-space: nowrap; }
@media (max-width: 520px) {
  .ob-home-row { flex-direction: column-reverse; align-items: stretch; }
  .ob-home .ob-go, .ob-home-row .ob-help { width: 100%; justify-content: center; }
}

/* ---------- Sign-up ---------- */
.ob-signup-lede { margin: -4px 0 16px; color: var(--pencil); font-weight: 600; }
.ob-idea { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 6px; padding: 14px; border: 1px solid rgba(74, 222, 128, 0.3); border-radius: 12px; background: rgba(74, 222, 128, 0.06); }
.ob-idea .ob-hex { width: 32px; height: 32px; }
.ob-idea .ob-hex svg { width: 15px; height: 15px; }
.ob-idea > div { min-width: 0; }
.ob-idea p { margin: 0; }
.ob-idea-k { font-weight: 600; }
.ob-idea-t { margin: 4px 0 !important; color: #CFC3C8; font-size: 0.92rem; line-height: 1.5; overflow-wrap: anywhere; }
.ob-idea-s { font-size: 0.84rem; color: var(--graphite); }
label.check.ob-terms { align-items: flex-start; gap: 10px; line-height: 1.45; }
label.check.ob-terms input { flex: none; margin-top: 1px; }
label.check.ob-terms span { display: block; min-width: 0; }
@media (max-width: 520px) {
  .sheet.narrow.ob-signup { margin: 20px 16px 32px; }
}

/* ---------- Billing on the trial ---------- */
.ob-bill-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ob-bill-title h1 { min-width: 0; overflow-wrap: anywhere; }
.ob-bill-title .bar-help { flex: none; margin: 6px 0 0; }
@media (max-width: 520px) { .ob-bill-title h1 { font-size: 1.9rem; line-height: 1.12; } }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .credit-pill.ob-meter { flex-wrap: wrap; justify-content: center; gap: 0 5px; min-height: 0; padding: 4px 12px; line-height: 1.2; }
  .credit-pill.ob-meter .ob-m-n { order: -1; flex-basis: 100%; text-align: center; font-size: 0.82rem; }
  .credit-pill.ob-meter .ob-m-d1 { display: none; }
  .credit-pill.ob-meter .ob-m-k, .credit-pill.ob-meter .ob-m-p, .credit-pill.ob-meter .ob-m-dot { font-size: 0.72rem; }
}
@media (max-width: 600px) {
  dialog.ob-modal.hx-modal, dialog.ob-up.hx-modal, dialog.ob-pick.hx-modal { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .ob-modal .ob-head { padding: 18px 16px 10px; }
  .ob-modal .ob-head > .ob-hex { width: 34px; height: 34px; }
  .ob-modal .ob-title h2 { font-size: 1.15rem; }
  .ob-modal .ob-body { padding: 6px 16px 18px; }
  .ob-modal .ob-foot { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .ob-modal .ob-foot .btn-primary { flex: 1; }
  .ob-plans { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ob-plan { padding: 20px 16px 16px; }
  .ob-foot-note { flex-basis: 100%; }
  .ob-up .ob-foot .btn { flex: 1; }
  .ob-town { max-width: none; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .credit-pill.ob-meter, .ob-chip, .ob-continue, .ob-home-box { transition: none; } }
