:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f2eee6;
  --ink: #182230;
  --ink-muted: #526071;
  --accent: #b45309;
  --accent-dark: #92400e;
  --accent-soft: #fef3c7;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b91c1c;
  --warn-soft: #fee2e2;
  --border: #e2dbd0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 34, 48, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-top: 0;
}
a { color: var(--accent-dark); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-logo {
  height: 24px; width: auto; display: block; flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-weight: 700; font-size: 18px;
}
.brand-name { font-family: Georgia, serif; font-weight: 700; font-size: 20px; }
.brand-pill {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 3px 8px; border-radius: 99px;
}
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s ease;
  font-family: inherit;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; padding: 12px 18px; font-size: 15px; }
.btn-primary { background: var(--ink); color: #fff !important; }
.btn-primary:hover { background: #26354a; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: start; }
.eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-dark); margin-bottom: 12px;
}
.hero h1 { font-size: clamp(32px, 4.3vw, 48px); margin-bottom: 18px; }
.accent { color: var(--accent); }
.lead { font-size: 17px; color: var(--ink-muted); margin-bottom: 24px; max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.trust-strip {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px; color: var(--ink-muted);
  border-left: 3px solid var(--accent); padding-left: 14px;
}
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card-tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; background: var(--accent-soft); color: var(--accent-dark);
  padding: 4px 10px; border-radius: 99px; margin-bottom: 12px;
}
.hero-card h2 { font-size: 22px; margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 11px; }
.check-list li {
  position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-muted);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800;
}
.check-list strong { color: var(--ink); }
.hero-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.price-big { font-family: Georgia, serif; font-size: 28px; font-weight: 700; }
.price-big span { font-size: 15px; font-weight: 400; color: var(--ink-muted); }
.price-sub { font-size: 12px; color: var(--ink-muted); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.section-head p { color: var(--ink-muted); margin: 0; font-size: 16px; }

/* Interactive Demo */
.demo-shell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.demo-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: #f8f5ef; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-tab {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted);
  padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.demo-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 22px; }
.status-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: var(--ok-soft); color: var(--ok); margin-bottom: 14px;
}
.status-banner.flagged { background: var(--warn-soft); color: var(--warn); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi {
  background: #faf8f4; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
.kpi-val { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.timeline-box, .events-box {
  background: #faf8f4; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.timeline-head {
  display: flex; justify-content: space-between; gap: 8px; font-size: 12px;
  font-weight: 600; color: var(--ink-muted); margin-bottom: 10px; flex-wrap: wrap;
}
.bars {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px;
  align-items: end; height: 84px; padding-top: 8px;
}
.bar {
  background: #2f6f4e; border-radius: 4px 4px 0 0; min-height: 4px;
  transition: height 0.35s ease, background 0.2s ease;
}
.bar.spike { background: #dc2626; }
.timeline-axis {
  display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-muted); margin-top: 6px;
}
.events-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); margin-bottom: 8px; }
.events-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink); display: grid; gap: 6px; }

.demo-paper {
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  display: flex; flex-direction: column; overflow: hidden;
}
.paper-head {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: start; gap: 10px; background: #fcfbf9;
}
.paper-meta { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.paper-badge {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px;
  background: var(--ok-soft); color: var(--ok); white-space: nowrap;
}
.paper-badge.flagged { background: var(--warn-soft); color: var(--warn); }
.paper-body {
  padding: 16px; font-family: Georgia, serif; font-size: 14.5px; line-height: 1.7;
  color: #24303f; flex: 1; white-space: pre-wrap; min-height: 220px;
}
.paste-highlight { background: #fee2e2; border-bottom: 2px solid #dc2626; padding: 1px 2px; }
.paper-foot {
  padding: 12px 16px; border-top: 1px solid var(--border);
  background: #f8f5ef; font-size: 13px; color: var(--ink-muted);
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.f-num {
  font-family: Georgia, serif; font-size: 13px; font-weight: 700; color: var(--accent);
  margin-bottom: 8px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--ink); box-shadow: var(--shadow);
}
.tier-badge {
  position: absolute; top: -13px; left: 22px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 99px;
}
.tier-label { font-size: 12px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.price-card h3 { font-size: 24px; margin-bottom: 8px; }
.tier-price { font-family: Georgia, serif; font-size: 34px; font-weight: 700; }
.tier-price span { font-size: 15px; font-weight: 400; color: var(--ink-muted); }
.tier-alt { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 14px; }
.tier-desc { font-size: 14px; color: var(--ink-muted); margin: 0 0 18px; }
.price-card .check-list { flex: 1; }

/* Reserve */
.reserve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.guarantee-box {
  background: var(--ok-soft); border: 1px solid #bbf7d0; color: #14532d;
  padding: 14px 16px; border-radius: 10px; font-size: 14px; margin: 18px 0;
}
.founder-note { font-size: 14px; color: var(--ink-muted); }
.reserve-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  display: grid; gap: 14px;
}
.reserve-form h3 { font-size: 22px; margin-bottom: 4px; }
.reserve-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.reserve-form input, .reserve-form select, .reserve-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-feedback { font-size: 14px; font-weight: 600; min-height: 20px; }
.form-feedback.ok { color: var(--ok); }
.form-feedback.err { color: var(--warn); }
.form-fine { font-size: 12px; color: var(--ink-muted); margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); }
.modal-card {
  position: relative; z-index: 61; background: #fff; border-radius: var(--radius);
  max-width: 680px; width: 100%; max-height: 86vh; overflow: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22); padding: 22px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cert-sheet {
  border: 1px solid var(--border); border-radius: 10px; padding: 18px;
  background: #fcfbf9; font-size: 13.5px; line-height: 1.6;
}
.cert-sheet h4 { font-family: Georgia, serif; margin: 0 0 6px; font-size: 18px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.cert-cell { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }

/* Legal pages */
.legal-wrap { max-width: 780px; margin: 44px auto 70px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.legal-wrap h1 { font-size: 32px; margin-bottom: 8px; }
.legal-wrap h2 { font-size: 20px; margin-top: 26px; margin-bottom: 8px; }
.legal-wrap p, .legal-wrap li { color: var(--ink-muted); font-size: 15px; }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--ink-muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid, .demo-grid, .features-grid, .pricing-grid, .reserve-grid, .faq-grid, .form-row {
    grid-template-columns: 1fr;
  }
}
