:root {
  --ink: #12233b; --ink-soft: #4b5768; --ink-faint: #8a94a3;
  --line: #e6e9ee; --canvas: #f6f7f9; --surface: #fff;
  --brand: #1c3f57; --brand-dark: #12293a; --brand-light: #3d6a8a; --brand-tint: #eaf1f5;
  --land: #4a8a6f; --building: #2c4770; --premises: #b8683f;
  /* Gold accent - matches the Nivora wordmark's gradient end - used as the
     "pop" color for CTAs/highlights across the marketing pages, direct
     feedback ("add colors... similar to m2cena.lv") that the all-blue
     palette read as flat/generic rather than modern or branded. */
  --gold: #c8922e; --gold-light: #e0ac4a; --gold-dark: #9c7020; --gold-tint: #fbf1de;
}
body { color: var(--ink); background: var(--surface); }

/* ---------- Hero ---------- */
/* Bold navy/gold gradient banner (rounded, framed within the page) instead
   of the previous pale off-white gradient - direct feedback that the all-
   blue/white palette read as flat/generic next to m2cena's bolder look. */
.hero {
  padding: 64px 40px; position: relative; overflow: hidden;
  background: radial-gradient(1000px 460px at 12% -10%, rgba(200,146,46,.22), transparent 60%),
              linear-gradient(160deg, #0e2036 0%, #12293a 45%, #1c3f57 100%);
  border-radius: 22px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 56px; align-items: center;
  max-width: 1180px; margin: 20px auto 64px;
}
.hero-copy .eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #ffe9c2; background: rgba(200,146,46,.22); border: 1px solid rgba(224,172,74,.4);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero-copy h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; color: #fff; }
.hero-copy p { font-size: 17px; color: rgba(255,255,255,.72); max-width: 480px; margin: 0 0 28px; line-height: 1.6; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: all .15s; }
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #1a1204; box-shadow: 0 4px 18px rgba(200,146,46,.4); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-secondary:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }

/* Product mockup - a hand-built illustration in our real app's visual
   language (same colors/shapes as explore.css), not a literal screenshot -
   more reliable to keep in sync, and honestly presented as illustrative. */
.mockup-frame {
  background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(18,35,59,.25), 0 2px 8px rgba(18,35,59,.08);
  overflow: hidden; border: 1px solid var(--line);
}
.mockup-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f2f4f7; border-bottom: 1px solid var(--line); }
.mockup-chrome span { width: 9px; height: 9px; border-radius: 50%; background: #d7dce2; }
.mockup-body { display: flex; gap: 14px; padding: 16px; background: #f9fafb; }
.mockup-cards { display: flex; flex-direction: column; gap: 10px; flex: 1.1; min-width: 0; }
.mockup-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; border-left: 3px solid var(--building); }
.mockup-card.premises { border-left-color: var(--premises); }
.mockup-card.land { border-left-color: var(--land); }
.mockup-card .mc-tag { display: inline-block; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--building); padding: 2px 6px; border-radius: 3px; margin-bottom: 5px; }
.mockup-card.premises .mc-tag { background: var(--premises); }
.mockup-card.land .mc-tag { background: var(--land); }
.mockup-card .mc-addr { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.mockup-card .mc-sub { font-size: 9.5px; color: var(--ink-faint); margin-top: 2px; }
.mockup-card .mc-stats { display: flex; gap: 10px; margin-top: 6px; }
.mockup-card .mc-stat-value { font-size: 12px; font-weight: 700; color: var(--ink); }
.mockup-card .mc-stat-label { font-size: 8px; color: var(--ink-faint); text-transform: uppercase; }
.mockup-card .mc-rent {
  font-size: 9.5px; color: #0a7a4e; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line);
}
.mockup-card .mc-rent span { color: var(--ink-faint); }
.mockup-map {
  flex: 1; border-radius: 9px; position: relative; min-height: 190px; border: 1px solid var(--line);
  overflow: hidden; background: #eaf1f6;
}
.mockup-map #hero-map { position: absolute; inset: 0; }

/* ---------- Live report demo ---------- */
.demo-section { background: var(--canvas); padding: 56px 24px; }
.demo-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.demo-form { display: flex; gap: 10px; margin: 24px 0 0; flex-wrap: wrap; justify-content: center; }
.demo-form input {
  flex: 1; min-width: 240px; padding: 13px 16px; font-size: 14.5px; border: 1px solid var(--line);
  border-radius: 9px; font-family: inherit;
}
.demo-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,146,46,.18); }

.demo-result, .demo-error {
  margin: 22px auto 0; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; text-align: left; box-shadow: 0 4px 20px rgba(16,24,40,.06);
}
.demo-error { color: #c0392b; text-align: center; font-size: 13.5px; }
.demo-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.demo-address { font-size: 16px; font-weight: 800; color: var(--ink); }
.demo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.demo-result { max-width: 720px; }
.demo-stat { background: var(--canvas); border-radius: 10px; padding: 12px 14px; }
.demo-stat-value { font-size: 17px; font-weight: 800; color: var(--ink); }
/* Real computed numbers, visually blurred behind a signup CTA - a
   marketing teaser (like Zillow/Redfin's blurred-Zestimate pattern), not
   the app's actual tier-enforcement boundary (see explore.js's
   renderPlaceholderCard for that - fake placeholders, since real hidden
   product data would still sit in the page source either way). This is a
   public homepage lead-gen hook, lower stakes than gating real product
   usage, so blurring the real figure is an accepted, common pattern here. */
.demo-stat-value.blurred { filter: blur(5px); user-select: none; }
.demo-stat-value[class*="energy-class-"] {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px;
  padding: 1px 9px; border-radius: 6px; color: #fff; font-size: 15px;
}
.demo-stat-value.energy-class-a-plus { background: #0a7a4e; }
.demo-stat-value.energy-class-a { background: #2f9e5c; }
.demo-stat-value.energy-class-b { background: #7cb342; }
.demo-stat-value.energy-class-c { background: #c8a838; }
.demo-stat-value.energy-class-d { background: #d98a2b; }
.demo-stat-value.energy-class-e { background: #d9642b; }
.demo-stat-value.energy-class-f { background: #c0392b; }
.demo-stat-label { font-size: 11px; color: var(--ink-faint); margin-top: 2px; text-transform: uppercase; letter-spacing: .03em; }
.demo-cta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.demo-cta p { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }

.demo-form .btn-primary { padding: 13px 26px; }

/* Reused era-badge (same 4 colors as everywhere else in the product) and
   energy-class colors, duplicated here (not cross-linked to report.css/
   card.css) since the homepage deliberately stays a lightweight, separate
   stylesheet - same reasoning as blog.css's self-contained .blog-example. */
.era-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; color: #fff; white-space: nowrap;
}
.era-badge.era-0 { background: #b08968; } .era-badge.era-1 { background: #7d8597; }
.era-badge.era-2 { background: #4a7c95; } .era-badge.era-3 { background: #1f5c85; }

/* ---------- Feature showcase (product mockups, not stock photos) ---------- */
.showcase-section { max-width: 1080px; margin: 0 auto; padding: 20px 24px 80px; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.showcase-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 28px rgba(18,35,59,.1); }
.showcase-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f2f4f7; border-bottom: 1px solid var(--line); }
.showcase-chrome span { width: 9px; height: 9px; border-radius: 50%; background: #d7dce2; }
.showcase-url { margin-left: 8px; font-size: 11px; color: var(--ink-faint); font-family: monospace; }
.showcase-body { padding: 18px; }
.showcase-caption { font-size: 12.5px; color: var(--ink-faint); margin: 10px 4px 0; text-align: center; }

.fact-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fact-chip {
  font-size: 11.5px; color: var(--ink-soft); background: var(--canvas); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 10px;
}
.stat-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 90px; background: var(--canvas); border-radius: 10px; padding: 10px 12px; text-align: center; }
.stat-num { font-size: 15px; font-weight: 800; color: var(--ink); }
.stat-num.energy-class-e { display: inline-flex; padding: 1px 10px; border-radius: 6px; background: #d9642b; color: #fff; }
.stat-num.energy-class-d { display: inline-flex; padding: 1px 10px; border-radius: 6px; background: #d98a2b; color: #fff; }
.stat-lbl { font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; }

.era-pie-wrap { display: flex; align-items: center; gap: 16px; }
.era-pie { border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--line); }
.era-legend { display: flex; flex-direction: column; gap: 6px; }
.era-legend-row { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.era-legend-swatch { width: 10px; height: 10px; border-radius: 3px; }
.era-legend-pct { font-weight: 700; color: var(--ink); min-width: 32px; }
.era-legend-label { color: var(--ink-soft); }

/* ---------- Stats strip ---------- */
.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--canvas); }
.stats-strip-inner {
  max-width: 1180px; margin: 0 auto; padding: 28px 24px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center;
}
.stat-item .stat-num { font-size: 26px; font-weight: 800; color: var(--gold-dark); letter-spacing: -.02em; }
.stat-item .stat-label { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }

.pulse-strip { background: var(--ink); }
.pulse-strip-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center;
  gap: 22px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.9);
}
.pulse-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.5); }
.pulse-item strong { color: #fff; }
.pulse-change { font-size: 11.5px; font-weight: 700; margin-left: 3px; }
.pulse-change.up { color: #4ade80; }
.pulse-change.down { color: #f87171; }
.pulse-meta { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.4); }

/* ---------- Features ---------- */
.features { max-width: 1080px; margin: 0 auto; padding: 80px 24px; }
.section-heading { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-heading .eyebrow { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); margin-bottom: 10px; }
.section-heading h2 { font-size: 28px; margin: 0 0 10px; letter-spacing: -.01em; }
.section-heading p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  padding: 26px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  border-top: 3px solid var(--card-accent, var(--brand)); transition: box-shadow .15s, transform .15s;
}
.feature-card:hover { box-shadow: 0 10px 28px rgba(18,35,59,.1); transform: translateY(-3px); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--card-accent, var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
/* Rotating accent per card (nth-child) - a small palette pulled straight
   from colors already used elsewhere in the product (land/building/
   premises kind colors + the gold brand accent), so "colorful" still reads
   as this product's own system rather than random decoration. */
.feature-grid .feature-card:nth-child(4n+1) { --card-accent: var(--gold-dark); }
.feature-grid .feature-card:nth-child(4n+2) { --card-accent: var(--building); }
.feature-grid .feature-card:nth-child(4n+3) { --card-accent: var(--land); }
.feature-grid .feature-card:nth-child(4n+4) { --card-accent: var(--premises); }
.feature-card h3 { font-size: 15.5px; margin: 0 0 6px; }
.feature-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ---------- Skyline accent ---------- */
.skyline-band { background: var(--ink); padding: 0; overflow: hidden; }
.skyline-svg { display: block; width: 100%; height: auto; }

/* ---------- Pricing ---------- */
.tiers { background: var(--canvas); padding: 80px 24px; }
.tier-cards { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tier-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; position: relative; }
.tier-card.featured { border-color: var(--gold); box-shadow: 0 10px 30px rgba(200,146,46,.18); }
.tier-card .tier-badge {
  position: absolute; top: -11px; left: 24px; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1204; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .02em;
}
.tier-card h3 { margin: 0 0 4px; font-size: 18px; }
.tier-card .tier-price { font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; }
.tier-card ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 2; }
.tier-card ul li { display: flex; gap: 8px; align-items: baseline; }
.tier-card ul li::before { content: "✓"; color: var(--gold-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 24px 28px; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer .brand-mini { font-size: 17px; }
.site-footer .footer-meta { font-size: 12.5px; color: var(--ink-faint); }
.site-footer .footer-meta a { color: var(--ink-faint); text-decoration: underline; }
.site-footer .footer-meta a:hover { color: var(--gold-dark, #9c7020); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .tier-cards { grid-template-columns: 1fr; }
}
