/* ==========================================================================
   SBIR Signal — design system
   "Modern SaaS, clean & inviting" (Linear/Stripe energy)
   One shared stylesheet used by the SPA and the Jinja2 server-rendered pages.
   ========================================================================== */

/* ---- Fonts: Satoshi (Fontshare) for display, Inter (Google) for body ---- */
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@500,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Light palette */
  --bg: #FBFCFD;
  --surface: #FFFFFF;
  --surface-2: #F4F7FA;
  --border: #E5EAF0;
  --text: #0F1B2D;
  --text-muted: #5A6B82;
  --text-faint: #93A1B5;
  --primary: #2563EB;
  --primary-hover: #1D4FD7;
  --primary-soft: #EAF1FE;
  --accent: #0EA5A4;
  --success: #15803D;
  --warning: #B45309;
  --danger: #B91C1C;

  /* Type */
  --font-display: "Satoshi", "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shape + motion */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --max: 1120px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.04), 0 1px 3px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 27, 45, 0.06), 0 2px 6px rgba(15, 27, 45, 0.05);
  --shadow-lg: 0 12px 32px rgba(15, 27, 45, 0.10), 0 4px 12px rgba(15, 27, 45, 0.06);
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.35);
  --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #111A2B;
  --surface-2: #16213A;
  --border: #243349;
  --text: #E6EDF6;
  --text-muted: #9DB0C8;
  --text-faint: #5E708A;
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --primary-soft: #16294D;
  --accent: #2DD4BF;
  --success: #4ADE80;
  --warning: #FBBF24;
  --danger: #F87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.50);
  --ring: 0 0 0 3px rgba(59, 130, 246, 0.45);
}

/* Honor OS preference before any explicit toggle is set. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220;
    --surface: #111A2B;
    --surface-2: #16213A;
    --border: #243349;
    --text: #E6EDF6;
    --text-muted: #9DB0C8;
    --text-faint: #5E708A;
    --primary: #3B82F6;
    --primary-hover: #60A5FA;
    --primary-soft: #16294D;
    --accent: #2DD4BF;
    --success: #4ADE80;
    --warning: #FBBF24;
    --danger: #F87171;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.50);
    --ring: 0 0 0 3px rgba(59, 130, 246, 0.45);
  }
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* Tabular numerals for money + dates. */
.amount, .num, .stat-value, .price, td.amount, .tabular { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

main.container { flex: 1 0 auto; }

img, svg { vertical-align: middle; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---- Logo --------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand .logo-mark { width: 28px; height: 28px; color: var(--primary); flex: 0 0 auto; }
.brand .brand-text { white-space: nowrap; }

/* ---- Top navigation ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a.active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Avatar / account menu */
.account { position: relative; }
.avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.avatar-btn:hover { background: var(--surface-2); }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  flex: 0 0 auto;
}
.avatar-btn .tier-pill { font-size: 0.7rem; }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 60;
}
.menu[hidden] { display: none; }
.menu .menu-head { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu .menu-email { font-size: 0.85rem; font-weight: 600; word-break: break-all; }
.menu a, .menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }

/* Mobile nav toggle */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
}
.nav-burger svg { width: 20px; height: 20px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn, .btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
    box-shadow var(--t-fast), transform var(--t-fast);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn-primary:disabled, .btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger); filter: brightness(0.92); color: #fff; text-decoration: none; }

/* Inline spinner for async buttons */
.spinner {
  width: 15px; height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Inputs ------------------------------------------------------------- */
input[type="text"], input[type="search"], input[type="email"],
input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6B82' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
label.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- Pills / badges / tags ---------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  white-space: nowrap;
}
.pill-primary { background: var(--primary-soft); color: var(--primary); }
.pill-accent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
}
.tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
}
.badge { display: inline-block; padding: 3px 10px; font-size: 0.75rem; font-weight: 600;
  border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 56px 0 36px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}
.hero .subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-search {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}
.hero-search .search-wrap { position: relative; flex: 1; }
.hero-search .search-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-faint); pointer-events: none;
}
.hero-search input[type="search"] {
  padding: 14px 14px 14px 42px;
  font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero-search .btn-primary { padding-left: 22px; padding-right: 22px; }

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.stat-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  text-align: left;
  min-width: 130px;
  box-shadow: var(--shadow-sm);
}
.stat-chip .stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}
.stat-chip .stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- Filter bar --------------------------------------------------------- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin: 24px 0 8px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.field { display: flex; flex-direction: column; }
.filter-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.filter-more[hidden] { display: none; }
.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.filter-actions .spacer { flex: 1; }
.link-toggle {
  background: none; border: none; color: var(--primary);
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; padding: 6px 4px;
}
.link-toggle:hover { text-decoration: underline; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.active-filters:empty { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-pill);
}
.chip button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border: none; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary); cursor: pointer; font-size: 14px; line-height: 1;
}
.chip button:hover { background: color-mix(in srgb, var(--primary) 28%, transparent); }

/* ---- Results toolbar ---------------------------------------------------- */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 14px;
  flex-wrap: wrap;
}
.results-count { color: var(--text-muted); font-size: 0.92rem; }
.results-count strong { color: var(--text); font-weight: 600; }

/* Export menu */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 30;
}
.dropdown-menu[hidden] { display: none; }
.dropdown-menu button {
  display: flex; align-items: center; gap: 9px;
  width: 100%; text-align: left; padding: 9px 10px;
  border: none; background: none; color: var(--text);
  font: inherit; font-size: 0.9rem; border-radius: 8px; cursor: pointer;
}
.dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu button svg { width: 16px; height: 16px; color: var(--text-muted); }
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-wrap[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--text); color: var(--surface);
  font-size: 0.78rem; font-weight: 500; padding: 7px 10px; border-radius: 8px;
  white-space: nowrap; box-shadow: var(--shadow-md); z-index: 40;
}

/* ---- Award cards -------------------------------------------------------- */
.results { display: grid; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.card .recipient { margin: 0; font-size: 1.12rem; font-weight: 700; }
.card .recipient a { color: var(--text); }
.card .recipient a:hover { color: var(--primary); }
.card .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  white-space: nowrap;
}
.card .meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.card .meta.sub {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px;
  color: var(--text-faint); font-size: 0.84rem;
}
.card .meta.sub strong { color: var(--text-muted); font-weight: 600; }
.card .pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.card .summary {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.card .summary .ai-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); margin-right: 6px;
}
.card .tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.card-actions .spacer { flex: 1; }
.ext-link { font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 4px; }

/* ---- Skeleton loaders --------------------------------------------------- */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.sk {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-line { height: 12px; margin-bottom: 10px; }
.sk-title { height: 18px; width: 55%; margin-bottom: 14px; }
.sk-pill { height: 20px; width: 70px; border-radius: 999px; display: inline-block; margin-right: 8px; }

/* ---- Empty / error states ----------------------------------------------- */
.state-card {
  text-align: center;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.state-card .state-icon {
  width: 46px; height: 46px; color: var(--text-faint); margin-bottom: 14px;
}
.state-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.state-card p { color: var(--text-muted); margin: 0 auto 16px; max-width: 420px; }

.upgrade-card {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--primary-soft), var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: var(--radius-lg);
  margin: 8px 0;
}
.upgrade-card h3 { margin: 0 0 6px; }
.upgrade-card p { color: var(--text-muted); margin: 0 auto 16px; max-width: 440px; }

/* ---- Pagination --------------------------------------------------------- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 30px 0 48px;
}
.pagination .page-info { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Status (aria-live) ------------------------------------------------- */
.status { color: var(--text-muted); font-size: 0.92rem; }
.status.error { color: var(--danger); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  margin-top: 56px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-inner .footer-links a { color: var(--text-muted); margin-right: 16px; }
.footer-inner .footer-links a:hover { color: var(--text); }
.site-footer p { margin: 0; }

/* ==========================================================================
   Server-rendered pages: intro, prose, facet tables, pricing, etc.
   ========================================================================== */
.page-hero { padding: 48px 0 24px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 10px; }
.page-hero .subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 70ch; margin: 0; }

.intro { padding: 36px 0 8px; }
.intro h1 { font-size: 1.9rem; margin: 0 0 8px; }
.intro .subtitle { color: var(--text-muted); margin: 0; max-width: 70ch; }

section + section { margin-top: 28px; }

/* Stat grid (facet pages) */
.stat-grid { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0; flex-wrap: wrap; }
.stat-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-grid li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.top-recipients ul, .related-links { list-style: none; padding: 0; margin: 0; }
.top-recipients li { padding: 8px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.related-links { display: flex; gap: 10px; flex-wrap: wrap; }
.related-links a {
  display: inline-flex; padding: 7px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); font-size: 0.88rem; font-weight: 500;
}
.related-links a:hover { background: var(--surface-2); text-decoration: none; }

/* Facet award table */
.award-table { overflow-x: auto; }
.award-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.92rem;
}
.award-table th, .award-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.award-table th {
  background: var(--surface-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.award-table tbody tr:last-child td { border-bottom: none; }
.award-table tbody tr:hover { background: var(--surface-2); }
.award-table td.amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.award-table td.recipient { white-space: normal; min-width: 200px; }

/* Award detail (server-rendered) */
.award-detail { max-width: 760px; padding: 36px 0 24px; }
.award-detail > h1 { font-size: 1.9rem; margin: 0 0 8px; }
.award-detail .subtitle { color: var(--text-muted); margin: 0 0 24px; }
.award-detail section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}
.award-detail section h2 { font-size: 1.1rem; margin: 0 0 12px; }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.facts dt { font-weight: 600; color: var(--text-muted); font-size: 0.9rem; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.tech-domains p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* Prose (guide / about) */
.prose { max-width: 70ch; padding: 12px 0 24px; }
.prose h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.prose p { line-height: 1.65; color: var(--text); }
.prose .disclaimer { color: var(--text-muted); font-size: 0.92rem; }
.prose .cta {
  background: linear-gradient(135deg, var(--primary-soft), var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-top: 36px;
}
.prose .cta h2 { margin-top: 0; }

/* ---- Pricing ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 8px 0;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.recommended {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.pricing-card .reco-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.pricing-card h2 { font-size: 1.2rem; margin: 0 0 4px; }
.pricing-card .price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin: 6px 0 16px; }
.pricing-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.pricing-card li {
  position: relative; padding: 7px 0 7px 26px; font-size: 0.92rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* Auth forms (pricing) */
.auth-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.auth-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.auth-col h2 { font-size: 1.15rem; margin: 0 0 14px; }
.auth-col form { display: flex; flex-direction: column; gap: 12px; }

.signed-in-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-top: 8px;
}

/* ==========================================================================
   Deal Rooms
   ========================================================================== */
.dr-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 36px 0 8px;
}
.dr-header h1 { font-size: 1.9rem; margin: 0 0 6px; }
.dr-header .subtitle { color: var(--text-muted); margin: 0; max-width: 60ch; }

.dr-cross-company {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-top: 10px;
}

.dr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.dr-room-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), border-color var(--t-base);
  color: var(--text);
}
.dr-room-card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); text-decoration: none; }
.dr-room-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.dr-room-card .dr-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 14px; min-height: 1.3em; }
.dr-room-card .dr-stats { display: flex; gap: 16px; color: var(--text-faint); font-size: 0.82rem; }
.dr-room-card .dr-stats strong { color: var(--text-muted); }

/* Deal room detail layout */
.dr-detail { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: 8px; }
.dr-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.dr-panel h2 { font-size: 1.05rem; margin: 0 0 14px; }
.dr-members { list-style: none; padding: 0; margin: 0 0 18px; }
.dr-member { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.dr-member:last-child { border-bottom: none; }
.dr-member .who { flex: 1; min-width: 0; }
.dr-member .who .email { font-size: 0.88rem; font-weight: 500; word-break: break-all; }
.dr-member .who .role { font-size: 0.76rem; color: var(--text-faint); }
.dr-member .status-invited { color: var(--warning); }

.dr-invite-form { display: flex; flex-direction: column; gap: 10px; }
.dr-invite-form .row { display: flex; gap: 8px; }
.dr-invite-form .row select { flex: 0 0 110px; }

.copy-link-box { display: flex; gap: 8px; margin-top: 12px; }
.copy-link-box input { font-size: 0.82rem; background: var(--surface-2); }

.dr-award-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.dr-award-item .dr-award-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dr-award-item h3 { margin: 0; font-size: 1rem; }
.dr-award-item .amount { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.dr-award-item .dr-note {
  margin: 10px 0 0; padding: 10px 12px;
  background: var(--surface-2); border-radius: 8px;
  font-size: 0.88rem; color: var(--text-muted);
}
.dr-award-item .added-by { font-size: 0.78rem; color: var(--text-faint); margin-top: 8px; }

/* Add-to-deal-room modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8, 14, 26, 0.55);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px;
  padding: 24px;
}
.modal h2 { font-size: 1.2rem; margin: 0 0 6px; }
.modal .modal-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 18px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h2 { margin: 0; }
.modal .field { margin-bottom: 14px; }
.modal .room-pick-list { list-style: none; padding: 0; margin: 0 0 16px; max-height: 240px; overflow-y: auto; }
.modal .room-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast);
}
.modal .room-pick:hover { border-color: var(--primary); background: var(--surface-2); }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--surface);
  padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: 0.9rem; font-weight: 500; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity var(--t-base), transform var(--t-base);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .dr-detail { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { gap: 12px; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 8px; }
  .nav-burger { display: inline-flex; }
  .nav { margin-left: auto; }
  .hero { padding: 40px 0 28px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn-primary { width: 100%; }
  .card-top { flex-direction: column; gap: 6px; }
  .card .amount { white-space: normal; }
  .results-toolbar { align-items: flex-start; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .brand .brand-text { font-size: 0.95rem; }
  .stat-chip { flex: 1 1 100%; min-width: 0; }
  .facts dl { grid-template-columns: 1fr; gap: 4px 0; }
  .facts dt { margin-top: 8px; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Utility ------------------------------------------------------------ */
.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;
}
[hidden] { display: none !important; }
.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }

/* ==========================================================================
   Marketing landing page (/) + auth modal
   ========================================================================== */

/* Shared button + link helpers used by the landing + modal. */
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: none; background: transparent;
  color: var(--text-muted); border-radius: var(--radius); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--primary); font: inherit; font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

.landing { padding-bottom: 8px; }

/* Scroll reveal — progressive enhancement. Content is visible by default; the
   hidden starting state is only applied once JS adds `js-reveal` to <html> AND
   motion is allowed, so no-JS users and crawlers always see every section. */
html.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms ease, transform 520ms ease; }
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Hero --------------------------------------------------------------- */
.lp-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; padding: 56px 0 40px;
}
.lp-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.lp-h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.08; margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.lp-sub { font-size: 1.12rem; color: var(--text-muted); max-width: 56ch; margin: 0 0 26px; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-cta-center { justify-content: center; }
.lp-microcopy { margin: 14px 0 0; color: var(--text-faint); font-size: 0.88rem; }

/* ---- Live preview card -------------------------------------------------- */
.lp-hero-preview { min-width: 0; }
.lp-preview-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.lp-preview-search { display: flex; align-items: center; gap: 8px; position: relative; }
.lp-preview-search svg {
  position: absolute; left: 12px; width: 18px; height: 18px; color: var(--text-faint);
  pointer-events: none;
}
.lp-preview-search input[type="search"] {
  flex: 1; min-width: 0; padding: 11px 12px 11px 38px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font: inherit;
}
.lp-preview-search input:focus { outline: none; box-shadow: var(--ring); border-color: var(--primary); }
.lp-preview-results { display: flex; flex-direction: column; gap: 8px; min-height: 168px; }
.lp-preview-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 6px 0; }
.lp-preview-skeleton .sk-line { height: 44px; }
.lp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color var(--t-fast), background var(--t-fast);
}
.lp-row:hover { border-color: var(--primary); background: var(--surface-2); text-decoration: none; }
.lp-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-row-name { font-weight: 600; color: var(--text); font-size: 0.95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lp-row-meta { color: var(--text-muted); font-size: 0.82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-row-amt { font-weight: 700; color: var(--accent); font-size: 0.9rem; white-space: nowrap; }
.lp-preview-empty { color: var(--text-muted); font-size: 0.9rem; margin: 0; padding: 8px 2px; }
.lp-preview-locked { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600;
  padding: 6px 11px; border-radius: var(--radius-pill); border: 1px solid var(--border);
}
.lp-chip svg { width: 13px; height: 13px; }
.lp-chip-locked { color: var(--text-faint); background: var(--surface-2); }
.lp-chip-nudge { color: var(--primary); background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); cursor: pointer; }
.lp-chip-nudge:hover { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.lp-preview-all { font-weight: 600; font-size: 0.9rem; }

/* ---- Trust bar ---------------------------------------------------------- */
.lp-trustbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 26px; box-shadow: var(--shadow-sm); margin: 8px 0 12px;
}
.lp-trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-trust-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--text); }
.lp-trust-label { color: var(--text-muted); font-size: 0.85rem; }
.lp-trust-sep { width: 1px; height: 34px; background: var(--border); }

/* ---- Generic section ---------------------------------------------------- */
.lp-section { padding: 56px 0; }
.lp-section-head { max-width: 64ch; margin: 0 auto 36px; text-align: center; }
.lp-section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 10px; }
.lp-section-sub { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* ---- Problem -> Solution ------------------------------------------------ */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.lp-pains, .lp-gains { list-style: none; margin: 0; padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.lp-pains { background: var(--surface-2); }
.lp-gains { background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); }
.lp-pains li, .lp-gains li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); line-height: 1.45; }
.lp-x { color: var(--danger); font-weight: 800; }
.lp-check { color: var(--success); font-weight: 800; }

/* ---- Feature cards ------------------------------------------------------ */
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.lp-feature:hover { box-shadow: var(--shadow-md); transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.lp-feature-icon {
  width: 42px; height: 42px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 14px;
  background: var(--primary-soft); color: var(--primary);
}
.lp-feature-icon svg { width: 21px; height: 21px; }
.lp-feature h3 { font-size: 1.05rem; margin: 0 0 6px; }
.lp-feature p { color: var(--text-muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* ---- Banded sections (reauth + final) ----------------------------------- */
.lp-band { border-radius: var(--radius-lg); margin: 24px 0; padding: 56px 24px; }
.lp-band-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.lp-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 14px; }
.lp-band p { font-size: 1.08rem; margin: 0 0 24px; }
.lp-reauth {
  background: linear-gradient(135deg, #0B2A4A, #123E6B);
  color: #EAF2FB;
}
.lp-reauth h2 { color: #fff; }
.lp-reauth p { color: #C9DCF0; }
.lp-reauth strong { color: #fff; }
.lp-band-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #0B2A4A; background: #7FD3CE;
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.lp-reauth .btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }
.lp-final { background: linear-gradient(135deg, var(--primary-soft), var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border)); }
.lp-final h2 { color: var(--text); }
.lp-final p { color: var(--text-muted); }

/* ---- Pricing strip ------------------------------------------------------ */
.lp-pricing-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 920px; margin: 0 auto; }
.lp-tier {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.lp-tier-best { border-color: var(--primary); box-shadow: var(--shadow-md); }
.lp-tier-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 3px 12px; border-radius: var(--radius-pill);
}
.lp-tier-name { font-weight: 600; color: var(--text-muted); }
.lp-tier-price { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--text); }
.lp-tier-price small { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.lp-tier-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 6px; }
.lp-tier .btn-sm, .lp-tier .btn-secondary, .lp-tier .btn-primary { width: 100%; justify-content: center; }
.lp-pricing-link { text-align: center; margin: 26px 0 0; font-weight: 600; }

/* ---- Credibility -------------------------------------------------------- */
.lp-credibility { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.lp-cred-item { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; }
.lp-cred-item h3 { font-size: 1.02rem; margin: 0 0 8px; }
.lp-cred-item p { color: var(--text-muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* ---- Auth modal --------------------------------------------------------- */
.auth-modal { max-width: 400px; }
.auth-tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 4px;
  border-radius: var(--radius); margin-bottom: 18px; }
.auth-tab {
  flex: 1; padding: 9px 10px; border: none; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text-muted); border-radius: 7px;
  transition: background var(--t-fast), color var(--t-fast);
}
.auth-tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-modal .field-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.auth-modal input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: inherit;
}
.auth-modal input:focus { outline: none; box-shadow: var(--ring); border-color: var(--primary); }
.auth-status { margin: 12px 0 0; min-height: 1.1em; }
.auth-switch { margin: 16px 0 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ---- Landing responsive ------------------------------------------------- */
@media (max-width: 920px) {
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-pricing-strip { grid-template-columns: repeat(2, 1fr); }
  .lp-credibility { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lp-hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 28px; }
  .lp-compare { grid-template-columns: 1fr; }
  .lp-cta-row { flex-direction: column; }
  .lp-cta-row .btn-primary, .lp-cta-row .btn-secondary { width: 100%; justify-content: center; }
  .lp-trust-sep { display: none; }
  .lp-trustbar { gap: 16px 24px; }
}
@media (max-width: 480px) {
  .lp-features { grid-template-columns: 1fr; }
  .lp-pricing-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal,
  html.js-reveal .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .lp-feature:hover { transform: none; }
}
