:root {
  color-scheme: dark;
  --bg: #11100e;
  --bg-soft: #191713;
  --panel: #211e19;
  --panel-strong: #2c261d;
  --text: #f4efe4;
  --muted: #c3b7a4;
  --line: #453d31;
  --gold: #d8ad5d;
  --green: #79a887;
  --red: #b36a62;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --soft-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(17, 16, 14, 0.84), rgba(17, 16, 14, 0.9)),
    url("/static/images/ui/home-bg.png") center top / cover fixed,
    radial-gradient(circle at 18% 10%, rgba(216, 173, 93, 0.12), transparent 32rem),
    linear-gradient(135deg, #11100e 0%, #171512 48%, #101412 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.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: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--gold);
  color: #18120a;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(17, 16, 14, 0.88);
  border-bottom: 1px solid rgba(216, 173, 93, 0.18);
  backdrop-filter: blur(16px);
}

.top-nav,
.site-footer,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  margin: 0 auto;
  min-width: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
  overflow: visible;
}

.brand-menu {
  position: relative;
  flex: 0 0 auto;
  max-width: 100%;
  z-index: 8;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.brand-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.micro-app-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  width: min(340px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 0.8rem;
  border: 1px solid rgba(216, 173, 93, 0.28);
  border-radius: 8px;
  background: rgba(21, 19, 16, 0.98);
  box-shadow: var(--shadow);
}

.micro-app-menu[hidden] {
  display: none;
}

.micro-app-menu-section + .micro-app-menu-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(216, 173, 93, 0.16);
}

.micro-app-menu-section h2 {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.micro-app-menu-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.micro-app-menu-item:hover,
.micro-app-menu-item:focus-visible {
  border-color: rgba(216, 173, 93, 0.34);
  background: rgba(216, 173, 93, 0.08);
}

.micro-app-menu-item span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.nav-links a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(216, 173, 93, 0.34);
  color: var(--text);
  background: rgba(216, 173, 93, 0.08);
}

.nav-form {
  display: flex;
  margin: 0;
}

.nav-button {
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-button:hover {
  border-color: rgba(216, 173, 93, 0.34);
  color: var(--text);
  background: rgba(216, 173, 93, 0.08);
}

.page-shell {
  padding: 56px 0 64px;
}

.bottom-nav {
  display: none;
}

.flash-stack {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.flash {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(121, 168, 135, 0.32);
  border-radius: 6px;
  background: rgba(24, 39, 31, 0.72);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: 28px;
  min-height: 520px;
}

.hero-copy,
.page-intro,
.reading-copy,
.offline-state {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.65rem;
  max-width: 100%;
  min-width: 0;
  font-size: 5.6rem;
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.page-intro h1,
.reading-copy h1,
.profile-panel h1,
.offline-state h1 {
  font-size: 3.2rem;
  line-height: 1.02;
}

.profile-panel h1 {
  font-size: 2.4rem;
}

h2 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.slogan {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 2rem;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
}

.microcopy {
  margin-top: 1rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #1c150c;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary:hover {
  background: #ecc46f;
}

.button.secondary:hover,
.button.disabled {
  border-color: rgba(216, 173, 93, 0.44);
  background: rgba(216, 173, 93, 0.09);
}

.button.disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.sigil-panel {
  display: grid;
  place-items: center;
  min-height: 340px;
  border: 1px solid rgba(216, 173, 93, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(33, 30, 25, 0.84), rgba(33, 30, 25, 0.84)),
    url("/static/images/ui/deck_background.png") center / cover,
    linear-gradient(160deg, rgba(121, 168, 135, 0.12), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.sigil-orbit {
  display: grid;
  place-items: center;
  width: min(72vw, 300px);
  aspect-ratio: 1;
  border: 1px solid rgba(216, 173, 93, 0.56);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(216, 173, 93, 0.28) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(121, 168, 135, 0.22) 50%, transparent 50.5%);
}

.sigil-orbit span {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(216, 173, 93, 0.48);
  border-radius: 50%;
  background: #151310;
  color: var(--gold);
  font-size: 4rem;
}

.section-grid,
.tool-grid,
.spread-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 20px;
}

.compact-heading {
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--muted);
}

.feature-card,
.tool-tile,
.tarot-card,
.specialist-card,
.content-panel,
.ecosystem-section,
.reading-workbench,
.empty-reading,
.interpretation-panel,
.premium-teaser,
.value-band,
.roadmap-band,
.notice-band,
.profile-panel,
.profile-copy {
  border: 1px solid rgba(216, 173, 93, 0.18);
  border-radius: 8px;
  background: rgba(33, 30, 25, 0.82);
}

.feature-card,
.tool-tile,
.specialist-card,
.content-panel,
.ecosystem-section,
.reading-workbench,
.empty-reading,
.interpretation-panel,
.premium-teaser,
.value-band,
.roadmap-band,
.notice-band,
.profile-panel,
.profile-copy {
  padding: 1.25rem;
  min-width: 0;
}

.feature-card p,
.tool-tile p,
.tarot-card p,
.specialist-card p,
.content-panel p,
.ecosystem-section p,
.reading-workbench p,
.empty-reading p,
.interpretation-panel p,
.premium-teaser p,
.value-band p,
.roadmap-band p,
.notice-band p,
.profile-panel p,
.profile-copy p {
  color: var(--muted);
}

.card-mark,
.card-number {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border: 1px solid rgba(216, 173, 93, 0.36);
  border-radius: 50%;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.tool-tile {
  min-height: 220px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
}

.tool-tile:hover {
  border-color: rgba(216, 173, 93, 0.42);
  transform: translateY(-2px);
}

.muted {
  background: rgba(44, 38, 29, 0.55);
}

.compact {
  margin-bottom: 28px;
}

.notice-band {
  margin-top: 18px;
  border-color: rgba(121, 168, 135, 0.26);
  background: rgba(24, 39, 31, 0.58);
}

.notice-band.inline {
  margin-top: 1rem;
}

.value-band,
.roadmap-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 18px;
  border-color: rgba(121, 168, 135, 0.28);
  background: rgba(24, 39, 31, 0.66);
}

.value-band {
  margin-top: 18px;
  border-color: rgba(216, 173, 93, 0.22);
  background: rgba(33, 30, 25, 0.76);
}

.value-band h2,
.value-band p,
.roadmap-band h2,
.roadmap-band p {
  max-width: 720px;
}

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

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

.astro-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.astro-card .card-mark {
  margin-bottom: 0;
}

.astro-interest-form {
  margin-top: 0.25rem;
}

.ecosystem-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.ecosystem-section.wide {
  grid-column: 1 / -1;
}

.gift-section {
  border-color: rgba(216, 173, 93, 0.32);
  background: rgba(44, 38, 29, 0.82);
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(216, 173, 93, 0.28);
  border-radius: 999px;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.active {
  border-color: rgba(121, 168, 135, 0.48);
  background: rgba(121, 168, 135, 0.14);
}

.status-badge.soon,
.status-badge.early {
  border-color: rgba(216, 173, 93, 0.42);
  background: rgba(216, 173, 93, 0.12);
}

.status-badge.planned,
.status-badge.gift {
  border-color: rgba(195, 183, 164, 0.28);
  background: rgba(195, 183, 164, 0.08);
}

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(216, 173, 93, 0.12);
}

.feature-list span {
  color: var(--text);
}

.feature-list strong,
.card-footer small {
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.relaxed-list li {
  align-items: flex-start;
  justify-content: flex-start;
}

.module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.module-cloud span {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(216, 173, 93, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.reading-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.action-workbench {
  grid-template-columns: minmax(0, 680px);
  align-items: start;
}

.action-workbench .draw-form {
  max-width: 680px;
}

.auth-panel {
  max-width: 560px;
}

.forgot-password-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--gold);
}

.form-success {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(216, 173, 93, 0.08);
}

.form-success p {
  margin: 0;
}

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

.form-stack {
  display: grid;
  gap: 0.9rem;
}

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

.draw-form {
  display: grid;
  gap: 0.8rem;
}

.reading-form-disclosure {
  margin-bottom: 10px;
}

.reading-form-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(216, 173, 93, 0.2);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  background: rgba(21, 19, 16, 0.62);
}

.reading-form-disclosure > summary::-webkit-details-marker {
  display: none;
}

.reading-form-disclosure > summary::marker {
  content: "";
}

.reading-form-disclosure > summary:focus-visible {
  outline: 2px solid rgba(216, 173, 93, 0.8);
  outline-offset: 3px;
}

.form-summary-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.form-summary-title,
.form-summary-action {
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.form-summary-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.form-summary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.summary-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.reading-form-disclosure[open] .summary-chevron {
  transform: rotate(225deg);
}

.reading-form-panel {
  margin-top: 0.65rem;
  margin-bottom: 12px;
}

.form-error {
  grid-column: 1 / -1;
  padding: 0.8rem;
  border: 1px solid rgba(220, 89, 89, 0.42);
  border-radius: 8px;
  color: #ffd7d7;
  background: rgba(75, 28, 28, 0.42);
}

.form-error:focus {
  outline: 2px solid rgba(220, 89, 89, 0.82);
  outline-offset: 3px;
}

.form-error p {
  margin: 0;
}

[data-reading-result] {
  scroll-margin-top: 104px;
}

[data-reading-result]:focus {
  outline: none;
}

.field-group {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0.9rem;
  border: 1px solid rgba(216, 173, 93, 0.18);
  border-radius: 8px;
  background: rgba(21, 19, 16, 0.58);
}

.field-group legend {
  padding: 0 0.35rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.field-group summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.field-group summary::marker {
  color: var(--gold);
}

.optional-fields {
  gap: 0;
  padding-block: 0.55rem;
}

.optional-fields[open] {
  gap: 0.75rem;
  padding-block: 0.9rem;
}

.field-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #151310;
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.65rem;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
  line-height: 1.45;
}

.form-field textarea::placeholder {
  color: rgba(195, 183, 164, 0.68);
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  accent-color: var(--gold);
}

.form-errors {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(179, 106, 98, 0.42);
  border-radius: 6px;
  background: rgba(65, 28, 24, 0.52);
}

.form-errors p {
  margin: 0;
  color: var(--text);
}

.contact-panel {
  max-width: 760px;
}

.contact-copy {
  margin-bottom: 1rem;
}

.contact-copy p,
.contact-safety {
  margin-bottom: 0;
}

.contact-form .button {
  justify-self: start;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  align-items: end;
  gap: 0.75rem;
}

.contact-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: start;
  gap: 1rem;
}

.contact-message-text {
  color: var(--text) !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: grid;
  gap: 0.65rem;
}

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

.contact-status-new {
  border-color: rgba(216, 173, 93, 0.48);
  background: rgba(216, 173, 93, 0.14);
}

.contact-status-resolved {
  border-color: rgba(121, 168, 135, 0.48);
  background: rgba(121, 168, 135, 0.14);
}

.contact-mobile-list {
  display: none;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(216, 173, 93, 0.16);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table small,
.admin-table code {
  color: var(--muted);
}

.inline-form {
  margin: 0;
}

.compact-button {
  min-height: 36px;
  padding: 0.45rem 0.7rem;
}

.numerology-hero {
  position: relative;
}

.number-grid,
.rhythm-grid,
.interpretation-grid {
  display: grid;
  gap: 1rem;
}

.number-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.interpretation-grid,
.rhythm-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.number-tile,
.rhythm-card {
  background: rgba(25, 22, 18, 0.78);
  border: 1px solid rgba(217, 170, 92, 0.24);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.number-orb {
  display: inline-grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid rgba(239, 190, 104, 0.48);
  border-radius: 50%;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 229, 158, 0.28), transparent 36%),
    rgba(15, 13, 11, 0.84);
}

.number-tile h2,
.number-tile strong,
.rhythm-card strong {
  display: block;
  margin-top: 0.65rem;
}

.result-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
}

.feature-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.feature-link-card:hover,
.feature-link-card:focus-visible {
  border-color: rgba(216, 173, 93, 0.42);
  background: rgba(33, 30, 25, 0.92);
  transform: translateY(-2px);
}

.feature-label {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.compact-grid .feature-card {
  padding: 1rem;
}

.compact-grid .feature-card p {
  margin-bottom: 0;
}

.compact-grid .feature-card h2 {
  margin-bottom: 0.25rem;
}

.hub-group {
  display: grid;
  gap: 0.35rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.profile-actions form {
  margin: 0;
}

.result-kicker span {
  border: 1px solid rgba(217, 170, 92, 0.24);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.archetype-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  gap: 1.25rem;
  align-items: center;
}

.archetype-image {
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(217, 170, 92, 0.28);
  background: rgba(0, 0, 0, 0.32);
}

.archetype-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-note-list {
  display: grid;
  gap: 1rem;
}

.admin-note-item {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(216, 173, 93, 0.16);
  border-radius: 8px;
  background: rgba(21, 19, 16, 0.46);
}

.admin-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-note-head h3 {
  margin: 0;
  font-size: 1.12rem;
}

.admin-note-edit {
  border-top: 1px solid rgba(216, 173, 93, 0.14);
  padding-top: 0.7rem;
}

.admin-note-edit summary {
  color: var(--gold);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.empty-reading {
  margin-bottom: 18px;
  border-style: dashed;
  background: rgba(33, 30, 25, 0.55);
}

.interpretation-panel {
  margin-top: 1.2rem;
}

.interpretation-panel h2 {
  font-size: 1.18rem;
}

.premium-teaser {
  margin-top: 1rem;
  border-color: rgba(216, 173, 93, 0.26);
  background: rgba(44, 38, 29, 0.66);
}

.premium-documents {
  border-color: rgba(216, 173, 93, 0.3);
}

.pdf-beta-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.95fr);
  align-items: start;
  gap: 18px;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(216, 173, 93, 0.26);
  border-radius: 8px;
  background: rgba(23, 19, 16, 0.78);
}

.pdf-product-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(180px, 0.5fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(216, 173, 93, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 173, 93, 0.08), transparent 32%),
    rgba(21, 17, 14, 0.86);
}

.pdf-beta-preview h2,
.pdf-product-preview h2,
.pdf-product-dialog h2 {
  margin: 4px 0 8px;
}

.pdf-beta-preview p {
  margin: 0 0 8px;
}

.pdf-product-preview p {
  margin: 0 0 8px;
}

.pdf-preview-cover {
  min-width: 0;
}

.pdf-preview-copy {
  min-width: 0;
}

.pdf-question-preview {
  margin: 12px 0;
  padding: 12px;
  border-left: 2px solid rgba(216, 173, 93, 0.55);
  background: rgba(0, 0, 0, 0.16);
}

.pdf-question-preview.compact {
  margin-top: 0;
}

.pdf-question-preview figcaption {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pdf-question-preview blockquote {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
}

.pdf-preview-pages {
  position: relative;
  min-height: 210px;
}

.pdf-page-mini {
  position: absolute;
  width: 112px;
  height: 158px;
  border: 1px solid rgba(216, 173, 93, 0.32);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(19, 15, 13, 0.98) 0 28%, rgba(241, 226, 196, 0.92) 28% 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.pdf-page-mini::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  height: 48px;
  border-top: 1px solid rgba(80, 58, 34, 0.28);
  border-bottom: 1px solid rgba(80, 58, 34, 0.2);
}

.pdf-page-mini.page-a {
  left: 8px;
  top: 28px;
  transform: rotate(-7deg);
}

.pdf-page-mini.page-b {
  left: 46px;
  top: 12px;
  z-index: 2;
}

.pdf-page-mini.page-c {
  left: 84px;
  top: 38px;
  transform: rotate(7deg);
}

.pdf-preview-summary {
  display: grid;
  gap: 8px;
}

.pdf-preview-summary article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(216, 173, 93, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.pdf-preview-summary img {
  grid-row: span 3;
  display: block;
  width: 44px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.28);
}

.pdf-preview-summary span,
.pdf-locked-list span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.pdf-preview-summary strong {
  display: block;
  margin: 2px 0;
}

.pdf-preview-summary small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
}

.pdf-preview-teaser {
  color: var(--gold-soft);
}

.pdf-locked-cliff {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 173, 93, 0.18);
}

.pdf-locked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pdf-locked-list .microcopy {
  flex-basis: 100%;
  margin: 0;
}

.pdf-locked-list span {
  padding: 6px 8px;
  border: 1px solid rgba(216, 173, 93, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

.price-review {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid rgba(216, 173, 93, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.price-review div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}

.price-review span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-review strong {
  color: var(--text);
  white-space: nowrap;
}

.price-review .price-total {
  padding-top: 8px;
  border-top: 1px solid rgba(216, 173, 93, 0.18);
}

.price-review .price-total strong {
  color: var(--gold);
}

.pdf-product-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid rgba(216, 173, 93, 0.42);
  border-radius: 8px;
  color: var(--text);
  background: rgba(18, 15, 13, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

.pdf-product-dialog::backdrop {
  background: rgba(5, 4, 3, 0.68);
}

.pdf-dialog-inner {
  position: relative;
  padding: 22px;
}

.dialog-close-form {
  position: absolute;
  top: 10px;
  right: 10px;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(216, 173, 93, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  cursor: pointer;
}

.icon-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid rgba(216, 173, 93, 0.22);
  border-radius: 8px;
  background: rgba(21, 19, 16, 0.55);
}

.product-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.product-card p {
  margin: 0;
}

.product-price {
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.form-errors[hidden] {
  display: none;
}

.beta-access-badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(216, 173, 93, 0.32);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.consent-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  line-height: 1.45;
  cursor: pointer;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  accent-color: var(--gold);
}

.reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.reading-layout,
.reading-result,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: start;
}

.saved-reading-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
}

.saved-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  min-width: 0;
}

.saved-card-grid .tarot-card {
  min-height: 420px;
}

.history-list {
  display: grid;
  gap: 0.75rem;
}

.history-item,
.micro-app-usage-item {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(216, 173, 93, 0.16);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: rgba(21, 19, 16, 0.46);
}

.history-item:hover,
.micro-app-usage-item:hover {
  border-color: rgba(216, 173, 93, 0.42);
}

.history-item span,
.history-item small,
.micro-app-usage-item span,
.micro-app-usage-item small,
.share-link {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.history-item strong,
.history-item span,
.history-item small,
.micro-app-usage-item strong,
.micro-app-usage-item span,
.micro-app-usage-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.share-link {
  overflow-wrap: anywhere;
}

.share-stop-form {
  margin-top: 0.75rem;
}

.reading-meta {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.reading-meta div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.reading-meta dt {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.reading-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: right;
}

.tarot-card {
  display: flex;
  min-height: 320px;
  padding: 1.1rem;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(216, 173, 93, 0.10), transparent),
    var(--panel);
  box-shadow: var(--soft-shadow);
}

.card-image {
  width: 100%;
  margin: 0 0 1rem;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 93, 0.18);
  border-radius: 6px;
  background: #151310;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.large-card {
  min-height: 520px;
}

.reading-result .large-card,
.reading-layout .large-card {
  position: sticky;
  top: 96px;
}

.tarot-card h2 {
  font-size: 1.85rem;
}

.card-footer strong {
  display: block;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.position {
  color: var(--green);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.spread-synthesis {
  max-width: 860px;
}

.specialist-list {
  display: grid;
  gap: 16px;
}

.specialist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.specialist-avatar,
.profile-image {
  flex: 0 0 auto;
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 173, 93, 0.24);
  border-radius: 8px;
  object-fit: cover;
  background: #151310;
}

.profile-image {
  width: 100%;
  margin-bottom: 1rem;
}

.profile-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(216, 173, 93, 0.22);
  border-radius: 999px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.offline-state {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-state {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 24px 0 36px;
  border-top: 1px solid rgba(216, 173, 93, 0.16);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 820px) {
  .site-footer,
  .specialist-card,
  .value-band,
  .roadmap-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav,
  .site-footer {
    padding: 0.75rem 0;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
    background-attachment: scroll;
  }

  .top-nav {
    min-height: 64px;
  }

  .page-shell {
    padding: 20px 0 36px;
  }

  .brand-menu,
  .brand-toggle {
    max-width: 100%;
  }

  .micro-app-menu {
    left: 0;
    width: min(340px, calc(100vw - 32px));
  }

  .hero,
  .reading-layout,
  .reading-result,
  .reading-workbench,
  .archetype-card,
  .profile-layout,
  .account-grid,
  .form-grid,
  .section-grid,
  .tool-grid,
  .ecosystem-grid,
  .astro-grid,
  .spread-row {
    grid-template-columns: 1fr;
  }

  .contact-admin-layout,
  .contact-filters {
    grid-template-columns: 1fr;
  }

  .contact-form .button {
    justify-self: stretch;
  }

  .contact-desktop-table {
    display: none;
  }

  .contact-mobile-list {
    display: grid;
  }

  .contact-mobile-item {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(216, 173, 93, 0.16);
  }

  .contact-mobile-item:first-child {
    padding-top: 0;
  }

  .contact-mobile-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .contact-mobile-item h2,
  .contact-mobile-item p {
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
  }

  .contact-mobile-item small {
    color: var(--muted);
  }

  .contact-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .contact-mobile-actions .button {
    width: auto;
  }

  .reading-meta div {
    display: grid;
    gap: 0.25rem;
    justify-content: stretch;
  }

  .reading-meta dd {
    text-align: left;
  }

  .ecosystem-section.wide {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
    gap: 1rem;
  }

  .sigil-panel {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.45rem max(0.55rem, env(safe-area-inset-left)) calc(0.45rem + env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-right));
    border-top: 1px solid rgba(216, 173, 93, 0.24);
    background: rgba(17, 16, 14, 0.96);
    backdrop-filter: blur(16px);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    gap: 0.15rem;
    min-width: 0;
    min-height: 54px;
    padding: 0.25rem 0.05rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
  }

  .bottom-nav a.active {
    border-color: rgba(216, 173, 93, 0.34);
    color: var(--text);
    background: rgba(216, 173, 93, 0.1);
  }

  .nav-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.02;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .page-intro.compact {
    margin-bottom: 12px;
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .actions {
    margin-top: 1.1rem;
  }

  .page-intro h1,
  .reading-copy h1,
  .profile-panel h1,
  .offline-state h1,
  .error-state h1 {
    font-size: 1.82rem;
    line-height: 1.04;
    margin-bottom: 0.45rem;
  }

  .slogan {
    font-size: 1.45rem;
  }

  .reading-result .large-card,
  .reading-layout .large-card {
    position: static;
  }

  .actions,
  .reading-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .reading-workbench,
  .content-panel,
  .empty-reading,
  .notice-band {
    padding: 0.95rem;
  }

  .reading-workbench {
    gap: 0.8rem;
    margin-bottom: 14px;
  }

  .reading-form-disclosure > summary {
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
  }

  .form-summary-line {
    font-size: 0.84rem;
  }

  [data-reading-result] {
    scroll-margin-top: 78px;
  }

  .draw-form,
  .form-stack {
    gap: 0.65rem;
  }

  .form-field textarea {
    min-height: 92px;
  }

  .field-group {
    padding: 0.75rem;
  }

  .reading-layout,
  .reading-result {
    gap: 16px;
  }

  .compact-heading {
    margin-top: 0.75rem;
  }

  .compact-grid {
    gap: 0.75rem;
  }

  .compact-grid .feature-card {
    min-height: 92px;
    padding: 0.85rem;
  }

  .feature-label {
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
  }

  .profile-actions,
  .profile-actions form {
    width: 100%;
  }

  .feature-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .pdf-beta-preview {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 0.95rem;
  }

  .pdf-product-preview {
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.95rem;
  }

  .pdf-preview-pages {
    width: min(100%, 220px);
    min-height: 142px;
    max-width: 220px;
    margin: 0 auto;
    overflow: hidden;
  }

  .pdf-page-mini {
    width: 82px;
    height: 116px;
  }

  .pdf-page-mini.page-a {
    left: 12px;
    top: 20px;
  }

  .pdf-page-mini.page-b {
    left: 62px;
    top: 8px;
  }

  .pdf-page-mini.page-c {
    left: 112px;
    top: 24px;
  }

  .pdf-product-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
  }

  .pdf-dialog-inner {
    padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:hover,
  .feature-link-card:hover,
  .feature-link-card:focus-visible,
  .tool-tile:hover {
    transform: none;
  }
}
