:root {
  --bg: #f5f1e8;
  --bg-deep: #ece5d3;
  --ink: #1a1620;
  --ink-soft: #2c2434;
  --muted: #6b6258;
  --accent: #8b1a1a;
  --gold: #b8893a;
  --gold-soft: #d6b566;
  --rule: #d6cdb8;
  --night: #1a1228;
  --night-2: #2a1f3a;
  --max: 1080px;
  --max-narrow: 720px;
  --font: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1100px 600px at 50% -100px, rgba(184, 137, 58, 0.10), transparent 60%),
    radial-gradient(800px 500px at 90% 200px, rgba(139, 26, 26, 0.06), transparent 70%),
    var(--bg);
  position: relative;
  overflow-x: hidden;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 23% 14%, rgba(26,22,32,0.35), transparent 50%),
    radial-gradient(1px 1px at 71% 8%, rgba(26,22,32,0.28), transparent 50%),
    radial-gradient(1px 1px at 12% 41%, rgba(26,22,32,0.22), transparent 50%),
    radial-gradient(1px 1px at 88% 35%, rgba(26,22,32,0.30), transparent 50%),
    radial-gradient(1px 1px at 44% 62%, rgba(26,22,32,0.18), transparent 50%),
    radial-gradient(1px 1px at 67% 78%, rgba(26,22,32,0.22), transparent 50%),
    radial-gradient(1px 1px at 18% 88%, rgba(26,22,32,0.22), transparent 50%),
    radial-gradient(1px 1px at 92% 91%, rgba(26,22,32,0.18), transparent 50%);
}

main, header, footer { position: relative; z-index: 1; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Topbar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
}

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

.brand-mark {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  margin-right: auto;
  padding: 6px 12px 6px 10px;
  background: rgba(184, 137, 58, 0.12);
  border: 1px solid rgba(184, 137, 58, 0.45);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.topbar-pill:hover {
  background: rgba(184, 137, 58, 0.2);
  border-color: var(--gold);
  text-decoration: none;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(184, 137, 58, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(184, 137, 58, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(184, 137, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 137, 58, 0); }
}

.topnav {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 15px;
}

.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.topnav a:hover { border-bottom-color: var(--gold); }

/* Hero */

.hero {
  padding: 40px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.eyebrow.center { text-align: center; margin-bottom: 12px; }

.hero h1 {
  font-family: var(--font);
  font-size: 84px;
  line-height: 0.95;
  margin: 0 0 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero .subtitle {
  font-family: var(--font);
  font-style: italic;
  font-size: 24px;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero .lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 13px 26px;
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 3px;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, transform 0.1s ease;
}

.cta:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.cta-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.cta-ghost:hover { background: var(--ink); color: var(--bg); }

.cta-small { padding: 10px 20px; font-size: 15px; }
.cta-large { padding: 18px 36px; font-size: 19px; }

.trial-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.card-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(26, 18, 40, 0.25)) drop-shadow(0 8px 12px rgba(26, 18, 40, 0.15));
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.card-svg:hover { transform: rotate(0deg) translateY(-4px); }

/* Sections */

.block {
  padding: 72px 28px;
}

.section-title {
  font-family: var(--font);
  text-align: center;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  line-height: 1.1;
}

.section-title.small { font-size: 26px; margin-bottom: 24px; }

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.steps li {
  background: rgba(255, 252, 245, 0.6);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px 28px;
  position: relative;
}

.step-num {
  display: inline-block;
  font-family: var(--font);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.steps h3 {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.steps p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px 24px;
  border-top: 1px solid var(--rule);
  position: relative;
}

.feature-highlight {
  background: linear-gradient(180deg, rgba(184, 137, 58, 0.08), rgba(184, 137, 58, 0.02));
  border-top: 1px solid var(--gold);
  border-radius: 4px;
}

.feature-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--gold);
  color: var(--night);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.feature-icon {
  display: block;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1;
}

.feature h3 {
  font-family: var(--font);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

/* Plans */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan {
  background: rgba(255, 252, 245, 0.7);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-accent {
  background: var(--night);
  color: var(--bg);
  border-color: var(--gold);
}

.plan-accent .plan-price,
.plan-accent .plan-name { color: var(--bg); }
.plan-accent ul { color: rgba(245, 241, 232, 0.85); }
.plan-accent .cta { background: var(--gold); border-color: var(--gold); color: var(--night); }
.plan-accent .cta:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gold);
  color: var(--night);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-name {
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.plan-price {
  font-family: var(--font);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1;
}

.plan-price span {
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}

.plan li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
}

.plan-accent li { border-bottom-color: rgba(184, 137, 58, 0.3); }

.plan li:last-child { border-bottom: none; }

.plan .cta { width: 100%; text-align: center; }

.prices-note {
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin: 32px 0 0;
}

/* FAQ */

.faq {
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 30px;
  letter-spacing: -0.005em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--gold);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { content: "−"; }

.faq p {
  margin: 12px 0 4px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* CTA band */

.cta-band {
  background: var(--night);
  color: var(--bg);
  padding: 80px 28px;
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(184, 137, 58, 0.18), transparent 60%),
    radial-gradient(500px 400px at 85% 80%, rgba(139, 26, 26, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-band > .container { position: relative; }

.cta-band h2 {
  font-family: var(--font);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.cta-band p {
  font-size: 17px;
  color: rgba(245, 241, 232, 0.85);
  margin: 0 0 32px;
}

.cta-band .cta {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}

.cta-band .cta:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* Docs list on index */

.docs-list {
  list-style: none;
  padding: 0;
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.docs-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.docs-list a {
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
}

.docs-list a:hover { color: var(--accent); }

/* Site footer */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-top: 0;
}

.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--ink-soft); }
.site-footer .age { margin-top: 14px; font-style: italic; }

/* Generic links */

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

/* ===== Document pages (legal) — keep narrow & readable ===== */

.container.doc {
  max-width: var(--max-narrow);
  padding: 48px 24px 96px;
}

.doc h1 {
  font-family: var(--font);
  font-size: 34px;
  font-weight: 600;
  margin: 8px 0 32px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.doc h2 {
  font-family: var(--font);
  font-size: 23px;
  font-weight: 600;
  margin: 32px 0 8px;
}

.doc p, .doc li {
  font-size: 16px;
  line-height: 1.65;
}

.doc .back { margin: 0 0 24px; font-size: 15px; }

.doc code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 2px;
}

.doc table.meta {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0 32px;
  font-size: 16px;
}

.doc table.meta td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.doc table.meta td:first-child {
  color: var(--muted);
  width: 35%;
  white-space: nowrap;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .card-svg { max-width: 200px; }
  .hero h1 { font-size: 64px; }

  .steps, .features, .plans { grid-template-columns: 1fr; }
  .section-title { font-size: 34px; margin-bottom: 32px; }
  .cta-band h2 { font-size: 34px; }
  .block { padding: 56px 24px; }
}

@media (max-width: 600px) {
  html, body { font-size: 17px; }
  .topnav { display: none; }
  .topbar { padding: 18px 18px; gap: 8px; flex-wrap: wrap; }
  .topbar-pill { margin-left: 0; font-size: 12px; padding: 5px 10px 5px 8px; }
  .pill-text { white-space: nowrap; }
  .hero { padding: 20px 0 48px; }
  .hero h1 { font-size: 52px; }
  .hero .subtitle { font-size: 20px; }
  .hero .lead { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta { text-align: center; }
  .section-title { font-size: 28px; }
  .cta-band h2 { font-size: 28px; }
  .cta-band { padding: 56px 22px; }
  .container.doc { padding: 24px 18px 64px; }
}
