/* ==========================================================================
   getfound.now — Design System v2.0 (Airbnb-inspired)
   Plus Jakarta Sans + IBM Plex Mono | Warm palette | Rausch red CTAs
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Typography */
  --font-primary: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Colors — warm, human, Airbnb-inspired */
  --ink:     #222222;
  --body:    #484848;
  --muted:   #717171;
  --border:  #DDDDDD;
  --surface: #F7F7F7;
  --white:   #FFFFFF;

  --accent:  #FF5A5F;   /* Rausch red — CTAs ONLY */
  --success: #008A05;
  --warning: #C13515;
  --blue:    #FF5A5F;   /* mapped to accent for backward compat */
  --gold:    #F59E0B;

  /* Spacing (8px grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 20px;

  /* Shadows — replace ink borders */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 6px 20px rgba(32,32,32,0.12);
  --shadow-xl: 0 14px 36px rgba(32,32,32,0.15);

  /* Layout */
  --max-width: 1280px;
  --page-padding: 80px;
  --page-padding-mobile: 24px;

  /* Backward compat aliases */
  --font-body: var(--font-primary);
  --slate: var(--body);
}

/* ─── RESET & BASE ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ─── LAYOUT ────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-padding); }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--page-padding); }
.page-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-padding); }

/* ─── TYPE SCALE ────────────────────────────────── */
.t-display {
  font-size: 56px; font-weight: 800;
  letter-spacing: -2px; line-height: 1.05;
  color: var(--ink);
}
.t-h1 { font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.t-h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.t-h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.3; }
.t-body { font-size: 16px; color: var(--body); line-height: 1.6; }
.t-small { font-size: 14px; color: var(--body); line-height: 1.5; }
.t-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted);
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--body); line-height: 1.6;
}

h2 { font-weight: 700; letter-spacing: -0.5px; }

/* ─── NAVIGATION ────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-wordmark { flex: 0 0 auto; }
.nav-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-wordmark a { color: var(--accent); text-decoration: none; font-family: var(--font-primary); }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
  flex: 1;
}
.nav-cta {
  flex: 0 0 auto;
}
.nav-mobile-cta {
  display: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  text-decoration: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--ink);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.btn-primary { color: var(--white); text-decoration: none; }
.nav-links a.btn-primary::after { display: none; }
.nav-links a.btn-primary:hover { color: var(--white); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger svg { display: block; }

/* ── Nav Dropdown (Browse categories) ── */
.nav-has-dropdown {
  position: relative;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  min-width: 360px;
  z-index: 200;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-dropdown:hover {
  display: block;
}
/* Bridge the gap between link and dropdown so hover doesn't break */
.nav-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  display: none;
}
.nav-has-dropdown:hover::after {
  display: block;
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.12s ease;
}
.nav-dropdown-item:hover {
  background: var(--surface);
}
.nav-dropdown-item svg {
  flex-shrink: 0;
  color: var(--muted);
}
.nav-dropdown-item:hover svg {
  color: var(--accent);
}
.nav-dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}
.nav-dropdown-footer {
  text-align: center;
  padding-top: 4px;
}
.nav-dropdown-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.nav-dropdown-footer a:hover {
  text-decoration: underline;
}

/* ─── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-primary); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-md);
  cursor: pointer; text-decoration: none; border: none;
  transition: all 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-primary); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-md);
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.15s ease;
}
.btn-primary:hover { background: #E00007; color: var(--white); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-primary); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-md);
  border: 1.5px solid var(--ink); cursor: pointer; text-decoration: none;
  transition: all 0.15s ease;
}
.btn-secondary:hover { background: var(--surface); color: var(--ink); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink);
  font-family: var(--font-primary); font-size: 14px; font-weight: 500;
  padding: 10px 0; border: none; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--border);
}
.btn-ghost:hover { color: var(--accent); }

.btn-sm { font-size: 14px; padding: 10px 18px; }

/* ─── HERO ──────────────────────────────────────── */
.hero {
  padding: 64px 0 56px;
}
.hero-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.hero h1 {
  font-size: 56px; font-weight: 800;
  line-height: 1.05; letter-spacing: -2px;
  color: var(--ink); max-width: 780px; margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; line-height: 1.6;
  color: var(--body); max-width: 560px; margin-bottom: 32px;
}
.hero-ctas {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.hero-tokens {
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.hero-token {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.02em;
}
.hero-token .token-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.hero-token .token-dot--chatgpt { background: #10A37F; }
.hero-token .token-dot--claude { background: #CC785C; }
.hero-token .token-dot--google { background: transparent; border: 1.5px solid var(--muted); }
.hero-stats {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.01em;
  padding-top: 20px; border-top: 1px solid var(--border);
}

/* ─── SECTIONS ──────────────────────────────────── */
.chapter { padding: 64px 0; }
.chapter-alt { background: var(--surface); }
.chapter-header {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.chapter-header .divider { flex: 1; height: 1px; background: var(--border); }
.chapter-title {
  font-size: 32px; font-weight: 700;
  letter-spacing: -1px; line-height: 1.1;
  color: var(--ink); margin-bottom: 12px;
}
.chapter-subtitle {
  font-size: 16px; color: var(--body);
  line-height: 1.6; max-width: 560px; margin-bottom: 40px;
}

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

/* ─── CARDS ─────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-label {
  font-family: var(--font-primary);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.card h3 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.4px; line-height: 1.2;
  color: var(--ink); margin-bottom: 12px;
}
.card p { font-size: 14px; color: var(--body); line-height: 1.6; }

.card-surface {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-6);
}

/* ─── GRIDS ─────────────────────────────────────── */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.three-col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }

/* ─── STEP NUMBERS ──────────────────────────────── */
.step-number {
  font-family: var(--font-primary);
  font-size: 48px; font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: 16px;
}

/* ─── PROBLEM GRID (backward compat) ────────────── */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* ─── RATING ────────────────────────────────────── */
.rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.rating .star { color: var(--accent); }
.rating .count { font-weight: 400; color: var(--muted); }

/* ─── TRUST SIGNAL ROW ──────────────────────────── */
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; font-size: 15px; color: var(--body);
}
.trust-row .sep { color: var(--muted); }
.trust-row .verified { color: var(--success); font-weight: 600; }
.trust-row .star { color: var(--accent); }

/* ─── BADGES ────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.badge-verified  { background: #E8F5E9; color: #008A05; }
.badge-top-rated { background: #FFF3CD; color: #C13515; }
.badge-unclaimed { background: #FFF8F0; color: #C13515; }
.badge-new       { background: var(--surface); color: var(--body); }

/* Legacy trust badges */
.trust-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid; white-space: nowrap;
}
.trust-badge.verified { color: #008A05; background: #E8F5E9; border-color: #BBF7D0; }
.trust-badge.checked { color: #1D4ED8; background: #EFF6FF; border-color: #BFDBFE; }
.trust-badge.community { color: var(--ink); background: var(--surface); border-color: var(--border); }

/* ─── PRICING ───────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
}
.pricing-card {
  padding: 32px; position: relative;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pricing-card--popular { background: var(--surface); box-shadow: var(--shadow-lg); }
.pricing-popular-badge {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--accent); color: var(--white);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  text-align: center; padding: 6px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.pricing-card--popular { padding-top: 52px; }
.pricing-tier {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.pricing-price {
  font-size: 36px; font-weight: 800;
  letter-spacing: -1.5px; color: var(--ink); margin-bottom: 4px;
}
.pricing-period {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); margin-bottom: 20px;
}
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li {
  font-size: 14px; color: var(--body); line-height: 1.6;
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }

/* ─── COMPARISON TABLE ──────────────────────────── */
.comparison-table {
  width: 100%; border-collapse: collapse;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); font-size: 14px;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); background: var(--surface);
}
.comparison-table thead th:first-child { color: var(--ink); font-weight: 700; }
.comparison-table thead th.highlight { background: var(--accent); color: var(--white); font-weight: 700; letter-spacing: 0.04em; }
.comparison-table tbody td { color: var(--body); }
.comparison-table tbody td:first-child { color: var(--ink); font-weight: 500; }
.comparison-table tbody td.highlight { background: rgba(255, 90, 95, 0.04); font-weight: 600; color: var(--ink); }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--muted); }

/* ─── BROWSE OWNER CTA ─────────────────────────── */
.browse-owner-cta-section { padding: 64px 0 48px; }
.browse-owner-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 32px; text-align: center;
}
.browse-owner-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.browse-owner-heading {
  font-size: 28px; font-weight: 800; letter-spacing: -1px;
  color: var(--ink); line-height: 1.15; margin-bottom: 12px;
}
.browse-owner-desc {
  font-size: 16px; color: var(--body); line-height: 1.6;
  max-width: 520px; margin: 0 auto 24px;
}
.browse-owner-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── FAQ ───────────────────────────────────────── */
.faq-list { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; font-weight: 600; font-size: 16px;
  color: var(--ink); cursor: pointer; list-style: none;
  transition: background 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 300;
  color: var(--muted); transition: transform 0.2s ease;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--surface); }
.faq-answer { padding: 0 24px 18px; }
.faq-answer p { color: var(--body); font-size: 15px; line-height: 1.6; }

/* ─── CTA BOX ───────────────────────────────────── */
.cta-box {
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 48px; text-align: center; margin: 64px 0;
}
.cta-box h2 {
  font-size: 32px; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 12px;
}
.cta-box p {
  color: var(--body); font-size: 16px; margin-bottom: 28px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}

/* ─── FOOTER ────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; background: var(--surface); }
.footer-content {
  max-width: var(--max-width); margin: 0 auto;
  padding: 24px var(--page-padding);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-wordmark { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }
.footer-wordmark a { color: var(--accent); text-decoration: none; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--body); text-decoration: none; font-weight: 500; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); text-align: right; line-height: 1.9;
}

/* ─── SEARCH / BROWSE ───────────────────────────── */
.search-section { padding: 48px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.search-form { display: flex; gap: 0; }
.search-input {
  flex: 1; padding: 14px 16px;
  font-family: var(--font-primary); font-size: 15px;
  border: 1.5px solid var(--border); border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--ink); background: var(--white); outline: none;
  transition: border-color 0.15s ease;
}
.search-input:focus { border-color: var(--ink); }
.search-input::placeholder { color: var(--muted); }
.search-submit {
  padding: 14px 24px; background: var(--accent); color: var(--white);
  font-family: var(--font-primary); font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer; transition: background 0.15s ease;
}
.search-submit:hover { background: #E00007; border-color: #E00007; }

.results-meta {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}

.result-card {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px; margin-bottom: 12px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  transition: box-shadow 0.2s ease;
}
.result-card:hover { box-shadow: var(--shadow-md); }
.result-accent { width: 4px; height: 48px; flex-shrink: 0; border-radius: 2px; }
.result-info { flex: 1; }
.result-name { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); margin-bottom: 4px; }
.result-meta { font-size: 13px; color: var(--body); margin-bottom: 4px; }
.result-meta span { margin-right: 12px; }
.result-badge {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 3px 10px; display: inline-block; border-radius: var(--radius-pill);
}
.result-badge--verified { color: var(--success); background: #E8F5E9; }
.result-badge--unclaimed { color: var(--muted); background: var(--surface); }
.result-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

/* Browse grids */
.browse-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
}
.browse-grid-item {
  padding: 20px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); background: var(--white);
  font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: none; transition: all 0.2s ease;
}
.browse-grid-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.browse-grid-item .item-count {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); display: block; margin-top: 4px; font-weight: 400;
}

.no-results { padding: 48px 0; text-align: center; color: var(--muted); font-size: 15px; }
.loading {
  padding: 32px 0; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}

/* ─── HOW IT WORKS ──────────────────────────────── */
.phase-section { padding: 48px 0; border-bottom: 1px solid var(--border); }
.phase-section:last-of-type { border-bottom: none; }
.phase-number {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.phase-title {
  font-size: 28px; font-weight: 700;
  letter-spacing: -1px; line-height: 1.15;
  color: var(--ink); margin-bottom: 16px;
}
.phase-body { font-size: 16px; color: var(--body); line-height: 1.6; max-width: 640px; }
.phase-body p { margin-bottom: 16px; }
.phase-details { margin-top: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.phase-detail-item { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.phase-detail-item:last-child { border-bottom: none; }
.phase-detail-item h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.phase-detail-item p { font-size: 13px; color: var(--body); line-height: 1.6; margin: 0; }

/* ─── PHOTO GRID (listing pages) ────────────────── */
.photo-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 4px;
  height: 480px; border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
}
.photo-grid-main { grid-row: 1 / 3; overflow: hidden; }
.photo-grid-main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.photo-grid-main:hover img { transform: scale(1.02); }
.photo-grid-item { overflow: hidden; }
.photo-grid-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.photo-grid-item:hover img { transform: scale(1.02); }
.photo-grid-show-all {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  font-family: var(--font-primary);
}
.photo-grid-show-all:hover {
  background: var(--surface);
}
.photo-grid-placeholder {
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}

/* ─── TWO-COLUMN LISTING ────────────────────────── */
.listing-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 80px; align-items: start;
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--page-padding);
}
.listing-content { min-width: 0; }
.listing-panel {
  position: sticky; top: 24px;
  background: white; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 24px;
}

/* ─── LISTING CARD (hub/search) ─────────────────── */
/* Card styles now defined in images.css for photo-forward layout.
   Keeping these as fallback only for pages not loading images.css. */
.listing-card-body { padding: 16px; }
.listing-card-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.2px; }

/* ─── COMPARE NAV ───────────────────────────────── */
.compare-nav {
  padding: 12px 0; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.compare-nav-link { font-size: 14px; font-weight: 500; color: var(--accent); }
.compare-nav-link:hover { color: var(--ink); }

/* ─── REVIEW STRIP ──────────────────────────────── */
.review-strip {
  display: flex; gap: var(--sp-4); overflow-x: auto;
  margin-bottom: 32px; padding-bottom: 4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.review-strip::-webkit-scrollbar { display: none; }
.review-strip-item {
  flex: 0 0 auto; width: 320px; padding: 20px 24px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  background: var(--white);
}
.review-strip-stars { color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.review-strip-text { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: 8px; }
.review-strip-author {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}

/* ─── PRICE BENCHMARK ───────────────────────────── */
.price-benchmark {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 20px 24px; margin: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.price-benchmark-label {
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.price-benchmark-range {
  font-family: var(--font-mono); font-size: 20px;
  font-weight: 500; color: var(--ink); letter-spacing: -0.5px;
}

/* ─── GUARANTEE ─────────────────────────────────── */
.guarantee-option {
  background: #E8F5E9; border-radius: var(--radius-md);
  padding: 14px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; margin-top: 12px; flex-wrap: wrap;
}
.guarantee-title { font-size: 14px; font-weight: 600; color: var(--success); margin-bottom: 2px; }
.guarantee-desc { font-size: 13px; color: var(--body); line-height: 1.5; }
.guarantee-price {
  font-family: var(--font-mono); font-size: 14px;
  font-weight: 500; color: var(--ink); white-space: nowrap;
}

/* ─── VERIFIED REVIEWS ──────────────────────────── */
.verified-review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.verified-review-item:last-child { border-bottom: none; }
.verified-badge-small {
  font-family: var(--font-mono); font-size: 9px; color: var(--success);
  background: #E8F5E9; border-radius: var(--radius-pill);
  padding: 2px 8px; text-transform: uppercase; letter-spacing: .04em;
}

/* ─── COST CALCULATOR ───────────────────────────── */
.calc-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.calc-inputs { padding: 32px; border-right: 1px solid var(--border); }
.calc-results { padding: 32px; }
.calc-field { margin-bottom: 24px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.calc-field input {
  width: 100%; font-family: var(--font-primary);
  font-size: 22px; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 14px; background: var(--white); outline: none;
  transition: border-color 0.15s ease;
  -moz-appearance: textfield;
}
.calc-field input::-webkit-outer-spin-button,
.calc-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-field input:focus { border-color: var(--ink); }
.calc-result-group { margin-bottom: 28px; }
.calc-result-group:last-child { margin-bottom: 0; }
.calc-result-title {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.calc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0; font-size: 14px; color: var(--body);
}
.calc-row-value {
  font-family: var(--font-mono); font-weight: 500;
  color: var(--ink); font-size: 14px;
}
.calc-delta {
  font-family: var(--font-mono); font-size: 36px;
  font-weight: 700; letter-spacing: -1.5px; padding: 16px 0 20px;
}
.calc-delta--positive { color: var(--success); }
.calc-delta--negative { color: var(--warning); }

/* ─── LIVE DEMO ─────────────────────────────────── */
.demo-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  background: var(--white); border: 1.5px solid var(--border);
}
.demo-context { padding: 32px; border-right: 1px solid var(--border); }
.demo-context h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--ink); margin-bottom: 8px;
}
.demo-context p { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: 12px; }
.demo-context ul { list-style: none; margin-bottom: 16px; }
.demo-context ul li {
  font-size: 13px; color: var(--body); padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.demo-context ul li:last-child { border-bottom: none; }
.demo-chat { display: flex; flex-direction: column; height: 480px; }
.demo-chat-header {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.demo-chat-messages { flex: 1; overflow-y: auto; padding: 20px; }
.demo-msg { margin-bottom: 16px; max-width: 85%; }
.demo-msg--agent { margin-right: auto; }
.demo-msg--user { margin-left: auto; }
.demo-msg-bubble { font-size: 14px; line-height: 1.55; padding: 12px 16px; border-radius: var(--radius-lg); }
.demo-msg--agent .demo-msg-bubble { background: var(--surface); color: var(--ink); }
.demo-msg--user .demo-msg-bubble { background: var(--accent); color: var(--white); }
.demo-msg-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.demo-chat-input-row { display: flex; border-top: 1px solid var(--border); }
.demo-chat-input {
  flex: 1; border: none; padding: 14px 16px;
  font-family: var(--font-primary); font-size: 14px;
  color: var(--ink); outline: none; background: var(--white);
  border-radius: 0;
}
.demo-chat-input::placeholder { color: var(--muted); }
.demo-chat-send {
  padding: 14px 20px; background: var(--accent); color: var(--white);
  border: none; font-family: var(--font-primary);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease;
}
.demo-chat-send:hover { background: #E00007; }
.demo-lead-reveal {
  margin: 12px 0; padding: 16px; border-radius: var(--radius-md);
  border: 2px solid var(--success); background: #E8F5E9;
}
.demo-lead-reveal h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--success); margin-bottom: 8px;
}
.demo-lead-reveal p { font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.demo-lead-reveal .btn-primary { margin-top: 12px; font-size: 13px; padding: 8px 16px; }

/* ─── HERO DUAL ENTRY ───────────────────────────── */
.hero-dual-entry {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 32px;
}
.hero-dual-cell { padding: 28px 32px; text-align: center; }
.hero-dual-cell:first-child { background: var(--white); border-right: 1px solid var(--border); }
.hero-dual-cell:last-child { background: var(--surface); }
.hero-dual-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.hero-dual-cell .btn-primary,
.hero-dual-cell .btn-secondary { width: 100%; justify-content: center; font-size: 14px; }

/* ─── MOBILE MENU TOGGLE (hamburger → X) ──────── */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
}

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .listing-layout {
    grid-template-columns: 1fr; gap: 0;
    padding: 0 var(--page-padding-mobile);
  }
  .listing-panel {
    position: fixed; bottom: 0; left: 0; right: 0;
    top: auto; border-radius: 0;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    padding: 16px var(--page-padding-mobile);
    display: flex; align-items: center;
    justify-content: space-between; z-index: 100;
  }
}

@media (max-width: 768px) {
  :root { --page-padding: 24px; }

  .hero h1 { font-size: 36px; letter-spacing: -1.5px; }
  .hero-sub { font-size: 16px; }
  .t-display { font-size: 36px; letter-spacing: -1px; }
  .t-h1 { font-size: 26px; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 20px var(--page-padding); gap: 16px; z-index: 100;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open + .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .site-nav { position: sticky; top: 0; }
  .nav-mobile-cta { display: list-item; }
  .nav-links a.btn-primary { width: 100%; text-align: center; }

  .chapter-title { font-size: 28px; letter-spacing: -1px; }

  .problem-grid,
  .two-col-grid,
  .grid-2 { grid-template-columns: 1fr; }
  .three-col-grid,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }

  .comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 12px; }
  .comparison-table th,
  .comparison-table td { padding: 10px 12px; }

  .cta-box { padding: 32px 20px; border-radius: var(--radius-lg); }
  .cta-box h2 { font-size: 24px; }

  .footer-content { flex-direction: column; text-align: center; gap: 12px; }
  .footer-links { justify-content: center; }
  .footer-meta { text-align: center; }

  .search-form { flex-direction: column; }
  .search-input { border-right: 1.5px solid var(--border); border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .search-submit { border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md); }

  .browse-grid { grid-template-columns: repeat(2, 1fr); }

  .result-card { flex-direction: column; }
  .result-actions { width: 100%; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-tokens { flex-wrap: wrap; gap: 12px; }
  .hero-dual-entry { grid-template-columns: 1fr; }
  .hero-dual-cell:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-context { border-right: none; border-bottom: 1px solid var(--border); }
  .demo-chat { height: 400px; }
  .review-strip-item { width: 260px; }

  .photo-grid {
    grid-template-columns: 1fr; height: 300px; border-radius: 0;
  }
  .photo-grid-item { display: none; }
  .photo-grid-main { grid-row: auto; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; letter-spacing: -1px; }
  .pricing-price { font-size: 28px; }
  .browse-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── REDUCED MOTION ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ─── HIGH CONTRAST ─────────────────────────────── */
@media (prefers-contrast: high) {
  :root { --border: #94a3b8; --muted: #475569; }
}

/* ─── BUTTON LOADING STATE ──────────────────────── */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── PRINT ─────────────────────────────────────── */
@media print {
  .site-nav, .site-footer, .cta-box { display: none; }
  body { font-size: 12pt; color: #000; }
  .container { max-width: 100%; padding: 0; }
}
