:root {
  --ink: #171512;
  --ink-soft: #4b4237;
  --muted: #766b5f;
  --paper: #fffaf0;
  --paper-deep: #f3ead9;
  --line: rgba(76, 61, 44, 0.14);
  --seal: #b91f25;
  --seal-dark: #8f1519;
  --jade: #2f6b52;
  --gold: #b77922;
  --shadow: 0 20px 50px rgba(48, 38, 26, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255, 250, 240, 0.92), rgba(255, 250, 240, 0.96)),
    url("assets/paper-texture.png") center / 560px repeat,
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 10% 12%, rgba(185, 31, 37, 0.1), transparent 15rem),
    radial-gradient(circle at 88% 40%, rgba(47, 107, 82, 0.1), transparent 18rem);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell,
.section-shell,
.footer-shell,
.feature-grid,
.hero-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-size: 1.12rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 0.75rem 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--seal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-cta {
  padding: 0 1.35rem;
  color: #fff;
  background: var(--seal);
  box-shadow: 0 10px 24px rgba(185, 31, 37, 0.2);
}

.button {
  padding: 0 1.45rem;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--seal), var(--seal-dark));
  box-shadow: 0 16px 34px rgba(185, 31, 37, 0.24);
}

.secondary,
.outline {
  color: var(--seal-dark);
  background: rgba(255, 250, 240, 0.72);
  border-color: rgba(185, 31, 37, 0.45);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(48, 38, 26, 0.16);
}

.button:focus-visible,
.nav-cta:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(185, 31, 37, 0.35);
  outline-offset: 3px;
}

.hero-section {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 84px 0 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.86) 44%, rgba(255, 250, 240, 0.16) 100%),
    linear-gradient(0deg, rgba(255, 250, 240, 0.98), rgba(255, 250, 240, 0.25) 42%, rgba(255, 250, 240, 0.9) 100%),
    url("assets/hero.png") right top / cover no-repeat;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.8rem;
  color: var(--seal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  line-height: 1.08;
}

h1 {
  max-width: 690px;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.hero-lede {
  max-width: 610px;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.privacy-note,
.compliance-mini {
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.chart-preview,
.report-card,
.birth-form,
.price-card {
  background: rgba(255, 252, 246, 0.84);
  border: 1px solid rgba(76, 61, 44, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.chart-preview {
  padding: 1.45rem;
}

.preview-head,
.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.preview-head h2 {
  font-size: 1.3rem;
}

.status-pill,
.report-head span {
  flex: none;
  padding: 0.45rem 0.65rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(255, 250, 240, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.pillars {
  display: grid;
  grid-template-columns: 0.8fr repeat(4, 1fr);
  gap: 0;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pillars > * {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 0.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-align: center;
}

.pillars > :nth-child(5n) {
  border-right: 0;
}

.pillars > :nth-last-child(-n + 5) {
  border-bottom: 0;
}

.pillars strong {
  color: var(--jade);
  font-family: "Lora", Georgia, serif;
  font-size: 1.42rem;
}

.pillar-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.element-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.element-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.wood {
  background: #2f6b52;
}

.fire {
  background: #b91f25;
}

.earth {
  background: #b77922;
}

.water {
  background: #24537a;
}

.metal {
  background: #8b8176;
}

.insight-card {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.1rem;
  padding: 1rem;
  background: rgba(47, 107, 82, 0.08);
  border-radius: var(--radius);
}

.insight-card svg,
.feature-grid svg {
  flex: none;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--jade);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.feature-band {
  padding: 0 0 64px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-grid article {
  min-height: 150px;
  padding: 1.35rem;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(48, 38, 26, 0.08);
}

.feature-grid h2 {
  margin-top: 0.85rem;
  font-size: 1.12rem;
}

.feature-grid p,
.section-heading p,
.report-copy p,
.ethics-copy p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.form-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.92), rgba(255, 250, 240, 0.78)),
    url("assets/hero.png") left bottom / 780px auto no-repeat;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.section-heading h2,
.report-copy h2,
.ethics-grid h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-heading p {
  max-width: 620px;
  margin: 1rem 0 0;
}

.birth-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.4rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.field input {
  min-height: 52px;
  width: 100%;
  padding: 0 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(76, 61, 44, 0.16);
  border-radius: var(--radius);
}

.field small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.field.error input {
  border-color: var(--seal);
  box-shadow: 0 0 0 3px rgba(185, 31, 37, 0.1);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.consent-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  accent-color: var(--seal);
}

.consent-row.error span {
  color: var(--seal-dark);
}

.form-button,
.form-status,
.compliance-mini {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--seal-dark);
  font-weight: 700;
}

.payment-status {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: var(--seal-dark);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.result-section,
.pricing-section,
.ethics-section {
  padding: 78px 0;
}

.report-layout,
.ethics-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.check-list,
.price-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.price-card li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.check-list li::before,
.price-card li::before {
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.7rem;
  height: 0.38rem;
  content: "";
  border-bottom: 2px solid var(--jade);
  border-left: 2px solid var(--jade);
  transform: rotate(-45deg);
}

.report-card {
  padding: 1.45rem;
}

.report-card h3 {
  margin-top: 1.2rem;
  font-size: 1.8rem;
}

.balance-bars {
  display: grid;
  gap: 0.72rem;
  margin: 1.3rem 0;
}

.balance-bars div {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.balance-bars i {
  position: relative;
  height: 10px;
  overflow: hidden;
  background: rgba(76, 61, 44, 0.1);
  border-radius: 999px;
}

.balance-bars i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  content: "";
  background: linear-gradient(90deg, var(--jade), var(--gold));
  border-radius: inherit;
}

#freeInsight {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

#freeInsight strong {
  color: var(--ink);
}

.mini-report-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.mini-report-section {
  padding: 0.95rem;
  background: rgba(255, 250, 240, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-report-section h4 {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  line-height: 1.25;
}

.mini-report-section p {
  margin: 0;
}

.mini-next-steps {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(47, 107, 82, 0.08);
  border-radius: var(--radius);
}

.mini-next-steps span {
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-next-steps ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
}

.locked-report {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.1rem;
  padding: 1rem;
  background: rgba(185, 31, 37, 0.07);
  border: 1px solid rgba(185, 31, 37, 0.18);
  border-radius: var(--radius);
}

.locked-report span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-section {
  background:
    linear-gradient(rgba(255, 250, 240, 0.88), rgba(255, 250, 240, 0.94)),
    url("assets/hero.png") right bottom / 620px auto no-repeat;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compact {
  text-align: center;
}

.compact p {
  margin-right: auto;
  margin-left: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 1.6rem;
}

.price-card h3 {
  font-size: 1.55rem;
}

.price {
  margin: 1.2rem 0 0;
  font-family: "Lora", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.featured {
  border-color: rgba(47, 107, 82, 0.55);
  box-shadow: 0 26px 60px rgba(47, 107, 82, 0.16);
}

.featured-ribbon {
  position: absolute;
  top: 0;
  right: 1rem;
  left: 1rem;
  display: grid;
  min-height: 28px;
  place-items: center;
  color: #fff;
  background: var(--jade);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured h3 {
  margin-top: 1.25rem;
}

.ethics-grid {
  align-items: start;
}

.ethics-copy {
  display: grid;
  gap: 1rem;
}

.ethics-copy p {
  margin: 0;
}

.compliance-box {
  padding: 1.1rem;
  color: var(--seal-dark) !important;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(185, 31, 37, 0.2);
  border-radius: var(--radius);
  font-weight: 800;
}

.site-footer {
  padding: 42px 0 34px;
  background: rgba(255, 250, 240, 0.82);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-legal {
  width: min(1180px, calc(100% - 40px));
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-shell,
  .form-shell,
  .report-layout,
  .ethics-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-bg {
    background:
      linear-gradient(rgba(255, 250, 240, 0.76), rgba(255, 250, 240, 0.98)),
      url("assets/hero.png") center top / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-shell,
  .footer-shell,
  .feature-grid,
  .hero-shell,
  .footer-legal {
    width: min(100% - 28px, 1180px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand small,
  .nav-cta {
    display: none;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-actions,
  .footer-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .chart-preview,
  .report-card,
  .birth-form,
  .price-card {
    padding: 1rem;
  }

  .pillars > * {
    min-height: 42px;
    font-size: 0.72rem;
  }

  .pillars strong {
    font-size: 1.05rem;
  }

  .feature-grid,
  .pricing-grid,
  .birth-form {
    grid-template-columns: 1fr;
  }

  .form-section,
  .result-section,
  .pricing-section,
  .ethics-section {
    padding: 56px 0;
  }

  .price-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
