/**
 * FILE: backend/public/static/css/onboarding.css
 * PURPOSE: Styles for the progressive onboarding funnel (onboarding.ejs,
 *          onboarding-brief.ejs)
 * DESCRIPTION: Inherits the DevOpser dark marketing identity from
 *              landing-agents.css (#000 ground, #282828 panels, brand pink
 *              #ED166C). System font stacks only — font-src is 'self', so
 *              personality comes from treatment rather than typeface: a
 *              monospace utility voice for the rail and step labels against
 *              large, tightly tracked questions.
 *
 *              Signature element: .ob-rail, the standing order assembling
 *              itself. It is also the progress indicator, which is why no
 *              progress bar exists. Its states are class-toggled (is-done /
 *              is-current / is-skipped / is-pending) rather than width-styled,
 *              so nothing inline is ever needed under strict CSP.
 *
 *              Inputs are ruled rather than boxed. Boxy field chrome is what
 *              makes onboarding feel like tax software; this should feel like
 *              writing a brief.
 */

/* ------------------------------------------------------------------ */
/* Tokens (mirrors landing-agents.css)                                 */
/* ------------------------------------------------------------------ */

:root {
  --ob-ink: #000;
  --ob-section: #1e1e1e;
  --ob-panel: #282828;
  --ob-panel-2: #333;
  --ob-line: #444;
  --ob-snow: #fff;
  --ob-slate: #ccc;
  --ob-muted: #9e9e9e;
  --ob-iris: #ED166C;
  --ob-violet: #c41058;
  --ob-signal: #10b981;
  --ob-danger: #ff6b6b;
  --ob-grad: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
  --ob-grad-hover: linear-gradient(135deg, #c41058 0%, #a00d48 100%);
  --ob-focus-ring: 0 0 0 2px #F65A97;
  --ob-radius: 12px;
  --ob-radius-sm: 8px;
  --ob-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --ob-font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Segoe UI Mono',
    Menlo, Consolas, monospace;
  --ob-maxw: 1080px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ob-body {
  font-family: var(--ob-font-body);
  background: var(--ob-ink);
  color: var(--ob-snow);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* A single quiet wash toward the section grey, so the stage sits in light
     and the rail falls away into the page. */
  background-image: radial-gradient(120% 80% at 20% 0%, #1e1e1e 0%, #000 60%);
  background-repeat: no-repeat;
}

.ob-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ob-skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--ob-iris);
  color: #fff;
  z-index: 100;
  border-radius: 0 0 var(--ob-radius-sm) 0;
}

.ob-skiplink:focus {
  left: 0;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.ob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--ob-maxw);
  margin: 0 auto;
  padding: 24px 24px 8px;
}

.ob-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ob-snow);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.ob-brand-accent {
  color: var(--ob-iris);
}

.ob-count {
  font-family: var(--ob-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ob-muted);
}

.ob-count-now {
  color: var(--ob-snow);
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.ob-main {
  max-width: var(--ob-maxw);
  margin: 0 auto;
  padding: 16px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .ob-main {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 64px;
    padding-top: 40px;
  }
}

.ob-resumed {
  grid-column: 1 / -1;
  font-family: var(--ob-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ob-muted);
  border-left: 2px solid var(--ob-line);
  padding-left: 12px;
}

/* ------------------------------------------------------------------ */
/* The question                                                        */
/* ------------------------------------------------------------------ */

.ob-stage {
  min-width: 0;
}

.ob-question {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.ob-help {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--ob-slate);
  max-width: 48ch;
}

.ob-fields {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ob-label {
  display: block;
  font-family: var(--ob-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ob-muted);
  margin-bottom: 8px;
}

/* Ruled, not boxed. The rule is the only chrome. */
.ob-input {
  width: 100%;
  display: block;
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ob-snow);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ob-line);
  border-radius: 0;
  padding: 10px 2px;
  transition: border-color 0.15s ease;
}

.ob-input::placeholder {
  color: #666;
}

.ob-input:hover {
  border-bottom-color: #666;
}

.ob-input:focus {
  outline: none;
  border-bottom-color: var(--ob-iris);
  box-shadow: 0 1px 0 0 var(--ob-iris);
}

/* Keyboard users must still get a ring, not just a coloured rule. */
.ob-input:focus-visible {
  box-shadow: 0 1px 0 0 var(--ob-iris), var(--ob-focus-ring);
}

.ob-input[aria-invalid="true"] {
  border-bottom-color: var(--ob-danger);
}

.ob-input-area {
  resize: vertical;
  min-height: 3.5em;
}

.ob-input-list {
  font-family: var(--ob-font-mono);
  font-size: 0.9375rem;
}

.ob-hint {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--ob-muted);
}

.ob-error {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ob-danger);
}

.ob-error-form {
  margin-top: 20px;
  margin-bottom: -8px;
}

/* Choice chips ---------------------------------------------------- */

.ob-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 620px) {
  .ob-choices {
    grid-template-columns: 1fr 1fr;
  }
}

.ob-choice {
  display: block;
  cursor: pointer;
}

.ob-choice-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ob-choice-face {
  display: block;
  padding: 14px 16px;
  background: var(--ob-panel);
  border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius-sm);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ob-choice:hover .ob-choice-face {
  background: var(--ob-panel-2);
}

.ob-choice-input:checked + .ob-choice-face {
  border-color: var(--ob-iris);
  background: var(--ob-panel-2);
}

.ob-choice-input:focus-visible + .ob-choice-face {
  box-shadow: var(--ob-focus-ring);
}

.ob-choice-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.ob-choice-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--ob-muted);
  line-height: 1.45;
}

/* Actions --------------------------------------------------------- */

.ob-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ob-actions-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.ob-back,
.ob-skip {
  font-family: var(--ob-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ob-muted);
  background: none;
  border: 0;
  padding: 8px 2px;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ob-back:hover,
.ob-skip:hover {
  color: var(--ob-slate);
  border-bottom-color: var(--ob-line);
}

.ob-back:focus-visible,
.ob-skip:focus-visible {
  outline: none;
  color: var(--ob-snow);
  box-shadow: var(--ob-focus-ring);
  border-radius: 4px;
}

.ob-back-spacer {
  display: block;
}

.ob-next {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--ob-grad);
  border: 0;
  border-radius: var(--ob-radius-sm);
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ob-next:hover {
  background: var(--ob-grad-hover);
}

.ob-next:focus-visible {
  outline: none;
  box-shadow: var(--ob-focus-ring);
}

.ob-next:active {
  transform: translateY(1px);
}

.ob-next[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ------------------------------------------------------------------ */
/* Signature: the standing order rail                                  */
/* ------------------------------------------------------------------ */

.ob-rail {
  min-width: 0;
  border-top: 1px solid var(--ob-line);
  padding-top: 24px;
}

@media (min-width: 900px) {
  .ob-rail {
    position: sticky;
    top: 40px;
    border-top: 0;
    border-left: 1px solid var(--ob-line);
    padding-top: 4px;
    padding-left: 32px;
  }
}

.ob-rail-title {
  font-family: var(--ob-font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ob-slate);
}

.ob-rail-sub {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--ob-muted);
}

.ob-rail-list {
  margin-top: 22px;
  list-style: none;
  display: flex;
  flex-direction: column;
}

/* Each line is a step of the brief. The connecting stem is drawn on the
   mark, not as a separate element, so the list stays a plain <ol>. */
.ob-line {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
}

.ob-line:last-child {
  padding-bottom: 0;
}

.ob-line-mark {
  position: relative;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  border: 1px solid var(--ob-line);
  background: var(--ob-ink);
  justify-self: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ob-line:not(:last-child) .ob-line-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 1px;
  height: calc(100% + 18px);
  background: var(--ob-line);
  transform: translateX(-50%);
}

.ob-line-label {
  font-size: 0.875rem;
  color: var(--ob-muted);
  line-height: 1.45;
  transition: color 0.2s ease;
}

.ob-line-value {
  margin-top: 4px;
}

.ob-line-text {
  font-size: 0.875rem;
  color: var(--ob-slate);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ob-line-empty {
  color: #666;
  font-style: italic;
}

/* States. Class-toggled, never width- or style-attribute driven. */

.ob-line.is-done .ob-line-mark {
  background: var(--ob-signal);
  border-color: var(--ob-signal);
}

.ob-line.is-done .ob-line-label {
  color: var(--ob-muted);
}

.ob-line.is-current .ob-line-mark {
  background: var(--ob-iris);
  border-color: var(--ob-iris);
  box-shadow: 0 0 0 4px rgba(237, 22, 108, 0.18);
}

.ob-line.is-current .ob-line-label {
  color: var(--ob-snow);
  font-weight: 600;
}

.ob-line.is-skipped .ob-line-mark {
  background: var(--ob-panel-2);
  border-color: #555;
}

.ob-rail-foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--ob-line);
  font-size: 0.8125rem;
  color: var(--ob-muted);
}

/* ------------------------------------------------------------------ */
/* Notice                                                              */
/* ------------------------------------------------------------------ */

.ob-notice {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--ob-panel);
  border: 1px solid var(--ob-danger);
  border-radius: var(--ob-radius-sm);
  color: var(--ob-snow);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

/* The stage crossfades between questions. Applied by the client only after it
   takes over the form, so a no-JS page never sits mid-animation. */
.ob-stage.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.ob-stage.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.ob-js .ob-stage {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ob-js .ob-stage,
  .ob-line-mark,
  .ob-input,
  .ob-next,
  .ob-choice-face {
    transition: none;
  }

  .ob-stage.is-leaving,
  .ob-stage.is-entering {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* The brief (onboarding-brief.ejs)                                    */
/* ------------------------------------------------------------------ */

.ob-main-brief {
  grid-template-columns: 1fr;
  max-width: 760px;
}

@media (min-width: 900px) {
  .ob-main-brief {
    grid-template-columns: 1fr;
  }
}

.ob-brief-list {
  margin-top: 40px;
  list-style: none;
  border-top: 1px solid var(--ob-line);
}

/* The brief reads as a document, so entries are ruled rows rather than cards.
   Cards would make seven answers look like seven products. */
.ob-brief-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ob-line);
  align-items: start;
}

.ob-brief-q {
  grid-column: 1;
  font-family: var(--ob-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ob-muted);
}

.ob-brief-a {
  grid-column: 1;
}

.ob-brief-label {
  font-size: 0.75rem;
  color: #666;
  margin-top: 10px;
}

.ob-brief-label:first-child {
  margin-top: 0;
}

.ob-brief-items {
  list-style: none;
  margin-top: 4px;
}

.ob-brief-item {
  font-size: 1.0625rem;
  color: var(--ob-snow);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ob-brief-item + .ob-brief-item {
  margin-top: 4px;
}

.ob-brief-edit {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--ob-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ob-muted);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius-sm);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ob-brief-edit:hover {
  color: var(--ob-snow);
  border-color: #666;
}

.ob-brief-edit:focus-visible {
  outline: none;
  color: var(--ob-snow);
  box-shadow: var(--ob-focus-ring);
}

.ob-brief-foot {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--ob-muted);
}

.ob-brief-link {
  color: var(--ob-iris);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ob-brief-link:hover {
  border-bottom-color: var(--ob-iris);
}

.ob-brief-link:focus-visible {
  outline: none;
  box-shadow: var(--ob-focus-ring);
  border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/* Conversion (brief page)                                             */
/* ------------------------------------------------------------------ */

.ob-notice-bar {
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--ob-panel);
  border: 1px solid var(--ob-line);
  border-left: 3px solid var(--ob-iris);
  border-radius: var(--ob-radius-sm);
  font-size: 0.875rem;
  color: var(--ob-slate);
}

.ob-convert {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--ob-line);
}

.ob-convert-title {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.ob-gate {
  margin-top: 28px;
}

.ob-gate-hint {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ob-muted);
}

/* Launch my team free: the one door on the brief for a new visitor. */
.ob-launch-free {
  margin-top: 28px;
}

.ob-launch-note {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ob-slate);
}

.ob-launch-signin {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--ob-muted);
}

.ob-plans {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .ob-plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ob-plans.is-locked {
  opacity: 0.45;
  pointer-events: none;
}

.ob-plan {
  background: var(--ob-panel);
  border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-plan.is-featured {
  border-color: var(--ob-iris);
}

.ob-plan-name {
  font-family: var(--ob-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ob-slate);
}

.ob-plan-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ob-plan-per {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ob-muted);
}

.ob-plan-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ob-plan-fact {
  font-size: 0.875rem;
  color: var(--ob-slate);
}

.ob-plan-buy {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--ob-panel-2);
  border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius-sm);
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ob-plan.is-featured .ob-plan-buy {
  background: var(--ob-grad);
  border: 0;
}

.ob-plan-buy:hover:not([disabled]) {
  background: var(--ob-panel-hover, #3d3d3d);
}

.ob-plan.is-featured .ob-plan-buy:hover:not([disabled]) {
  background: var(--ob-grad-hover);
}

.ob-plan-buy:focus-visible {
  outline: none;
  box-shadow: var(--ob-focus-ring);
}

.ob-plan-buy[disabled] {
  opacity: 0.55;
  cursor: default;
}

.ob-plans-error {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--ob-danger);
}

.ob-unavailable {
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--ob-muted);
}

.ob-devbypass {
  margin-top: 20px;
}

/* ------------------------------------------------------------------ */
/* The launch panel (inline magic-link auth on the brief page)         */
/* ------------------------------------------------------------------ */

/* In-flow, ruled rather than boxed: a panel that lives inside the page
   cannot cover it, which is the whole point after the modal-trap era. */
.ob-launch {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ob-line);
  max-width: 400px;
}

/* Belt-and-braces: [hidden] must always win over any display we set. */
.ob-launch[hidden] {
  display: none;
}

.ob-launch-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ob-launch-sub {
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--ob-slate);
}

.ob-launch-cta {
  margin-top: 18px;
  width: 100%;
}

.ob-launch-back {
  margin-top: 12px;
}

/* ------------------------------------------------------------------ */
/* The dark deck: the command center with the lights off               */
/* ------------------------------------------------------------------ */

.ob-deck {
  margin-top: 56px;
}

.ob-deck-eyebrow {
  font-family: var(--ob-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ob-muted);
}

.ob-deck-ring {
  list-style: none;
  margin-top: 20px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.ob-deck-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 120px;
}

.ob-deck-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--ob-line);
  background: var(--ob-panel);
  color: var(--ob-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ob-font-mono);
  font-size: 1.25rem;
}

/* The flagship carries the only ember on the deck. */
.ob-deck-circle.is-flagship {
  border-color: rgba(237, 22, 108, 0.45);
  color: var(--ob-slate);
}

.ob-deck-label {
  font-family: var(--ob-font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ob-slate);
  text-align: center;
  line-height: 1.45;
}

.ob-input-code {
  font-family: var(--ob-font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Welcome                                                             */
/* ------------------------------------------------------------------ */

.ob-eyebrow-line {
  font-family: var(--ob-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ob-signal);
  margin-bottom: 16px;
}

.ob-welcome-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ob-welcome-cta {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.ob-welcome-alt {
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------------ */
/* The pricing page (/start/plans): one decision, yearly first         */
/* ------------------------------------------------------------------ */

.ob-main-plans {
  grid-template-columns: 1fr;
  max-width: 880px;
}

@media (min-width: 900px) {
  .ob-main-plans {
    grid-template-columns: 1fr;
  }
}

.ob-convert-solo {
  margin-top: 16px;
}

.ob-billing-toggle {
  margin-top: 28px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--ob-panel);
  border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius-sm);
}

.ob-toggle-opt {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ob-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ob-toggle-opt.is-active {
  background: var(--ob-panel-2);
  color: #fff;
}

.ob-toggle-opt:focus-visible {
  outline: none;
  box-shadow: var(--ob-focus-ring);
}

.ob-toggle-badge {
  font-family: var(--ob-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ob-signal);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
}

/* The toggle decides which price a card shows. */
.ob-plans[data-interval="year"] .ob-price-month {
  display: none;
}

.ob-plans[data-interval="month"] .ob-price-year {
  display: none;
}

.ob-plan-equiv {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ob-muted);
  margin-top: 4px;
}

/* The brief page's signed-in handoff to /start/plans. */
.ob-plans-cta {
  margin-top: 32px;
}

.ob-next-link {
  display: inline-block;
  text-decoration: none;
}

/* Windows high contrast drops box-shadow focus rings; give it an outline. */
@media (forced-colors: active) {
  :focus-visible {
    outline: 2px solid CanvasText !important;
    outline-offset: 2px;
  }
}
