/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --bark:       #2C1810;
  --redwood:    #5C3317;
  --saddle:     #8B4513;
  --rust:       #D4722A;
  --ember:      #E8A44A;
  --sandstone:  #F5E6D0;
  --sand-light: #FBF3E8;
  --forest:     #2D5016;
  --moss:       #4A7C2A;
  --sage:       #7AB648;
  --glacier:    #1B4E6B;
  --alpine:     #2E7DA8;
  --sky:        #A8D4E8;
  --campfire:   #E8640A;
  --sunflower:  #F0B429;

  --font-headline: 'Bebas Neue', sans-serif;
  --font-body:     'Lora', serif;
  --font-label:    'DM Mono', monospace;

  --nav-height:  64px;
  --max-width:   1320px;
  --section-pad: clamp(4rem, 8vw, 8rem);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  background: var(--sand-light);
  color: var(--bark);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(44,24,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,114,42,0.15);
}

.nav-inner {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.nav-logo-mark img { height: 32px; width: auto; display: block; transform: translateY(-4px); }

.nav-logo-name {
  font-family: var(--font-headline);
  font-size: 30px; letter-spacing: 0.08em;
  color: var(--sandstone);
}
.nav-logo-name span { color: var(--rust); }

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

.nav-links a {
  font-family: var(--font-label); font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,230,208,0.5); text-decoration: none;
  transition: color 0.2s; padding-bottom: 15px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover       { color: var(--sandstone); border-bottom-color: var(--rust); }
.nav-links a.active      { color: var(--sandstone); border-bottom-color: var(--rust); }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  background: var(--rust); color: var(--sandstone) !important;
  padding: 15px; border-radius: 6px;
  border-bottom: none !important; opacity: 1 !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(212,114,42,0.3);
  transition: all 0.15s ease !important;
}
.nav-cta:hover {
  filter: brightness(0.92) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(212,114,42,0.4) !important;
}
.nav-cta:active {
  transform: translateY(1px) !important;
  box-shadow: none !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sandstone);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bark);
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid var(--redwood);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-links.open  { display: flex; }
  .nav-links li    { width: 100%; }
  .nav-links a     { display: block; padding: 1rem 2rem; text-align: center; border-bottom: 1px solid var(--redwood); }
}

/* ── Topo SVG background layer ───────────────────────────── */
.topo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.07;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  background: var(--bark);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.6s 0.2s ease forwards;
}

.hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.88;
  color: var(--sandstone);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.hero h1 em { color: var(--rust); font-style: normal; }

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--sandstone);
  opacity: 0.8;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .hero-sub { max-width: 800px; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: var(--sand-light);
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 2px solid var(--rust);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212,114,42,0.25);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  background: transparent;
  color: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212,114,42,0.35);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--sand-light);
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 2px solid var(--sand-light);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-secondary:hover {
  background: var(--sand-light);
  color: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.btn-secondary:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ── Section Base ────────────────────────────────────────── */
.section {
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  color: var(--bark);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.section-headline.light { color: var(--sandstone); }

.section-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--redwood);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ── Dark Section ────────────────────────────────────────── */
.section-dark {
  background: var(--bark);
  position: relative;
  overflow: hidden;
}
.section-dark .section-label    { color: var(--ember); }
.section-dark .section-headline { color: var(--sandstone); }
.section-dark .section-sub      { color: var(--sandstone); opacity: 0.65; }

/* ── How It Works — Steps ────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--sand-light);
  border: 1px solid var(--sandstone);
  padding: 2rem;
  position: relative;
  transition: transform 0.2s;
}
.step-card:hover { transform: translateY(-4px); }

.step-number {
  font-family: var(--font-headline);
  font-size: 5rem;
  line-height: 1;
  color: var(--rust);
  opacity: 0.12;
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  user-select: none;
}

.step-icon { font-size: 2rem; margin-bottom: 1rem; }

.step-card h3 {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  color: var(--bark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.step-card p { font-size: 0.92rem; color: var(--redwood); line-height: 1.7; }

/* ── Who It's For — Personas ─────────────────────────────── */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.persona-card {
  background: var(--redwood);
  padding: 2.5rem 2rem;
  border-left: 4px solid var(--rust);
  transition: transform 0.2s, border-color 0.2s;
}
.persona-card:nth-child(2) { border-left-color: var(--ember); }
.persona-card:nth-child(3) { border-left-color: var(--sage);  }
.persona-card:hover        { transform: translateY(-4px); }

.persona-tag {
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
}
.persona-card:nth-child(2) .persona-tag { color: var(--ember); }
.persona-card:nth-child(3) .persona-tag { color: var(--sage);  }

.persona-card h3 {
  font-family: var(--font-headline);
  font-size: 2rem;
  color: var(--sandstone);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.persona-card p { font-size: 0.9rem; color: var(--sandstone); opacity: 0.75; line-height: 1.7; }

/* ── Quote Strip ─────────────────────────────────────────── */
.quotes-strip {
  background: var(--redwood);
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.quotes-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
}

.quote-block { position: relative; }

.quote-mark {
  font-family: var(--font-headline);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--rust);
  opacity: 0.45;
  display: block;
  margin-bottom: 0.5rem;
  user-select: none;
}

.quote-block blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--sandstone);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.quote-attribution {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: var(--rust);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--sand-light);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--sand-light);
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.cta-section .btn-secondary { position: relative; z-index: 1; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bark);
  padding: 3rem clamp(1rem, 4vw, 3rem) 2rem;
  border-top: 2px solid var(--redwood);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  color: var(--sandstone);
  letter-spacing: 0.05em;
}
.footer-logo span { color: var(--rust); }

.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--sandstone);
  opacity: 0.45;
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.footer-links a {
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sandstone);
  opacity: 0.45;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--sandstone);
  opacity: 0.28;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--redwood);
  margin-top: 0.5rem;
}

/* ── Case Study ──────────────────────────────────────────── */
.cs-hero {
  background: var(--bark);
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.cs-section {
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
}

.cs-inner       { max-width: 800px; margin: 0 auto; }
.cs-inner.wide  { max-width: var(--max-width); }

.divider {
  width: 48px;
  height: 3px;
  background: var(--rust);
  margin: 1.5rem 0 2rem;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.pain-card {
  border-top: 3px solid var(--rust);
  padding: 1.5rem 0 0;
}
.pain-card:nth-child(2) { border-top-color: var(--ember);  }
.pain-card:nth-child(3) { border-top-color: var(--saddle); }

.pain-card h4 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.pain-card p { font-size: 0.9rem; color: var(--redwood); line-height: 1.7; }

.activity-block {
  background: var(--sandstone);
  border-left: 4px solid var(--rust);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
}
.activity-block:nth-of-type(2) { border-left-color: var(--ember); }

.activity-block h4 {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  color: var(--bark);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.activity-block p { font-size: 0.95rem; color: var(--redwood); line-height: 1.75; }

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.insight-card {
  background: var(--bark);
  padding: 2rem;
  border-bottom: 3px solid var(--rust);
}
.insight-card:nth-child(2) { border-bottom-color: var(--ember); }
.insight-card:nth-child(3) { border-bottom-color: var(--sage);  }

.insight-card blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--sandstone);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.insight-label {
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.decision-card { border-top: 3px solid var(--bark); padding-top: 1.5rem; }

.decision-card h4 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.decision-card p { font-size: 0.9rem; color: var(--redwood); line-height: 1.7; }

.next-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.next-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--sandstone);
  line-height: 1.65;
}

.next-list li::before {
  content: '→';
  font-family: var(--font-label);
  color: var(--rust);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── App Page ────────────────────────────────────────────── */
.app-hero {
  background: var(--bark);
  padding: 3rem clamp(1rem, 4vw, 3rem) 2rem;
  position: relative;
  overflow: hidden;
}

.app-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.app-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--sandstone);
  line-height: 0.95;
  margin-bottom: 0.75rem;
}

.app-hero p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--sandstone);
  opacity: 0.7;
  max-width: 500px;
}

.app-body {
  background: var(--sandstone);
  min-height: 60vh;
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
}

.app-body-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Fade-in ─────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible          { opacity: 1; transform: none; }
.fade-in-delay-1          { transition-delay: 0.1s; }
.fade-in-delay-2          { transition-delay: 0.22s; }
.fade-in-delay-3          { transition-delay: 0.34s; }

/* ── Utilities ───────────────────────────────────────────── */
.bg-bark       { background: var(--bark); }
.bg-sandstone  { background: var(--sandstone); }
.bg-sand-light { background: var(--sand-light); }
.text-rust     { color: var(--rust); }
.text-ember    { color: var(--ember); }
.text-sage     { color: var(--sage); }
