@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&family=Shippori+Mincho:wght@500;600;700&display=swap");

:root {
  --ivory: #fff8ef;
  --paper: #fffdf8;
  --rose: #efa7b6;
  --rose-soft: #f8dce2;
  --pearl: #fff4e8;
  --berry: #7a2e4d;
  --berry-deep: #42172d;
  --plum: #5b2140;
  --gold: #c7a45d;
  --gold-soft: #ead8a7;
  --ink: #1f2433;
  --muted: #6d6370;
  --jade: #5a8f7b;
  --line: rgba(122, 46, 77, 0.16);
  --shadow: 0 20px 60px rgba(31, 36, 51, 0.14);
  --font-sans: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
  --font-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  isolation: isolate;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  overflow: hidden;
  border-bottom: 1px solid rgba(234, 216, 167, 0.42);
  background: url("./assets/header-gold-oracle.png");
  background-position: center;
  background-size: cover;
  color: #1f1511;
  box-shadow:
    0 16px 42px rgba(31, 15, 28, 0.22),
    inset 0 -1px 0 rgba(255, 253, 248, 0.08);
}

.site-header::before {
  display: none;
  content: none;
}

.site-header::after {
  display: none;
  content: none;
}

.brand {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: #1f1511;
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.72);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.brand-logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 8px 14px rgba(31, 15, 28, 0.2))
    drop-shadow(0 1px 0 rgba(255, 253, 248, 0.72));
}

.brand-moon {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 18px rgba(234, 216, 167, 0.62);
}

.brand-moon::after {
  position: absolute;
  top: -2px;
  left: 7px;
  width: 19px;
  height: 22px;
  border-radius: 50%;
  background: var(--berry-deep);
  content: "";
}

.brand-star {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 8px #fff,
    -16px 20px 0 -1px rgba(255, 255, 255, 0.72),
    8px 19px 0 -2px rgba(234, 216, 167, 0.8);
}

.brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.brand small {
  display: block;
  color: rgba(31, 21, 17, 0.72);
  font-size: 0.72rem;
}

.top-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 5px;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: none;
  white-space: nowrap;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  position: relative;
  display: grid;
  min-width: 118px;
  min-height: 48px;
  place-items: center;
  padding: 10px 16px;
  overflow: hidden;
  border: 1px solid rgba(92, 52, 20, 0.82);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 248, 0.9) 0%, rgba(245, 222, 167, 0.68) 42%, rgba(158, 101, 33, 0.34) 100%),
    linear-gradient(180deg, rgba(255, 250, 226, 0.9), rgba(221, 175, 92, 0.5) 52%, rgba(112, 70, 31, 0.36)),
    rgba(255, 248, 229, 0.34);
  color: #24110a;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 210, 0.78),
    inset 0 2px 0 rgba(255, 253, 248, 0.7),
    inset 0 -3px 0 rgba(67, 36, 17, 0.2),
    0 1px 0 rgba(255, 253, 248, 0.48),
    0 11px 24px rgba(31, 15, 28, 0.22);
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.92),
    0 8px 16px rgba(52, 25, 9, 0.14);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.top-nav a::before {
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.42), transparent 23%, rgba(115, 72, 24, 0.08) 52%, transparent 78%),
    repeating-linear-gradient(135deg, rgba(255, 253, 248, 0.13) 0 2px, rgba(119, 74, 31, 0.08) 2px 4px);
  content: "";
  opacity: 0.84;
  pointer-events: none;
}

.top-nav a::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 247, 214, 0.34);
  border-radius: 4px;
  content: "";
  pointer-events: none;
}

.top-nav a:hover {
  border-color: rgba(123, 70, 21, 1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 205, 0.92),
    inset 0 2px 0 rgba(255, 253, 248, 0.76),
    inset 0 -3px 0 rgba(67, 36, 17, 0.24),
    0 1px 0 rgba(255, 253, 248, 0.5),
    0 16px 30px rgba(31, 15, 28, 0.28),
    0 0 0 3px rgba(207, 150, 52, 0.18);
  transform: translateY(-1px);
}

.method-page .top-nav a[href="/four-pillars"] {
  border-color: rgba(138, 71, 101, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 248, 251, 0.9), rgba(240, 180, 207, 0.62) 46%, rgba(165, 89, 122, 0.38)),
    url("./assets/bg-four-pillars-rich.png") center / cover;
  color: #260014;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.82),
    0 8px 18px rgba(80, 28, 52, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 249, 0.7),
    inset 0 2px 0 rgba(255, 253, 248, 0.66),
    inset 0 -3px 0 rgba(97, 39, 65, 0.16),
    0 12px 24px rgba(66, 23, 45, 0.18);
}

.method-page .top-nav a[href="/western-astrology"] {
  border-color: rgba(81, 88, 158, 0.54);
  background:
    linear-gradient(135deg, rgba(249, 250, 255, 0.9), rgba(192, 203, 255, 0.62) 46%, rgba(115, 124, 195, 0.4)),
    url("./assets/bg-western-astrology-rich.png") center / cover;
  color: #101544;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.84),
    0 8px 18px rgba(43, 48, 112, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(244, 247, 255, 0.72),
    inset 0 2px 0 rgba(255, 253, 248, 0.66),
    inset 0 -3px 0 rgba(51, 56, 126, 0.17),
    0 12px 24px rgba(34, 35, 72, 0.18);
}

.method-page .top-nav a[href="/nine-star-ki"] {
  border-color: rgba(56, 128, 112, 0.54);
  background:
    linear-gradient(135deg, rgba(247, 255, 252, 0.9), rgba(186, 232, 220, 0.64) 46%, rgba(88, 154, 139, 0.38)),
    url("./assets/bg-nine-star-rich.png") center / cover;
  color: #06352c;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.82),
    0 8px 18px rgba(24, 88, 75, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(240, 255, 250, 0.72),
    inset 0 2px 0 rgba(255, 253, 248, 0.66),
    inset 0 -3px 0 rgba(31, 105, 88, 0.16),
    0 12px 24px rgba(23, 61, 56, 0.17);
}

.method-page .top-nav a[href="/palmistry"] {
  border-color: rgba(154, 105, 42, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 253, 240, 0.9), rgba(239, 207, 139, 0.66) 46%, rgba(176, 122, 48, 0.42)),
    url("./assets/bg-palmistry-rich.png") center / cover;
  color: #2e1700;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.86),
    0 8px 18px rgba(94, 57, 12, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 217, 0.76),
    inset 0 2px 0 rgba(255, 253, 248, 0.66),
    inset 0 -3px 0 rgba(117, 74, 19, 0.18),
    0 12px 24px rgba(99, 64, 20, 0.18);
}

.method-page .top-nav a[href="/compatibility"] {
  min-width: 136px;
  border-color: rgba(147, 65, 109, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 250, 253, 0.9), rgba(235, 170, 202, 0.64) 46%, rgba(166, 79, 130, 0.42)),
    url("./assets/header-gold-oracle.png") center / cover;
  color: #31001f;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.84),
    0 8px 18px rgba(88, 31, 64, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 242, 249, 0.74),
    inset 0 2px 0 rgba(255, 253, 248, 0.66),
    inset 0 -3px 0 rgba(111, 39, 78, 0.18),
    0 12px 24px rgba(61, 23, 51, 0.18),
    0 0 0 2px rgba(238, 205, 128, 0.16);
}

.method-page .top-nav a[href="/compatibility"]::before {
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.42), transparent 24%, rgba(255, 208, 231, 0.16) 58%, transparent 80%),
    repeating-linear-gradient(135deg, rgba(255, 253, 248, 0.14) 0 2px, rgba(56, 12, 42, 0.14) 2px 4px);
}

.method-page .top-nav a[href="/compatibility"]:hover {
  border-color: rgba(238, 205, 128, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 239, 0.52),
    inset 0 2px 0 rgba(255, 253, 248, 0.44),
    inset 0 -3px 0 rgba(49, 12, 38, 0.4),
    0 18px 34px rgba(61, 23, 51, 0.34),
    0 0 0 3px rgba(238, 205, 128, 0.2);
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  color: #fffdf8;
  background: var(--berry-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(234, 216, 167, 0.18), transparent 23%),
    linear-gradient(90deg, rgba(31, 15, 28, 0.9), rgba(122, 46, 77, 0.58), rgba(255, 248, 239, 0.1)),
    url("./assets/bg-four-pillars-rich.png");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  width: 100%;
  max-width: 1160px;
  min-width: 0;
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) clamp(18px, 4vw, 42px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.1;
}

.lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.ghost-action,
.free-card a,
.rank-card a,
.locked-row a,
.menu-link-button,
.menu-card button {
  position: relative;
  display: inline-flex;
  gap: 10px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action,
.free-card a,
.rank-card a,
.locked-row a,
.menu-link-button,
.menu-card button {
  border: 0;
  background:
    linear-gradient(135deg, var(--berry), var(--plum) 58%, var(--berry-deep));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 14px 26px rgba(122, 46, 77, 0.26),
    0 2px 8px rgba(31, 15, 28, 0.12);
  text-shadow: 0 1px 6px rgba(31, 15, 28, 0.42);
}

.ghost-action {
  border: 1px solid rgba(255, 253, 248, 0.28);
  color: #fffdf8;
  padding: 0 20px;
  background: rgba(255, 253, 248, 0.1);
}

.primary-action {
  padding: 0 22px;
}

.primary-action::before,
.free-card a::before,
.rank-card a::before,
.locked-row a::before,
.menu-link-button::before,
.menu-card button::before {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 42%);
  content: "";
  pointer-events: none;
}

.primary-action:hover,
.ghost-action:hover,
.free-card a:hover,
.rank-card a:hover,
.locked-row a:hover,
.menu-link-button:hover,
.menu-card button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 34px rgba(122, 46, 77, 0.34),
    0 3px 10px rgba(31, 15, 28, 0.14);
}

.button-orb {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

.button-orb.subtle {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
}

.primary-action.full {
  width: 100%;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.trust-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.1);
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.84rem;
}

.hero-panel {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(232, 199, 119, 0.74);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.94) 0 4px, transparent 5px),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.74) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 74%, rgba(255, 236, 174, 0.62) 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 244, 226, 0.9) 48%, rgba(255, 250, 238, 0.96));
  color: var(--ink);
  box-shadow:
    0 26px 72px rgba(31, 18, 35, 0.22),
    0 0 0 1px rgba(255, 253, 248, 0.5) inset,
    0 0 34px rgba(232, 199, 119, 0.22) inset;
  backdrop-filter: blur(18px);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 24%, rgba(255, 255, 255, 0.46) 34%, transparent 46%),
    radial-gradient(circle at 18% 28%, rgba(255, 223, 149, 0.42), transparent 18%),
    radial-gradient(circle at 88% 8%, rgba(239, 167, 182, 0.22), transparent 20%);
  content: "";
  pointer-events: none;
}

.hero-panel::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.panel-gem {
  position: absolute;
  top: -38px;
  right: -34px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(239, 167, 182, 0.38) 28%, rgba(122, 46, 77, 0.08) 58%, transparent 64%);
  pointer-events: none;
}

.hero-panel .panel-gem::after,
.method-panel::after {
  position: absolute;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.9) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.9) 45% 55%, transparent 55%);
  content: "";
  filter: drop-shadow(0 0 10px rgba(255, 230, 170, 0.8));
  pointer-events: none;
  transform: rotate(45deg);
}

.hero-panel .panel-gem::after {
  right: 68px;
  bottom: 18px;
}

.panel-top {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.panel-top h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.panel-top .eyebrow,
.section-heading .eyebrow,
.keyword-head .eyebrow,
.result-head .eyebrow,
.safety-section .eyebrow {
  color: var(--berry);
}

.ribbon,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(199, 164, 93, 0.2);
  background: linear-gradient(135deg, rgba(234, 216, 167, 0.34), rgba(255, 255, 255, 0.54));
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 800;
}

.ribbon {
  position: absolute;
  top: 0;
  right: 0;
}

.mock-form {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 12px;
  min-width: 0;
}

.mock-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mock-form label span {
  color: var(--berry-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.mock-form input,
.mock-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 232, 0.9));
  color: var(--berry-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(61, 30, 42, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mock-form input:focus,
.mock-form select:focus,
.method-form input:focus,
.method-form select:focus {
  outline: none;
  border-color: rgba(199, 164, 93, 0.82);
  background:
    linear-gradient(135deg, #fff, rgba(255, 249, 236, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 0 0 3px rgba(232, 199, 119, 0.22),
    0 12px 26px rgba(61, 30, 42, 0.12);
}

.mock-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--berry) 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, #fff, #fff8ef);
}

.mock-form button {
  border: 0;
  cursor: pointer;
}

.check-row {
  display: flex !important;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  gap: 9px !important;
  padding: 8px 10px;
  border: 1px solid rgba(199, 164, 93, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 226, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(61, 30, 42, 0.06);
}

.check-row input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--berry);
}

.check-row span {
  color: var(--berry) !important;
  overflow-wrap: anywhere;
}

.mock-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.mock-form .field-note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

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

.mini-points span {
  display: grid;
  min-width: 0;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 243, 221, 0.72));
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(61, 30, 42, 0.06);
}

.topic-band,
.keyword-section,
.ranking-section,
.sample-free,
.menu-section,
.how-section,
.safety-section {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 44px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.section-heading h2,
.keyword-head h2,
.sample-free h2,
.safety-section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.free-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.free-card,
.rank-card,
.menu-card,
.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(31, 36, 51, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.free-card:hover,
.rank-card:hover,
.menu-card:hover,
.steps article:hover {
  border-color: rgba(199, 164, 93, 0.38);
  box-shadow: 0 18px 52px rgba(31, 36, 51, 0.1);
  transform: translateY(-3px);
}

.free-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
}

.free-card::after,
.rank-card::after,
.menu-card::after {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, rgba(199, 164, 93, 0.72), transparent);
  content: "";
}

.free-card.main {
  background:
    linear-gradient(135deg, rgba(122, 46, 77, 0.96), rgba(66, 23, 45, 0.94)),
    url("./assets/salon-jewels.png");
  background-position: center;
  background-size: cover;
  color: #fffdf8;
}

.free-card h3,
.rank-card h3,
.menu-card h3,
.steps h3 {
  margin: 12px 0 8px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.35;
}

.free-card p,
.rank-card p,
.menu-card p,
.steps p,
.result-cards span,
.locked-row p {
  margin: 0;
  color: var(--muted);
}

.free-card.main p {
  color: rgba(255, 253, 248, 0.8);
}

.free-card a,
.rank-card a,
.locked-row a {
  align-self: flex-start;
  margin-top: 18px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.keyword-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: #fffdf8;
}

.keyword-head {
  max-width: 340px;
}

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

.chips a {
  padding: 10px 14px;
  border: 1px solid rgba(122, 46, 77, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--berry);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(31, 36, 51, 0.04);
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}

.chips a:hover {
  background: var(--berry);
  color: #fff;
  transform: translateY(-2px);
}

.ranking-grid,
.menu-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.menu-grid.single-offer {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}

.rank-card {
  position: relative;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
}

.rank-card.love {
  border-color: rgba(239, 167, 182, 0.48);
}

.rank-card.life {
  border-color: rgba(199, 164, 93, 0.48);
}

.rank-card.work {
  border-color: rgba(90, 143, 123, 0.36);
}

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rank-title span {
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 900;
}

.rank-title strong {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(145deg, var(--berry), var(--berry-deep));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.36rem;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(122, 46, 77, 0.2);
}

.rank-title strong small {
  display: block;
  margin-bottom: -2px;
  font-family: var(--font-sans);
  font-size: 0.54rem;
  font-weight: 800;
}

.sample-free {
  background: #fffdf8;
}

.result-mock {
  scroll-margin-top: 92px;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(122, 46, 77, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 239, 0.94));
  box-shadow: var(--shadow);
}

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

.result-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.result-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-head > span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--berry);
  font-weight: 900;
}

.fp-chart {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 12px;
  margin-bottom: 14px;
}

.fp-chart > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.fp-pillar {
  display: grid;
  min-height: 92px;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(122, 46, 77, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.9), rgba(255, 255, 255, 0.9));
  text-align: center;
}

.fp-pillar.muted {
  opacity: 0.64;
}

.fp-pillar span {
  color: var(--berry);
  font-size: 0.74rem;
  font-weight: 900;
}

.fp-pillar strong {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.1;
}

.fp-pillar small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.element-bars {
  display: grid;
  gap: 8px;
}

.element-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.element-row span,
.element-row strong {
  color: var(--berry);
  font-size: 0.8rem;
  font-weight: 900;
}

.element-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(122, 46, 77, 0.08);
}

.element-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--gold));
}

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

.result-cards section {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.result-cards p {
  margin: 0 0 8px;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 900;
}

.result-cards h4 {
  margin: 0 0 8px;
  color: var(--berry-deep);
  font-size: 1.1rem;
}

.axis-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 12px;
  margin-top: 12px;
}

.axis-panel > div,
.axis-panel ol {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(199, 164, 93, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(234, 216, 167, 0.18), rgba(255, 255, 255, 0.82));
}

.axis-panel > div {
  display: grid;
  gap: 8px;
}

.axis-panel > div div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.axis-panel span {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
}

.axis-panel strong,
.axis-panel li {
  color: var(--berry-deep);
  font-weight: 800;
}

.axis-panel ol {
  display: grid;
  gap: 7px;
  padding-left: 34px;
}

.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.evidence-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(122, 46, 77, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
}

.locked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(199, 164, 93, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 216, 167, 0.28), rgba(255, 253, 248, 0.8));
}

.unlock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.unlock-grid section {
  position: relative;
  min-height: 138px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(122, 46, 77, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 220, 226, 0.38));
}

.unlock-grid section::after {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.0) 0,
      rgba(255, 255, 255, 0.0) 9px,
      rgba(122, 46, 77, 0.045) 10px,
      rgba(122, 46, 77, 0.045) 11px
    );
  content: "";
  pointer-events: none;
}

.unlock-grid span {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(66, 23, 45, 0.08);
  color: var(--berry);
  font-size: 0.68rem;
  font-weight: 900;
}

.unlock-grid strong {
  display: block;
  color: var(--berry-deep);
  font-size: 1rem;
}

.unlock-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.menu-section {
  background: var(--ivory);
}

.menu-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
}

.menu-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 250, 240, 0.92)),
    url("./assets/salon-jewels.png");
  background-position: center;
  background-size: cover;
  border-color: rgba(199, 164, 93, 0.58);
}

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin: auto 0 12px;
  color: var(--berry);
  font-size: 1.8rem;
  font-weight: 900;
}

.price::before {
  color: var(--gold);
  content: "税込 ";
  font-size: 0.78rem;
  font-weight: 800;
}

.menu-card button {
  width: 100%;
  cursor: default;
}

.menu-link-button {
  width: 100%;
}

.menu-detail {
  display: grid;
  gap: 6px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.menu-detail li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.menu-detail li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.how-section {
  background: #fffdf8;
}

.steps article {
  padding: 22px;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  font-weight: 900;
}

.safety-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  background: var(--ink);
  color: #fffdf8;
}

.safety-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 253, 248, 0.76);
}

.sub-hero {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: clamp(50px, 8vw, 92px) clamp(18px, 4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(31, 36, 51, 0.92), rgba(122, 46, 77, 0.72)),
    url("./assets/salon-jewels.png");
  background-position: center;
  background-size: cover;
  color: #fffdf8;
}

.sub-hero > div {
  width: min(920px, 100%);
}

.sub-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.14;
}

.sub-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.02rem;
}

.compare-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.compare-panel section {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(31, 36, 51, 0.06);
}

.compare-panel h3 {
  margin: 0 0 8px;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.compare-panel p {
  margin: 0;
  color: var(--muted);
}

.checkout-shell {
  display: grid;
  min-height: calc(100svh - 72px);
  place-items: center;
  padding: clamp(38px, 7vw, 82px) clamp(18px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 248, 239, 0.96), rgba(255, 253, 248, 0.86)),
    url("./assets/salon-jewels.png");
  background-position: center;
  background-size: cover;
}

.checkout-card {
  width: min(760px, 100%);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(199, 164, 93, 0.42);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.checkout-card h1,
.checkout-card > .checkout-confirm-title {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.checkout-card p {
  color: var(--muted);
}

.order-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
  gap: 12px;
  margin: 22px 0;
}

.order-box > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-box span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.order-box strong {
  display: block;
  margin-top: 5px;
  color: var(--berry);
  font-size: 1.34rem;
}

.checkout-template-summary {
  margin: 20px 0 4px;
  padding: 20px 0;
  border-top: 1px solid rgba(199, 164, 93, 0.34);
  border-bottom: 1px solid rgba(199, 164, 93, 0.34);
}

.checkout-template-summary .eyebrow {
  margin-bottom: 6px;
}

.checkout-template-summary h2 {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.35;
}

.checkout-template-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.checkout-template-tags {
  margin-top: 14px;
}

.checkout-expert-note {
  font-weight: 800;
}

.checkout-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 10px;
}

.checkout-tier-card {
  position: relative;
  z-index: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 430px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(199, 164, 93, 0.42);
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  background: #fff8ea;
  box-shadow: 0 18px 42px rgba(66, 23, 45, 0.08);
}

.checkout-tier-card::before,
.checkout-tier-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.checkout-tier-card::before {
  z-index: -2;
  background-image: url("./assets/tier-gold-bars.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.02);
}

.checkout-tier-card::after {
  z-index: -1;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.76), transparent 26%),
    linear-gradient(105deg, rgba(255, 253, 246, 0.95) 0%, rgba(255, 249, 231, 0.88) 56%, rgba(255, 227, 146, 0.46) 100%);
}

.checkout-tier-card > * {
  position: relative;
  z-index: 1;
}

.checkout-tier-card.featured {
  border-color: rgba(122, 46, 77, 0.34);
  background: #fff0f8;
}

.checkout-tier-card.featured::before {
  background-image: url("./assets/tier-diamond-gems.png");
  background-position: center right;
  filter: hue-rotate(58deg) saturate(1.35) brightness(1.14);
}

.checkout-tier-card.featured::after {
  background:
    radial-gradient(circle at 15% 17%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(105deg, rgba(255, 250, 253, 0.95) 0%, rgba(255, 235, 247, 0.9) 55%, rgba(236, 115, 171, 0.42) 100%);
}

.checkout-tier-card.is-selected {
  border-color: rgba(183, 135, 45, 0.9);
  box-shadow:
    0 20px 48px rgba(66, 23, 45, 0.14),
    0 0 0 4px rgba(238, 205, 128, 0.28);
}

.tier-photo {
  display: none;
}

.tier-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.44), transparent 24%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(66, 23, 45, 0.18));
  pointer-events: none;
}

.tier-photo-gold {
  background-image: url("./assets/header-gold-oracle.png");
}

.tier-photo-diamond {
  background-image: url("./assets/salon-jewels.png");
}

.tier-card-head span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(183, 135, 45, 0.36);
  border-radius: 999px;
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier-card-head strong {
  display: block;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.checkout-tier-card p,
.checkout-tier-card ul {
  margin: 0;
  color: var(--muted);
}

.checkout-tier-card ul {
  display: grid;
  gap: 6px;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.tier-price {
  color: var(--berry);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
}

.checkout-list {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 1.2rem;
  color: var(--muted);
}

.checkout-reading-note {
  margin: 24px 0 22px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.legal-note {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-table {
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.legal-table > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.legal-table > div:last-child {
  border-bottom: 0;
}

.legal-table dt,
.legal-table dd {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-table dt {
  background: rgba(255, 248, 239, 0.84);
  color: var(--berry-deep);
  font-weight: 900;
}

.checkout-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(84, 45, 17, 0.42);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--berry), var(--berry-deep));
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.28),
    0 8px 16px rgba(31, 15, 28, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 0 rgba(37, 17, 12, 0.24),
    0 14px 28px rgba(31, 15, 28, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.checkout-button::before,
.checkout-button::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.checkout-button::before {
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(255, 253, 248, 0.48), transparent 24%, rgba(255, 253, 248, 0.18) 52%, transparent 78%),
    repeating-linear-gradient(135deg, rgba(255, 253, 248, 0.16) 0 2px, rgba(61, 30, 42, 0.09) 2px 4px);
  opacity: 0.72;
}

.checkout-button::after {
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 5px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 206, 0.18),
    inset 0 8px 18px rgba(255, 253, 248, 0.16),
    inset 0 -10px 18px rgba(31, 15, 28, 0.16);
}

.checkout-button:hover {
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -3px 0 rgba(37, 17, 12, 0.28),
    0 18px 34px rgba(31, 15, 28, 0.25),
    0 0 0 3px rgba(199, 164, 93, 0.16);
}

.checkout-button[data-tier-button="gold"] {
  border-color: rgba(136, 83, 14, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 246, 199, 0.8), rgba(210, 151, 45, 0.74) 48%, rgba(106, 62, 12, 0.76)),
    url("./assets/tier-gold-bars.png") center right / cover;
  color: #251306;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.72),
    0 10px 18px rgba(100, 61, 10, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    inset 0 -3px 0 rgba(93, 54, 10, 0.28),
    0 15px 30px rgba(112, 69, 12, 0.27);
}

.checkout-button[data-tier-button="diamond"] {
  border-color: rgba(70, 42, 132, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 234, 252, 0.52), rgba(113, 87, 171, 0.74) 46%, rgba(38, 29, 88, 0.86)),
    url("./assets/tier-diamond-gems.png") center right / cover;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(16, 7, 42, 0.28),
    0 1px 16px rgba(18, 9, 44, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 0 rgba(19, 12, 61, 0.36),
    0 15px 30px rgba(52, 31, 102, 0.28);
}

.back-link {
  display: block;
  margin-top: 14px;
  color: var(--berry);
  font-weight: 800;
  text-align: center;
}

.checkout-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.76rem;
}

.checkout-legal-links a {
  color: rgba(106, 31, 64, 0.66);
  text-decoration: none;
}

.checkout-legal-links a:hover {
  color: var(--berry);
  text-decoration: underline;
}

.paid-result-shell {
  align-items: start;
  min-height: calc(100svh - 72px);
}

.paid-result-shell > div {
  width: min(1040px, 100%);
}

.paid-reading-card {
  width: 100%;
  min-width: 0;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(199, 164, 93, 0.42);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.paid-reading-card h1 {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
}

.paid-reading-card .result-head > span {
  white-space: nowrap;
}

.reading-copy-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 14px 0;
}

.reading-copy-tools-top {
  margin-top: 4px;
}

.reading-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid rgba(183, 135, 45, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 248, 221, 0.98), rgba(199, 164, 93, 0.88)),
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.72), transparent 36%);
  color: #42172d;
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.56);
  box-shadow:
    0 12px 28px rgba(122, 46, 77, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.reading-copy-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(122, 46, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.reading-copy-button:disabled {
  cursor: progress;
  opacity: 0.66;
  transform: none;
}

.reading-copy-status {
  min-width: 7em;
  color: var(--berry);
  font-size: 0.86rem;
  font-weight: 900;
}

.paid-method-data {
  margin-top: 18px;
}

.paid-reading-highlight,
.paid-reading-flow,
.paid-reading-closing {
  margin-top: 18px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid rgba(199, 164, 93, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 229, 0.94), rgba(255, 253, 248, 0.96));
}

.paid-reading-highlight > p,
.paid-reading-flow > p,
.paid-reading-closing > p {
  margin: 0 0 8px;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 900;
}

.paid-reading-highlight > strong,
.paid-reading-closing > strong {
  display: block;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.5vw, 1.35rem);
  line-height: 1.75;
}

.paid-reading-flow div {
  display: grid;
  gap: 8px;
}

.paid-reading-flow div p {
  margin: 0;
  color: var(--muted);
}

.paid-reading-sections {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.paid-reading-sections section {
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 239, 0.9));
}

.paid-reading-sections section > p:first-child {
  margin: 0 0 6px;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 900;
}

.paid-reading-sections h2,
.email-receipt-box h2 {
  margin: 0 0 12px;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  line-height: 1.35;
}

.paid-reading-sections section p:not(:first-child),
.email-receipt-box p {
  margin: 10px 0 0;
  color: var(--muted);
}

.paid-reading-sections small {
  display: block;
  margin-top: 12px;
  color: rgba(109, 99, 112, 0.84);
  font-size: 0.82rem;
  line-height: 1.7;
}

.paid-action-steps {
  margin-top: 12px;
  color: var(--muted);
}

.paid-action-steps > strong {
  display: block;
  color: var(--berry-deep);
}

.paid-action-steps ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.paid-action-steps li {
  padding: 10px 12px;
  border: 1px solid rgba(122, 46, 77, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  line-height: 1.7;
}

.paid-action-steps span {
  display: block;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
}

.paid-reading-more {
  margin-top: 12px;
  border-top: 1px solid rgba(122, 46, 77, 0.1);
  color: var(--muted);
}

.paid-reading-more summary {
  width: fit-content;
  min-height: 38px;
  padding: 10px 0 0;
  color: var(--berry);
  font-weight: 900;
  cursor: pointer;
}

.email-receipt-box {
  margin-top: 22px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(199, 164, 93, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 216, 167, 0.42), rgba(255, 253, 248, 0.94)),
    radial-gradient(circle at 92% 0%, rgba(239, 167, 182, 0.16), transparent 34%);
}

.email-receipt-box form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.email-receipt-box label {
  display: grid;
  gap: 6px;
}

.email-receipt-box label span {
  color: var(--berry-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.email-receipt-box input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background: #fff;
  color: var(--berry-deep);
}

.email-receipt-box input:focus {
  outline: none;
  border-color: rgba(199, 164, 93, 0.82);
  box-shadow: 0 0 0 3px rgba(232, 199, 119, 0.22);
}

.email-receipt-box button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 12px 18px 18px;
  background: rgba(255, 253, 248, 0.72);
  color: rgba(106, 31, 64, 0.34);
  font-size: 0.68rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: rgba(106, 31, 64, 0.68);
}

.admin-hero {
  padding: clamp(50px, 8vw, 92px) clamp(18px, 4vw, 44px);
  background:
    linear-gradient(90deg, rgba(255, 248, 229, 0.92), rgba(255, 253, 248, 0.7)),
    url("./assets/header-gold-oracle.png");
  background-position: center;
  background-size: cover;
}

.admin-hero > div,
.admin-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.admin-hero h1 {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.15;
}

.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.admin-hero .admin-public-note {
  display: inline-flex;
  max-width: 780px;
  padding: 10px 14px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--berry-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-shell {
  display: grid;
  gap: 18px;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 44px);
}

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

.admin-card,
.admin-panel {
  border: 1px solid rgba(199, 164, 93, 0.36);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 42px rgba(31, 36, 51, 0.06);
}

.admin-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 245px;
  padding: 20px;
}

.admin-card h2,
.admin-panel h2 {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.admin-card p,
.admin-panel p,
.admin-checklist {
  margin: 0;
  color: var(--muted);
}

.admin-compact .admin-hero {
  padding-block: clamp(28px, 7vw, 54px);
}

.admin-compact .admin-hero h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
}

.admin-compact .admin-hero p,
.admin-compact .admin-card p,
.admin-compact .admin-panel p,
.admin-compact .admin-checklist {
  font-size: 0.86rem;
  line-height: 1.75;
}

.admin-dashboard-panel {
  order: -1;
  border-color: rgba(199, 164, 93, 0.42);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 232, 172, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 229, 0.88));
}

.admin-config-panel {
  order: 1;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 226, 153, 0.3), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 229, 0.9));
}

.admin-model-form {
  display: grid;
  gap: 14px;
}

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

.admin-model-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(199, 164, 93, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 229, 0.72));
}

.admin-model-card h3 {
  margin: 0;
  color: var(--berry);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.admin-model-card label,
.admin-budget-row label {
  display: grid;
  gap: 5px;
}

.admin-model-card label span,
.admin-budget-row label span,
.admin-api-usage span {
  color: var(--berry-deep);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-model-card input,
.admin-model-card select,
.admin-budget-row input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background: #fff;
  color: var(--berry-deep);
  font: inherit;
  font-size: 0.86rem;
}

.admin-budget-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 12px;
  align-items: stretch;
}

.admin-api-usage {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(199, 164, 93, 0.36);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.admin-api-usage strong {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.admin-api-usage small {
  color: var(--muted);
  font-size: 0.74rem;
}

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

.admin-stats-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.admin-stats-controls button,
.admin-stats-controls input {
  min-height: 34px;
  border: 1px solid rgba(199, 164, 93, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--berry);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-stats-controls button {
  padding: 7px 13px;
}

.admin-stats-controls button.is-active {
  border-color: rgba(122, 76, 24, 0.6);
  background: linear-gradient(135deg, rgba(255, 242, 191, 0.95), rgba(210, 168, 76, 0.9));
  box-shadow: 0 8px 18px rgba(122, 76, 24, 0.14);
  color: #4a2812;
}

.admin-stats-controls input {
  width: 142px;
  padding: 7px 12px;
}

.admin-stat-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 229, 0.7));
}

.admin-stat-card span {
  color: var(--berry);
  font-size: 0.74rem;
  font-weight: 900;
}

.admin-stat-card strong {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  line-height: 1;
}

.admin-stat-card small,
.admin-inline-note {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.admin-inline-note {
  margin-top: 12px;
}

.admin-x-panel {
  order: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 226, 153, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 229, 0.9));
}

.x-scheduler-controls {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(130px, 0.8fr) auto auto auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0 14px;
}

.x-scheduler-controls label {
  display: grid;
  gap: 5px;
}

.x-scheduler-controls label span {
  color: var(--berry-deep);
  font-size: 0.72rem;
  font-weight: 900;
}

.x-scheduler-controls input,
.x-scheduler-controls select,
.x-scheduler-controls button,
.x-scheduler-controls a {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(199, 164, 93, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 211, 0.88));
  color: var(--berry);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
}

.x-scheduler-controls button,
.x-scheduler-controls a {
  cursor: pointer;
}

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

.x-post-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 236, 0.78));
  box-shadow: 0 12px 28px rgba(74, 40, 18, 0.06);
}

.x-post-card.is-posted {
  border-color: rgba(76, 119, 72, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 247, 230, 0.82));
}

.x-post-card.is-failed {
  border-color: rgba(142, 45, 63, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 235, 240, 0.78));
}

.x-post-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.x-post-meta span,
.x-post-meta small {
  color: var(--berry);
  font-size: 0.74rem;
  font-weight: 900;
}

.x-post-meta strong {
  justify-self: start;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1;
}

.x-post-text {
  min-height: 230px;
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.78;
}

.x-post-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: end;
}

.x-post-button {
  width: 100%;
  border-radius: 8px;
}

.x-post-button.is-posted {
  border-color: rgba(76, 119, 72, 0.42);
  background: linear-gradient(135deg, rgba(237, 248, 232, 0.98), rgba(216, 237, 203, 0.86));
  color: #375b34;
}

.x-post-error {
  margin: -4px 0 0;
  color: #8e2d3f;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.5;
}

.admin-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.admin-actions a,
.admin-secondary-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(199, 164, 93, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, rgba(255, 248, 229, 0.84));
  color: var(--berry);
  font-weight: 900;
}

.admin-panel {
  padding: clamp(20px, 4vw, 28px);
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-panel-head > span,
.admin-panel-actions > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(234, 216, 167, 0.34);
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-panel-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.admin-panel-actions button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid rgba(199, 164, 93, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 211, 0.88));
  color: var(--berry);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-panel-actions button:hover {
  border-color: rgba(122, 76, 24, 0.62);
  color: var(--berry-deep);
  box-shadow: 0 8px 18px rgba(122, 76, 24, 0.12);
}

.admin-panel-actions button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.admin-settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-reading-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-method-note,
.admin-method-input-panel,
.admin-palm-preview {
  grid-column: 1 / -1;
}

.admin-method-input-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-method-input-panel[hidden] {
  display: none !important;
}

.admin-method-input-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.admin-method-input-panel .admin-palm-stage {
  width: min(100%, 260px);
  justify-self: center;
}

.admin-method-input-panel .photo-status {
  margin: 0;
}

.admin-method-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(199, 164, 93, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 226, 0.72));
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-test-method-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 10px;
  margin: 18px 0;
  overflow-x: auto;
  padding: 0 2px 8px;
  scrollbar-width: thin;
}

.admin-test-method-card {
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 138px;
  padding: 14px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 229, 0.78));
  color: var(--muted);
  font: inherit;
  text-align: left;
  box-shadow: 0 14px 32px rgba(73, 28, 50, 0.08);
}

.admin-test-method-card span {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-test-method-card strong {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.32;
}

.admin-test-method-card small {
  color: var(--muted);
  line-height: 1.6;
}

.admin-test-method-card:hover,
.admin-test-method-card.is-active {
  border-color: rgba(122, 46, 77, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 252, 242, 0.98), rgba(255, 235, 189, 0.78)),
    radial-gradient(circle at 92% 8%, rgba(122, 46, 77, 0.15), transparent 32%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 38px rgba(73, 28, 50, 0.14);
  transform: translateY(-1px);
}

.admin-test-context {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(122, 46, 77, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(255, 246, 226, 0.8));
}

.admin-test-context h3,
.admin-test-context p {
  margin: 0;
}

.admin-test-context h3 {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.admin-test-context p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

.admin-settings-form label {
  display: grid;
  gap: 6px;
}

.admin-reading-form label {
  display: grid;
  gap: 6px;
}

.admin-settings-form label span {
  color: var(--berry-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-reading-form label span {
  color: var(--berry-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-settings-form input,
.admin-settings-form select,
.admin-settings-form textarea,
.admin-reading-form input,
.admin-reading-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background: #fff;
  color: var(--berry-deep);
  font: inherit;
}

.admin-reading-form .field-note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.admin-reading-preview-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-palm-preview {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(199, 164, 93, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(255, 240, 201, 0.42));
}

.admin-palm-stage {
  width: min(100%, 220px);
  margin: 0 auto;
}

.admin-palm-preview .photo-choice {
  align-content: center;
}

.admin-palm-preview .photo-status {
  grid-column: 2;
}

.admin-wide-field,
.admin-form-actions {
  grid-column: 1 / -1;
}

.admin-test-panel {
  border-color: rgba(122, 46, 77, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 229, 0.88)),
    radial-gradient(circle at 88% 12%, rgba(199, 164, 93, 0.18), transparent 30%);
}

.admin-test-output {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-test-output h3 {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.admin-test-output > p {
  margin: 0;
}

.admin-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-test-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(122, 46, 77, 0.16);
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.86);
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-test-data {
  margin: 0;
}

.admin-test-sections {
  display: grid;
  gap: 12px;
}

.admin-test-sections section {
  padding: 16px;
  border: 1px solid rgba(122, 46, 77, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.admin-test-sections section > p:first-child {
  margin: 0 0 8px;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-test-sections h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.admin-test-sections p:not(:first-child) {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-test-sections span {
  display: block;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
}

.admin-test-sections small {
  display: block;
  margin-top: 10px;
  color: rgba(109, 99, 112, 0.78);
}

.admin-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-secondary-button {
  cursor: pointer;
}

.admin-checklist {
  display: grid;
  gap: 8px;
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .hero-inner,
  .free-grid,
  .keyword-section,
  .ranking-grid,
  .fp-chart,
  .fp-pillars,
  .result-cards,
  .unlock-grid,
  .menu-grid,
  .steps,
  .checkout-tier-grid,
  .compare-panel,
  .axis-panel,
  .safety-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    align-items: stretch;
    overflow: visible;
    white-space: normal;
  }

  .top-nav a {
    min-width: 0;
    display: grid;
    height: 100%;
    min-height: 56px;
    place-items: center;
    padding: 7px 3px;
    font-size: 0.86rem;
    line-height: 1.16;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .method-page .top-nav a[href="/compatibility"] {
    min-width: 0;
  }

  .hero-inner {
    min-height: auto;
    width: 100%;
    max-width: 100%;
  }

  .free-card,
  .rank-card,
  .menu-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .admin-test-method-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin: 14px 0;
    overflow-x: visible;
    padding: 0;
  }

  .admin-test-method-card {
    min-height: 58px;
    place-items: center;
    gap: 2px;
    overflow: hidden;
    padding: 7px 3px;
    text-align: center;
  }

  .admin-test-method-card span {
    font-size: 0.7rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .admin-test-method-card strong {
    display: none;
  }

  .admin-test-method-card small {
    display: none;
  }

  .site-header {
    position: static;
  }

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

  .top-nav a {
    min-height: 50px;
    font-size: 0.94rem;
    line-height: 1.18;
  }

  .method-page .top-nav a[href="/compatibility"] {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
  }

  .method-page .top-nav a[href="/four-pillars"] {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .method-page .top-nav a[href="/western-astrology"] {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .method-page .top-nav a[href="/nine-star-ki"] {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }

  .method-page .top-nav a[href="/palmistry"] {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-inline: 14px;
  }

  .hero-panel {
    padding: 20px 14px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .locked-row,
  .result-head {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .ghost-action,
  .menu-link-button,
  .locked-row a {
    width: 100%;
  }

  .order-box {
    grid-template-columns: 1fr;
  }

  .admin-grid,
  .admin-quick-grid,
  .admin-stats-grid,
  .admin-model-cards,
  .admin-budget-row,
  .admin-settings-form,
  .admin-reading-form,
  .admin-form-actions,
  .admin-palm-preview,
  .x-scheduler-controls,
  .x-posts-grid {
    grid-template-columns: 1fr;
  }

  .admin-palm-preview .photo-status {
    grid-column: auto;
  }

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

/* Static multi-method page UI */
.method-page {
  background:
    linear-gradient(180deg, #fff8ef 0%, #fffdf8 48%, #fff4e8 100%);
}

.method-page .top-nav a[aria-current="page"] {
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 248, 0.52),
    inset 0 2px 0 rgba(255, 253, 248, 0.42),
    inset 0 -3px 0 rgba(24, 12, 22, 0.32),
    0 16px 32px rgba(31, 15, 28, 0.3),
    0 0 0 4px rgba(238, 205, 128, 0.24);
  transform: translateY(-1px);
}

.method-page .top-nav a[href="/compatibility"][aria-current="page"] {
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 239, 0.56),
    inset 0 2px 0 rgba(255, 253, 248, 0.46),
    inset 0 -3px 0 rgba(49, 12, 38, 0.4),
    0 18px 34px rgba(61, 23, 51, 0.34),
    0 0 0 4px rgba(238, 205, 128, 0.22);
}

.method-hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  color: #fffdf8;
  background: var(--berry-deep);
}

.method-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 15, 28, 0.92), rgba(122, 46, 77, 0.58), rgba(255, 248, 239, 0.1)),
    url("./assets/bg-four-pillars-rich.png");
  background-position: center;
  background-size: cover;
}

.method-western .method-hero-bg {
  background:
    radial-gradient(circle at 72% 18%, rgba(155, 180, 255, 0.34), transparent 24%),
    linear-gradient(90deg, rgba(19, 22, 54, 0.96), rgba(76, 79, 145, 0.72), rgba(255, 253, 248, 0.12)),
    url("./assets/bg-western-astrology-rich.png");
  background-position: center;
  background-size: cover;
}

.method-nine-star .method-hero-bg {
  background:
    radial-gradient(circle at 74% 20%, rgba(155, 213, 200, 0.34), transparent 24%),
    linear-gradient(90deg, rgba(12, 39, 34, 0.96), rgba(47, 117, 104, 0.72), rgba(255, 248, 239, 0.12)),
    url("./assets/bg-nine-star-rich.png");
  background-position: center;
  background-size: cover;
}

.method-palmistry .method-hero-bg {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 235, 180, 0.32), transparent 24%),
    linear-gradient(90deg, rgba(54, 32, 20, 0.88), rgba(154, 102, 43, 0.52), rgba(255, 245, 216, 0.08)),
    url("./assets/header-gold-oracle.png");
  background-position: center;
  background-size: cover;
}

.method-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  width: 100%;
  max-width: 1160px;
  min-width: 0;
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(18px, 4vw, 44px);
}

.method-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5.7vw, 5rem);
  line-height: 1.1;
  text-shadow:
    0 3px 18px rgba(31, 15, 28, 0.48),
    0 1px 0 rgba(31, 15, 28, 0.26);
}

.method-copy .eyebrow,
.method-copy > p:not(.eyebrow):not(.method-subtitle) {
  text-shadow: 0 2px 12px rgba(31, 15, 28, 0.42);
}

.method-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  font-family: var(--font-serif);
  color: rgba(255, 253, 248, 0.93);
  font-size: 2.65rem;
  line-height: 1.18;
  text-shadow:
    0 3px 16px rgba(31, 15, 28, 0.42),
    0 1px 0 rgba(31, 15, 28, 0.22);
}

.method-panel {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(232, 199, 119, 0.7);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.94) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 80%, rgba(255, 236, 174, 0.5) 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 244, 226, 0.9) 48%, rgba(255, 250, 238, 0.96));
  color: var(--ink);
  box-shadow:
    0 26px 72px rgba(31, 18, 35, 0.2),
    0 0 0 1px rgba(255, 253, 248, 0.5) inset,
    0 0 34px rgba(232, 199, 119, 0.2) inset;
}

.method-panel > * {
  position: relative;
  z-index: 1;
}

.method-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 24%, rgba(255, 255, 255, 0.42) 34%, transparent 46%),
    radial-gradient(circle at 18% 24%, rgba(255, 223, 149, 0.36), transparent 18%),
    radial-gradient(circle at 88% 8%, rgba(239, 167, 182, 0.18), transparent 20%);
  content: "";
  pointer-events: none;
}

.method-panel::after {
  top: 30px;
  right: 34px;
}

.method-panel .panel-top::after {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(199, 164, 93, 0.26);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.method-form,
.method-data-mini,
.method-data-box,
.reading-grid,
.offer-grid,
.method-switch-grid {
  position: relative;
  z-index: 1;
}

.method-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.method-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.method-form label span,
.method-data-mini span,
.method-data-box span {
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 900;
}

.method-form input,
.method-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 232, 0.9));
  color: var(--berry-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(61, 30, 42, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.birth-date-fields {
  display: grid;
  grid-template-columns: minmax(96px, 1.2fr) minmax(74px, 0.8fr) minmax(74px, 0.8fr);
  gap: 8px;
  min-width: 0;
}

.birth-date-fields input {
  text-align: center;
}

.method-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.method-form .field-note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.simple-input-note {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 218, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(61, 30, 42, 0.07);
}

.simple-input-note strong {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.35;
}

.simple-input-note span {
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1.45;
}

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

.reading-preview-list span {
  display: grid;
  min-width: 0;
  min-height: 32px;
  place-items: center;
  border: 1px solid rgba(199, 164, 93, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 245, 226, 0.72));
  color: var(--berry) !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(61, 30, 42, 0.05);
}

.optional-fortune-settings {
  min-width: 0;
  border: 1px solid rgba(139, 74, 95, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 235, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(61, 30, 42, 0.06);
}

.optional-fortune-settings summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 12px 14px;
  color: var(--berry-deep);
  cursor: pointer;
  list-style: none;
}

.optional-fortune-settings summary::-webkit-details-marker {
  display: none;
}

.optional-fortune-settings summary::after {
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(139, 74, 95, 0.12);
  color: var(--berry);
  font-weight: 900;
}

.optional-fortune-settings[open] summary::after {
  content: "-";
}

.optional-fortune-settings summary span {
  color: var(--berry-deep) !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
}

.optional-fortune-settings summary small {
  grid-column: 1 / 2;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
}

.optional-fortune-fields {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.optional-fortune-settings:not([open]) .optional-fortune-fields {
  display: none;
}

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

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

.hand-photo-group {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(199, 164, 93, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 232, 172, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 246, 239, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(66, 23, 45, 0.06);
}

.hand-photo-head {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.hand-photo-head strong {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.25;
}

.hand-photo-head small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.45;
}

.hand-photo-group .photo-choice {
  gap: 7px;
}

.hand-photo-group .photo-choice-button {
  min-height: 76px;
  padding: 10px 8px;
}

.hand-photo-group .photo-choice-button span {
  font-size: 0.82rem !important;
}

.hand-photo-group .photo-choice-button small,
.hand-photo-group .photo-native-fallback span {
  font-size: 0.66rem !important;
}

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

.compatibility-person-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(199, 164, 93, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 225, 176, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 245, 239, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 10px 24px rgba(66, 23, 45, 0.06);
}

.compatibility-person-card h3 {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.3;
}

.hand-photo-group .photo-native-fallback {
  padding: 8px;
}

.photo-choice-button {
  position: relative;
  display: grid !important;
  min-height: 104px;
  align-content: center;
  gap: 6px !important;
  padding: 16px;
  border: 1px solid rgba(139, 74, 95, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, rgba(253, 227, 234, 0.62));
  color: var(--berry-deep);
  cursor: pointer;
  font: inherit;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 22px rgba(61, 30, 42, 0.08);
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.photo-choice-button .photo-file-input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
}

.photo-choice-button:hover {
  border-color: rgba(139, 74, 95, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 15px 30px rgba(61, 30, 42, 0.14);
  transform: translateY(-1px);
}

.photo-choice-button.is-selected {
  border-color: rgba(154, 106, 47, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 248, 225, 0.98), rgba(255, 236, 174, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 248, 0.82),
    0 15px 30px rgba(154, 106, 47, 0.16);
}

.photo-file-input {
  width: 100%;
  min-height: 40px;
  padding: 7px;
  border: 1px solid rgba(139, 74, 95, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--berry-deep);
  font-size: 0.78rem;
  cursor: pointer;
}

.photo-file-input::file-selector-button {
  margin-right: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(164, 72, 112, 0.95), rgba(91, 22, 52, 0.98));
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.photo-choice-button span {
  color: var(--berry-deep) !important;
  font-size: 1rem !important;
}

.photo-choice-button small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.photo-status {
  min-height: 1.4em;
  color: var(--berry) !important;
  font-weight: 800;
}

.reading-window-lock {
  overflow: hidden;
}

.reading-window-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 229, 169, 0.28), transparent 32%),
    rgba(37, 17, 31, 0.62);
  backdrop-filter: blur(8px);
}

.reading-window-backdrop[hidden] {
  display: none;
}

.reading-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: min(88vh, 980px);
  overflow: hidden;
  border: 1px solid rgba(236, 203, 129, 0.48);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 234, 181, 0.28), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(255, 244, 232, 0.94));
  box-shadow:
    0 30px 90px rgba(23, 9, 19, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.reading-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(199, 164, 93, 0.28);
  background: linear-gradient(135deg, rgba(255, 250, 237, 0.98), rgba(244, 222, 178, 0.72));
}

.reading-window-head strong {
  color: var(--berry-deep);
  font-size: 0.92rem;
  font-weight: 900;
}

.reading-window-close,
.reading-window-open {
  border: 1px solid rgba(199, 164, 93, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 251, 239, 0.98), rgba(240, 210, 139, 0.82));
  color: var(--berry-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(77, 39, 17, 0.14);
}

.reading-window-close {
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  line-height: 1;
}

.reading-window-open {
  width: 100%;
  min-height: 46px;
  margin: 14px 0;
}

.reading-window-body {
  min-height: 0;
  overflow: auto;
  padding: clamp(14px, 3vw, 26px);
}

.reading-window-body > .free-result-sheet,
.reading-window-body > [data-paid-reading-root],
.reading-window-body > .admin-test-output {
  margin: 0;
}

.reading-window-body .hero-result-sheet,
.reading-window-body .paid-reading-card,
.reading-window-body .admin-test-output {
  box-shadow: none;
}

.reading-window-body .free-result-sheet.is-reading-pending,
.reading-window-body .reading-pending-card {
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid rgba(199, 164, 93, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 235, 0.96));
}

.free-result-sheet.is-reading-pending .result-head,
.reading-pending-card {
  border: 1px solid rgba(199, 164, 93, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 232, 174, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 252, 0.98), rgba(255, 252, 245, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 36px rgba(66, 23, 45, 0.08);
}

.free-result-sheet.is-reading-pending .result-head {
  display: block;
  padding: clamp(28px, 8vw, 44px) clamp(24px, 7vw, 38px);
}

.reading-pending-card {
  padding: clamp(30px, 8vw, 46px) clamp(24px, 7vw, 38px);
}

.free-result-sheet.is-reading-pending .method-data-box,
.free-result-sheet.is-reading-pending .reading-grid,
.free-result-sheet.is-reading-pending .result-next,
.free-result-sheet.is-reading-pending .result-footnote {
  display: none;
}

.free-result-sheet.is-reading-pending .result-head h3,
.reading-pending-card h1 {
  margin-top: 12px;
  color: var(--berry-deep);
  font-size: clamp(2.15rem, 9vw, 3.2rem);
  line-height: 1.12;
}

.free-result-sheet.is-reading-pending .result-subtitle,
.reading-pending-card .legal-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1rem, 4.2vw, 1.25rem);
}

.photo-native-fallback {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(199, 164, 93, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 226, 0.72));
}

.photo-native-fallback span {
  color: var(--berry) !important;
  font-size: 0.8rem !important;
  font-weight: 900;
}

.photo-native-fallback input {
  width: 100%;
  min-height: 44px;
  color: var(--berry-deep);
  font: inherit;
}

.photo-native-fallback input::file-selector-button {
  margin-right: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(164, 72, 112, 0.95), rgba(91, 22, 52, 0.98));
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.method-data-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.method-data-mini div,
.method-data-box div {
  padding: 12px;
  border: 1px solid rgba(122, 46, 77, 0.13);
  border-radius: 8px;
  background: #fff;
}

.method-data-mini strong,
.method-data-box strong {
  display: block;
  margin-top: 3px;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1.22rem;
}

.method-switch-section,
.free-preview-section,
.detail-offer-section {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 44px);
}

.method-switch-grid,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.method-switch-card,
.offer-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 184px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(31, 36, 51, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.method-switch-card:hover,
.offer-card:hover {
  border-color: rgba(199, 164, 93, 0.46);
  box-shadow: 0 18px 52px rgba(31, 36, 51, 0.1);
  transform: translateY(-3px);
}

.method-switch-card::after,
.offer-card::after {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, rgba(199, 164, 93, 0.72), transparent);
  content: "";
}

.method-switch-card span,
.offer-card .tag {
  justify-self: start;
}

.method-switch-card strong,
.offer-card h3 {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.35;
}

.method-switch-card small,
.offer-card p {
  color: var(--muted);
}

.method-switch-card.is-active {
  background:
    linear-gradient(135deg, rgba(122, 46, 77, 0.96), rgba(66, 23, 45, 0.94)),
    url("./assets/salon-jewels.png");
  background-position: center;
  background-size: cover;
  color: #fffdf8;
}

.method-switch-card.is-active strong,
.method-switch-card.is-active small {
  color: #fffdf8;
}

.free-preview-section {
  background: #fffdf8;
}

.free-result-sheet {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(122, 46, 77, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 239, 0.94));
  box-shadow: var(--shadow);
}

.free-result-sheet[hidden] {
  display: none;
}

.hero-result-sheet {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(31, 36, 51, 0.1);
}

.hero-result-sheet .result-head {
  margin-bottom: 0;
}

.hero-result-sheet .result-head h3 {
  font-size: 1.3rem;
}

.hero-result-sheet .method-data-box,
.hero-result-sheet .reading-grid {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.hero-result-sheet .reading-grid section,
.hero-result-sheet .reading-grid section.wide {
  grid-column: auto;
  min-height: auto;
  padding: 14px;
}

.method-data-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

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

.reading-grid section {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reading-grid section.wide {
  grid-column: span 3;
  min-height: 132px;
  background: linear-gradient(135deg, rgba(234, 216, 167, 0.22), rgba(255, 255, 255, 0.9));
}

.reading-grid p {
  margin: 0 0 8px;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 900;
}

.reading-grid h4 {
  margin: 0 0 8px;
  color: var(--berry-deep);
  font-size: 1.08rem;
}

.reading-grid span {
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
}

.result-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(199, 164, 93, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 216, 167, 0.48), rgba(255, 253, 248, 0.92)),
    radial-gradient(circle at 94% 0%, rgba(151, 52, 94, 0.16), transparent 34%);
  box-shadow: 0 18px 46px rgba(73, 28, 50, 0.12);
}

.result-next-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-next p {
  margin: 4px 0 0;
  color: var(--muted);
}

.result-next-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: auto;
  padding: 8px 4px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--berry);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(1.45rem, 4.3vw, 2.18rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(91, 22, 52, 0.16);
  box-shadow: none;
}

.result-next-button::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 38, 74, 0), rgba(183, 135, 45, 0.95), rgba(126, 38, 74, 0));
  content: "";
  opacity: 0.78;
}

.result-next-button .button-orb {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #b47a17;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 1.2em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 18px rgba(124, 78, 15, 0.25);
}

.result-next-button:hover {
  color: #4a1430;
  transform: translateX(4px);
}

.result-next-button:hover::after {
  opacity: 1;
  transform: scaleX(0.96);
}

.result-next-actions {
  display: grid;
  min-width: min(360px, 100%);
  gap: 10px;
}

.result-next-button.gold {
  color: #351223;
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 224, 151, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 244, 208, 0.62), rgba(255, 253, 248, 0));
}

.result-next-button.diamond {
  border-color: rgba(164, 72, 112, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 151, 204, 0.26), rgba(67, 18, 71, 0.62)),
    url("./assets/tier-diamond-gems.png") 74% center / 180% auto;
  text-shadow: 0 1px 12px rgba(31, 5, 32, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 15px 32px rgba(91, 22, 74, 0.24);
}

.offer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-card {
  min-height: 300px;
}

.offer-card.featured {
  border-color: rgba(199, 164, 93, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 250, 240, 0.92)),
    url("./assets/salon-jewels.png");
  background-position: center;
  background-size: cover;
}

.price-tag {
  margin-top: auto;
  color: var(--berry);
  font-size: 1.8rem;
  font-weight: 900;
}

.method-western {
  --berry: #4c4f91;
  --berry-deep: #222348;
  --plum: #343768;
  --rose: #9bb4ff;
  --rose-soft: #e4e9ff;
  --gold: #b79b63;
  --line: rgba(76, 79, 145, 0.16);
}

.method-nine-star {
  --berry: #2f7568;
  --berry-deep: #173d38;
  --plum: #24564e;
  --rose: #9bd5c8;
  --rose-soft: #e2f5ef;
  --gold: #b79455;
  --line: rgba(47, 117, 104, 0.16);
}

.method-palmistry {
  --berry: #9a6a2f;
  --berry-deep: #463018;
  --plum: #6f4a23;
  --rose: #e8c47b;
  --rose-soft: #fff0c9;
  --gold: #d5aa58;
  --line: rgba(154, 106, 47, 0.18);
}

.method-compatibility {
  --berry: #8b2f62;
  --berry-deep: #3d1733;
  --plum: #5b2249;
  --rose: #df8aa4;
  --rose-soft: #ffe3ec;
  --gold: #c79a55;
  --line: rgba(139, 47, 98, 0.18);
}

.method-compatibility .method-hero-bg {
  background:
    linear-gradient(rgba(41, 18, 36, 0.48), rgba(41, 18, 36, 0.28)),
    radial-gradient(circle at 30% 28%, rgba(255, 230, 170, 0.34), transparent 24%),
    radial-gradient(circle at 70% 58%, rgba(223, 138, 164, 0.26), transparent 26%),
    url("./assets/header-gold-oracle.png") center / cover;
}

.seo-content {
  padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 46px);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 246, 229, 0.92));
}

.seo-content-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.seo-content h2,
.seo-content h3 {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  letter-spacing: 0;
}

.seo-content h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.seo-content p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.seo-grid article {
  padding: 18px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.seo-grid h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}

.seo-grid p {
  margin: 0;
  font-size: 0.95rem;
}

.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 46px) 0;
  color: rgba(84, 62, 48, 0.74);
  font-size: 0.9rem;
}

.page-breadcrumb a {
  color: #7c4d1d;
  font-weight: 800;
  text-decoration: none;
}

.page-breadcrumb a::after {
  margin-left: 8px;
  color: rgba(124, 77, 29, 0.48);
  content: "/";
}

.page-breadcrumb span {
  color: rgba(55, 34, 24, 0.76);
}

.palmistry-topic-hero {
  background:
    linear-gradient(135deg, rgba(255, 251, 238, 0.94), rgba(248, 226, 188, 0.78)),
    url("./assets/bg-palmistry-rich.png") center / cover;
}

.seo-topic-links,
.seo-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.seo-topic-links a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(199, 164, 93, 0.34);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(250, 236, 209, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 28px rgba(62, 34, 19, 0.07);
}

.seo-topic-links span {
  color: #9a6420;
  font-size: 0.92rem;
  font-weight: 900;
}

.seo-topic-links strong {
  color: #35170d;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.35;
}

.seo-topic-links a:hover,
.seo-cta-row .seo-method-card:hover {
  border-color: rgba(164, 105, 28, 0.58);
  transform: translateY(-1px);
}

.seo-faq {
  margin-top: 30px;
}

.seo-faq details {
  border-top: 1px solid rgba(199, 164, 93, 0.32);
}

.seo-faq details:last-child {
  border-bottom: 1px solid rgba(199, 164, 93, 0.32);
}

.seo-faq summary {
  cursor: pointer;
  padding: 16px 0;
  color: #3a1c0b;
  font-weight: 900;
}

.seo-faq details p {
  margin: 0 0 16px;
}

.palm-photo-stage {
  position: relative;
  display: grid;
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  place-items: center;
  margin: 12px auto;
  overflow: hidden;
  border: 1px solid rgba(139, 74, 95, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(253, 227, 234, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(189, 154, 89, 0.24), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.palm-photo-stage-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 460px;
  aspect-ratio: auto;
  min-height: 0;
  gap: 10px;
  padding: 10px;
  place-items: stretch;
}

.palm-photo-stage::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(139, 74, 95, 0.12);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.palm-photo-stage-dual::before {
  display: none;
}

.palm-preview-panel {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(139, 74, 95, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(253, 227, 234, 0.66)),
    radial-gradient(circle at 20% 20%, rgba(189, 154, 89, 0.2), transparent 34%);
}

.palm-preview-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid rgba(199, 164, 93, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--berry-deep);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(61, 30, 42, 0.08);
}

.palm-photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.palm-preview-panel .palm-photo-preview {
  z-index: 1;
}

.palm-photo-card {
  position: relative;
  display: grid;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(139, 74, 95, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 250, 0.6)),
    linear-gradient(135deg, rgba(61, 30, 42, 0.08), rgba(189, 154, 89, 0.12));
  color: var(--berry-deep);
  text-align: center;
  backdrop-filter: blur(4px);
}

.palm-photo-stage-dual .palm-photo-card {
  width: 100%;
  height: 100%;
  padding: 34px 12px 14px;
}

.palm-photo-card strong {
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.2;
}

.camera-lens {
  position: absolute;
  top: 18px;
  right: 18px;
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(61, 30, 42, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.96) 0 8%, transparent 9%),
    radial-gradient(circle, rgba(139, 74, 95, 0.84) 0 38%, rgba(61, 30, 42, 0.9) 39% 100%);
  box-shadow: 0 12px 26px rgba(61, 30, 42, 0.14);
}

.palm-photo-card small {
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.45;
}

.palm-photo-stage-dual .camera-lens {
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
}

.photo-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(139, 74, 95, 0.34);
}

.photo-corner.top-left {
  top: 12px;
  left: 12px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.photo-corner.top-right {
  top: 12px;
  right: 12px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.photo-corner.bottom-left {
  bottom: 12px;
  left: 12px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.photo-corner.bottom-right {
  right: 12px;
  bottom: 12px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

@media (max-width: 900px) {
  .method-hero-inner,
  .method-switch-grid,
  .offer-grid,
  .reading-grid,
  .compatibility-person-grid,
  .method-data-box {
    grid-template-columns: 1fr;
  }

  .method-hero-inner {
    min-height: auto;
    width: 100%;
    max-width: 100%;
  }

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

  .method-subtitle {
    font-size: 2.05rem;
  }

  .palm-photo-stage {
    width: min(100%, 330px);
  }

  .palm-photo-stage-dual {
    width: 100%;
    max-width: 460px;
  }
}

@media (max-width: 560px) {
  .method-hero {
    min-height: auto;
  }

  .method-hero-inner {
    padding-inline: 14px;
  }

  .method-panel {
    padding: 20px 14px;
  }

  .method-copy h1 {
    font-size: 2.25rem;
  }

  .method-subtitle {
    font-size: 1.55rem;
  }

  .palm-photo-stage {
    width: min(100%, 280px);
  }

  .palm-photo-stage-dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 420px;
    min-height: 0;
  }

  .palm-preview-panel {
    min-height: 0;
  }

  .photo-choice {
    grid-template-columns: 1fr;
  }

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

  .hand-photo-group {
    padding: 8px;
  }

  .method-data-mini,
  .result-next {
    grid-template-columns: 1fr;
  }

  .result-next {
    align-items: stretch;
    flex-direction: column;
  }

  .reading-copy-tools {
    justify-content: stretch;
  }

  .reading-copy-button {
    width: 100%;
  }

  .reading-copy-status {
    width: 100%;
    text-align: center;
  }

  .reading-window-backdrop {
    padding: 8px;
  }

  .reading-window {
    width: 100%;
    max-height: 94vh;
  }

  .reading-window-head {
    padding: 10px 12px;
  }

  .reading-window-body {
    padding: 12px;
  }
}

@media (max-width: 430px) {
  .hand-photo-grid {
    grid-template-columns: 1fr;
  }

  .palm-photo-stage-dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }
}

/* Header table-of-contents navigation */
.site-header .top-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: auto;
  max-width: min(820px, 100%);
  padding: 9px 14px 10px;
  border-top: 1px solid rgba(183, 135, 45, 0.34);
  border-bottom: 1px solid rgba(183, 135, 45, 0.46);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.84) 12%, rgba(255, 253, 248, 0.84) 88%, rgba(255, 253, 248, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(183, 135, 45, 0.16);
  overflow: visible;
  white-space: normal;
}

.site-header .top-nav a,
.site-header .top-nav a[href] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 2px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #28160d;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.55vw, 1.16rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.9),
    0 7px 18px rgba(58, 32, 18, 0.14);
  box-shadow: none;
  transform: none;
}

.site-header .top-nav a::before {
  display: none;
  content: none;
}

.site-header .top-nav a::after {
  display: none;
  content: none;
}

.site-header .top-nav a:not(:last-child) {
  border-right: 1px solid rgba(132, 86, 37, 0.42);
}

.site-header .top-nav a:hover,
.site-header .top-nav a[href]:hover {
  color: #5a1f3a;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.site-header .top-nav a[aria-current="page"],
.site-header .top-nav a[href][aria-current="page"],
.site-header .top-nav a[href="/compatibility"][aria-current="page"] {
  color: #42172d;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.site-header .top-nav a[aria-current="page"]::after,
.site-header .top-nav a[href][aria-current="page"]::after {
  position: absolute;
  right: 14px;
  bottom: -8px;
  left: 14px;
  display: block;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(183, 135, 45, 0), rgba(183, 135, 45, 0.96), rgba(183, 135, 45, 0));
  content: "";
  box-shadow: 0 0 10px rgba(183, 135, 45, 0.3);
}

@media (max-width: 900px) {
  .site-header .top-nav {
    justify-content: center;
    max-width: 100%;
    padding: 8px 8px 10px;
  }

  .site-header .top-nav a,
  .site-header .top-nav a[href] {
    padding: 3px 10px;
    font-size: clamp(0.9rem, 3.4vw, 1.02rem);
  }
}

@media (max-width: 560px) {
  .site-header .top-nav {
    row-gap: 8px;
  }

  .site-header .top-nav a,
  .site-header .top-nav a[href] {
    padding-inline: 8px;
  }
}

/* Checkout calls-to-action in the same editorial style as the header nav */
.checkout-card .checkout-button,
.checkout-card .checkout-button[data-tier-button] {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 12px 16px;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(183, 135, 45, 0.36);
  border-bottom: 1px solid rgba(183, 135, 45, 0.52);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.72) 14%, rgba(255, 253, 248, 0.72) 86%, rgba(255, 253, 248, 0));
  color: #28160d;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.5vw, 1.34rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.92),
    0 8px 18px rgba(58, 32, 18, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(183, 135, 45, 0.16);
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.checkout-card .checkout-button::before,
.checkout-card .checkout-button::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.checkout-card .checkout-button::before {
  right: 16px;
  bottom: 6px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(183, 135, 45, 0), rgba(183, 135, 45, 0.96), rgba(183, 135, 45, 0));
  box-shadow: 0 0 10px rgba(183, 135, 45, 0.26);
}

.checkout-card .checkout-button::after {
  right: 12px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(183, 135, 45, 0.44);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(238, 205, 128, 0.3));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 18px rgba(58, 32, 18, 0.12);
}

.checkout-card .checkout-button:hover,
.checkout-card .checkout-button[data-tier-button]:hover {
  border-color: rgba(183, 135, 45, 0.72);
  color: #5a1f3a;
  filter: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(183, 135, 45, 0.2),
    0 12px 26px rgba(58, 32, 18, 0.08);
}

@media (max-width: 560px) {
  .checkout-card .checkout-button,
  .checkout-card .checkout-button[data-tier-button] {
    min-height: 54px;
    padding-right: 42px;
    padding-left: 10px;
    font-size: 1.04rem;
  }
}

/* Editorial action style shared by public-facing buttons */
.primary-action,
.ghost-action,
.free-card a,
.rank-card a,
.locked-row a,
.menu-link-button,
.menu-card button,
.result-next-button,
.reading-copy-button,
.photo-native-fallback input::file-selector-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 16px 15px;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(183, 135, 45, 0.36);
  border-bottom: 1px solid rgba(183, 135, 45, 0.52);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.72) 14%, rgba(255, 253, 248, 0.72) 86%, rgba(255, 253, 248, 0));
  color: #28160d;
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 2.4vw, 1.3rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.92),
    0 8px 18px rgba(58, 32, 18, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(183, 135, 45, 0.16);
  cursor: pointer;
  transform: none;
  transition: color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.primary-action::before,
.ghost-action::before,
.free-card a::before,
.rank-card a::before,
.locked-row a::before,
.menu-link-button::before,
.menu-card button::before,
.reading-copy-button::before {
  display: none;
  content: none;
}

.primary-action::after,
.ghost-action::after,
.free-card a::after,
.rank-card a::after,
.locked-row a::after,
.menu-link-button::after,
.menu-card button::after,
.reading-copy-button::after {
  position: absolute;
  right: 16px;
  bottom: 6px;
  left: 16px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(183, 135, 45, 0), rgba(183, 135, 45, 0.96), rgba(183, 135, 45, 0));
  content: "";
  box-shadow: 0 0 10px rgba(183, 135, 45, 0.26);
  pointer-events: none;
}

.primary-action:hover,
.ghost-action:hover,
.free-card a:hover,
.rank-card a:hover,
.locked-row a:hover,
.menu-link-button:hover,
.menu-card button:hover,
.result-next-button:hover,
.reading-copy-button:hover {
  border-color: rgba(183, 135, 45, 0.72);
  color: #5a1f3a;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.86) 14%, rgba(255, 253, 248, 0.86) 86%, rgba(255, 253, 248, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(183, 135, 45, 0.2),
    0 12px 26px rgba(58, 32, 18, 0.08);
  transform: translateY(-1px);
}

.primary-action .button-orb,
.ghost-action .button-orb,
.result-next-button .button-orb {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #b47a17;
  font-family: var(--font-serif);
  font-size: 1.1em;
  box-shadow: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(124, 78, 15, 0.18);
}

.photo-choice-button {
  border-radius: 0;
  border-top: 1px solid rgba(183, 135, 45, 0.36);
  border-right: 0;
  border-bottom: 1px solid rgba(183, 135, 45, 0.52);
  border-left: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.72) 14%, rgba(255, 253, 248, 0.72) 86%, rgba(255, 253, 248, 0));
  color: #28160d;
  font-family: var(--font-serif);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(183, 135, 45, 0.16);
}

.photo-choice-button span {
  color: #28160d !important;
  font-family: var(--font-serif);
  font-weight: 800;
}

.photo-choice-button small {
  color: rgba(40, 22, 13, 0.72) !important;
}

.photo-choice-button:hover,
.photo-choice-button.is-selected {
  border-color: rgba(183, 135, 45, 0.72);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.86) 14%, rgba(255, 253, 248, 0.86) 86%, rgba(255, 253, 248, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(183, 135, 45, 0.2),
    0 12px 26px rgba(58, 32, 18, 0.08);
}

/* Keep every public-facing action label on the same typeface. */
.site-header .top-nav,
.site-header .top-nav *,
.primary-action,
.primary-action *,
.ghost-action,
.ghost-action *,
.free-card a,
.free-card a *,
.rank-card a,
.rank-card a *,
.locked-row a,
.locked-row a *,
.menu-link-button,
.menu-link-button *,
.menu-card button,
.menu-card button *,
.result-next-button,
.result-next-button *,
.checkout-card .checkout-button,
.checkout-card .checkout-button *,
.reading-copy-button,
.reading-copy-button *,
.photo-choice-button,
.photo-choice-button *,
.photo-native-fallback input::file-selector-button {
  font-family: var(--font-serif) !important;
}

/* Clear, tactile call-to-action buttons */
.primary-action,
.ghost-action,
.free-card a,
.rank-card a,
.locked-row a,
.menu-link-button,
.menu-card button,
.result-next-button,
.reading-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 22px 17px;
  border: 1px solid rgba(128, 82, 31, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 249, 0.96), rgba(246, 223, 170, 0.92) 46%, rgba(183, 127, 50, 0.78)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(215, 159, 74, 0.68));
  color: #261307;
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 2.8vw, 1.42rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.94),
    0 8px 18px rgba(54, 27, 11, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -3px 0 rgba(102, 57, 19, 0.24),
    0 14px 28px rgba(58, 32, 18, 0.16),
    0 0 0 3px rgba(255, 246, 217, 0.42);
  cursor: pointer;
  transform: none;
}

.primary-action::before,
.ghost-action::before,
.free-card a::before,
.rank-card a::before,
.locked-row a::before,
.menu-link-button::before,
.menu-card button::before,
.result-next-button::before,
.reading-copy-button::before {
  position: absolute;
  inset: 2px;
  display: block;
  border-radius: 6px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 34%, rgba(104, 63, 23, 0.1) 72%, rgba(255, 255, 255, 0.22));
  content: "";
  pointer-events: none;
}

.primary-action::after,
.ghost-action::after,
.free-card a::after,
.rank-card a::after,
.locked-row a::after,
.menu-link-button::after,
.menu-card button::after,
.result-next-button::after,
.reading-copy-button::after {
  display: none;
  content: none;
}

.primary-action:hover,
.ghost-action:hover,
.free-card a:hover,
.rank-card a:hover,
.locked-row a:hover,
.menu-link-button:hover,
.menu-card button:hover,
.result-next-button:hover,
.reading-copy-button:hover {
  border-color: rgba(116, 64, 19, 0.88);
  color: #3d1733;
  background:
    linear-gradient(135deg, rgba(255, 255, 250, 0.98), rgba(250, 231, 185, 0.95) 45%, rgba(199, 146, 62, 0.82)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(225, 172, 88, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 0 rgba(102, 57, 19, 0.28),
    0 18px 34px rgba(58, 32, 18, 0.2),
    0 0 0 4px rgba(255, 235, 173, 0.46);
  transform: translateY(-1px);
}

.primary-action .button-orb,
.ghost-action .button-orb,
.result-next-button .button-orb {
  display: none;
}

.primary-action.full,
.result-next-button,
.checkout-card .checkout-button {
  width: 100%;
}

.result-next-button.gold {
  border-color: rgba(128, 82, 31, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 249, 0.96), rgba(246, 223, 170, 0.92) 46%, rgba(183, 127, 50, 0.78)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(215, 159, 74, 0.68));
  color: #261307;
}

.result-next-button.gold::after {
  display: none;
  content: none;
}

.result-next-button.diamond {
  border-color: rgba(117, 90, 164, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 253, 255, 0.92), rgba(209, 181, 236, 0.86) 46%, rgba(89, 68, 137, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(97, 76, 145, 0.78));
  color: #fff;
  text-shadow: 0 2px 12px rgba(26, 16, 57, 0.42);
}

.result-next-button.diamond::after {
  display: none;
  content: none;
}

.checkout-card .checkout-button,
.checkout-card .checkout-button[data-tier-button] {
  position: relative;
  isolation: isolate;
  min-height: 70px;
  padding: 18px 22px 19px;
  overflow: hidden;
  border: 1px solid rgba(128, 82, 31, 0.76);
  border-radius: 8px;
  color: #241206;
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 3vw, 1.62rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.92),
    0 10px 18px rgba(54, 27, 11, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -3px 0 rgba(91, 47, 14, 0.22),
    0 16px 32px rgba(58, 32, 18, 0.18),
    0 0 0 3px rgba(255, 244, 209, 0.44);
}

.checkout-card .checkout-button::before {
  position: absolute;
  inset: 2px;
  height: auto;
  border-radius: 6px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 32%, rgba(88, 51, 17, 0.1) 72%, rgba(255, 255, 255, 0.2));
  box-shadow: none;
  content: "";
}

.checkout-card .checkout-button::after {
  display: none;
  content: none;
}

.checkout-card .checkout-button[data-tier-button="gold"],
.checkout-card .checkout-button[data-tier-button="diamond"] {
  border-color: rgba(128, 82, 31, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 249, 0.96), rgba(246, 223, 170, 0.92) 46%, rgba(183, 127, 50, 0.78)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(215, 159, 74, 0.68));
  color: #261307;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.94),
    0 8px 18px rgba(54, 27, 11, 0.16);
}

.checkout-card .checkout-button[data-tier-button="gold"]::after,
.checkout-card .checkout-button[data-tier-button="diamond"]::after {
  display: none;
  content: none;
}

.checkout-card .checkout-button:hover,
.checkout-card .checkout-button[data-tier-button]:hover {
  filter: none;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 0 rgba(91, 47, 14, 0.26),
    0 20px 38px rgba(58, 32, 18, 0.22),
    0 0 0 4px rgba(255, 232, 168, 0.48);
}

.photo-choice-button,
.photo-native-fallback input::file-selector-button {
  border: 1px solid rgba(128, 82, 31, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 249, 0.94), rgba(250, 232, 201, 0.86)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(244, 215, 172, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 22px rgba(58, 32, 18, 0.08);
}

.photo-choice-button span {
  font-size: 1.1rem !important;
}

@media (max-width: 560px) {
  .primary-action,
  .ghost-action,
  .free-card a,
  .rank-card a,
  .locked-row a,
  .menu-link-button,
  .menu-card button,
  .result-next-button,
  .reading-copy-button {
    min-height: 60px;
    padding: 14px 16px 15px;
    font-size: 1.16rem;
  }

  .primary-action::after,
  .ghost-action::after,
  .free-card a::after,
  .rank-card a::after,
  .locked-row a::after,
  .menu-link-button::after,
  .menu-card button::after,
  .result-next-button::after,
  .reading-copy-button::after {
    display: none;
    content: none;
  }

  .checkout-card .checkout-button,
  .checkout-card .checkout-button[data-tier-button] {
    min-height: 66px;
    padding: 16px 16px 17px;
    font-size: 1.32rem;
  }

  .checkout-card .checkout-button::after {
    display: none;
    content: none;
  }
}

/* Palm photo controls need a different scale from primary CTAs. */
.hand-photo-group .photo-choice-button {
  min-height: 88px;
  padding: 14px 10px;
}

.hand-photo-group .photo-choice-button span {
  font-size: 1.26rem !important;
  line-height: 1.18;
}

.hand-photo-group .photo-choice-button small,
.hand-photo-group .photo-native-fallback span {
  font-size: 0.76rem !important;
}

.hand-photo-group .photo-native-fallback input {
  box-sizing: border-box;
  height: 34px;
  min-height: 0 !important;
  padding: 2px 4px !important;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: 0.68rem !important;
  line-height: 1.25;
  overflow: hidden;
}

.hand-photo-group .photo-native-fallback input::file-selector-button {
  height: 28px !important;
  min-height: 0 !important;
  margin-right: 6px;
  padding: 4px 8px !important;
  border: 1px solid rgba(128, 82, 31, 0.36);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 249, 0.96), rgba(246, 223, 170, 0.8));
  color: #28160d;
  font-size: 0.68rem !important;
  font-weight: 900;
  line-height: 1.15;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 14px rgba(58, 32, 18, 0.08);
}

/* Premium header wordmark */
.site-header .brand {
  isolation: isolate;
  min-width: 0;
  min-height: 72px;
  padding: 2px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.site-header .brand::before {
  position: absolute;
  top: 50%;
  left: -12px;
  z-index: -1;
  width: 112px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 238, 184, 0.58), rgba(255, 238, 184, 0.24) 36%, rgba(255, 238, 184, 0) 72%);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.site-header .brand::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 84px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(183, 135, 45, 0.82), rgba(183, 135, 45, 0.34), rgba(183, 135, 45, 0));
  content: "";
  box-shadow: 0 0 12px rgba(183, 135, 45, 0.2);
  pointer-events: none;
}

.site-header .brand > span:not(.brand-mark) {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-bottom: 6px;
}

.site-header .brand-mark {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 245, 204, 0.74);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.95), rgba(255, 245, 202, 0.48) 20%, rgba(107, 43, 73, 0.18) 62%, rgba(74, 29, 50, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 13px 28px rgba(64, 33, 14, 0.22),
    0 0 0 3px rgba(255, 244, 209, 0.28);
}

.site-header .brand-mark::before {
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 174, 0.58), rgba(255, 236, 174, 0) 68%);
  content: "";
  pointer-events: none;
}

.site-header .brand-logo-mark {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  filter:
    drop-shadow(0 10px 18px rgba(55, 22, 37, 0.26))
    drop-shadow(0 1px 0 rgba(255, 253, 248, 0.88));
}

.site-header .brand strong {
  color: #251006;
  font-family: var(--font-serif);
  font-size: 1.66rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.92),
    0 10px 22px rgba(75, 38, 14, 0.18);
  white-space: nowrap;
}

.site-header .brand small {
  color: rgba(62, 36, 18, 0.76);
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.88);
}

@media (max-width: 900px) {
  .site-header .brand {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .site-header .brand {
    min-height: 66px;
    padding: 0;
  }

  .site-header .brand::after {
    right: 0;
    left: 74px;
    bottom: 6px;
  }

  .site-header .brand-mark {
    width: 58px;
    height: 58px;
  }

  .site-header .brand-logo-mark {
    width: 53px;
    height: 53px;
  }

  .site-header .brand strong {
    font-size: 1.34rem;
  }

  .site-header .brand small {
    font-size: 0.76rem;
  }
}

@media (max-width: 380px) {
  .site-header .brand {
    gap: 9px;
    padding-right: 12px;
  }

  .site-header .brand strong {
    font-size: 1.18rem;
  }

  .site-header .brand small {
    font-size: 0.68rem;
  }
}

/* Transparent header logo */
.site-header .brand {
  width: auto;
  max-width: min(430px, 100%);
  min-height: 74px;
  gap: 13px;
  padding: 3px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-header .brand::before {
  display: block;
  top: 50%;
  left: -11px;
  width: 112px;
  height: 88px;
  background:
    radial-gradient(circle, rgba(255, 240, 188, 0.46), rgba(255, 240, 188, 0.2) 38%, rgba(255, 240, 188, 0) 72%);
  transform: translateY(-50%);
}

.site-header .brand::after {
  display: block;
  right: -8px;
  bottom: 7px;
  left: 82px;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(170, 118, 37, 0.7), rgba(170, 118, 37, 0.26), rgba(170, 118, 37, 0));
  box-shadow: none;
}

.site-header .brand-mark {
  display: grid;
  width: 76px;
  height: 76px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header .brand-mark::before {
  display: none;
  content: none;
}

.site-header .brand-logo-mark {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 0;
  filter:
    drop-shadow(0 12px 18px rgba(73, 39, 16, 0.18))
    drop-shadow(0 1px 0 rgba(255, 253, 248, 0.9));
}

.site-header .brand > span:not(.brand-mark) {
  display: grid;
  gap: 3px;
  padding: 0 0 6px;
}

.site-header .brand strong {
  color: #241006;
  font-size: 1.62rem;
  line-height: 1.08;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.95),
    0 10px 20px rgba(82, 46, 16, 0.18);
}

.site-header .brand small {
  color: rgba(61, 35, 18, 0.78);
  font-size: 0.84rem;
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.9);
}

@media (max-width: 900px) {
  .site-header .brand {
    max-width: min(380px, 100%);
  }
}

@media (max-width: 560px) {
  .site-header .brand {
    min-height: 66px;
    gap: 11px;
    padding: 0;
  }

  .site-header .brand::after {
    right: -4px;
    bottom: 5px;
    left: 72px;
  }

  .site-header .brand-mark {
    width: 64px;
    height: 64px;
  }

  .site-header .brand-logo-mark {
    width: 64px;
    height: 64px;
  }

  .site-header .brand strong {
    font-size: 1.34rem;
  }

  .site-header .brand small {
    font-size: 0.74rem;
  }
}

@media (max-width: 380px) {
  .site-header .brand {
    min-height: 60px;
    gap: 9px;
  }

  .site-header .brand strong {
    font-size: 1.16rem;
  }

  .site-header .brand small {
    font-size: 0.66rem;
  }
}

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

/* Hide the header logo image so mobile first paint starts with text content. */
.site-header .brand-mark {
  display: none;
}

.site-header .brand::before {
  display: none;
  content: none;
}

.site-header .brand {
  min-height: auto;
  gap: 0;
  max-width: min(340px, 100%);
}

.site-header .brand::after {
  right: 0;
  left: 0;
}

.site-header .brand > span:not(.brand-mark) {
  padding-bottom: 6px;
}

@media (max-width: 560px) {
  .seo-content {
    padding: 34px 18px 46px;
  }

  .seo-content p {
    font-size: 0.96rem;
  }

  .seo-grid article {
    padding: 16px;
  }
}

.seo-landing-hero {
  position: relative;
  padding: 96px 24px 54px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 251, 238, 0.94), rgba(248, 226, 188, 0.82)),
    url("./assets/header-gold-oracle.png") center / cover;
}

.seo-landing-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 236, 0.92), rgba(255, 250, 236, 0.68), rgba(255, 250, 236, 0.28));
  content: "";
}

.seo-landing-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.seo-landing-inner h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--berry-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.9);
}

.seo-landing-inner .lead,
.seo-landing-inner p {
  max-width: 780px;
  color: rgba(57, 36, 29, 0.88);
  font-size: clamp(1.05rem, 2.2vw, 1.34rem);
  line-height: 1.9;
}

.seo-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.seo-method-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-method-card {
  display: grid;
  gap: 8px;
  min-height: 158px;
  padding: 20px;
  border: 1px solid rgba(194, 145, 66, 0.34);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(250, 236, 209, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(61, 31, 17, 0.08);
}

.seo-method-card span {
  color: #9a6420;
  font-weight: 900;
}

.seo-method-card strong {
  color: #36150d;
  font-family: var(--font-serif);
  font-size: 1.34rem;
  line-height: 1.35;
}

.seo-method-card small {
  color: rgba(77, 65, 78, 0.86);
  font-size: 0.98rem;
  line-height: 1.75;
}

.seo-method-card:hover {
  border-color: rgba(164, 105, 28, 0.58);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .seo-landing-hero {
    padding: 84px 20px 42px;
  }

  .seo-method-grid,
  .seo-method-grid.compact {
    grid-template-columns: 1fr;
  }

  .seo-topic-links,
  .seo-cta-row {
    grid-template-columns: 1fr;
  }

  .seo-method-card {
    min-height: 0;
    padding: 18px;
  }
}

/* Result copy action: header method-nav inspired, not a tactile button */
.reading-copy-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 8px 12px 9px;
  border-top: 1px solid rgba(183, 135, 45, 0.34);
  border-bottom: 1px solid rgba(183, 135, 45, 0.46);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.82) 16%, rgba(255, 253, 248, 0.82) 84%, rgba(255, 253, 248, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(183, 135, 45, 0.16);
}

.reading-copy-tools .reading-copy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 3px 14px 4px;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #28160d;
  font-family: var(--font-serif) !important;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.9),
    0 7px 18px rgba(58, 32, 18, 0.14);
  box-shadow: none;
  cursor: pointer;
  transform: none;
}

.reading-copy-tools .reading-copy-button::before {
  display: none;
  content: none;
}

.reading-copy-tools .reading-copy-button::after {
  position: absolute;
  right: 14px;
  bottom: -7px;
  left: 14px;
  display: block;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(183, 135, 45, 0), rgba(183, 135, 45, 0.96), rgba(183, 135, 45, 0));
  content: "";
  box-shadow: 0 0 10px rgba(183, 135, 45, 0.28);
}

.reading-copy-tools .reading-copy-button:hover,
.reading-copy-tools .reading-copy-button:focus-visible {
  color: #5a1f3a;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.reading-copy-tools .reading-copy-button:disabled {
  cursor: progress;
  opacity: 0.66;
  transform: none;
}

.reading-copy-tools .reading-copy-status {
  min-width: 7em;
  color: #8c5a17;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.4;
}

.paid-email-note {
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(183, 135, 45, 0.34);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.paid-certificate-card {
  border: 1px solid rgba(200, 162, 74, 0.72);
  background:
    linear-gradient(180deg, rgba(77, 23, 48, 0.06), rgba(255, 250, 242, 0.96) 170px),
    #fffaf2;
  box-shadow:
    0 22px 58px rgba(73, 45, 32, 0.16),
    inset 0 0 0 4px rgba(255, 248, 232, 0.72);
}

.paid-certificate-head {
  position: relative;
  margin: calc(clamp(22px, 4vw, 36px) * -1) calc(clamp(22px, 4vw, 36px) * -1) 22px;
  padding: clamp(24px, 5vw, 42px) clamp(22px, 4vw, 36px);
  border-bottom: 4px solid #c8a24a;
  background:
    linear-gradient(135deg, #4d1730, #752b4b 58%, #4d1730);
  color: #fff8e8;
}

.paid-certificate-head .eyebrow,
.paid-certificate-head .result-subtitle,
.paid-certificate-head h1 {
  color: #fff8e8;
}

.paid-certificate-head .result-subtitle {
  color: rgba(255, 248, 232, 0.82);
}

.paid-certificate-head > span {
  border-color: rgba(245, 222, 179, 0.42);
  background: rgba(245, 222, 179, 0.14);
  color: #f5deb3;
}

.paid-certificate-kicker {
  margin: 0 0 8px;
  color: #f5deb3;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.paid-certificate-card .paid-reading-highlight {
  border: 2px solid rgba(200, 162, 74, 0.82);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.98), rgba(255, 253, 248, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

.paid-certificate-card .paid-reading-highlight > p,
.paid-certificate-card .paid-reading-flow > p,
.paid-certificate-card .paid-reading-closing > p {
  color: #7a2e4d;
  letter-spacing: 0;
}

.paid-certificate-section {
  padding: 0 !important;
  overflow: hidden;
  border-color: rgba(234, 216, 167, 0.96) !important;
  background: #fffdf8 !important;
}

.paid-certificate-section .paid-chapter-label {
  margin: 0 !important;
  padding: 13px 18px 0;
  background: #7a2e4d;
  color: #f5deb3 !important;
  font-size: 0.82rem;
  font-weight: 900;
}

.paid-certificate-section > p:nth-child(2) {
  margin: 0 !important;
  padding: 2px 18px 14px;
  border-bottom: 3px solid #c8a24a;
  background: #7a2e4d;
  color: #fffaf2 !important;
  font-size: 0.94rem !important;
  font-weight: 900;
}

.paid-certificate-section h2 {
  margin: 18px 18px 12px;
}

.paid-certificate-section > p:not(:first-child):not(:nth-child(2)),
.paid-certificate-section .paid-action-steps,
.paid-certificate-section .paid-reading-more {
  margin-right: 18px;
  margin-left: 18px;
}

.paid-certificate-section .paid-action-steps {
  padding: 14px 16px;
  border-left: 5px solid #c8a24a;
  border-radius: 8px;
  background: #f8eddc;
}

.paid-certificate-section .paid-action-steps li {
  background: rgba(255, 253, 248, 0.72);
}

@media (max-width: 760px) {
  .reading-copy-tools {
    justify-content: center;
    margin: 10px 0 16px;
    padding: 8px 8px 10px;
  }

  .reading-copy-tools .reading-copy-button {
    width: auto;
    min-height: 0;
    padding: 3px 10px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: clamp(0.98rem, 4vw, 1.08rem);
    box-shadow: none;
  }

  .reading-copy-tools .reading-copy-status {
    min-width: 0;
    font-size: 0.82rem;
  }
}
