/* ============================================================
   NestScore — landing page (index.html)
   Loaded after assets/styles.css. Owns hero, how-it-works grid,
   score bands, Canada section, the 13-factor mini-grid, pricing,
   and the final CTA. Tokens, nav, and footer come from styles.css.
   ============================================================ */

/* ── Marketing-page reset ── */
*, *::before, *::after { margin: 0; padding: 0; }
body { font-size: 16px; line-height: 1.6; overflow-x: hidden; }

/* ── Section-sub width override (global default has no max-width) ── */
.section-sub { max-width: 520px; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}

/* Dot-grid background texture — echoes the logo */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(31,77,63,0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 80%);
}

/* Warm gradient sweep */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 75% 50%, rgba(200,89,59,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(31,77,63,0.10) 0%, transparent 70%);
}

.hero-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss);
  background: var(--moss-050); border: 1px solid var(--moss-100);
  border-radius: 9999px; padding: 4px 12px; margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-headline .serif-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--moss);
}

.hero-sub {
  font-size: 18px; line-height: 1.65;
  color: var(--ink-500); max-width: 480px;
  margin-bottom: 44px;
}

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

.btn-primary {
  height: 52px; padding: 0 28px;
  background: var(--moss); color: var(--paper);
  border: none; border-radius: 10px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 200ms var(--ease), transform 150ms var(--ease), box-shadow 200ms var(--ease);
  box-shadow: 0 4px 14px rgba(31,77,63,0.30);
}
.btn-primary:hover { background: var(--moss-700); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(31,77,63,0.38); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  height: 52px; padding: 0 28px;
  background: transparent; color: var(--ink-700);
  border: 1.5px solid var(--border-strong); border-radius: 10px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 200ms var(--ease);
}
.btn-secondary:hover { background: var(--paper-lift); border-color: var(--moss-300); color: var(--moss); }

.hero-social-proof {
  margin-top: 48px; display: flex; align-items: center; gap: 16px;
}
.proof-avatars { display: flex; }
.proof-avatar {
  width: 32px; height: 32px; border-radius: 9999px;
  border: 2px solid var(--paper);
  background: var(--moss-100); margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--moss-700);
}
.proof-avatar:first-child { margin-left: 0; }
.proof-text { font-size: 13px; color: var(--ink-500); line-height: 1.4; }
.proof-text strong { color: var(--ink); font-weight: 600; }

/* ── Hero mock card ── */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}

.mock-map {
  width: 100%; max-width: 480px;
  background: #e8e4da;
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-3), 0 0 0 1px var(--border);
  aspect-ratio: 4/3;
  position: relative;
}

/* Simplified street grid SVG background */
.mock-map-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(180,170,150,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,170,150,0.4) 1px, transparent 1px),
    linear-gradient(rgba(180,170,150,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,170,150,0.15) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-color: #ddd5c0;
}

/* Park blobs */
.mock-park {
  position: absolute;
  background: rgba(31,77,63,0.18);
  border-radius: 12px;
}

/* Mock pins */
.mock-pin {
  position: absolute;
  width: 36px; height: 36px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: #F6F1E7; border: 2.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  cursor: default;
  animation: pin-float 3s ease-in-out infinite;
}
.mock-pin:nth-child(2) { animation-delay: 0.4s; }
.mock-pin:nth-child(3) { animation-delay: 0.8s; }
.mock-pin:nth-child(4) { animation-delay: 1.2s; }
.mock-pin:nth-child(5) { animation-delay: 1.6s; }
.mock-pin:nth-child(6) { animation-delay: 2.0s; }
.mock-pin:nth-child(7) { animation-delay: 0.2s; }

@keyframes pin-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* Floating detail card */
.mock-detail {
  position: absolute; bottom: 16px; right: 16px;
  width: 200px;
  background: var(--paper-lift);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-2);
  animation: card-rise 0.8s var(--ease) both;
  animation-delay: 0.3s;
}
@keyframes card-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.mock-detail-score {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9999px;
  background: var(--score-90); color: #F6F1E7;
  font-family: var(--font-mono); font-size: 17px; font-weight: 700;
  box-shadow: var(--shadow-1);
  position: absolute; top: 12px; right: 12px;
}
.mock-detail-body { padding: 14px; }
.mock-detail-price { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--ink); }
.mock-detail-addr  { font-size: 11px; color: var(--ink-500); margin-top: 2px; }
.mock-detail-bars  { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.mock-bar-row { display: flex; align-items: center; gap: 6px; }
.mock-bar-lbl  { font-size: 10px; color: var(--ink-300); width: 46px; flex-shrink: 0; font-family: var(--font-mono); }
.mock-bar-track { flex: 1; height: 4px; border-radius: 9999px; background: var(--paper-dim); overflow: hidden; }
.mock-bar-fill  { height: 100%; border-radius: 9999px; }

/* ── Section spacing ── */
section { padding: 100px 24px; }

/* ── How it works ── */
.how {
  background: var(--paper-lift);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner { max-width: 1160px; margin: 0 auto; }
.how-header { text-align: center; margin-bottom: 72px; }
.how-header .section-sub { margin: 0 auto; }

.how-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-1);
}
.how-step {
  background: var(--paper-lift); padding: 40px 36px;
  position: relative; overflow: hidden;
}
.how-step::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--moss); transform: scaleX(0); transform-origin: left;
  transition: transform 400ms var(--ease);
}
.how-step:hover::before { transform: scaleX(1); }

.step-number {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.step-number::after { content: ''; flex: 1; height: 1px; background: var(--moss-100); }

.step-icon {
  font-size: 32px; margin-bottom: 16px; display: block;
  filter: saturate(0.8);
}
.step-title { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em; }
.step-body { font-size: 15px; line-height: 1.65; color: var(--ink-500); }

/* ── Score bands ── */
.bands { background: var(--paper); }
.bands-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.bands-list { display: flex; flex-direction: column; gap: 16px; }
.band-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 12px;
  background: var(--paper-lift); border: 1px solid var(--border);
  transition: all 200ms var(--ease); cursor: default;
}
.band-item:hover { transform: translateX(6px); box-shadow: var(--shadow-1); }
.band-score {
  width: 52px; height: 52px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  color: #F6F1E7; flex-shrink: 0;
}
.band-info { flex: 1; }
.band-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.band-desc  { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.band-range { font-family: var(--font-mono); font-size: 13px; color: var(--ink-300); }

/* ── Canada section ── */
.canada {
  background: var(--moss);
  color: var(--paper);
  overflow: hidden; position: relative;
}
.canada::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(246,241,231,0.07) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.canada-inner {
  max-width: 1160px; margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.canada .section-eyebrow { color: var(--moss-100); }
.canada .section-headline { color: var(--paper); }
.canada .section-sub { color: rgba(240,232,210,0.75); max-width: 460px; }

.canada-points { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.canada-point {
  display: flex; gap: 14px; align-items: flex-start;
}
.canada-point-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(246,241,231,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.canada-point-text { font-size: 15px; line-height: 1.6; color: rgba(240,232,210,0.82); }
.canada-point-text strong { color: var(--paper); font-weight: 600; }

.canada-flag-art {
  display: flex; justify-content: center; align-items: center;
}
.flag-card {
  background: rgba(246,241,231,0.08);
  border: 1px solid rgba(246,241,231,0.18);
  border-radius: 24px; padding: 48px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.flag-maple {
  font-size: 80px; display: block; margin-bottom: 20px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}
.flag-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px; color: var(--paper);
  line-height: 1.4;
}
.flag-sub {
  margin-top: 10px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--moss-300);
}

/* ── Scores explainer ── */
.scores {
  background: var(--paper-lift);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.scores-inner { max-width: 1160px; margin: 0 auto; }
.scores-header { margin-bottom: 56px; }

.scores-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--border); border-radius: 16px; overflow: hidden;
}
.score-card {
  background: var(--paper-lift); padding: 28px 24px;
  transition: background 200ms var(--ease);
}
.score-card:hover { background: var(--paper); }
.score-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.score-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.score-desc { font-size: 13px; line-height: 1.6; color: var(--ink-500); }

/* ── Pricing ── */
.pricing-section {
  background: var(--paper-lift);
  padding: 120px 24px;
}
.pricing-inner { max-width: 1000px; margin: 0 auto; }
.pricing-header { text-align: center; margin-bottom: 56px; }
.pricing-header .section-sub { margin: 0 auto; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 820px; margin: 0 auto;
}
.pricing-card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px 32px;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--moss);
  box-shadow: 0 4px 32px rgba(31,77,63,0.12), 0 0 0 1px var(--moss);
  position: relative;
}
.pricing-card.featured::before {
  content: "Most popular";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--moss); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 9999px;
}
.pricing-tier-name {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-500); margin-bottom: 8px;
}
.pricing-card.featured .pricing-tier-name { color: var(--moss); }
.pricing-amount {
  font-size: 44px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 4px; line-height: 1.1;
}
.pricing-amount .currency { font-size: 22px; vertical-align: top; margin-right: 4px; }
.pricing-period { font-size: 14px; color: var(--ink-500); margin-bottom: 28px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.pricing-features li {
  font-size: 15px; color: var(--ink-700); line-height: 1.6;
  padding: 6px 0 6px 28px; position: relative;
}
.pricing-features li::before {
  content: "✓"; position: absolute; left: 4px; top: 6px;
  color: var(--moss); font-weight: 700;
}
.pricing-card.free .pricing-features li::before { color: var(--ink-300); content: "·"; font-size: 18px; top: 4px; }
.pricing-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 10px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 200ms var(--ease);
}
.pricing-card.free .pricing-cta {
  background: transparent; color: var(--ink-700);
  border: 1.5px solid var(--border-strong);
}
.pricing-card.free .pricing-cta:hover { border-color: var(--moss); color: var(--moss); background: var(--moss-050); }
.pricing-card.featured .pricing-cta {
  background: var(--moss); color: var(--paper); border: none;
  box-shadow: 0 4px 16px rgba(31,77,63,0.32);
}
.pricing-card.featured .pricing-cta:hover { background: var(--moss-700); transform: translateY(-2px); }
/* Pro (secondary): outlined moss so it reads as a button, one step below Pro+. */
.pricing-card.pro .pricing-cta {
  background: transparent; color: var(--moss);
  border: 1.5px solid var(--moss);
}
.pricing-card.pro .pricing-cta:hover {
  background: var(--moss); color: var(--paper); transform: translateY(-2px);
}

/* Free card: a reduced, full-width band sitting below the two passes. */
.pricing-card.free {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center;
  gap: 36px; padding: 24px 32px;
}
.pricing-card.free .free-head { flex-shrink: 0; min-width: 130px; }
.pricing-card.free .pricing-amount { font-size: 30px; margin-bottom: 0; }
.pricing-card.free .pricing-period { margin-bottom: 0; }
.pricing-card.free .pricing-features {
  display: flex; flex-wrap: wrap; gap: 2px 28px;
  margin: 0; flex: 1;
}
.pricing-card.free .pricing-features li { padding: 4px 0 4px 22px; }
.pricing-card.free .pricing-cta { flex-shrink: 0; }
.pricing-3month-note {
  text-align: center; margin-top: 32px;
  font-size: 14px; color: var(--ink-500); font-family: var(--font-serif);
  font-style: italic;
}
.pricing-3month-note a { color: var(--moss); text-decoration: underline; }

/* ── Final CTA ── */
.cta-section {
  background: var(--paper);
  text-align: center; padding: 120px 24px;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-headline {
  font-size: clamp(32px, 4vw, 52px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.08; color: var(--ink);
  margin-bottom: 20px;
}
.cta-sub { font-size: 17px; color: var(--ink-500); line-height: 1.7; margin-bottom: 44px; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-large {
  height: 56px; padding: 0 36px;
  background: var(--moss); color: var(--paper);
  border: none; border-radius: 12px;
  font-family: var(--font-sans); font-size: 17px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 200ms var(--ease), transform 150ms var(--ease), box-shadow 200ms var(--ease);
  box-shadow: 0 4px 20px rgba(31,77,63,0.32);
}
.btn-large:hover { background: var(--moss-700); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(31,77,63,0.40); }
.btn-large-ghost {
  height: 56px; padding: 0 32px;
  background: transparent; color: var(--ink-700);
  border: 1.5px solid var(--border-strong); border-radius: 12px;
  font-family: var(--font-sans); font-size: 17px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 200ms var(--ease);
}
.btn-large-ghost:hover { border-color: var(--moss); color: var(--moss); background: var(--moss-050); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .how-steps { grid-template-columns: 1fr; }
  .bands-inner { grid-template-columns: 1fr; gap: 48px; }
  .canada-inner { grid-template-columns: 1fr; gap: 48px; }
  .scores-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; max-width: 480px; }
  /* Stacked layout: Free returns to a normal vertical card. */
  .pricing-card.free { grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 36px 32px; }
  .pricing-card.free .pricing-features { display: block; margin: 0 0 32px; }
  .pricing-card.free .pricing-amount { font-size: 44px; margin-bottom: 4px; }
  .pricing-card.free .pricing-period { margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 24px 60px; }
  .scores-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 88px 20px 48px; }
  .hero-headline { font-size: clamp(32px, 9vw, 44px); }
  .hero-sub { font-size: 16px; margin-bottom: 32px; }
  .proof-text br { display: none; }
  section { padding: 72px 20px; }
  .pricing-section { padding: 80px 20px; }
  .pricing-card { padding: 28px 22px; }
  .cta-section { padding: 80px 20px; }
  .cta-headline { font-size: clamp(28px, 8vw, 36px); }
  .btn-large, .btn-large-ghost { height: 50px; padding: 0 24px; font-size: 15px; }
}
