/* ==========================================================================
   Best Daily Tarot — parchment / navy / gold theme
   ========================================================================== */

:root {
  --navy-900: #141a3a;
  --navy-800: #1b2147;
  --navy-700: #252c5e;
  --navy-600: #333b78;
  --parchment-50: #fbf6ea;
  --parchment-100: #f6efdc;
  --parchment-200: #efe4c8;
  --parchment-300: #e5d6ac;
  --gold-400: #e2c878;
  --gold-500: #c9a14a;
  --gold-600: #a9842f;
  --ink-700: #4a4334;
  --ink-800: #3a3427;
  --ink-900: #2b2619;

  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-card: 0 8px 24px rgba(43, 38, 25, 0.18);
  --shadow-pill: 0 6px 16px rgba(20, 26, 58, 0.35);
  --radius: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink-800);
  background-color: var(--parchment-100);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(201, 161, 74, 0.08), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(27, 33, 71, 0.05), transparent 35%),
    radial-gradient(circle at 50% 120%, rgba(201, 161, 74, 0.06), transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

p { margin: 0 0 1rem; }

a { color: var(--navy-700); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow { max-width: 720px; }

@media (max-width: 560px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--parchment-50);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.muted { color: var(--ink-700); }
.center { text-align: center; }
.gold-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 161, 74, 0.6), transparent);
  margin: 2rem 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-display);
  border-radius: 999px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  padding: 0.75rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--parchment-50);
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-pill);
  border-color: rgba(201, 161, 74, 0.4);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--navy-600), var(--navy-800)); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-800);
  border-color: rgba(201, 161, 74, 0.7);
  background: transparent;
}
.btn-outline:hover { background: rgba(201, 161, 74, 0.12); }

.btn-block { width: 100%; }

/* Hero CTA pair: identical height and width */
.hero .btn-row .btn-primary,
.hero .btn-row .btn-outline {
  padding: 0.75rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  width: 290px;
  max-width: 100%;
}

.link-underline {
  font-weight: 500;
  color: var(--navy-800);
  text-decoration: underline;
  text-decoration-color: rgba(201, 161, 74, 0.6);
  text-underline-offset: 4px;
}
.link-underline:hover { color: var(--navy-600); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy-900);
  color: var(--parchment-100);
  border-bottom: 1px solid rgba(201, 161, 74, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--parchment-50);
}
.logo-icon { display: block; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo-best { color: var(--gold-400); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-link {
  color: rgba(246, 239, 220, 0.82);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link[data-active="true"] { color: var(--gold-400); }
.nav-link--cta {
  border: 1px solid rgba(201, 161, 74, 0.6);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  color: var(--gold-400);
}
.nav-link--cta:hover { background: rgba(201, 161, 74, 0.14); color: var(--gold-400); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--parchment-100);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(201, 161, 74, 0.25);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(246, 239, 220, 0.08);
  }
  .nav-link--cta { text-align: center; margin-top: 0.6rem; border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(246, 239, 220, 0.75);
  margin-top: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(201, 161, 74, 0.25);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--parchment-50);
}
.footer-brand img { display: block; }
.footer-tagline { margin: 0; color: var(--gold-400); font-family: var(--font-display); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
}
.footer-nav a {
  color: rgba(246, 239, 220, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  color: rgba(246, 239, 220, 0.78);
  transition: color 0.2s ease;
  display: inline-flex;
}
.footer-social a:hover { color: var(--gold-400); }
.footer-copyright { margin: 0; font-size: 0.82rem; color: rgba(246, 239, 220, 0.5); }

/* --------------------------------------------------------------------------
   Sections / hero
   -------------------------------------------------------------------------- */
.section { padding-block: 3rem; }
.section--tight { padding-block: 2rem; }

.hero {
  text-align: center;
  padding-block: 4rem 2.5rem;
}
.hero--compact { padding-bottom: 0.75rem; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--gold-600);
  font-weight: 600;
}
.hero p.lead {
  max-width: 640px;
  margin: 1rem auto 1.75rem;
  font-size: 1.1rem;
  color: var(--ink-700);
}

.panel {
  background: var(--parchment-50);
  border: 1px solid rgba(169, 132, 47, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold-600);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Tarot card art
   -------------------------------------------------------------------------- */
.tarot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 600 / 1031;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(169, 132, 47, 0.55);
  background: var(--parchment-50);
  box-shadow: var(--shadow-card);
}
.tarot-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tarot-card.is-reversed img { transform: rotate(180deg); }
.tarot-card .reversed-badge {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 26, 58, 0.85);
  color: var(--gold-400);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.chip {
  display: inline-block;
  background: rgba(201, 161, 74, 0.16);
  color: var(--ink-800);
  border: 1px solid rgba(201, 161, 74, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  margin: 0 0.35rem 0.35rem 0;
}

/* --------------------------------------------------------------------------
   Spread layout (Past / Present / Future)
   -------------------------------------------------------------------------- */
.spread {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}
.spread-card { text-align: center; }
.spread-card .position {
  font-family: var(--font-display);
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}
.spread-card .card-name { font-weight: 600; margin-top: 0.5rem; color: var(--navy-900); }

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

/* Card-of-day featured layout */
.daily-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 620px) {
  .daily-feature { grid-template-columns: 1fr; max-width: 320px; text-align: center; }
}

/* Flip animation */
.flip {
  perspective: 1000px;
}
.flip-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 590 / 1024;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}
.flip-back { transform: rotateY(180deg); }
.flip-front {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900) url("img/card-back.png?v=4") center / contain no-repeat;
  border: 1px solid rgba(201, 161, 74, 0.55);
  color: var(--gold-400);
  cursor: pointer;
}
.flip-front .card-back-glyph { display: none; }

/* --------------------------------------------------------------------------
   Card library grid
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
}
.card-grid a { text-decoration: none; color: inherit; }
.card-tile { text-align: center; transition: transform 0.2s ease; }
.card-tile:hover { transform: translateY(-4px); }
.card-tile .card-title { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--navy-900); }
.card-tile .card-sub { font-size: 0.78rem; color: var(--ink-700); }

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.25rem;
}
.section-heading h2 { margin: 0; }
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 161, 74, 0.5), transparent);
}

/* --------------------------------------------------------------------------
   Forms / auth
   -------------------------------------------------------------------------- */
.auth-wrap {
  max-width: 440px;
  margin: 3rem auto;
}
.auth-wrap--flush { margin-top: 0.25rem; }
.form-card {
  background: var(--parchment-50);
  border: 1px solid rgba(169, 132, 47, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 0.35rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(169, 132, 47, 0.45);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-900);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}
.field textarea { min-height: 90px; resize: vertical; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.checkbox-row input { width: auto; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}
.alert-error { background: #fbe7e3; border: 1px solid #e0a99b; color: #8a2c1a; }
.alert-success { background: #e6f3e6; border: 1px solid #a6cfa6; color: #1f5a2a; }
.alert-info { background: rgba(201, 161, 74, 0.12); border: 1px solid rgba(201, 161, 74, 0.4); color: var(--ink-800); }

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--ink-700);
  font-size: 0.85rem;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(169, 132, 47, 0.4);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #3c4043;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-google:hover { background: #f7f8f8; }
.cf-turnstile { margin: 0 0 1.1rem; }

.form-footer { margin-top: 1.25rem; text-align: center; font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
}
.widget {
  background: var(--parchment-50);
  border: 1px solid rgba(169, 132, 47, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget h3 { margin-top: 0; display: flex; align-items: center; gap: 0.5rem; }
.widget .widget-sub { color: var(--ink-700); font-size: 0.9rem; margin-top: -0.2rem; }

.stat-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
  background: rgba(201, 161, 74, 0.1);
  border-radius: 12px;
  padding: 1rem;
}
.stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--navy-900); }
.stat .label { font-size: 0.8rem; color: var(--ink-700); text-transform: uppercase; letter-spacing: 0.08em; }

/* streak chart */
.streak-chart { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.streak-day {
  flex: 1;
  min-width: 26px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--ink-700);
}
.streak-dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(20, 26, 58, 0.08);
  margin-bottom: 0.25rem;
}
.streak-dot.active { background: linear-gradient(160deg, var(--gold-400), var(--gold-600)); }

/* progress bar */
.progress {
  height: 10px;
  background: rgba(20, 26, 58, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 999px;
}

/* admin growth chart */
.admin-chart {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  height: 200px;
}
.admin-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 3.5rem;
  flex-shrink: 0;
  height: 100%;
  justify-content: flex-end;
}
.admin-bar .bar {
  width: 70%;
  min-height: 3px;
  background: linear-gradient(180deg, var(--navy-600), var(--navy-900));
  border-radius: 6px 6px 0 0;
}
.admin-bar .count { font-size: 0.78rem; font-weight: 600; color: var(--navy-900); }
.admin-bar .month { font-size: 0.72rem; color: var(--ink-700); }

/* journal */
.journal-entry {
  border: 1px solid rgba(169, 132, 47, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}
.journal-entry .date { font-family: var(--font-display); color: var(--navy-900); font-weight: 600; }
.journal-cards { display: flex; gap: 0.5rem; margin: 0.6rem 0; flex-wrap: wrap; }
.journal-cards span {
  font-size: 0.78rem;
  background: rgba(201, 161, 74, 0.14);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}

/* --------------------------------------------------------------------------
   Learning path
   -------------------------------------------------------------------------- */
.module-list { display: grid; gap: 1.25rem; }
.module-card {
  background: var(--parchment-50);
  border: 1px solid rgba(169, 132, 47, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.module-card .level {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.lesson {
  border-top: 1px solid rgba(169, 132, 47, 0.25);
  padding: 1rem 0;
}
.lesson:first-of-type { border-top: 0; }
.lesson h4 { margin: 0 0 0.4rem; color: var(--navy-800); }

/* quiz runner */
.quiz {
  background: var(--parchment-50);
  border: 1px solid rgba(169, 132, 47, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}
.quiz-progress { font-size: 0.82rem; color: var(--ink-700); margin-bottom: 0.5rem; }
.quiz-prompt { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); margin-bottom: 1.25rem; }
.quiz-options { display: grid; gap: 0.75rem; }
.quiz-option {
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(169, 132, 47, 0.45);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
  color: var(--ink-900);
}
.quiz-option:hover:not(:disabled) { border-color: var(--gold-500); background: rgba(201, 161, 74, 0.08); }
.quiz-option.correct { border-color: #2f8f43; background: #e6f3e6; color: #1f5a2a; }
.quiz-option.wrong { border-color: #c0492f; background: #fbe7e3; color: #8a2c1a; }
.quiz-option:disabled { cursor: default; }
.quiz-feedback { margin-top: 1rem; font-size: 0.92rem; }
.quiz-result { text-align: center; }
.quiz-result .score { font-family: var(--font-display); font-size: 3rem; color: var(--navy-900); }

/* --------------------------------------------------------------------------
   Misc utilities
   -------------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 1rem; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.text-card { max-width: 760px; margin: 0 auto; }
.text-card h2 { margin-top: 2rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.fade-up { animation: fade-up 0.6s ease-out both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up, .flip-inner { animation: none !important; transition: none !important; }
}

/* Hero three-card animation */
.hero-cards {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 1.75rem auto 1.75rem;
  width: max-content;
  max-width: 100%;
}
.hero-card {
  display: block;
  width: 132px;
  aspect-ratio: 590 / 1024;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-900) url("img/card-back.png?v=4") center / contain no-repeat;
  border: 1px solid rgba(201, 161, 74, 0.6);
  box-shadow: 0 14px 30px rgba(20, 26, 58, 0.38);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.4, 1);
  animation: hero-float 5.5s ease-in-out infinite;
}
.hero-card--left   { transform: rotate(-10deg); margin-right: -34px; z-index: 1; animation-delay: 0.15s; }
.hero-card--center { transform: translateY(-16px); z-index: 3; }
.hero-card--right  { transform: rotate(10deg); margin-left: -34px; z-index: 1; animation-delay: 0.35s; }
.hero-cards:hover .hero-card--left   { transform: rotate(-15deg) translate(-12px, -6px); }
.hero-cards:hover .hero-card--center { transform: translateY(-26px) scale(1.04); }
.hero-cards:hover .hero-card--right  { transform: rotate(15deg) translate(12px, -6px); }
@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@media (max-width: 560px) {
  .hero-card { width: 96px; }
  .hero-card--left { margin-right: -26px; }
  .hero-card--right { margin-left: -26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card { animation: none; }
}

/* Celestial moon-phase icon */
.celestial-moon { text-align: center; margin-bottom: 0.85rem; }
.moon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, var(--navy-700), var(--navy-900));
  box-shadow: inset 0 0 0 1px rgba(201, 161, 74, 0.45), 0 4px 14px rgba(20, 26, 58, 0.25);
}
.moon-icon span { line-height: 1; }

/* Celestial Weather widget — navy night-sky panel with gold text */
.widget--celestial {
  background: radial-gradient(120% 90% at 50% 0%, var(--navy-700), var(--navy-900) 70%);
  border-color: rgba(201, 161, 74, 0.55);
  box-shadow: inset 0 0 0 1px rgba(201, 161, 74, 0.15), var(--shadow-card);
  color: var(--gold-400);
}
.widget--celestial h3 { color: var(--gold-400); }
.widget--celestial p { color: var(--gold-400); }
.widget--celestial strong { color: #f1dd9c; }
.widget--celestial .muted { color: rgba(226, 200, 120, 0.78); }
.widget--celestial .moon-icon {
  background: transparent;
  box-shadow: none;
}

/* Readings hub */
.reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.reading-card {
  display: flex;
  flex-direction: column;
  background: var(--parchment-50);
  border: 1px solid rgba(169, 132, 47, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.reading-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 161, 74, 0.7);
  box-shadow: 0 16px 34px rgba(20, 26, 58, 0.16);
}
.reading-card__glyph { font-size: 2rem; line-height: 1; margin-bottom: 0.75rem; }
.reading-card__backs {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0 auto 0.9rem;
  min-height: 100px;
}
.reading-card__back {
  display: block;
  width: 56px;
  aspect-ratio: 590 / 1024;
  border-radius: 7px;
  background: var(--navy-900) url("img/card-back.png?v=4") center / contain no-repeat;
  border: 1px solid rgba(201, 161, 74, 0.4);
  box-shadow: 0 5px 14px rgba(20, 26, 58, 0.3);
}
/* Multi-card spreads fan out slightly. */
.reading-card__backs[data-count="3"] .reading-card__back,
.reading-card__backs[data-count="4"] .reading-card__back {
  width: 48px;
  margin: 0 -10px;
  transform-origin: bottom center;
}
.reading-card__backs[data-count="3"] .reading-card__back:nth-child(1) { transform: rotate(-9deg) translateY(3px); }
.reading-card__backs[data-count="3"] .reading-card__back:nth-child(2) { transform: translateY(-2px); z-index: 2; }
.reading-card__backs[data-count="3"] .reading-card__back:nth-child(3) { transform: rotate(9deg) translateY(3px); }
.reading-card__backs[data-count="4"] .reading-card__back:nth-child(1) { transform: rotate(-12deg) translateY(5px); }
.reading-card__backs[data-count="4"] .reading-card__back:nth-child(2) { transform: rotate(-4deg) translateY(-1px); z-index: 2; }
.reading-card__backs[data-count="4"] .reading-card__back:nth-child(3) { transform: rotate(4deg) translateY(-1px); z-index: 2; }
.reading-card__backs[data-count="4"] .reading-card__back:nth-child(4) { transform: rotate(12deg) translateY(5px); }
.reading-card h3 { margin: 0 0 0.5rem; color: var(--navy-900); }
.reading-card p { margin: 0 0 1rem; color: var(--ink-700); font-size: 0.95rem; }
.reading-card__meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
}
.reading-card__cta { margin-top: auto; padding-top: 0.75rem; font-weight: 600; color: var(--navy-700); }

/* Yes / No verdict badge */
.verdict-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.verdict-badge--yes { background: #1f6b4a; color: #eafbf1; }
.verdict-badge--no { background: #7c2f33; color: #fdeaea; }
.verdict-badge--maybe { background: var(--gold-500); color: #2b2306; }
