:root {
  --bg: #f3f0e8;
  --surface: rgba(255, 252, 247, 0.84);
  --surface-strong: #fffaf2;
  --text: #1d231c;
  --muted: #556154;
  --line: rgba(29, 35, 28, 0.12);
  --accent: #167c58;
  --accent-dark: #0f5b40;
  --highlight: #e7a945;
  --shadow: 0 18px 50px rgba(44, 41, 34, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(231, 169, 69, 0.2), transparent 25%),
    radial-gradient(circle at top right, rgba(22, 124, 88, 0.15), transparent 28%),
    linear-gradient(180deg, #f6f2e9 0%, #f2ece1 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(29, 35, 28, 0.08);
  font-size: 0.95em;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(246, 242, 233, 0.82);
  border-bottom: 1px solid rgba(29, 35, 28, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--accent-dark);
}

.hero-section,
.content-section,
.stats-section {
  padding: 4.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(22, 124, 88, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 12ch;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0;
}

.lead,
.section-heading p,
.legal-intro,
.legal-layout p,
.legal-layout li {
  color: var(--muted);
  font-size: 1.04rem;
}

.lead {
  margin-top: 1.25rem;
  max-width: 56ch;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #f8fff8;
  box-shadow: 0 14px 24px rgba(22, 124, 88, 0.2);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(29, 35, 28, 0.09);
}

.hero-points {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li,
.legal-callout li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text);
}

.hero-points li::before,
.legal-callout li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--highlight);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 124, 88, 0.12), transparent 68%);
  filter: blur(12px);
}

.phone-stack {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.phone-stack img:first-child {
  width: min(320px, 82%);
  transform: rotate(-8deg) translateX(-4%);
  box-shadow: var(--shadow);
}

.phone-stack img:last-child {
  width: min(280px, 70%);
  margin-top: -9rem;
  margin-right: -38%;
  transform: rotate(8deg);
  box-shadow: var(--shadow);
}

.stats-grid,
.feature-grid,
.screens-grid {
  display: grid;
  gap: 1.2rem;
}

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

.stat-card,
.feature-card,
.screen-card,
.cta-card,
.legal-card,
.legal-callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.stat-card,
.feature-card {
  padding: 1.5rem;
}

.stat-card strong,
.feature-card h3 {
  display: block;
  margin-bottom: 0.55rem;
}

.stat-card span {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

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

.alt-section {
  background: rgba(255, 252, 247, 0.45);
  border-top: 1px solid rgba(29, 35, 28, 0.06);
  border-bottom: 1px solid rgba(29, 35, 28, 0.06);
}

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

.screen-card {
  overflow: hidden;
}

.screen-card img {
  width: 100%;
  aspect-ratio: 10 / 16;
  object-fit: cover;
}

.screen-card figcaption {
  padding: 1rem 1.1rem 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(29, 35, 28, 0.08);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.55rem;
}

.legal-hero {
  padding: 4rem 0 2rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
  padding-bottom: 4rem;
}

.legal-card,
.legal-callout {
  padding: 2rem;
}

.legal-card h2 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.legal-card h3 {
  margin: 1.8rem 0 0.65rem;
}

.legal-card ul,
.legal-callout ul {
  margin: 0.6rem 0 0;
  padding-left: 0;
  list-style: none;
}

.legal-callout {
  align-self: start;
  position: sticky;
  top: 92px;
}

.legal-callout p {
  color: var(--muted);
}

.legal-callout .button {
  margin-top: 1rem;
  width: 100%;
}

@media (max-width: 980px) {
  .hero-grid,
  .legal-layout,
  .feature-grid,
  .stats-grid,
  .screens-grid,
  .cta-card,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .phone-stack img:last-child {
    margin-top: -6rem;
    margin-right: -20%;
  }

  .legal-callout {
    position: static;
  }
}

@media (max-width: 680px) {
  .hero-section,
  .content-section,
  .stats-section,
  .legal-hero {
    padding: 3rem 0;
  }

  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  h1 {
    max-width: none;
  }

  .hero-actions,
  .cta-card {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .phone-stack img:first-child {
    width: min(290px, 88%);
  }

  .phone-stack img:last-child {
    width: min(250px, 78%);
    margin-top: -4.2rem;
    margin-right: -10%;
  }

  .legal-card,
  .legal-callout {
    padding: 1.35rem;
  }
}
