/* ═══════════════════════════════════════════════════
   BASE LAYER — Brand Stylesheet
   Source of truth: BASE_LAYER_WEB_SPEC.md
   ═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  /* Primary */
  --ink:       #141c1b;
  --rust:      #c4522a;
  --cream:     #f2ece0;
  --warm:      #faf7f2;

  /* Secondary */
  --alpine:    #3a6875;
  --sage:      #5d8a6e;
  --amber:     #c9973a;

  /* Neutrals */
  --stone:     #7a8f8c;
  --stone-lt:  #a8bcb9;
  --spruce:    #1e3330;
  --border:    #e8e4de;
  --card:      #ffffff;

  /* Typography */
  --font-display:   'Bebas Neue', 'Barlow Condensed', -apple-system, sans-serif;
  --font-condensed: 'Barlow Condensed', -apple-system, sans-serif;
  --font-body:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--warm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ── Typography ── */
.eyebrow {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--stone);
}

.eyebrow--rust { color: var(--rust); }
.eyebrow--cream { color: var(--cream); }

.headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 0.95;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.subheading {
  font-family: var(--font-condensed);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.body-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--stone);
}

.body-text--dark { color: var(--stone-lt); }

.caption {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--stone);
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section--warm { background: var(--warm); }
.section--dark { background: var(--ink); }
.section--ink  { background: var(--ink); }

.section-header {
  margin-bottom: 48px;
}

.section-header .eyebrow { margin-bottom: 12px; }
.section-header .headline { margin-bottom: 16px; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 28, 27, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 56px;
  border-bottom: 1px solid rgba(242, 236, 224, 0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.nav-logo .base { color: var(--rust); }
.nav-logo .layer { color: var(--cream); opacity: 0.5; }

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  padding: 8px 14px;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--stone);
  margin: 4px 0;
  transition: 0.2s;
}

/* ── Topographic Pattern ── */
.topo {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.topo svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Accent streaks */
.topo-streaks {
  position: absolute;
  top: 12%;
  right: 8%;
}

.topo-streak {
  display: block;
  transform: rotate(-12deg);
  border-radius: 1px;
}

.topo-streak--rust {
  width: 130px;
  height: 2px;
  background: var(--rust);
  opacity: 0.15;
  margin-bottom: 8px;
}

.topo-streak--alpine {
  width: 100px;
  height: 1.5px;
  background: var(--alpine);
  opacity: 0.12;
  margin-left: 20px;
}

/* Atmospheric glows (hero + final CTA only) */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow--rust {
  width: 280px;
  height: 280px;
  background: var(--rust);
  right: 10%;
  top: 20%;
  animation: glowPulse 3s ease-in-out infinite;
}

.glow--alpine {
  width: 220px;
  height: 220px;
  background: var(--alpine);
  left: 8%;
  bottom: 20%;
  animation: glowPulse 3s ease-in-out infinite 1.5s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.10; }
  50%      { opacity: 0.18; }
}

@media (prefers-reduced-motion: reduce) {
  .glow--rust, .glow--alpine { animation: none; opacity: 0.12; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(170deg, #1a2826 0%, #141c1b 100%);
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  color: var(--rust);
  margin-bottom: 10px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.82;
  margin-bottom: 20px;
}

.wordmark-base {
  display: block;
  color: var(--rust);
}

.wordmark-layer {
  display: block;
  color: var(--cream);
  opacity: 0.35;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  opacity: 0.7;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--stone-lt);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero animation */
.hero .eyebrow,
.hero .wordmark,
.hero .hero-tagline,
.hero .hero-subtitle,
.hero .hero-cta {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}

.hero .eyebrow      { animation-delay: 0.1s; }
.hero .wordmark      { animation-delay: 0.2s; }
.hero .hero-tagline  { animation-delay: 0.3s; }
.hero .hero-subtitle { animation-delay: 0.4s; }
.hero .hero-cta      { animation-delay: 0.5s; }

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

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.btn-primary--inv {
  background: var(--cream);
  color: var(--ink);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--stone);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-secondary:hover { color: var(--ink); border-color: var(--stone); }
.btn-secondary:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.btn-secondary--dark {
  color: var(--stone-lt);
  border-color: rgba(242, 236, 224, 0.15);
}

.btn-secondary--dark:hover { color: var(--cream); border-color: rgba(242, 236, 224, 0.3); }

/* App Store badge */
.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.app-store-badge:hover { opacity: 0.85; }
.app-store-badge img { height: 48px; width: auto; }

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card--featured {
  border-left: 4px solid var(--rust);
}

.card--dark {
  background: var(--spruce);
  border: 1px solid rgba(242, 236, 224, 0.08);
  box-shadow: none;
}

.card--dark:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ── Icon Boxes ── */
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.icon-box svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-box--rust    { background: rgba(196, 82, 42, 0.12); }
.icon-box--rust svg { stroke: var(--rust); }

.icon-box--alpine    { background: rgba(58, 104, 117, 0.12); }
.icon-box--alpine svg { stroke: var(--alpine); }

.icon-box--sage    { background: rgba(93, 138, 110, 0.12); }
.icon-box--sage svg { stroke: var(--sage); }

.icon-box--amber    { background: rgba(201, 151, 58, 0.12); }
.icon-box--amber svg { stroke: var(--amber); }

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  padding: 24px;
}

.feature-card .card-title {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card .card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone);
}

/* ── Split Layout (text + visual) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split--reverse .split-text { order: 1; }
.split--reverse .split-visual { order: 0; }

.split-text .eyebrow { margin-bottom: 12px; }
.split-text .headline { margin-bottom: 16px; }
.split-text .body-text { margin-bottom: 24px; }

.split-visual {
  display: flex;
  justify-content: center;
}

/* ── Readiness Mock Card ── */
.readiness-mock {
  background: var(--spruce);
  border: 1px solid rgba(242, 236, 224, 0.08);
  border-radius: 16px;
  padding: 28px;
  max-width: 320px;
  margin: 0 auto;
}

.readiness-score {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 4px;
}

.readiness-label {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(242, 236, 224, 0.06);
  font-size: 13px;
}

.signal-name { color: var(--stone-lt); }
.signal-value { color: var(--cream); font-weight: 600; }

/* ── Capability Scores ── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cap-card {
  text-align: center;
  padding: 24px 16px;
}

.cap-score {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
}

.cap-label {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone-lt);
}

/* ── Ecosystem Grid ── */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.eco-item {
  background: rgba(242, 236, 224, 0.05);
  border: 1px solid rgba(242, 236, 224, 0.08);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.eco-item:hover { opacity: 1; }
.eco-item .eco-icon { font-size: 24px; margin-bottom: 8px; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.price-card {
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}

.price-card--free {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-card--pro {
  background: var(--ink);
  color: var(--cream);
}

.price-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-tier {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.price-card--free .price-tier { color: var(--stone); }
.price-card--pro .price-tier { color: var(--rust); }

.price-amount {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
}

.price-card--free .price-amount { color: var(--ink); }
.price-card--pro .price-amount { color: var(--cream); }

.price-period {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 24px;
}

.price-card--pro .price-period { color: var(--stone-lt); }

.price-features {
  list-style: none;
  margin-bottom: 28px;
}

.price-features li {
  font-size: 14px;
  line-height: 1.5;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.price-card--free .price-features li { color: var(--stone); }
.price-card--pro .price-features li { color: var(--stone-lt); }

.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.price-card--free .price-features li::before { background: var(--sage); opacity: 0.4; }
.price-card--pro .price-features li::before { background: var(--rust); }

/* ── Blockquote (problem section) ── */
.pull-quote {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  border-left: 3px solid var(--rust);
  padding-left: 24px;
  margin: 32px 0;
  max-width: 600px;
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-wordmark .base { color: var(--rust); }
.footer-wordmark .layer { color: var(--cream); opacity: 0.4; }

.footer-links { display: flex; gap: 24px; }

.footer-link {
  font-size: 13px;
  color: var(--stone);
  transition: color 0.15s;
}

.footer-link:hover { color: var(--cream); }

.footer-bottom {
  width: 100%;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 236, 224, 0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--stone);
  opacity: 0.5;
}

.footer-tagline {
  font-size: 12px;
  font-style: italic;
  color: var(--stone);
  opacity: 0.4;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   Legal Pages
   ═══════════════════════════════════════════════════ */

.legal-header {
  background: linear-gradient(170deg, #1a2826 0%, #141c1b 100%);
  padding: 120px 0 56px;
  position: relative;
  overflow: hidden;
}

.legal-header .headline { color: var(--cream); margin-bottom: 8px; }

.legal-updated {
  font-size: 13px;
  color: var(--stone);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-content h2 {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin: 40px 0 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul { padding-left: 20px; margin-bottom: 12px; }

.legal-content li {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--alpine);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover { color: var(--rust); }

.placeholder {
  background: rgba(196, 82, 42, 0.08);
  border-left: 3px solid var(--rust);
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--rust);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* Support page */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.support-card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 28px 24px;
  text-align: center;
}

.support-card-icon { font-size: 1.4rem; margin-bottom: 12px; }

.support-card h3 {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 8px;
}

.support-card p { font-size: 14px; color: var(--stone); line-height: 1.5; }

.support-card a.support-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
}

.support-card a.support-link:hover { opacity: 0.8; }

.faq-section h2 {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }

.faq-question { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.faq-answer { font-size: 14px; color: var(--stone); line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse { direction: ltr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .nav { padding: 0 16px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: rgba(20, 28, 27, 0.96);
    flex-direction: column;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(242, 236, 224, 0.06);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .section { padding: 56px 0; }
  .hero { padding: 100px 0 56px; min-height: auto; }
  .wordmark { font-size: clamp(56px, 16vw, 82px); }

  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .eco-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; }

  .glow { display: none; }
}
