:root {
  --bg: #f8f1e6;
  --bg2: #edf4ef;
  --paper: #fffaf2;
  --panel: rgba(255,250,242,.84);
  --panel2: rgba(239,247,241,.78);
  --text: #271a12;
  --muted: #6e5d4c;
  --line: rgba(89,62,33,.16);
  --gold: #b88634;
  --sage: #8faa90;
  --rose: #e8c7bc;
  --blue: #dbe8f2;
  --dark: #241910;
  --ok: #2b6e4a;
  --danger: #8b2727;
  --radius: 24px;
  --shadow: 0 22px 70px rgba(80,55,26,.13);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(232,199,188,.42), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(219,232,242,.72), transparent 30%),
    radial-gradient(circle at 50% 55%, rgba(143,170,144,.22), transparent 36%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg) 52%, #edf4ef 100%);
  line-height: 1.65;
}

a { color: inherit; }

.site-header,
.report-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255,250,242,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.brand strong { font-size: 1.08rem; }
.brand span { color: var(--muted); font-size: .84rem; }

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 750;
}

.lang-pill,
.nav a:last-child {
  border: 1px solid var(--line);
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 24px 44px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

.hero.single { grid-template-columns: 1fr; }

h1,
.section h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.06em;
  margin: 0 0 20px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 780px;
}

.badge,
.eyebrow {
  display: inline-flex;
  color: #765117;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.hero-panel,
.form-card,
.card,
.premium-card,
.report-section,
.report-cover {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}

.section.soft {
  max-width: none;
  background: linear-gradient(135deg, rgba(255,255,255,.38), rgba(239,247,241,.48));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.soft > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  max-width: 850px;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 8px 0 14px;
}

.actions,
.report-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  background: var(--dark);
  color: #fff8ef;
  border-color: var(--dark);
}

.button.large { width: 100%; margin-top: 12px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid rgba(86,61,35,.10);
  position: relative;
}

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

.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }

.form-group { display: grid; gap: 7px; }

label {
  color: #765117;
  font-weight: 850;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
  min-height: 46px;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(181,127,42,.20);
  border-color: rgba(181,127,42,.62);
}

.hint-text,
.input-feedback,
.small {
  color: var(--muted);
  font-size: .88rem;
}

.form-errors,
.status-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(144,37,37,.08);
  border: 1px solid rgba(144,37,37,.25);
  color: var(--danger);
}

.status-box:empty { display: none; }

.status-box.ok {
  background: rgba(43,110,74,.08);
  border-color: rgba(43,110,74,.25);
  color: var(--ok);
}

.hsa-suggestions {
  display: none;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow);
}

.hsa-suggestions button {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid transparent;
  background: #fff8ef;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  margin-bottom: 6px;
  color: var(--text);
}

.hsa-suggestions button:hover,
.hsa-suggestions button:focus {
  border-color: rgba(181,127,42,.46);
  background: #fff0d8;
}

.hsa-suggestions .meta {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.input-success { border-color: rgba(33,103,67,.55) !important; }
.input-error { border-color: rgba(144,37,37,.62) !important; }

.price {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -.05em;
}

.price-note,
.price-line {
  color: var(--muted);
  font-size: 1.08rem;
}

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }

.alfonso {
  max-width: 850px;
  margin: 0 auto;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.report-page { background: #f8f1e6; }

.report-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

.report-cover,
.report-section {
  margin: 18px 0;
}

.report-cover h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.05em;
  margin: 8px 0 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

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

.aspect-card,
.planet-card,
.ritual-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf2;
  padding: 16px;
  margin: 12px 0;
}

.premium-callout {
  background: #241910;
  color: #fff8ef;
}

.premium-callout p {
  color: #eadcc8;
}

.terms-box {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

@media (max-width: 820px) {
  .site-header,
  .report-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 18px 30px;
  }

  .section {
    padding: 42px 18px;
  }

  .form-grid.two,
  .form-grid.three,
  .cards.three {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

@media print {
  .no-print,
  .site-header,
  .report-header,
  .premium-callout,
  .footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .report-shell {
    max-width: none;
    padding: 0;
  }

  .report-section,
  .report-cover {
    box-shadow: none;
    border: none;
    page-break-inside: avoid;
  }
}
