/* FlipScout — Earthy, editorial, confident */

:root {
  --bg: #0d1210;
  --surface: #161e19;
  --surface-2: #1e2a23;
  --fg: #f0ebe3;
  --fg-muted: #8a9e90;
  --accent: #d4891a;
  --accent-dim: #a36810;
  --green: #3d6b4f;
  --green-bright: #5a9e6f;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { 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: 1.5rem 2rem;
  border-bottom: 1px solid rgba(240,235,227,0.08);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* — Hero — */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
}
.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  max-width: 700px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 3.5rem;
  font-weight: 300;
  line-height: 1.7;
}
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 2.5rem;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.hero-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(240,235,227,0.12);
  margin-right: 2.5rem;
}

/* — The Edge — */
.the-edge {
  background: var(--surface);
  border-top: 1px solid rgba(240,235,227,0.06);
  border-bottom: 1px solid rgba(240,235,227,0.06);
  padding: 6rem 2rem;
}
.edge-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.edge-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  font-weight: 500;
  padding-top: 0.5rem;
}
.edge-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.edge-body {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 300;
  max-width: 500px;
  line-height: 1.7;
}

/* — How It Works — */
.how-it-works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem;
}
.hiw-header {
  margin-bottom: 4rem;
}
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.hiw-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  letter-spacing: -0.02em;
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}
.hiw-steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(16.67% + 0.5rem);
  right: calc(16.67% + 0.5rem);
  height: 1px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 50%, var(--green) 100%);
  opacity: 0.4;
}
.hiw-step {
  position: relative;
}
.hiw-step-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  display: block;
}
.hiw-step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.hiw-step-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* — Treasure Score — */
.treasure-score {
  background: var(--surface);
  border-top: 1px solid rgba(240,235,227,0.06);
  border-bottom: 1px solid rgba(240,235,227,0.06);
  padding: 6rem 2rem;
}
.ts-content {
  max-width: 1100px;
  margin: 0 auto;
}
.ts-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.ts-body {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 300;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.ts-demo {
  border: 1px solid rgba(240,235,227,0.1);
  border-radius: 4px;
  overflow: hidden;
  max-width: 620px;
  background: var(--surface-2);
}
.ts-bar {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(240,235,227,0.08);
}
.ts-bar-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(240,235,227,0.06);
}
.ts-row:last-child { border-bottom: none; }
.ts-row-name {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 400;
}
.ts-score {
  font-family: var(--font-display);
  font-size: 1.3rem;
  min-width: 50px;
  text-align: right;
  letter-spacing: -0.02em;
}
.ts-score-high { color: var(--green-bright); }
.ts-score-med { color: var(--accent); }
.ts-score-low { color: var(--fg-muted); }

/* — Closing — */
.closing {
  background: var(--bg);
  padding: 7rem 2rem;
  text-align: center;
}
.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.closing-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2rem;
}
.closing-pricing {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* — City Links (homepage section) — */
.city-links-section {
  background: var(--surface);
  border-top: 1px solid rgba(240,235,227,0.06);
  padding: 5rem 2rem;
}
.city-links-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.city-links-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.city-links-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.city-links-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.city-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.city-link-pill {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 3px;
  border: 1px solid rgba(240,235,227,0.14);
  font-size: 0.82rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 400;
  transition: border-color 0.15s, color 0.15s;
}
.city-link-pill:hover {
  border-color: rgba(212,137,26,0.45);
  color: var(--fg);
}
.city-links-all {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.city-links-all:hover { color: var(--fg); }

/* — Footer — */
.footer {
  border-top: 1px solid rgba(240,235,227,0.06);
}
.footer-cities {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(240,235,227,0.06);
}
.footer-cities-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}
.footer-cities-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 500;
  flex-basis: 100%;
  margin-bottom: 0.25rem;
}
.footer-cities-inner a {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 300;
}
.footer-cities-inner a:hover { color: var(--fg); }
.footer-cities-all {
  font-size: 0.8rem !important;
  color: var(--accent) !important;
  font-weight: 500 !important;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--fg);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* — Responsive — */
@media (max-width: 768px) {
  .edge-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hiw-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hiw-steps::before { display: none; }
  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }
  .hero-stat-row {
    gap: 1.5rem;
  }
  .hero-stat-div { display: none; }
  .the-edge, .treasure-score {
    padding: 4rem 1.5rem;
  }
  .how-it-works {
    padding: 5rem 1.5rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-stat-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-stat { padding-right: 0; }
}