:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --orange: #e2472c;
  --orange-2: #f2a24a;
  --bg-alt: #f7f7f9;
  --text-muted: #55606e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  color: var(--ink);
  background: #ffffff;
}

/* Nav */
.nav {
  background: var(--ink);
  padding: 0.9rem 0;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 34px; width: auto; }
.nav-login-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
}
.nav-login-link:hover { background: rgba(255,255,255,0.08); }

/* Dark, centered nav variant (used on the landing page) -- big logo, dark bar */
.nav-dark-centered {
  background: var(--ink);
  padding: 1.75rem 0;
  position: relative;
}
.nav-centered {
  justify-content: center;
}
.brand-lockup {
  display: flex;
  align-items: center;
}
.brand-logo { height: 130px; width: auto; display: block; }
.nav-login-corner-dark {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
}
.nav-login-corner-dark:hover { background: rgba(255,255,255,0.08); }

/* 768px, not the 640px the rest of this page uses -- the logo image is
   wide (aspect ~3.7:1), so it starts crowding the absolutely-positioned
   Log In button well before a typical "mobile" breakpoint. Stacking
   earlier avoids that squeeze instead of chasing an exact pixel width
   that only works for today's logo asset. */
@media (max-width: 768px) {
  .nav-dark-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
  }
  .nav-inner.nav-centered {
    width: 100%;
    order: 1;
  }
  .nav-login-corner-dark {
    position: static;
    transform: none;
    display: block;
    width: fit-content;
    order: 2;
    margin: 0.85rem 0 0;
  }
  .brand-logo { height: 76px; }
}

.contact-bar {
  background: var(--ink-2);
  color: #cbd5e1;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
}
.contact-bar a {
  color: var(--orange-2);
  text-decoration: none;
  font-weight: 600;
}
.contact-bar a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .contact-bar { font-size: 0.75rem; line-height: 1.5; }
}

/* Sponsor spotlight, between the contact bar and the hero -- rotates
   through src/spotlightItems.js, same list and 3s cadence as the
   dashboard's tab-bar spotlight. Deliberately not named "banner"/"ad" --
   see the comment there for why: ad-blockers filter on those words in
   class/file names and would hide even our own first-party content. */
.landing-spotlight {
  /* Matches contact-bar above and the top of the hero gradient below, so
     the dark background reads as one continuous strip -- each creative's
     own light background already stands out against it, no extra frame
     needed. */
  background: var(--ink-2);
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem;
}
/* Fixed-size slot, not sized to any one creative -- rotating banners won't
   all share the same aspect ratio (the Derby one is a thin 728x90 strip;
   others may be closer to square), so a fixed box + object-fit-style
   centering keeps rotation from jumping the page layout every 3s. */
.landing-spotlight-slot {
  position: relative;
  width: 100%;
  max-width: 728px;
  height: 100px;
}
.landing-spotlight-item {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}
.landing-spotlight-item.active { display: flex; }
.landing-spotlight-item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.badge-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.badge {
  background: rgba(226,71,44,0.15);
  border: 1px solid rgba(226,71,44,0.5);
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.hero-tagline { font-size: 1.25rem; font-weight: 600; color: var(--orange-2); margin: 0 0 1rem; }
.hero-sub { color: #cbd5e1; font-size: 1.05rem; line-height: 1.6; margin: 0 auto 2rem; max-width: 620px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.price { font-size: 2rem; font-weight: 800; }
.price-period { font-size: 1rem; font-weight: 400; color: #cbd5e1; }
.hero-value { color: #94a3b8; font-size: 0.9rem; margin-top: 1.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}
.btn-primary { background: linear-gradient(90deg, var(--orange-2), var(--orange)); color: white; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }

/* Dashboard preview card */
.screenshot-placeholder-section {
  background: var(--ink-2);
  padding: 0 1.5rem 4rem;
  display: flex;
  justify-content: center;
}
.preview-wrapper {
  position: relative;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.preview-card {
  max-width: 880px;
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.preview-blurred {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.preview-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: rgba(15, 23, 42, 0.88);
  border: 3px solid var(--orange);
  color: var(--orange-2);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.preview-wrapper:hover .preview-stamp {
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.06);
}

@media (max-width: 640px) {
  .preview-stamp { font-size: 1.05rem; padding: 0.7rem 1.3rem; }
}
.preview-titlebar {
  background: var(--ink);
  color: white;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.preview-titlebar-logo { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; }
.preview-titlebar-logo .chev { color: var(--orange-2); }
.preview-titlebar-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #e2e8f0; }
.preview-stats {
  background: #f4ead9;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.25rem 0.5rem;
}
.preview-stat { text-align: center; }
.preview-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--orange); font-family: Georgia, serif; }
.preview-stat-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: #6b5f4a; margin-top: 0.15rem; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.preview-table th {
  background: #f4ead9;
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #6b5f4a;
  border-top: 1px solid #e8dcc4;
}
.preview-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  color: var(--ink-2);
}
.preview-more {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.9rem;
  margin: 0;
  background: white;
}

@media (max-width: 640px) {
  .preview-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem 0; }
  .preview-table { font-size: 0.72rem; }
  .preview-table th:nth-child(4), .preview-table td:nth-child(4),
  .preview-table th:nth-child(5), .preview-table td:nth-child(5) { display: none; }
}

/* General sections */
.section { max-width: 900px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.section h2 { font-size: 1.7rem; text-align: center; margin: 0 0 1rem; }
.section-sub { color: var(--text-muted); text-align: center; max-width: 640px; margin: 0 auto 1.5rem; line-height: 1.6; }
.alt-bg { background: var(--bg-alt); max-width: none; }
.alt-bg > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.alt-bg h2, .alt-bg .section-sub, .alt-bg .perfect-for-label, .alt-bg .pill-row { max-width: 900px; }
/* .section h2's own margin (0 0 1rem) and .perfect-for-label's own margin
   (1.5rem 0 0.75rem) each explicitly zero out the left/right margins,
   which beats -- or on .perfect-for-label, source-order-ties with -- the
   margin-left/right: auto above by specificity. That silently cancelled
   the centering on every gray (.alt-bg) section: the text stayed
   text-align: center within its own box, but the box itself sat pinned to
   the left edge instead of centered, reading as fully left-justified.
   .section.alt-bg beats plain .section/.perfect-for-label unambiguously
   regardless of source order. */
.section.alt-bg h2, .section.alt-bg .perfect-for-label {
  margin-left: auto;
  margin-right: auto;
}

.verticals { padding-top: 2.5rem; padding-bottom: 0.5rem; }
.icon-row { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.icon-pill {
  background: var(--bg-alt);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2.5rem;
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

.perfect-for-label { text-align: center; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.pill {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.feature-grid > div {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.living-db h2, .why-section h2 { color: var(--ink); }
.why-section { text-align: center; }

.faq details {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--orange); }
.faq details[open] summary::before { content: "– "; }
.faq p { color: var(--text-muted); margin: 0.75rem 0 0; line-height: 1.6; }

.bottom-cta {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}
.bottom-cta h2 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.bottom-cta p { color: #cbd5e1; margin: 0 0 2rem; }
.bottom-cta a.muted { color: #cbd5e1; }
.login-link-light {
  color: var(--orange-2);
  font-weight: 600;
  text-decoration: underline;
}
.login-link-light:hover { color: #ffffff; }

.footer {
  text-align: center;
  padding: 1.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
  background: var(--ink);
}
.footer-link {
  color: #94a3b8;
  text-decoration: underline;
}
.footer-link:hover { color: var(--orange-2); }

@media (max-width: 640px) {
  .checklist-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.7rem; }
}
