* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dp-bg-dark);
  color: var(--dp-text-primary);
  font-family: var(--dp-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(12px);
  background-color: rgba(7, 12, 22, 0.85);
  border-bottom: 1px solid var(--dp-border);
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--dp-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dp-text-primary);
}

.nav-logo-mark {
  display: block;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--dp-text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--dp-text-primary);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px;
  background: linear-gradient(to bottom, var(--dp-bg-dark), var(--dp-surface-dark));
  padding-left: 20px;
  padding-right: 20px;
}

/* The inline style attribute supplies the gradient + photograph together (same pattern as
   .page-hero.has-image below), so text contrast never depends on how bright the generated
   image happens to be. */
.hero.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-headline {
  font-family: var(--dp-font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto;
  color: var(--dp-text-primary);
}

.hero-subtitle {
  color: var(--dp-text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* Text on an --dp-accent fill is dark, not white. White on #10B981 measures 2.54:1 and on
   the #059669 hover state 3.77:1 — both under the 4.5:1 AA floor, on the page's primary
   conversion element. --dp-bg-dark measures 7.72:1 at rest and 5.19:1 on hover. */
.cta-primary {
  background-color: var(--dp-accent);
  color: var(--dp-bg-dark);
  padding: 16px 40px;
  border-radius: var(--dp-radius-md);
  font-family: var(--dp-font-sans);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  /* Explicit list, not `all` — `all` silently animates whatever a future hover state adds,
     including layout properties, with no review signal. These three are what change. */
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.cta-primary:hover {
  background-color: var(--dp-accent-hover);
  transform: scale(1.03);
}

.cta-secondary {
  background-color: transparent;
  color: var(--dp-accent);
  padding: 16px 40px;
  border-radius: var(--dp-radius-md);
  font-family: var(--dp-font-sans);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--dp-accent);
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.cta-secondary:hover {
  background-color: rgba(16, 185, 129, 0.1);
}

/* A live miniature of the pipeline the hero copy already describes in prose (call answered
   -> triaged -> dispatched -> booked -> signed -> paid). aria-hidden in the markup: every
   stage name here is already stated in .hero-subtitle and the feature cards below, so this
   is a diagram of existing copy, not new information a screen reader needs to announce. */
.dispatch-ticker {
  margin: 60px auto 0;
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.dispatch-ticker-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: ticker-scroll 32s linear infinite;
}

.dispatch-ticker:hover .dispatch-ticker-track,
.dispatch-ticker:focus-within .dispatch-ticker-track {
  animation-play-state: paused;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--dp-border);
  border-radius: 999px;
  background-color: var(--dp-surface-dark);
  color: var(--dp-text-secondary);
  font-family: var(--dp-font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dp-accent);
  flex: none;
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  border-bottom: 1px solid var(--dp-border);
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--dp-font-display);
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
}

.stat-label {
  color: var(--dp-text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.proof-section {
  padding: 80px 40px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.proof-card {
  background-color: var(--dp-surface-dark);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-xl);
  padding: 24px;
}

.proof-stat {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.proof-source {
  color: var(--dp-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
}

.features-section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--dp-font-display);
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--dp-text-secondary);
  font-size: 16px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--dp-surface-dark);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-xl);
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: var(--dp-border-accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: var(--dp-accent);
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-family: var(--dp-font-display);
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--dp-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.pricing-section {
  padding: 100px 40px;
  background-color: var(--dp-bg-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--dp-surface-dark);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--dp-accent);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--dp-accent);
  color: var(--dp-bg-dark);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-tier {
  color: var(--dp-text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-amount {
  font-family: var(--dp-font-display);
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 12px 0 4px;
}

.pricing-period {
  color: var(--dp-text-muted);
  font-size: 14px;
  font-weight: normal;
}

.pricing-desc {
  color: var(--dp-text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  color: var(--dp-text-secondary);
  font-size: 14px;
  align-items: flex-start;
}

.pricing-features li::before {
  content: '✓';
  color: var(--dp-accent);
  font-weight: bold;
}

.pricing-cta {
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: var(--dp-radius-md);
  font-family: var(--dp-font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pricing-cta.primary {
  background-color: var(--dp-accent);
  color: var(--dp-bg-dark);
}

.pricing-cta.primary:hover {
  background-color: var(--dp-accent-hover);
}

/* --dp-border composites to 1.22:1 against the card fill, so at rest these two buttons had
   no perceivable edge (WCAG 1.4.11 wants 3:1 for a control boundary). --dp-text-muted is
   5.00:1 there. The global --dp-border stays as-is; it is fine for decorative hairlines. */
.pricing-cta.outline {
  background-color: transparent;
  color: var(--dp-text-primary);
  border: 1px solid var(--dp-text-muted);
}

.pricing-cta.outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--dp-text-secondary);
}

/* Sits ABOVE the grid now (see render-landing.mjs) — the trial terms and the uncapped
   overage rate are constraints on the choice, so they precede it. */
.pricing-note {
  text-align: center;
  color: var(--dp-text-secondary);
  font-size: 14px;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.trust-section {
  padding: 80px 40px;
  background-color: var(--dp-surface-dark);
  text-align: center;
}

.trust-title {
  font-family: var(--dp-font-display);
  font-size: 28px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.trust-desc {
  color: var(--dp-text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer {
  padding: 40px;
  border-top: 1px solid var(--dp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dp-text-muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--dp-text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--dp-text-primary);
}

/* Scoped to .js (set by an inline script in <head>) so the page is VISIBLE by default.
   Previously every section carried .fade-up with opacity:0 and only an IntersectionObserver
   revealed it — so with JS disabled, a script error, or a non-JS crawler/social-preview bot,
   the entire landing page rendered as an empty dark rectangle. */
.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 16px 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-headline {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .proof-section, .features-section, .pricing-section, .trust-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .footer {
    flex-direction: column;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Remediation layer — appended so the original cascade above is untouched.
   ───────────────────────────────────────────────────────────────────────── */

/* The hero and pricing CTAs are anchors now (they were inert <button>s with no
   handler and no href, so the landing page had no route into the app at all).
   Anchors need the block behaviour buttons got for free. The .cta-primary and
   .hero-headline class names are a hub contract — the Optimizer A/B-tests them
   and the copy overlay retargets them — so only the element type changed. */
.cta-primary,
.cta-secondary {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.pricing-cta {
  display: block;
  text-align: center;
  text-decoration: none;
}

.nav-links .cta-primary {
  padding: 10px 20px;
  font-size: 14px;
}

/* Focus indicators. Neither stylesheet had a single :focus rule, while .cta-primary
   and .btn both set border:none — so keyboard users had nothing to follow. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* The mobile nav used to be display:none below 768px, which removed Features,
   Pricing AND the only Get Started CTA — leaving just the logo. Three items do not
   need a drawer; reflow them instead. */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .nav-links a { font-size: 14px; }
  .nav-links .cta-primary { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 400px) {
  .nav-links a[href="#features"] { display: none; }
}

/* WCAG 2.2.2 / vestibular safety catch-all. The dispatch ticker below is the one remaining
   infinite animation on this page; its specific still-frame override follows further down. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .fade-up { opacity: 1 !important; transform: none !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Public pages layer — About, FAQ, Contact, Privacy, Terms, Blog.
   Appended so the landing-page cascade above is untouched. Everything here
   reuses the tokens in tokens.css, so these pages cannot drift from the
   home page's theme: same background, same accent, same two typefaces.
   ───────────────────────────────────────────────────────────────────────── */

/* Keyboard users land on this first; it stays off-screen until focused. The nav is
   position:fixed, so the target needs scroll-margin or the heading hides behind it. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--dp-accent);
  color: var(--dp-bg-dark);
  padding: 12px 20px;
  border-radius: 0 0 var(--dp-radius-sm) 0;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

#main {
  scroll-margin-top: 90px;
}

.nav-logo {
  text-decoration: none;
}

/* ── Page hero ─────────────────────────────────────────────────────────── */

.page-hero {
  padding: 180px 40px 80px;
  text-align: center;
  background: linear-gradient(to bottom, var(--dp-bg-dark), var(--dp-surface-dark));
  border-bottom: 1px solid var(--dp-border);
}

/* The inline style attribute supplies the gradient + photograph together, so the text
   contrast does not depend on how bright the generated image happens to be. */
.page-hero.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-eyebrow {
  color: var(--dp-accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.page-eyebrow a {
  color: var(--dp-accent);
}

.page-title {
  font-family: var(--dp-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #FFFFFF;
}

.page-lede {
  color: var(--dp-text-secondary);
  font-size: 18px;
  line-height: 1.6;
  max-width: 620px;
  margin: 20px auto 0;
}

/* ── Prose ─────────────────────────────────────────────────────────────── */

.page-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 40px 100px;
}

.prose-block + .prose-block {
  margin-top: 48px;
}

.prose-block h2 {
  font-family: var(--dp-font-display);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}

.prose-block p {
  color: var(--dp-text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.prose-block p + p {
  margin-top: 16px;
}

.prose-block a {
  color: var(--dp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.prose-list li {
  position: relative;
  padding-left: 26px;
  color: var(--dp-text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.prose-list li + li {
  margin-top: 14px;
}

.prose-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dp-accent);
}

.prose-list strong {
  color: var(--dp-text-primary);
  font-weight: 600;
}

/* ── Value / channel cards ─────────────────────────────────────────────── */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.value-card {
  background-color: var(--dp-surface-dark);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-lg);
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
  border-color: var(--dp-border-accent);
  transform: translateY(-3px);
}

.value-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 14px;
}

.value-card h3 {
  font-family: var(--dp-font-display);
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--dp-text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

.value-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--dp-accent);
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.value-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FAQ accordions ────────────────────────────────────────────────────── */
/* <details>, so every answer is in the DOM and findable with ctrl-F, expandable with no
   JavaScript at all, and announced correctly by a screen reader without any ARIA. */

.faq-group + .faq-group {
  margin-top: 56px;
}

.faq-group-title {
  font-family: var(--dp-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dp-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.faq-list {
  border-top: 1px solid var(--dp-border);
}

.faq-item {
  border-bottom: 1px solid var(--dp-border);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  font-family: var(--dp-font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--dp-text-primary);
  line-height: 1.5;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--dp-accent);
}

/* A CSS-drawn plus that becomes a minus when open — no icon font, no image request. */
.faq-marker {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 5px;
}

.faq-marker::before,
.faq-marker::after {
  content: '';
  position: absolute;
  background-color: var(--dp-accent);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-marker::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.faq-marker::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.faq-item[open] .faq-marker::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 4px 24px;
  max-width: 68ch;
}

.faq-answer p {
  color: var(--dp-text-secondary);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ── Closing CTA ───────────────────────────────────────────────────────── */

.page-cta {
  margin-top: 72px;
  padding: 48px 40px;
  text-align: center;
  background-color: var(--dp-surface-dark);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-xl);
}

.page-cta h2 {
  font-family: var(--dp-font-display);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.page-cta p {
  color: var(--dp-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.page-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ── Legal documents ───────────────────────────────────────────────────── */

.legal-body {
  max-width: 780px;
}

.legal-stamp {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--dp-border-accent);
  border-radius: 999px;
  color: var(--dp-accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 40px;
}

.legal-toc {
  background-color: var(--dp-surface-dark);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-lg);
  padding: 28px 32px;
  margin-bottom: 56px;
}

.legal-toc h2 {
  font-family: var(--dp-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--dp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  color: var(--dp-text-muted);
  font-size: 14px;
  line-height: 1.9;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--dp-text-secondary);
}

.legal-toc a:hover {
  color: var(--dp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body .prose-block + .prose-block {
  margin-top: 44px;
}

.legal-crosslink {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--dp-border);
}

/* ── Blog ──────────────────────────────────────────────────────────────── */

.blog-body {
  max-width: 1100px;
}

.blog-empty {
  text-align: center;
  padding: 40px 20px 20px;
}

.blog-empty h2 {
  font-family: var(--dp-font-display);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.blog-empty p {
  color: var(--dp-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.blog-empty .page-cta-actions {
  margin-top: 32px;
}

.blog-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: var(--dp-surface-dark);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-xl);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.blog-feature:hover {
  border-color: var(--dp-border-accent);
  transform: translateY(-3px);
}

.blog-feature-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.blog-feature-media img,
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-feature-text {
  padding: 40px 40px 40px 0;
}

.blog-feature-text h2 {
  font-family: var(--dp-font-display);
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--dp-surface-dark);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  border-color: var(--dp-border-accent);
  transform: translateY(-3px);
}

.blog-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-text {
  padding: 24px;
}

.blog-card-text h3 {
  font-family: var(--dp-font-display);
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-excerpt {
  color: var(--dp-text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.blog-meta {
  color: var(--dp-text-muted);
  font-size: 13px;
}

.blog-meta .dot {
  margin: 0 8px;
}

.blog-readmore {
  display: inline-block;
  margin-top: 20px;
  color: var(--dp-accent);
  font-size: 15px;
  font-weight: 600;
}

.blog-related {
  margin-top: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--dp-border);
}

.blog-related h2 {
  font-family: var(--dp-font-display);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

/* ── Single post ───────────────────────────────────────────────────────── */

.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 40px 40px;
}

.post-header {
  text-align: center;
}

.post-header .page-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.post-header .page-lede {
  margin-bottom: 20px;
}

.post-tags {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  border: 1px solid var(--dp-border);
  border-radius: 999px;
  color: var(--dp-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.post-cover {
  margin: 48px 0;
  border-radius: var(--dp-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The post body is hub-authored markup, so it is styled by element rather than by class —
   there are no class names here we control. */
.post-content {
  color: var(--dp-text-secondary);
  font-size: 17px;
  line-height: 1.8;
}

.post-content > * + * {
  margin-top: 22px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  font-family: var(--dp-font-display);
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 44px;
}

.post-content h1 { font-size: 30px; font-weight: 700; }
.post-content h2 { font-size: 25px; font-weight: 700; }
.post-content h3 { font-size: 20px; font-weight: 600; }

.post-content a {
  color: var(--dp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
}

.post-content li + li {
  margin-top: 10px;
}

.post-content li::marker {
  color: var(--dp-accent);
}

.post-content strong {
  color: var(--dp-text-primary);
  font-weight: 600;
}

.post-content img,
.post-content video {
  max-width: 100%;
  height: auto;
  border-radius: var(--dp-radius-md);
  display: block;
}

.post-content blockquote {
  margin: 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--dp-accent);
  color: var(--dp-text-primary);
  font-size: 18px;
  font-style: italic;
}

.post-content pre {
  background-color: var(--dp-surface-dark);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--dp-font-mono);
  font-size: 14px;
  line-height: 1.6;
}

.post-content code {
  font-family: var(--dp-font-mono);
  font-size: 0.92em;
  color: var(--dp-accent);
}

.post-content pre code {
  color: var(--dp-text-secondary);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--dp-border);
  margin: 40px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.post-content th,
.post-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--dp-border);
  text-align: left;
}

.post-content th {
  color: var(--dp-text-primary);
  font-weight: 600;
}

.post-footer {
  margin-top: 64px;
}

.post-footer .page-cta {
  margin-top: 0;
}

/* ── Site footer ───────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--dp-border);
  background-color: var(--dp-bg-dark);
  padding: 64px 40px 32px;
}

.footer-cols {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .nav-logo {
  font-size: 18px;
  margin-bottom: 14px;
}

.footer-tagline {
  color: var(--dp-text-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 300px;
}

/* h3, not h4 — no h3 exists before these on any page, so the shared footer was producing an
   h2 -> h4 heading skip sitewide. */
.footer-col h3 {
  font-family: var(--dp-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--dp-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--dp-text-muted);
  font-size: 14px;
  line-height: 2.1;
  transition: color 0.2s;
}

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

.footer-base {
  max-width: 1100px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--dp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--dp-text-muted);
  font-size: 13px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .blog-feature {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-feature-media {
    aspect-ratio: 16 / 9;
  }

  .blog-feature-text {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 140px 20px 60px;
  }

  .page-body {
    padding: 48px 20px 72px;
  }

  .post {
    padding: 130px 20px 32px;
  }

  .page-cta {
    padding: 36px 24px;
  }

  .legal-toc {
    padding: 24px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .site-footer {
    padding: 48px 20px 24px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-base {
    flex-direction: column;
    text-align: center;
  }

  .page-cta-actions .cta-primary,
  .page-cta-actions .cta-secondary {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Design Council layer — appended so the cascade above is untouched.
   Findings from the 8-seat review; each rule states the law it answers.
   ───────────────────────────────────────────────────────────────────────── */

/* The AI call answering card is the flagship and was sitting at identical weight to
   Truck Inventory in a flat 7-card grid. Spanning the full row makes it the one Large
   element (three-size rule) AND resolves the grid's orphan: 1 full-width + 6 in a clean
   3x2, instead of 7 auto-flowing into 3/3/1 with a lone card on every desktop. */
.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card.featured {
  grid-column: 1 / -1;
  padding: 40px;
}

.feature-card.featured .feature-title {
  font-size: 24px;
}

.feature-card.featured .feature-desc {
  font-size: 16px;
  max-width: 68ch;
}

@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Three tiers have no clean 2-up state — at ~1000px the "Most Popular" card landed
   top-right with Scale orphaned below it. Go 3-up straight to 1-up. */
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1050px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* The tier name is an <h3> now (it was a <div>, so heading navigation skipped straight
   past the pricing table). Pin the weight the <div> used to render at. */
.pricing-tier {
  font-weight: 600;
}

/* Peak-End: the page's closing section stated the call to action in command voice and
   gave the reader nothing to click. */
.trust-actions {
  margin-top: 32px;
}

/* What every plan actually includes. Sits under the grid because it is reassurance,
   not a constraint — the constraints (trial terms, overage) run above the cards. */
.pricing-included {
  text-align: center;
  color: var(--dp-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
  margin: 40px auto 0;
}

/* #main got scroll-margin for the fixed nav; the two anchors people actually click did
   not. They only land correctly today because section padding happens to exceed the nav
   height — that is luck, and it breaks the moment padding is tuned. */
#features,
#pricing {
  scroll-margin-top: 90px;
}

/* Touch targets. WCAG 2.5.8 floors at 24x24 and the doctrine wants 44x44 for a buyer
   using this one-handed in a truck; nav links had no padding at all (~17px) and the nav
   CTA came to 32px. */
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
}

.footer-col a {
  padding: 7px 0;
}

/* aria-current was being set by nav() with no visual counterpart — screen-reader users
   were told where they are and sighted users were not. */
.nav-links a[aria-current="page"] {
  color: var(--dp-text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  /* Seven links could not fit a phone. Blog/About/FAQ are occasional-reference content
     and remain one tap away in the footer; Features and Pricing stay reachable from the
     hero's secondary CTA and the footer Product column. Demotion, not deletion. */
  .nav-links {
    gap: 12px;
  }

  .nav-links a[href$="#features"],
  .nav-links a[href$="#pricing"],
  .nav-links a[href="/blog"],
  .nav-links a[href="/about"],
  .nav-links a[href="/faq"] {
    display: none;
  }

  .nav-links a[href="/app/login"] {
    font-size: 14px;
    padding: 14px 8px;
  }

  .nav-links .cta-primary {
    padding: 13px 18px;
    font-size: 14px;
  }
}

/* Note: the pre-existing `@media (max-width: 400px)` rule that hides the Features link is
   now redundant — the 768px block above already hides it — but it is left in place because
   it agrees with this layer. Do not "revert" it: equal specificity, later source wins, so
   a revert here would un-hide the link and break the nav fit on the smallest phones. */

/* The global reduced-motion block above clamps iteration-count to 1, but with no
   animation-fill-mode set that just lets the 32s loop "complete" in 0.01ms and land on its
   own end keyframe (translateX(-50%)) — cropping the row to its second, duplicate half. That
   is a broken mid-scroll frame, not an accommodation, so it needs an explicit still state:
   pin the track at rest and hide the duplicate six chips that exist only to make the loop
   seamless while it's moving. */
@media (prefers-reduced-motion: reduce) {
  .dispatch-ticker-track {
    transform: translateX(0) !important;
  }
  .dispatch-ticker-track .ticker-chip:nth-child(n+7) {
    display: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Minute packs. Replaces the uncapped "$1/min overage" the pricing section
   used to disclose in a footnote. Sits below the tiers because it only
   matters once you have picked one.
   ───────────────────────────────────────────────────────────────────────── */

.pack-block {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 32px 24px;
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-xl);
  background-color: var(--dp-surface-dark);
  text-align: center;
}

.pack-title {
  font-family: var(--dp-font-display);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.pack-lede {
  color: var(--dp-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 28px;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.pack-card {
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 20px 16px;
  background-color: var(--dp-bg-dark);
}

.pack-minutes {
  font-family: var(--dp-font-display);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  /* Money and minute counts get aligned digits so three packs read as a column of
     comparable numbers rather than three unrelated words. */
  font-variant-numeric: tabular-nums;
}

.pack-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--dp-text-muted);
  margin-left: 4px;
}

.pack-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--dp-accent);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.pack-rate {
  font-size: 13px;
  color: var(--dp-text-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .pack-grid { grid-template-columns: 1fr; }
  .pack-block { padding: 24px 16px; }
}
