/* ═══════════════════════════════════════════════════════════
   GROWTH ENGINE — style.css
   ═══════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --bg:           #f4f3ef;
  --surface:      #ffffff;
  --surface2:     #eceae5;
  --border:       rgba(0,0,0,0.07);
  --border-md:    rgba(0,0,0,0.12);
  --border-dark:  rgba(0,0,0,0.18);

  --blue:         #1d4ed8;
  --blue-s:       rgba(29,78,216,0.08);
  --teal:         #0f766e;
  --teal-s:       rgba(15,118,110,0.08);
  --purple:       #6d28d9;
  --purple-s:     rgba(109,40,217,0.08);
  --amber:        #b45309;
  --amber-s:      rgba(180,83,9,0.08);
  --coral:        #c2410c;
  --coral-s:      rgba(194,65,12,0.08);
  --green:        #15803d;
  --green-s:      rgba(21,128,61,0.08);

  --text:         #111111;
  --text-2:       #444444;
  --text-3:       #888888;

  --mono:         'DM Mono', monospace;
  --sans:         'Syne', sans-serif;
  --sidebar-w:    228px;
  --sidebar-bg:   #0d0d0d;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--sans); }

/* ── APP SHELL ──────────────────────────────────────────────── */
#app   { display: flex; height: 100vh; }
#content { flex: 1; overflow-y: auto; overflow-x: hidden; }
#page-container { min-height: 100%; }

/* ── SIDEBAR ────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo img {
  width: 100%;
  max-width: 140px;
  display: block;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}
.logo-mark {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.logo-mark em { color: var(--purple); font-style: normal; }
.logo-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  margin-top: 5px;
  letter-spacing: 0.4px;
}

#main-nav {
  flex: 1;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.nav-section {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  padding: 14px 20px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: color .14s, background .14s, border-color .14s;
  position: relative;
  user-select: none;
}
.nav-item:hover { color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.04); }
.nav-item.active {
  color: #fff;
  border-left-color: var(--purple);
  background: rgba(109,40,217,0.14);
}
.nav-icon {
  font-size: 13px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: .7;
}
.nav-item.active .nav-icon { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--purple);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.api-status { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.status-dot.ok     { background: var(--green); box-shadow: 0 0 6px var(--green); animation: blink 2.5s ease-in-out infinite; }
.status-dot.error  { background: var(--coral); box-shadow: 0 0 6px var(--coral); }
.status-dot.loading{ background: var(--amber); }
.status-text { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.35); }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header { padding: 36px 40px 0; margin-bottom: 28px; }
.page-title  { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.page-sub    { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 5px; letter-spacing: .3px; }
.page-content{ padding: 0 40px 64px; }

/* ── GRID ───────────────────────────────────────────────────── */
.g2   { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.g3   { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.g4   { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.g5   { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.g2-1 { display:grid; grid-template-columns:2fr 1fr; gap:14px; }

/* ── CARD ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}
.card + .card { margin-top: 14px; }
.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title { font-size: 13px; font-weight: 700; }
.card-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 5px;
}

/* ── KPI CARDS ──────────────────────────────────────────────── */
.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content:'';
  position:absolute;
  left:0; top:0;
  width:3px; height:100%;
  border-radius:10px 0 0 10px;
}
.kpi.c-purple::before { background:var(--purple); }
.kpi.c-teal::before   { background:var(--teal); }
.kpi.c-blue::before   { background:var(--blue); }
.kpi.c-green::before  { background:var(--green); }
.kpi.c-amber::before  { background:var(--amber); }

.kpi-label { font-family:var(--mono); font-size:10px; letter-spacing:.9px; text-transform:uppercase; color:var(--text-3); margin-bottom:8px; }
.kpi-value { font-size:26px; font-weight:800; letter-spacing:-1px; line-height:1; }
.kpi-delta { font-family:var(--mono); font-size:11px; color:var(--text-3); margin-top:4px; }
.kpi-delta.up   { color:var(--green); }
.kpi-delta.down { color:var(--coral); }

/* ── CHART ──────────────────────────────────────────────────── */
.chart-wrap { height:180px; margin-top:6px; }
.chart-wrap svg { width:100%; height:100%; }

/* ── ACTIVITY ───────────────────────────────────────────────── */
.activity-item {
  display:flex; align-items:flex-start; gap:12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom:none; }
.act-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; margin-top:5px; }
.act-text { font-family:var(--mono); font-size:11px; color:var(--text-2); line-height:1.5; }
.act-time { font-family:var(--mono); font-size:10px; color:var(--text-3); margin-top:1px; }

/* ── SOURCE CARDS ───────────────────────────────────────────── */
.source-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:20px; }

.source-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:16px 14px;
}
.source-card h3 { font-size:13px; font-weight:700; margin-bottom:10px; }
.source-metric { font-family:var(--mono); font-size:10px; color:var(--text-2); margin-bottom:3px; }
.source-metric span { color:var(--text-3); }

.status-pill {
  display:inline-flex; align-items:center; gap:5px;
  font-family:var(--mono); font-size:9px; letter-spacing:.5px;
  padding:3px 8px; border-radius:3px; margin-top:10px;
}
.pill-live   { background:var(--green-s); color:var(--green); }
.pill-sim    { background:var(--purple-s); color:var(--purple); }
.pill-static { background:var(--amber-s); color:var(--amber); }
.pill-dot { width:5px; height:5px; border-radius:50%; background:currentColor; }

/* ── UPLOAD ─────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-dark);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.upload-zone:hover, .upload-zone.over {
  border-color: var(--purple);
  background: var(--purple-s);
}
.upload-icon { font-size:32px; margin-bottom:10px; }
.upload-title { font-size:14px; font-weight:700; margin-bottom:6px; }
.upload-sub { font-family:var(--mono); font-size:11px; color:var(--text-3); }
.btn-upload {
  display:inline-block; margin-top:14px;
  padding:8px 20px; background:var(--purple); color:#fff;
  border:none; border-radius:6px; font-size:13px; font-weight:700;
  cursor:pointer; transition:opacity .14s;
}
.btn-upload:hover { opacity:.88; }
#file-input { display:none; }

/* ── UPLOAD RESULT ──────────────────────────────────────────── */
.upload-result {
  margin-top: 14px;
  background: var(--green-s);
  border: 1px solid rgba(21,128,61,.2);
  border-radius:8px;
  padding:14px 18px;
  font-family:var(--mono);
  font-size:11px;
  color:var(--green);
  line-height:1.7;
  display:none;
}

/* ── ATOM COLUMNS ───────────────────────────────────────────── */
.atom-columns { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }

.atom-col {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
}
.atom-col-hd {
  padding:12px 14px 10px;
  border-bottom:1px solid var(--border);
}
.atom-col-label { font-family:var(--mono); font-size:9px; letter-spacing:1px; text-transform:uppercase; color:var(--text-3); margin-bottom:4px; }
.atom-col-title { font-size:13px; font-weight:700; }
.atom-col-count { font-family:var(--mono); font-size:10px; color:var(--text-3); margin-top:2px; }

.atom-col.ac-purple .atom-col-title { color:var(--purple); }
.atom-col.ac-blue   .atom-col-title { color:var(--blue); }
.atom-col.ac-teal   .atom-col-title { color:var(--teal); }
.atom-col.ac-green  .atom-col-title { color:var(--green); }
.atom-col.ac-coral  .atom-col-title { color:var(--coral); }

.atom-item {
  padding:9px 14px;
  border-bottom:1px solid var(--border);
  cursor:pointer;
  transition:background .12s;
}
.atom-item:last-child { border-bottom:none; }
.atom-item:hover { background:var(--bg); }
.atom-id { font-family:var(--mono); font-size:9px; color:var(--text-3); margin-bottom:2px; }
.atom-snippet { font-family:var(--mono); font-size:10px; color:var(--text-2); line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.atom-connections {
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:8px;
  padding:14px 18px;
  margin-top:14px;
}
.conn-label { font-family:var(--mono); font-size:9px; letter-spacing:1px; text-transform:uppercase; color:var(--text-3); margin-bottom:8px; }
.conn-row { display:flex; flex-wrap:wrap; gap:10px; }
.conn-item { font-family:var(--mono); font-size:11px; color:var(--text-2); }
.conn-via { color:var(--purple); }

/* ── PATTERN CARDS ──────────────────────────────────────────── */
.pattern-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }

.pcard {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:16px 18px;
  transition:box-shadow .18s, transform .18s;
}
.pcard:hover { box-shadow:0 4px 16px rgba(0,0,0,.07); transform:translateY(-1px); }
.pcard.hidden { display:none; }

.pcard-formula {
  font-family:var(--mono);
  font-size:12px;
  color:var(--purple);
  font-weight:500;
  line-height:1.5;
  margin-bottom:10px;
}
.pcard-formula em { color:var(--text-3); font-style:normal; font-size:11px; }

.pcard-metrics { display:flex; gap:14px; margin-bottom:10px; }
.pm { display:flex; flex-direction:column; gap:2px; }
.pm .lbl { font-family:var(--mono); font-size:9px; letter-spacing:.9px; text-transform:uppercase; color:var(--text-3); }
.pm .val { font-family:var(--mono); font-size:15px; font-weight:500; color:var(--text); }
.pm .val.roas-hi { color:var(--green); }
.pm .val.roas-lo { color:var(--coral); }

.conf-bar { height:3px; background:var(--border); border-radius:2px; overflow:hidden; margin-top:8px; }
.conf-fill { height:100%; border-radius:2px; transition:width .7s ease; }

.pcard-desc { font-family:var(--mono); font-size:10px; color:var(--text-3); line-height:1.5; margin-top:8px; }
.pcard-atoms { display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; }
.atom-tag { font-family:var(--mono); font-size:9px; padding:2px 6px; border-radius:3px; border:1px solid var(--border); color:var(--text-3); }

/* ── FILTER BAR ─────────────────────────────────────────────── */
.filter-bar {
  display:flex; align-items:center; gap:14px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:8px; padding:12px 18px; margin-bottom:18px;
}
.filter-lbl { font-family:var(--mono); font-size:11px; color:var(--text-2); white-space:nowrap; }
.filter-slider {
  flex:1; -webkit-appearance:none; appearance:none;
  height:3px; background:var(--border); border-radius:2px; outline:none; cursor:pointer;
}
.filter-slider::-webkit-slider-thumb {
  -webkit-appearance:none; width:14px; height:14px;
  border-radius:50%; background:var(--purple); cursor:pointer;
}
.filter-val { font-family:var(--mono); font-size:12px; color:var(--purple); min-width:34px; text-align:right; }
.filter-count { font-family:var(--mono); font-size:11px; color:var(--text-3); }

/* ── GENERATE FORM ──────────────────────────────────────────── */
.gen-layout { display:grid; grid-template-columns:340px 1fr; gap:24px; align-items:start; }

.gen-form { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:24px; }
.form-group { margin-bottom:18px; }
.form-label { font-family:var(--mono); font-size:11px; color:var(--text-2); display:block; margin-bottom:6px; }

.form-input, .form-select, .form-textarea {
  width:100%; padding:9px 13px;
  border:1px solid var(--border-md); border-radius:6px;
  font-family:var(--sans); font-size:13px; color:var(--text);
  background:var(--bg); outline:none;
  transition:border-color .14s, background .14s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color:var(--purple); background:var(--surface);
}
.form-textarea { min-height:80px; resize:vertical; line-height:1.5; }
.form-select { cursor:pointer; }

.btn-gen {
  width:100%; padding:12px;
  background:var(--purple); color:#fff;
  border:none; border-radius:8px;
  font-size:14px; font-weight:700;
  display:flex; align-items:center; justify-content:center; gap:8px;
  transition:opacity .14s, transform .14s;
}
.btn-gen:hover:not(:disabled) { opacity:.9; transform:translateY(-1px); }
.btn-gen:disabled { opacity:.45; cursor:not-allowed; transform:none; }

.gen-hint {
  font-family:var(--mono); font-size:10px; color:var(--text-3);
  text-align:center; margin-top:10px; line-height:1.5;
}

/* ── PIPELINE ───────────────────────────────────────────────── */
.pipeline {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:22px 24px;
}
.pipeline-title { font-size:13px; font-weight:700; margin-bottom:20px; }

.p-step {
  display:flex; gap:14px; padding:12px 0;
  position:relative;
}
.p-step::after {
  content:'';
  position:absolute;
  left:14px; top:40px;
  width:1px; height:calc(100% - 24px);
  background:var(--border);
}
.p-step:last-child::after { display:none; }

.p-num {
  width:30px; height:30px; border-radius:50%;
  border:1px solid var(--border-md);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:10px; color:var(--text-3);
  flex-shrink:0; background:var(--surface);
  transition:all .3s ease; position:relative; z-index:1;
}
.p-step.s-active .p-num { border-color:var(--purple); color:var(--purple); background:var(--purple-s); }
.p-step.s-done   .p-num { border-color:var(--green); background:var(--green); color:#fff; font-size:12px; }
.p-step.s-error  .p-num { border-color:var(--coral); background:var(--coral); color:#fff; }

.p-body { flex:1; padding-top:4px; }
.p-title { font-size:13px; font-weight:700; color:var(--text); margin-bottom:2px; }
.p-layer { font-family:var(--mono); font-size:9px; letter-spacing:.9px; text-transform:uppercase; color:var(--text-3); margin-bottom:4px; }
.p-desc  { font-family:var(--mono); font-size:11px; color:var(--text-3); line-height:1.5; }

.p-detail {
  margin-top:8px; padding:10px 14px;
  background:var(--bg); border:1px solid var(--border);
  border-radius:6px;
  font-family:var(--mono); font-size:11px; color:var(--text-2);
  line-height:1.65; display:none;
  animation:fadeIn .25s ease;
}
.p-step.s-active .p-detail,
.p-step.s-done   .p-detail { display:block; }

.p-status {
  display:inline-block; font-family:var(--mono); font-size:10px;
  padding:2px 8px; border-radius:3px; margin-top:6px;
}
.ps-wait    { background:var(--bg); color:var(--text-3); border:1px solid var(--border); }
.ps-running { background:var(--purple-s); color:var(--purple); }
.ps-ok      { background:var(--green-s); color:var(--green); }
.ps-error   { background:var(--coral-s); color:var(--coral); }

/* ── OUTPUT GRID ────────────────────────────────────────────── */
.output-controls {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px;
}
.output-count { font-family:var(--mono); font-size:12px; color:var(--text-3); }
.btn-sm {
  padding:7px 16px;
  background:var(--surface); border:1px solid var(--border-md);
  border-radius:6px; font-size:12px; font-weight:700;
  color:var(--text); transition:border-color .14s;
}
.btn-sm:hover { border-color:var(--border-dark); }
.btn-sm.primary { background:var(--purple); color:#fff; border-color:var(--purple); }

.ad-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }

.ad-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  transition:transform .18s, box-shadow .18s;
}
.ad-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.08); }

.ad-img {
  height:158px; position:relative;
  display:flex; align-items:center; justify-content:center;
}
.ad-img-inner {
  width:100%; height:100%;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:6px;
}
.ad-img-icon { font-size:26px; opacity:.6; }
.ad-img-prompt {
  font-family:var(--mono); font-size:9px; color:rgba(255,255,255,.65);
  text-align:center; padding:0 14px; line-height:1.4;
  max-width:180px;
}

.conf-badge {
  position:absolute; top:10px; right:10px;
  font-family:var(--mono); font-size:10px; font-weight:500;
  padding:3px 8px; border-radius:4px;
  backdrop-filter:blur(6px);
}
.cb-high { background:rgba(21,128,61,.85); color:#fff; }
.cb-mid  { background:rgba(180,83,9,.85); color:#fff; }
.cb-low  { background:rgba(109,40,217,.85); color:#fff; }

.tier-badge {
  position:absolute; top:10px; left:10px;
  font-family:var(--mono); font-size:9px;
  padding:2px 7px; border-radius:3px;
  backdrop-filter:blur(6px);
  background:rgba(0,0,0,.45); color:rgba(255,255,255,.8);
}

.ad-body { padding:15px 16px 18px; }
.ad-num  { font-family:var(--mono); font-size:9px; letter-spacing:.9px; text-transform:uppercase; color:var(--text-3); margin-bottom:5px; }
.ad-hl   { font-size:15px; font-weight:700; line-height:1.3; margin-bottom:7px; }
.ad-copy { font-family:var(--mono); font-size:11px; color:var(--text-2); line-height:1.6; margin-bottom:11px; }
.ad-cta  { display:inline-block; padding:5px 13px; background:var(--text); color:#fff; font-size:12px; font-weight:700; border-radius:5px; margin-bottom:13px; }

.ad-meta { border-top:1px solid var(--border); padding-top:11px; display:flex; flex-direction:column; gap:5px; }
.ad-meta-row { display:flex; align-items:flex-start; gap:8px; }
.am-lbl { font-family:var(--mono); font-size:9px; letter-spacing:.7px; text-transform:uppercase; color:var(--text-3); white-space:nowrap; min-width:58px; padding-top:1px; }
.am-val { font-family:var(--mono); font-size:10px; color:var(--text-2); line-height:1.45; }
.am-atoms { display:flex; flex-wrap:wrap; gap:3px; }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty { padding:64px 40px; text-align:center; }
.empty-icon  { font-size:38px; opacity:.3; margin-bottom:14px; }
.empty-title { font-size:16px; font-weight:700; color:var(--text-2); margin-bottom:8px; }
.empty-text  { font-family:var(--mono); font-size:12px; color:var(--text-3); line-height:1.6; }
.empty .btn-sm { margin-top:20px; }

/* ── TAGS ───────────────────────────────────────────────────── */
.tag {
  display:inline-flex; align-items:center;
  font-family:var(--mono); font-size:10px;
  padding:2px 8px; border-radius:3px;
}
.t-purple { background:var(--purple-s); color:var(--purple); }
.t-blue   { background:var(--blue-s);   color:var(--blue); }
.t-teal   { background:var(--teal-s);   color:var(--teal); }
.t-green  { background:var(--green-s);  color:var(--green); }
.t-amber  { background:var(--amber-s);  color:var(--amber); }
.t-coral  { background:var(--coral-s);  color:var(--coral); }

/* ── MINI TABLE ─────────────────────────────────────────────── */
.mini-table { width:100%; border-collapse:collapse; }
.mini-table th {
  font-family:var(--mono); font-size:9px; letter-spacing:.9px; text-transform:uppercase;
  color:var(--text-3); text-align:left; padding:0 10px 8px; border-bottom:1px solid var(--border);
}
.mini-table td {
  font-family:var(--mono); font-size:11px; color:var(--text-2);
  padding:8px 10px; border-bottom:1px solid var(--border); vertical-align:middle;
}
.mini-table tr:last-child td { border-bottom:none; }
.mini-table tr:hover td { background:var(--bg); }
.td-hi { font-weight:500; color:var(--text); }
.td-green { color:var(--green); }
.td-coral { color:var(--coral); }
.td-amber { color:var(--amber); }

/* ── SPINNER ────────────────────────────────────────────────── */
.spinner {
  width:16px; height:16px;
  border:2px solid rgba(255,255,255,.3);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .6s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border-md); border-radius:3px; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInFast { from{opacity:0} to{opacity:1} }

.fade { animation:fadeIn .3s ease both; }
.fade-1 { animation-delay:.04s; }
.fade-2 { animation-delay:.09s; }
.fade-3 { animation-delay:.14s; }
.fade-4 { animation-delay:.19s; }
.fade-5 { animation-delay:.24s; }
.fade-6 { animation-delay:.29s; }

/* ── NOTICE BAR ─────────────────────────────────────────────── */
.notice {
  padding:10px 18px; border-radius:7px;
  font-family:var(--mono); font-size:11px; line-height:1.5; margin-bottom:16px;
}
.notice-green  { background:var(--green-s);  color:var(--green);  border:1px solid rgba(21,128,61,.18); }
.notice-amber  { background:var(--amber-s);  color:var(--amber);  border:1px solid rgba(180,83,9,.18); }
.notice-coral  { background:var(--coral-s);  color:var(--coral);  border:1px solid rgba(194,65,12,.18); }
.notice-purple { background:var(--purple-s); color:var(--purple); border:1px solid rgba(109,40,217,.18); }

/* ── DIVIDER ─────────────────────────────────────────────────── */
.divider { height:1px; background:var(--border); margin:20px 0; }

/* ── INFO ROW ───────────────────────────────────────────────── */
.info-row { display:flex; align-items:flex-start; gap:8px; padding:7px 0; border-bottom:1px solid var(--border); }
.info-row:last-child { border-bottom:none; }
.ir-lbl { font-family:var(--mono); font-size:10px; letter-spacing:.7px; text-transform:uppercase; color:var(--text-3); min-width:110px; padding-top:1px; }
.ir-val { font-family:var(--mono); font-size:11px; color:var(--text-2); line-height:1.5; }
.color-dot { display:inline-block; width:12px; height:12px; border-radius:50%; border:1px solid rgba(0,0,0,.12); vertical-align:middle; margin-right:4px; }

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE (home)
   ═══════════════════════════════════════════════════════════ */

/* ── ROOT ───────────────────────────────────────────────────── */
.lp-root {
  background: #fff;
  display: flex; flex-direction: column;
  min-height: 100%;
}

/* ── SHARED ─────────────────────────────────────────────────── */
.lp-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: #6B7280; margin-bottom: 16px; display: flex; align-items: center; gap: 6px;
}
.lp-eyebrow-purple { color: #6D28D9; }

/* ══════════════════════════════════════════════════════════
   SECTION 1 — HERO
   ══════════════════════════════════════════════════════════ */
.lp-hero {
  background: #fff;
  padding: 52px 64px 52px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}
.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 72px;
  align-items: start;
  width: 100%; max-width: 1280px;
  margin: 0 auto;
}

/* ── Headline ── */
.lp-title {
  font-family: 'Inter', sans-serif;
  font-size: 64px; font-weight: 900;
  line-height: 0.97; letter-spacing: -0.045em;
  color: #050505; margin: 0 0 20px;
}
.lp-accent { color: #6D28D9; }

/* ── Body copy ── */
.lp-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px; color: #4B5563;
  line-height: 1.55; max-width: 520px;
  margin-bottom: 22px;
}

/* ── Connected strip ── */
.lp-connected-card {
  display: flex; align-items: center; gap: 0;
  height: 60px; max-width: 580px;
  background: #fff; border: 1px solid #E5E7EB;
  border-radius: 12px; margin-bottom: 22px;
  overflow: hidden;
}
.lp-connected-logos {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px; flex-shrink: 0;
}
.lp-logo-divider {
  width: 1px; height: 36px;
  background: #E5E7EB; flex-shrink: 0;
}
.lp-connected-text { padding: 0 16px; }
.lp-logo {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lp-logo-meta    { background: #1877f2; }
.lp-logo-shopify { background: #96bf48; }
.lp-logo-weather { background: #FEF3C7; border: 1px solid #FDE68A; }
.lp-connected-title {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; font-weight: 700; color: #050505; margin-bottom: 2px;
}
.lp-connected-sub {
  font-family: var(--mono); font-size: 10px; color: #9CA3AF; line-height: 1.35;
}

/* ── CTA buttons ── */
.lp-ctas { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.lp-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 28px; height: 50px;
  background: #6D28D9; color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(109,40,217,0.22);
  transition: background .14s;
}
.lp-btn-primary:hover { background: #5B21B6; }
.lp-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 28px; height: 50px;
  background: #fff; color: #050505;
  border: 1px solid #D1D5DB; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: border-color .14s, color .14s;
}
.lp-btn-secondary:hover { border-color: #6D28D9; color: #6D28D9; }

/* ── Feature chips ── */
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tag {
  font-family: var(--mono); font-size: 12px; color: #6B7280;
  background: #F8F8F7; border: 1px solid #E5E7EB;
  border-radius: 8px; padding: 0 12px; height: 30px;
  display: inline-flex; align-items: center; white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   SECTION 1 — HERO (exact reference match, ge- prefix)
   ══════════════════════════════════════════════════════════ */

.lp-hero-v2 {
  background: #ececec !important;
  border-bottom: none !important;
  padding: 48px 40px !important;
}
.lp-hero-inner-v2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 56px !important;
  align-items: start !important;
  max-width: 1180px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* ── Left column ── */
.ge-left { padding-top: 8px; }

.ge-eyebrow {
  font-family: 'JetBrains Mono', 'DM Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; color: #4a3aff;
  text-transform: uppercase; margin: 0 0 28px 0;
}
.ge-eyebrow .ge-dot { opacity: .7; margin: 0 6px; }

.ge-headline {
  font-family: 'Inter', sans-serif;
  font-size: 52px; line-height: 1.04;
  letter-spacing: -0.025em; font-weight: 800;
  color: #0b0b10; margin: 0 0 28px 0;
}
.ge-headline .ge-accent { color: #4a3aff; display: inline; }

.ge-sub {
  font-size: 16px; line-height: 1.55;
  color: #4a4a55; max-width: 420px; margin: 0 0 32px 0;
}

.ge-cta-row { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }

.ge-btn-primary {
  appearance: none; border: 0;
  background: #4a3aff; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 14px 22px; border-radius: 10px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -8px rgba(74,58,255,.55);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ge-btn-primary:hover { background: #3f30ee; transform: translateY(-1px); }
.ge-btn-primary:active { transform: translateY(0); }

.ge-meta { display: inline-flex; align-items: center; gap: 8px; color: #6b6b75; font-size: 14px; }
.ge-meta svg { flex-shrink: 0; }

.ge-why {
  background: #fff; border: 1px solid #e6e6ea;
  border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 1px 0 rgba(16,16,24,.03), 0 10px 24px -18px rgba(16,16,24,.18);
  max-width: 420px;
}
.ge-why h3 { font-size: 14px; font-weight: 600; margin: 0 0 12px 0; color: #0b0b10; }
.ge-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ge-why li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #2a2a32; }
.ge-why li .ge-ic {
  width: 22px; height: 22px; color: #4a3aff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Right — product card ── */
.ge-product {
  background: #fff; border-radius: 22px; padding: 14px;
  box-shadow: 0 1px 0 rgba(16,16,24,.04), 0 30px 60px -30px rgba(16,16,24,.18), 0 12px 30px -18px rgba(16,16,24,.12);
}

.ge-hero-img {
  border-radius: 14px; overflow: hidden;
  height: 220px; background: #2a2f3a; position: relative;
}
.ge-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ge-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center; gap: 14px;
  padding: 22px 8px 14px 8px;
}
.ge-step-title { font-size: 15px; font-weight: 600; color: #4a3aff; }
.ge-step-arrow { color: #c9c9d3; }

.ge-step-bodies {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0; padding: 0 8px 18px 8px; align-items: start;
}

.ge-bars { display: grid; gap: 14px; padding-right: 18px; }
.ge-bar-item .ge-label { font-size: 13px; color: #2a2a32; margin-bottom: 8px; }
.ge-bar {
  height: 6px; background: #eceaff;
  border-radius: 99px; overflow: hidden; position: relative;
}
.ge-bar > span { display: block; height: 100%; background: #4a3aff; border-radius: 99px; }
.ge-bar-caption { font-size: 12px; color: #6b6b75; margin-top: 6px; }

.ge-insights {
  display: grid; gap: 14px; padding: 4px 12px;
  border-left: 1px solid #ededf1; border-right: 1px solid #ededf1;
}
.ge-insight { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #2a2a32; }
.ge-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #4a3aff; color: #4a3aff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.ge-output { display: grid; justify-items: center; gap: 8px; padding-left: 18px; }
.ge-thumb { width: 110px; height: 110px; border-radius: 10px; overflow: hidden; background: #ddd; }
.ge-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ge-cap { font-size: 12.5px; color: #2a2a32; }

.ge-pattern-note {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; border-top: 1px solid #ededf1;
  padding: 14px 8px; font-size: 13px; color: #6b6b75;
}
.ge-pattern-note svg { color: #8a8a93; }

.ge-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; padding: 8px 8px 18px 8px;
}
.ge-stat { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ge-ic-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: #e8f6ee; color: #16a34a;
  display: inline-flex; align-items: center; justify-content: center;
}
.ge-num { font-size: 22px; font-weight: 700; color: #16a34a; letter-spacing: -0.01em; }
.ge-lbl { font-size: 11px; color: #6b6b75; letter-spacing: 0.08em; margin-top: 2px; text-align: center; }

.ge-generate-btn {
  width: 100%; appearance: none; border: 0;
  background: #4a3aff; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 16px 20px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 22px -10px rgba(74,58,255,.55);
  transition: transform .15s ease, background .15s ease;
}
.ge-generate-btn:hover { background: #3f30ee; transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   INSIGHT CARD — right col hero
   ══════════════════════════════════════════════════════════ */
.ic-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
}
.ic-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #E5E7EB;
}
.ic-header-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700; color: #050505; margin-bottom: 3px;
}
.ic-header-sub   { font-family: var(--mono); font-size: 10.5px; color: #9CA3AF; }
.ic-live {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: #6D28D9; background: rgba(109,40,217,.08);
  border: 1px solid rgba(109,40,217,.2);
  padding: 3px 10px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0; margin-left: 10px; margin-top: 1px;
}
.ic-block { padding: 14px 22px 10px; }
.ic-block + .ic-block { border-top: 1px solid #E5E7EB; padding-top: 14px; }
.ic-block-label {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase;
  margin-bottom: 10px;
}
.ic-label-green { color: #059669; }
.ic-label-red   { color: #E44816; }
.ic-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid #E5E7EB;
}
.ic-row:last-child { border-bottom: none; }
.ic-row-info { flex: 1; min-width: 0; padding-right: 16px; }
.ic-row-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600; color: #050505; margin-bottom: 2px;
}
.ic-row-sub { font-family: var(--mono); font-size: 10px; color: #9CA3AF; line-height: 1.3; }
.ic-score {
  font-family: var(--mono); font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.ic-score-green { color: #059669; }
.ic-score-red   { color: #E44816; }
.ic-cta {
  display: block; width: 100%; padding: 16px;
  background: #6D28D9; color: #fff;
  border: none;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: background .14s;
}
.ic-cta:hover { background: #5B21B6; }

/* ══════════════════════════════════════════════════════════
   SECTION 2 — GENERATE
   ══════════════════════════════════════════════════════════ */
.lp-generate {
  background: #F7F7F5;
  border-top: 1px solid #E5E5E5;
  padding: 52px 64px 60px;
  flex-shrink: 0;
}
.lp-gen-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
  width: 100%; max-width: 1280px;
  margin: 0 auto;
}

/* ── Left col ── */
.lp-gen-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px; font-weight: 800;
  line-height: 1.12; letter-spacing: -0.03em;
  color: #050505; margin: 10px 0 14px;
}
.lp-gen-title strong { font-weight: 900; }
.lp-gen-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px; color: #4B5563;
  line-height: 1.55; margin-bottom: 20px;
}
.lp-prompt-wrap {
  display: flex; align-items: center;
  background: #fff; border: 1px solid #DDE1E6;
  border-radius: 12px; padding: 6px 6px 6px 18px;
  gap: 8px; margin-bottom: 14px; height: 58px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: border-color .14s;
}
.lp-prompt-wrap:focus-within { border-color: #6D28D9; }
.lp-prompt-input {
  flex: 1; border: none; outline: none;
  font-family: 'Inter', sans-serif; font-size: 14px; color: #050505;
  background: transparent; min-width: 0;
}
.lp-prompt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 18px; height: 46px;
  background: #6D28D9; color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .14s;
}
.lp-prompt-btn:hover { background: #5B21B6; }
.lp-gen-hint {
  display: flex; align-items: flex-start; gap: 7px;
  font-family: var(--mono); font-size: 11px; color: #9CA3AF;
  line-height: 1.5;
}
.lp-spark { color: #6D28D9; font-size: 12px; flex-shrink: 0; margin-top: 1px; }

/* ── Ad card carousel ── */
.lp-carousel-wrap { position: relative; padding-right: 26px; }
.lp-carousel {
  display: flex; gap: 12px;
  overflow-x: visible;
}
.lp-carousel-next {
  position: absolute; right: -4px; top: 46%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: #fff; border: 1px solid #D1D5DB;
  border-radius: 50%; font-size: 18px; color: #050505;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: all .14s; flex-shrink: 0; z-index: 1;
}
.lp-carousel-next:hover { border-color: #6D28D9; color: #6D28D9; }

.lp-ad-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px; overflow: hidden;
  flex-shrink: 0; width: 212px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow .14s, transform .14s;
}
.lp-ad-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.lac-image { height: 252px; position: relative; overflow: hidden; }
.lac-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.lac-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 44px 13px 13px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.08) 60%, transparent 100%);
}
.lac-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15.5px; font-weight: 400; font-style: italic;
  color: #fff; line-height: 1.22; letter-spacing: 0;
}
.lac-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 10.5px; font-style: normal;
  color: rgba(255,255,255,.82); margin-top: 4px; line-height: 1.38;
}
.lac-shop-btn {
  display: inline-block; margin-top: 11px;
  padding: 6px 20px;
  background: rgba(8,8,8,0.85); color: #fff;
  border-radius: 6px;
  font-family: var(--mono); font-size: 8px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.lac-body { padding: 12px 14px 14px; }
.lac-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px;
}
.lac-num { font-family: var(--mono); font-size: 10px; color: #9CA3AF; font-weight: 500; }
.lac-badge {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
}
.lac-title  {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700; color: #050505; margin-bottom: 3px;
}
.lac-detail { font-family: var(--mono); font-size: 10px; color: #9CA3AF; }
.lp-carousel-footer {
  font-family: var(--mono); font-size: 11px; color: #9CA3AF;
  text-align: center; margin-top: 16px;
}

/* ══════════════════════════════════════════════════════════
   HERO AD PREVIEW CARD  (.hp-*)
   ══════════════════════════════════════════════════════════ */

/* Main card */
.hp-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0,0,0,0.07), 0 4px 14px rgba(0,0,0,0.04);
}

/* ── Image area ── */
.hp-media-wrap {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #111;
}

/* Individual slides */
.hp-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateY(-100%);
  transition: transform 0.86s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
/* Slide currently in view */
.hp-slide-visible {
  transform: translateY(0) !important;
  z-index: 2;
}
/* Slide that is entering (set before animation) */
.hp-slide-enter {
  transform: translateY(-100%) !important;
  z-index: 3;
  transition: none !important;
}
/* Slide exiting downward */
.hp-slide-exit {
  transform: translateY(100%) !important;
  z-index: 1;
  transition: transform 0.86s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Text overlay on image */
.hp-slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 22px 22px;
  background: linear-gradient(to top,
    rgba(0,0,0,0.68) 0%,
    rgba(0,0,0,0.12) 55%,
    transparent 100%);
}
.hp-slide-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px; font-weight: 400; font-style: italic;
  color: #fff; line-height: 1.2; margin-bottom: 7px;
}
.hp-slide-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px; font-style: normal;
  color: rgba(255,255,255,0.84); line-height: 1.45;
}

/* ── Why this worked ── */
.hp-why {
  padding: 18px 22px 22px;
  background: #fff;
}
.hp-why-title {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 600; color: #111;
  margin-bottom: 14px;
}
.hp-why-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.hp-why-items {
  flex: 1; list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 9px;
  transition: opacity 0.28s ease;
}
.hp-why-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; color: #374151; line-height: 1.45;
}
.hp-check {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* ── Metrics ── */
.hp-why-metrics {
  display: flex; flex-direction: column; gap: 14px;
  text-align: right; flex-shrink: 0;
}
.hp-metric-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  color: #9CA3AF; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 2px;
}
.hp-metric-val {
  font-family: var(--mono); font-size: 30px; font-weight: 800;
  color: #059669; line-height: 1;
  transition: opacity 0.28s ease;
}

/* ── Generate CTA inside card ── */
.hp-gen-btn {
  display: block; width: 100%;
  margin-top: 16px;
  padding: 0; height: 44px;
  background: #6D28D9; color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  transition: background .14s;
}
.hp-gen-btn:hover { background: #5B21B6; }

/* ── SHARED ──────────────────────────────────────────────── */
.h-inner { max-width: 1100px; margin: 0 auto; }
.hs-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}

/* ── CTA BUTTONS ─────────────────────────────────────────── */
.hcta-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; background: var(--purple); color: #fff;
  border: none; border-radius: 7px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: opacity .13s, transform .13s; white-space: nowrap;
}
.hcta-primary:hover { opacity: .88; transform: translateY(-1px); }

.hcta-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; background: transparent; color: var(--text);
  border: 1px solid var(--border-dark); border-radius: 7px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: border-color .13s, color .13s, background .13s; white-space: nowrap;
}
.hcta-secondary:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-s); }

.hcta-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.13); border-radius: 7px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .13s; white-space: nowrap;
}
.hcta-ghost:hover { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.24); }

/* ── HERO ────────────────────────────────────────────────── */
.h-hero {
  background: #fff;
  padding: 54px 48px 48px;
  border-bottom: 1px solid var(--border);
}
.h-hero-inner {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 48px; align-items: center;
  max-width: 1280px; margin: 0 auto;
}
.h-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--purple);
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.h-eyebrow::before {
  content: ''; display: inline-block; width: 18px; height: 1.5px;
  background: var(--purple); border-radius: 1px;
}
.h-title {
  font-size: 40px; font-weight: 800;
  line-height: 1.1; letter-spacing: -1.8px;
  color: var(--text); margin-bottom: 16px;
}
.h-title em { color: var(--purple); font-style: normal; }
.h-sub {
  font-size: 15px; color: var(--text-2);
  line-height: 1.7; margin-bottom: 28px; max-width: 490px;
}
.h-ctas { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.h-values {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.hv {
  font-family: var(--mono); font-size: 10px; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 4px 9px; white-space: nowrap;
}

/* ── PRODUCT PREVIEW PANEL ───────────────────────────────── */
.preview-panel {
  background: #fff; border: 1px solid var(--border-md);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
.pp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.pp-title { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-2); }
.pp-badge {
  font-family: var(--mono); font-size: 10px; color: var(--purple);
  background: var(--purple-s); border: 1px solid rgba(109,40,217,.18);
  padding: 2px 8px; border-radius: 3px;
}
.pp-section { padding: 10px 16px; }
.pp-section-label {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 6px; display: flex; align-items: center; gap: 5px;
}
.pp-section-label.worked { color: var(--green); }
.pp-section-label.lost   { color: var(--coral); }
.pp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.pp-row:last-child { border-bottom: none; }
.pp-row-name { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.pp-row-metrics { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.pp-row-roas { font-family: var(--mono); font-size: 14px; font-weight: 700; padding-left: 12px; white-space: nowrap; }
.pp-row-roas.worked { color: var(--green); }
.pp-row-roas.lost   { color: var(--coral); }
.pp-divider { height: 1px; background: var(--border); margin: 0 16px; }
.pp-footer { padding: 11px 16px; border-top: 1px solid var(--border); background: var(--bg); }
.pp-footer button {
  width: 100%; padding: 9px; background: var(--purple); color: #fff;
  border: none; border-radius: 6px;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: opacity .13s;
}
.pp-footer button:hover { opacity: .88; }

/* ── DEEP PATTERN SECTION ────────────────────────────────── */
.h-patterns {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 52px 48px;
}
.h-patterns > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.h-patterns-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 14px; margin-top: 24px;
}

/* Deep pattern card */
.dpc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 20px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .14s, box-shadow .14s;
}
.dpc:hover { border-color: var(--border-md); box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.dpc-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .4px; padding: 4px 10px; border-radius: 5px;
  display: inline-block; align-self: flex-start;
}
.dpc-title {
  font-size: 14px; font-weight: 800; line-height: 1.25;
  letter-spacing: -.3px; color: var(--text);
}
.dpc-body {
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  line-height: 1.7; flex: 1;
}
.dpc-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px; padding-top: 10px; border-top: 1px solid var(--border);
}
.dpc-metrics { display: flex; gap: 14px; }
.dpc-metric { display: flex; flex-direction: column; gap: 2px; }
.dpc-metric-label { font-family: var(--mono); font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: .7px; }
.dpc-metric-val { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.dpc-pattern {
  font-family: var(--mono); font-size: 9px; color: var(--text-3);
  text-align: right; max-width: 110px; line-height: 1.4;
  font-style: italic;
}

/* Combine card */
.h-combine-card {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
  margin-top: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 28px;
}
.hcb-eyebrow {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 7px;
}
.hcb-title {
  font-size: 16px; font-weight: 800; letter-spacing: -.4px;
  color: var(--text); margin-bottom: 9px;
}
.hcb-body {
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  line-height: 1.7; max-width: 520px;
}
.hcb-right {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; flex-shrink: 0;
}
.hcb-atoms {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
}
.hcb-atom {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; border: 1px solid;
  white-space: nowrap;
}
.hcb-plus {
  font-size: 14px; font-weight: 700; color: var(--text-3);
}
.hcb-result { text-align: center; }
.hcb-result-roas {
  font-family: var(--mono); font-size: 32px; font-weight: 700;
  color: var(--green); line-height: 1;
}
.hcb-result-label {
  font-family: var(--mono); font-size: 10px; color: var(--text-2);
  margin-top: 4px;
}
.hcb-result-sub {
  font-family: var(--mono); font-size: 9px; color: var(--text-3);
  margin-top: 2px;
}

.h-patterns-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ── TRUST SECTION ───────────────────────────────────────── */
.h-trust { background: var(--sidebar-bg); padding: 60px 48px; }
.h-trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1280px; margin: 0 auto; }
.h-trust-title { font-size: 26px; font-weight: 800; letter-spacing: -.8px; line-height: 1.18; color: #fff; margin-bottom: 14px; }
.h-trust-sub { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.42); line-height: 1.85; }
.h-trust-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.h-trust-sources { display: flex; flex-direction: column; gap: 8px; }
.hts {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; transition: background .13s;
}
.hts:hover { background: rgba(255,255,255,0.07); }
.hts-icon   { font-size: 16px; flex-shrink: 0; }
.hts-title  { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.hts-detail { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.34); line-height: 1.4; }

/* ── MISSING / EXTRA SELECTORS ───────────────────────────── */
.hs-title {
  font-size: 26px; font-weight: 800; letter-spacing: -.6px;
  color: var(--text); margin: 10px 0 0; line-height: 1.2;
}
.hs-title em { color: var(--purple); font-style: normal; }
.h-insights-cta { margin-top: 22px; }

/* Preview panel — header & row inner elements */
.pp-header-title {
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-2);
}
.pp-header-tag {
  font-family: var(--mono); font-size: 10px; color: var(--purple);
  background: var(--purple-s); border: 1px solid rgba(109,40,217,.18);
  padding: 2px 8px; border-radius: 3px;
}
.pp-row-info { flex: 1; min-width: 0; }
.pp-row-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.pp-row-pattern {
  font-family: var(--mono); font-size: 10px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-footer-btn {
  width: 100%; padding: 9px; background: var(--purple); color: #fff;
  border: none; border-radius: 6px;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: opacity .13s;
}
.pp-footer-btn:hover { opacity: .88; }

/* ══════════════════════════════════════════════════════════
   SECTION 3 — WHY IT'S DIFFERENT  (.wd-*)
   ══════════════════════════════════════════════════════════ */

.wd-section {
  background: #fff;
  border-top: 1px solid #E5E7EB;
  padding: 72px 64px 80px;
  flex-shrink: 0;
}

.wd-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Intro ── */
.wd-intro { margin-bottom: 48px; }

.wd-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: #6D28D9; margin-bottom: 14px;
}

.wd-intro-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px; color: #4B5563;
  line-height: 1.65; max-width: 620px;
}

/* ── Rows ── */
.wd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 20px;
}

/* ── Card ── */
.wd-card {
  background: #F9F9F8;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 28px;
}

.wd-card-h {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 800;
  color: #050505; letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.wd-card-p {
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: #6B7280;
  line-height: 1.55; margin: 0 0 20px;
}

/* ── Stats grid (card 1) ── */
.wd-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 20px;
}

.wd-stat {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
}

.wd-stat-icon-wrap { margin-bottom: 10px; }

.wd-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 24px; font-weight: 800;
  color: #050505; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 4px;
}
.ws-purple .wd-stat-num { color: #6D28D9; }

.wd-stat-lbl {
  font-family: var(--mono);
  font-size: 10px; color: #9CA3AF;
  line-height: 1.4;
}

/* ── Platform connectors (card 2) ── */
.wd-platforms {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.wd-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px; flex: 1;
}

.wd-plat-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wd-plat-meta    { background: #1877f2; }
.wd-plat-shopify { background: #96bf48; }
.wd-plat-weather { background: #FEF3C7; border: 1px solid #FDE68A; }

.wd-plat-line {
  display: flex; align-items: center;
  gap: 2px; padding: 0 4px;
  color: #D1D5DB;
  flex-shrink: 0;
  margin-bottom: 28px; /* align with logo row */
}
.wd-plat-dots  { font-size: 10px; letter-spacing: 1px; }
.wd-plat-arrow { font-size: 18px; }

.wd-plat-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  color: #050505; text-align: center;
}
.wd-plat-sub {
  font-family: var(--mono);
  font-size: 9px; color: #9CA3AF;
  text-align: center; line-height: 1.4;
  max-width: 90px;
}

/* ── Brain convergence ── */
.wd-brain-area {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
  height: 68px;
}
.wd-brain-svg { width: 100%; height: 56px; }
.wd-brain-node {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(109,40,217,0.10);
}

/* ── Source icons (card 3) ── */
.wd-sources {
  display: flex; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.wd-source {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.wd-src-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.wd-src-meta      { background: #1877f2; }
.wd-src-shopify   { background: #96bf48; }
.wd-src-analytics { background: rgba(109,40,217,0.08); border: 1px solid rgba(109,40,217,0.15); }
.wd-src-weather   { background: #FEF3C7; border: 1px solid #FDE68A; }
.wd-src-lbl {
  font-family: var(--mono);
  font-size: 9px; color: #9CA3AF; text-align: center;
}

/* ── Traceable badge ── */
.wd-traceable-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 4px;
}
.wd-trace-pct {
  font-family: 'Inter', sans-serif;
  font-size: 52px; font-weight: 900;
  color: #050505; letter-spacing: -0.04em;
  line-height: 1;
}
.wd-trace-lbl {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  color: #6D28D9; letter-spacing: 2.5px;
  text-transform: uppercase; margin-top: 2px;
}

/* ── Steps row (card 4) ── */
.wd-steps {
  display: flex;
  align-items: flex-start;
  margin-top: 16px;
  flex-wrap: nowrap;
  gap: 0;
}
.wd-step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  flex: 1; min-width: 0; gap: 8px;
  padding: 0 4px;
}
.wd-step-icon {
  width: 38px; height: 38px;
  background: rgba(109,40,217,0.07);
  border: 1px solid rgba(109,40,217,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wd-step-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  color: #050505; line-height: 1.3;
}
.wd-step-desc {
  font-family: var(--mono);
  font-size: 9px; color: #9CA3AF;
  line-height: 1.5;
}
.wd-step-arr {
  color: #D1D5DB; font-size: 20px;
  flex-shrink: 0; margin-top: 9px;
  padding: 0 2px;
}

/* ── Footer banner ── */
.wd-footer-banner {
  display: flex; align-items: center; gap: 16px;
  background: #F5F3FF;
  border: 1px solid rgba(109,40,217,0.15);
  border-radius: 14px;
  padding: 22px 28px;
  margin-top: 20px;
}
.wd-footer-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(109,40,217,0.08);
  border-radius: 12px; flex-shrink: 0;
}
.wd-footer-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px; color: #4B5563;
  line-height: 1.5;
}
.wd-footer-text strong { color: #050505; font-weight: 800; }

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — ASK THE ENGINE  (.s2-*)
   ═══════════════════════════════════════════════════════════ */

.s2-section {
  background: var(--bg);
  border-top: 1px solid #e5e5e5;
  padding: 56px 64px;
  flex-shrink: 0;
}
.s2-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 64px;
  align-items: start;
}

/* LEFT */
.s2-left { padding-top: 12px; }
.s2-eyebrow {
  font-family: 'JetBrains Mono', 'DM Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; color: #5b3df5;
  text-transform: uppercase;
  margin: 0 0 22px 0;
}
.s2-headline {
  font-family: 'Inter', sans-serif;
  font-size: 38px; line-height: 1.12;
  letter-spacing: -0.022em; font-weight: 800;
  color: #0b0b10; margin: 0 0 22px 0;
}
.s2-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px; line-height: 1.6;
  color: #4a4a55; margin: 0 0 28px 0;
}
.s2-ask {
  display: flex; align-items: center;
  background: #fff; border-radius: 12px;
  padding: 6px;
  box-shadow: 0 1px 0 rgba(16,16,24,.04), 0 8px 24px -16px rgba(16,16,24,.18);
  border: 1px solid #e6e6ea; margin-bottom: 18px;
}
.s2-ask input {
  flex: 1; border: 0; outline: 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; color: #0b0b10;
  padding: 10px 12px; min-width: 0;
}
.s2-ask input::placeholder { color: #8a8a93; }
.s2-ask button {
  appearance: none; border: 0;
  background: #5b3df5; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.s2-ask button:hover { background: #4a2fe6; transform: translateY(-1px); }
.s2-footnote {
  display: inline-flex; align-items: center;
  gap: 8px; font-size: 12.5px; color: #6b6b75;
}
.s2-footnote svg { color: #5b3df5; flex-shrink: 0; }

/* RIGHT */
.s2-right { display: grid; gap: 18px; }
.s2-right-head {
  display: inline-flex; align-items: center;
  gap: 10px; font-size: 14px; font-weight: 500; color: #0b0b10;
}
.s2-right-head svg { color: #5b3df5; }
.s2-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.s2-card {
  background: #fff; border-radius: 16px;
  padding: 12px 12px 18px 12px;
  box-shadow: 0 1px 0 rgba(16,16,24,.04), 0 22px 50px -28px rgba(16,16,24,.18), 0 8px 24px -16px rgba(16,16,24,.12);
  display: flex; flex-direction: column; gap: 14px;
}
.s2-card-img {
  aspect-ratio: 1 / 1; border-radius: 10px;
  overflow: hidden; background: #e0e0e0;
}
.s2-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s2-card-meta {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; padding: 0 4px;
}
.s2-ad-num { font-size: 12.5px; color: #6b6b75; font-weight: 500; }
.s2-pill {
  font-size: 11px; font-weight: 500;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.s2-pill-green  { background: #e1f5e8; color: #2f8a4f; }
.s2-pill-purple { background: #efe6ff; color: #6b3df5; }
.s2-card-body { padding: 0 4px; }
.s2-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; color: #0b0b10;
  margin: 0 0 8px 0; letter-spacing: -0.005em;
}
.s2-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: #6b6b75; line-height: 1.45; margin: 0;
}
.s2-pattern-note {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 13px; color: #6b6b75; padding-top: 6px;
}
.s2-pattern-note svg { color: #5b3df5; }

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — A SYSTEM THAT LEARNS  (.s3-*)
   ═══════════════════════════════════════════════════════════ */

.s3-section {
  background: #ececec;
  border-top: 1px solid #e6e6ea;
  padding: 56px 40px;
  flex-shrink: 0;
}

.s3-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 56px;
  align-items: start;
}

/* ── LEFT ── */
.s3-left { padding-top: 8px; }

.s3-eyebrow {
  font-family: 'JetBrains Mono', 'DM Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; color: #5b3df5;
  text-transform: uppercase;
  margin: 0 0 24px 0;
}

.s3-headline {
  font-family: 'Inter', sans-serif;
  font-size: 44px; line-height: 1.1;
  letter-spacing: -0.024em; font-weight: 800;
  color: #0b0b10; margin: 0 0 22px 0;
}

.s3-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px; line-height: 1.6;
  color: #4a4a55; margin: 0 0 28px 0;
  max-width: 380px;
}

/* ── VS card ── */
.s3-vs-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e6e6ea;
  box-shadow: 0 1px 0 rgba(16,16,24,.03), 0 10px 24px -18px rgba(16,16,24,.18);
  padding: 22px 24px;
  max-width: 440px;
  position: relative;
}

.s3-vs-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  margin: 0 0 18px 0; color: #0b0b10;
}

.s3-vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  position: relative;
}

.s3-vs-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 600;
  margin: 0 0 14px 0;
}
.s3-vs-left h4 { color: #0b0b10; }
.s3-vs-right h4 { color: #5b3df5; }

.s3-vs-list { display: grid; gap: 18px; }

.s3-vs-item {
  display: flex; align-items: center;
  gap: 12px; font-size: 13px;
  color: #2a2a32; line-height: 1.35;
  font-family: 'Inter', sans-serif;
}

.s3-ic {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #efebff;
  color: #5b3df5;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.s3-vs-pill {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #e6e6ea;
  color: #6b6b75;
  font-size: 12px; font-weight: 600;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(16,16,24,.08);
  z-index: 2;
}

/* ── RIGHT — loop card ── */
.s3-loop-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(16,16,24,.04), 0 22px 50px -28px rgba(16,16,24,.18), 0 8px 24px -16px rgba(16,16,24,.12);
  padding: 32px 36px 30px 36px;
}

.s3-loop-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 700;
  margin: 0 0 28px 0; color: #0b0b10;
}

/* ── Loop grid ── */
.s3-loop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 56px 110px;
  margin-bottom: 24px;
  padding: 8px 4px;
}

.s3-step {
  background: #fff;
  border: 1px solid #e6e6ea;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; gap: 14px;
  align-items: flex-start;
  position: relative; z-index: 2;
  box-shadow: 0 1px 0 rgba(16,16,24,.02), 0 6px 18px -14px rgba(16,16,24,.18);
}

.s3-ic-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #efebff;
  color: #5b3df5;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.s3-step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px; font-weight: 600;
  margin: 0 0 6px 0; color: #5b3df5; line-height: 1.3;
}

.s3-step p {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; color: #6b6b75;
  line-height: 1.45; margin: 0;
}

/* ── Arrows overlay ── */
.s3-loop-arrows {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
}
.s3-loop-arrows svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ── Brand memory pill ── */
.s3-memory {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #efebff;
  color: #5b3df5;
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 600;
  z-index: 3;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 4px 14px -8px rgba(91,61,245,.35);
  white-space: nowrap;
}

/* ── Loop footer ── */
.s3-loop-foot {
  border-top: 1px solid #ededf1;
  padding-top: 22px; margin-top: 4px;
}

.s3-traceable {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: #6b6b75;
  margin-bottom: 18px;
}
.s3-traceable svg { color: #5b3df5; flex-shrink: 0; }

.s3-chips { display: flex; gap: 12px; flex-wrap: wrap; }

.s3-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f6f6f8;
  border: 1px solid #e6e6ea;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; color: #3a3a44;
}
.s3-chip svg { color: #6b6b75; }

@media (max-width: 1100px) {
  .s3-page { grid-template-columns: 1fr; gap: 40px; }
  .s3-headline { font-size: 36px; }
  .s3-loop { gap: 24px 60px; }
}
@media (max-width: 760px) {
  .s3-section { padding: 28px 16px; }
  .s3-loop-card { padding: 22px; }
  .s3-headline { font-size: 30px; }
  .s3-loop { grid-template-columns: 1fr; grid-template-rows: auto; gap: 16px; }
  .s3-memory { position: static; transform: none; margin: 8px auto; }
  .s3-loop-arrows { display: none; }
  .s3-vs-grid { grid-template-columns: 1fr; }
  .s3-vs-pill { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   AUTH MODAL  (.am-*)
   ═══════════════════════════════════════════════════════════ */

/* Body lock while modal is open */
.am-body--locked { overflow: hidden; }

/* ── Overlay / scrim ── */
#am-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(14, 12, 10, 0.30);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#am-overlay.am-overlay--on {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal card ── */
#am-modal {
  position: relative;
  width: 100%;
  max-width: 412px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 12px 28px rgba(0,0,0,.16),
    0 32px 80px rgba(0,0,0,.22);
  padding: 22px 22px 20px;
  outline: none;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease;
  opacity: 0;
}
#am-overlay.am-overlay--on #am-modal {
  transform: none;
  opacity: 1;
}

/* ── Header row ── */
.am-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.am-logo {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.am-close {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  color: #4a4a4a; border-radius: 6px;
  transition: background 0.14s ease;
  padding: 0;
}
.am-close:hover { background: #f0f0f0; }
.am-close:focus-visible {
  outline: 2px solid #4a3aff;
  outline-offset: 2px;
}

/* ── Titles ── */
.am-titles { margin-bottom: 18px; }
.am-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 21px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.2;
  color: #c0bab4;
  margin: 0 0 2px;
}
.am-headline {
  font-family: 'Inter', sans-serif;
  font-size: 21px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 10px;
}
.am-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; line-height: 1.55;
  color: #6b6660;
  margin: 0;
}

/* ── OAuth buttons ── */
.am-oauth { display: flex; flex-direction: column; gap: 9px; }
.am-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e2dd;
  background: #fff;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px; font-weight: 500;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.05s ease;
  padding: 0 16px;
}
.am-oauth-btn:hover  { background: #faf8f5; border-color: #d5d0ca; }
.am-oauth-btn:active { transform: translateY(1px); }
.am-oauth-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.am-oauth-btn:focus-visible { outline: 2px solid #4a3aff; outline-offset: 2px; }
.am-btn-ico {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Divider ── */
.am-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: #a8a39c;
}
.am-divider::before,
.am-divider::after {
  content: ''; flex: 1; height: 1px; background: #edebe8;
}

/* ── Email (dark) button ── */
.am-email-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #0e0e0e;
  background: #0e0e0e;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.05s ease;
  padding: 0 16px;
}
.am-email-btn:hover  { background: #222; }
.am-email-btn:active { transform: translateY(1px); }
.am-email-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.am-email-btn:focus-visible { outline: 2px solid #4a3aff; outline-offset: 2px; }

/* ── Legal text ── */
.am-legal {
  margin: 13px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px; line-height: 1.55;
  color: #6b6660;
}
.am-legal a {
  color: #6b6660;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.am-legal a:hover { color: #1a1a1a; }
.am-legal a:focus-visible { outline: 2px solid #4a3aff; outline-offset: 2px; border-radius: 2px; }

/* ── SSO trust line ── */
.am-sso {
  margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #4a4a4a;
}
.am-sso svg { flex-shrink: 0; color: #7a7570; }

/* ── Views ── */
.am-view { display: block; }
.am-view--hidden { display: none; }

/* ── Back button ── */
.am-back {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  color: #6b6660;
  padding: 0;
  margin-bottom: 18px;
  transition: color 0.14s ease;
}
.am-back:hover { color: #1a1a1a; }
.am-back:focus-visible { outline: 2px solid #4a3aff; outline-offset: 2px; border-radius: 4px; }

/* ── Form ── */
.am-form { display: flex; flex-direction: column; gap: 12px; }

.am-field { display: flex; flex-direction: column; gap: 5px; }
.am-field--pw { gap: 5px; }

.am-label-row {
  display: flex; align-items: center;
  justify-content: space-between;
}

.am-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  color: #2a2a2a;
}

.am-input {
  height: 42px;
  border-radius: 8px;
  border: 1px solid #e0ddd9;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  padding: 0 13px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
  outline: none;
}
.am-input::placeholder { color: #b8b3ad; }
.am-input:focus {
  border-color: #4a3aff;
  box-shadow: 0 0 0 3px rgba(74,58,255,0.12);
}
.am-input:focus-visible { outline: none; }

.am-forgot {
  border: none; background: transparent; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: #6b6660;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.14s ease;
}
.am-forgot:hover { color: #1a1a1a; }
.am-forgot:focus-visible { outline: 2px solid #4a3aff; outline-offset: 2px; border-radius: 2px; }

/* ── Error message ── */
.am-error {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #c0392b;
  line-height: 1.4;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.18s ease;
}
.am-error--on {
  max-height: 60px;
}

/* ── Switch link (already have an account?) ── */
.am-switch {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6b6660;
  text-align: center;
}
.am-switch-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: color 0.14s ease;
}
.am-switch-btn:hover { color: #4a3aff; }
.am-switch-btn:focus-visible { outline: 2px solid #4a3aff; outline-offset: 2px; border-radius: 2px; }

/* ── Spinner animation ── */
.am-spin {
  animation: am-rotate 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes am-rotate {
  to { transform: rotate(360deg); }
}

/* ── Sidebar sign-in button ── */
.am-sidebar-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: rgba(74,58,255,0.07);
  border: 1px solid rgba(74,58,255,0.18);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  color: #4a3aff;
  transition: background 0.14s ease, border-color 0.14s ease;
  text-align: left;
}
.am-sidebar-btn:hover {
  background: rgba(74,58,255,0.12);
  border-color: rgba(74,58,255,0.30);
}
.am-sidebar-btn:focus-visible {
  outline: 2px solid #4a3aff;
  outline-offset: 2px;
}
.am-sidebar-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(74,58,255,0.10);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  #am-modal {
    padding: 18px 16px 16px;
    border-radius: 14px;
  }
  .am-eyebrow,
  .am-headline { font-size: 19px; }
}
