/* =====================================================================
   HeroRights design system
   Dark, premium, India-inspired. Saffron → pink → violet gradient brand.
   ===================================================================== */

:root {
  --bg: #0b0c16;
  --bg-2: #11122140;
  --surface: #15172a;
  --surface-2: #1b1e36;
  --surface-3: #232745;
  --border: #2a2f4f;
  --border-soft: #21253f;

  --text: #f3f4fb;
  --muted: #a7abce;
  --muted-2: #6f7396;

  --nav-bg: #0b0c16cc; /* translucent backdrop for sticky nav/topbar */
  --glow-1: #9b5de52e;
  --glow-2: #ff5c8a22;

  --brand-1: #ff8c42; /* saffron */
  --brand-2: #ff5c8a; /* pink */
  --brand-3: #9b5de5; /* violet */
  --grad: linear-gradient(110deg, var(--brand-1), var(--brand-2) 48%, var(--brand-3));
  --grad-soft: linear-gradient(110deg, #ff8c4226, #ff5c8a26 48%, #9b5de526);

  --green: #2dd4a7;
  --green-bg: #2dd4a71f;
  --red: #ff6b6b;
  --red-bg: #ff6b6b1f;
  --amber: #ffc24b;
  --amber-bg: #ffc24b1f;
  --blue: #56b3f0;
  --blue-bg: #56b3f01f;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 8px 30px -12px rgba(0, 0, 0, 0.5);

  --ff-display: 'Sora', system-ui, sans-serif;
  --ff: 'Inter', system-ui, sans-serif;

  --maxw: 1180px;
}

/* ---- light theme ---------------------------------------------------- */
:root[data-theme='light'] {
  --bg: #f6f7fb;
  --bg-2: #ffffff40;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --surface-3: #e6e9f3;
  --border: #d8dcea;
  --border-soft: #e4e7f1;

  --text: #15172a;
  --muted: #5a5f7d;
  --muted-2: #888da8;

  --nav-bg: #f6f7fbcc;
  --glow-1: #9b5de51f;
  --glow-2: #ff5c8a17;

  --grad-soft: linear-gradient(110deg, #ff8c4218, #ff5c8a18 48%, #9b5de518);

  --green-bg: #2dd4a722;
  --red-bg: #ff6b6b22;
  --amber-bg: #ffc24b2e;
  --blue-bg: #56b3f022;

  --shadow: 0 20px 50px -22px rgba(60, 70, 120, 0.28);
  --shadow-soft: 0 8px 30px -14px rgba(60, 70, 120, 0.22);
}

/* round theme toggle in the top nav */
.theme-toggle {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 999px;
  border: 1px solid var(--border-soft); background: var(--surface-2);
  cursor: pointer; font-size: 16px; line-height: 1;
  display: grid; place-items: center;
  transition: background .12s ease, border-color .12s ease;
}
.theme-toggle:hover { background: var(--surface-3); }

/* Light mode: pastel pill/badge/banner text needs darker, saturated colours
   for readable contrast on light surfaces. */
:root[data-theme='light'] .eyebrow { color: #b8431a; border-color: #ff5c8a55; }
:root[data-theme='light'] .badge.green { color: #0c8f6a; }
:root[data-theme='light'] .badge.red { color: #cc3b3b; }
:root[data-theme='light'] .badge.amber { color: #a06a00; }
:root[data-theme='light'] .badge.blue { color: #1c74b8; }
:root[data-theme='light'] .badge.violet { color: #7634c9; background: #9b5de51f; }
:root[data-theme='light'] .banner.warn { color: #8a5a00; }
:root[data-theme='light'] .banner.info { color: #1c6aa8; }
:root[data-theme='light'] .banner.danger { color: #c23636; }
:root[data-theme='light'] .banner.success { color: #0c8f6a; }

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 85% -8%, var(--glow-1), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, var(--glow-2), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--ff); }
img { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.hide { display: none !important; }

/* ---- buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: transform .12s ease, opacity .12s ease, background .2s ease;
  white-space: nowrap; color: var(--text); background: var(--surface-2);
  border-color: var(--border);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 10px 30px -10px #ff5c8a88; }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red-bg); border-color: #ff6b6b55; color: #ffb4b4; }
.btn-success { background: var(--green-bg); border-color: #2dd4a755; color: #9ff0d8; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---- cards ---------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.card-pad-0 { padding: 0; overflow: hidden; }
.card-hover { transition: transform .15s ease, border-color .15s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: #3a4170; }

/* ---- inputs --------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text);
  font-size: 14px; font-family: var(--ff); transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px #ff5c8a22;
}
.textarea { resize: vertical; min-height: 92px; }
.field-hint { font-size: 12px; color: var(--muted-2); }
.field-error { font-size: 12px; color: #ffb4b4; }

/* ---- badges & chips ------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; background: var(--surface-3); color: var(--muted);
  border: 1px solid var(--border);
}
.badge.green { background: var(--green-bg); color: #9ff0d8; border-color: #2dd4a744; }
.badge.red { background: var(--red-bg); color: #ffb4b4; border-color: #ff6b6b44; }
.badge.amber { background: var(--amber-bg); color: #ffd98a; border-color: #ffc24b44; }
.badge.blue { background: var(--blue-bg); color: #b6ddfb; border-color: #56b3f044; }
.badge.violet { background: #9b5de51f; color: #d9c2ff; border-color: #9b5de544; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13px; font-weight: 500; color: var(--muted); transition: all .12s ease;
  user-select: none;
}
.chip:hover { border-color: #3a4170; color: var(--text); }
.chip.active { background: var(--grad-soft); border-color: #ff5c8a66; color: var(--text); }
.chip.active::before { content: '✓'; font-weight: 700; color: var(--brand-2); }

/* ---- avatar --------------------------------------------------------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-family: var(--ff-display); font-weight: 700; color: #fff;
  flex-shrink: 0;
}

/* ---- navbar --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 66px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-weight: 800; font-size: 19px; letter-spacing: -0.4px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px -8px #ff5c8a99;
}
.logo-mark-img { width: 100%; height: 100%; object-fit: cover; display: block; grid-area: 1 / 1; }
.logo-mark-dark { display: none; }
:root[data-theme='light'] .logo-mark-dark { display: block; }
:root[data-theme='light'] .logo-mark-light { display: none; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.nav-link { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--muted); font-size: 14px; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--text); background: var(--surface-2); }

/* hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border-soft); border-radius: 10px;
  background: var(--surface-2); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 0 auto;
  background: var(--text); border-radius: 2px; transition: 0.2s;
}

/* mobile drawer */
.nav-drawer-overlay {
  position: fixed; inset: 0; z-index: 49;
  background: #00000080; backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.nav-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  width: 78%; max-width: 300px;
  background: var(--bg); border-right: 1px solid var(--border-soft);
  box-shadow: 2px 0 40px -8px #000;
  transform: translateX(-100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; padding: 0 18px; border-bottom: 1px solid var(--border-soft);
}
.nav-drawer-close {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border-soft); background: var(--surface-2);
  color: var(--text); cursor: pointer; font-size: 15px;
}
.nav-drawer-links { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.nav-drawer-foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 14px; border-top: 1px solid var(--border-soft);
}
.nav-drawer-foot .dash-foot-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-soft);
  background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 14px;
}
.nav-drawer-foot .dash-foot-link:hover { color: var(--text); }
.drawer-link {
  padding: 13px 14px; border-radius: 12px; font-weight: 500;
  color: var(--muted); font-size: 15px;
}
.drawer-link:hover { color: var(--text); background: var(--surface-2); }
.drawer-link.active { color: var(--text); background: var(--surface-2); }

/* ---- hero / landing ------------------------------------------------- */
.hero { padding: 70px 0 40px; }
.hero-campaign {
  position: relative;
  min-height: min(720px, calc(100vh - 104px));
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-campaign::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, color-mix(in srgb, var(--bg) 68%, transparent) 52%, transparent 78%),
    linear-gradient(180deg, transparent 58%, var(--bg) 100%);
}
.hero-shell { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 560px; }
.hero-collage {
  position: absolute;
  z-index: 0;
  top: 36px;
  right: max(-80px, calc((100vw - var(--maxw)) / 2 - 64px));
  width: min(620px, 48vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 10px;
  padding: 8px 0;
  pointer-events: none;
}
.hero-collage-mobile-view { display: none; }
.hero-collage::after {
  content: none;
}
.campaign-card {
  position: relative;
  aspect-ratio: 4 / 5;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ffffff24;
  background: #070812;
  box-shadow: 0 22px 44px -28px #000;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.campaign-card::after {
  content: none;
}
.campaign-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}
.campaign-card span {
  position: absolute;
  left: 12px;
  top: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #ffffff4a;
  background: #05060cba;
  color: #fff;
  box-shadow: 0 10px 24px -16px #000;
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.campaign-card-1 { transform: translateY(8px); }
.campaign-card-2 { transform: translateY(-18px); }
.campaign-card-3 { transform: translateY(2px); }
.campaign-card-4 { transform: translateY(-4px); }
.campaign-card-5 { transform: translateY(20px); }
.campaign-card-6 { transform: translateY(-8px); }
.campaign-card-5 img { object-position: center; }
:root[data-theme='light'] .hero-campaign::before {
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, color-mix(in srgb, var(--bg) 88%, transparent) 48%, transparent 64%),
    linear-gradient(180deg, transparent 58%, var(--bg) 100%);
}
:root[data-theme='light'] .hero-collage::after {
  content: none;
}
:root[data-theme='light'] .campaign-card {
  border-color: #ffffff;
  background: #f9faff;
  box-shadow:
    0 18px 36px -26px rgba(45, 54, 96, 0.42),
    0 0 0 1px rgba(155, 164, 200, 0.22);
}
:root[data-theme='light'] .campaign-card::after {
  content: none;
}
:root[data-theme='light'] .campaign-card span {
  border-color: #ffffffd9;
  background: #ffffffd9;
  color: #252947;
  box-shadow: 0 12px 26px -18px rgba(30, 35, 70, 0.55);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid #ff5c8a3a; font-size: 13px; font-weight: 600;
  color: #ffd0b0;
}
.hero h1 { font-size: 66px; font-weight: 800; letter-spacing: 0; margin-top: 22px; }
.hero p.hero-subhead { font-size: 27px; font-weight: 700; max-width: 620px; margin: 16px 0 0; line-height: 1.25; }
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 620px; margin: 18px 0 30px; }

.value-band { text-align: center; }
.value-band .value-statement { font-family: var(--ff-display); font-size: 46px; font-weight: 800; line-height: 1.15; margin: 0 auto; max-width: 880px; }
.value-band .value-statement-sub { font-size: 18px; color: var(--muted); margin: 18px auto 0; max-width: 640px; }

.stat-strip { display: flex; gap: 26px; flex-wrap: wrap; }
.stat-strip .num { font-family: var(--ff-display); font-size: 30px; font-weight: 800; }
.stat-strip .lbl { font-size: 13px; color: var(--muted-2); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; background: var(--grad-soft); border: 1px solid var(--border);
}

.section { padding: 56px 0; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.8px; }

/* ---- how-it-works steps -------------------------------------------- */
.howstep { position: relative; padding-left: 56px; }
.howstep .n {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800;
  font-family: var(--ff-display);
}

/* ---- generated image card ------------------------------------------ */
.genimg {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  position: relative; aspect-ratio: 4/5; display: flex; align-items: flex-end;
}
.genimg .scene { position: absolute; inset: 0; }
.genimg .scene-real img { width: 100%; height: 100%; object-fit: cover; display: block; }
.genimg .meta { position: relative; padding: 12px 14px; width: 100%;
  background: linear-gradient(transparent, #0009 55%); font-size: 12px; }
.genimg .tag { position: absolute; top: 10px; left: 10px; }
.genimg .review { position: absolute; top: 10px; right: 10px; }

/* ---- stepper / timeline -------------------------------------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ''; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface-3); border: 2px solid var(--brand-2); }
.tl-item:last-child { padding-bottom: 0; }

/* ---- progress steps (deal status) ---------------------------------- */
.steps { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.steps .step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border); font-size: 12px; }
.steps .step.done .dot { background: var(--green-bg); border-color: #2dd4a7; color: #9ff0d8; }
.steps .step.current .dot { background: var(--grad); border: none; color: #fff; }
.steps .step.current { color: var(--text); font-weight: 600; }
.steps .bar { width: 28px; height: 2px; background: var(--border); margin: 0 4px; }
.steps .step.done + .bar { background: #2dd4a7; }

/* ---- table ---------------------------------------------------------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted-2); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 14px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.tbl tr:hover td { background: var(--bg-2); }

/* ---- toast ---------------------------------------------------------- */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; box-shadow: var(--shadow); min-width: 260px; max-width: 380px;
  animation: slidein .25s ease; display: flex; gap: 10px; align-items: flex-start;
}
.toast.success { border-color: #2dd4a755; }
.toast.error { border-color: #ff6b6b55; }
.toast.warn { border-color: #ffc24b66; }
.toast .tt { font-weight: 600; font-size: 14px; }
.toast .tm { font-size: 13px; color: var(--muted); }
@keyframes slidein { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- modal ---------------------------------------------------------- */
.overlay { position: fixed; inset: 0; background: #05060ccc; backdrop-filter: blur(4px);
  z-index: 90; display: grid; place-items: center; padding: 20px; animation: slidein .15s ease; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; box-shadow: var(--shadow); max-height: 90vh; overflow: auto; }
.modal-head { padding: 22px 24px; border-bottom: 1px solid var(--border-soft); }
.modal-body { padding: 24px; }
.modal-foot { padding: 18px 24px; border-top: 1px solid var(--border-soft); display: flex; gap: 10px; justify-content: flex-end; }

/* ---- demo account picker ------------------------------------------- */
.demo-picker { display: flex; flex-direction: column; gap: 10px; }
.demo-picker-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; color: var(--text); transition: border-color .15s, background .15s; }
.demo-picker-item:hover:not(:disabled) { border-color: var(--brand-2); background: var(--surface-3); }
.demo-picker-item:disabled { opacity: .55; cursor: default; }
.demo-picker-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.demo-picker-meta strong { font-size: 14px; }
.demo-picker-meta .muted-2 { font-size: 12px; }
.demo-picker-arrow { color: var(--muted-2); font-size: 16px; }
.demo-picker-item:hover:not(:disabled) .demo-picker-arrow { color: var(--brand-2); }

/* ---- misc ----------------------------------------------------------- */
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--border); border-top-color: var(--brand-2);
  border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.lg { width: 40px; height: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .em { font-size: 44px; margin-bottom: 12px; }

.divider { height: 1px; background: var(--border-soft); margin: 18px 0; }

/* "or" divider — a centered label flanked by lines (used on the login screen). */
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.or-divider span { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* Provider button content (e.g. the Google logo + label), centered with a gap. */
.provider-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.provider-btn svg { width: 18px; height: 18px; flex: none; }

.auth-email-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 13.5px; }
.auth-email-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-email-row button, .auth-switch-link { appearance: none; background: none; border: 0; color: var(--brand-2);
  cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; padding: 0; }
.auth-email-row button:hover, .auth-switch-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-switch-link { display: block; margin: 12px auto 0; }

.kv { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--border-soft); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }

.page { padding: 32px 0 64px; min-height: calc(100vh - 66px); }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; }
.page-links {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 0; color: var(--muted-2); font-size: 13.5px; font-weight: 600;
}
.page-links a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.page-links a:hover { color: var(--brand-1); }

/* ---- about ---------------------------------------------------------- */
.about-page { padding-bottom: 24px; }
.about-head { width: 100%; margin-bottom: 36px; }
.about-head h1 { font-size: 34px; line-height: 1.16; margin-top: 16px; max-width: 920px; }
.about-head p { font-size: 16px; line-height: 1.75; max-width: 920px; margin-top: 14px; }
.about-section {
  display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 56px;
  padding: 38px 0; border-top: 1px solid var(--border-soft);
}
.about-section h2 { font-size: 18px; line-height: 1.25; color: var(--text); }
.about-copy { font-size: 16px; line-height: 1.85; color: var(--muted); }
.about-copy p { margin: 0; }
.about-copy p + p { margin-top: 16px; }
.about-list { display: grid; gap: 24px; }
.about-list article { padding-bottom: 22px; border-bottom: 1px solid var(--border-soft); }
.about-list article:last-child { padding-bottom: 0; border-bottom: 0; }
.about-list h3 { font-size: 17px; margin-bottom: 8px; }
.about-list p { line-height: 1.75; }
.about-trust-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 24px 0;
}
.about-trust-list div {
  border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 14px;
  background: var(--surface); color: var(--text); font-size: 13.5px; line-height: 1.45;
}

/* ---- pricing -------------------------------------------------------- */
.pricing-single {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: start; margin: 8px 0 36px;
  padding-bottom: 36px; border-bottom: 1px solid var(--border-soft);
}
.pricing-single-lead .pricing-price { margin-top: 14px; }
.pricing-single-lead .pricing-amount { font-size: 40px; }
.pricing-single-lead .pricing-price-note { max-width: 380px; line-height: 1.6; margin: 8px 0 22px; }
.pricing-single-features { margin: 0; gap: 14px; }
.pricing-single-features li { font-size: 15px; }
@media (max-width: 720px) {
  .pricing-single { grid-template-columns: 1fr; gap: 24px; }
}
.pricing-enterprise {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.pricing-enterprise h2 { font-size: 20px; font-weight: 800; margin: 12px 0 8px; }
.pricing-enterprise p { max-width: 560px; line-height: 1.7; font-size: 14.5px; }
.pricing-enterprise .btn { flex-shrink: 0; }
.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card-featured {
  border-color: var(--brand-1); box-shadow: 0 0 0 1px var(--brand-1), var(--shadow-soft);
}
.pricing-badge {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: #fff;
  background: var(--brand-1); border-radius: 999px; padding: 4px 10px;
}
.pricing-name { font-size: 18px; font-weight: 800; }
.pricing-tagline { font-size: 13.5px; line-height: 1.5; margin: 6px 0 18px; min-height: 40px; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; }
.pricing-amount { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; }
.pricing-price-note { font-size: 12.5px; margin: 4px 0 18px; }
.pricing-features { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.pricing-features li {
  display: flex; gap: 9px; font-size: 13.5px; line-height: 1.45; color: var(--muted);
}
.pricing-check { color: var(--brand-1); font-weight: 800; flex-shrink: 0; }
.pricing-faq { margin-top: 12px; }
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-tagline { min-height: 0; }
}

/* ---- legal ---------------------------------------------------------- */
.legal-head { max-width: 920px; margin-bottom: 30px; }
.legal-head h1 { font-size: 32px; line-height: 1.18; margin-top: 16px; }
.legal-head p { font-size: 15.5px; line-height: 1.75; max-width: 820px; margin-top: 14px; }
.legal-section {
  max-width: 920px; padding: 34px 0; border-top: 1px solid var(--border-soft);
  color: var(--muted); font-size: 16px; line-height: 1.85;
}
.legal-section h2 { color: var(--text); font-size: 24px; margin-bottom: 12px; }
.legal-section p + p { margin-top: 14px; }
.legal-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin-top: 24px;
}
.legal-grid article {
  border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface);
  padding: 16px;
}
.legal-grid h3 { color: var(--text); font-size: 16px; margin-bottom: 8px; }
.legal-grid p { font-size: 13.5px; line-height: 1.65; }
.terms-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 42px; align-items: start; }
.terms-aside {
  position: sticky; top: 92px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--surface); padding: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.65;
}
.terms-aside strong { display: block; color: var(--text); font-family: var(--ff-display); margin-bottom: 8px; }
.terms-section:first-child { border-top: 0; padding-top: 0; }

.banner {
  border-radius: var(--radius); padding: 14px 18px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start;
}
.banner.warn { background: var(--amber-bg); border: 1px solid #ffc24b44; color: #ffe0a3; }
.banner.info { background: var(--blue-bg); border: 1px solid #56b3f044; color: #cfe9fc; }
.banner.danger { background: var(--red-bg); border: 1px solid #ff6b6b44; color: #ffc9c9; }
.banner.success { background: var(--green-bg); border: 1px solid #2dd4a744; color: #b7f0df; }

.site-footer { border-top: 1px solid var(--border-soft); padding: 38px 0; color: var(--muted-2); font-size: 14px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(280px, 1fr) repeat(2, minmax(150px, 190px));
  gap: 28px; align-items: start;
}
.footer-brand p { max-width: 300px; margin: 12px 0 0; color: var(--muted-2); font-size: 13.5px; line-height: 1.65; }
.footer-made {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  color: var(--text); font-size: 13.5px; font-weight: 600; text-align: center;
}
.footer-section { display: flex; flex-direction: column; gap: 9px; }
.footer-section h4 {
  color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 2px; font-family: var(--ff);
}
.footer-link { color: var(--muted); font-size: 13.5px; width: fit-content; }
.footer-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.heart { color: var(--brand-2); }

/* ---- hero photos ------------------------------------------------- */
.cphoto-circle-wrap { position: relative; display: inline-block; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.cphoto-fb-circle { position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; color: #fff; }
.cphoto-circle { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; }
/* editable profile avatar (view + change) */
.avatar-edit { position: relative; display: inline-block; flex-shrink: 0; }
.avatar-edit-circle { position: relative; display: block; padding: 0; border: none;
  background: none; border-radius: 50%; overflow: hidden; cursor: pointer; }
.avatar-edit-overlay { position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 50%; background: rgba(0,0,0,0.42); color: #fff; font-size: 22px;
  opacity: 0; transition: opacity 0.15s ease; }
.avatar-edit-circle:hover .avatar-edit-overlay,
.avatar-edit-circle:focus-visible .avatar-edit-overlay { opacity: 1; }
.avatar-edit-cam { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--surface);
  background: var(--grad); color: #fff; font-size: 15px; cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.45); transition: transform 0.12s ease; }
.avatar-edit-cam:hover { transform: scale(1.08); }
.avatar-edit-cam:disabled { cursor: default; opacity: 0.8; }
.avatar-edit-spin { width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff;
  animation: spin 0.7s linear infinite; }
.avatar-view { display: grid; place-items: center; }
.avatar-view img { max-width: 100%; max-height: 56vh; border-radius: 14px;
  object-fit: contain; }
.avatar-view-empty { display: grid; place-items: center; padding: 12px 0; }

.cphoto-card { position: absolute; inset: 0; }
.cphoto-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cphoto-fallback { position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 800; font-size: 54px; color: #ffffffcc; }

/* ---- product images ------------------------------------------------- */
.product-thumb {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 12px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border-soft); color: var(--text); font-size: 28px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.image-count-row { padding: 12px; border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); background: var(--surface-2); }

/* ---- cameo-style hero card --------------------------------------- */
.hero-card { background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease; box-shadow: var(--shadow-soft); }
.hero-card:hover { transform: translateY(-4px); border-color: #3a4170; }
.hero-card-media { position: relative; aspect-ratio: 4/5; }
.hero-card-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, #05060ce6); }
.hero-card-badges { position: absolute; top: 12px; left: 12px; z-index: 2; }
.hero-card-overlay { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  color: #fff; display: flex; flex-direction: column; gap: 3px; }
.hero-card-overlay strong { font-family: var(--ff-display); font-size: 18px; }
.hero-card-body { padding: 14px 16px; }
.cc-num { font-family: var(--ff-display); font-weight: 700; font-size: 15px; }
.cc-lbl { color: var(--muted-2); font-size: 11.5px; }

/* ---- insights ------------------------------------------------------- */
.ins-bar { margin-bottom: 9px; }
.ins-track { height: 7px; border-radius: 99px; background: var(--surface-3); margin-top: 4px; overflow: hidden; }
.ins-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.ins-stat { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 12px; text-align: center; }
.ins-stat .v { font-family: var(--ff-display); font-weight: 800; font-size: 18px; }
.ins-stat .l { color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }
.ins-head { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted-2);
  margin-bottom: 10px; font-weight: 600; }

/* ---- match score ring + recommendation card ------------------------- */
.match-ring { border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.match-inner { background: var(--surface); border-radius: 50%; display: grid; place-items: center; }
.match-inner span { font-family: var(--ff-display); font-weight: 800; }
.rec-card { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px;
  background: var(--surface); transition: border-color .15s ease, background .15s ease; cursor: pointer; }
.rec-card:hover { border-color: #3a4170; }
.rec-card.selected { border-color: var(--brand-2); background: var(--grad-soft); }
.rec-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rec-reason { font-size: 12px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border-soft); border-radius: 99px; padding: 3px 10px; }
.selectable-image {
  border: 2px solid var(--border-soft); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: var(--surface-2); transition: border-color .15s ease, transform .15s ease;
}
.selectable-image:hover { transform: translateY(-2px); border-color: #3a4170; }
.selectable-image.selected { border-color: var(--brand-2); box-shadow: 0 0 0 3px #ff5c8a22; }
.watermark {
  position: absolute; inset: auto 10px 10px 10px; z-index: 3; text-align: center;
  color: #ffffffd9; border: 1px solid #ffffff44; border-radius: 999px;
  background: #05060c99; backdrop-filter: blur(6px); padding: 5px 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .8px;
}
.terms-box {
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 14px;
}
.terms-box p { margin: 8px 0 0; font-size: 12.5px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.check-row input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.image-guide {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted); font-size: 13px;
}
.image-guide strong {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px;
  background: var(--grad-soft); color: var(--text); flex-shrink: 0;
}
.ref-card {
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px;
}
.ref-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
/* Reference thumbs keep the image's original aspect ratio — never cropped. */
.ref-thumb { border-radius: 12px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border-soft); }
.ref-thumb img { width: 100%; height: auto; display: block; }

/* ---- category shopping --------------------------------------------- */
.category-rail {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.category-tile {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  background: var(--surface); color: var(--text); padding: 14px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.category-tile:hover { transform: translateY(-2px); border-color: #3a4170; }
.category-tile.active { border-color: #ff5c8a66; background: var(--grad-soft); }
.category-icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); font-family: var(--ff-display);
  color: #ffd0b0; font-weight: 800;
}
.category-tile strong { display: block; font-size: 13px; }
.category-tile small { display: block; color: var(--muted-2); margin-top: 2px; }

/* ---- segmented filter (deals) ------------------------------------- */
.seg {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
}
.seg-btn {
  padding: 7px 16px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--grad); color: #fff; font-weight: 600; }
.seg-count { opacity: .7; font-weight: 500; }

/* ---- dashboard workspace (full-height sidebar layout) -------------- */
.dash { --dash-w: 244px; }
.dash.dash-collapsed { --dash-w: 74px; }

.dash-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 45;
  width: var(--dash-w);
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border-soft);
  transition: width .2s ease, transform .25s ease;
}
.dash-side-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 66px; padding: 0 18px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0;
  overflow: hidden;
}
.dash-side-head .theme-toggle { width: 32px; height: 32px; font-size: 14px; }
.dash-collapsed .dash-side-head .theme-toggle { display: none; }
.dash-drawer-close {
  display: none;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border-soft); background: var(--surface-2);
  color: var(--text); cursor: pointer; font-size: 15px;
}
/* floating round toggle straddling the sidebar's right edge */
.dash-collapse {
  position: absolute; top: 52px; right: -13px; z-index: 46;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-soft); background: var(--surface-2);
  color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1;
  box-shadow: 0 2px 8px #00000055; transition: color .12s ease, background .12s ease;
}
.dash-collapse:hover { color: var(--text); background: var(--surface); }

.dash-nav { flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; }
.dash-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.dash-nav-link:hover { background: var(--surface-2); color: var(--text); }
.dash-nav-link.active { background: var(--grad-soft); color: var(--text); font-weight: 600;
  border: 1px solid #ff5c8a44; padding: 10px 11px; }
.dash-nav-ic { width: 22px; text-align: center; font-size: 16px; flex-shrink: 0; }

.dash-side-foot { flex-shrink: 0; border-top: 1px solid var(--border-soft);
  padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.dash-foot-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.dash-foot-link:hover { background: var(--surface-2); color: var(--text); }
.dash-foot-link.active { color: var(--text); }
.dash-foot-link .dash-nav-ic { font-size: 17px; color: var(--muted); }
.dash-user { display: flex; align-items: center; gap: 12px; padding: 6px 12px;
  color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; }
.dash-logout {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft); background: transparent; color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-align: left;
}
.dash-logout:hover { background: var(--surface-2); }

/* collapsed rail: icons only */
.dash-collapsed .dash-nav-label { display: none; }
.dash-collapsed .dash-side-head { justify-content: center; padding: 0; }
.dash-collapsed .dash-side-head .logo { gap: 0; }
.dash-collapsed .dash-side-head .logo span:not(.logo-mark) { display: none; }
.dash-collapsed .dash-nav-link,
.dash-collapsed .dash-logout,
.dash-collapsed .dash-user { justify-content: center; gap: 0; }

/* main column offset by the fixed sidebar */
.dash-main { margin-left: var(--dash-w); min-height: 100vh;
  display: flex; flex-direction: column; transition: margin-left .2s ease; }
.dash-topbar { display: none; }
.dash-content { flex: 1; padding: 32px 0 64px; }
.dash-content-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* mobile drawer + hamburger top bar */
.dash-overlay {
  position: fixed; inset: 0; z-index: 44; background: #00000080; backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dash-overlay.open { opacity: 1; pointer-events: auto; }
.dash-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0; border-radius: 10px;
  border: 1px solid var(--border-soft); background: var(--surface-2); cursor: pointer;
}
.dash-hamburger span { display: block; width: 18px; height: 2px; margin: 0 auto;
  background: var(--text); border-radius: 2px; }

@media (max-width: 820px) {
  .dash { --dash-w: 272px; }
  .dash-sidebar { transform: translateX(-100%); box-shadow: 2px 0 40px -8px #000; }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-collapse { display: none; }
  .dash-main { margin-left: 0; }
  .dash-topbar {
    display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 18px;
    position: sticky; top: 0; z-index: 30; background: var(--nav-bg); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
  }
  .dash-topbar .theme-toggle { margin-left: auto; }
  .dash-side-head .theme-toggle { display: none; }
  .dash-drawer-close { display: grid; place-items: center; }
  .dash-content { padding: 24px 0 48px; }
  .dash-content-inner { padding: 0 18px; }
}

/* ---- landing: compact hero cards ----------------------------------- */
.landing-heroes .hero-card-media { aspect-ratio: 1 / 1; }
.landing-heroes .hero-card-overlay strong { font-size: 15px; }
.landing-heroes .hero-card-body { padding: 12px 14px; }

/* ---- landing: how-it-works flow ------------------------------------ */
.steps-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: clamp(18px, 2vw, 26px); transition: transform .15s ease, border-color .15s ease;
  min-height: 0;
}
.step-card:hover { transform: translateY(-3px); border-color: #3a4170; }
.step-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.step-num {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-family: var(--ff-display); font-weight: 800; font-size: 15px;
}
.step-ic { font-size: 24px; line-height: 1; }
.step-card strong { font-size: 15px; }

/* ---- landing: feature cards ---------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px; transition: transform .15s ease, border-color .15s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: #3a4170; }
.feature-card .feature-icon { flex-shrink: 0; }
.feature-card h3 { font-family: var(--ff-display); }

@media (max-width: 1280px) {
  .hero h1 { font-size: 58px; }
  .hero-copy { max-width: 520px; }
  .hero-collage {
    right: -36px;
    width: min(560px, 44vw);
  }
}

@media (max-width: 1100px) {
  .hero-campaign {
    display: block;
    min-height: 0;
    padding: 28px 0 48px;
  }
  .hero-campaign::before {
    background:
      linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 28%, transparent) 38%, var(--bg) 78%),
      linear-gradient(90deg, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
  }
  .hero-shell { padding-top: 0; }
  .hero-copy { max-width: 720px; }
  .hero-collage {
    position: relative;
    z-index: 0;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(620px, calc(100% - 44px));
    margin: 0 auto;
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    padding: 0;
  }
}

@media (max-width: 900px) {
  .steps-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card { min-height: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-heroes.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 54px; }
  .hero-collage { width: min(560px, calc(100% - 40px)); }
}
@media (max-width: 560px) {
  .steps-flow { grid-template-columns: 1fr 1fr; }
  .step-card { min-height: 0; padding: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---- responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms-shell { grid-template-columns: 1fr; gap: 18px; }
  .terms-aside { position: static; }
}
@media (max-width: 760px) {
  /* Stack any inline two-column layouts (sidebars) on small screens. */
  .grid[style*='grid-template-columns'] { grid-template-columns: 1fr !important; }
  .card[style*='position:sticky'], .card[style*='position: sticky'] { position: static !important; }
  .about-section { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; }
  .about-head { margin-bottom: 28px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 14px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .hide-sm { display: none !important; }
  .hero { padding: 44px 0 24px; }
  .hero-campaign { padding: 24px 0 36px; }
  .hero-shell { margin-top: 24px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 40px; }
  .hero p.hero-subhead { font-size: 20px; }
  .hero p.lede { font-size: 16px; }
  .hero-collage-desktop { display: none; }
  .hero-collage-mobile-view {
    display: grid;
    position: relative;
    z-index: 0;
    top: auto;
    right: auto;
    width: 100vw;
    max-width: none;
    margin: 28px calc(50% - 50vw) 0;
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 6px;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 72%, transparent), transparent);
    box-shadow: none;
  }
  :root[data-theme='light'] .hero-collage-mobile-view {
    background: linear-gradient(180deg, #ffffffd9, transparent);
    box-shadow: none;
  }
  .campaign-card {
    border-radius: 8px;
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  }
  .campaign-card span {
    left: 7px;
    top: 7px;
    padding: 4px 7px;
    font-size: 9px;
  }
  .campaign-card-1,
  .campaign-card-2,
  .campaign-card-3,
  .campaign-card-4,
  .campaign-card-5,
  .campaign-card-6 { transform: none; }
  .stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }
  .stat-strip .num { font-size: 26px; }
  .page-head h1 { font-size: 24px; }
  .about-trust-list { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .hero-shell { margin-top: 22px; }
  .hero-collage-mobile-view {
    width: 100vw;
    padding: 8px 10px;
    gap: 5px;
  }
  .hero p.hero-subhead { font-size: 18px; }
  .hero p.lede { font-size: 15px; }
  .value-band .value-statement { font-size: 30px; }
  .value-band .value-statement-sub { font-size: 15px; }
  .hero .btn-lg { width: 100%; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
}
