/* ============================================
   CANINEIQ — THEME.CSS
   ============================================ */

/* --- Variables --- */
:root {
  --bg: #FAF7F0;
  --fg: #1A3A1A;
  --accent: #D97706;
  --accent-light: #FEF3C7;
  --muted: #6B7B6B;
  --border: #E2DDD4;
  --fg-inv: #FAF7F0;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Nav --- */
.nav {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-logo strong { color: var(--accent); }
.nav-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Hero --- */
.hero {
  padding: 80px 48px 64px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-lede {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
}
.hero-lede em { font-style: normal; color: var(--fg); }
.hero-graphic {
  position: relative;
}
.hero-graphic svg {
  width: 100%;
  height: auto;
}
.hero-graphic-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.graphic-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 140px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* --- Section label --- */
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 120px;
}

/* --- the_leash section --- */
.the-leash {
  background: var(--fg);
  color: var(--fg-inv);
  padding: 96px 48px;
}
.the-leash .section-label { color: #A3B893; }
.the-leash .section-label::after { background: rgba(255,255,255,0.15); }
.leash-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.leash-visual { display: flex; justify-content: center; }
.leash-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 200px;
}
.leash-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.node-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-icon svg { width: 100%; height: 100%; }
.leash-node--human .node-icon { color: #A3B893; }
.leash-node--dog .node-icon { color: var(--accent); }
.node-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(250,247,240,0.7);
}
.leash-line {
  width: 3px;
  height: 60px;
  position: relative;
  overflow: visible;
}
.leash-strand {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    var(--accent) 0px,
    var(--accent) 8px,
    transparent 8px,
    transparent 14px
  );
}
.leash-text h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg-inv);
  margin-bottom: 24px;
}
.leash-text h2 br { display: none; }
.leash-text p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(250,247,240,0.65);
  margin-bottom: 16px;
}
.leash-text p em { font-style: normal; color: rgba(250,247,240,0.9); }

/* --- behavior_map section --- */
.behavior-map {
  padding: 96px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.behavior-map h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 56px;
  line-height: 1.1;
}
.map-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.map-step { position: relative; }
.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.3;
}
.step-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.map-visual { overflow: hidden; }
.wave-line {
  height: 60px;
  margin: 0 -48px;
}
.wave-line svg {
  width: 100%;
  height: 100%;
}

/* --- owner_coach section --- */
.owner-coach {
  background: #F5F0E8;
  padding: 96px 48px;
}
.coach-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.coach-quote blockquote { padding-left: 0; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--accent);
  line-height: 0.6;
  margin-bottom: 24px;
  font-weight: 300;
}
.coach-quote p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 16px;
}
.coach-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.coach-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-icon svg { width: 100%; height: 100%; }
.coach-feature h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.coach-feature p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* --- manifesto section --- */
.manifesto {
  background: var(--accent);
  padding: 80px 48px;
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.4;
  color: white;
  margin-bottom: 20px;
}
.manifesto-text--secondary {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 400;
  opacity: 0.85;
}

/* --- Footer --- */
.footer {
  background: var(--fg);
  color: var(--fg-inv);
  padding: 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 6px;
}
.footer-logo strong { color: var(--accent); }
.footer-tagline {
  font-size: 12px;
  color: rgba(250,247,240,0.5);
}
.footer-note {
  font-size: 13px;
  color: rgba(250,247,240,0.45);
  max-width: 400px;
  text-align: right;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-tagline { display: none; }

  .hero { padding: 48px 24px 40px; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-graphic { display: none; }
  .hero-stats { gap: 24px; }
  .stat-value { font-size: 22px; }

  .the-leash { padding: 64px 24px; }
  .leash-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .leash-visual { order: 2; }
  .leash-text { order: 1; }

  .behavior-map { padding: 64px 24px; }
  .map-steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .step-number { font-size: 36px; }

  .owner-coach { padding: 64px 24px; }
  .coach-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .coach-features {
    grid-template-columns: 1fr;
  }

  .manifesto { padding: 64px 24px; }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-note { text-align: left; }
}
@media (max-width: 480px) {
  .map-steps { grid-template-columns: 1fr; }
}