/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --green:       #538D4E;
  --green-dim:   #3E6B3A;
  --yellow:      #C9B458;

  --surface:     #F6F9F6;
  --raised:      #FFFFFF;
  --ink:         #1A201A;
  --ink-muted:   #5D6E5D;
  --border:      #D0DAD0;
  --focus:       rgba(83, 141, 78, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface:   #111613;
    --raised:    #1B2118;
    --ink:       #EFF4EF;
    --ink-muted: #8EA08E;
    --border:    #293229;
  }
}

:root[data-theme="light"] {
  --surface:     #F6F9F6;
  --raised:      #FFFFFF;
  --ink:         #1A201A;
  --ink-muted:   #5D6E5D;
  --border:      #D0DAD0;
}

:root[data-theme="dark"] {
  --surface:   #111613;
  --raised:    #1B2118;
  --ink:       #EFF4EF;
  --ink-muted: #8EA08E;
  --border:    #293229;
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background-color: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background-color: var(--raised);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 14px;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--green); }
.nav-links a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

/* ─── Container ──────────────────────────────────────────────────────── */
.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 68px 32px 60px;
}

.hero-icon {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  display: block;
  margin-bottom: 28px;
  box-shadow: 0 2px 20px rgba(83, 141, 78, 0.2), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: normal;
  letter-spacing: -0.4px;
  line-height: 1.18;
  text-wrap: balance;
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 14px;
}

.hero-tagline {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 380px;
  margin-bottom: 36px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: var(--ink);
  color: var(--raised);
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: background-color 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn-store:hover { background-color: var(--green); transform: translateY(-1px); }
.btn-store:active { transform: translateY(0); }
.btn-store:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.btn-store-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* ─── Features ───────────────────────────────────────────────────────── */
.features {
  border-top: 1px solid var(--border);
  padding: 52px 0 68px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background-color: var(--raised);
  padding: 26px 22px;
}

/* A row of 5 thin bars mimicking tile states */
.tile-row {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
}

.tile-row span {
  display: block;
  height: 5px;
  border-radius: 2px;
  flex: 1;
}

.t-absent  { background-color: var(--border); }
.t-present { background-color: var(--yellow); }
.t-correct { background-color: var(--green); }

.feature-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
  text-wrap: balance;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ─── Page Hero (inner pages) ────────────────────────────────────────── */
.page-hero {
  padding: 56px 32px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
  text-wrap: balance;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Support / Contact ──────────────────────────────────────────────── */
.contact-section {
  padding: 52px 32px 68px;
}

.contact-inner {
  max-width: 460px;
  margin: 0 auto;
}

.contact-inner > p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-card {
  background-color: var(--raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 24px 22px;
}

.contact-card-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.contact-email {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
  transition: color 0.15s;
  word-break: break-all;
}

.contact-email:hover { color: var(--green); }
.contact-email:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.contact-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 10px;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer {
  background-color: var(--raised);
  border-top: 1px solid var(--border);
  padding: 22px 32px;
}

.footer-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--green); }
.footer-links a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

/* ─── Prose (Privacy Policy, long-form) ─────────────────────────────── */
.prose-section {
  padding: 52px 0 72px;
}

.prose {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 40px;
}

.prose-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.prose p,
.prose li {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.72;
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.prose li { margin-bottom: 6px; }

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--yellow);
  padding-bottom: 1px;
}

.prose a:hover,
.prose a:focus-visible { color: var(--green-dim); }
.prose a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav         { padding: 12px 20px; }
  .nav-links   { gap: 16px; }
  .hero        { padding: 48px 20px 44px; }
  .hero-icon   { width: 84px; height: 84px; border-radius: 17px; }
  .container   { padding: 0 20px; }
  .features    { padding: 36px 0 52px; }
  .features-grid { grid-template-columns: 1fr; }
  .page-hero      { padding: 44px 20px 36px; }
  .contact-section { padding: 40px 20px 56px; }
  .prose-section  { padding: 36px 0 52px; }
  .prose          { padding: 0 20px; }
  footer       { padding: 20px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
