/* ============================================================
   TOKENS
   Palette: deep plum ground with marigold, rose and teal —
   Indian devotional warmth rather than gothic fortune-telling.
   The three accents are not decorative: they carry the brand's
   own three pillars, so colour always means something.
       rose     = FEEL   (the heart, what you're carrying)
       marigold = HEAL   (the work, the warmth, the primary accent)
       teal     = ALIGN  (the calm on the other side)
   Token NAMES are kept from the previous theme so the whole site
   re-skins from here without rewriting every rule.
   ============================================================ */
:root {
  --ink: #241a2e;          /* deep plum ground */
  --ink-2: #2f2139;        /* raised surface */
  --ink-3: #3b2a47;        /* card / hover surface */
  --parchment: #fbf3e9;    /* warm cream — primary text */
  --parchment-dim: #ded0c1;
  --brass: #e8a33d;        /* marigold — HEAL, primary accent */
  --brass-bright: #f5c066;
  --burgundy: #c25a78;     /* rose — FEEL, secondary accent */
  --burgundy-bright: #db7b95;
  --teal: #4fa8a0;         /* ALIGN — used only for the third pillar */
  --teal-bright: #6fc4bc;
  --slate: #9c8fa8;
  --line: rgba(251, 243, 233, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Source Serif 4", "Georgia", serif;
  --font-mono: "Space Mono", monospace;

  --container: 1180px;
  --radius: 10px;          /* softened from 2px — warmer, less archival */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--parchment);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(36, 26, 46, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brass);
  letter-spacing: 0.2em;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  background: none; border: 0; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--brass-bright); border-bottom-color: var(--brass); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--parchment); padding: 8px 10px; border-radius: var(--radius); }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: var(--ink-2); flex-direction: column; padding: 20px 28px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* ============================================================
   HERO — the draw itself is the thesis
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background: radial-gradient(ellipse at 30% 20%, rgba(232,163,61,0.16), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 14px 0 20px;
}
.hero h1 em { font-style: italic; color: var(--brass-bright); }
.hero p.lede { color: var(--parchment-dim); font-size: 19px; max-width: 46ch; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--parchment); }
.btn-ghost:hover { border-color: var(--parchment); }
.btn-burgundy { background: var(--burgundy); border-color: var(--burgundy); color: var(--parchment); }
.btn-burgundy:hover { background: var(--burgundy-bright); transform: translateY(-1px); }

/* hero draw widget */
.hero-draw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.draw-stage { perspective: 1200px; }
.hero-card {
  width: 220px;
  height: 356px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.hero-card.flipped { transform: rotateY(180deg); }
.hero-card .face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 6px;
  border: 1px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-card .face-back {
  background:
    repeating-linear-gradient(45deg, var(--ink-3) 0 2px, var(--ink-2) 2px 14px);
  border: 1px solid var(--brass);
}
.hero-card .face-back::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid var(--brass);
}
.hero-card .face-front {
  background: var(--parchment);
  color: var(--ink);
  transform: rotateY(180deg);
  flex-direction: column;
  padding: 18px;
}
.hero-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }

/* ============================================================
   CARD FRAME — the signature element, reused across the app
   ============================================================ */
.tarot-card {
  background: var(--parchment);
  color: var(--ink);
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.tarot-card .num-plate {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--burgundy);
  letter-spacing: .06em;
}
.tarot-card .glyph-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.tarot-card .glyph-wrap svg { width: 68%; height: 68%; }
.tarot-card .card-name { font-family: var(--font-display); font-size: 15px; text-align: center; font-weight: 600; margin-top: 6px; }
.tarot-card .frame-line { position: absolute; inset: 8px; border: 1px solid var(--burgundy); border-radius: 3px; pointer-events: none; opacity: .55; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 10px; }
.section-head p { color: var(--parchment-dim); margin-top: 14px; }

/* reading paths */
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.path-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 6px;
  transition: border-color .2s, transform .2s;
}
.path-card:hover { border-color: var(--brass); transform: translateY(-3px); }
.path-card .roman { font-family: var(--font-mono); color: var(--brass); font-size: 13px; }
.path-card h3 { font-size: 20px; margin: 10px 0 8px; }
.path-card p { color: var(--parchment-dim); font-size: 15px; margin: 0 0 14px; }
.path-card ul { margin: 0; padding-left: 18px; color: var(--slate); font-size: 14px; }

/* tool tabs (free tools) */
.tool-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.tool-tab {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--parchment-dim);
  padding: 10px 16px; border-radius: 30px; cursor: pointer; transition: all .2s;
}
.tool-tab.active, .tool-tab:hover { border-color: var(--brass); color: var(--brass-bright); }
.tool-panel { display: none; }
.tool-panel.active { display: block; }
.tool-daily-wrap { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.tool-daily-text { max-width: 420px; }

@media (max-width: 600px) {
  .tool-daily-wrap { flex-direction: column; gap: 20px; align-items: center; }
  .tool-daily-text { text-align: center; max-width: 100%; }
}
.spread-row { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 40px 0; }
.spread-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.spread-slot .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.spread-slot .tarot-card { width: 150px; height: 240px; }
.spread-slot .tarot-card.empty { background: var(--ink-3); border: 1px dashed var(--line); }

.yesno-result { text-align: center; padding: 40px 0; }
.yesno-result .answer { font-family: var(--font-display); font-size: 44px; color: var(--brass-bright); }

/* deck library */
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.deck-grid .tarot-card { height: 224px; cursor: pointer; }
.deck-grid .tarot-card:hover { outline: 1px solid var(--brass); }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,9,14,0.78);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--ink-2); border: 1px solid var(--brass); border-radius: 8px;
  max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 32px;
  position: relative;
}
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--parchment); font-size: 22px; cursor: pointer; }
.modal-header { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.modal-header .tarot-card { width: 100px; height: 160px; flex-shrink: 0; }
.modal-header h3 { font-size: 28px; }
.modal-header .roman { font-family: var(--font-mono); color: var(--brass); font-size: 13px; display: block; margin-bottom: 6px; }
.modal-body dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--brass); margin-top: 18px; }
.modal-body dd { margin: 6px 0 0; color: var(--parchment-dim); }
.keyword-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.keyword-row span { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); padding: 4px 9px; border-radius: 20px; color: var(--slate); }

/* journal */
.journal-form { display: grid; gap: 14px; max-width: 560px; }
.journal-form textarea, .journal-form input, .journal-form select {
  background: var(--ink-2); border: 1px solid var(--line); color: var(--parchment);
  padding: 12px 14px; border-radius: var(--radius); font-family: var(--font-body); font-size: 15px;
}
.journal-form textarea { min-height: 110px; resize: vertical; }
.journal-list { display: grid; gap: 14px; margin-top: 40px; }
.journal-entry { background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 16px 18px; border-radius: 4px; }
.journal-entry .meta { font-family: var(--font-mono); font-size: 11px; color: var(--slate); margin-bottom: 8px; display: flex; justify-content: space-between; }
.journal-entry .del { background: none; border: 0; color: var(--slate); cursor: pointer; font-family: var(--font-mono); font-size: 11px; }
.journal-entry .del:hover { color: var(--burgundy-bright); }

/* booking */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .booking-grid { grid-template-columns: 1fr; } }
.booking-form { display: grid; gap: 14px; }
.booking-form label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); display: block; margin-bottom: 6px; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); color: var(--parchment);
  padding: 11px 13px; border-radius: var(--radius); font-family: var(--font-body); font-size: 15px;
}
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-btn { font-family: var(--font-mono); font-size: 12px; padding: 8px 12px; border: 1px solid var(--line); background: var(--ink-2); color: var(--parchment-dim); border-radius: var(--radius); cursor: pointer; }
.slot-btn.selected, .slot-btn:hover { border-color: var(--brass); color: var(--brass-bright); }
.booking-note { font-size: 14px; color: var(--slate); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.form-status { font-family: var(--font-mono); font-size: 13px; margin-top: 8px; min-height: 18px; }
.form-status.ok { color: var(--brass-bright); }
.form-status.err { color: var(--burgundy-bright); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 20px; }
.plan { border: 1px solid var(--line); background: var(--ink-2); border-radius: 6px; padding: 26px; }
.plan.featured { border-color: var(--brass); }
.plan .price { font-family: var(--font-display); font-size: 32px; margin: 10px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--parchment-dim); font-size: 14px; }
.plan li::before { content: "— "; color: var(--brass); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--parchment); padding: 20px 0; font-family: var(--font-display); font-size: 18px; cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--parchment-dim); }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { margin: 0 0 20px; }

/* footer */
footer { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; color: var(--parchment-dim); font-size: 14px; }
footer a:hover { color: var(--brass-bright); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--brass); color: var(--ink); font-family: var(--font-mono); font-size: 13px; padding: 12px 20px; border-radius: 4px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.path-card { cursor: pointer; }
.path-card.selected {
  border-color: var(--brass);
  background: var(--ink-3);
  box-shadow: 0 0 0 1px var(--brass);
}
.path-card.selected .roman { color: var(--brass-bright); }

/* ============================================================
   LAUNCH POLISH — day tabs, pricing suffix, back-to-top,
   hero shimmer, mobile refinements, focus states
   ============================================================ */

/* pricing per-month suffix */
.plan .price .per { font-family: var(--font-mono); font-size: 14px; color: var(--slate); letter-spacing: .04em; }

/* booking day tabs */
.day-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.day-tab {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--parchment-dim);
  padding: 9px 12px; border-radius: var(--radius); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.day-tab:hover { border-color: var(--brass); color: var(--brass-bright); }
.day-tab.active { border-color: var(--brass); background: var(--ink-3); color: var(--brass-bright); }

/* back-to-top floating button */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brass); color: var(--ink);
  border: 1px solid var(--brass-bright);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--brass-bright); }

/* hero shimmer on brass elements — subtle, respects reduced motion */
@keyframes brass-shimmer {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}
.hero-card .face-back::after,
.hero-card .face-back { animation: brass-shimmer 4.5s ease-in-out infinite; }
.hero h1 em { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .hero-card .face-back, .hero-card .face-back::after { animation: none; }
}

/* mobile refinements */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .hero-grid { gap: 36px; }
  .hero-card { width: 180px; height: 292px; }
  .booking-form input, .booking-form select, .booking-form textarea { width: 100%; }
  .slot-btn, .day-tab { flex: 1 1 auto; min-height: 44px; }
  .back-to-top { bottom: 16px; right: 16px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 34px; }
  .hero-card { width: 150px; height: 244px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* FAQ touch targets — 44px minimum tap height */
.faq-q { min-height: 44px; }

/* keyboard focus for interactive cards & tabs */
.tarot-card:focus-visible, .path-card:focus-visible, .day-tab:focus-visible, .slot-btn:focus-visible, .tool-tab:focus-visible, .back-to-top:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}
/* ============================================================
   BRAND PILLARS  —  Feel / Heal / Align
   Each pillar owns one accent, so the three colours in the
   palette always read as the three stages of the practice.
   ============================================================ */
.pillars {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 520px;
}
.pillar {
  padding: 14px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--radius);
}
.pillar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.pillar span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate);
}
.pillar-feel  { border-top-color: var(--burgundy); }
.pillar-feel strong  { color: var(--burgundy-bright); }
.pillar-heal  { border-top-color: var(--brass); }
.pillar-heal strong  { color: var(--brass-bright); }
.pillar-align { border-top-color: var(--teal); }
.pillar-align strong { color: var(--teal-bright); }

@media (max-width: 620px) {
  .pillars { grid-template-columns: 1fr; max-width: none; }
}

/* ============================================================
   SOCIAL LINKS (footer)
   ============================================================ */
.social-links {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-links a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 13px;
  text-decoration: none;
  color: var(--parchment-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.social-links a:hover {
  color: var(--ink);
  background: var(--brass);
  border-color: var(--brass);
}
.social-links a:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 2px;
}
