/*
 * ParcelMap product page (index.php). Forest palette: deep green, off-white, one gold accent
 * (the parcel in the app icon). Shapes: 22px cards and media, full pills for buttons.
 * Light and dark follow prefers-color-scheme.
 */

:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --ink: #12261a;
  --muted: #4d5f53;
  --line: rgba(18, 38, 26, 0.1);
  --green: #1f7a46;
  --green-deep: #0e3b23;
  --gold: #ffc83d;
  --gold-ink: #2b2200;
  --tint: #e7f1ea;
  --shadow: 0 24px 60px -24px rgba(14, 59, 35, 0.35);
  --radius: 22px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1510;
    --surface: #122019;
    --ink: #e8efe9;
    --muted: #a6b5ab;
    --line: rgba(232, 239, 233, 0.1);
    --green: #3fae6c;
    --tint: #16301f;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.lp {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.lp-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.lp-brand img { border-radius: 8px; }

.lp-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
}

.lp-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  transition: color 150ms ease;
}

.lp-links a:hover { color: var(--ink); }

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.lp-lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--tint);
}

.lp-lang a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
}

.lp-lang a.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(14, 59, 35, 0.15);
}

/* Buttons */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}

.lp-btn:active { transform: scale(0.97); }

.lp-btn-ghost {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border: 1px solid var(--line);
}

.lp-btn-ghost:hover { background: var(--tint); }

.lp-btn-solid {
  background: var(--green-deep);
  color: #f4f6f3;
}

.lp-btn-solid:hover { background: var(--green); }

@media (prefers-color-scheme: dark) {
  .lp-btn-solid { background: var(--green); color: #07130c; }
  .lp-btn-solid:hover { background: #57c383; }
}

.lp-btn-onDark {
  color: #f4f6f3;
  border: 1px solid rgba(244, 246, 243, 0.35);
}

.lp-btn-onDark:hover { background: rgba(244, 246, 243, 0.1); }

/* App Store badge */

.lp-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  background: #0b0f0c;
  color: #fff;
  text-decoration: none;
  transition: transform 140ms var(--ease-out);
}

.lp-store:active { transform: scale(0.97); }

.lp-store i { font-size: 28px; }

.lp-store-text { display: flex; flex-direction: column; line-height: 1.1; }

.lp-store-sub { font-size: 11px; opacity: 0.85; }

.lp-store-main { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }

.lp-store.is-soon { cursor: default; opacity: 0.92; }

.lp-store.is-light { background: #f4f6f3; color: #0b0f0c; }

@media (prefers-color-scheme: dark) {
  .lp-store { background: #f4f6f3; color: #0b0f0c; }
}

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

/* Hero */

.lp-hero { padding: 56px 0 80px; }

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.lp-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 780;
}

.lp-lead {
  margin: 0 0 30px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 19px;
}

.lp-hero-visual {
  position: relative;
  margin: 0;
}

.lp-aerial {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 20 / 13;
  box-shadow: var(--shadow);
}

.lp-aerial img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-hero-phone {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 27%;
  border-radius: 28px;
  border: 6px solid #0b0f0c;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

/* Sections */

.lp-section { padding: 88px 0; }

.lp-h2 {
  margin: 0 0 40px;
  max-width: 22ch;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 760;
}

/* Features: bento with five tiles */

.lp-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.lp-tile {
  grid-column: span 2;
  position: relative;
  min-height: 230px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lp-tile h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lp-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
}

.lp-tile-icon {
  position: absolute;
  top: 26px;
  left: 28px;
  font-size: 30px;
  color: var(--green);
}

/* Tile 1: the real map, wide */
.lp-tile.is-wide { grid-column: span 4; grid-row: span 2; min-height: 480px; }

.lp-tile.is-photo {
  color: #f4f6f3;
  border: 0;
  background:
    linear-gradient(180deg, rgba(8, 24, 15, 0) 30%, rgba(8, 24, 15, 0.86) 100%),
    url("/assets/img/hero-parcels.png") center / cover,
    url("/assets/img/hero-aerial.jpg") center / cover;
}

.lp-tile.is-photo p { color: rgba(244, 246, 243, 0.85); }
.lp-tile.is-photo .lp-tile-icon { color: var(--gold); }

.lp-tile.is-tint { background: var(--tint); border-color: transparent; }

.lp-tile.is-deep {
  background: var(--green-deep);
  color: #f4f6f3;
  border: 0;
}

.lp-tile.is-deep p { color: rgba(244, 246, 243, 0.8); }
.lp-tile.is-deep .lp-tile-icon { color: var(--gold); }

/* Row 3: two tiles of three columns each */
.lp-tile:nth-child(4),
.lp-tile:nth-child(5) { grid-column: span 3; }

/* Audience: two-column grouped list */

.lp-audience { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.lp-audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 48px;
}

.lp-audience-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
}

.lp-audience-list i {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--green);
  background: var(--tint);
}

.lp-audience-list h3 { margin: 0 0 2px; font-size: 18px; letter-spacing: -0.01em; }
.lp-audience-list p { margin: 0; color: var(--muted); font-size: 16px; }

/* App: full-width deep green panel */

.lp-app-card {
  max-width: 1152px;
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 200, 61, 0.16), transparent 55%),
    var(--green-deep);
  color: #f4f6f3;
  padding: 64px 56px;
}

.lp-app-copy { max-width: 620px; }

.lp-app-icon { border-radius: 18px; margin-bottom: 24px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); }

.lp-app .lp-h2 { color: #f4f6f3; }

.lp-app .lp-lead { color: rgba(244, 246, 243, 0.8); max-width: 46ch; }

/* Footer */

.lp-footer { padding: 40px 0 56px; }

.lp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.lp-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }

.lp-footer nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.lp-footer nav a:hover { color: var(--ink); }

.lp-footnote { width: 100%; margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* Reveal: only when JS runs and motion is allowed */

.lp-js .lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.lp-js .lp-reveal.is-in { opacity: 1; transform: none; }

/* Responsive */

@media (max-width: 960px) {
  .lp-links { display: none; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-bento { grid-template-columns: 1fr 1fr; }
  .lp-tile, .lp-tile:nth-child(4), .lp-tile:nth-child(5) { grid-column: span 1; }
  .lp-tile.is-wide { grid-column: span 2; grid-row: auto; min-height: 380px; }
}

@media (max-width: 640px) {
  body.lp { font-size: 16px; }
  .lp-wrap { padding: 0 16px; }
  .lp-nav-inner { gap: 12px; }
  .lp-brand span { display: none; }
  .lp-hero { padding: 32px 0 56px; }
  .lp-lead { font-size: 17px; }
  .lp-section { padding: 64px 0; }
  .lp-bento { grid-template-columns: 1fr; }
  .lp-tile, .lp-tile.is-wide { grid-column: span 1; min-height: 220px; }
  .lp-tile.is-wide { min-height: 360px; }
  .lp-audience-list { grid-template-columns: 1fr; }
  .lp-app-card { padding: 40px 24px; border-radius: 22px; }
  .lp-hero-phone { width: 32%; right: -4px; }
}
