:root {
  color-scheme: light;
  --ink: #17231c;
  --muted: #627168;
  --green: #168046;
  --green-dark: #0f6637;
  --line: #dce5df;
  --paper: #ffffff;
  --wash: #f4f7f5;
  /* One vertical rhythm for every homepage section (top = bottom). */
  --section-y: clamp(36px, 4.2vw, 60px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--wash); color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.site-nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
  justify-content: space-between; min-height: 68px; padding: 0 max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(23,35,28,.09); background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 780; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; }
.site-nav nav { display: flex; align-items: center; gap: 22px; }
.site-nav nav a, .nav-link {
  border: 0; background: transparent; color: #425148;
  font: inherit; font-size: 13px; font-weight: 650; line-height: 1;
  text-decoration: none; cursor: pointer;
}
.site-nav nav a.button { background: var(--green); color: white; }
.site-nav nav a.button:hover { background: var(--green-dark); }
.site-nav form { margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--green);
  border-radius: 10px; background: var(--green); color: white; font-weight: 720;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--green-dark); }
.button-secondary { border-color: #ccd8d0; background: white; color: #2d4034; }
.button-secondary:hover { background: #f0f5f1; }
.button-small { min-height: 36px; padding: 0 14px; border-radius: 8px; color: white !important; }
.hero {
  overflow: hidden; padding: 90px 22px var(--section-y);
  background:
    radial-gradient(800px 440px at 15% 0%, rgba(22,128,70,.16), transparent 60%),
    radial-gradient(620px 360px at 92% 14%, rgba(238,181,70,.16), transparent 58%),
    var(--wash);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 70px; align-items: center; max-width: 1180px; margin: 0 auto;
}
.eyebrow {
  color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 780px; margin: 13px 0 20px; font-size: clamp(42px, 6vw, 72px);
  line-height: .98; letter-spacing: -.055em;
}
.hero-copy { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; color: #506057; font-size: 13px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof i { color: var(--green); }
.no-subscription {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 8px 11px;
  border: 1px solid #b9d9c4; border-radius: 999px; background: #edf8f1;
  color: #116d3c; font-size: 12px; font-weight: 850; letter-spacing: .08em;
}
.preview-card {
  position: relative; padding: 20px; border: 1px solid rgba(23,35,28,.1);
  border-radius: 22px; background: rgba(255,255,255,.9);
  box-shadow: 0 30px 80px rgba(28,62,41,.15);
}
.preview-map {
  min-height: 280px; border-radius: 15px;
  background:
    linear-gradient(125deg, rgba(250,194,81,.7) 1px, transparent 1px) 0 0 / 70px 62px,
    linear-gradient(35deg, rgba(250,194,81,.55) 1px, transparent 1px) 0 0 / 84px 72px,
    radial-gradient(circle at 58% 48%, #3f6a47 0 4px, transparent 5px),
    linear-gradient(145deg, #8fa182, #526c50);
}
.preview-pill {
  position: absolute; left: 36px; right: 36px; bottom: 36px; display: flex;
  justify-content: space-between; gap: 16px; padding: 15px 17px; border-radius: 12px;
  background: rgba(255,255,255,.96); box-shadow: 0 8px 25px rgba(22,44,29,.18);
}
.preview-pill strong { display: block; font-size: 14px; }
.preview-pill span { color: var(--muted); font-size: 12px; }
.section { padding: var(--section-y) 22px; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading > :first-child { margin-top: 0; }
.section-heading h2 { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.section-heading p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
}
.feature-card i { color: var(--green); font-size: 23px; }
.feature-card h3 { margin: 16px 0 8px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 42px; border-radius: 22px; background: #183728; color: white;
}
.cta-panel h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.035em; }
.cta-panel p { margin: 0; color: #bfd0c5; }
.auth-wrap { display: grid; min-height: calc(100vh - 150px); place-items: center; padding: 50px 20px; }
.auth-card {
  width: min(440px, 100%); padding: 30px; border: 1px solid var(--line);
  border-radius: 18px; background: white; box-shadow: 0 18px 50px rgba(31,63,43,.1);
}
.auth-card h1 { margin: 7px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 6px; color: #46574d; font-size: 13px; font-weight: 650; }
.form-stack input {
  width: 100%; border: 1px solid #cbd7cf; border-radius: 10px; padding: 11px 12px;
  color: var(--ink); font: inherit; outline: 0;
}
.form-stack input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,128,70,.1); }
.form-stack .button { width: 100%; margin-top: 4px; }
.form-error { padding: 10px 12px; border-radius: 9px; background: #fff0ee; color: #a62e24; font-size: 13px; }
.form-success { padding: 10px 12px; border-radius: 9px; background: #edf8f1; color: #116d3c; font-size: 13px; }
.verify-banner {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  margin-bottom: 22px; padding: 16px 18px; border: 1px solid #b9d9c4;
  border-radius: 14px; background: #edf8f1;
}
.verify-banner p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.admin-heading { margin: 8px 0 12px; font-size: 18px; }
.admin-empty { color: var(--muted); }
.admin-table {
  width: 100%; border-collapse: collapse; margin-bottom: 28px;
  background: white; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.admin-table th, .admin-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.admin-table th {
  background: var(--wash); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
}
.auth-switch { margin-top: 18px !important; text-align: center; font-size: 13px; }
.auth-switch a { color: var(--green); font-weight: 700; }
.profile { min-height: calc(100vh - 150px); padding: 58px 22px; }
.profile-inner { max-width: 1000px; margin: 0 auto; }
.profile-head { display: flex; justify-content: space-between; gap: 22px; align-items: end; margin-bottom: 28px; }
.profile-head h1 { margin: 7px 0 0; font-size: 40px; letter-spacing: -.045em; }
.purchase-list { display: grid; gap: 12px; }
.purchase-card {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white;
}
.purchase-card h2 { margin: 0 0 6px; font-size: 16px; }
.purchase-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12px; }
.status {
  display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #edf8f1;
  color: var(--green-dark); font-size: 11px; font-weight: 750; text-transform: capitalize;
}
.status.pending { background: #fff6df; color: #8a5c00; }
.status.refunded, .status.disputed { background: #fdecea; color: #8a1f11; }
.empty-state {
  padding: 50px 24px; border: 1px dashed #bccbc1; border-radius: 16px;
  background: rgba(255,255,255,.55); text-align: center;
}
.success-card { text-align: center; }
.success-icon {
  display: grid; width: 58px; height: 58px; margin: 0 auto 15px; place-items: center;
  border-radius: 50%; background: #e8f7ed; color: var(--green); font-size: 28px;
}
.legal { min-height: calc(100vh - 150px); padding: 58px 22px; }
.legal article {
  max-width: 820px; margin: 0 auto; padding: 34px; border: 1px solid var(--line);
  border-radius: 18px; background: white;
}
.legal h1 { margin: 8px 0 4px; font-size: 42px; letter-spacing: -.045em; }
.legal-draft-banner {
  margin: 12px 0 18px; padding: 12px 14px; border: 1px solid #e6c36a;
  border-radius: 10px; background: #fff6df; color: #6b4e00; font-weight: 750;
}
.legal-review { color: #8a5c00; font-size: 12px; font-weight: 700; }
.legal .updated { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.legal h2 { margin: 30px 0 8px; font-size: 20px; }
.legal p, .legal li { color: #4f6056; line-height: 1.7; }
.legal a { color: var(--green-dark); }
.hero-micro { margin: 14px 0 0; color: #506057; font-size: 13px; font-weight: 600; }
.preview-label {
  position: absolute; top: 30px; left: 30px; z-index: 2; padding: 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: #425148; font-size: 11px; font-weight: 750;
  letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(22,44,29,.15);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.steps h3 { margin: 14px 0 8px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.section-cta { margin-top: 26px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 16px; align-items: start; }
.file-columns { margin: 0; padding-left: 18px; columns: 2; column-gap: 22px; color: #4f6056; font-size: 14px; line-height: 1.7; }
.pricing-panel { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 40px; align-items: center; padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.pricing-panel h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.04em; }
.pricing-panel p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 6px; }
.pricing-panel .hero-micro { margin-bottom: 20px; font-size: 13px; }
.tier-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tier-table th, .tier-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.tier-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; font-weight: 750; }
.file-sample { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.file-sample a { color: var(--green-dark); font-weight: 700; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 720; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
@media (max-width: 800px) {
  .site-nav nav > a:not(.button):not(.nav-signin), .site-nav nav > form { display: none; }
  .site-nav nav { gap: 14px; }
  .trust-grid, .steps, .pricing-panel { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero { padding-top: 58px; }
  .hero-inner { grid-template-columns: 1fr; gap: 45px; }
  .card-grid { grid-template-columns: 1fr; }
  .cta-panel, .profile-head { align-items: flex-start; flex-direction: column; }
  .purchase-card { grid-template-columns: 1fr; }
}
.admin-test-tag { display: inline-block; padding: 1px 6px; border-radius: 5px; background: #f59e0b; color: #111; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
