/* StoreMender — data-repair SaaS (layout distinct from TaskMender) */

:root {
  --navy: #0c2340;
  --navy-mid: #163656;
  --ink: #1a2b3c;
  --muted: #5a6b7d;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-grid: #eef2f7;
  --card: #f8fafc;
  --green: #059669;
  --green-soft: #d1fae5;
  --green-dark: #047857;
  --green-glow: rgba(5, 150, 105, 0.14);
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --shadow: 0 10px 36px rgba(12, 35, 64, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 35, 64, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.auth-page { background: var(--bg-soft); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

/* Announcement bar — StoreMender data-repair promo */
.announce-bar {
  background: linear-gradient(90deg, var(--navy) 0%, #0a3d32 55%, var(--green-dark) 100%);
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 16px;
  line-height: 1.5;
  position: relative;
  z-index: 110;
}

.announce-bar span { font-weight: 500; }

.announce-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 6px;
}

.announce-bar a:hover { opacity: 0.92; }

h1, h2, h3, .hero-title, .page-title {
  font-family: var(--display);
  font-weight: 700;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg { width: 20px; height: 20px; display: block; }

.brand-text strong {
  display: block;
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.brand-text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-main { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-item.open .nav-link,
.nav-item:focus-within .nav-link {
  color: var(--navy);
  background: var(--bg-soft);
}

.nav-icon { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.nav-icon svg { width: 100%; height: 100%; display: block; }

.nav-caret {
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.45;
  transition: transform 0.2s;
}

.nav-item:hover .nav-caret,
.nav-item.open .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: rotate(225deg) translateY(1px);
  opacity: 0.7;
}

/* Mega menu — wide panel with columns (StoreHusk-style spacing) */
.nav-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(720px, calc(100vw - 48px));
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.25s;
  z-index: 50;
  overflow: hidden;
}

.nav-item-center .nav-mega { left: 50%; transform: translateX(-50%) translateY(8px); }
.nav-item-center:hover .nav-mega,
.nav-item-center.open .nav-mega,
.nav-item-center:focus-within .nav-mega {
  transform: translateX(-50%) translateY(0);
}

.nav-item-right .nav-mega { left: auto; right: 0; }

.nav-mega::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 18px;
}

.nav-item:hover .nav-mega,
.nav-item.open .nav-mega,
.nav-item:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.mega-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
  padding: 22px 24px;
}

.mega-col-title {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.mega-link:hover { background: var(--bg-soft); }

.mega-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

.mega-icon .nav-icon { width: 16px; height: 16px; }

.mega-link-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mega-link-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.mega-link-text small {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.mega-promo {
  padding: 22px 20px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-promo-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.mega-promo-title {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--navy);
}

.mega-promo-text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.mega-promo-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 4px;
}

.mega-promo-cta:hover { color: var(--green); }

.mega-foot {
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.mega-foot a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
}

.mega-foot a:hover { color: var(--green); }

.nav-item-mega:nth-child(2) .mega-grid {
  grid-template-columns: repeat(2, 1fr);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 18px var(--green-glow);
}

.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg);
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-secondary:hover { border-color: var(--green); color: var(--green-dark); }

.btn-full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

.text-link {
  font-weight: 700;
  color: var(--green);
  font-size: 0.9rem;
}

.text-link:hover { color: var(--green-dark); }

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Homepage hero: centered stack + wide dashboard ── */
.home-hero {
  padding: 72px 0 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(5, 150, 105, 0.08), transparent),
    linear-gradient(180deg, var(--bg-grid) 0%, var(--bg) 100%);
}

.hero-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--navy);
}

.hero-subtitle {
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  text-align: center;
  min-width: 120px;
}

.hero-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero-stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.hero-dashboard {
  margin-top: 48px;
  padding-bottom: 56px;
}

.dashboard-frame {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg);
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.dashboard-dot:nth-child(1) { background: #ff6b6b; }
.dashboard-dot:nth-child(2) { background: #ffd166; }
.dashboard-dot:nth-child(3) { background: #06d6a0; }

.dashboard-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 320px;
}

.dashboard-sidebar {
  padding: 20px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
}

.dashboard-sidebar .label {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-top: 12px;
  margin-bottom: 4px;
}

.dashboard-sidebar .label:first-child { margin-top: 0; }

.dashboard-main {
  padding: 20px 24px;
  overflow-x: auto;
}

/* Report card (compact) */
.report-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.report-card-header {
  padding: 12px 18px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-card-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
}

.report-card-body .label {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-top: 14px;
  margin-bottom: 4px;
}

.report-card-body .label:first-child { margin-top: 0; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section.tight { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-head p { margin: 0; color: var(--muted); }

.section-head.left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Pain list — not card grid */
.pain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.pain-item {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.pain-item:nth-child(2n) { border-right: 0; }
.pain-item:nth-last-child(-n+2) { border-bottom: 0; }

.pain-item h3 {
  margin: 6px 0 8px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}

.pain-item p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Data tables */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  background: var(--bg-soft);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.data-table tr:last-child td { border-bottom: 0; }
.data-table .bad { background: #fef2f2; color: #991b1b; }
.data-table .good { background: var(--green-soft); color: var(--green-dark); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.compare-arrow {
  padding-top: 48px;
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 800;
}

.compare-caption {
  text-align: center;
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Timeline steps */
.timeline {
  display: grid;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--line));
}

.timeline-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 20px 0;
}

.timeline-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.timeline-step h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.timeline-step p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Bento feature grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bento:hover {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: var(--shadow);
}

.bento.large { grid-column: span 3; }
.bento.small { grid-column: span 2; }

.bento h3 {
  margin: 8px 0 8px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}

.bento p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

.kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

/* Use case rows */
.use-rows { display: grid; gap: 10px; }

.use-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.use-row:hover {
  border-color: rgba(5, 150, 105, 0.4);
  background: var(--green-soft);
}

.use-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.use-row h3 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.use-row p { margin: 0; font-size: 0.86rem; color: var(--muted); }

.use-row-arrow {
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Sample split */
.sample-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.metric-stack { display: grid; gap: 12px; }

.metric-box {
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-box strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.metric-box span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Pricing bands */
.pricing-bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.pricing-band {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.pricing-band:last-child { border-right: 0; }

.pricing-band.featured {
  background: linear-gradient(180deg, var(--green-soft), var(--bg));
  position: relative;
}

.pricing-band.featured::before {
  content: "Most popular";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.plan-name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; margin-top: 12px; }

.plan-price {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.plan-price span { font-size: 0.85rem; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.plan-desc { font-size: 0.84rem; color: var(--muted); margin: 8px 0 16px; }

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.plan-features li {
  font-size: 0.84rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* Bottom: metrics + FAQ + CTA */
.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric-cell {
  padding: 28px 20px;
  text-align: center;
  background: var(--bg);
}

.metric-cell strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.6rem;
  color: var(--green-dark);
}

.metric-cell span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); font-size: 0.92rem; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; }

.home-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, var(--navy) 0%, #0f3d2e 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.home-cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.2);
}

.home-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  position: relative;
}

.home-cta p { margin: 0; color: rgba(255, 255, 255, 0.72); position: relative; }

.home-cta-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  position: relative;
}

.home-cta-checks li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 22px;
  position: relative;
}

.home-cta-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 800;
}

.home-cta .btn-row { justify-content: flex-start; margin-top: 20px; position: relative; }

.integration-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 36px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.integration-strip span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Generic grids & cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin: 8px 0 8px; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* Subpage layout */
.page-hero {
  padding: 40px 0 32px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero.compact { padding: 32px 0 24px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { opacity: 0.5; }

.page-title {
  margin: 8px 0 10px;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.lead { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 620px; }
.page-hero .btn-row { justify-content: flex-start; margin-top: 20px; }

.page-body { padding: 48px 0 64px; }

.page-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.page-main { min-width: 0; }

.page-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.aside-card {
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-card h4 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.aside-card p { margin: 0; font-size: 0.84rem; color: var(--muted); }

.content-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.content-panel.narrow { max-width: 480px; margin: 0 auto; }

.sub-cta {
  margin-top: 48px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--green-soft), var(--bg));
  border: 1px solid rgba(5, 150, 105, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sub-cta h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.sub-cta p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Legacy pricing grid (pricing page) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: start;
}

.plan-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}

.plan-card.featured {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}

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

.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--navy); }
.step p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; }

.form-group { display: grid; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }

.form input, .form select, .form textarea {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form textarea { min-height: 110px; padding: 12px 14px; resize: vertical; }

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 4px 0;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.upload-zone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: var(--green);
  background: var(--green-soft);
}

.upload-zone strong { display: block; margin-bottom: 6px; color: var(--navy); }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.checkbox-item:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.scan-preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.84rem;
}

.scan-preview h4 {
  font-family: var(--sans);
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

/* Auth — split screen */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  padding: 48px;
  background: linear-gradient(160deg, var(--navy) 0%, #0a3028 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(5, 150, 105, 0.25), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15), transparent 40%);
}

.auth-visual > * { position: relative; z-index: 1; }

.auth-visual h1 {
  margin: 32px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.auth-visual p { margin: 0; color: rgba(255, 255, 255, 0.72); max-width: 380px; line-height: 1.65; }

.auth-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.auth-stat {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.auth-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: #34d399;
}

.auth-stat span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--bg-soft);
}

.auth-form-wrap {
  width: min(100%, 400px);
}

.auth-form-wrap h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.auth-form-wrap .lead { margin-bottom: 28px; font-size: 0.92rem; }

.auth-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-footer-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--muted);
}

.auth-top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.auth-top-link .brand-text strong { color: #fff; font-family: var(--sans); }
.auth-top-link:hover { color: #fff; }

/* Footer — multi-column (StoreHusk-style) */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
  margin-top: 0;
}

.footer-wrap { display: flex; flex-direction: column; gap: 0; }

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

.brand-footer { flex-shrink: 0; }
.brand-footer .brand-text span { display: block; color: rgba(255, 255, 255, 0.5); }
.brand-footer .brand-text strong { color: #fff; font-size: 1.05rem; }

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  max-width: 520px;
}

.footer-cta { flex-shrink: 0; white-space: nowrap; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
  margin-bottom: 40px;
}

.footer-col h5 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-meta {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .announce-bar { font-size: 0.8rem; padding: 10px 14px; }
  .dashboard-body { grid-template-columns: 1fr; }
  .dashboard-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pain-list { grid-template-columns: 1fr; }
  .pain-item { border-right: 0 !important; }
  .pain-item:last-child { border-bottom: 0; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento.large, .bento.small { grid-column: span 1; }
  .sample-split { grid-template-columns: 1fr; }
  .pricing-bands { grid-template-columns: 1fr; }
  .pricing-band { border-right: 0; border-bottom: 1px solid var(--line); }
  .pricing-band:last-child { border-bottom: 0; }
  .metrics-band { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .home-cta { grid-template-columns: 1fr; padding: 32px; }
  .page-split { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { padding: 32px; min-height: auto; }
  .auth-stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .steps, .pricing-grid, .compare-grid, .sub-cta {
    grid-template-columns: 1fr;
  }
  .compare-arrow { display: none; }
  .mega-body { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: 1fr; padding: 16px; }
  .mega-promo { border-left: 0; border-top: 1px solid var(--line); }
  .nav-mega { width: min(100vw - 32px, 480px); }
  .nav-item-center .nav-mega { left: 0; transform: translateY(8px); }
  .nav-item-center:hover .nav-mega,
  .nav-item-center.open .nav-mega,
  .nav-item-center:focus-within .nav-mega { transform: translateY(0); }
  .header-row { flex-wrap: wrap; justify-content: center; }
  .nav-main { flex-wrap: wrap; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-tagline { max-width: none; }
  .footer-cta { justify-self: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .sub-cta { flex-direction: column; align-items: flex-start; }
}
