/* ============================================================
   Snap Tarot — site styles
   Aesthetic: restrained hermetic gravitas.
   Deep night ground, warm bone ink, antique gold hairlines.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Spectral:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --bg:        #0b0913;
  --bg-2:      #100c1c;
  --surface:   rgba(255, 252, 245, 0.028);
  --surface-2: rgba(255, 252, 245, 0.05);
  --ink:       #ece4d6;
  --ink-soft:  #b6adbf;
  --ink-faint: #837b8e;
  --gold:      #c8a86a;
  --gold-lit:  #e6c98c;
  --line:      rgba(200, 168, 106, 0.22);
  --line-soft: rgba(236, 228, 214, 0.10);
  --maxw:      72rem;

  --serif-display: 'Cormorant Garamond', 'Hoefler Text', Garamond, 'Times New Roman', serif;
  --serif-body:    'Spectral', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmospheric ground: a low candle-glow + a fine grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(120, 96, 168, 0.16), transparent 55%),
    radial-gradient(90% 60% at 80% 110%, rgba(200, 168, 106, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.6rem; }
section { padding: 5.5rem 0; }
.narrow { max-width: 40rem; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif-display); font-weight: 500; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.005em; }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1.1rem; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 500; }

.eyebrow {
  font-family: var(--serif-body);
  font-weight: 400;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin: 0 0 1.2rem;
}

.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink); font-weight: 300; }

a { color: var(--gold-lit); text-decoration: none; }
a:hover { color: var(--ink); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; opacity: 0.7; }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 9, 19, 0.6);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-family: var(--serif-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); display: flex; align-items: center; gap: 0.6rem; }
.brand .mark { width: 1.05rem; height: 1.05rem; color: var(--gold); }
.navlinks { display: flex; gap: 1.8rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; }
.navlinks a { color: var(--ink-soft); }
.navlinks a:hover { color: var(--gold-lit); }
@media (max-width: 620px) { .navlinks { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: 4rem; padding-bottom: 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; } .hero-card { order: -1; } }

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .amp { color: var(--gold); font-style: italic; }
.hero .lead { max-width: 32rem; margin-bottom: 2.2rem; }
@media (max-width: 860px) { .hero .lead { margin-left: auto; margin-right: auto; } }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) { .cta-row { justify-content: center; } }

.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.9rem; letter-spacing: 0.04em;
  background: var(--surface);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.badge:hover { border-color: var(--gold); background: var(--surface-2); transform: translateY(-1px); color: var(--ink); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.note-soft { color: var(--ink-faint); font-size: 0.85rem; letter-spacing: 0.03em; }

/* The illustrated card */
.hero-card { display: flex; justify-content: center; }
.card-emblem {
  width: min(20rem, 80vw);
  aspect-ratio: 0.62;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  background:
    radial-gradient(80% 55% at 50% 22%, rgba(200,168,106,0.10), transparent 70%),
    linear-gradient(180deg, rgba(255,252,245,0.04), rgba(255,252,245,0.012));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), inset 0 0 60px rgba(0,0,0,0.35);
  position: relative;
}
.card-emblem::after {
  content: ""; position: absolute; inset: 0.5rem; border: 1px solid var(--line-soft); border-radius: 4px; pointer-events: none;
}
.card-emblem svg { width: 100%; height: 100%; display: block; }

/* ---------- Generic feature blocks ---------- */
.block-head { max-width: 38rem; margin-bottom: 3rem; }
@media (max-width: 860px) { .block-head { margin-left: auto; margin-right: auto; text-align: center; } }

/* Modes list */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }
.mode {
  background: var(--bg-2);
  padding: 1.8rem 1.7rem;
  transition: background 0.35s ease;
}
.mode:hover { background: #161122; }
.mode .num { font-family: var(--serif-display); font-style: italic; color: var(--gold); font-size: 1rem; }
.mode h3 { margin: 0.35rem 0 0.4rem; }
.mode .desc { color: var(--ink-soft); font-style: italic; margin: 0; font-size: 1.02rem; }
.mode .sub { color: var(--ink-faint); font-size: 0.85rem; margin: 0.5rem 0 0; }

.daily-card {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.7rem 1.8rem;
  background: radial-gradient(120% 140% at 0% 0%, rgba(200,168,106,0.06), transparent 60%), var(--surface);
  display: flex; gap: 1.4rem; align-items: flex-start;
}
.daily-card .ico { color: var(--gold); flex: none; margin-top: 0.2rem; }
.daily-card h3 { margin-bottom: 0.3rem; }
.daily-card p { margin: 0; }

/* Pricing */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: stretch; }
@media (max-width: 720px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 2rem 1.9rem;
  background: var(--surface);
}
.tier.featured { border-color: var(--line); background: radial-gradient(140% 120% at 100% 0%, rgba(200,168,106,0.08), transparent 55%), var(--surface); }
.tier .tier-label { font-family: var(--serif-body); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; color: var(--gold); margin-bottom: 0.8rem; }
.tier h3 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.tier ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.tier li { color: var(--ink-soft); padding: 0.45rem 0 0.45rem 1.5rem; position: relative; border-top: 1px solid var(--line-soft); }
.tier li:first-child { border-top: 0; }
.tier li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.7rem; }
.prices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 0.3rem; }
.prices .p { font-family: var(--serif-display); }
.prices .p b { font-size: 1.6rem; color: var(--ink); font-weight: 500; }
.prices .p span { color: var(--ink-faint); font-size: 0.85rem; letter-spacing: 0.04em; }

/* ---------- Quote / framing pull ---------- */
.framing { text-align: center; }
.framing .quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 46rem;
  margin: 0 auto 1.6rem;
  font-weight: 400;
}
.framing .quote .gold { color: var(--gold); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 3rem 0 4rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; align-items: flex-start; }
footer .brand { font-size: 1.1rem; }
.foot-links { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--gold-lit); }
.credit { color: var(--ink-faint); font-size: 0.82rem; max-width: 26rem; line-height: 1.6; }

/* ---------- Document pages (privacy / support) ---------- */
.doc { padding-top: 3.5rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 0.6rem; }
.doc .updated { color: var(--ink-faint); font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.5rem; margin: 2.6rem 0 0.8rem; }
.doc h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; color: var(--ink); }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.5rem; }
.doc .placeholder { color: var(--gold-lit); background: rgba(200,168,106,0.08); padding: 0 0.3em; border-radius: 2px; }
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  margin: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
}
.callout p { margin: 0; color: var(--ink-soft); }
.back-link { display: inline-block; margin-bottom: 2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; }

.faq { margin-top: 1rem; }
.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 1.1rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif-display); font-size: 1.3rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--serif-body); font-size: 1.4rem; transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.9rem 0 0.2rem; }

/* ---------- Entrance motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.rise { opacity: 0; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.18s; } .d3 { animation-delay: 0.31s; }
.d4 { animation-delay: 0.44s; } .d5 { animation-delay: 0.57s; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; } }
