.tarot-product-page {
  --tarot-ink: #242623;
  --tarot-muted: #63645e;
  --tarot-blue: #123848;
  --tarot-blue-deep: #082733;
  --tarot-gold: #c79a47;
  --tarot-gold-dark: #966c25;
  --tarot-orange: #d96f2b;
  --tarot-cream: #f7eddd;
  --tarot-paper: #fffaf1;
  --tarot-line: rgba(88, 69, 42, 0.18);
  --tarot-shadow: 0 24px 65px rgba(23, 31, 29, 0.12);
  --tarot-radius: 1.5rem;
  --tarot-header-offset: 4.5rem;
  color: var(--tarot-ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(199, 154, 71, 0.11), transparent 26rem),
    radial-gradient(circle at 92% 46%, rgba(18, 56, 72, 0.08), transparent 30rem),
    var(--tarot-cream);
  font-family: var(--misti-font-body);
  overflow: clip;
}

.tarot-product-page *,
.tarot-product-page *::before,
.tarot-product-page *::after {
  box-sizing: border-box;
}

/* nav-menu.css eleva todos los <header>; los encabezados editoriales no son capas de navegación. */
.tarot-product-page header {
  z-index: auto;
}

.tarot-product-page h1,
.tarot-product-page h2,
.tarot-product-page h3 {
  margin-top: 0;
  color: var(--tarot-blue-deep);
  font-family: var(--misti-font-display);
}

.tarot-product-page p,
.tarot-product-page li,
.tarot-product-page a,
.tarot-product-page button,
.tarot-product-page summary {
  font-family: var(--misti-font-body);
}

.tarot-product-page p {
  color: var(--tarot-muted);
  line-height: 1.72;
}

.tarot-product-page a {
  text-decoration: none;
}

.tarot-product-page img {
  max-width: 100%;
}

.tarot-product-page .tarot-anchor {
  scroll-margin-top: calc(var(--tarot-header-offset) + 1rem);
}

.tarot-product-page a:focus-visible,
.tarot-product-page button:focus-visible,
.tarot-product-page summary:focus-visible {
  outline: 3px solid rgba(217, 111, 43, 0.72);
  outline-offset: 4px;
}

.tarot-shell {
  width: min(100% - 3rem, 1280px);
  margin-inline: auto;
}

.tarot-section {
  padding-block: clamp(4.25rem, 7vw, 6.5rem);
}

.tarot-eyebrow {
  display: inline-block;
  color: var(--tarot-orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tarot-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.tarot-heading h2,
.tarot-intro h2,
.tarot-library h2,
.tarot-reports h2,
.tarot-local h2,
.tarot-final-cta h2 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.1rem, 4.1vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.tarot-heading p {
  max-width: 690px;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.tarot-heading--light h2,
.tarot-heading--light p,
.tarot-heading--light .tarot-eyebrow {
  color: var(--tarot-cream);
}

.tarot-heading--light .tarot-eyebrow {
  color: #f0bd67;
}

.tarot-hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  padding: calc(var(--tarot-header-offset) + clamp(1.5rem, 3vw, 2.5rem)) 0 clamp(4rem, 7vw, 6.25rem);
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(8, 39, 51, 0.98), rgba(18, 56, 72, 0.94)),
    var(--tarot-blue-deep);
}

.tarot-hero::before,
.tarot-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(230, 187, 104, 0.19);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.tarot-hero::before {
  top: -25rem;
  right: -15rem;
  width: 50rem;
  height: 50rem;
  box-shadow: inset 0 0 0 4rem rgba(199, 154, 71, 0.025);
}

.tarot-hero::after {
  bottom: -20rem;
  left: -22rem;
  width: 42rem;
  height: 42rem;
}

.tarot-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.82rem;
}

.tarot-breadcrumbs a,
.tarot-breadcrumbs a:visited {
  color: rgba(255, 250, 241, 0.78);
}

.tarot-breadcrumbs a:hover {
  color: #fff;
}

.tarot-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(500px, 1.04fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6.5rem);
}

.tarot-hero__copy {
  min-width: 0;
}

.tarot-hero .tarot-eyebrow {
  color: #f0bd67;
}

.tarot-hero h1 {
  max-width: 690px;
  margin: 0.85rem 0 1.4rem;
  color: #fff8ea;
  font-size: clamp(3.1rem, 4.8vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.047em;
  line-height: 0.98;
}

.tarot-hero__lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 250, 241, 0.8) !important;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.tarot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.tarot-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.78rem 1.15rem 0.78rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tarot-button--primary,
.tarot-button--primary:visited {
  color: #fffaf1;
  background: var(--tarot-orange);
}

.tarot-button--primary:hover {
  color: #fff;
  background: #b94f16;
  transform: translateY(-2px);
}

.tarot-button--secondary,
.tarot-button--secondary:visited {
  color: #fffaf1;
  border-color: rgba(255, 250, 241, 0.33);
  background: rgba(255, 255, 255, 0.06);
}

.tarot-button--secondary:hover {
  color: #fff;
  border-color: rgba(255, 250, 241, 0.68);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.tarot-button:active {
  transform: translateY(0);
}

.tarot-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 250, 241, 0.72) !important;
  font-size: 0.82rem;
  font-weight: 650;
}

.tarot-status span {
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid #f0bd67;
  border-radius: 50%;
}

.tarot-hero__device {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.tarot-hero__screen {
  padding: 0.65rem;
  border: 1px solid rgba(240, 189, 103, 0.44);
  border-radius: 1.2rem;
  background: #131b1f;
  box-shadow: 0 38px 85px rgba(0, 0, 0, 0.37);
}

.tarot-hero__screenbar {
  display: flex;
  height: 1.85rem;
  align-items: center;
  gap: 0.36rem;
  padding: 0 0.45rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.65rem;
}

.tarot-hero__screenbar span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(240, 189, 103, 0.53);
}

.tarot-hero__screenbar strong {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tarot-hero__screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.55rem;
  object-fit: contain;
}

.tarot-hero__device-base {
  width: 78%;
  height: 0.65rem;
  margin: 0 auto;
  border-radius: 0 0 3rem 3rem;
  background: linear-gradient(180deg, #d5b373, #80602c);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.24);
}

.tarot-hero__device figcaption {
  margin-top: 1rem;
  color: rgba(255, 250, 241, 0.62);
  font-size: 0.75rem;
}

.tarot-jump-nav {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--tarot-line);
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 9px 25px rgba(27, 43, 38, 0.06);
}

.tarot-jump-nav .tarot-shell {
  display: flex;
  gap: 0.3rem;
  padding-block: 0.45rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tarot-jump-nav a,
.tarot-jump-nav a:visited {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  color: var(--tarot-blue);
  border-radius: 0.65rem;
  font-size: 0.78rem;
  font-weight: 750;
}

.tarot-jump-nav a:hover {
  color: #fff;
  background: var(--tarot-blue);
}

.tarot-intro__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(2rem, 4vw, 3.6rem);
  border: 1px solid var(--tarot-line);
  border-radius: var(--tarot-radius);
  background: rgba(255, 250, 241, 0.83);
  box-shadow: var(--tarot-shadow);
}

.tarot-intro h2 {
  margin-bottom: 0;
}

.tarot-intro__copy > p:first-child {
  margin-top: 0;
}

.tarot-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.tarot-facts span {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--tarot-gold);
  border-radius: 0.35rem 0.8rem 0.8rem 0.35rem;
  color: var(--tarot-muted);
  background: #fff;
  font-size: 0.82rem;
}

.tarot-facts strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--tarot-blue-deep);
  font-size: 1.15rem;
}

.tarot-workflow {
  position: relative;
  background: var(--tarot-blue-deep);
}

.tarot-workflow__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarot-workflow__grid li {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid rgba(240, 189, 103, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
}

.tarot-workflow__grid li:last-child {
  grid-column: span 2;
}

.tarot-workflow__number {
  display: block;
  margin-bottom: 1rem;
  color: #f0bd67;
  font-size: 1.45rem;
  font-weight: 800;
}

.tarot-workflow h3 {
  margin-bottom: 0.55rem;
  color: #fff8ea;
  font-size: 1.25rem;
}

.tarot-workflow p {
  margin: 0;
  color: rgba(255, 250, 241, 0.68);
  font-size: 0.88rem;
}

.tarot-spreads__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.1rem;
}

.tarot-spread-card {
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid var(--tarot-line);
  border-radius: 1.15rem;
  background: var(--tarot-paper);
  box-shadow: 0 16px 38px rgba(42, 43, 34, 0.07);
}

.tarot-spread-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tarot-spread-card__header span {
  color: var(--tarot-gold-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.tarot-spread-card__header strong {
  padding: 0.35rem 0.65rem;
  color: var(--tarot-blue);
  border: 1px solid rgba(18, 56, 72, 0.16);
  border-radius: 999px;
  font-size: 0.72rem;
}

.tarot-spread-diagram {
  display: grid;
  min-height: 156px;
  place-content: center;
  gap: 0.28rem;
  margin: 1.2rem 0;
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(18, 56, 72, 0.07), rgba(199, 154, 71, 0.1)),
    #f9f1e5;
}

.tarot-spread-diagram i {
  display: block;
  width: 2.45rem;
  aspect-ratio: 0.64;
  border: 1px solid rgba(199, 154, 71, 0.66);
  border-radius: 0.24rem;
  background:
    radial-gradient(circle, rgba(240, 189, 103, 0.45) 0 11%, transparent 12%),
    linear-gradient(135deg, #173f4d, #0b2a36);
  box-shadow: 0 5px 10px rgba(8, 39, 51, 0.16);
}

.tarot-spread-diagram.is-three {
  grid-template-columns: repeat(3, auto);
}

.tarot-spread-diagram.is-celtic {
  grid-template-columns: repeat(5, auto);
}

.tarot-spread-diagram.is-celtic i {
  width: 1.75rem;
}

.tarot-spread-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
}

.tarot-spread-card p {
  margin: 0;
  font-size: 0.9rem;
}

.tarot-contexts {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--tarot-line);
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.72);
}

.tarot-contexts > span {
  flex: 0 0 auto;
  color: var(--tarot-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tarot-contexts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarot-contexts li {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: #fff;
  background: var(--tarot-blue);
  font-size: 0.72rem;
}

.tarot-library {
  background: #efe0ca;
}

.tarot-library__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.tarot-library__copy {
  position: sticky;
  top: calc(var(--tarot-header-offset) + 1.5rem);
}

.tarot-library__copy p {
  font-size: 1.02rem;
}

.tarot-deck-count {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.tarot-deck-count div {
  padding: 1.15rem;
  border: 1px solid rgba(150, 108, 37, 0.27);
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.72);
}

.tarot-deck-count strong {
  display: block;
  color: var(--tarot-gold-dark);
  font-family: var(--misti-font-display);
  font-size: 2.2rem;
  line-height: 1;
}

.tarot-deck-count span {
  display: block;
  margin-top: 0.5rem;
  color: var(--tarot-blue);
  font-size: 0.76rem;
  font-weight: 750;
}

.tarot-library__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tarot-library__features article,
.tarot-interpretation__grid article,
.tarot-continuity__features article {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--tarot-line);
  border-radius: 1rem;
}

.tarot-library__features article {
  background: rgba(255, 250, 241, 0.78);
}

.tarot-library__features h3,
.tarot-interpretation__grid h3,
.tarot-continuity__features h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.tarot-library__features p,
.tarot-interpretation__grid p,
.tarot-continuity__features p {
  margin: 0;
  font-size: 0.88rem;
}

.tarot-interpretation {
  background:
    radial-gradient(circle at 90% 10%, rgba(199, 154, 71, 0.12), transparent 23rem),
    var(--tarot-blue);
}

.tarot-interpretation__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.tarot-interpretation__grid article {
  border-color: rgba(240, 189, 103, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.tarot-interpretation__grid h3 {
  color: #fff8ea;
}

.tarot-interpretation__grid p {
  color: rgba(255, 250, 241, 0.7);
}

.tarot-continuity__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tarot-continuity__features article {
  background: var(--tarot-paper);
}

.tarot-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
  gap: 1.2rem;
}

.tarot-gallery__item {
  min-width: 0;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid rgba(150, 108, 37, 0.32);
  border-radius: 1rem;
  background: #fff8ec;
  box-shadow: 0 18px 48px rgba(48, 44, 33, 0.1);
}

.tarot-gallery__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.65rem;
  background: var(--tarot-blue-deep);
  cursor: zoom-in;
}

.tarot-gallery__open img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.tarot-gallery__open > span {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.45rem 0.65rem;
  color: #fff;
  border-radius: 0.55rem;
  background: rgba(8, 39, 51, 0.9);
  font-size: 0.72rem;
  font-weight: 750;
}

.tarot-gallery__open:hover img {
  opacity: 0.84;
}

.tarot-gallery__item figcaption {
  padding: 0.72rem 0.3rem 0.18rem;
  color: var(--tarot-muted);
  font-size: 0.78rem;
}

.tarot-reports {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 39, 51, 0.97), rgba(18, 56, 72, 0.94)),
    var(--tarot-blue-deep);
}

.tarot-reports__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.tarot-reports h2,
.tarot-reports p {
  color: #fff8ea;
}

.tarot-reports p {
  color: rgba(255, 250, 241, 0.72);
}

.tarot-reports__document {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem;
  border: 1px solid rgba(240, 189, 103, 0.32);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.07);
}

.tarot-reports__document > span {
  display: grid;
  flex: 0 0 4.5rem;
  height: 5.5rem;
  place-items: center;
  color: var(--tarot-blue-deep);
  border-radius: 0.45rem 0.45rem 0.9rem 0.45rem;
  background: #fff8ea;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.tarot-reports__document strong {
  color: #fff8ea;
}

.tarot-reports__document p {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
}

.tarot-local__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.tarot-local__note {
  padding: 1.35rem;
  border-left: 4px solid var(--tarot-gold);
  border-radius: 0.4rem 1rem 1rem 0.4rem;
  background: var(--tarot-paper);
  box-shadow: 0 16px 40px rgba(48, 44, 33, 0.08);
}

.tarot-local__note strong {
  color: var(--tarot-blue);
}

.tarot-local__note p {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}

.tarot-requirements {
  padding-top: 0;
}

.tarot-requirements__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarot-requirements__grid li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--tarot-line);
  border-radius: 0.9rem;
  background: var(--tarot-paper);
  color: var(--tarot-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.tarot-requirements__grid li span {
  flex: 0 0 auto;
  color: var(--tarot-orange);
  font-weight: 900;
}

.tarot-faq {
  border-top: 1px solid var(--tarot-line);
  background: rgba(255, 250, 241, 0.5);
}

.tarot-faq__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.tarot-faq .tarot-heading {
  position: sticky;
  top: calc(var(--tarot-header-offset) + 1.5rem);
  margin-bottom: 0;
}

.tarot-faq__list {
  min-width: 0;
}

.tarot-faq details {
  border-bottom: 1px solid var(--tarot-line);
}

.tarot-faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  color: var(--tarot-blue-deep);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

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

.tarot-faq summary::after {
  position: absolute;
  top: 1.1rem;
  right: 0;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid var(--tarot-line);
  border-radius: 50%;
  content: "+";
}

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

.tarot-faq details p {
  margin: -0.25rem 0 1.25rem;
  padding-right: 2rem;
  font-size: 0.9rem;
}

.tarot-final-cta {
  padding: 0 0 clamp(4rem, 7vw, 6.5rem);
}

.tarot-commercial-band {
  background: #efe4cd;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.tarot-commercial-band__panel {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tarot-commercial-band h2 {
  color: var(--tarot-blue);
  font-family: var(--misti-font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0;
  max-width: 760px;
}

.tarot-legal-link,
.tarot-legal-link:visited {
  color: #f7ead1;
  display: inline-block;
  font-weight: 750;
  margin-top: 0.75rem;
  text-decoration-color: rgba(247, 234, 209, 0.55);
  text-underline-offset: 0.25em;
}

.tarot-legal-link:hover,
.tarot-legal-link:focus-visible {
  color: #fff;
}

.tarot-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.tarot-final-cta__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(240, 189, 103, 0.29);
  border-radius: var(--tarot-radius);
  background:
    linear-gradient(112deg, rgba(8, 39, 51, 0.98), rgba(18, 56, 72, 0.94)),
    var(--tarot-blue-deep);
  box-shadow: var(--tarot-shadow);
}

.tarot-final-cta__panel > div {
  max-width: 760px;
}

.tarot-final-cta h2 {
  margin-bottom: 0.7rem;
  color: #fff8ea;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.tarot-final-cta p {
  margin: 0;
  color: rgba(255, 250, 241, 0.72);
}

.tarot-final-cta .tarot-eyebrow {
  color: #f0bd67;
}

.tarot-button--light,
.tarot-button--light:visited {
  flex: 0 0 auto;
  color: var(--tarot-blue-deep);
  background: #fff8ea;
}

.tarot-button--light:hover {
  color: #fff;
  background: var(--tarot-orange);
  transform: translateY(-2px);
}

body.tarot-modal-open {
  overflow: hidden;
}

.tarot-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(0.75rem, 2.5vw, 2rem);
  overflow: auto;
  border: 0;
  background: rgba(3, 16, 21, 0.86);
}

.tarot-modal:not([open]) {
  display: none;
}

.tarot-modal[open] {
  display: grid;
  place-items: center;
}

.tarot-modal::backdrop {
  background: transparent;
}

.tarot-modal__dialog {
  width: min(1180px, 100%);
  max-height: calc(100dvh - clamp(1.5rem, 5vw, 4rem));
  overflow: auto;
  border: 1px solid rgba(240, 189, 103, 0.3);
  border-radius: 1rem;
  background: #fffaf1;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.tarot-modal__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--tarot-line);
  background: rgba(255, 250, 241, 0.97);
}

.tarot-modal__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.tarot-modal__close,
.tarot-modal__nav {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--tarot-line);
  border-radius: 50%;
  color: var(--tarot-blue-deep);
  background: #fff;
  cursor: pointer;
}

.tarot-modal__close {
  font-size: 1.55rem;
}

.tarot-modal__close:hover,
.tarot-modal__nav:hover {
  color: #fff;
  border-color: var(--tarot-blue);
  background: var(--tarot-blue);
}

.tarot-modal__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.tarot-modal__body figure {
  min-width: 0;
  margin: 0;
}

.tarot-modal__body img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 10rem);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.tarot-modal__body figcaption {
  padding-top: 0.8rem;
  color: var(--tarot-muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 1060px) {
  .tarot-hero__grid {
    grid-template-columns: 1fr;
  }

  .tarot-hero__copy {
    max-width: 790px;
  }

  .tarot-hero__device {
    width: min(100%, 860px);
    margin-inline: auto;
  }

  .tarot-workflow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tarot-workflow__grid li:last-child {
    grid-column: auto;
  }

  .tarot-interpretation__grid,
  .tarot-continuity__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .tarot-commercial-band__panel {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .tarot-commercial-band__panel .tarot-button {
    width: 100%;
  }

  .tarot-shell {
    width: min(100% - 2rem, 1280px);
  }

  .tarot-section {
    padding-block: 3.8rem;
  }

  .tarot-intro__panel,
  .tarot-library__grid,
  .tarot-reports__grid,
  .tarot-local__grid,
  .tarot-faq__layout {
    grid-template-columns: 1fr;
  }

  .tarot-library__copy,
  .tarot-faq .tarot-heading {
    position: static;
  }

  .tarot-spreads__grid {
    grid-template-columns: 1fr;
  }

  .tarot-spread-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.38fr) minmax(0, 0.62fr);
    column-gap: 1.4rem;
  }

  .tarot-spread-card__header,
  .tarot-spread-diagram {
    grid-column: 1;
  }

  .tarot-spread-card h3,
  .tarot-spread-card p {
    grid-column: 2;
  }

  .tarot-spread-card h3 {
    grid-row: 1;
    align-self: end;
  }

  .tarot-spread-card p {
    grid-row: 2;
    margin-top: 0.4rem;
  }

  .tarot-spread-diagram {
    grid-row: 2 / span 2;
  }

  .tarot-reports__grid {
    align-items: start;
  }

  .tarot-requirements__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tarot-final-cta__panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .tarot-shell {
    width: min(100% - 1.35rem, 1280px);
  }

  .tarot-hero {
    min-height: 0;
    padding-top: calc(var(--tarot-header-offset) + 1.15rem);
  }

  .tarot-breadcrumbs {
    margin-bottom: 2.2rem;
  }

  .tarot-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .tarot-actions,
  .tarot-button {
    width: 100%;
  }

  .tarot-jump-nav .tarot-shell {
    width: 100%;
    padding-inline: 0.68rem;
  }

  .tarot-intro__panel {
    padding: 1.35rem;
  }

  .tarot-facts,
  .tarot-workflow__grid,
  .tarot-library__features,
  .tarot-interpretation__grid,
  .tarot-continuity__features,
  .tarot-gallery,
  .tarot-requirements__grid {
    grid-template-columns: 1fr;
  }

  .tarot-contexts {
    align-items: flex-start;
    flex-direction: column;
  }

  .tarot-spread-card {
    display: block;
  }

  .tarot-deck-count {
    grid-template-columns: 1fr;
  }

  .tarot-gallery__item {
    padding: 0.45rem;
  }

  .tarot-reports__document {
    align-items: flex-start;
  }

  .tarot-modal {
    padding: 0.55rem;
  }

  .tarot-modal__dialog {
    max-height: calc(100dvh - 1.1rem);
  }

  .tarot-modal__body {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.65rem;
  }

  .tarot-modal__body figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .tarot-modal__nav {
    width: 100%;
    border-radius: 0.65rem;
  }

  .tarot-modal__nav--prev {
    grid-column: 1;
  }

  .tarot-modal__nav--next {
    grid-column: 2;
  }

  .tarot-modal__body img {
    max-height: calc(100dvh - 12rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-product-page *,
  .tarot-product-page *::before,
  .tarot-product-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
