/* ============================================
   Ordo — public marketing landing + onboarding wizard
   Standalone from styles.css (the app shell) so the
   public site can evolve without touching the CRM UI.
   ============================================ */

:root {
  --brand-purple: #572D77;
  --brand-purple-dark: #3E2056;
  --brand-purple-light: #7C4D9E;
  --brand-orange: #F2A93B;
  --brand-orange-dark: #D88B1F;

  --ink: #1B1425;
  --ink-2: #4A4256;
  --ink-3: #7B7488;
  --line: #E9E5F0;
  --surface: #FFFFFF;
  --surface-2: #FAF8FD;
  --danger: #DC2626;
  --success: #16A34A;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(27, 20, 37, .06);
  --shadow: 0 8px 30px rgba(27, 20, 37, .08);
  --shadow-lg: 0 24px 60px rgba(27, 20, 37, .14);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-purple); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
p { margin: 0 0 14px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 11px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-purple); color: #fff; box-shadow: 0 6px 18px rgba(87,45,119,.28); }
.btn-primary:hover { background: var(--brand-purple-dark); color: #fff; }
.btn-accent { background: var(--brand-orange); color: #2B1A05; box-shadow: 0 6px 18px rgba(242,169,59,.35); }
.btn-accent:hover { background: var(--brand-orange-dark); color: #2B1A05; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-white { background: #fff; color: var(--brand-purple); }
.btn-white:hover { background: #F3EEF9; color: var(--brand-purple-dark); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Nav ───────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.nav-logo { flex: none; }
.nav-logo img { height: 30px; width: auto; display: block; }
/* Branding left, the two actions right — the same shape at every width, so
   there is no menu to open and nothing to collapse. */
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(242,169,59,.20), transparent 60%),
    radial-gradient(760px 420px at 8% 0%, rgba(124,77,158,.16), transparent 62%),
    var(--surface-2);
  padding: 84px 0 76px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--brand-purple);
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-orange); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-purple), var(--brand-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: 18.5px; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: 13.5px; color: var(--ink-3); }
.hero-note strong { color: var(--ink-2); }

/* Hero visual — a stylised pipeline card */
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; transform: rotate(-1.1deg);
}
.hero-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hero-card-head .title { font-weight: 700; font-size: 15px; }
.hero-card-head .pill { margin-left: auto; }
.pipeline { display: grid; gap: 10px; }
.pipe-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2);
}
.pipe-row .avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: rgba(87,45,119,.10); color: var(--brand-purple);
}
.pipe-row .who { font-weight: 600; font-size: 14px; }
.pipe-row .meta { font-size: 12.5px; color: var(--ink-3); }
.pipe-row .right { margin-left: auto; text-align: right; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.pill-purple { background: #EDE5F9; color: var(--brand-purple); }
.pill-orange { background: #FEF3D9; color: var(--brand-orange-dark); }
.pill-green  { background: #DCFCE7; color: #15803D; }
.pill-muted  { background: #F1EFF5; color: var(--ink-3); }

/* ── Stats strip ───────────────────────────── */
.stats { border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.stats-grid .s strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.stats-grid .s span { font-size: 13.5px; color: var(--ink-3); }

/* ── Sections ──────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-orange-dark); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 0; }

/* ── Feature cards ─────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DCD3EA; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(87,45,119,.09); color: var(--brand-purple); margin-bottom: 16px;
}
.feature.accent .ico { background: rgba(242,169,59,.16); color: var(--brand-orange-dark); }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ── Steps ─────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 26px;
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 6px 16px rgba(87,45,119,.3);
}
.step h3 { font-size: 17px; font-weight: 700; margin: 10px 0 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ── Pricing ───────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.plan.featured {
  border-color: var(--brand-purple); box-shadow: var(--shadow);
  position: relative;
}
.plan.featured::after {
  content: 'Most popular'; position: absolute; top: -12px; right: 20px;
  background: var(--brand-orange); color: #2B1A05; font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.plan .price {
  font-size: 15px; color: var(--ink-3); margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.plan .price strong { font-size: 30px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.plan .price .per { font-size: 14px; color: var(--ink-3); }
.plan-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; margin: 0 0 16px; }
.pricing-note {
  margin: 26px auto 0; max-width: 620px; text-align: center;
  font-size: 13.5px; color: var(--ink-3); line-height: 1.6;
}
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.plan li { font-size: 14px; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--success); }
.plan .btn { margin-top: auto; }

/* ── FAQ ───────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--ink-3);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ── CTA band ──────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-dark) 100%);
  color: #fff; text-align: center; padding: 76px 0;
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────── */
.footer { background: #17111F; color: rgba(255,255,255,.62); padding: 54px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer a { color: rgba(255,255,255,.62); display: block; margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer-logo img { height: 28px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}

/* ============================================
   Onboarding wizard (/get-started)
   ============================================ */
.wiz-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-2); }
.wiz-top {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 16px 0; position: sticky; top: 0; z-index: 20;
}
.wiz-top-inner { display: flex; align-items: center; gap: 16px; }
.wiz-top img { height: 28px; }
.wiz-top .step-count { margin-left: auto; font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.progress-track { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-orange));
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

.wiz-main { flex: 1; display: grid; place-items: start center; padding: 44px 0 64px; }
.wiz-card {
  width: 100%; max-width: 680px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 38px 40px 32px;
}
.wiz-step { display: none; }
.wiz-step.active { display: block; animation: wizIn .3s ease; }
@keyframes wizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-orange-dark); margin-bottom: 10px;
}
.wiz-step h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.wiz-step .hint { color: var(--ink-2); font-size: 14.5px; margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=password], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(87,45,119,.12);
}
.field .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.field .sub.ok { color: var(--success); }
.field .sub.bad { color: var(--danger); }

/* Email verification: input + action button on one line. The button is
   flex-shrink:0 so a long placeholder never squashes it into an ellipsis. */
.verify-row { display: flex; gap: 10px; align-items: stretch; }
.verify-row input { flex: 1; min-width: 0; }
.btn-verify { flex: 0 0 auto; white-space: nowrap; padding-left: 18px; padding-right: 18px; }
.btn-verify:disabled { opacity: .55; cursor: not-allowed; }
/* A verified address is locked — changing it must re-trigger verification. */
.field input.is-verified { background: #f6fdf9; border-color: var(--success); }
@media (max-width: 520px) {
  .verify-row { flex-direction: column; }
  .btn-verify { width: 100%; }
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Option cards (single + multi select) */
.opts { display: grid; gap: 10px; }
.opts.cols-2 { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .15s ease, background .15s ease;
}
.opt:hover { border-color: #CFC3E2; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CFC7DB; flex: none;
  display: grid; place-items: center; transition: border-color .15s ease;
}
.opt input[type=checkbox] ~ .mark { border-radius: 6px; }
.opt .mark::after {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-purple); transform: scale(0); transition: transform .15s ease;
}
.opt input[type=checkbox] ~ .mark::after { border-radius: 2px; }
.opt input:checked ~ .mark { border-color: var(--brand-purple); }
.opt input:checked ~ .mark::after { transform: scale(1); }
.opt input:checked ~ .opt-body .opt-title { color: var(--brand-purple); }
.opt:has(input:checked) { border-color: var(--brand-purple); background: rgba(87,45,119,.04); }
.opt input:focus-visible ~ .mark { box-shadow: 0 0 0 3px rgba(87,45,119,.2); }
.opt-body { min-width: 0; }
.opt-title { font-weight: 600; font-size: 14.5px; }
.opt-desc { font-size: 12.5px; color: var(--ink-3); }

/* Chip input (cities, stages) */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; min-height: 52px;
  align-items: center;
}
.chips:focus-within { border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(87,45,119,.12); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #EDE5F9; color: var(--brand-purple); font-size: 13.5px; font-weight: 600;
  padding: 6px 8px 6px 12px; border-radius: 999px;
}
.chip button {
  border: 0; background: none; color: inherit; cursor: pointer; padding: 0 2px;
  font-size: 15px; line-height: 1; opacity: .65;
}
.chip button:hover { opacity: 1; }
.chips input {
  flex: 1; min-width: 140px; border: 0; outline: none; font: inherit; font-size: 15px;
  padding: 6px 4px; background: transparent;
}
.suggests { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggest {
  border: 1px dashed #CFC7DB; background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.suggest:hover { border-style: solid; border-color: var(--brand-purple); color: var(--brand-purple); }

/* Stage list with closure picker */
.stage-list { display: grid; gap: 8px; margin-top: 14px; }
.stage-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; background: #fff;
}
.stage-row .idx {
  width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-3); font-size: 12px; font-weight: 700;
}
.stage-row .name { font-weight: 600; font-size: 14.5px; }
.stage-row .closure-btn {
  margin-left: auto; border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; color: var(--ink-3);
}
.stage-row.is-closure { border-color: var(--success); background: rgba(22,163,74,.04); }
.stage-row.is-closure .closure-btn { border-color: var(--success); color: var(--success); font-weight: 600; }

/* Slider */
.slider-row { display: flex; align-items: center; gap: 18px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--brand-purple); }
.slider-val {
  min-width: 64px; text-align: center; font-weight: 700; font-size: 22px;
  color: var(--brand-purple); background: #EDE5F9; border-radius: 11px; padding: 8px 10px;
}

/* Review step */
.review-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-row { display: flex; gap: 16px; padding: 12px 16px; font-size: 14px; }
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-row .k { color: var(--ink-3); min-width: 190px; flex: none; }
.review-row .v { font-weight: 600; color: var(--ink); }

.wiz-nav { display: flex; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.wiz-nav .spacer { flex: 1; }

.alert {
  display: none; padding: 12px 15px; border-radius: 11px; font-size: 14px; margin-bottom: 18px;
}
.alert.show { display: block; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* Success panel */
.wiz-done { text-align: center; padding: 20px 10px; }
.wiz-done .tick {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: #DCFCE7; color: #15803D;
}
.wiz-done h2 { font-size: 26px; }
.wiz-done p { color: var(--ink-2); max-width: 460px; margin: 0 auto 12px; }
.next-steps {
  text-align: left; max-width: 460px; margin: 26px auto 0; display: grid; gap: 12px;
}
.next-steps .ns { display: flex; gap: 12px; font-size: 14px; color: var(--ink-2); }
.next-steps .ns b { color: var(--ink); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { transform: none; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}
@media (max-width: 640px) {
  .section { padding: 62px 0; }
  .hero { padding: 56px 0 52px; }
  .features, .steps, .pricing, .grid-2, .opts.cols-2 { grid-template-columns: 1fr; }
  .wiz-card { padding: 26px 20px 22px; border-radius: var(--radius); }
  .review-row { flex-direction: column; gap: 2px; }
  .review-row .k { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Hero buttons go full-width and stack — side by side they wrap into two
     awkward half-rows on a phone. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* The featured plan's ribbon overhangs the card; on one column that clips
     against the viewport edge. */
  .plan.featured { transform: none; }
}

/* Narrow phones: keep both header actions, just make them fit. */
@media (max-width: 460px) {
  .nav-inner { gap: 10px; height: 62px; }
  .nav-logo img { height: 26px; }
  .nav-cta { gap: 7px; }
  .nav-cta .btn { padding: 8px 13px; font-size: 13.5px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  h1, .hero h1 { font-size: clamp(28px, 8.5vw, 38px); }
  .plan { padding: 22px 20px; }
}
