/* Sapphire is the default brand palette (lives on :root, no data-theme
   attribute needed) - see the theme-switcher widget for the alternates. */
:root {
  --bg: #070c1c;
  --bg-alt: rgba(14, 24, 48, 0.55);
  --card: rgba(18, 32, 62, 0.62);
  --bg-grad-top: #132a52;
  --gold: #5fc9f3;
  --gold-soft: #3fa0d6;
  --btn-text: #041022;
  --text: #e6f0fb;
  --text-dim: #93a8c9;
  --violet: #2c5fb0;
  --border: rgba(95, 201, 243, 0.18);
  --danger: #e0715c;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Color themes: swapped by setting data-theme on <html> (see the
   theme-switcher widget + its inline pre-paint script in index.html).
   Only the palette variables change - layout/typography stay identical. --- */
[data-theme='gold'] {
  --bg: #0b0a09;
  --bg-alt: rgba(22, 19, 15, 0.55);
  --card: rgba(28, 24, 18, 0.62);
  --bg-grad-top: #221a10;
  --gold: #e8c468;
  --gold-soft: #c9a95c;
  --btn-text: #221a05;
  --text: #f0ece2;
  --text-dim: #a49b8a;
  --violet: #6f5fd6;
  --border: rgba(232, 196, 104, 0.16);
}

[data-theme='emerald'] {
  --bg: #081712;
  --bg-alt: rgba(14, 43, 33, 0.55);
  --card: rgba(18, 53, 39, 0.62);
  --bg-grad-top: #123d2d;
  --gold: #3ddc97;
  --gold-soft: #2bb884;
  --btn-text: #04150f;
  --text: #e8f5ef;
  --text-dim: #8fb8a8;
  --violet: #1f6f52;
  --border: rgba(61, 220, 151, 0.18);
}

[data-theme='rose'] {
  --bg: #170a0d;
  --bg-alt: rgba(36, 16, 20, 0.55);
  --card: rgba(44, 20, 26, 0.62);
  --bg-grad-top: #2f1319;
  --gold: #d98a9c;
  --gold-soft: #b96a7c;
  --btn-text: #2a0f14;
  --text: #f5e6e9;
  --text-dim: #b7909a;
  --violet: #7a3648;
  --border: rgba(217, 138, 156, 0.18);
}

[data-theme='onyx'] {
  --bg: #0c0c0e;
  --bg-alt: rgba(23, 23, 26, 0.55);
  --card: rgba(29, 29, 33, 0.62);
  --bg-grad-top: #232227;
  --gold: #d8d3c4;
  --gold-soft: #b3ac97;
  --btn-text: #1a1a1a;
  --text: #eceae5;
  --text-dim: #9c9a95;
  --violet: #55534d;
  --border: rgba(216, 211, 196, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(ellipse at top, var(--bg-grad-top) 0%, var(--bg) 55%);
  background-attachment: fixed;
  transition: background 0.4s ease;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Cosmic backdrop: layered starfields (small tiles repeated across the
   viewport so a handful of hand-placed dots read as hundreds) plus a couple
   of very soft, non-repeating nebula washes in the theme's accent colors.
   Fixed + behind everything (z-index 0, .wrap sits at z-index 1) so it shows
   through the semi-transparent .card panels via their backdrop-filter. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 65% 75%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 90% 15%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 40% 90%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(2px 2px at 25% 45%, var(--gold), transparent),
    radial-gradient(1.5px 1.5px at 80% 55%, var(--gold), transparent),
    radial-gradient(1.5px 1.5px at 55% 20%, var(--gold-soft), transparent),
    radial-gradient(2.5px 2.5px at 15% 80%, var(--gold), transparent),
    radial-gradient(2px 2px at 70% 30%, var(--gold-soft), transparent),
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--violet) 35%, transparent), transparent 60%),
    radial-gradient(circle at 85% 75%, color-mix(in srgb, var(--gold) 25%, transparent), transparent 55%);
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-size:
    180px 180px, 220px 220px, 260px 260px, 300px 300px, 240px 240px,
    340px 340px, 420px 420px, 380px 380px, 460px 460px, 400px 400px,
    100% 100%, 100% 100%;
  animation: twinkle 7s ease-in-out infinite alternate;
  transition: background 0.4s ease;
}

@keyframes twinkle {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  padding: 34px 0 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: padding 0.3s ease;
}

.site-header.is-compact {
  padding: 16px 0;
}

.site-header.is-compact .logo-icon {
  width: 32px;
  height: 32px;
}

.site-header.is-compact .logo-text {
  font-size: 1.4rem;
}

.site-header.is-compact .tagline {
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
}

.header-inner {
  transition: all 0.3s ease;
}

/* Faint, slowly-rotating rings behind the header - purely atmospheric,
   reinforcing the "compass"/zodiac-wheel motif without competing with text. */
.header-orbits {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed color-mix(in srgb, var(--gold) 14%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 620px;
  height: 620px;
  animation: rotate-slow 90s linear infinite;
}

.orbit-2 {
  width: 420px;
  height: 420px;
  border-style: solid;
  border-color: rgba(111, 95, 214, 0.14);
  animation: rotate-slow 70s linear infinite reverse;
}

@keyframes rotate-slow {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(232, 196, 104, 0.45));
  transition: transform 0.6s ease, width 0.3s ease, height 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(50deg);
}

.logo-ring-slow {
  transform-origin: 24px 24px;
  animation: rotate-slow 26s linear infinite;
}

.logo-ring-fast {
  transform-origin: 24px 24px;
  animation: rotate-slow 16s linear infinite reverse;
}

.logo-star {
  transform-origin: 24px 24px;
  animation: pulse-star 4s ease-in-out infinite;
}

@keyframes pulse-star {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}

.logo-text {
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
  transition: font-size 0.3s ease;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.tagline {
  color: var(--text-dim);
  margin: 8px 0 0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

main {
  padding: 40px 20px 70px;
}

.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 34px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
  transition: box-shadow 0.3s ease, background 0.4s ease, border-color 0.4s ease;
}

.card:hover {
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
}

/* Cursor-reactive glass glow - a soft highlight that follows the pointer,
   reinforcing the frosted-glass surface. --mx/--my are written by
   animations.js on mousemove; default to the center so the glow doesn't jump
   to a corner before the first move. Negative z-index keeps it below the
   card's real (non-positioned) content within .card's own stacking context,
   which backdrop-filter already establishes. */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 20%), color-mix(in srgb, var(--gold) 14%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

/* Entrance animation - present as a plain class in the markup, so it simply
   plays whenever the browser flips the element from display:none (the
   [hidden] attribute) to visible; no extra JS bookkeeping needed. */
.reveal {
  animation: fadeInUp 0.55s ease both;
}

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

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

/* Scroll-reveal: elements start hidden/offset and animations.js flips
   .in-view via IntersectionObserver as they scroll into frame. Falls back
   to instantly visible when JS/IO is unavailable or motion is reduced. */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] .step-tile,
[data-reveal] .faq-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].in-view .step-tile,
[data-reveal].in-view .faq-item {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] .step-tile:nth-child(1) { transition-delay: 0.05s; }
[data-reveal] .step-tile:nth-child(2) { transition-delay: 0.18s; }
[data-reveal] .step-tile:nth-child(3) { transition-delay: 0.31s; }

[data-reveal] .faq-item:nth-child(1) { transition-delay: 0.03s; }
[data-reveal] .faq-item:nth-child(2) { transition-delay: 0.1s; }
[data-reveal] .faq-item:nth-child(3) { transition-delay: 0.17s; }
[data-reveal] .faq-item:nth-child(4) { transition-delay: 0.24s; }
[data-reveal] .faq-item:nth-child(5) { transition-delay: 0.31s; }

h1 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: clamp(2.3rem, 2.4vw + 1.9rem, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 0;
}

h2 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.lead {
  color: var(--text-dim);
  margin: 0 0 26px;
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.accent-underline {
  position: relative;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold) 50%, var(--gold-soft));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-underline 1.1s 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes draw-underline {
  to { transform: scaleX(1); }
}

/* HERO two-column layout: copy on the left, animated brand visual on the
   right - stacks to a single column on narrow viewports. */
.hero-card {
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy .trust-bar {
  justify-content: flex-start;
  margin-left: 0;
}

.hero-copy form {
  margin: 0;
  max-width: 460px;
}

.hero-copy .field,
.hero-copy .form-subnote {
  text-align: left;
}

.hero-copy input {
  text-align: left;
}

.hero-visual {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .hero-visual {
    min-height: 200px;
  }
}

.hv-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hv-orbit-1 {
  width: 90%;
  aspect-ratio: 1;
  border: 1px dashed color-mix(in srgb, var(--gold) 30%, transparent);
  animation: rotate-slow 40s linear infinite;
}

.hv-orbit-2 {
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--violet) 45%, transparent);
  animation: rotate-slow 28s linear infinite reverse;
}

.hv-orbit-3 {
  width: 40%;
  aspect-ratio: 1;
  border: 1px dashed color-mix(in srgb, var(--gold) 22%, transparent);
  animation: rotate-slow 18s linear infinite;
}

.hv-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--gold) 60%, transparent);
}

.hv-dot-1 { top: 8%; left: 50%; animation: pulse-dot-glow 2.6s ease-in-out infinite; }
.hv-dot-2 { top: 50%; left: 82.5%; animation: pulse-dot-glow 2.6s ease-in-out infinite 0.7s; }
.hv-dot-3 { top: 30%; left: 70%; animation: pulse-dot-glow 2.6s ease-in-out infinite 1.4s; }

@keyframes pulse-dot-glow {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hv-star {
  position: absolute;
  color: var(--gold-soft);
  opacity: 0.55;
  animation: twinkle 4s ease-in-out infinite alternate;
}

.hv-star-1 { top: 12%; left: 15%; font-size: 1.1rem; }
.hv-star-2 { top: 70%; left: 12%; font-size: 0.9rem; animation-delay: 0.8s; }
.hv-star-3 { top: 20%; left: 78%; font-size: 0.8rem; animation-delay: 1.6s; }
.hv-star-4 { top: 80%; left: 75%; font-size: 1rem; animation-delay: 2.4s; }

.hv-compass {
  position: relative;
  width: 34%;
  filter: drop-shadow(0 0 14px rgba(232, 196, 104, 0.3));
  animation: rotate-slow 50s linear infinite;
}

.hv-stat-badge {
  position: absolute;
  bottom: 6%;
  right: 4%;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  padding: 10px 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: float-badge 4.5s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hv-stat-badge strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1.1;
}

.hv-stat-badge span {
  display: block;
  color: var(--text-dim);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.form-subnote {
  text-align: center;
  margin-top: 12px;
}

.trust-bar {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 0 auto 28px;
  padding: 0;
  max-width: 640px;
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.trust-icon {
  flex-shrink: 0;
  color: var(--gold-soft);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.steps-grid--pair {
  grid-template-columns: repeat(2, 1fr);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.step-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--btn-text);
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 12px;
}

.step-tile h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.step-tile p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

.peek-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.qualify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  text-align: left;
}

@media (max-width: 640px) {
  .qualify-grid {
    grid-template-columns: 1fr;
  }
}

.qualify-col {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.qualify-col:hover {
  transform: translateY(-4px);
}

.qualify-col--yes {
  border-color: var(--gold-soft);
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 8%, transparent), var(--bg-alt) 55%);
}

.qualify-heading {
  font-family: var(--font-heading);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.qualify-col--no .qualify-heading {
  color: var(--text-dim);
}

.reassurance-note {
  text-align: center;
  margin: 12px 0 0;
}

.excerpts-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cta-teaser-wrap {
  margin-top: 22px;
}

.module-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  text-align: left;
  margin: 10px 0 24px;
}

.module-toc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.module-toc-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold-soft);
}

.module-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold-soft);
}

.module-toc-item strong {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.module-toc-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.module-toc-item--synthesis {
  border-color: var(--gold-soft);
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, transparent), var(--bg-alt) 55%);
}

.module-detail-example {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
}

.module-detail-example summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold-soft);
}

.module-detail-example summary::-webkit-details-marker {
  display: none;
}

.module-detail-example summary::before {
  content: '+';
  color: var(--gold);
  font-weight: 700;
  margin-right: 10px;
}

.module-detail-example[open] summary::before {
  content: '−';
}

.chapter-list {
  margin: 16px 0 8px;
  padding-left: 22px;
  color: var(--text);
}

.chapter-list li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.peek-subhead {
  font-family: var(--font-heading);
  color: var(--gold-soft);
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.peek-note {
  margin: 0 0 16px;
}

.sample-quote {
  text-align: left;
  background: var(--bg-alt);
  border-left: 3px solid var(--gold-soft);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 0 0 16px;
  transition: transform 0.25s ease, border-left-color 0.25s ease;
}

.sample-quote:hover {
  transform: translateX(4px);
  border-left-color: var(--gold);
}

.sample-quote p {
  margin: 0;
  color: var(--text);
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.7;
}

.paywall-heading {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.2rem;
  margin: 0 0 18px;
  text-align: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text);
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.feature-list--cross li::before {
  content: '✕';
  color: var(--text-dim);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: var(--gold-soft);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

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

.faq-item summary::before {
  content: '+';
  color: var(--gold);
  font-weight: 700;
  margin-right: 10px;
}

.faq-item[open] summary::before {
  content: '−';
}

.faq-item p {
  color: var(--text-dim);
  margin: 12px 0 2px;
  font-size: 0.92rem;
}

.legal-details {
  margin-top: 14px;
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.legal-details summary {
  cursor: pointer;
  color: var(--text-dim);
  text-align: center;
  text-decoration: underline;
  font-size: 0.82rem;
}

.legal-content h4 {
  color: var(--gold-soft);
  font-size: 0.9rem;
  margin: 14px 0 4px;
}

.legal-content p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.field {
  margin-bottom: 18px;
  flex: 1;
  text-align: center;
}

.field-row {
  display: flex;
  gap: 20px;
}

@media (max-width: 560px) {
  .field-row {
    flex-direction: column;
    gap: 0;
  }
}

form {
  max-width: 420px;
  margin: 0 auto;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.hint {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Inside a field label, the hint describes an optional value in parentheses -
   put it on its own centered line instead of letting it wrap inline with the
   label text (which produced a jagged, unevenly-centered paragraph shape). */
label .hint {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 400;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  color: var(--text-dim);
}

.checkbox-field input[type='checkbox'] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type='email'] {
  flex: 1;
}

@media (max-width: 560px) {
  .newsletter-form {
    flex-direction: column;
  }
}

input, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.98rem;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}

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

.input-icon-wrap .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-soft);
  opacity: 0.75;
  pointer-events: none;
}

.input-icon-wrap input {
  padding-left: 40px;
  padding-right: 40px;
}

.btn {
  position: relative;
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, opacity 0.2s ease;
}

.btn span {
  position: relative;
  z-index: 1;
}

/* Shine sweep - clipped to the pill shape via a wrapper pseudo-element so
   overflow can stay visible (needed for the ring-pulse below) without the
   shine spilling outside the rounded corners. */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  background-size: 250% 100%;
  background-position: 100% 0;
  transition: background-position 0.65s ease;
}

.btn:hover::before {
  background-position: -50% 0;
}

/* One-shot sonar ring - CSS restarts a :hover-scoped animation from its start
   every time the pointer re-enters, so it reads as a fresh pulse per hover
   rather than a distracting perpetual loop. */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::after {
  animation: btn-ring 0.6s ease-out;
}

@keyframes btn-ring {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0; transform: scale(1.18); }
}

.btn:hover {
  transform: translateY(-2px) scale(1.015);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--btn-text);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--gold) 30%, transparent);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 30px color-mix(in srgb, var(--gold) 45%, transparent);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  margin-top: 20px;
}

.btn-secondary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--gold) 20%, transparent);
}

.print-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 10px;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
}

.number-tile, .fact-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: fadeInUp 0.5s ease both;
}

/* Freshly-rendered tiles (snapshot numbers, fact grid) pop in one after
   another instead of all at once - the animation plays automatically on
   insertion since these nodes are new to the DOM (set via innerHTML right as
   the section is revealed), no IntersectionObserver bookkeeping needed. */
.number-grid .number-tile:nth-child(1) { animation-delay: 0.05s; }
.number-grid .number-tile:nth-child(2) { animation-delay: 0.15s; }
.number-grid .number-tile:nth-child(3) { animation-delay: 0.25s; }
.number-grid .number-tile:nth-child(4) { animation-delay: 0.35s; }
.fact-grid .fact-tile:nth-child(1) { animation-delay: 0.1s; }
.fact-grid .fact-tile:nth-child(2) { animation-delay: 0.2s; }

.number-tile:hover, .fact-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-soft);
}

.number-tile .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

.number-tile .label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.fact-tile .label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fact-tile .value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

.note {
  font-size: 0.86rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 8px;
}

.paywall {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px dashed var(--border);
  text-align: center;
}

.payment-note {
  margin-top: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-grid--single {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, transparent), var(--bg-alt) 55%);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--gold) 14%, transparent);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--btn-text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--gold) 35%, transparent);
}

.pricing-tier {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 14px;
}

.pricing-amount span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.pricing-card .hint {
  flex: 1;
  margin-bottom: 20px;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

.gift-code-field {
  text-align: left;
  margin-bottom: 16px;
}

.gift-code-field label {
  font-size: 0.82rem;
}

.module-block {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.module-block h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.3rem;
  text-align: center;
}

.synthesis-box {
  background: var(--bg-alt);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 14px 0 20px;
  text-align: center;
}

.synthesis-box dt {
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 12px;
}

.synthesis-box dd {
  margin: 4px 0 0;
  color: var(--text);
}

.module-error {
  color: var(--danger);
  font-style: italic;
  text-align: center;
}

.loading {
  text-align: center;
  padding: 34px 0;
  color: var(--text-dim);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  background: rgba(224, 113, 92, 0.12);
  border: 1px solid var(--danger);
  color: #f3b6a9;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  text-align: center;
}

.report-block {
  margin-bottom: 26px;
  text-align: left;
}

.report-block h3 {
  font-family: var(--font-heading);
  color: var(--gold-soft);
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-align: center;
}

.report-block :is(h1, h2, h3, h4) {
  color: var(--gold-soft);
  text-align: center;
}

.report-block ul {
  padding-left: 20px;
  text-align: left;
}

.pdf-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-top: 0;
}

.pdf-meta {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.pdf-toc {
  padding-left: 0;
  list-style-position: inside;
  max-width: 46ch;
  margin: 0 auto;
}

.pdf-toc li {
  margin-bottom: 8px;
}

.print-only-meta {
  display: none;
}

.site-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 24px 0 40px;
}

/* --- Theme switcher: fixed floating widget, independent of page scroll/layout.
   Palette values themselves live in the [data-theme='...'] blocks near :root. --- */
.theme-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
}

.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.4s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px) rotate(-8deg);
  border-color: var(--gold-soft);
}

.theme-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.theme-panel-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-align: left;
}

.theme-swatches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-swatch:hover {
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.03);
}

.theme-swatch[aria-pressed='true'] {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}

.theme-swatch .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Print / "Save as PDF": the browser's own print engine renders the real
   on-screen DOM (real vector text, real layout) - see app.js for why this
   replaced the old client-side html2canvas rasterization. Only the section
   picked via the download button's body class is shown; everything else
   (nav, form, buttons, other report) is hidden for the printout.

   Typographic direction: "Klidná kniha" (calm book) - narrow ~66ch measure,
   Georgia serif body copy, drop-cap chapter openers, roman-numeral chapter
   kickers, each chapter starting on its own page. Chosen over a denser
   magazine/executive-report treatment specifically for reading comfort. --- */
@media print {
  @page {
    size: A4;
    margin: 18mm;
  }

  body {
    background: #fff !important;
    color: #262220;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11.5pt;
    line-height: 1.75;
  }

  body::before {
    display: none;
  }

  .site-header, .site-footer, #form-section, #snapshot-section,
  #how-it-works, #peek, #excerpts, #qualify, #faq, #newsletter, .theme-switcher,
  .btn, .loading, .error, .print-hint {
    display: none !important;
  }

  #astria-report-section {
    display: none !important;
  }

  body.printing-astria #astria-report-section {
    display: block !important;
  }

  .print-only-meta {
    display: block;
    text-align: center;
    font-style: italic;
    color: #6b6459;
    margin-bottom: 26px;
  }

  .wrap, main {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  /* Single "measure" column shared by the title, the table of contents and
     every chapter, so nothing ever runs the full A4 width - the single
     biggest readability fix over the old full-bleed layout. */
  .card {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    max-width: 66ch;
  }

  h1, h2, h3, h4, .logo, .module-block h3, .report-block h3, .report-block :is(h1, h2, h3, h4) {
    color: #8a6d1f !important;
    -webkit-text-fill-color: #8a6d1f;
  }

  h1 {
    text-align: center;
    font-size: 2.3rem;
  }

  h2 {
    border-bottom-color: #cbb26a;
  }

  .pdf-subtitle {
    text-align: center;
    font-style: italic;
    color: #6b6459;
  }

  .pdf-meta {
    text-align: center;
    color: #6b6459;
  }

  .note {
    color: #6b6459;
  }

  #astria-content hr {
    border: none;
    border-top: 1px solid #cbb26a;
    width: 120px;
    margin: 24px auto;
  }

  /* Chapter numbering + a fresh page per chapter. The simple report has no
     cover/TOC blocks so every .report-block is a chapter; ASTRIA's first two
     .module-block sections are the intro and TOC (nth-of-type(n+3) is the
     synthesis chapter onward) - see app.js renderAstriaModuleHtml/renderIntroHtml. */
  #report-content {
    counter-reset: chapter;
  }

  .report-block {
    counter-increment: chapter;
  }

  .report-block:not(:first-of-type) {
    break-before: page;
  }

  #astria-content {
    counter-reset: chapter;
  }

  .module-block:nth-of-type(n + 3) {
    counter-increment: chapter;
    break-before: page;
  }

  .report-block::before,
  .module-block:nth-of-type(n + 3)::before {
    content: 'Kapitola ' counter(chapter, upper-roman);
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.72rem;
    color: #8a6d1f;
    margin: 0 0 4px;
  }

  .report-block h3::after,
  .module-block:nth-of-type(n + 3) h3::after {
    content: '◆';
    display: block;
    text-align: center;
    color: #cbb26a;
    font-size: 1rem;
    margin: 6px 0 22px;
  }

  /* Drop-cap chapter openers - matches only the first <p>, so fact grids
     and synthesis boxes preceding the prose are unaffected. */
  .report-block p:first-of-type::first-letter,
  .module-block p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 3.2em;
    line-height: 0.8;
    padding: 4px 8px 0 0;
    color: #8a6d1f;
  }

  .report-block p, .module-block p {
    text-align: justify;
    hyphens: auto;
    orphans: 3;
    widows: 3;
  }

  /* Table of contents: roman numerals + dotted rows instead of the on-screen
     plain numbered list. */
  .pdf-toc {
    list-style: none;
    counter-reset: tocitem;
    max-width: 50ch;
    margin: 20px auto;
    padding: 0;
  }

  .pdf-toc li {
    counter-increment: tocitem;
    display: flex;
    padding: 8px 0;
    margin-bottom: 0;
    border-bottom: 1px dotted #cbb26a;
  }

  .pdf-toc li::before {
    content: counter(tocitem, upper-roman) '.';
    color: #8a6d1f;
    width: 3em;
    flex-shrink: 0;
  }

  /* Fact/number tiles become flat label-value rows (like a definition list)
     instead of boxed dlaždice - reads faster in a narrow print column.
     number-tile's DOM order is value-then-label (see app.js numberTile());
     `order` puts the label back on the left without touching the markup. */
  .number-grid, .fact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 28px;
    margin: 18px 0 22px;
  }

  .number-tile, .fact-tile {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: none;
    border: none;
    border-bottom: 1px solid #e3d9b8;
    border-radius: 0;
    padding: 7px 2px;
    margin: 0;
    box-shadow: none;
  }

  .number-tile .label, .fact-tile .label {
    order: 1;
    color: #6b6459;
    font-size: 0.85rem;
    margin-top: 0;
  }

  .number-tile .value, .fact-tile .value {
    order: 2;
    color: #262220;
    font-size: 1rem;
    font-weight: 600;
  }

  .synthesis-box {
    background: #faf6ea !important;
    border: 1px solid #e3d9b8 !important;
    border-radius: 8px;
    text-align: left;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .synthesis-box dt {
    color: #8a6d1f;
  }

  /* .synthesis-box dd has no print-specific color, so it was inheriting
     --text (#e6f0fb, near-white - meant for the dark web theme) straight
     onto the light print background, making every value line almost
     invisible. */
  .synthesis-box dd {
    color: #262220;
  }

  .synthesis-box dt:first-child {
    margin-top: 0;
  }

  .module-error {
    color: #a33b2b;
  }

  .report-block, .module-block {
    border-bottom: none;
  }

  h2, h3, h4 {
    break-after: avoid;
  }

  .synthesis-box, .number-tile, .fact-tile {
    break-inside: avoid;
  }
}
