/* ============================================================
   AssetNix Outreach — shared design system
   Pure CSS. No build step, no external dependencies.
   ============================================================ */

:root {
  /* Brand */
  --brand: #4f46e5;          /* indigo */
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --accent: #14b8a6;         /* teal — "operational" */
  --accent-600: #0d9488;

  /* Ink & surfaces */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;

  /* Semantic */
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .35);

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Per-role accent (overridden inline by each page's data-role theme) */
  --role: var(--brand);
  --role-soft: #eef2ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 92vw); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--role); color: #fff;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--role) 70%, transparent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--role) 88%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 1rem; font-weight: 900;
}
.role-pill {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--role); background: var(--role-soft);
  padding: .25rem .6rem; border-radius: 999px; margin-left: .4rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 300px at 78% 8%, color-mix(in srgb, var(--role) 22%, transparent), transparent 70%),
    radial-gradient(520px 320px at 8% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--role); background: var(--role-soft);
  padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; }
.hero h1 .hl { color: var(--role); }
.hero .lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin-top: 1.1rem; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 2rem; color: var(--muted); font-size: .88rem; }
.hero-trust b { color: var(--ink); font-size: 1.05rem; }
.hero-trust > div { display: flex; flex-direction: column; }

/* ---------- Device / screen mockups ---------- */
.device {
  background: linear-gradient(180deg, #fff, var(--surface-2));
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.device-bar {
  display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.device-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.device-bar .url {
  margin-left: .6rem; font-size: .74rem; color: var(--muted);
  background: var(--surface-3); padding: .2rem .6rem; border-radius: 999px;
}
.device-body { padding: 1.1rem; }

/* Generic mock building blocks (reused by tour screens) */
.mock-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.mock-row { display: flex; align-items: center; gap: .7rem; }
.mock-kv { display: flex; justify-content: space-between; padding: .55rem 0; border-top: 1px dashed var(--line); font-size: .86rem; }
.mock-kv:first-child { border-top: 0; }
.mock-kv .k { color: var(--muted); }
.mock-kv .v { font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
}
.chip.ok { color: #047857; background: #d1fae5; }
.chip.warn { color: #92400e; background: #fef3c7; }
.chip.danger { color: #991b1b; background: #fee2e2; }
.chip.info { color: var(--brand-700); background: var(--role-soft); }

/* ---------- Section shells ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 46ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--ink-2); margin-top: .8rem; font-size: 1.05rem; }
.kicker { color: var(--role); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }

/* Value grid */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.value .ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--role-soft); color: var(--role); margin-bottom: .9rem;
}
.value h3 { font-size: 1.1rem; }
.value p { color: var(--ink-2); margin-top: .4rem; font-size: .95rem; }

/* ============================================================
   TOUR (the "wizard")
   ============================================================ */
.tour { background: var(--ink); color: #e2e8f0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.tour-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.tour-top .title { font-weight: 700; font-size: .95rem; }
.tour-top .count { color: #94a3b8; font-size: .85rem; }
.tour-progress { height: 4px; background: rgba(255,255,255,.1); }
.tour-progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.tour-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: 440px;
}
.tour-stage {
  padding: 2rem; display: grid; place-items: center;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(79,70,229,.28), transparent 70%),
    #0b1220;
}
.tour-stage .device { width: min(340px, 100%); }
.tour-copy { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.tour-step-badge {
  align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #a5b4fc; background: rgba(129,140,248,.15); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.tour-copy h3 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; }
.tour-copy p { color: #cbd5e1; margin-top: .8rem; font-size: 1.02rem; }
.tour-copy ul { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.tour-copy li { display: flex; gap: .6rem; color: #cbd5e1; font-size: .95rem; }
.tour-copy li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.tour-nav { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; }
.tour-dots { display: flex; gap: .4rem; margin-left: auto; }
.tour-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.22); cursor: pointer; padding: 0; }
.tour-dots button[aria-current="true"] { background: var(--accent); width: 22px; border-radius: 999px; }
.btn-tour {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16);
}
.btn-tour:hover { background: rgba(255,255,255,.18); }
.btn-tour:disabled { opacity: .35; cursor: not-allowed; }

/* Tour final CTA step */
.tour-final { grid-column: 1 / -1; padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.tour-final h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.tour-final p { color: #cbd5e1; margin: .8rem auto 0; max-width: 48ch; }
.lead-form { display: grid; gap: .8rem; max-width: 420px; margin: 1.8rem auto 0; text-align: left; }
.lead-form .field { display: grid; gap: .3rem; }
.lead-form label { font-size: .82rem; color: #94a3b8; font-weight: 600; }
.lead-form input, .lead-form select {
  font: inherit; padding: .75rem .9rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff;
}
.lead-form input::placeholder { color: #64748b; }
.lead-form .btn-primary { justify-content: center; margin-top: .4rem; }
.form-note { color: #64748b; font-size: .78rem; text-align: center; margin-top: .2rem; }
.form-success { display: none; color: #6ee7b7; font-weight: 600; text-align: center; margin-top: 1rem; }

/* Screen fade */
.tour-panel { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FULL-SCREEN WIZARD MODE (used by /bme)
   The whole page IS the wizard. Mobile-first, one panel at a time.
   ============================================================ */
.wizard-shell {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(700px 360px at 82% -5%, color-mix(in srgb, var(--role) 26%, transparent), transparent 70%),
    radial-gradient(560px 380px at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--ink);
  color: #e2e8f0;
}
.wizard-top {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wizard-top .brand { color: #fff; }
.wizard-top .brand .role-pill { color: #fff; background: color-mix(in srgb, var(--role) 55%, transparent); }
.wizard-top .count { margin-left: auto; color: #94a3b8; font-size: .82rem; white-space: nowrap; }
.wizard-progress { height: 4px; background: rgba(255,255,255,.1); }
.wizard-progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--role));
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

/* The stage/copy area fills remaining height */
.wizard-body {
  flex: 1 1 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: 0; /* allow children to shrink on small screens */
}
.wizard-body .tour-stage {
  padding: clamp(1.2rem, 4vw, 2.5rem);
  display: grid; place-items: center;
  background: radial-gradient(500px 260px at 50% 0%, rgba(79,70,229,.22), transparent 70%);
  overflow: auto;
}
.wizard-body .tour-stage .device { width: min(360px, 100%); }
.wizard-body .tour-copy {
  padding: clamp(1.4rem, 4vw, 3rem);
  display: flex; flex-direction: column; justify-content: center;
  overflow: auto;
}

/* Full-width panels (intro + CTA): copy spans both columns, stage hidden */
.wizard-body.full { grid-template-columns: 1fr; }
.wizard-body.full .tour-stage { display: none; }
.wizard-body.full .tour-copy {
  text-align: center; align-items: center;
  max-width: 720px; margin-inline: auto; padding-block: clamp(2rem, 7vw, 4rem);
}
.wizard-body.full .tour-copy h3 { font-size: clamp(2rem, 6vw, 3.2rem); }
.wizard-body.full .tour-copy p { font-size: clamp(1.05rem, 2.5vw, 1.25rem); max-width: 46ch; }
.wizard-body.full .tour-step-badge { align-self: center; }
.wizard-body.full .lead-form { width: 100%; }
.wizard-body.full ul { text-align: left; }

/* Wizard controls pinned to the bottom */
.wizard-controls {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem clamp(1rem, 4vw, 2rem);
  padding-bottom: max(.9rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(2,6,23,.4);
}
.wizard-controls .tour-dots { margin: 0 auto; }
.wizard-hint {
  text-align: center; color: #64748b; font-size: .74rem;
  padding: 0 1rem .6rem;
}

/* Reusable copy styling inside wizard (mirrors .tour-copy) */
.wizard-body .tour-copy h3 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; }
.wizard-body .tour-copy p { color: #cbd5e1; margin-top: .8rem; font-size: clamp(1rem, 2vw, 1.08rem); }
.wizard-body .tour-copy ul { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.wizard-body .tour-copy li { display: flex; gap: .6rem; color: #cbd5e1; font-size: .95rem; }
.wizard-body .tour-copy li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* Mobile: stack stage over copy, comfortable tap targets, swipe-friendly */
@media (max-width: 820px) {
  .wizard-body { grid-template-columns: 1fr; grid-auto-rows: min-content; }
  .wizard-body .tour-stage { padding: 1.4rem 1.2rem .4rem; }
  .wizard-body .tour-stage .device { width: min(300px, 82%); }
  .wizard-body .tour-copy { padding: 1.2rem 1.3rem 1.6rem; justify-content: flex-start; }
  .wizard-controls .btn { padding: .8rem 1.1rem; font-size: .9rem; }
}
@media (max-width: 400px) {
  .wizard-top .brand { font-size: 1rem; }
  .wizard-top .role-pill { display: none; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .box {
  background: linear-gradient(135deg, var(--brand-700), var(--brand));
  color: #fff; border-radius: 24px; padding: clamp(2.4rem, 5vw, 3.6rem);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta-band p { color: #e0e7ff; margin: .8rem auto 0; max-width: 46ch; }
.cta-band .btn { margin-top: 1.6rem; background: #fff; color: var(--brand-700); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .value-grid { grid-template-columns: 1fr; }
  .tour-body { grid-template-columns: 1fr; }
  .tour-stage { min-height: 320px; }
}
