/* Jyoti — Vedic Birth Chart (warm light / parchment theme) */

:root {
  /* Surfaces */
  --bg: #f7f1e6;
  --bg-soft: #f3ebe0;
  --surface: #fffdf9;
  --surface-elevated: #ffffff;
  --border: rgba(90, 70, 40, 0.14);
  --border-strong: rgba(90, 70, 40, 0.22);

  /* Text */
  --text: #1a1630;
  --text-secondary: #3d3854;
  --text-muted: #6b6580;
  --text-faint: #8a839c;

  /* Accents — darker gold for light bg */
  --gold: #b8922a;
  --gold-deep: #9a7a22;
  --gold-soft: #c9a227;
  --gold-glow: rgba(184, 146, 42, 0.18);
  --rose-soft: #c4787a;
  --lavender-soft: #8b7bb5;

  /* Semantic */
  --success: #3d8a5a;
  --success-bg: rgba(61, 138, 90, 0.12);
  --danger: #c04545;

  /* Compat aliases used in components */
  --indigo-950: #1a1630;
  --indigo-900: #2a2540;
  --indigo-800: #f0e8da;
  --indigo-700: #e8dfd0;
  --indigo-600: #ddd2c0;
  --gold-400: #b8922a;
  --gold-300: #c9a227;
  --gold-200: #9a7a22;
  --cream: #1a1630;
  --cream-dim: #3d3854;
  --cream-muted: #6b6580;
  --rose: #c4787a;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 36px rgba(60, 40, 20, 0.1), 0 2px 8px rgba(60, 40, 20, 0.05);
  --shadow-soft: 0 4px 18px rgba(60, 40, 20, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at -5% 100%, rgba(196, 120, 122, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 80%, rgba(139, 123, 181, 0.08), transparent 45%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.bg-orb--1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.bg-orb--2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(196, 120, 122, 0.28) 0%, transparent 70%);
  bottom: -100px;
  left: -60px;
  opacity: 0.45;
}

/* Topbar */
.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-mark {
  color: var(--gold);
  font-size: 1.1rem;
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
  box-shadow: var(--shadow-soft);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--gold);
  color: #fffdf9;
}

/* Screens */
#app {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.screen {
  display: none;
  animation: fadeUp 0.45s ease both;
}

.screen.screen--active {
  display: block;
}

.screen[hidden] {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Landing */
.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.gold-text {
  color: var(--gold);
  font-style: italic;
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.price-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.65rem 1.1rem;
  background: rgba(184, 146, 42, 0.08);
  border: 1px solid rgba(184, 146, 42, 0.28);
  border-radius: var(--radius-sm);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.price-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.features--outcomes {
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.features--outcomes .feature-card {
  padding: 1.25rem 1.05rem;
}

.features--outcomes .feature-card h3 {
  font-size: 1.1rem;
  line-height: 1.25;
}

.features--outcomes .feature-card p {
  font-size: 0.84rem;
  line-height: 1.45;
}

.feature-card:hover {
  border-color: rgba(184, 146, 42, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
}

.landing-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition), border-color var(--transition), color var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #fffdf9;
  box-shadow: 0 4px 18px rgba(154, 122, 34, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 26px rgba(154, 122, 34, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  border-color: rgba(184, 146, 42, 0.45);
  color: var(--text);
  background: rgba(255, 253, 249, 0.7);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(184, 146, 42, 0.4);
  box-shadow: var(--shadow-soft);
}

.btn--secondary:hover {
  background: rgba(184, 146, 42, 0.1);
}

.btn-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.btn--pay {
  min-width: 160px;
}

/* Panel / Form */
.panel {
  max-width: 560px;
  margin: 1rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.panel--narrow {
  max-width: 480px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.panel-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.step--active {
  background: var(--gold);
  color: #fffdf9;
  border-color: var(--gold);
}

.step--done {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success);
}

.step-line {
  width: 28px;
  height: 2px;
  background: var(--border-strong);
}

.step-line--done {
  background: rgba(61, 138, 90, 0.45);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

input[type="text"],
input[type="date"],
input[type="time"] {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input::placeholder {
  color: var(--text-faint);
}

input:focus {
  border-color: rgba(184, 146, 42, 0.65);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-soft);
}

input.invalid {
  border-color: var(--danger);
}

.field-error {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 1em;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 0.25rem;
}

.checkbox-label input {
  accent-color: var(--gold);
  width: 1rem;
  height: 1rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}


.place-field {
  position: relative;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted, #6b6580);
  line-height: 1.35;
}

.place-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: rgba(184, 146, 42, 0.1);
  border: 1px solid rgba(184, 146, 42, 0.35);
  border-radius: var(--radius-sm, 8px);
  color: var(--gold-deep, #8a6b14);
}

.place-chip[hidden] {
  display: none !important;
}

.place-chip__label {
  font-weight: 600;
  font-size: 0.9rem;
}

.place-chip__meta {
  font-size: 0.75rem;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.place-chip__clear {
  margin-left: auto;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  opacity: 0.7;
}

.place-chip__clear:hover {
  opacity: 1;
}

.place-field input.place-resolved {
  border-color: rgba(184, 146, 42, 0.55);
}

.suggestions .sug-meta {
  display: block;
  font-size: 0.72rem;
  opacity: 0.55;
  margin-top: 0.15rem;
}

/* Suggestions */
.suggestions {
  list-style: none;
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 200px;
  overflow-y: auto;
}

.suggestions li {
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

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

.suggestions li:hover,
.suggestions li[aria-selected="true"] {
  background: rgba(184, 146, 42, 0.1);
  color: var(--gold-deep);
}

/* Payment */
.demo-banner {
  background: rgba(184, 146, 42, 0.1);
  border: 1px dashed rgba(184, 146, 42, 0.45);
  color: var(--gold-deep);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.pay-alert {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.pay-alert strong { display: block; margin-bottom: 0.25rem; }
.pay-alert p { margin: 0; color: var(--text-muted); }
.pay-alert--warn {
  background: rgba(160, 60, 40, 0.08);
  border: 1px solid rgba(160, 60, 40, 0.35);
  color: #7a2e1f;
}
.pay-status {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0.25rem;
}
.pay-dev-wrap {
  margin-top: 1rem;
  text-align: center;
  border-top: 1px dashed var(--border);
  padding-top: 0.85rem;
}
.btn--dev {
  font-size: 0.78rem;
  opacity: 0.85;
  border-style: dashed;
}

.order-summary {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.order-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-deep);
}

.order-row--muted {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-input-wrap {
  position: relative;
}

.card-input-wrap input {
  padding-right: 2.5rem;
}

.card-brands {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.7;
}

/* Chart */
.chart-wrap {
  max-width: 960px;
  margin: 0.5rem auto 0;
}

.chart-header {
  text-align: center;
  margin-bottom: 2rem;
}

.chart-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.chart-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.sample-note {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  font-style: italic;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.chart-diagram-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.card-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gold-deep);
}

.svg-wrap {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.lagna-badge {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.lagna-badge strong {
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.chart-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.interp-section {
  margin-bottom: 2rem;
}

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

.interp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.interp-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

.interp-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

.chart-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .features--outcomes {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .features,
  .features--outcomes {
    grid-template-columns: 1fr;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .interp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 1.5rem 1.15rem;
  }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  .topbar {
    padding: 0.9rem 1rem;
  }

  .lang-btn {
    padding: 0.3rem 0.5rem;
  }
}



/* Landing soft note + freemium teaser */
.landing-teaser {
  margin: 1.35rem auto 0;
  max-width: 420px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.45;
}

.landing-soft-note,
.landing-proto-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* Persistent site footer */
.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(247, 241, 230, 0.92) 28%, var(--bg-soft));
  border-top: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.site-footer-line {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer-sep {
  opacity: 0.55;
}

.link-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link-btn:hover,
.link-btn:focus-visible {
  color: var(--gold);
  outline: none;
}

.legal-nudge {
  margin: 0.35rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(184, 146, 42, 0.08);
  border: 1px solid rgba(184, 146, 42, 0.18);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.legal-nudge .link-btn {
  display: inline;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.legal-nudge--chart {
  margin: 1.5rem 0 0.75rem;
}

/* Legal modal */
.legal-modal {
  border: none;
  padding: 0;
  max-width: min(720px, calc(100vw - 1.5rem));
  width: 100%;
  max-height: min(86vh, 820px);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  color: var(--text);
  box-shadow: var(--shadow);
}

.legal-modal::backdrop {
  background: rgba(26, 22, 48, 0.45);
  backdrop-filter: blur(2px);
}

.legal-modal-panel {
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 820px);
}

.legal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.legal-modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.legal-close-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
}

.legal-close-btn:hover,
.legal-close-btn:focus-visible {
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
}

.legal-body {
  padding: 1rem 1.25rem 0.5rem;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.4rem;
}

.legal-body h3:first-child {
  margin-top: 0.25rem;
}

.legal-body p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.legal-body .legal-note {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.legal-modal-footer {
  padding: 0.85rem 1.25rem 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

@media print {
  .site-footer,
  .legal-nudge,
  .legal-modal {
    display: none !important;
  }
}

/* Print */
@media print {
  .bg-orb,
  .topbar,
  .steps,
  .chart-actions,
  .sample-note,
  #open-report-btn {
    display: none !important;
  }

  body {
    background: white;
    color: #1a1530;
  }

  .chart-diagram-card,
  .info-card,
  .interp-card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
    break-inside: avoid;
  }

  .card-heading,
  .gold-text,
  .lagna-badge strong,
  .interp-card h4 {
    color: #5a3d0a !important;
  }

  .data-table td,
  .data-table th,
  .interp-card p,
  .chart-meta {
    color: #333 !important;
  }
}

/* ─── Freemium preview teaser ─── */
.panel--preview {
  max-width: 640px;
}

.preview-eyebrow {
  text-align: center;
  margin-bottom: 0.35rem;
}

.preview-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 1.1rem 0 1.35rem;
  text-align: center;
}

.preview-person strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
}

.preview-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.preview-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.preview-fact {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated, #fffdf8);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(184, 146, 42, 0.08);
}

.preview-fact__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.preview-fact__value {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--indigo, #1a1630);
  line-height: 1.25;
}

.preview-fact__extra {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--gold-deep);
}

.preview-insights {
  margin-bottom: 1.35rem;
}

.preview-insight-grid {
  display: grid;
  gap: 0.75rem;
}

.preview-insight-grid .interp-card {
  margin: 0;
}

.preview-insight-grid .interp-card h4 {
  margin-bottom: 0.35rem;
}

.preview-locked {
  margin: 0.5rem 0 1rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(184, 146, 42, 0.45);
  background: linear-gradient(180deg, rgba(184, 146, 42, 0.06), rgba(247, 241, 230, 0.4));
}

.locked-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.locked-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(26, 22, 48, 0.06);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.lock-icon {
  flex: 0 0 auto;
  font-size: 0.85rem;
  opacity: 0.85;
  filter: grayscale(0.15);
}

.preview-engine-note {
  margin: 0.25rem 0 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.preview-actions {
  margin-top: 0.25rem;
}

.form-btn-loading[hidden],
.form-btn-label[hidden],
.form-btn-arrow[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .preview-facts {
    grid-template-columns: 1fr;
  }
}

/* Paywall included list */
.pay-includes {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  border: 1px solid rgba(40, 40, 90, 0.08);
}
.pay-includes .card-heading { margin-top: 0; font-size: 0.95rem; }
.pay-includes-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.pay-includes-list .locked-item {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(40,40,90,0.06);
  font-size: 0.92rem;
}
.pay-includes-list .locked-item:last-child { border-bottom: 0; }
