@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  color-scheme: dark;
  --bg: #14110e;
  --bg-elevated: #1c1814;
  --ink: #f3ebe0;
  --ink-soft: #d8cfc3;
  --muted: #9a9086;
  --line: rgba(243, 235, 224, 0.12);
  --line-strong: rgba(243, 235, 224, 0.22);
  --card: rgba(28, 24, 20, 0.82);
  --card-solid: #1c1814;
  --accent: #c4a574;
  --accent-deep: #a8844f;
  --accent-soft: rgba(196, 165, 116, 0.16);
  --ok: #8fbc8f;
  --err: #d98989;
  --radius: 10px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 44rem;
  --page-bg-image:
    radial-gradient(ellipse 90% 55% at 80% 0%, rgba(196, 165, 116, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 10% 100%, rgba(80, 60, 40, 0.35), transparent 50%),
    linear-gradient(165deg, #1a1612 0%, #14110e 48%, #100e0b 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image: var(--page-bg-image);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #dbc095;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image: var(--page-bg-image);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}
.bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.28;
  filter: saturate(0.7) brightness(0.75);
}
.bg .shade1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 17, 14, 0.55),
    rgba(20, 17, 14, 0.35) 40%,
    rgba(20, 17, 14, 0.78) 100%
  );
}
.bg .shade2 {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 70% at 50% -10%, rgba(0, 0, 0, 0.25), transparent 60%);
}

.wrap {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ——— Header ——— */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 17, 14, 0.72);
  backdrop-filter: blur(10px);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1rem 0.95rem;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}
.brand-block:hover {
  text-decoration: none;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}
.site-nav a {
  color: var(--ink-soft);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
}
.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.nav-pill {
  border: 1px solid var(--line-strong);
  background: rgba(196, 165, 116, 0.08);
  color: var(--accent) !important;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1rem 2.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(16, 14, 11, 0.85);
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-note {
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 8px;
  padding: 0.8rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.btn:hover {
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: linear-gradient(180deg, #d4b587 0%, var(--accent-deep) 100%);
  color: #1a1410;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn-primary:hover {
  filter: brightness(1.05);
  color: #120e0b;
}
.btn-secondary {
  background: rgba(28, 24, 20, 0.7);
  color: var(--accent);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 0.95rem 1.35rem;
  font-size: 1rem;
}

/* ——— Surfaces ——— */
.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-head {
  margin-bottom: 1.25rem;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.page-head p,
.lead {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 38rem;
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.muted {
  color: var(--muted);
}
.err {
  color: var(--err);
  font-size: 0.92rem;
}
.ok {
  color: var(--ok);
  font-size: 0.92rem;
}

/* ——— Home ——— */
.hero-home {
  text-align: left;
  padding: 0.25rem 0 0.5rem;
}
.hero-home h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero-home .lead {
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 22rem;
}
.service-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.service-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.service-card p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.trust-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
.trust-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 24, 20, 0.55);
}
.trust-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.trust-item span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 24, 20, 0.45);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1410;
  background: var(--accent);
}

.disclaimer {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ——— Forms ——— */
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

textarea,
input:not([type]),
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="date"],
input[type="time"],
select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 9, 8, 0.55);
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
}
textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: rgba(196, 165, 116, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.15);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* ——— Prices ——— */
.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.price-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.price-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.price-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.price-tag {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.badge-soft {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1410;
  background: var(--ok);
  vertical-align: middle;
}
.check-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.check-list li {
  margin: 0.35rem 0;
}
.price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* ——— Reading result ——— */
.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.reading-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 0 0 1.25rem;
}
.reading-card {
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.reading-card .name {
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  color: var(--ink-soft);
}
.panel-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.paywall {
  margin-top: 1.25rem;
  text-align: center;
}
.paywall h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}
.paywall .hint {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.paywall-fade {
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.88rem;
  color: var(--muted);
}
.paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.paywall-trust {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
  padding-bottom: 1rem;
}

/* ——— Tarot grid ——— */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-height: min(55vh, 480px);
  overflow: auto;
  padding-right: 2px;
}
@media (min-width: 640px) {
  .grid-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    max-height: 55vh;
  }
}
@media (min-width: 768px) {
  .grid-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.tarot-tile {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.tarot-tile:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.tarot-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a0908;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.tarot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tarot-tile.on .tarot-frame {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.25rem;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}
.tile-name {
  margin-top: 0.25rem;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-soft);
  min-height: 2.25rem;
}
@media (min-width: 640px) {
  .tile-name {
    font-size: 11px;
  }
}

.pulse {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(196, 165, 116, 0.28);
  border-top-color: var(--accent);
  margin: 0 auto;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.prose {
  white-space: normal;
  word-break: break-word;
  color: var(--ink-soft);
}
.prose p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
}
.prose h3 {
  margin: 1.1rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.m-only {
  display: inline;
}
.m-hide {
  display: none;
}
@media (min-width: 640px) {
  .m-only {
    display: none;
  }
  .m-hide {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .pulse {
    transition: none;
    animation: none;
  }
}
