/* ==========================================================================
   Lamoon Tarot — Obsidian Velvet & Antique Champagne Gold Editorial System
   Zero-bloat static CSS tuned for CWV (CLS=0, LCP<1s), SEO, GEO & AEO
   ========================================================================== */

:root {
  --bg: #0b0a0e;
  --bg-elev: #131118;
  --bg-card: #181421;
  --bg-card-hover: #1f1a2b;
  --gold: #d4b272;
  --gold-light: #ead2a2;
  --gold-dim: #9e7a3b;
  --ivory: #faf7f2;
  --muted: #b1a89d;
  --subtle: #7e766d;
  --border: rgba(212, 178, 114, 0.22);
  --border-strong: rgba(212, 178, 114, 0.48);
  --line-green: #06c755;
  --success: #79c49d;
  --warn: #e09f6d;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 22px 55px rgba(0, 0, 0, 0.55);
  --font-serif: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --font-sans: "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1140px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ivory);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.72;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(212, 178, 114, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 25%, rgba(124, 92, 168, 0.08), transparent 65%),
    var(--bg);
  color: var(--ivory);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--ivory);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #120f16;
  padding: 10px 18px;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 14, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #131018 !important;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(212, 178, 114, 0.25);
}

.nav-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold-light);
  border-radius: 10px;
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 65%, #be944c);
  color: #131018;
  box-shadow: 0 10px 30px rgba(212, 178, 114, 0.26);
}

.btn-primary:hover {
  color: #131018;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(212, 178, 114, 0.36);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--ivory);
}

.btn-secondary:hover {
  background: rgba(212, 178, 114, 0.1);
  border-color: var(--gold-light);
  color: var(--ivory);
}

.btn-line {
  background: rgba(6, 199, 85, 0.14);
  border-color: rgba(6, 199, 85, 0.45);
  color: #8bf5b2;
}

.btn-line:hover {
  background: rgba(6, 199, 85, 0.22);
  color: var(--ivory);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Typography & Sections ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "✦";
  font-size: 0.78rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--ivory);
  line-height: 1.22;
  margin-top: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-bottom: 8px;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--muted);
  max-width: 62ch;
}

section {
  padding: 64px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(24, 20, 33, 0.55), rgba(11, 10, 14, 0.2));
  border-top: 1px solid rgba(212, 178, 114, 0.11);
  border-bottom: 1px solid rgba(212, 178, 114, 0.11);
}

/* ---------- Hero ---------- */
.hero {
  padding: 58px 0 46px;
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(212, 178, 114, 0.08);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--gold-light);
}

.card-fan {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fan-card {
  position: absolute;
  width: 205px;
  border-radius: 14px;
  padding: 4px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dim));
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fan-card img {
  width: 100%;
  aspect-ratio: 560 / 835;
  object-fit: cover;
  border-radius: 10px;
  background: #131118;
}

.fan-card.left {
  transform: translateX(-115px) translateY(16px) rotate(-11deg);
  z-index: 1;
}

.fan-card.center {
  width: 225px;
  transform: translateY(-6px);
  z-index: 3;
}

.fan-card.right {
  transform: translateX(115px) translateY(16px) rotate(11deg);
  z-index: 2;
}

.card-fan:hover .fan-card.left {
  transform: translateX(-132px) translateY(10px) rotate(-14deg);
}

.card-fan:hover .fan-card.center {
  transform: translateY(-16px) scale(1.03);
}

.card-fan:hover .fan-card.right {
  transform: translateX(132px) translateY(10px) rotate(14deg);
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 0 10px;
}

.trust-item {
  background: rgba(24, 20, 33, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.38rem;
  color: var(--gold-light);
  line-height: 1.15;
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- AEO Direct Answer Box ---------- */
.aeo-answer {
  background: linear-gradient(145deg, rgba(212, 178, 114, 0.1), rgba(24, 20, 33, 0.92));
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.aeo-answer-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.aeo-answer p {
  margin: 0;
  color: var(--ivory);
  font-size: 1.02rem;
}

/* ---------- Grids & Surface Cards ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.surface {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.surface:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.surface p {
  color: var(--muted);
  margin-bottom: 0;
}

.surface-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 178, 114, 0.12);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* ---------- Steps ---------- */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 178, 114, 0.16);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

/* ---------- Comparison / Data Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 178, 114, 0.12);
  vertical-align: top;
}

th {
  background: rgba(212, 178, 114, 0.08);
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

/* ---------- Pricing Cards ---------- */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(212, 178, 114, 0.14), var(--bg-card) 55%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.badge-hot {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #131018;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.05;
}

.price-amount small {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "✓ ";
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Tarot Encyclopedia & Card Detail ---------- */
.tarot-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.search-input {
  flex: 1 1 260px;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--ivory);
  font: inherit;
  font-size: 0.95rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover,
.chip.active {
  background: rgba(212, 178, 114, 0.18);
  border-color: var(--gold);
  color: var(--gold-light);
}

.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 18px;
  content-visibility: auto;
}

.tarot-tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.tarot-tile-media {
  position: relative;
  padding: 10px 10px 0;
}

.tarot-tile img {
  width: 100%;
  aspect-ratio: 560 / 835;
  object-fit: cover;
  border-radius: 10px;
  background: #131118;
}

.tarot-tile-body {
  padding: 12px 14px 15px;
}

.tarot-tile-en {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.25;
}

.tarot-tile-th {
  font-size: 0.84rem;
  color: var(--gold-light);
  margin-top: 2px;
}

.tarot-tile-meta {
  font-size: 0.76rem;
  color: var(--subtle);
  margin-top: 6px;
}

/* Individual Card Detail */
.card-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}

.card-frame {
  padding: 6px;
  border-radius: 18px;
  background: linear-gradient(155deg, var(--gold-light), var(--gold-dim));
  box-shadow: var(--shadow-card);
}

.card-frame img {
  width: 100%;
  aspect-ratio: 560 / 835;
  object-fit: cover;
  border-radius: 13px;
  background: #131118;
}

.meta-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.meta-fact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}

.meta-fact dt {
  font-size: 0.74rem;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-fact dd {
  margin: 3px 0 0;
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.kw-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.kw-tag {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(212, 178, 114, 0.1);
  border: 1px solid var(--border);
  color: var(--gold-light);
}

.kw-tag.rev {
  background: rgba(224, 159, 109, 0.1);
  border-color: rgba(224, 159, 109, 0.35);
  color: #f3c4a2;
}

.domain-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.domain-box h3 {
  font-size: 1.08rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.domain-box p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--subtle);
  margin: 22px 0 18px;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--gold-dim);
}

.breadcrumb a {
  color: var(--muted);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

details.faq-item[open] {
  border-color: var(--border-strong);
}

details.faq-item summary {
  font-weight: 600;
  color: var(--ivory);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

details.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 400;
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 178, 114, 0.14);
  color: var(--muted);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(212, 178, 114, 0.16), transparent 70%),
    linear-gradient(145deg, #1a1524, #120f19);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08070b;
  padding: 48px 0 34px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(212, 178, 114, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--subtle);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pager a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--ivory);
  font-size: 0.9rem;
}

.pager a:hover {
  border-color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .card-hero {
    grid-template-columns: 1fr;
  }

  .card-fan {
    min-height: 310px;
  }

  .fan-card {
    width: 158px;
  }

  .fan-card.center {
    width: 176px;
  }

  .fan-card.left {
    transform: translateX(-88px) translateY(14px) rotate(-10deg);
  }

  .fan-card.right {
    transform: translateX(88px) translateY(14px) rotate(10deg);
  }

  .trust-bar,
  .grid-4,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 10, 14, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 22px;
    gap: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .grid-2,
  .trust-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 46px 0;
  }

  .cta-banner {
    padding: 28px 22px;
  }

  .card-frame {
    max-width: 260px;
    margin: 0 auto;
  }
}
