:root {
  --bg: #09060f;
  --bg-2: #140d1d;
  --paper: rgba(18, 13, 27, 0.88);
  --paper-soft: rgba(255, 247, 235, 0.05);
  --ink: #f6ead6;
  --muted: rgba(246, 234, 214, 0.72);
  --muted-soft: rgba(246, 234, 214, 0.48);
  --line: rgba(255, 214, 153, 0.12);
  --line-strong: rgba(255, 214, 153, 0.22);
  --accent: #d0a765;
  --accent-strong: #f2cf93;
  --success: #b7f0c2;
  --danger: #ffb8b8;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(103, 71, 149, 0.2), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(208, 167, 101, 0.12), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, #0d0814 42%, var(--bg-2) 100%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 58%),
    radial-gradient(circle at 20% 80%, rgba(90, 61, 120, 0.12), transparent 26%);
}

.background-layer {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.68;
}

.background-layer-a {
  top: 64px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: rgba(208, 167, 101, 0.12);
}

.background-layer-b {
  left: -100px;
  top: 40%;
  width: 260px;
  height: 260px;
  background: rgba(103, 71, 149, 0.18);
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 214, 153, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 153, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 80%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero-frame,
.card,
.mystic-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 15, 30, 0.94), rgba(13, 10, 22, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-frame::before,
.card::before,
.mystic-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hero-frame {
  border-radius: 34px;
  padding: 16px 26px 22px;
  text-align: center;
  overflow: hidden;
}

.hero-frame::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 220px;
  background: radial-gradient(circle, rgba(242, 207, 147, 0.12), transparent 72%);
  pointer-events: none;
}

.brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-mark > div {
  display: grid;
  gap: 16px;
}

.brand-kicker,
.eyebrow,
.label,
.mini-label {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-kicker,
.label,
.mini-label {
  font-size: 0.76rem;
}

.brand-mark strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.hero-copy {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 11ch;
  margin: 10px auto 0;
  font-size: clamp(1.72rem, 2.6vw, 2.45rem);
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.14;
}

.lede,
.side-note,
.checkout-copy,
.status,
.benefit-list p,
.path-item p,
.disclaimer-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.lede {
  max-width: 48ch;
  margin: 0 auto;
  font-size: 0.96rem;
}

.content-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: start;
}

.content-grid-priority {
  position: relative;
  align-items: stretch;
}

.priority-column {
  display: grid;
  gap: 20px;
  min-width: 0;
  align-content: start;
}

.priority-stack,
.story-stack {
  height: 100%;
}

.priority-stack {
  grid-template-rows: minmax(0, auto) 260px minmax(0, auto);
}

.story-stack {
  grid-template-rows: auto auto;
}

.priority-stack > .card,
.priority-stack > .mystic-card,
.story-stack > .mystic-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.mystic-card {
  border-radius: 28px;
  padding: 26px;
}


.benefit-list,
.pathway-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.order-feed-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.order-feed-badge {
  flex: 0 0 auto;
  align-self: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 214, 153, 0.16);
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.06);
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-feed-shell {
  position: relative;
  flex: 1;
  min-height: 210px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0, black 12%, black 88%, transparent 100%);
}

.order-feed-track {
  display: grid;
  gap: 12px;
  will-change: transform;
}

.order-feed-track.is-animated {
  animation: order-feed-marquee var(--order-feed-duration, 20s) linear infinite;
}

.order-feed-shell:hover .order-feed-track.is-animated {
  animation-play-state: paused;
}

.order-feed-item,
.order-feed-empty {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 16px 17px;
}

.order-feed-item {
  display: grid;
  gap: 7px;
}

.order-feed-name {
  color: var(--ink);
  font-size: 1.03rem;
}

.order-feed-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.order-feed-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: var(--muted-soft);
  text-align: center;
}

.benefit-list > div,
.path-item {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 17px;
}

.benefit-list strong,
.path-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.04rem;
}

.path-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.path-item span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f7dfb4, #a67437 70%);
  color: #2e1a07;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  box-shadow: 0 12px 24px rgba(166, 116, 55, 0.22);
}

.card {
  border-radius: 30px;
  padding: 28px;
}

.intake-card {
  background:
    linear-gradient(180deg, rgba(20, 14, 31, 0.97), rgba(12, 9, 21, 0.97)),
    linear-gradient(135deg, rgba(255, 247, 235, 0.06), rgba(255, 247, 235, 0));
  z-index: 2;
}

.intake-card-priority {
  border-color: rgba(255, 214, 153, 0.26);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(242, 207, 147, 0.06),
    0 14px 46px rgba(242, 207, 147, 0.08);
}

.card-head {
  display: grid;
  gap: 12px;
}

.card-head-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.card-head-stack {
  margin-bottom: 20px;
}

.intake-title {
  max-width: 100%;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1;
  white-space: nowrap;
}

.side-note {
  max-width: 56ch;
  margin: 0;
}

.signup-form,
.checkout-panel {
  display: grid;
  gap: 18px;
}

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

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--accent-strong);
  font-size: 0.96rem;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 214, 153, 0.14);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 247, 235, 0.08), rgba(255, 247, 235, 0.04)),
    rgba(12, 9, 18, 0.82);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-soft);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(242, 207, 147, 0.42);
  box-shadow: 0 0 0 4px rgba(242, 207, 147, 0.09), 0 10px 30px rgba(242, 207, 147, 0.06);
  transform: translateY(-1px);
}

.search-field {
  align-content: start;
}

.combo-shell {
  position: relative;
}

.field-hint {
  margin-top: -2px;
  color: var(--muted-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.field-hint strong {
  color: var(--accent-strong);
}

.search-picker {
  padding-right: 52px;
}

.search-picker[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

.combo-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--accent-strong);
  background: rgba(255, 247, 235, 0.06);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.combo-toggle:hover {
  background: rgba(255, 247, 235, 0.1);
}

.combo-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 207, 147, 0.12);
}

.combo-toggle[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.combo-toggle span {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.combo-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  gap: 6px;
  max-height: 260px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(255, 214, 153, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 13, 27, 0.98), rgba(10, 8, 18, 0.98));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.combo-option,
.combo-empty {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 13px;
  text-align: left;
}

.combo-option {
  background: rgba(255, 247, 235, 0.03);
  color: var(--ink);
  cursor: pointer;
}

.combo-option strong,
.combo-option span {
  display: block;
}

.combo-option strong {
  font-size: 0.96rem;
  font-weight: 600;
}

.combo-option span {
  margin-top: 4px;
  color: var(--muted-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.combo-option:hover,
.combo-option.is-active {
  background: rgba(242, 207, 147, 0.12);
}

.combo-empty {
  background: rgba(255, 247, 235, 0.03);
  color: var(--muted-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.search-picker::-webkit-search-decoration,
.search-picker::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.native-picker {
  min-height: 56px;
  appearance: none;
  -webkit-appearance: none;
}

.native-picker::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}

.native-picker::-webkit-datetime-edit,
.native-picker::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.native-picker::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  cursor: pointer;
  filter: invert(88%) sepia(16%) saturate(476%) hue-rotate(343deg) brightness(103%) contrast(90%);
}

.grid.two > * {
  min-width: 0;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

.primary {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  color: #2b1705;
  font-weight: 700;
  background: linear-gradient(135deg, #f5d8a5 0%, #d1a765 45%, #f1c57d 100%);
  box-shadow: 0 16px 36px rgba(209, 167, 101, 0.26);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(209, 167, 101, 0.32);
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--checkout-viewport-height, 100vh);
  padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(7, 5, 12, 0.72);
  backdrop-filter: blur(10px);
}

.checkout-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: min(calc(var(--checkout-viewport-height, 100vh) - 44px), 760px);
  overflow: auto;
  margin: auto;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(24, 18, 34, 0.98), rgba(12, 9, 21, 0.98));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 214, 153, 0.2);
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  background: rgba(255, 247, 235, 0.06);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 160ms ease, transform 160ms ease;
}

.modal-close:hover {
  background: rgba(255, 247, 235, 0.12);
  transform: translateY(-1px);
}

.modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 207, 147, 0.14);
}

body.modal-open {
  overflow: hidden;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-right: 88px;
}

.checkout-header > div {
  min-width: 0;
}

.checkout-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid rgba(255, 214, 153, 0.16);
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.06);
  color: var(--accent-strong);
  font-size: 0.9rem;
  line-height: 1.2;
}

.paypal-shell {
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 247, 235, 0.04);
  border: 1px dashed rgba(255, 214, 153, 0.16);
}

.status {
  min-height: 28px;
  margin-top: 6px;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

@keyframes order-feed-marquee {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-1 * var(--order-feed-distance, 0px)));
  }
}

.hidden {
  display: none;
}

/* ============================================================
   Announcement Sidebar - Clean Style
   ============================================================ */
.announcement-toggle-btn {
  position: fixed;
  top: 270px;
  right: 350px;
  z-index: 901;
  width: 0;
  height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #FFD700;
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  line-height: 1;
  box-shadow: none;
  padding: 0;
}

.announcement-toggle-btn .toggle-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #FFD700;
  display: block;
}

.announcement-toggle-btn:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

.announcement-sidebar.collapsed ~ .announcement-toggle-btn .toggle-icon,
.announcement-sidebar.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.announcement-sidebar {
  position: fixed;
  top: 240px;
  right: 20px;
  z-index: 900;
  width: 340px;
  max-height: calc(100vh - 260px);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 300ms ease, opacity 300ms ease;
  overflow: hidden;
}

.announcement-sidebar.collapsed {
  transform: translateX(calc(100% + 20px));
  opacity: 0;
  pointer-events: none;
}

.announcement-sidebar.hidden {
  display: none;
}

.announcement-content-wrapper {
  padding: 16px 20px 20px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.announcement-content-wrapper::-webkit-scrollbar {
  width: 6px;
}

.announcement-content-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.announcement-content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.announcement-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.announcement-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}

.announcement-list {
  display: grid;
  gap: 12px;
}

.announcement-item {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 14px;
  transition: transform 200ms ease;
}

.announcement-item:hover {
  transform: translateY(-2px);
}

.announcement-item h4 {
  margin: 0 0 8px 0;
  font-size: 0.98rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.announcement-item .announcement-body {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.announcement-item .announcement-body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-item .announcement-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}

.announcement-item .announcement-body strong {
  color: var(--ink);
}

.announcement-empty {
  text-align: center;
  color: var(--muted-soft);
  padding: 24px 16px;
  font-size: 0.88rem;
}

/* Mobile: Fixed bottom announcement bar */
@media (max-width: 640px) {
  .announcement-toggle-btn {
    display: none;
  }

  .announcement-sidebar {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: 65vh;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transform: none;
    transition: transform 300ms ease, opacity 300ms ease;
  }

  .announcement-sidebar.collapsed {
    transform: translateY(calc(100% + 20px));
    opacity: 0;
    pointer-events: none;
  }

  .announcement-content-wrapper {
    padding: 16px;
    max-height: calc(65vh - 20px);
  }

  .announcement-list {
    gap: 10px;
  }

  .announcement-item {
    padding: 12px;
    border-radius: 10px;
  }

  .announcement-item h4 {
    font-size: 0.92rem;
    margin-bottom: 6px;
  }

  .announcement-item .announcement-body {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .announcement-empty {
    padding: 20px 12px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   Navigation Bar
   ============================================================ */
.site-nav {
  display: table;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 15, 30, 0.92), rgba(13, 10, 22, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  /* Desktop: absolute position below hero */
  width: fit-content;
  max-width: 1180px;
  position: absolute;
  top: 220px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.site-nav.hidden {
  display: none;
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 20px;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 300ms ease;
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-inner::-webkit-scrollbar {
  height: 0;
}

#nav-items-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item,
#nav-home-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.nav-item:hover,
#nav-home-link:hover {
  color: var(--ink);
  background: rgba(242, 207, 147, 0.08);
  border-color: var(--line-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.nav-item.active,
#nav-home-link.active {
  color: var(--ink) !important;
  font-weight: 600;
  background: rgba(246, 234, 214, 0.08) !important;
  border-color: var(--line-strong) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   Page Sections (SPA routing)
   ============================================================ */
.page-section {
  animation: pageFadeIn 220ms ease forwards;
}

.page-section.hidden {
  display: none !important;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Master Page (Inner Page)
   ============================================================ */
.master-page-body {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 15, 30, 0.94), rgba(13, 10, 22, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 32px;
  min-height: 300px;
  color: var(--ink);
  line-height: 1.75;
  font-size: 1rem;
}

.master-page-body h1,
.master-page-body h2,
.master-page-body h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}

.master-page-body h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.master-page-body h2 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
.master-page-body h3 { font-size: clamp(1.12rem, 1.8vw, 1.45rem); }

.master-page-body p {
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 1em;
}

.master-page-body img {
  max-width: 100%;
  border-radius: 16px;
  margin: 1em 0;
}

.master-page-body strong {
  color: var(--ink);
  font-weight: 600;
}

.master-page-body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-button {
  align-self: flex-start;
  margin-top: 20px;
  font-size: 0.85rem;
  padding: 8px 16px;
  background: #2a2035;
  color: #e0d5c8;
  border: 1px solid rgba(255, 214, 153, 0.15);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-grid-priority {
    align-items: start;
  }

  .priority-stack,
  .story-stack {
    height: auto;
  }

  .priority-stack {
    grid-template-rows: minmax(0, auto) 260px minmax(0, auto);
  }

  .story-stack {
    grid-template-rows: auto;
  }

  .disclaimer-card {
    margin-top: 20px;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 16px 0 56px;
  }

  .site-nav {
    position: static;
    margin: 0 auto 16px;
    display: table;
    width: fit-content;
    max-width: calc(100% - 40px);
    top: auto;
    left: auto;
    transform: none;
  }

  .nav-toggle-btn {
    display: none;
  }

  .nav-inner {
    display: flex;
    position: static;
    margin: 0;
    padding: 8px 12px;
    gap: 4px;
    flex-direction: row;
    background: none;
    border: none;
    box-shadow: none;
    min-width: auto;
  }

  .nav-inner.active {
    display: flex;
  }

  #nav-items-list {
    flex-direction: row;
    gap: 4px;
  }

  .nav-item {
    font-size: 0.82rem;
    padding: 7px 14px;
    width: auto;
    text-align: center;
  }

  .hero-frame,
  .card,
  .mystic-card {
    border-radius: 24px;
  }

  .hero-frame,
  .card,
  .mystic-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .checkout-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100% - 56px);
    margin: 0 auto;
    padding-right: 0;
    text-align: center;
  }

  .checkout-header > div {
    text-align: center;
  }

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

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 16px);
  }

  .hero-frame > div {
    grid-column: 1 / -1;
  }

  .site-nav {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    margin: 0;
    padding: 0;
    max-width: calc(100vw - 32px);
    width: fit-content;
    height: fit-content;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible;
  }

  .nav-wrapper {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
  }

  #content-grid {
    margin-top: 16px;
  }

  .nav-toggle-btn {
    display: flex;
    background: transparent !important;
    border: none !important;
    color: var(--ink);
    cursor: pointer;
    padding: 10px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    box-shadow: none !important;
    outline: none !important;
  }
  
  .nav-toggle-btn:hover,
  .nav-toggle-btn:focus,
  .nav-toggle-btn:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .nav-inner {
    display: none;
    padding: 8px;
    gap: 4px;
    flex-direction: column;
    border: none;
    background: transparent;
  }

  .nav-inner.active {
    display: flex;
  }

  #nav-items-list {
    flex-direction: column;
    gap: 4px;
  }

  .nav-item,
  #nav-home-link {
    font-size: 0.82rem;
    padding: 8px 14px;
    width: 100%;
    min-width: 160px;
    box-sizing: border-box;
    text-align: center !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper-soft);
    margin: 4px 0;
  }

  .master-page-body {
    padding: 20px 16px;
    border-radius: 22px;
    font-size: 0.94rem;
  }

  .back-button {
    font-size: 13px;
    padding: 7px 14px;
  }

  .hero-frame,
  .card,
  .mystic-card {
    padding: 18px;
  }

  h1 {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.22;
  }

  h2 {
    font-size: 1.9rem;
  }

  .intake-title {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .checkout-modal {
    align-items: flex-start;
    padding: calc(max(12px, env(safe-area-inset-top)) + 8px) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .checkout-panel {
    gap: 14px;
    max-height: calc(var(--checkout-viewport-height, 100vh) - 24px);
    padding: 16px;
    border-radius: 22px;
  }

  h3 {
    font-size: 1.18rem;
    line-height: 1.12;
  }

  .label {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .checkout-copy,
  .status {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .paypal-shell {
    padding: 10px;
    border-radius: 18px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .path-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .path-item span {
    width: 42px;
    height: 42px;
  }

  .checkout-badge {
    width: auto;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 7px 11px;
  }

  input,
  select,
  textarea,
  .primary {
    font-size: 16px;
  }
}

@media (max-width: 640px) and (max-height: 760px) {
  .checkout-modal {
    padding-top: calc(max(10px, env(safe-area-inset-top)) + 4px);
  }

  .checkout-panel {
    gap: 12px;
    max-height: calc(var(--checkout-viewport-height, 100vh) - 16px);
    padding: 14px;
  }

  .checkout-copy,
  .status {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .paypal-shell {
    padding: 8px;
  }
}

.nav-placeholder {
  height: 80px;
}

@media (max-width: 860px) {
  .nav-placeholder {
    height: 60px;
  }
}

@media (max-width: 640px) {
  .nav-placeholder {
    display: none;
  }
}

/* Mobile payment optimization */
.mobile-hint {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.paypal-shell {
  min-height: 150px;
  position: relative;
  z-index: 1;
}

#paypal-button-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Ensure PayPal buttons are clickable */
#paypal-button-container iframe,
#paypal-button-container button {
  pointer-events: auto !important;
  touch-action: manipulation;
  position: relative;
  z-index: 10;
}

/* Prevent double-tap zoom on mobile */
#paypal-button-container button {
  touch-action: manipulation;
}
