:root {
  --paper: #f5f3ee;
  --ink: #1f2822;
  --muted: #5d665f;
  --green: #1f5139;
  --green-soft: #dce7dd;
  --line: rgba(31, 40, 34, 0.16);
  --white: #fffdf8;
  --sun: #d98b4a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: none;
  border-bottom: 0;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 20px;
  color: var(--green);
  text-shadow: 0 1px 12px rgba(255, 253, 248, 0.64);
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(18, 28, 22, 0.56));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 1px 12px rgba(255, 253, 248, 0.68);
}

.nav-links a {
  padding: 8px 0;
}

.nav-toggle,
.hamburger {
  display: none;
}

.hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 253, 248, 0.34);
  border-radius: 8px;
  background: rgba(18, 28, 22, 0.22);
  cursor: pointer;
}

.hamburger span {
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(18, 28, 22, 0.72);
}

.hero {
  height: 100svh;
  margin-top: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-content {
  display: none;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(18px, 4vw, 34px);
  z-index: 20;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: #2f8ec7;
  border: 2px solid rgba(255, 253, 248, 0.7);
  box-shadow: 0 12px 34px rgba(18, 28, 22, 0.24);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.eyebrow,
.feature-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.15;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-copy {
  max-width: 620px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero .eyebrow,
.hero h1,
.hero .hero-copy {
  color: var(--ink);
  text-shadow: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  border: 1px solid var(--green);
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--green);
  background: transparent;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}

.intro-section {
  background: var(--white);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

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

.feature-card {
  min-height: 250px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download-section {
  background: #eee4d2;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(22px, 5vw, 44px);
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid rgba(95, 76, 47, 0.18);
  border-radius: 8px;
}

.fake-qr {
  width: min(100%, 260px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(var(--green), var(--green)) 18px 18px / 54px 54px no-repeat,
    linear-gradient(var(--green), var(--green)) calc(100% - 72px) 18px / 54px 54px no-repeat,
    linear-gradient(var(--green), var(--green)) 18px calc(100% - 72px) / 54px 54px no-repeat,
    var(--white);
  border: 10px solid var(--white);
  box-shadow: 0 18px 42px rgba(31, 40, 34, 0.12);
}

.fake-qr span {
  background: var(--green);
  border-radius: 3px;
}

.fake-qr span:nth-child(2),
.fake-qr span:nth-child(5),
.fake-qr span:nth-child(8),
.fake-qr span:nth-child(9),
.fake-qr span:nth-child(13) {
  opacity: 0;
}

.download-copy {
  max-width: 760px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.disabled-button {
  cursor: default;
  opacity: 0.72;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.phone-preview {
  width: min(100%, 390px);
  min-height: 560px;
  margin-left: auto;
  padding: 24px;
  background: var(--white);
  border: 10px solid var(--ink);
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(31, 40, 34, 0.18);
}

.phone-bar {
  width: 108px;
  height: 8px;
  margin: 0 auto 34px;
  border-radius: 999px;
  background: var(--ink);
}

.phone-title {
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 900;
}

.pill-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.pill-row span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.preview-post {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-post strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.preview-post p {
  margin: 0;
  font-size: 14px;
}

.preview-post.muted {
  background: #f2f0e9;
}

.safety-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  background: var(--green);
  color: var(--white);
}

.safety-section .eyebrow,
.safety-section h2 {
  color: var(--white);
}

.safety-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.22);
  font-size: 18px;
  font-weight: 750;
}

.contact-section {
  max-width: 900px;
}

.contact-email-link {
  display: inline-flex;
  margin-left: 14px;
  color: var(--green);
  font-weight: 850;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(31, 81, 57, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.52);
  font-weight: 850;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 84px);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  font-weight: 800;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px 18px;
}

.footer-links a {
  color: var(--green);
  font-weight: 750;
}

.footer-link-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(31, 81, 57, 0.54);
  white-space: nowrap;
}

.legal-body {
  background: var(--paper);
}

.legal-header {
  position: relative;
  background: rgba(245, 243, 238, 0.92);
  border-bottom: 1px solid var(--line);
}

.legal-header .brand,
.legal-header .nav-links {
  color: var(--green);
  text-shadow: none;
}

.legal-header .hamburger {
  border-color: rgba(31, 81, 57, 0.24);
  background: rgba(213, 190, 151, 0.18);
}

.legal-header .hamburger span {
  background: var(--green);
  box-shadow: none;
}

.legal-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px clamp(18px, 5vw, 44px) 72px;
}

.legal-main h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 78px);
}

.legal-main h2 {
  margin-top: 42px;
  font-size: clamp(25px, 4vw, 38px);
}

.legal-main h3 {
  margin-top: 28px;
}

.legal-main ul,
.legal-main ol {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.legal-main li {
  margin-bottom: 9px;
}

.legal-note {
  padding: 16px;
  margin: 24px 0;
  background: rgba(213, 190, 151, 0.28);
  border: 1px solid rgba(95, 76, 47, 0.18);
  border-radius: 8px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    min-height: 72px;
    flex-direction: row;
    gap: 12px;
  }

  .hamburger {
    display: inline-flex;
  }

  .brand {
    font-size: 17px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 10px;
    color: var(--green);
    background: rgba(213, 190, 151, 0.24);
    border: 1px solid rgba(95, 76, 47, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(18, 28, 22, 0.16);
    backdrop-filter: blur(8px);
    font-size: 15px;
    text-shadow: none;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
    border-radius: 6px;
  }

  .nav-links a:hover {
    background: rgba(31, 81, 57, 0.08);
  }

  .hero,
  .download-panel,
  .split-section,
  .safety-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 100svh;
  }

  .hero-image {
    height: 100%;
    max-height: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    margin-left: 0;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .contact-email-link {
    width: 100%;
    justify-content: center;
    margin: 14px 0 0;
  }

  .social-links {
    width: 100%;
  }

  .social-links a {
    width: 100%;
  }

  .phone-preview {
    min-height: 500px;
    padding: 18px;
    border-width: 8px;
    border-radius: 28px;
  }

  .site-footer {
    text-align: center;
    padding: 26px 18px 82px;
  }

  .footer-brand {
    justify-self: center;
  }

  .footer-links {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .footer-link-group {
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.45;
  }
}
