/**
 * KSE onboarding — hyper-modern light theme.
 * Uses KSE design tokens from kse.css only.
 */

/* ─── Page shell ─── */
html:has(body.kse-onboarding-page) {
  background: var(--kse-light-gradient);
  min-height: 100%;
}

.kse-onboarding-page {
  background: var(--kse-light-gradient);
  color: var(--kse-ink);
  font-weight: 500;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.kse-onboarding-page .hm-footer {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  background: transparent;
  border-top: 1px solid var(--kse-line);
}

.kse-ob-scene {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(100vh - var(--hm-chrome-h, 64px));
  min-height: calc(100dvh - var(--hm-chrome-h, 64px));
  overflow-x: clip;
  padding-top: calc(var(--hm-chrome-h) - 0.35rem);
}

.kse-ob-scene__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(68, 82, 214, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 20%, rgba(123, 133, 255, 0.06) 0%, transparent 50%),
    var(--kse-light-gradient);
}

.kse-ob-scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(68, 82, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 82, 214, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  opacity: 0.55;
}

.kse-ob,
.kse-onboarding-page .ob-main-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: clamp(0.35rem, 1vw, 0.65rem) var(--kse-section-x) clamp(3rem, 6vw, 4.5rem);
}

/* ─── Steps bar (matches main site onboarding-marketing.css) ─── */
.kse-onboarding-page .ob-progress-wrap {
  max-width: 920px;
  margin: 0 auto clamp(2.25rem, 5vh, 3.25rem);
  padding: clamp(0.45rem, 1vh, 0.75rem) var(--kse-section-x) 0;
}

.kse-onboarding-page .ob-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  gap: 0.25rem;
}

.kse-onboarding-page .ob-progress::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--kse-line);
  z-index: 0;
}

.kse-onboarding-page .ob-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.kse-onboarding-page .ob-step-dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  border: 1px solid var(--kse-line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #a3a3a3;
}

.kse-onboarding-page .ob-step-dot ion-icon {
  font-size: 0.95rem;
}

/* KSE brand — only active/highlight differs from main site */
.kse-onboarding-page .ob-step.active .ob-step-dot {
  border-color: rgba(var(--kse-brand-rgb), 0.35);
  background: rgba(var(--kse-brand-rgb), 0.08);
  color: var(--kse-brand-deep);
  box-shadow: 0 0 0 3px rgba(var(--kse-brand-rgb), 0.1);
  transform: none;
}

.kse-onboarding-page .ob-step.done .ob-step-dot {
  border-color: rgba(22, 163, 74, 0.25);
  background: #f0fdf4;
  color: #16a34a;
}

.kse-onboarding-page .ob-step-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a3a3;
  line-height: 1.3;
  max-width: 5.5rem;
}

.kse-onboarding-page .ob-step.active .ob-step-label {
  color: var(--kse-brand-deep);
}

.kse-onboarding-page .ob-step.done .ob-step-label {
  color: #16a34a;
}

/* ─── Layout ─── */
.ob-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  max-width: var(--kse-max);
  margin: 0 auto;
}

.ob-shell--wide {
  max-width: 1280px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.ob-shell--narrow,
.ob-shell--center {
  max-width: 720px;
  grid-template-columns: 1fr;
}

/* Success / centered flows — drop 2-col grid so hidden hero rail can't leave a left gap */
.ob-shell--center,
.ob-shell--success {
  display: block;
  width: 100%;
  max-width: min(720px, calc(100vw - 2 * var(--kse-section-x)));
  margin-inline: auto;
}

.ob-shell--wide .ob-hero-panel,
.ob-shell--center .ob-hero-panel,
.ob-shell--narrow .ob-hero-panel,
.ob-shell--success .ob-hero-panel,
.ob-shell--build-kse .ob-hero-panel,
.ob-shell--review .ob-hero-panel,
.ob-shell--auth .ob-hero-panel,
.ob-shell--portal .ob-hero-panel {
  display: none !important;
}

/* Build KSE — full-width composer (3-column cart needs the whole row) */
.ob-shell--build-kse {
  max-width: min(1520px, calc(100vw - 2rem));
  width: 100%;
  grid-template-columns: 1fr;
}

.ob-shell--build-kse .ob-main {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
  min-width: 0;
}

/* Review — full-width split layout */
.ob-shell--review {
  max-width: min(1280px, calc(100vw - 2rem));
  width: 100%;
  grid-template-columns: 1fr;
}

.ob-shell--review .ob-main {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
  min-width: 0;
}

.ob-shell--center .ob-main,
.ob-shell--success .ob-main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Side info panel ─── */
.kse-ob-stage {
  position: sticky;
  top: calc(var(--hm-chrome-h) + 0.75rem);
  padding: 0;
  border-radius: calc(var(--kse-radius-xl) + 4px);
  background: var(--kse-white);
  border: 1px solid var(--kse-line);
  box-shadow: var(--kse-shadow-md);
  overflow: hidden;
  min-height: auto;
}

.kse-ob-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--kse-gradient-brand);
  z-index: 3;
}

.kse-ob-stage::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--kse-brand-rgb), 0.1) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.kse-ob-stage__inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.35rem, 2.8vw, 1.85rem);
}

.kse-ob-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.62rem !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kse-brand-deep) !important;
  background: var(--kse-brand-tint);
  border: 1px solid var(--kse-brand-mist);
}

.kse-ob-stage__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--kse-ink);
}

.kse-ob-stage__title em {
  font-style: normal;
}

.kse-ob-stage__lead,
.ob-hero-panel p {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--kse-muted);
  max-width: 28rem;
}

.ob-hero-panel h2:not(.kse-ob-stage__title) {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--kse-ink);
}

.ob-hero-list {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ob-hero-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  color: var(--kse-ink-soft);
  line-height: 1.4;
  background: var(--kse-surface);
  border: 1px solid var(--kse-line);
  border-radius: var(--kse-radius-lg);
}

.ob-hero-list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--kse-brand);
  box-shadow: 0 0 0 3px rgba(var(--kse-brand-rgb), 0.12);
}

.ob-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.ob-hero-metric {
  padding: 0.9rem 1rem;
  border-radius: var(--kse-radius-lg);
  background: linear-gradient(145deg, var(--kse-brand-tint) 0%, var(--kse-white) 100%);
  border: 1px solid var(--kse-brand-mist);
}

.ob-hero-metric strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--kse-brand-deep);
  line-height: 1.1;
}

.ob-hero-metric span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kse-muted);
}

/* ─── Workspace ─── */
.kse-ob-workspace {
  min-width: 0;
}

[data-kse-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-kse-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Cards ─── */
.ob-card {
  position: relative;
  border-radius: calc(var(--kse-radius-xl) + 2px);
  overflow: hidden;
  animation: kseObCardIn 0.6s ease both;
  animation-delay: var(--kse-ob-card-delay, 0ms);
}

@keyframes kseObCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.ob-card__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(var(--kse-brand-rgb), 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(var(--kse-brand-bright-rgb), 0.04) 0%, transparent 50%);
  z-index: 0;
}

.ob-card__mesh--success {
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(74, 222, 128, 0.1) 0%, transparent 60%);
}

.ob-card__mesh--error {
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(248, 113, 113, 0.08) 0%, transparent 60%);
}

.ob-card__shell {
  position: relative;
  z-index: 1;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--kse-line);
  border-radius: calc(var(--kse-radius-xl) + 2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    var(--kse-shadow-md);
  color: var(--kse-ink);
  backdrop-filter: blur(8px);
}

.ob-card__shell--center {
  text-align: center;
}

.ob-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.ob-card-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ob-card-header--flush {
  margin-bottom: 1rem;
}

.ob-card__index {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--kse-brand);
  background: var(--kse-brand-tint);
  border: 1px solid var(--kse-brand-mist);
}

.ob-card__index--success {
  color: #15803d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.ob-card-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--kse-ink);
}

.ob-lead {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--kse-muted);
  line-height: 1.55;
}

/* ─── Flash messages ─── */
.ob-flash {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--kse-radius-lg);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.ob-flash--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.ob-flash--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.ob-flash--info {
  background: var(--kse-brand-tint);
  border-color: var(--kse-brand-mist);
  color: var(--kse-brand-deep);
}

/* ─── Form sections ─── */
.ob-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--kse-line);
}

.ob-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ob-section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kse-brand-deep);
}

.ob-section-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  background: var(--kse-brand-tint);
  color: var(--kse-brand);
  font-size: 1rem;
}

.ob-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.ob-grid-full {
  grid-column: 1 / -1;
}

.ob-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--kse-ink-soft);
}

.ob-label-optional {
  font-weight: 500;
  color: var(--kse-muted-light);
}

.ob-field input,
.ob-field select,
.ob-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: var(--kse-radius);
  border: 1px solid var(--kse-line-strong);
  background: var(--kse-white);
  font: inherit;
  font-size: 0.92rem;
  color: var(--kse-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ob-field input:focus,
.ob-field select:focus,
.ob-field textarea:focus {
  outline: none;
  border-color: var(--kse-brand);
  box-shadow: 0 0 0 3px rgba(var(--kse-brand-rgb), 0.1);
}

.ob-password-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--kse-radius);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.85rem;
}

.ob-password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ob-password-rules li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--kse-muted);
  transition: color 0.15s;
}

.ob-password-rules li.is-met {
  color: #15803d;
  font-weight: 600;
}

.ob-password-rules__icon ion-icon {
  font-size: 1rem;
  vertical-align: middle;
}

.ob-accept-terms {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--kse-radius-lg);
  background: var(--kse-brand-tint);
  border: 1px solid var(--kse-brand-mist);
}

.ob-accept-terms input {
  margin-top: 0.2rem;
  accent-color: var(--kse-brand);
}

.ob-accept-terms label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--kse-ink-soft);
}

.ob-accept-terms a {
  color: var(--kse-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Buttons ─── */
.ob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.ob-btn:hover {
  transform: translateY(-1px);
}

.ob-btn-primary {
  background: var(--kse-gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--kse-brand-rgb), 0.28);
}

.ob-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1a2066 0%, #3a46bf 52%, #5a66f0 100%);
  box-shadow: 0 8px 28px rgba(var(--kse-brand-rgb), 0.35);
}

.ob-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ob-btn-ghost {
  background: var(--kse-white);
  border-color: var(--kse-line-strong);
  color: var(--kse-ink-soft);
}

.ob-btn-ghost:hover:not(:disabled) {
  border-color: var(--kse-brand);
  color: var(--kse-brand);
  background: var(--kse-brand-tint);
}

.ob-btn-block {
  width: 100%;
}

.ob-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ob-actions--stack { gap: 0.65rem; }
.ob-actions--flush { margin-top: 0; }

.ob-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--kse-muted);
}

.ob-hint--center { text-align: center; }

.ob-link {
  color: var(--kse-brand);
  font-weight: 600;
}

.ob-link:hover { text-decoration: underline; }

.ob-duplicate-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--kse-radius-lg);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.ob-duplicate-box ion-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.ob-hint-box {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: var(--kse-radius-lg);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.85rem;
  line-height: 1.45;
}

.ob-hint-box ion-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ─── OTP ─── */
/* ─── Email verification ─── */
.kse-ob-verify .ob-card__shell {
  max-width: none;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.kse-ob-verify__hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.kse-ob-verify__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: var(--kse-gradient-brand);
  color: #fff;
  font-size: 1.85rem;
  box-shadow: 0 12px 32px rgba(var(--kse-brand-rgb), 0.28);
}

.kse-ob-verify__hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--kse-ink);
}

.kse-ob-verify__hero .ob-lead {
  margin: 0 auto;
  max-width: 22rem;
}

.kse-ob-verify__email-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  max-width: 100%;
  border-radius: var(--kse-radius-lg);
  background: var(--kse-brand-tint);
  border: 1px solid var(--kse-brand-mist);
  color: var(--kse-brand-deep);
  font-size: 0.88rem;
  font-weight: 500;
  word-break: break-all;
}

.kse-ob-verify__email-card ion-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
}

.kse-ob-verify__edit {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--kse-brand);
}

.kse-ob-verify__edit:hover {
  text-decoration: underline;
}

.kse-ob-verify__timer {
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--kse-radius-lg);
  background: var(--kse-surface);
  border: 1px solid var(--kse-line);
}

.kse-ob-verify__timer-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(var(--kse-brand-rgb), 0.12);
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.kse-ob-verify__timer-bar {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--kse-gradient-brand);
  transition: width 1s linear;
}

.kse-ob-verify__timer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kse-ob-verify__timer-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kse-muted);
}

.kse-ob-verify__timer-value {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--kse-brand-deep);
  font-variant-numeric: tabular-nums;
}

.kse-ob-verify__digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.kse-ob-verify__digit {
  width: 100%;
  aspect-ratio: 1;
  max-height: 3.5rem;
  padding: 0;
  text-align: center;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border-radius: var(--kse-radius-lg);
  border: 1px solid var(--kse-line-strong);
  background: var(--kse-white);
  color: var(--kse-ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.kse-ob-verify__digit:focus {
  outline: none;
  border-color: var(--kse-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--kse-brand-rgb), 0.12);
}

.kse-ob-verify__digit.is-filled {
  border-color: rgba(var(--kse-brand-rgb), 0.35);
  background: var(--kse-brand-tint);
  color: var(--kse-brand-deep);
}

.kse-ob-verify__hint {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--kse-radius);
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #92400e;
  text-align: center;
}

.kse-ob-verify__hint ion-icon {
  vertical-align: -0.15em;
  margin-right: 0.25rem;
}

.kse-ob-verify__resend {
  margin-top: 0.75rem;
}

.kse-ob-verify__resend .ob-btn {
  font-size: 0.84rem;
}

.ob-otp-wrap .ob-card__shell {
  max-width: 480px;
  margin: 0 auto;
}

.ob-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--kse-brand-deep);
  background: var(--kse-brand-tint);
  border: 1px solid var(--kse-brand-mist);
}

.ob-otp-timer { margin: 1.25rem 0; }

.ob-otp-timer__track {
  height: 4px;
  border-radius: 999px;
  background: var(--kse-line);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ob-otp-timer__bar {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--kse-gradient-brand);
  transition: width 1s linear;
}

.ob-otp-timer__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--kse-muted);
}

.ob-otp-timer__value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--kse-brand);
}

.ob-otp-input {
  width: 100%;
  padding: 1rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  border-radius: var(--kse-radius-lg);
  border: 2px solid var(--kse-line-strong);
  background: var(--kse-white);
}

.ob-otp-input:focus {
  outline: none;
  border-color: var(--kse-brand);
  box-shadow: 0 0 0 4px rgba(var(--kse-brand-rgb), 0.1);
}

.ob-otp-form,
.ob-otp-resend {
  margin-top: 1rem;
}

/* ─── Review ─── */
.ob-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  gap: 1.25rem;
}

.ob-review-section {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--kse-radius-lg);
  background: var(--kse-surface);
  border: 1px solid var(--kse-line);
}

.ob-review-section h3,
.ob-review-section .ob-section-title {
  margin-top: 0;
}

.ob-review-dl { margin: 0; }

.ob-review-dl__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--kse-line);
  font-size: 0.88rem;
}

.ob-review-dl__row:last-child { border-bottom: none; }

.ob-review-dl__row dt {
  color: var(--kse-muted);
  font-weight: 600;
}

.ob-review-dl__row dd {
  margin: 0;
  font-weight: 500;
  color: var(--kse-ink);
  text-align: right;
}

.ob-review-section__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ob-review-edit-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--kse-brand);
}

.ob-review-edit-link--btn {
  border: 1px solid rgba(var(--kse-brand-rgb), 0.3);
  background: rgba(var(--kse-brand-rgb), 0.08);
  color: var(--kse-brand-deep);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ob-review-edit-link--btn:hover {
  background: rgba(var(--kse-brand-rgb), 0.15);
  border-color: rgba(var(--kse-brand-rgb), 0.45);
}

.ob-modal-open {
  overflow: hidden;
}

.kse-onboarding-page .ob-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.kse-onboarding-page .ob-modal[hidden] {
  display: none;
}

.kse-onboarding-page .ob-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 34, 0.58);
  backdrop-filter: blur(4px);
}

.kse-onboarding-page .ob-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 860px);
  background: #fff;
  border: 1px solid var(--kse-line);
  border-radius: var(--kse-radius-xl);
  box-shadow: var(--kse-shadow-lg);
  overflow: hidden;
}

.kse-onboarding-page .ob-modal__dialog--wide {
  width: min(860px, 100%);
}

.kse-onboarding-page .ob-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--kse-line);
  background: linear-gradient(180deg, rgba(var(--kse-brand-rgb), 0.06), rgba(var(--kse-brand-rgb), 0.01));
}

.kse-onboarding-page .ob-modal__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kse-muted);
}

.kse-onboarding-page .ob-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.kse-onboarding-page .ob-modal__close {
  border: 1px solid var(--kse-line);
  background: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.kse-onboarding-page .ob-modal__body {
  padding: 1rem 1.1rem 1.15rem;
  overflow: auto;
  max-height: calc(min(90vh, 860px) - 70px);
}

.kse-onboarding-page .ob-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--kse-line);
}

.kse-onboarding-page .ob-modal__alert {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--kse-radius);
  border: 1px solid rgba(190, 18, 60, 0.35);
  background: rgba(254, 242, 242, 0.95);
  color: #9f1239;
  font-size: 0.84rem;
}

.kse-onboarding-page .ob-modal__alert[hidden] {
  display: none;
}

.ob-review-stack-list {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.ob-review-stack-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--kse-line);
  font-size: 0.88rem;
}

.ob-review-stack-item:last-child { border-bottom: none; }

.ob-review-stack-item span {
  color: var(--kse-muted);
  font-weight: 600;
}

.ob-review-billing-pick {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--kse-ink-soft);
}

.ob-review-billing-pick select {
  padding: 0.65rem 0.75rem;
  border-radius: var(--kse-radius);
  border: 1px solid var(--kse-line-strong);
  font: inherit;
  background: var(--kse-white);
}

/* Light checkout accent card */
.ob-review-checkout {
  padding: 1.25rem;
  border-radius: var(--kse-radius-xl);
  background: var(--kse-white);
  border: 1px solid var(--kse-line);
  box-shadow: var(--kse-shadow-md);
  position: relative;
  overflow: hidden;
}

.ob-review-checkout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--kse-gradient-brand);
}

.ob-review-checkout__plan {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kse-muted);
}

.ob-review-checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--kse-line);
}

.ob-review-checkout__total strong {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--kse-brand-deep);
}

.ob-review-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--kse-muted);
  margin-bottom: 0.35rem;
}

.ob-review-line--coupon span:last-child {
  color: #15803d;
  font-weight: 600;
}

.ob-review-checkout .ob-btn-primary {
  margin-top: 1rem;
}

/* ─── KSE Review (full-width) ─── */
.kse-review {
  width: 100%;
  animation: kseObCardIn 0.6s ease both;
}

.kse-review__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.kse-review__head-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 420px;
}

.kse-review__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--kse-ink);
}

.kse-review__head-note {
  margin: 0;
  max-width: 24rem;
  flex: 0 1 20rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--kse-muted);
}

.kse-review__head-note .ob-link {
  font-weight: 600;
}

.kse-review__team-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--kse-muted);
}

.ob-shell--review .ob-review-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: start;
}

.ob-shell--review .ob-review-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.ob-shell--review .ob-review-section {
  margin-bottom: 0;
  padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
}

.ob-shell--review .ob-review-dl__row {
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.65rem 0;
}

.ob-shell--review .ob-review-dl__row dt {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ob-shell--review .ob-review-dl__row dd {
  text-align: left;
  font-size: 0.92rem;
  word-break: break-word;
  line-height: 1.45;
}

.ob-shell--review .ob-review-stack-item {
  flex-wrap: wrap;
  align-items: baseline;
  padding: 0.75rem 0;
  gap: 0.25rem 1rem;
}

.ob-shell--review .ob-review-stack-item strong {
  flex: 1 1 12rem;
  font-weight: 500;
  line-height: 1.35;
}

.ob-shell--review .ob-review-stack-item span {
  flex: 0 1 auto;
  font-weight: 500;
  white-space: nowrap;
}

.ob-shell--review .ob-review-billing-pick {
  margin-top: 0.25rem;
  max-width: 22rem;
}

.ob-shell--review .ob-review-billing-pick select {
  width: 100%;
}

.ob-shell--review .ob-review-checkout {
  position: sticky;
  top: calc(var(--hm-chrome-h) + 0.75rem);
  padding: clamp(1.35rem, 2.5vw, 1.65rem);
}

/* ─── Payment summary ─── */
.ob-order-summary {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: var(--kse-radius-lg);
  background: var(--kse-surface);
  border: 1px solid var(--kse-line);
}

.ob-order-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: var(--kse-ink-soft);
  border-bottom: 1px solid var(--kse-line);
}

.ob-order-row.total {
  font-weight: 800;
  font-size: 1rem;
  color: var(--kse-ink);
  border-bottom: none;
  padding-top: 0.75rem;
}

.ob-order-row--coupon span:last-child {
  color: #15803d;
  font-weight: 600;
}

/* ─── Status cards ─── */
.ob-status-card .ob-card__shell {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.ob-status-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2rem;
}

.ob-status-icon--success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  box-shadow: 0 12px 32px rgba(21, 128, 61, 0.15);
}

.ob-status-icon--error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.12);
}

.kse-ob-success {
  position: relative;
  overflow: visible;
  width: 100%;
  margin-inline: auto;
}

.kse-ob-success__burst {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--kse-brand-rgb), 0.08) 0%, transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(var(--kse-brand-bright-rgb), 0.06) 0%, transparent 40%);
  animation: kseObSuccessPulse 5s ease-in-out infinite;
  z-index: 0;
}

@keyframes kseObSuccessPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.kse-ob-success .ob-card__shell {
  position: relative;
  z-index: 1;
}

.ob-success-steps {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.ob-success-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: 0.9rem;
  color: var(--kse-ink-soft);
  border-bottom: 1px solid var(--kse-line);
}

.ob-success-steps li:last-child {
  border-bottom: none;
}

.ob-success-step__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--kse-brand-tint);
  color: var(--kse-brand);
  font-size: 1.1rem;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .ob-shell,
  .ob-shell--wide,
  .ob-shell--review {
    grid-template-columns: 1fr;
  }

  .kse-ob-stage {
    position: relative;
    top: auto;
  }

  .ob-review-layout {
    grid-template-columns: 1fr;
  }

  .ob-shell--review .ob-review-checkout {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .kse-onboarding-page .ob-progress-wrap {
    padding-top: 0.35rem;
    margin-bottom: clamp(1.75rem, 4vh, 2.5rem);
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .kse-onboarding-page .ob-progress {
    min-width: min(100%, 520px);
    gap: 0.15rem;
  }

  .kse-onboarding-page .ob-progress::before {
    display: none;
  }

  .kse-onboarding-page .ob-step {
    flex: 1 1 0;
    min-width: 3.25rem;
  }

  .kse-onboarding-page .ob-step-label {
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    max-width: 4.5rem;
    line-height: 1.25;
  }

  .kse-onboarding-page .ob-step-dot {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 640px) {
  .kse-review__head {
    flex-direction: column;
    align-items: stretch;
  }

  .kse-review__head-note {
    max-width: none;
  }

  .ob-shell--review .ob-review-stack-item span {
    white-space: normal;
  }

  .kse-ob-verify__digits {
    gap: 0.35rem;
  }

  .kse-ob-verify__digit {
    max-height: 2.85rem;
    font-size: 1.05rem;
    border-radius: var(--kse-radius);
  }

  .ob-hero-metrics {
    grid-template-columns: 1fr;
  }

  .ob-grid-2,
  .ob-password-rules {
    grid-template-columns: 1fr;
  }

  .kse-onboarding-page .ob-modal {
    padding: 0.5rem;
  }

  .kse-onboarding-page .ob-modal__dialog,
  .kse-onboarding-page .ob-modal__dialog--wide {
    width: 100%;
    max-height: 94vh;
  }

  .kse-onboarding-page .ob-modal__body {
    max-height: calc(94vh - 70px);
  }

  .kse-onboarding-page .ob-modal__foot {
    flex-direction: column-reverse;
  }

  .kse-onboarding-page .ob-modal__foot .ob-btn {
    width: 100%;
  }
}

/* ─── Typography — medium weight for headings & body copy ─── */
.kse-onboarding-page :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  .ob-lead,
  .kse-ob-stage__title,
  .kse-ob-stage__lead,
  .ob-hero-panel :is(h2, p),
  .ob-card-header :is(h1, p),
  .ob-section-title,
  .ob-hero-list li,
  .kse-ob-verify__hero :is(h1, p),
  .kse-ob-verify__hint,
  .ob-review-section :is(h3, .ob-section-title),
  .ob-review-dl__row dd,
  .ob-review-stack-item,
  .ob-order-row:not(.total),
  .ob-password-alert,
  .ob-plan-card :is(h2, p, li),
  .ob-plan-profile,
  .ob-plan-meta,
  .ob-plan-features li
) {
  font-weight: 500;
}
