/* InvoClouds — sign-up flow (register wizard, verification, onboarding)
   Shares the homepage palette: ink black, warm white, a single orange. */

:root {
  --sf-ink: #0c0c0d;
  --sf-ink-2: #151517;
  --sf-ink-line: rgba(255, 255, 255, 0.09);
  --sf-paper: #fafaf7;
  --sf-white: #ffffff;
  --sf-line: #e8e6e1;
  --sf-line-strong: #d9d6cf;
  --sf-text: #0c0c0d;
  --sf-muted: #5d6066;
  --sf-muted-2: #8a8d93;
  --sf-orange: #f97316;
  --sf-orange-600: #ea580c;
  --sf-orange-700: #c2410c;
  --sf-orange-50: #fff4eb;
  --sf-orange-100: #ffe4cc;
  --sf-ok: #15803d;
  --sf-ok-bg: #f0fdf4;
  --sf-ok-line: #bbf7d0;
  --sf-err: #b91c1c;
  --sf-err-bg: #fef2f2;
  --sf-err-line: #fecaca;
}

.sf-body {
  margin: 0;
  min-height: 100vh;
  background: var(--sf-paper) !important;
  color: var(--sf-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.sf-body *, .sf-body *::before, .sf-body *::after { box-sizing: border-box; }
.sf-body a { color: inherit; text-decoration: none; }
.sf-body :focus-visible { outline: 3px solid var(--sf-orange) !important; outline-offset: 2px !important; border-radius: 6px; }
.sf-body ::selection { background: var(--sf-orange-100); color: var(--sf-ink); }

/* ── Dark brand surface (shared by split panel + top bars) ── */
.sf-dark {
  position: relative;
  overflow: hidden;
  background: var(--sf-ink);
  color: #fff;
  isolation: isolate;
}
.sf-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 15%, transparent 75%);
}
.sf-dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  right: -260px;
  bottom: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, .26) 0%, rgba(249, 115, 22, 0) 65%);
  pointer-events: none;
}

.sf-logo { display: block; height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.sf-logo-text { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.sf-logo-text span { color: var(--sf-orange); }

.sf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(249, 115, 22, .35);
  border-radius: 999px;
  background: rgba(249, 115, 22, .08);
  color: #fdba74;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sf-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sf-orange); box-shadow: 0 0 0 4px rgba(249, 115, 22, .2); }

/* ── Split layout (register) ── */
.sf-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); min-height: 100vh; }
.sf-brand { display: flex; flex-direction: column; padding: 40px clamp(28px, 4vw, 64px); }
.sf-brand-body { margin: auto 0; padding: 48px 0; max-width: 480px; }
.sf-brand h1 { margin: 0 0 16px; font-size: clamp(32px, 3.2vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.sf-brand h1 span { color: var(--sf-orange); }
.sf-brand-sub { margin: 0 0 32px; color: rgba(255, 255, 255, .66); font-size: 16px; line-height: 1.65; }
.sf-brand-sub strong { color: #fff; font-weight: 600; }
.sf-checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sf-checks li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.sf-checks .ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(249, 115, 22, .25);
  border-radius: 9px;
  background: rgba(249, 115, 22, .12);
  color: var(--sf-orange);
  font-size: 14px;
}
.sf-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--sf-ink-line); list-style: none; }
.sf-trust li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 500; }
.sf-trust i { color: var(--sf-orange); }

.sf-main { display: flex; flex-direction: column; padding: 28px clamp(20px, 4vw, 64px); }
.sf-topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; color: var(--sf-muted); font-size: 14px; }
.sf-topbar a { padding: 8px 14px; border: 1px solid var(--sf-line-strong); border-radius: 10px; background: #fff; color: var(--sf-ink); font-weight: 600; }
.sf-topbar a:hover { border-color: var(--sf-ink); }
.sf-form-wrap { width: 100%; max-width: 580px; margin: auto; padding: 36px 0 28px; }
.sf-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--sf-muted-2); font-size: 13px; }
.sf-footer a { color: var(--sf-muted); font-weight: 500; }
.sf-footer a:hover { color: var(--sf-orange-700); }

/* ── Headings ── */
.sf-title { margin: 0 0 8px; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.sf-subtitle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 28px; color: var(--sf-muted); font-size: 15px; }
.sf-pill { padding: 3px 9px; border-radius: 999px; background: var(--sf-orange-50); border: 1px solid var(--sf-orange-100); color: var(--sf-orange-700); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sf-sep { color: var(--sf-line-strong); }

/* ── Stepper ── */
.sf-stepper { display: flex; align-items: center; gap: 0; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: sfstep; }
.sf-stepper li { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; color: var(--sf-muted-2); font-size: 13.5px; font-weight: 600; }
.sf-stepper li:last-child { flex: none; }
.sf-stepper li::after { content: ""; flex: 1; height: 2px; margin: 0 12px; border-radius: 2px; background: var(--sf-line); }
.sf-stepper li:last-child::after { display: none; }
.sf-stepper .num {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--sf-line-strong);
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.sf-stepper .lbl { white-space: nowrap; }
.sf-stepper li.is-active { color: var(--sf-ink); }
.sf-stepper li.is-active .num { border-color: var(--sf-ink); background: var(--sf-ink); color: #fff; }
.sf-stepper li.is-done { color: var(--sf-ink); }
.sf-stepper li.is-done .num { border-color: var(--sf-orange); background: var(--sf-orange); color: #fff; }
.sf-stepper li.is-done::after { background: var(--sf-orange); }

.sf-step[hidden] { display: none !important; }
.sf-step-head { margin: 0 0 18px; }
.sf-step-head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.sf-step-head p { margin: 0; color: var(--sf-muted); font-size: 14px; }

/* ── Form controls ── */
.sf-group { display: grid; gap: 7px; margin-bottom: 16px; }
.sf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sf-label { color: var(--sf-ink); font-size: 13.5px; font-weight: 600; }
.sf-label .req { color: var(--sf-orange-600); }
.sf-label .opt { color: var(--sf-muted-2); font-weight: 500; }
.sf-field { position: relative; }
.sf-field > .sf-ic { position: absolute; top: 50%; left: 14px; color: var(--sf-muted-2); font-size: 14px; transform: translateY(-50%); pointer-events: none; }
.sf-input,
.sf-body .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.sf-body .form-group select,
.sf-body .form-group textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--sf-line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--sf-ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sf-body .form-group textarea { height: auto; min-height: 96px; padding: 12px 14px; }
.sf-field > .sf-ic ~ .sf-input { padding-left: 42px; }
.sf-input::placeholder, .sf-body .form-group input::placeholder { color: #a3a6ab; }
.sf-input:hover, .sf-body .form-group input:hover, .sf-body .form-group select:hover { border-color: #bfbcb4; }
.sf-input:focus,
.sf-body .form-group input:focus,
.sf-body .form-group select:focus,
.sf-body .form-group textarea:focus { border-color: var(--sf-ink); box-shadow: 0 0 0 4px rgba(249, 115, 22, .18); }
.sf-input.is-invalid { border-color: #dc2626; }
.sf-field-err { color: var(--sf-err); font-size: 13px; }
.sf-hint, .sf-body .form-hint { color: var(--sf-muted-2); font-size: 12.5px; }
.sf-pw-toggle { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--sf-muted-2); cursor: pointer; transform: translateY(-50%); }
.sf-pw-toggle:hover { color: var(--sf-ink); background: #f3f2ef; }
.sf-field.has-toggle .sf-input { padding-right: 46px; }

/* Choice cards (account type + plan) */
.sf-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sf-choice { position: relative; }
.sf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sf-choice label {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border: 1.5px solid var(--sf-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.sf-choice label:hover { border-color: var(--sf-line-strong); }
.sf-choice input:focus-visible + label { outline: 3px solid var(--sf-orange); outline-offset: 2px; }
.sf-choice input:checked + label { border-color: var(--sf-ink); box-shadow: 0 0 0 1px var(--sf-ink), 0 10px 24px -14px rgba(12, 12, 13, .4); }
.sf-choice label::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--sf-line-strong);
  border-radius: 50%;
  background: #fff;
}
.sf-choice input:checked + label::after {
  border-color: var(--sf-orange);
  background: var(--sf-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.sf-choice-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 10px; background: var(--sf-orange-50); color: var(--sf-orange-600); font-size: 15px; }
.sf-choice input:checked + label .sf-choice-icon { background: var(--sf-ink); color: var(--sf-orange); }
.sf-choice-name { font-size: 15px; font-weight: 700; }
.sf-choice-desc { margin-top: 2px; color: var(--sf-muted); font-size: 13px; line-height: 1.4; }

.sf-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sf-plan-badge { align-self: flex-start; margin-bottom: 10px; padding: 2px 8px; border-radius: 999px; background: var(--sf-ink); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sf-plan-badge.is-free { background: var(--sf-orange); }
.sf-plan-name { color: var(--sf-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sf-plan-price { margin: 6px 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.sf-plan-price small { margin-left: 2px; color: var(--sf-muted-2); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.sf-plan-sub { color: var(--sf-muted); font-size: 13px; }

.sf-review { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--sf-line); border-radius: 14px; background: #fff; }
.sf-review dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.sf-review dt { color: var(--sf-muted); }
.sf-review dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.sf-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; color: var(--sf-muted); font-size: 14px; line-height: 1.5; }
.sf-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sf-orange); cursor: pointer; }
.sf-check a { color: var(--sf-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sf-check a:hover { color: var(--sf-orange-700); }

/* ── Buttons ── */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.sf-btn .arrow { transition: transform .15s ease; }
.sf-btn:hover .arrow { transform: translateX(3px); }
.sf-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.sf-btn-primary { background: var(--sf-orange); color: #fff !important; box-shadow: 0 8px 22px -10px rgba(249, 115, 22, .8); }
.sf-btn-primary:hover:not(:disabled) { background: var(--sf-orange-600); transform: translateY(-1px); }
.sf-btn-dark { background: var(--sf-ink); color: #fff !important; }
.sf-btn-dark:hover:not(:disabled) { background: #222225; }
.sf-btn-ghost { border-color: var(--sf-line-strong); background: #fff; color: var(--sf-ink) !important; }
.sf-btn-ghost:hover:not(:disabled) { border-color: var(--sf-ink); }
.sf-btn-block { width: 100%; }
.sf-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.sf-actions .sf-btn-primary, .sf-actions .sf-btn-dark { flex: 1; }

.sf-guarantee { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 16px; color: var(--sf-muted-2); font-size: 13px; }
.sf-guarantee i { color: var(--sf-orange); margin-right: 4px; }
.sf-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sf-line); color: var(--sf-muted); font-size: 14px; text-align: center; }
.sf-alt a { color: var(--sf-ink); font-weight: 700; }
.sf-alt a:hover { color: var(--sf-orange-700); }

/* ── Alerts ── */
.sf-alert { margin-bottom: 18px; padding: 12px 14px 12px 16px; border: 1px solid; border-left-width: 4px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.sf-alert ul { margin: 6px 0 0; padding-left: 18px; }
.sf-alert-error { border-color: var(--sf-err-line); border-left-color: #dc2626; background: var(--sf-err-bg); color: var(--sf-err); }
.sf-alert-success { border-color: var(--sf-ok-line); border-left-color: var(--sf-ok); background: var(--sf-ok-bg); color: #166534; }
.sf-alert-notice { border-color: var(--sf-orange-100); border-left-color: var(--sf-orange); background: var(--sf-orange-50); color: var(--sf-orange-700); }

/* ── Centered card shell (verify / pending / onboarding) ── */
.sf-topnav { padding: 0 clamp(16px, 4vw, 40px); }
.sf-topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; max-width: 1200px; margin: 0 auto; }
.sf-topnav-inner .sf-logo { height: 34px; }
.sf-topnav-meta { color: rgba(255, 255, 255, .7); font-size: 13.5px; text-align: right; }
.sf-topnav-meta strong { color: #fff; }
.sf-topnav.sf-dark::after { width: 420px; height: 420px; right: -120px; bottom: -340px; }

.sf-center { display: flex; flex-direction: column; align-items: center; padding: 48px 16px 64px; }
.sf-card {
  width: 100%;
  max-width: 520px;
  padding: 40px;
  border: 1px solid var(--sf-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 12, 13, .04), 0 24px 48px -24px rgba(12, 12, 13, .18);
}
.sf-card-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 16px; background: var(--sf-orange-50); color: var(--sf-orange-600); }
.sf-card-icon.is-dark { background: var(--sf-ink); color: var(--sf-orange); }
.sf-card-icon svg { width: 26px; height: 26px; }
.sf-card .sf-title { text-align: center; font-size: 26px; }
.sf-card .sf-lead { margin: 0 0 26px; color: var(--sf-muted); text-align: center; line-height: 1.6; }
.sf-below { margin-top: 20px; color: var(--sf-muted); font-size: 14px; text-align: center; }
.sf-below a { color: var(--sf-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sf-below a:hover { color: var(--sf-orange-700); }

/* ── Responsive ── */
@media (max-width: 1023.98px) {
  .sf-split { grid-template-columns: 1fr; }
  .sf-brand { padding: 24px; }
  .sf-brand-body { margin: 0; padding: 32px 0 4px; }
  .sf-brand-sub { margin-bottom: 0; }
  .sf-checks, .sf-brand .sf-trust { display: none; }
  .sf-brand h1 { font-size: clamp(28px, 6vw, 38px); }
  .sf-main { padding: 24px; }
  .sf-topbar { display: none; }
  .sf-form-wrap { padding: 28px 0; }
}
@media (max-width: 600px) {
  .sf-row { grid-template-columns: 1fr; }
  .sf-choice-grid { grid-template-columns: 1fr; }
  .sf-choice label { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 14px 44px 14px 14px; }
  .sf-choice-icon { margin: 0; }
  .sf-choice-text { flex: 1; min-width: 0; }
  .sf-subtitle .sf-sep { display: none; }
  .sf-stepper .lbl { display: none; }
  .sf-stepper li.is-active .lbl { display: inline; }
  .sf-title { font-size: 26px; }
  .sf-main { padding: 20px 16px 24px; }
  .sf-card { padding: 28px 20px; border-radius: 16px; }
  .sf-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-body *, .sf-body *::before, .sf-body *::after { transition: none !important; animation: none !important; }
}
