:root {
  --primary-green: #2d6a2d;
  --primary-light: #4caf50;
  --surface-green: #f1f8e9;
  --sun: #f57c00;
  --cool-blue: #0288d1;
  --warning: #c62828;
  --background: #fafff7;
  --earth: #5d4037;
  --text: #1a2e1a;
  --muted: #5a7a5a;
  --border: #cce0cc;
  --white: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Nunito Sans", Nunito, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: color-mix(in srgb, var(--background) 92%, white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-green);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand img,
.site-footer img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--surface-green);
  color: var(--primary-green);
}

.main-nav a[aria-current="page"] {
  background: var(--surface-green);
  color: var(--primary-green);
}

main {
  overflow: hidden;
}

.section-band {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 64px);
  background:
    linear-gradient(115deg, rgba(241, 248, 233, 0.92), rgba(255, 255, 249, 0.7)),
    radial-gradient(circle at 82% 12%, rgba(245, 124, 0, 0.2), transparent 32%),
    var(--background);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  color: var(--primary-green);
  font-size: 6rem;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--primary-green);
  font-size: 3.35rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 690px;
  color: var(--text);
  font-size: 1.25rem;
}

.hero-actions,
.download-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.store-button,
.download-card {
  border: 0;
  border-radius: 8px;
  background: var(--primary-green);
  color: white;
  box-shadow: 0 18px 36px rgba(45, 106, 45, 0.18);
  text-decoration: none;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
  padding: 13px 18px;
  font-weight: 900;
}

.store-button-alt {
  background: var(--earth);
}

.store-icon {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
}

.store-button small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.82;
}

.phone-preview {
  display: grid;
  place-items: center;
}

.phone-shell {
  position: relative;
  width: min(390px, 88vw);
  min-height: 720px;
  padding: 18px;
  overflow: hidden;
  border: 11px solid #173817;
  border-radius: 36px;
  background: var(--surface-green);
  box-shadow: 0 34px 90px rgba(26, 46, 26, 0.24);
}

.phone-top,
.search-pill {
  position: relative;
  z-index: 2;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-green);
  font-weight: 1000;
}

.phone-top button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--primary-green);
  font-size: 1.1rem;
}

.search-pill {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.map-canvas {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, transparent 48%, rgba(2, 136, 209, 0.14) 49% 52%, transparent 53%),
    linear-gradient(145deg, transparent 40%, rgba(93, 64, 55, 0.1) 41% 45%, transparent 46%),
    linear-gradient(90deg, rgba(76, 175, 80, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(76, 175, 80, 0.1) 1px, transparent 1px),
    #eff8e7;
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
}

.route {
  position: absolute;
  width: 280px;
  height: 46px;
  border-top: 12px solid rgba(93, 64, 55, 0.16);
  border-radius: 50%;
}

.route-a {
  top: 38%;
  left: 0;
  transform: rotate(28deg);
}

.route-b {
  top: 54%;
  right: -70px;
  transform: rotate(-18deg);
}

.marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 4px solid white;
  border-radius: 999px 999px 999px 2px;
  color: transparent;
  box-shadow: 0 10px 20px rgba(26, 46, 26, 0.16);
  rotate: -45deg;
}

.marker-full {
  background: var(--primary-green);
}

.marker-good {
  background: #7cb342;
}

.marker-partial {
  background: var(--sun);
}

.marker-low {
  background: var(--warning);
}

.bottom-sheet {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding: 12px 16px 18px;
  border-radius: 24px 24px 18px 18px;
  background: white;
  box-shadow: 0 -18px 42px rgba(26, 46, 26, 0.14);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--border);
}

.bottom-sheet h2 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.bottom-sheet article {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.bottom-sheet span {
  color: var(--muted);
  font-size: 0.86rem;
}

.purpose,
.shade-story,
.legal-section,
.site-footer {
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.purpose {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
}

.purpose p:last-child,
.section-heading p,
.legal-section > p,
.meter-card p,
.feature-grid p {
  color: var(--muted);
}

.features {
  background: var(--surface-green);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.feature-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.legal-grid article,
.meter-card,
.stats-list div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.feature-grid article {
  padding: 22px;
}

.feature-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--sun);
  font-weight: 1000;
}

.shade-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
  background: white;
}

.meter-card {
  padding: clamp(24px, 4vw, 42px);
}

.shade-meter {
  position: relative;
  height: 42px;
  margin: 30px 0;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--warning), #ff7043, var(--sun), #7cb342, var(--primary-green));
}

.shade-meter span {
  position: absolute;
  inset: 7px 7px 7px auto;
  width: 28px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stats-list div {
  display: grid;
  align-content: center;
  min-height: 148px;
  padding: 22px;
}

.stats-list strong {
  color: var(--primary-green);
  font-size: 2.4rem;
  line-height: 1;
}

.stats-list span {
  color: var(--muted);
  font-weight: 800;
}

.download {
  background: linear-gradient(135deg, var(--primary-green), #235123);
  color: white;
}

.download h2,
.download .eyebrow,
.download p {
  color: white;
}

.download code {
  border-radius: 5px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.16);
}

.download-card {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
}

.download-card:nth-child(2) {
  background: var(--sun);
}

.download-card span {
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
  opacity: 0.8;
}

.download-card strong {
  font-size: 1.35rem;
}

.download-card small {
  font-weight: 800;
}

.legal-section {
  border-bottom: 1px solid var(--border);
  background: white;
}

.legal-section > p {
  max-width: 940px;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.legal-grid article {
  padding: 24px;
  background: var(--background);
}

.legal-links .legal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  text-decoration: none;
}

.legal-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 16px 34px rgba(45, 106, 45, 0.1);
  transform: translateY(-2px);
}

.legal-card span {
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.legal-card strong {
  color: var(--primary-green);
  font-size: 1.12rem;
  line-height: 1.35;
}

.delete-data {
  background: var(--surface-green);
}

.delete-data ol {
  max-width: 880px;
  margin: 24px 0 0;
  padding-left: 22px;
}

.delete-data li {
  margin-bottom: 12px;
}

.delete-data a {
  color: var(--primary-green);
  font-weight: 900;
}

.policy-page {
  background: var(--background);
}

.policy-hero {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 72px) clamp(34px, 5vw, 70px);
  background:
    linear-gradient(115deg, rgba(241, 248, 233, 0.96), rgba(255, 255, 249, 0.86)),
    radial-gradient(circle at 88% 18%, rgba(245, 124, 0, 0.18), transparent 32%);
  border-bottom: 1px solid var(--border);
}

.policy-hero h1 {
  max-width: 980px;
  font-size: 4.7rem;
}

.policy-hero p:last-child {
  max-width: 920px;
  color: var(--muted);
  font-size: 1.16rem;
}

.policy-content {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0;
}

.policy-content section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.policy-content section:first-child {
  padding-top: 0;
}

.policy-content h2 {
  margin-bottom: 12px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.policy-content ul,
.policy-content ol {
  padding-left: 22px;
}

.policy-content li {
  margin-bottom: 10px;
}

.policy-content a {
  color: var(--primary-green);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #173817;
  color: white;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.fine-print {
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .hero,
  .purpose,
  .shade-story {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-links .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .main-nav a {
    padding: 6px 8px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .policy-hero h1 {
    font-size: 3.25rem;
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .stats-list strong {
    font-size: 2rem;
  }

  .phone-shell {
    min-height: 640px;
  }

  .feature-grid,
  .legal-grid,
  .stats-list {
    grid-template-columns: 1fr;
  }

  .store-button,
  .download-card {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .marker {
    animation: float-pin 4s ease-in-out infinite;
  }

  .marker:nth-of-type(2) {
    animation-delay: -1s;
  }

  .marker:nth-of-type(3) {
    animation-delay: -2s;
  }

  @keyframes float-pin {
    0%,
    100% {
      translate: 0 0;
    }
    50% {
      translate: 0 -8px;
    }
  }
}
