/* ============================================================
   Reach — design system (pure CSS, no build step)
   ============================================================ */
:root {
  /* Polaris / Shopify admin tokens (embedded app feel) */
  --ink: #202223;
  --muted: #6d7175;
  --line: #e1e3e5;
  --line-strong: #c9cccf;
  --bg: #f6f6f7;
  --card: #ffffff;
  --brand: #2c6ecb;          /* Polaris interactive */
  --brand-dark: #1f5199;
  --brand-soft: #eaf4ff;
  --saffron: #b98900;        /* Polaris warning */
  --saffron-soft: #fff5d6;
  --green: #008060;          /* Polaris success */
  --green-soft: #e0f5ef;
  --red: #d72c0d;
  --red-soft: #fff4f4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.05);
  --shadow-card: 0 1px 0 rgba(0,0,0,.05);
  --font: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-page: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
/* Isolate Reach UI from any Shopify admin / Polaris host styles that leak into the iframe. */
body.is-embedded .app-main,
body.is-embedded .app-header {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
}
body.is-embedded .app-main a:not(.btn):not(.seg-item):not(.tag) { color: var(--brand); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* Reset common host overrides on layout primitives used across pages. */
.app-main div,
.app-main span,
.app-main p,
.app-main h1,
.app-main h2,
.app-main h3 {
  max-width: none;
}

/* ---------- App shell (embedded admin) ---------- */
.app-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: #1a1a1a;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.app-nav { display: flex; gap: 4px; flex: 1; }
.app-nav a {
  padding: 7px 14px; border-radius: 9px; color: var(--muted);
  font-weight: 600; font-size: 14px;
}
.app-nav a:hover { background: var(--bg); color: var(--ink); }
.app-nav a.active { background: var(--brand-soft); color: var(--brand-dark); }

/* Embedded: Shopify owns chrome (sidebar nav + ui-title-bar). Never show our header. */
body.is-embedded .app-header { display: none !important; }
body.is-embedded {
  background: var(--bg);
}
body.is-embedded .app-main.polaris-page {
  /* Match Shopify admin page gutters */
  max-width: 100%;
  margin: 0;
  padding: 20px 20px 40px;
}
@media (min-width: 768px) {
  body.is-embedded .app-main.polaris-page {
    padding: 24px 32px 48px;
  }
}
@media (min-width: 1200px) {
  body.is-embedded .app-main.polaris-page {
    padding: 24px 40px 56px;
    max-width: 1200px;
    margin: 0 auto;
  }
}

.plan-badge {
  font-size: 12px; font-weight: 550; padding: 2px 8px; border-radius: 8px;
  background: var(--green-soft); color: #0c5132;
  white-space: nowrap;
}
.plan-badge.free { background: #e4e5e7; color: #202223; }

.app-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  width: 100%;
  box-sizing: border-box;
}
/* padding for embedded is set with .polaris-page above */

/* ---------- Cards & stats ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  min-width: 0;
}
.card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0;
}
.card .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.45; }

/* Prefer CSS grid; flex fallbacks keep layout if a host stylesheet fights grid. */
.grid {
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.grid > * { min-width: 0; }
@supports (display: grid) {
  .grid { display: grid; gap: 16px; }
}
.grid.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.grid.stats > .stat {
  flex: 1 1 170px;
  min-width: 150px;
}
@supports (display: grid) {
  .grid.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
  .grid.stats > .stat { flex: initial; min-width: 0; }
}
.grid.cols-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.grid.cols-2 > * {
  flex: 1 1 320px;
  min-width: 0;
}
@supports (display: grid) {
  .grid.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .grid.cols-2 > * { flex: initial; }
}
@media (max-width: 760px) {
  .grid.cols-2 { display: flex; flex-direction: column; }
  @supports (display: grid) {
    .grid.cols-2 { display: grid; grid-template-columns: 1fr; }
  }
}

.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 16px 18px;
}
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 550; }
.stat .value { font-size: 22px; font-weight: 650; letter-spacing: -0.015em; margin-top: 4px; line-height: 1.2; color: var(--ink); }
.stat .delta { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.stat .value.green { color: var(--green); }
.stat .value.brand { color: var(--brand); }

/* ---------- Funnel (dashboard conversion funnel) ---------- */
.funnel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.funnel-row:last-child { border-bottom: 0; }
.funnel-row .fname {
  font-weight: 600; font-size: 14px;
  flex: 0 0 130px; width: 130px; max-width: 36%;
}
.funnel-track {
  flex: 1 1 auto;
  min-width: 48px;
  background: var(--bg);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}
.funnel-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  min-width: 4px;
}
.funnel-row.highlight .funnel-fill { background: linear-gradient(90deg, var(--green), #2db88a); }
.funnel-count {
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex: 0 0 64px;
  width: 64px;
}
.funnel-cv {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex: 0 0 56px;
  width: 56px;
}
@media (max-width: 640px) {
  .funnel-row .fname { flex-basis: 100px; width: 100px; }
  .funnel-cv { display: none; }
}

/* ---------- Chart ---------- */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  width: 100%;
  min-height: 160px;
  padding-top: 8px;
}
.chart .bar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.chart .bar .col {
  width: 100%;
  max-width: 28px;
  background: var(--brand-soft);
  border: 1px solid #b4d5f5;
  border-radius: 6px 6px 0 0;
  min-height: 2px;
  transition: background .2s, height .2s;
  /* height set inline as % of the flex column above the day label */
  flex: 0 0 auto;
  align-self: center;
}
.chart .bar:hover .col { background: var(--brand); border-color: var(--brand); }
.chart .bar .day {
  font-size: 10px;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}
.chart .bar .col.is-empty {
  height: 2px !important;
  background: #e2e8f0;
  border-color: #e2e8f0;
  opacity: .7;
}

/* ---------- Tables ---------- */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); }
table.list tr:last-child td { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 550; font-size: 13px; cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s;
  font-family: var(--font); text-decoration: none; line-height: 1.25;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.btn-primary { background: #1a1a1a; color: #fff; border-color: #1a1a1a; } /* Polaris primary (black) */
.btn-primary:hover { background: #000; color: #fff; border-color: #000; }
.btn-saffron { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-saffron:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost {
  background: #fff; border-color: var(--line-strong); color: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.btn-ghost:hover { background: var(--bg); border-color: #8c9196; color: var(--ink); }
.btn-danger { background: #fff; border-color: #e0b3b2; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 14px; border-radius: 10px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field label .req { color: var(--red); font-weight: 800; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.input, input[type=text], input[type=url], input[type=password], textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: var(--font); background: #fff; color: var(--ink);
}
.input:focus, input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
textarea { resize: vertical; }

/* ---------- Badges / tags / alerts ---------- */
.tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 550; padding: 2px 8px;
  border-radius: 8px; background: #e4e5e7; color: #202223;
  line-height: 1.4; letter-spacing: 0;
}
.tag.green { background: var(--green-soft); color: #0c5132; }
.tag.amber { background: var(--saffron-soft); color: #5e4200; }
.tag.gray { background: #e4e5e7; color: #6d7175; }

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid transparent; line-height: 1.45;
}
.alert.success { background: var(--green-soft); color: #0c5132; border-color: #98c9b6; }
.alert.error { background: var(--red-soft); color: #8e1b0d; border-color: #e0b3b2; }
.alert.info { background: var(--brand-soft); color: #1f5199; border-color: #b4d5f5; }

/* ---------- Callout banners (Performance / status) ---------- */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  margin-bottom: 16px;
  line-height: 1.5;
}
.callout-info {
  background: #eef5ff;
  border-color: #b4d5f5;
  color: #1a365d;
}
.callout-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2b6cb0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  line-height: 1;
}
.callout-body {
  flex: 1 1 auto;
  min-width: 0; /* allow text wrap inside flex */
}
.callout-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 4px;
  line-height: 1.35;
}
.callout-text {
  margin: 0 0 10px;
  font-size: 13px;
  color: #2c5282;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.callout-text a {
  color: #1a365d;
  font-weight: 650;
  text-decoration: underline;
}
.callout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.callout-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b4d5f5;
  font-size: 12px;
  font-weight: 650;
  color: #1a365d;
  white-space: nowrap;
}
.callout-chip-muted {
  color: #718096;
  border-color: #cbd5e0;
  background: #f7fafc;
}
.callout-action {
  margin: 0;
  font-size: 12.5px;
  color: #2c5282;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.callout-action .mono,
.callout-action code.mono {
  display: inline;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #c5daf5;
  font-size: 12px;
  white-space: nowrap;
  color: #1a365d;
}
/* Fix legacy .alert flex children not wrapping long mono text */
.alert {
  flex-wrap: wrap;
}
.alert > * {
  min-width: 0;
  overflow-wrap: anywhere;
}


.page-title {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.3;
}
/* In embedded mode the native ui-title-bar already shows the page name —
   hide the duplicate in-page H1 so the body starts with content. */
body.is-embedded .page-title { display: none; }
body.is-embedded .page-head .page-title { display: none; }
.page-sub { color: var(--muted); margin: 0 0 20px; font-size: 13px; line-height: 1.45; }
body.is-embedded .page-sub { margin-top: 0; }
body.is-embedded .page-head { margin-bottom: 16px; }
body.is-embedded .page-head .page-sub { margin-bottom: 0; }

/* ---------- Tracking status strip (dashboard) ---------- */
.tracking-status { padding: 16px 18px; }
.tracking-status.is-active { border-color: #98c9b6; background: #fff; box-shadow: inset 3px 0 0 var(--green); }
.tracking-status.is-warn { border-color: #e1b878; background: #fff; box-shadow: inset 3px 0 0 var(--saffron); }
.tracking-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.tracking-title { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.tracking-checks { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tracking-checks .ok { color: var(--green); }
.tracking-checks .bad { color: #b45309; }
.tracking-meta { margin-top: 2px; }
.tracking-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Mini funnel — flex so it never collapses to a plain vertical list in the admin iframe. */
.tracking-funnel {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.tf-cell {
  flex: 1 1 120px;
  min-width: 110px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
}
.tf-cell.has { border-color: #98c9b6; background: var(--green-soft); }
.tf-cell.empty { background: var(--bg); }
.tf-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
}
.tf-count {
  display: block;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.tf-cell.empty .tf-count { color: var(--muted); }
@media (max-width: 520px) {
  .tf-cell { flex: 1 1 calc(50% - 10px); min-width: 0; }
}

.alert { gap: 12px; }
.alert form { margin: 0; }

/* ---------- Page head / segments ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head-actions { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg-item { padding: 7px 12px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.seg-item:hover { background: var(--bg); color: var(--ink); }
.seg-item.on { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- Performance funnel ---------- */
.perf-funnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.pf-row {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 28px;
}
.pf-label {
  flex: 0 0 110px;
  width: 110px;
  max-width: 34%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.pf-track {
  flex: 1 1 auto;
  min-width: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  position: relative;
}
.pf-fill {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  min-width: 4px;
}
.pf-count {
  flex: 0 0 56px;
  width: 56px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink);
}
.pf-rate {
  flex: 0 0 52px;
  width: 52px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .pf-label { flex-basis: 90px; width: 90px; }
  .pf-rate { display: none; }
}

.delivery-bars { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.del-row {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  width: 100%;
}
.del-row > span:first-child {
  flex: 0 0 70px;
  width: 70px;
  font-weight: 600;
}
.del-track {
  flex: 1 1 auto;
  min-width: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}
.del-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 4px;
}
.del-fill.browser { background: var(--brand); }
.del-fill.server { background: var(--green); }
.del-row > strong {
  flex: 0 0 56px;
  width: 56px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Product feed ---------- */
.feed-hero { background: linear-gradient(180deg, #f8fafc 0%, #fff 55%); }
.feed-hero .eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.feed-hero-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.feed-hero-lede { color: var(--muted); max-width: 640px; margin: 0 0 18px; }
.feed-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.pipeline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pipe-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--ink);
}
.pipe-chip.on { background: var(--brand-soft); border-color: #c7d2fe; color: var(--brand-dark); }
.pipe-arrow { color: var(--muted); font-weight: 700; }

.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .fi {
  width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft);
  color: var(--brand-dark); display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0; font-size: 13px;
}
.feature-list .fi.ok { background: var(--green-soft); color: var(--green); }
.feature-list .fi.warn { background: #fffbeb; color: #b45309; }

.feed-url-box {
  display: flex; gap: 8px; align-items: center; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.feed-url-box code {
  flex: 1; font-size: 12px; word-break: break-all; color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.hint { color: var(--muted); font-size: 12.5px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }

/* page-head nests title + sub; keep sub margin tight under the flex row */
.page-head .page-title { margin-bottom: 2px; }
.page-head .page-sub { margin-bottom: 0; }

/* ---------- Landing page ---------- */
.landing { background: #fff; color: var(--ink); }
.landing .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.landing .nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.landing .hero { padding: 72px 0 56px; text-align: center; }
.landing .hero h1 {
  font-size: clamp(30px, 5vw, 48px); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.1; margin: 0 auto 18px; max-width: 800px;
}
.landing .hero h1 .grad {
  background: linear-gradient(90deg, var(--brand), #9333ea);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing .hero p.lede { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.landing .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: #fffbeb;
  border: 1px solid #fde68a; color: #92400e; font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.landing .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.landing .trust { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.landing .trust span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.landing section { padding: 56px 0; border-top: 1px solid var(--line); }
.landing h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; text-align: center; margin: 0 0 12px; }
.landing section > .wrap > p.sec-lede { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.funnel-strip { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.funnel-strip .chip {
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 13.5px;
  padding: 10px 16px; border-radius: 10px;
}
.funnel-strip .chip.dark { background: var(--ink); color: #fff; }
.funnel-strip .arrow { color: var(--muted); font-size: 18px; }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 720px; margin: 0 auto; }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.price-card .name { font-weight: 800; font-size: 17px; }
.price-card .price { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; margin: 8px 0 2px; }
.price-card .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card .per { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.price-card li { padding: 6px 0; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 800; }
.ribbon {
  position: absolute; top: -11px; right: 18px; background: var(--saffron); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.faq details p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.landing .footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   Onboarding carousel (post-install welcome)
   ============================================================ */
.onb {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 0 40px;
}
.onb-card {
  width: 100%;
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 32px 22px;
  overflow: hidden;
}
@media (max-width: 560px) { .onb-card { padding: 22px 18px 18px; } }

.onb-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.onb-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.onb-dot.is-active { width: 26px; background: var(--brand); }

.onb-track { position: relative; }
.onb-slide { animation: onb-fade .28s ease; }
.onb-slide[hidden] { display: none; }
@keyframes onb-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.onb-art {
  width: 100%;
  margin: 0 auto 22px;
  max-width: 380px;
}
.onb-art svg { width: 100%; height: auto; display: block; }
.onb-art-sm { max-width: 320px; margin-bottom: 16px; }

.onb-title {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-align: center;
  color: var(--ink);
}
.onb-lede {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  margin: 0 auto 18px;
  max-width: 480px;
}
.onb-lede strong { color: var(--ink); }

.onb-points {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.onb-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink); font-weight: 550;
}
.onb-tick {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 1px;
}

.onb-funnel {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; justify-content: center;
  margin: 4px auto 4px;
}
.onb-chip {
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: 12.5px;
  padding: 6px 12px; border-radius: 999px;
}
.onb-chip.dark { background: var(--ink); color: #fff; }
.onb-arrow { color: var(--muted); font-weight: 700; }

.onb-form { max-width: 420px; margin: 0 auto; text-align: left; }
.onb-form .field { margin-bottom: 14px; }
.onb-actions {
  display: flex; flex-direction: column; gap: 10px; margin-top: 20px;
}
.onb-actions .btn { width: 100%; justify-content: center; }

.onb-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 24px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.onb-nav-right { display: flex; gap: 8px; align-items: center; }
.onb-nav--final { border-top-color: transparent; }
.onb-nav--final .onb-skip { visibility: hidden; }
