/* ═══════════════════════════════════════════════════════════
   Topo Intel — topointel.app
   Design tokens from the canonical brand system (v1.1, Mar 2026)
   Three typefaces, never a fourth: DM Serif Display · Outfit · DM Mono
   Signal Orange is functional, never decorative.
   ═══════════════════════════════════════════════════════════ */

:root {
  --deep-forest:     #2D3A2E;
  --forest-dark:     #1E2A1F;
  --trail-sage:      #5C7C5E;
  --sage-mid:        #7A9E7C;
  --sage-light:      #A8C5AA;
  --sage-wash:       #C8D9C9;
  --sandstone:       #C4A97D;
  --parchment:       #E8DCC8;
  --parchment-light: #F2EBE0;
  --cream:           #FAF6F0;
  --signal:          #FF6B35;
  --signal-light:    #FF8F66;
  --ridge-slate:     #5A6B7A;
  --tide-blue:       #2E6B8A;

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  --nav-h: 64px;
  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--deep-forest);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sandstone); color: var(--forest-dark); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--trail-sage); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Wordmark (rendered as text so page fonts apply) ── */
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .wm-a { color: var(--deep-forest); }
.wordmark .wm-b { color: var(--trail-sage); }
.on-dark .wordmark .wm-a, .site-footer .wordmark .wm-a { color: var(--parchment-light); }

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 58, 46, 0.08);
}
.site-nav .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--deep-forest);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* ── Kicker (DM Mono caps — the signature label pattern) ── */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--trail-sage);
  display: block;
  margin-bottom: 18px;
}
.on-dark .kicker { color: var(--sage-light); }

/* ── Headings ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }

.lede {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 640px;
  margin-top: 20px;
  color: rgba(45, 58, 46, 0.85);
}
.on-dark .lede { color: rgba(232, 220, 200, 0.85); }

/* ── Sections ── */
.section { padding: 96px 0; position: relative; }
.section-dark {
  background: var(--deep-forest);
  color: var(--parchment);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--parchment-light); }
.section-tight { padding: 64px 0; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-dark { background: var(--forest-dark); color: var(--parchment); }
.hero-dark h1 { color: var(--parchment-light); }

/* ── Contour motif — felt, not seen (≤10% opacity, draw-in on load).
      Never on utility screens (feedback, 404). ── */
.contours {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.contours path {
  fill: none;
  stroke: var(--sage-light);
  stroke-width: 1.2;
  opacity: 0.09;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: contour-draw 2.6s ease-out forwards;
}
.contours path:nth-child(2) { animation-delay: 0.25s; }
.contours path:nth-child(3) { animation-delay: 0.5s; }
.contours path:nth-child(4) { animation-delay: 0.75s; }
.contours path:nth-child(5) { animation-delay: 1s; }
.contours path:nth-child(6) { animation-delay: 1.25s; }
@keyframes contour-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .contours path { animation: none; stroke-dashoffset: 0; }
}
.hero > .wrap, .section > .wrap { position: relative; }

/* ── Signal pin — your position, live ── */
.pin { position: relative; width: 80px; height: 80px; }
.pin .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--signal);
  animation: pin-pulse 2.8s ease-out infinite;
  opacity: 0;
}
.pin .ring:nth-child(2) { animation-delay: 1.4s; }
@keyframes pin-pulse {
  0%   { transform: scale(0.35); opacity: 0.55; }
  100% { transform: scale(1);    opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pin .ring { animation: none; } }
.pin .dot {
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: var(--signal); border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.15);
}
.pin .dot::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  background: #fff; border-radius: 50%;
}

/* ── Buttons — Signal Orange is reserved: one per screen ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: var(--forest-dark); }
.btn-signal:hover { background: var(--signal-light); }
.btn-outline {
  background: transparent;
  color: var(--deep-forest);
  border: 1.5px solid var(--trail-sage);
}
.btn-outline:hover { background: rgba(92, 124, 94, 0.08); }
.on-dark .btn-outline, .section-dark .btn-outline, .hero-dark .btn-outline {
  color: var(--parchment-light);
  border-color: var(--sage-light);
}
.on-dark .btn-outline:hover, .section-dark .btn-outline:hover, .hero-dark .btn-outline:hover {
  background: rgba(168, 197, 170, 0.1);
}

/* ── Status chips ── */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
/* Signal Orange is reserved for CTAs, live data, alerts, and the pin —
   status chips use sandstone/sage so the one orange CTA keeps the eye. */
.chip-live { color: var(--sandstone); }
.chip-dev { color: var(--sage-mid); }

/* ── Product cards (home) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.product-card {
  background: var(--parchment-light);
  border: 1px solid rgba(45, 58, 46, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.product-card.dark {
  background: var(--deep-forest);
  color: var(--parchment);
  border-color: var(--forest-dark);
}
.product-card.dark h3 { color: var(--parchment-light); }
.product-card .app-icon { width: 64px; height: 64px; border-radius: 22.3%; }
.product-card .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--trail-sage);
}
.product-card.dark .tagline { color: var(--sage-light); }
.product-card .cta-row { margin-top: auto; padding-top: 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ── Stat ticks (DM Mono data values) ── */
.stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 40px;
}
.stat .num {
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--sandstone);
  display: block;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.feature {
  border-top: 2px solid var(--trail-sage);
  padding-top: 20px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 15px; opacity: 0.85; }
.section-dark .feature { border-top-color: rgba(168, 197, 170, 0.4); }

/* ── Screenshots ── */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 56px;
  align-items: start;
}
.shots img {
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(30, 42, 31, 0.35);
}

/* ── Family strip (parallel structure) ── */
.family {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: rgba(45, 58, 46, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.family > div { background: var(--cream); padding: 32px 28px; }
.family .name { font-family: var(--serif); font-size: 24px; margin: 10px 0 6px; }
.family .tag { font-style: italic; font-family: var(--serif); font-size: 15px; color: var(--trail-sage); }

/* ── Pricing ── */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 56px;
  align-items: stretch;
}
.price-card {
  border: 1px solid rgba(45, 58, 46, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  background: var(--cream);
}
.price-card.featured { background: var(--deep-forest); color: var(--parchment); border-color: var(--forest-dark); }
.price-card.featured h3 { color: var(--parchment-light); }
.price-card .price {
  font-family: var(--mono);
  font-size: 32px;
  margin: 12px 0 4px;
  color: var(--sandstone);
}
.price-card ul { list-style: none; margin-top: 20px; }
.price-card li {
  font-size: 15px;
  padding: 7px 0 7px 22px;
  position: relative;
  opacity: 0.9;
}
.price-card li::before {
  content: '·';
  font-family: var(--mono);
  position: absolute; left: 4px;
  color: var(--trail-sage);
}
.price-card.featured li::before { color: var(--sage-light); }

/* ── Forms (feedback / waitlist) ── */
.form-card { max-width: 640px; }
.field { margin-bottom: 22px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--trail-sage);
  display: block;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--deep-forest);
  background: var(--parchment-light);
  border: 1px solid rgba(45, 58, 46, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--trail-sage);
  outline-offset: 0;
  border-color: transparent;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 13px; opacity: 0.7; margin-top: 14px; }
.form-status {
  font-family: var(--mono);
  font-size: 14px;
  margin-top: 18px;
  display: none;
}
.form-status.ok { display: block; color: var(--trail-sage); }
.form-status.err { display: block; color: #B4442F; }

/* ── Footer ── */
.site-footer {
  background: var(--forest-dark);
  color: var(--parchment);
  padding: 56px 0 40px;
  margin-top: 0;
}
.site-footer .cols {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand svg { width: 34px; height: 34px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage-light);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--parchment-light); }
.site-footer .fine {
  margin-top: 36px;
  font-size: 13px;
  color: rgba(232, 220, 200, 0.55);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 1.5px; }
  .field-row { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
}
