:root {
  --background: #fbf9f0;
  --foreground: #16261b;
  --card: #ffffff;
  --primary: #23643f;
  --primary-foreground: #fbf9f0;
  --secondary: #efebdd;
  --muted-foreground: #5b675e;
  --accent: #eb883b;
  --destructive: #e7000b;
  --border: #e2ded0;
  --radius: 1rem;
  --shadow: 0 4px 24px rgba(22, 38, 27, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 249, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  margin-inline: auto;
  background: var(--foreground);
  border-radius: 1px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  flex-basis: 100%;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.site-nav.is-open {
  display: block;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  font-size: 1rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.nav-links li:last-child a {
  border-bottom: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--foreground);
}

.site-nav .nav-cta {
  display: inline-flex;
  width: 100%;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .nav {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-basis: auto;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    border: 0;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .nav-links a {
    padding: 0;
    font-size: 0.9375rem;
    border-bottom: none;
  }

  .site-nav .nav-cta {
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background: var(--foreground);
  color: var(--primary-foreground);
  border-radius: 0.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.2;
  flex: 1 1 100%;
  max-width: 100%;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

@media (min-width: 480px) {
  .store-badge {
    flex: 0 1 auto;
    max-width: none;
  }
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-badge strong {
  display: block;
  font-size: 1rem;
}

.store-badge svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Sections */
section {
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.75rem, 6vw, 3rem);
}

h2 {
  font-size: clamp(1.375rem, 4.5vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
}

.lead {
  font-size: 1.0625rem;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.125rem;
  }
}

/* Hero */
.hero {
  padding: 2rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 4rem 0 5rem;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-phone {
  width: min(280px, 80%);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  border: 4px solid var(--card);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Screenshots */
.screenshots {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .screenshots {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.screenshot-item {
  text-align: center;
}

.screenshot-item img {
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 auto 0.75rem;
  width: 100%;
  max-width: 200px;
}

.screenshot-item figcaption {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Premium */
.premium-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .premium-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.premium-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
}

.premium-card li {
  margin-bottom: 0.5rem;
}

.premium-card.highlight {
  border-color: var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
}

/* CTA band */
.cta-band {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-band {
    border-radius: calc(var(--radius) * 1.5);
    padding: 3rem 2rem;
  }
}

.cta-band h2 {
  color: inherit;
}

.cta-band p {
  color: rgba(251, 249, 240, 0.85);
  margin-inline: auto;
  max-width: 32rem;
}

.cta-band .store-badge {
  background: var(--card);
  color: var(--foreground);
}

.cta-band .store-badges {
  justify-content: center;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 2rem;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
}

.footer-links a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--foreground);
}

.tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.text-center {
  text-align: center;
}

.bg-secondary {
  background: var(--secondary);
}

/* Content pages (privacy, support) */
.page-hero {
  padding: 2rem 0 1.5rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 3rem 0 2rem;
  }
}

.page-hero .lead {
  margin-bottom: 0;
}

.page-content {
  padding: 2rem 0 4rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  color: var(--foreground);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--muted-foreground);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  opacity: 0.85;
}

.prose .updated {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.contact-card {
  max-width: 42rem;
  margin-top: 2rem;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  .card {
    padding: 1.25rem;
  }

  .faq-item {
    padding: 1.25rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-phone {
    width: min(240px, 72%);
  }

  footer {
    padding: 2rem 0;
    margin-top: 1rem;
  }
}
