:root {
  --green: #1b4332;
  --green-light: #40916c;
  --green-muted: #d8f3dc;
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #f8faf9;
  --card: #ffffff;
  --border: #e5e7eb;
  --header-h: 4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--green);
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-mark {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: var(--green-muted);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.55rem 1.125rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-ghost {
  color: var(--green);
  background: transparent;
}

.btn-ghost:hover { background: var(--green-muted); }

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover { background: #163728; }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}

.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.25rem;
  background: #fff;
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.625rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border-radius: 8px;
}

.mobile-nav a.active,
.mobile-nav a:hover { background: var(--green-muted); color: var(--green); }

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-actions .btn { width: 100%; }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .mobile-nav { display: none !important; }
}

/* ——— Hero ——— */
.hero {
  background: linear-gradient(165deg, var(--green) 0%, #2d6a4f 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--green);
}

.hero-actions .btn-primary:hover { background: var(--green-muted); }

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem;
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stat span {
  font-size: 0.8125rem;
  opacity: 0.85;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ——— Sections ——— */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
}

.section-header p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

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

.feature-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--green-muted);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.cta-band {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.cta-band p {
  margin: 0.75rem auto 1.5rem;
  color: var(--muted);
  max-width: 32rem;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ——— Pricing ——— */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

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

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 72rem;
  }
}

.pricing-card.muted-plan {
  opacity: 0.92;
  border-style: dashed;
}

.pricing-card.muted-plan .badge {
  background: #f3f4f6;
  color: var(--muted);
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.pricing-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.pricing-card .price {
  margin: 1rem 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card .pricing-summary {
  margin: 0.25rem 0 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pricing-card .pricing-summary li {
  font-weight: 600;
  color: var(--text);
}

.pricing-card ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
  flex: 1;
}

.pricing-card li {
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--green-muted);
  color: var(--green);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* ——— Legal / content pages ——— */
.page-hero-sm {
  background: var(--green);
  color: #fff;
  padding: 2.5rem 0;
}

.page-hero-sm h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero-sm p {
  margin-top: 0.5rem;
  opacity: 0.85;
  max-width: 36rem;
}

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

.content-page .prose {
  max-width: 42rem;
  margin: 0 auto;
}

.content-page h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
  color: var(--green);
}

.content-page p,
.content-page li {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.content-page ul {
  padding-left: 1.25rem;
}

.content-page .meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.content-page a { color: var(--green); }

.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.content-page th,
.content-page td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.content-page th { background: #f3f4f6; }

.faq-list {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

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

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

.footer-brand-block p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 18rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text);
}

.footer-col a:hover { color: var(--green); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* ——— Download / QR ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.download-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .download-layout {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

.download-copy h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.download-copy p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  max-width: 28rem;
}

.download-copy strong {
  color: var(--text);
}

.download-note {
  font-size: 0.9375rem;
  margin-top: 1.25rem !important;
}

.download-web {
  margin-top: 1.5rem !important;
  font-size: 0.9375rem;
}

.download-web a {
  color: var(--green);
  font-weight: 600;
}

.store-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-store {
  min-width: 9.5rem;
}

.qr-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.06);
}

.qr-card canvas,
.qr-card .qr-image {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.qr-caption {
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green);
}

.qr-url {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
  word-break: break-all;
}

.download-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-section .download-layout {
  max-width: 72rem;
}

.get-redirect {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.get-redirect-main {
  text-align: center;
  padding: 2rem;
}

.get-redirect-main p {
  margin-top: 1rem;
  color: var(--muted);
}

.get-redirect-main a {
  color: var(--green);
  font-weight: 600;
}

body.is-redirecting .download-layout {
  opacity: 0.6;
}
