/* =========================================================
   SaaSListing.co — Base styles (light + dark)
   ========================================================= */

:root {
  /* Warm neutrals */
  --bg: #FBF7F2;
  --bg-alt: #F5EFE6;
  --paper: #FFFFFF;
  --ink: #1A1410;
  --ink-2: #2B2420;
  --muted: #6E655E;
  --muted-2: #A39A92;
  --line: #EADFD0;
  --line-strong: #D9CAB3;

  /* Brand */
  --accent: #D63419;
  --accent-bright: #EE4516;
  --accent-deep: #8F1F0B;
  --accent-soft: #FFD4C2;
  --accent-peach: #FFEEE0;
  --gold: #E8B464;

  /* Surfaces */
  --dark: #1A1410;
  --dark-2: #241C17;
  --dark-3: #302621;
  --dark-line: #3A2F28;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26, 20, 16, 0.04), 0 1px 1px rgba(26, 20, 16, 0.03);
  --shadow: 0 2px 6px rgba(26, 20, 16, 0.05), 0 8px 20px -8px rgba(26, 20, 16, 0.08);
  --shadow-lg: 0 10px 30px -10px rgba(26, 20, 16, 0.18), 0 4px 12px -6px rgba(26, 20, 16, 0.08);
  --shadow-xl: 0 24px 60px -20px rgba(26, 20, 16, 0.25), 0 8px 20px -10px rgba(26, 20, 16, 0.10);
  --shadow-red: 0 16px 40px -12px rgba(214, 52, 25, 0.35);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #14100D;
  --bg-alt: #1B1612;
  --paper: #1F1915;
  --ink: #F6EFE6;
  --ink-2: #E4DACB;
  --muted: #A89F94;
  --muted-2: #776C62;
  --line: #2D231E;
  --line-strong: #3D3028;
  --accent-peach: #2A1C16;
  --accent-soft: #3A241B;
  --dark: #0D0A08;
  --dark-2: #14100D;
  --dark-3: #1B1612;
  --dark-line: #2D231E;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'General Sans', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Display / headings */
.serif {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.serif em, .serif i {
  font-style: italic;
  color: var(--accent);
  position: relative;
}
.serif em::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.06em;
  height: 0.18em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 2px;
  opacity: .7;
}

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 52, 25, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(214, 52, 25, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(214, 52, 25, 0.05); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 14px; height: 14px; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-dark:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-red); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(214, 52, 25, 0.45);
}
.btn-accent:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(238, 69, 22, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--paper); }

.btn-ghost-dark {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.06); }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}
.card.tilt { transform-style: preserve-3d; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .06s; }
.reveal-delay-2 { transition-delay: .12s; }
.reveal-delay-3 { transition-delay: .18s; }
.reveal-delay-4 { transition-delay: .24s; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.nav-links a {
  color: inherit; text-decoration: none;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.logo-lockup img { height: 32px; width: auto; flex-shrink: 0; }
.logo-lockup::after {
  content: '';
  width: 1px;
  height: 22px;
  background: var(--line-strong);
  margin-left: -4px;
}
.wordmark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.wordmark .saas { font-weight: 400; color: var(--ink); font-style: normal; }
.wordmark .listing { color: var(--accent); font-style: italic; padding: 0 2px; }
.wordmark .tld { color: var(--muted-2); font-size: 0.85em; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--paper); border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  filter: blur(60px);
  opacity: .75;
  pointer-events: none;
}
.hero::before {
  top: -120px; left: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 180, 140, 0.55), transparent 70%);
}
.hero::after {
  top: 80px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(214, 52, 25, 0.25), transparent 70%);
}
[data-theme="dark"] .hero::before { opacity: .35; }
[data-theme="dark"] .hero::after { opacity: .4; }

.hero-inner {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  margin-top: 20px;
  text-wrap: balance;
}
.hero .sub {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 28px;
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-meta .check {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-meta .check svg { color: var(--accent); width: 14px; height: 14px; }

/* Trust bar */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  background: var(--bg-alt);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 8px;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.stat .num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat .num em { font-style: italic; color: var(--accent); }
.stat .label { color: var(--muted); font-size: 13.5px; }

/* Section base */
section.pad {
  padding: 96px 0;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-top: 12px;
  text-wrap: balance;
}
.section-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 17px;
  text-wrap: pretty;
}
.alt-bg { background: var(--bg-alt); }

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
.pricing-grid.mode-3up { grid-template-columns: repeat(3, 1fr); }
.pricing-grid.mode-featured { grid-template-columns: 1fr 1.12fr 1fr; align-items: center; }
.pricing-grid.mode-toggle { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }

.price-card {
  display: flex; flex-direction: column;
  padding: 32px;
  gap: 16px;
  min-height: 460px;
  position: relative;
}
.price-card .tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.price-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  line-height: 1.1;
}
.price-card h3 em { font-style: italic; color: var(--accent); }
.price-card .price {
  display: flex; align-items: baseline; gap: 6px;
  font-family: 'Instrument Serif', serif;
  color: var(--ink);
}
.price-card .price .amt { font-size: 48px; line-height: 1; letter-spacing: -0.02em; }
.price-card .price .per { color: var(--muted); font-family: 'General Sans', sans-serif; font-size: 14px; }
.price-card ul {
  list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px;
  font-size: 14.5px; color: var(--ink-2);
}
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; width: 14px; height: 14px; }
.price-card .btn { margin-top: auto; justify-content: center; width: 100%; }

.price-card.featured {
  background: var(--dark);
  color: var(--bg);
  border-color: var(--dark-line);
  box-shadow: var(--shadow-xl);
}
.price-card.featured::before {
  content: 'Most popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill);
}
.price-card.featured .tag { color: var(--gold); }
.price-card.featured h3 { color: var(--bg); }
.price-card.featured h3 em { color: var(--gold); }
.price-card.featured .price { color: var(--bg); }
.price-card.featured .price .per { color: rgba(246, 239, 230, 0.65); }
.price-card.featured ul { color: rgba(246, 239, 230, 0.88); }
.price-card.featured li svg { color: var(--gold); }

.price-card.featured:hover { border-color: var(--gold); }

/* Pricing arrangement tabs */
.pricing-arrangement {
  display: flex; gap: 6px; margin: 0 auto 32px;
  padding: 4px;
  width: max-content;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
}
.pricing-arrangement button {
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: transparent; color: var(--muted);
  border: none; cursor: pointer;
  font-family: inherit; font-size: inherit; font-weight: inherit;
  transition: background .2s, color .2s;
}
.pricing-arrangement button.active {
  background: var(--ink); color: var(--bg);
}

/* Pricing calculator */
.calc {
  margin-top: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.calc-left { padding: 32px; border-right: 1px solid var(--line); }
.calc-right {
  padding: 32px;
  background: linear-gradient(180deg, var(--bg-alt), var(--paper));
  display: flex; flex-direction: column; gap: 18px;
}
[data-theme="dark"] .calc-right { background: var(--bg-alt); }
.calc h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
}
.calc h4 em { font-style: italic; color: var(--accent); }
.calc p.sub-s { color: var(--muted); font-size: 14px; margin-top: 6px; }

.slider-row { margin-top: 20px; }
.slider-row .slider-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.slider-row .slider-label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.slider-row .slider-val {
  font-family: 'Instrument Serif', serif; font-size: 24px; color: var(--ink);
}
.slider-row .slider-val em { font-style: italic; color: var(--accent); }
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--pct, 50%), var(--line) var(--pct, 50%));
  outline: none; cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--bg);
  box-shadow: var(--shadow);
  cursor: grab;
  transition: transform .15s;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--bg);
  box-shadow: var(--shadow);
  cursor: grab;
}

.plan-options {
  display: grid; gap: 8px;
  margin-top: 22px;
}
.plan-opt {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg-alt);
}
.plan-opt:hover { border-color: var(--accent); }
.plan-opt.active { border-color: var(--accent); background: var(--accent-peach); }
.plan-opt .name { font-weight: 600; font-size: 14.5px; }
.plan-opt .desc { font-size: 13px; color: var(--muted); }
.plan-opt .check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.plan-opt.active .check { background: var(--accent); border-color: var(--accent); }
.plan-opt.active .check::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.calc-right h5 {
  font-family: 'Instrument Serif', serif; font-size: 22px;
}
.calc-right h5 em { font-style: italic; color: var(--accent); }
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px; color: var(--muted);
}
.total-row .v { color: var(--ink); font-weight: 600; font-family: 'General Sans', sans-serif; }
.total-row.grand {
  border-bottom: none;
  padding-top: 18px;
}
.total-row.grand .k { font-size: 15px; color: var(--ink); font-weight: 600; }
.total-row.grand .v {
  font-family: 'Instrument Serif', serif;
  font-size: 40px;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.vs {
  margin-top: 4px; padding: 12px 14px;
  background: var(--accent-peach);
  border-radius: var(--radius);
  font-size: 13px; color: var(--ink-2);
}
[data-theme="dark"] .vs { background: var(--accent-soft); }
.vs strong { color: var(--accent); }
.calc-right .btn { margin-top: auto; }

/* Directory picker button in hero-ish spot */
.picker-cta {
  margin-top: 16px;
  font-size: 13.5px; color: var(--muted);
}
.picker-cta button {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-weight: 600; font-family: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  padding: 0;
}
.picker-cta button:hover { color: var(--accent-bright); }

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.step {
  padding: 28px 4px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.step .n {
  position: absolute; top: -6px; left: 0;
  background: var(--bg);
  padding-right: 14px;
  font-family: 'Instrument Serif', serif;
  font-size: 54px;
  color: var(--accent);
  font-style: italic;
  line-height: 1;
}
.alt-bg .step .n { background: var(--bg-alt); }
.step h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  margin-top: 40px;
}
.step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* Compare table */
.compare-filters {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 28px;
}
.chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.compare-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-tbl {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px;
}
.compare-tbl th, .compare-tbl td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare-tbl tr:last-child td { border-bottom: none; }
.compare-tbl th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
}
.compare-tbl th.us {
  background: var(--ink);
  color: var(--bg);
  position: relative;
}
.compare-tbl th.us .logo-mini {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Instrument Serif', serif;
  font-size: 16px;
  text-transform: none; letter-spacing: 0;
}
.compare-tbl th.us .logo-mini img { height: 20px; }
.compare-tbl th.us .logo-mini em { font-style: italic; color: var(--accent-bright); }
.compare-tbl th.us .logo-mini .tld { color: rgba(246,239,230,.55); font-size: 0.85em; }
.compare-tbl td.us {
  background: color-mix(in srgb, var(--accent-peach) 60%, transparent);
  color: var(--ink);
  font-weight: 500;
}
[data-theme="dark"] .compare-tbl td.us { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.compare-tbl td.feature {
  font-weight: 600; color: var(--ink);
}
.compare-tbl .yes { color: var(--accent); font-weight: 700; }
.compare-tbl .no { color: var(--muted-2); }
.compare-tbl .partial { color: var(--gold); }

.hidden-row { display: none; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.feature .badge {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-peach);
  color: var(--accent);
  display: grid; place-items: center;
}
.feature .badge svg { width: 20px; height: 20px; }
.feature h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
}
.feature h4 em { font-style: italic; color: var(--accent); }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* Audiences */
.audiences {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.aud {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all .3s var(--ease);
}
.aud:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.aud .ord {
  font-family: 'Instrument Serif', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
}
.aud h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  margin-top: 8px;
  line-height: 1.1;
}
.aud h4 em { font-style: italic; color: var(--accent); }
.aud p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

/* Testimonial */
.testimonial {
  background: var(--dark);
  color: var(--bg);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -80px; left: -20px;
  font-family: 'Instrument Serif', serif;
  font-size: 540px;
  color: var(--accent);
  opacity: 0.14;
  line-height: 1;
  pointer-events: none;
}
.testimonial-inner {
  max-width: 940px; margin: 0 auto; text-align: center;
  position: relative;
}
.testimonial blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.12;
  margin: 0;
  font-style: italic;
  text-wrap: balance;
  color: #F6EFE6;
}
.testimonial blockquote b {
  font-style: normal;
  color: var(--gold);
  font-weight: 400;
  position: relative;
}
.testimonial blockquote b::after {
  content: '';
  position: absolute;
  left: 2%; right: 2%; bottom: -0.04em;
  height: 0.12em;
  background: rgba(232, 180, 100, 0.35);
  border-radius: 2px;
}
.attribution {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 14px;
  color: rgba(246, 239, 230, 0.75);
  font-size: 14.5px;
}
.attribution .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: grid; place-items: center;
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: #1A1410;
  font-style: italic;
}
.attribution .who b { color: var(--bg); font-weight: 500; }
.attribution .who span { color: rgba(246,239,230,.55); }

/* FAQ */
.faq-wrap {
  max-width: 820px; margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 24px 4px; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  cursor: pointer; font-family: inherit;
  font-size: 18px; font-weight: 500;
  color: var(--ink);
}
.faq-q:hover { color: var(--accent); }
.faq-q .plus {
  width: 28px; height: 28px;
  position: relative;
  flex-shrink: 0;
  color: var(--accent-deep);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ''; position: absolute;
  background: currentColor;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.faq-q .plus::before { width: 16px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 16px; }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), opacity .3s;
  opacity: 0;
}
.faq-item.open .faq-a { max-height: 280px; opacity: 1; }
.faq-a-inner {
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 680px;
  line-height: 1.6;
}

/* CTA band */
.cta-band {
  padding: 40px 0 120px;
}
.cta-pill {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 55%, #F97316 100%);
  border-radius: 48px;
  padding: 72px 48px;
  color: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(214, 52, 25, 0.55);
}
.cta-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 220, 180, 0.3), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(143, 31, 11, 0.45), transparent 40%);
  pointer-events: none;
}
.cta-pill h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.08;
  position: relative;
  text-wrap: balance;
}
.cta-pill h2 em {
  font-style: italic;
  color: #FFE8D4;
}
.cta-pill p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  position: relative;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.cta-pill .btn {
  margin-top: 32px;
  position: relative;
  background: #fff;
  color: var(--accent);
}
.cta-pill .btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(246, 239, 230, 0.7);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h5 {
  font-family: 'General Sans', sans-serif;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent-bright); }
.footer .brand-col .logo-lockup::after { background: rgba(246,239,230,.2); }
.footer .brand-col .wordmark { color: var(--bg); font-size: 28px; }
.footer .brand-col .wordmark .saas { color: var(--bg); }
.footer .brand-col .wordmark .tld { color: rgba(246,239,230,.45); }
.footer .brand-col p {
  margin-top: 18px;
  max-width: 280px;
  color: rgba(246,239,230,0.6);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(246,239,230,.45);
  font-size: 13px;
}

/* Modal (directory picker) */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 20, 16, 0.6);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform .4s var(--ease-out);
  box-shadow: var(--shadow-xl);
}
.modal-backdrop.open .modal { transform: none; }
.modal-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
}
.modal-head h3 { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1.1; }
.modal-head h3 em { font-style: italic; color: var(--accent); }
.modal-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--line);
  cursor: pointer; color: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.modal-filters {
  display: flex; gap: 10px; padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  align-items: center; flex-wrap: wrap;
}
.search-box {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  font-family: inherit; font-size: 14px; color: var(--ink);
}
.search-box svg { width: 14px; height: 14px; flex-shrink: 0; }
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 28px;
}
.dir-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.dir-row:hover { background: color-mix(in srgb, var(--accent-peach) 30%, transparent); }
.dir-row:last-child { border-bottom: none; }
.dir-check {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: all .2s;
  flex-shrink: 0;
}
.dir-row.selected .dir-check {
  background: var(--accent); border-color: var(--accent);
}
.dir-row.selected .dir-check svg { color: #fff; width: 12px; height: 12px; }
.dir-info .name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.dir-info .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dir-tag {
  font-size: 11.5px; font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.dir-tag.hot { background: var(--accent-peach); color: var(--accent); }
.dir-tag.new { background: rgba(232, 180, 100, 0.2); color: #8A6520; }
[data-theme="dark"] .dir-tag.new { color: var(--gold); }
.dir-dr {
  font-family: 'Instrument Serif', serif;
  font-size: 22px; color: var(--accent);
  font-style: italic;
}
.modal-foot {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  background: var(--bg-alt);
}
.modal-foot .summary {
  font-size: 14px; color: var(--ink);
}
.modal-foot .summary b {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xl);
  width: 280px;
  font-size: 13px;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.tweaks-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.tweaks-panel h6 {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  margin-bottom: 10px;
}
.tweaks-panel h6 em { font-style: italic; color: var(--accent); }
.tweaks-group { margin-bottom: 14px; }
.tweaks-group:last-child { margin-bottom: 0; }
.tweaks-label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.tweaks-segmented {
  display: flex; gap: 4px;
  background: var(--bg-alt); padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.tweaks-segmented button {
  flex: 1; padding: 7px 10px; border-radius: var(--radius-pill);
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 500; color: var(--muted);
  transition: all .2s;
}
.tweaks-segmented button.active { background: var(--ink); color: var(--bg); }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat + .stat::before { display: none; }
  .pricing-grid.mode-3up, .pricing-grid.mode-featured { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-left { border-right: none; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compare-tbl { font-size: 13px; }
  .compare-tbl th, .compare-tbl td { padding: 12px 10px; }
  .tweaks-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); max-width: 320px; }
}
