:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-muted: #f4f0e8;
  --forest: #1b4332;
  --emerald: #2d6a4f;
  --emerald-hover: #214e3a;
  --emerald-soft: #ebf5ef;
  --emerald-border: #a8d5bc;
  --mint: #95d5b2;
  --ink: #18221d;
  --ink-secondary: #46534d;
  --ink-muted: #58645e;
  --border: #e3ddd1;
  --border-strong: #cbc2b2;
  --amber-bg: #fef6e7;
  --amber-ink: #8a4f0d;
  --amber-border: #edd09a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(24, 34, 29, 0.06);
  --shadow-md: 0 12px 32px rgba(24, 34, 29, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2.5px solid var(--emerald);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow-container {
  max-width: 860px;
}

/* Top Trust Bar */
.trust-bar {
  background: var(--forest);
  color: #f3f9f5;
  font-size: 13px;
  font-weight: 500;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--mint);
  flex-shrink: 0;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--emerald-soft);
  color: var(--forest);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-cta .btn {
  white-space: nowrap;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 15.5px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--emerald);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--emerald-hover);
}

.btn-forest {
  background: var(--forest);
  color: #ffffff;
}

.btn-forest:hover {
  background: #143326;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-emerald {
  background: var(--emerald-soft);
  color: var(--forest);
  border: 1px solid var(--emerald-border);
}

.badge-forest {
  background: var(--forest);
  color: #ffffff;
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border: 1px solid var(--amber-border);
}

.badge-neutral {
  background: var(--surface-muted);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

/* Typography & Sections */
.section {
  padding: 48px 0;
}

.section-tight {
  padding: 32px 0;
}

.section-tinted {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--emerald);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}

.lead {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--ink-secondary);
  max-width: 68ch;
}

.muted {
  color: var(--ink-muted);
  font-size: 14px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-muted);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: 52px 0 42px;
  background: radial-gradient(circle at 85% 15%, #ebf5ef 0%, #faf8f4 55%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  font-weight: 600;
}

.hero-proof-list li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 800;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.architecture-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.arch-row strong {
  color: var(--forest);
}

.arch-row span {
  color: var(--ink-secondary);
  text-align: right;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.card-emerald {
  border-color: var(--emerald-border);
  background: linear-gradient(160deg, #f4faf6 0%, #ffffff 65%);
}

.card-forest {
  border-color: var(--forest);
  box-shadow: var(--shadow-md);
}

.notice-box {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-ink);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
}

.notice-emerald {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--forest);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 800;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cmp-table th,
.cmp-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.cmp-table th {
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cmp-table tr:last-child td {
  border-bottom: 0;
}

.cmp-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cmp-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Pricing */
.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}

.billing-btn {
  border: 0;
  background: transparent;
  padding: 7px 15px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
}

.billing-btn.is-active {
  background: var(--forest);
  color: #ffffff;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 4px;
}

.price-figure {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price-unit {
  font-size: 14px;
  color: var(--ink-muted);
}

.price-alt {
  font-size: 13px;
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Interactive Tools */
.tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.42fr);
  gap: 24px;
  align-items: start;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.field input,
.field select {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.kpi-box-emerald {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}

.kpi-box-amber {
  background: var(--amber-bg);
  border-color: var(--amber-border);
}

.kpi-box span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.kpi-box strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Legal Prose */
.legal-card {
  padding: 32px;
}

.legal-card h2 {
  margin-top: 26px;
  font-size: 20px;
}

.legal-card h2:first-of-type {
  margin-top: 12px;
}

.legal-card p,
.legal-card li {
  color: var(--ink-secondary);
}

/* Modal for Paddle Checkout Preview */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 34, 29, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-panel {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

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

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--emerald);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .tool-layout,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .grid-2,
  .kpi-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-cta {
    width: 100%;
  }
  .header-cta .btn {
    flex: 1 1 auto;
  }
  .legal-card {
    padding: 20px;
  }
}
