/* track-funnel — marketing funnel (horizontal steps, warm gradient accents) */
:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --text: #2d1f14;
  --muted: #7a6555;
  --border: #f0e0d0;
  --warm-1: #f97316;
  --warm-2: #fb923c;
  --warm-3: #fdba74;
  --warm-4: #fed7aa;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --max: 980px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 0.5rem 1rem; z-index: 100; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.site-main { padding-bottom: 3rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; min-height: 3.75rem; }
.brand { font-weight: 700; font-size: 1rem; color: var(--text); text-decoration: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.88rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 0.45rem; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 1px; }

.demo-banner { background: linear-gradient(90deg, var(--warm-4), #fff); border-bottom: 1px solid var(--border); padding: 0.6rem 0; font-size: 0.85rem; color: var(--muted); }

.hero-funnel { padding: 2.5rem 0; text-align: center; background: linear-gradient(180deg, var(--warm-4) 0%, var(--bg) 100%); }
.hero-funnel h1 { margin: 0 0 0.75rem; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; }
.lead { color: var(--muted); margin: 0 auto; font-size: 1.02rem; max-width: 34rem; }
.eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0; }

.funnel-steps { display: flex; gap: 0; padding: 2.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.step { flex: 1; min-width: 140px; text-align: center; position: relative; padding: 1.5rem 0.75rem; background: var(--surface); border: 1px solid var(--border); }
.step:first-child { border-radius: var(--radius) 0 0 var(--radius); background: linear-gradient(135deg, var(--warm-1), var(--warm-2)); color: #fff; border-color: var(--warm-1); }
.step:nth-child(2) { background: linear-gradient(135deg, var(--warm-2), var(--warm-3)); color: var(--text); border-color: var(--warm-2); }
.step:nth-child(3) { background: linear-gradient(135deg, var(--warm-3), var(--warm-4)); color: var(--text); border-color: var(--warm-3); }
.step:last-child { border-radius: 0 var(--radius) var(--radius) 0; background: var(--warm-4); border-color: var(--warm-3); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -0.6rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: var(--accent); z-index: 2; font-weight: 700; }
.step span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.85); color: var(--accent); font-weight: 800; font-size: 0.85rem; margin: 0 auto 0.65rem; }
.step:first-child span { background: rgba(255,255,255,0.25); color: #fff; }
.step h3 { margin: 0; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.section-block { padding: 2.5rem 0; }
.section-block h2 { font-size: 1.3rem; color: var(--accent-dark); margin: 0 0 0.75rem; }

.page-hero { padding: 2.5rem 0; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--warm-4), var(--bg)); text-align: center; }
.page-hero h1 { margin: 0.35rem 0 0.75rem; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; }
.content-section { padding: 2rem 0; }

.prose { max-width: 40rem; }
.prose h2 { font-size: 1.2rem; color: var(--accent-dark); margin-top: 1.5rem; }
.prose p, .prose li { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; border-top: 3px solid var(--warm-2); }
.contact-card h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 1rem 0 0.25rem; font-weight: 700; }
.contact-card h2:first-child { margin-top: 0; }
.muted-card { background: var(--warm-4); border-top-color: var(--warm-3); }
.text-link { font-weight: 600; }

.site-footer { background: var(--text); color: #c4a882; margin-top: 2rem; }
.footer-inner { padding: 2rem 0; }
.footer-brand strong { color: #fff; }
.footer-brand p { margin: 0.35rem 0 0; font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 1rem 0; }
.footer-links a { color: #c4a882; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--warm-3); }
.footer-copy { margin: 0; font-size: 0.8rem; color: #8a7260; }
.muted { color: var(--muted); }

.section-head h2 { font-size: 1.3rem; color: var(--accent-dark); margin: 0 0 0.35rem; }
.section-sub { color: var(--muted); margin: 0 0 1rem; font-size: 0.92rem; }
.text-link { color: var(--accent); font-weight: 600; }
.footer-inner { padding: 2rem 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.step:hover { filter: brightness(1.03); transition: filter 0.12s; }
.funnel-steps { scroll-snap-type: x mandatory; }
.step { scroll-snap-align: start; }

.contact-card p { margin: 0; }
.prose a { color: var(--accent); font-weight: 500; }
.prose ol { padding-left: 1.25rem; }
.hero-funnel .wrap { max-width: 36rem; margin: 0 auto; }

@media (min-width: 721px) {
  .funnel-steps { padding: 3rem 0; }
  .step { min-height: 140px; display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 0; }
  .funnel-steps { flex-direction: column; overflow-x: visible; scroll-snap-type: none; }
  .step { border-radius: var(--radius) !important; margin-bottom: 0.5rem; min-width: auto; min-height: auto; padding: 1.25rem; }
  .step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -0.55rem; transform: translateX(-50%); }
  .hero-funnel { padding: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step:hover { filter: none; transition: none; }
}

.hero-funnel::after { content: ""; display: block; height: 1px; background: linear-gradient(90deg, transparent, var(--warm-2), transparent); margin-top: 0.5rem; }
.funnel-steps + .section-block { border-top: 1px solid var(--border); margin-top: 0.5rem; }
.step h3 { line-height: 1.3; }

/* Shared utilities & a11y enhancements */
.site-main { min-height: 50vh; }
.header-inner.wrap, .footer-inner.wrap { padding-left: 0; padding-right: 0; }
.site-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.demo-banner strong { font-weight: 700; }
.content-section .prose { max-width: 42rem; }
.page-hero .eyebrow + h1 { margin-top: 0.35rem; }
.contact-grid .contact-card h2 + p { line-height: 1.5; }

@media (prefers-contrast: more) {
  :root { --border: currentColor; }
  .site-header, .site-footer, .contact-card, .deal-card, .saas-card, .catalog-card, .stat-card, .panel, .mod, .link-row { border-width: 2px; }
}

@media print {
  .skip-link, .nav-toggle, .demo-banner, .site-nav { display: none !important; }
  .site-header { position: static; border-bottom: 1px solid #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
}
