/* Public share landing pages — REQ-352, REQ-372.
   v2.0 (REQ-267): tokens from brand-tokens.css, consumed never re-declared;
   Cormorant Garamond for display and body, JetBrains Mono for labels, Inter
   for the one primary button (`.btn-submit` in auth.css is the reference).
   The share pages used to layer on tarotscope-base.css (v1.0, the parchment
   palette) and read as a different product from the app that minted them
   (prototype review, 2026-10-28). Mobile-first per REQ-372. */

/* ═══════ RESET + SHELL ═══════ (tarotscope-base.css used to provide these) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.share-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-display);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }

.share-topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  min-height: 68px;
  border-bottom: 1px solid var(--line-soft);
}
.share-wordmark {
  /* The official SVG wordmark (REQ-499), the header's own height. 44px hit-area floor. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.share-wordmark img { height: 22px; width: auto; display: block; }
@media (max-width: 420px) { .share-wordmark img { height: 18px; } }

.share-main {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  width: 100%;
}

/* ═══════ HERO ═══════ */
.share-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0 2.5rem;
  text-align: center;
}
.share-card-frame {
  position: relative;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 0;
  background: var(--bg-2);
  max-width: 320px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.share-tarot-card {
  display: block;
  width: 100%;
  height: auto;
}
.share-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.share-eyebrow {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.share-archetype-l1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.share-archetype-l2 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-2);
  letter-spacing: 0.01em;
}

/* ═══════ SECTIONS ═══════ */
.share-section {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line-soft);
}
.share-section-title {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
}

/* Layer 2 paragraph — italic literary tone */
.share-layer2 p {
  font-family: var(--f-display);
  font-style: normal;
  font-size: var(--read-size);
  line-height: var(--read-lh);
  color: var(--text);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
}

/* Layer 3 body */
.share-layer3-body {
  font-family: var(--f-display);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre-wrap;
}
.share-layer3-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Locked deep-dive tags — gold underline + lock cursor on click */
.share-fact-locked,
.share-landing .astro-fact {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 0.18em;
  cursor: pointer;
  transition: color var(--t) var(--ease);
}
.share-landing .astro-fact:hover {
  color: var(--gold);
}

/* Variant B greeting — slightly emphasized vs the generic public attribution. */
.share-eyebrow--direct {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

/* ═══════ MODE LOCK INDICATOR ═══════ */
.share-mode-lock {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  align-items: center;
}
.share-mode-active,
.share-mode-locked-other,
.share-mode-other-available {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 1rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.share-mode-active {
  color: var(--gold);
  border: 1px solid var(--gold);
}
.share-mode-locked-other {
  color: var(--text-3);
  border: 1px solid var(--line);
  cursor: not-allowed;
}
/* Variant B — the other mode is available (REQ-353): clickable, not locked. */
.share-mode-other-available {
  color: var(--text-2);
  border: 1px solid var(--gold-dim);
  cursor: pointer;
}
.share-mode-other-available:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.share-lock-icon {
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

/* ═══════ CTA ═══════ */
.share-cta {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
}
.share-cta-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--text);
  margin-bottom: 0.8rem;
}
.share-cta-sub {
  font-family: var(--f-display);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}
/* The primary button — `.btn-submit` (auth.css) / `.btn-primary` (dashboard.css). */
.share-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.share-cta-btn:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
}
.share-cta-btn:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}
.share-cta-foot {
  margin-top: 1.2rem;
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-3);
}

/* ═══════ FOOTER (the legacy landings' own; the daily uses _footer.html) ═══════ */
.share-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--f-display);
  font-size: 0.95rem;
  color: var(--text-3);
  border-top: 1px solid var(--line-soft);
}
.share-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--text-2);
  text-decoration: none;
  margin: 0 0.2rem;
}
.share-footer a:hover {
  color: var(--gold);
}
.share-anonymized-note {
  margin-top: 0.8rem;
  font-style: normal;
  color: var(--read-color, var(--cream));
  font-size: var(--read-size);
  line-height: var(--read-lh);
}

/* ═══════ UNAVAILABLE / DENIED PAGE ═══════ */
.share-landing-unavailable .share-unavailable-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.share-landing-unavailable h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.share-landing-unavailable p {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--text-2);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}
/* REQ-810: which account the reading was sent to — masked — and which one is signed in. */
.share-recipient {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.share-recipient strong { color: var(--gold); font-weight: 400; }
.share-mismatch {
  font-size: 1.05rem;
  color: var(--text-2);
}
.share-unavailable-main form { margin-top: 0.4rem; }
.share-unavailable-main .share-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.2rem;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
}
.share-unavailable-main .share-home:hover { color: var(--gold); }

/* ═══════ MOBILE TUNING ═══════ */
@media (max-width: 540px) {
  .share-card-frame { max-width: 240px; }
  .share-section { padding: 1.4rem 0; }
  .share-cta { padding: 2rem 1.1rem; margin-top: 2rem; }
  .share-cta-btn { width: 100%; }
  .share-mode-lock { flex-direction: column; gap: 0.4rem; }
}
