/* ========================
   TRACETRAIL — Theme CSS
   ======================== */

:root {
  --bg: #F4EFE6;
  --bg-dark: #1A1612;
  --fg: #1A1612;
  --fg-muted: #7A6E62;
  --accent: #C84B31;
  --gold: #D4A853;
  --border: #D8CFC3;
  --card-bg: #EDE7DC;
  --white: #FFFFFF;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  transition: all 0.15s;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--white);
}

/* HERO CTA */
.hero-cta {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 10px 22px;
  border-radius: 3px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.15s;
}
.hero-cta:hover {
  background: var(--accent);
  color: var(--white);
}

/* HERO */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--bg);
  padding: 100px 48px 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 75, 49, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 75, 49, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-bottom: 80px;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.label-dash {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.hero-title {
  font-family: 'Spectral', serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title-light {
  display: block;
  font-weight: 300;
  color: rgba(244, 239, 230, 0.5);
}
.hero-title-strong {
  display: block;
  font-weight: 600;
  font-style: italic;
  color: var(--bg);
}
.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.65);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 52px;
}
.tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  border: 1px solid rgba(200, 75, 49, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
}

/* ROADBOOK PREVIEW CARD */
.hero-roadbook-preview {
  background: rgba(244, 239, 230, 0.06);
  border: 1px solid rgba(200, 75, 49, 0.25);
  border-radius: 4px;
  padding: 24px 28px;
  max-width: 420px;
  backdrop-filter: blur(8px);
  margin-bottom: 52px;
}
.rb-preview-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.rb-preview-day {
  font-family: 'Spectral', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.4);
  margin-bottom: 8px;
}
.rb-preview-route {
  font-family: 'Spectral', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 10px;
  line-height: 1.2;
}
.rb-preview-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 18px;
}
.meta-sep { margin: 0 6px; }
.rb-preview-profile {
  border-left: 2px solid rgba(200, 75, 49, 0.4);
  padding-left: 12px;
  margin-bottom: 18px;
}
.profile-line {
  height: 48px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 60%, transparent 100%);
  border-radius: 2px;
  margin-bottom: 8px;
  position: relative;
}
.profile-line::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(255,255,255,0.08) 28px, rgba(255,255,255,0.08) 29px);
}
.profile-cities {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: rgba(244, 239, 230, 0.35);
  letter-spacing: 0.04em;
}
.rb-preview-bivouac {
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  padding-top: 14px;
}
.bivouac-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.bivouac-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 3px;
}
.bivouac-alt {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(244, 239, 230, 0.4);
}

/* HERO STATS BAR */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(244, 239, 230, 0.08);
  padding: 28px 0 40px;
  max-width: 900px;
}
.stat {
  padding: 0 40px 0 0;
}
.stat:first-child { padding-left: 0; }
.stat-value {
  font-family: 'Spectral', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--bg);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.35);
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(244, 239, 230, 0.1);
  margin-right: 40px;
}

/* SECTION COMMON */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Spectral', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0;
}

/* PIPELINE */
.pipeline {
  background: var(--bg);
  padding: 100px 48px;
}
.pipeline-header { margin-bottom: 60px; }
.pipeline-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.agent {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 20px;
}
.agent-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.agent-icon {
  width: 44px;
  height: 44px;
  background: rgba(200, 75, 49, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.agent-name {
  font-family: 'Spectral', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.agent-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  padding-top: 50px;
}

/* DELIVERABLES */
.deliverables {
  background: var(--card-bg);
  padding: 100px 48px;
}
.deliv-header { margin-bottom: 60px; }
.deliv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.deliv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 28px;
  position: relative;
}
.deliv-type {
  font-family: 'Spectral', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.deliv-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 20px;
}
.deliv-detail p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.deliv-note {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}
.deliv-icon {
  margin-bottom: 20px;
}

/* PRICING */
.pricing {
  background: var(--bg);
  padding: 100px 48px;
}
.pricing-header { margin-bottom: 60px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 28px;
  position: relative;
}
.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.price-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 0 0 4px 4px;
}
.price-name {
  font-family: 'Spectral', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.price-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.price-amount {
  font-family: 'Spectral', serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1;
}
.price-includes .incl {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--fg-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-includes .incl:last-child { border-bottom: none; }
.price-includes .incl::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: rgba(200, 75, 49, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}
.pricing-margin-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
}

/* CLOSING */
.closing {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 120px 48px;
}
.closing-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.closing-tagline {
  font-family: 'Spectral', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bg);
  margin-bottom: 24px;
}
.closing-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.6);
  margin-bottom: 40px;
}
.closing-format-line {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 230, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cf-sep { color: var(--accent); }

/* FOOTER */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(244, 239, 230, 0.06);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Spectral', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
}
.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(244, 239, 230, 0.3);
}
.footer-meta {
  margin-left: auto;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: rgba(244, 239, 230, 0.2);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 14px 24px; }
  .hero { padding: 64px 24px 0; }
  .pipeline, .deliverables, .pricing { padding: 72px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 24px; }
  .pipeline-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .flow-arrow { display: none; }
  .deliv-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  .stat-sep { display: none; }
  .stat { padding: 0; }
}