:root {
  color-scheme: light;
  --bg: #f4f0ea;
  --paper: #fffaf3;
  --paper-deep: #ebe5dd;
  --paper-soft: #f8f2ea;
  --text: #2f3138;
  --muted: #6c6873;
  --line: #d8cec2;
  --line-strong: #b9aa99;
  --accent: #29466f;
  --accent-strong: #172944;
  --accent-soft: #dfe8ef;
  --rose: #9d6577;
  --sage: #61786d;
  --gold: #a9793c;
  --red: #a44a58;
  --green: #4f7c65;
  --blue: #2e5c72;
  --shadow: 0 18px 42px rgba(23, 41, 68, 0.12);
  --inner-glow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 12%, rgba(41, 70, 111, 0.1), transparent 28vw),
    radial-gradient(circle at 86% 16%, rgba(169, 121, 60, 0.11), transparent 24vw),
    linear-gradient(rgba(41, 70, 111, 0.045) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(90deg, rgba(41, 70, 111, 0.035) 1px, transparent 1px) 0 0 / 38px 38px,
    var(--bg);
  color: var(--text);
  font: 15px/1.55 "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  width: 700px;
  height: 700px;
  pointer-events: none;
  content: "";
  background: url("constellation-field.svg") center / contain no-repeat;
  opacity: 0.32;
}

body::before {
  top: 48px;
  left: -240px;
}

body::after {
  right: -230px;
  bottom: -180px;
  transform: rotate(14deg);
}

::selection {
  color: #fff;
  background: var(--accent);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 30px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(235, 229, 221, 0.92)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(74, 52, 86, 0.08);
  backdrop-filter: blur(14px);
}

.topbar::after {
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: min(520px, 70vw);
  height: 34px;
  pointer-events: none;
  content: "";
  background: url("moon-lace.svg") center / contain no-repeat;
  opacity: 0.28;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 3px, transparent 4px),
    linear-gradient(135deg, #9e78b5, #6c4b8d 54%, #3f295a);
  box-shadow: var(--inner-glow), 0 5px 14px rgba(80, 49, 110, 0.22);
}

.brand-mark::after {
  position: absolute;
  top: 6px;
  left: 9px;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  box-shadow: 6px 0 0 rgba(255, 249, 244, 0.76);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--accent-strong);
}

.nav a:hover {
  background: rgba(234, 216, 239, 0.62);
  text-decoration: none;
}

.user {
  color: var(--muted);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 32px));
  margin: 36px auto 72px;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: min(1180px, calc(100vw - 32px));
  margin: -34px auto 46px;
  color: var(--muted);
  font-size: 13px;
}

.page.page-wide,
.page:has(.profile-stage) {
  width: min(1920px, calc(100vw - 48px));
  max-width: none;
}

.page.page-marketing {
  width: min(1520px, calc(100vw - 48px));
  max-width: none;
}

.page-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  margin-bottom: 24px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--line);
}

.page-head::after {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: min(420px, 72vw);
  height: 24px;
  content: "";
  background: url("moon-lace.svg") left center / contain no-repeat;
  opacity: 0.38;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  font-weight: 700;
}

h1 {
  font-size: 38px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.auth-panel,
.panel,
.card,
.empty,
.document,
.wheel-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow), var(--inner-glow);
}

.auth-panel::before,
.panel::before,
.card::before,
.empty::before,
.document::before,
.wheel-panel::before {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(185, 156, 189, 0.44);
  border-radius: 6px;
}

.auth-panel {
  max-width: 430px;
  margin: 88px auto;
  padding: 34px;
}

.auth-panel h1 {
  margin-bottom: 22px;
  text-align: center;
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
}

.wheel-panel {
  padding: 24px;
  margin-bottom: 20px;
  overflow: hidden;
}

.wheel-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.wheel-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 1120px;
  height: auto;
  margin: 0 auto;
  aspect-ratio: 1120 / 880;
  border: 1px solid rgba(185, 156, 189, 0.52);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  gap: clamp(22px, 3vw, 46px);
  align-items: stretch;
  min-height: min(680px, calc(100vh - 170px));
  margin-bottom: 28px;
}

.landing-copy,
.landing-panel,
.value-grid article,
.price-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.12)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow), var(--inner-glow);
}

.landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 74px);
}

.product-hero .landing-copy {
  padding: clamp(36px, 5vw, 86px) 0 clamp(28px, 4vw, 64px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-hero .landing-copy::before {
  display: none;
}

.landing-copy h1 {
  max-width: 940px;
  font-size: clamp(46px, 5.4vw, 82px);
  line-height: 1.02;
}

.landing-copy p {
  max-width: 760px;
  color: #44364a;
  font-size: 19px;
  line-height: 1.55;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  color: var(--accent-strong);
  background: rgba(255, 250, 243, 0.68);
  border: 1px solid rgba(185, 170, 153, 0.8);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-orbit {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: clamp(24px, 4vw, 54px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 250, 243, 0.72) 0 25%, rgba(223, 232, 239, 0.38) 48%, rgba(23, 41, 68, 0.08) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.12)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow), var(--inner-glow);
}

.hero-orbit::before {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(185, 170, 153, 0.44);
  border-radius: 6px;
}

.hero-orbit::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: url("constellation-field.svg") center / 82% no-repeat;
  opacity: 0.2;
}

.orbit-wheel {
  position: relative;
  z-index: 1;
  width: min(500px, 82vw);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 41, 68, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 250, 243, 0.96) 0 13%, transparent 13.3%),
    repeating-conic-gradient(from -4deg, rgba(41, 70, 111, 0.2) 0deg 1deg, transparent 1deg 30deg),
    radial-gradient(circle, transparent 0 35%, rgba(41, 70, 111, 0.18) 35.2% 35.7%, transparent 36% 52%, rgba(169, 121, 60, 0.34) 52.3% 52.8%, transparent 53%),
    rgba(255, 250, 243, 0.78);
  box-shadow:
    inset 0 0 0 20px rgba(255, 250, 243, 0.72),
    inset 0 0 0 21px rgba(185, 170, 153, 0.55),
    0 24px 60px rgba(23, 41, 68, 0.16);
}

.orbit-wheel span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(169, 121, 60, 0.42);
}

.orbit-wheel span:nth-child(1) {
  top: 18%;
  left: 29%;
}

.orbit-wheel span:nth-child(2) {
  top: 32%;
  right: 16%;
  background: var(--blue);
}

.orbit-wheel span:nth-child(3) {
  right: 30%;
  bottom: 15%;
  background: var(--rose);
}

.orbit-wheel span:nth-child(4) {
  bottom: 31%;
  left: 14%;
  background: var(--sage);
}

.orbit-wheel strong {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  transform: translate(-50%, -50%);
}

.orbit-note {
  position: relative;
  z-index: 1;
  width: min(430px, 92%);
  margin-top: -62px;
  padding: 18px 20px;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid rgba(185, 170, 153, 0.72);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 41, 68, 0.14);
}

.orbit-note p {
  margin: 0;
  color: #42454d;
  font-size: 15px;
}

.landing-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 44px);
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #44364a;
  font-size: 16px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.value-grid article {
  padding: 24px;
}

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

.theory-grid article {
  padding: 18px 18px 16px;
  background: rgba(255, 250, 243, 0.58);
  border: 1px solid rgba(216, 206, 194, 0.9);
  border-radius: 8px;
}

.theory-grid p {
  color: #42454d;
}

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

.report-preview-grid article {
  padding: 20px;
  background: rgba(255, 250, 243, 0.68);
  border: 1px solid rgba(216, 206, 194, 0.92);
  border-radius: 8px;
}

.report-preview-grid .sample-report {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(223, 232, 239, 0.75), rgba(255, 250, 243, 0.86));
}

.sample-report ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.sample-report li::marker {
  color: var(--gold);
}

.plan-featured {
  border-color: rgba(169, 121, 60, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 246, 228, 0.38)),
    var(--paper);
}

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

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

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.steps-grid article,
.faq-grid article {
  position: relative;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.12)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow), var(--inner-glow);
}

.steps-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #fffaf7;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 900;
}

.compact-prices {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  margin-top: 18px;
}

.card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.price-card {
  align-content: start;
}

.price {
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-head h2 {
  overflow-wrap: anywhere;
}

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

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paywall-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.paywall-panel .primary {
  flex: 0 0 auto;
}

.is-locked-form {
  opacity: 0.56;
}

.is-locked-form input,
.is-locked-form select,
.is-locked-form details {
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.year-access-panel,
.month-access-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.year-access-item,
.month-access-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.year-access-item span,
.month-access-item span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.year-access-item strong,
.month-access-item strong {
  color: var(--accent-strong);
  font-size: 15px;
}

.year-access-item.active,
.month-access-item.active {
  border-color: rgba(169, 121, 60, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 246, 228, 0.46)),
    var(--paper);
  box-shadow: 0 10px 22px rgba(169, 121, 60, 0.12), var(--inner-glow);
}

.year-access-status,
.month-access-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 243, 0.68);
  font-weight: 800;
}

.year-access-status.free,
.year-access-status.paid,
.month-access-status.paid {
  color: var(--green);
  border-color: rgba(79, 124, 101, 0.34);
  background: #eef7ef;
}

.year-access-status.locked,
.month-access-status.locked {
  color: #856334;
  border-color: rgba(169, 121, 60, 0.42);
  background: #fff4df;
}

.year-submit-row,
.month-submit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.buy-year-action,
.buy-month-action {
  width: 100%;
}

label {
  display: grid;
  gap: 7px;
  color: var(--accent-strong);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.92);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input::placeholder {
  color: rgba(121, 104, 126, 0.72);
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(117, 80, 146, 0.18);
}

button,
.link-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 17px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 7px 16px rgba(80, 49, 110, 0.12);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

button::before,
.link-button::before {
  width: 8px;
  height: 8px;
  margin-right: 9px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.28),
    0 0 12px currentColor;
  opacity: 0.7;
}

button:hover,
.link-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 22px rgba(80, 49, 110, 0.18);
}

button:focus-visible,
.link-button:focus-visible {
  outline: 3px solid rgba(117, 80, 146, 0.22);
  outline-offset: 2px;
}

button:disabled,
.link-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

button:disabled:hover {
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 7px 16px rgba(80, 49, 110, 0.12);
}

.primary {
  color: #fffaf7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #8e67aa, #684483 54%, #50316e);
  border-color: #5f3f79;
}

.primary:hover {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #9a72b4, #735091 54%, #563675);
}

.secondary {
  color: var(--accent-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.12)),
    rgba(234, 216, 239, 0.82);
  border-color: var(--line-strong);
}

.secondary:hover {
  background: rgba(222, 197, 230, 0.94);
}

.ghost {
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18)),
    rgba(255, 249, 244, 0.54);
  border-color: var(--line);
}

.ghost:hover {
  color: var(--accent-strong);
  background: rgba(255, 249, 244, 0.82);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.auth-links .link-button {
  width: 100%;
}

.small-note {
  margin-top: 16px;
  font-size: 13px;
}

.profile-head {
  align-items: center;
}

.profile-actions {
  justify-content: flex-end;
}

.modal {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(56, 45, 63, 0.38);
  backdrop-filter: blur(5px);
}

.modal-box {
  position: relative;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12)),
    var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(56, 45, 63, 0.28), var(--inner-glow);
}

.modal-box::before {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(185, 156, 189, 0.44);
  border-radius: 6px;
}

.modal-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-box > * {
  position: relative;
  z-index: 1;
}

.icon-button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--accent-strong);
  background: rgba(234, 216, 239, 0.72);
  border-color: rgba(185, 156, 189, 0.72);
  font-size: 24px;
  line-height: 1;
}

.icon-button::before {
  display: none;
}

.profile-stage {
  display: grid;
  gap: 14px;
  margin: 0 auto 26px;
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.1)),
    rgba(255, 249, 244, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(74, 52, 86, 0.1), var(--inner-glow);
}

.calc-tab {
  min-height: 38px;
  padding: 8px 16px;
  color: var(--muted);
  background: rgba(255, 252, 248, 0.72);
  border-color: transparent;
  box-shadow: none;
}

.calc-tab::before {
  display: none;
}

.calc-tab.active {
  color: #fffaf7;
  background: linear-gradient(135deg, #8e67aa, #684483 54%, #50316e);
  border-color: rgba(80, 49, 110, 0.46);
  box-shadow: 0 8px 18px rgba(80, 49, 110, 0.18);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 16px;
}

.focus-card {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.14)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow), var(--inner-glow);
}

.focus-wheel-wrap {
  display: grid;
  min-height: clamp(560px, 42vw, 780px);
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 246, 0.9), rgba(234, 216, 239, 0.28) 68%, rgba(246, 232, 231, 0.4));
  border-right: 1px solid rgba(217, 196, 215, 0.8);
}

.focus-wheel {
  display: block;
  width: min(100%, 960px);
  height: auto;
  aspect-ratio: 1120 / 880;
  border: 1px solid rgba(185, 156, 189, 0.5);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: 0 18px 42px rgba(74, 52, 86, 0.12);
}

.focus-copy {
  display: flex;
  min-height: clamp(560px, 42vw, 780px);
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: clamp(26px, 2.25vw, 36px);
}

.focus-content {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 12px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.focus-copy h2 {
  font-size: 36px;
  line-height: 1.08;
}

.focus-description {
  color: #44364a;
  font-size: 17px;
  line-height: 1.45;
}

.preview-focus {
  padding: 14px 0 0;
  border-top: 1px solid rgba(217, 196, 215, 0.86);
}

.preview-focus h3 {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.1;
}

.preview-focus ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #44364a;
  font-size: 15px;
  line-height: 1.34;
}

.preview-focus li::marker {
  color: var(--gold);
}

.focus-copy > .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.focus-copy > .actions .link-button {
  width: 100%;
}

.month-list {
  display: grid;
  gap: 8px;
}

.month-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(217, 196, 215, 0.82);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(74, 52, 86, 0.07);
}

.month-row strong {
  display: block;
  color: var(--accent-strong);
}

.month-row span {
  color: var(--muted);
  font-size: 13px;
}

.month-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  font-weight: 800;
}

.queue-drawer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.queue-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.queue-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.queue-summary-status {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.queue-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(185, 156, 189, 0.16);
}

.queue-drawer.has-active-jobs .queue-dot {
  background: var(--gold);
  animation: queuePulse 1.4s ease-in-out infinite;
}

.queue-drawer summary::-webkit-details-marker {
  display: none;
}

.queue-drawer summary::after {
  content: "↓";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 249, 244, 0.72);
}

.queue-drawer[open] summary::after {
  content: "↑";
}

.queue-drawer table,
.queue-drawer p {
  margin-bottom: 20px;
}

.queue-live {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.14)),
    rgba(255, 244, 223, 0.72);
  border: 1px solid rgba(169, 133, 88, 0.32);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(74, 52, 86, 0.08), var(--inner-glow);
}

.queue-live-copy {
  display: grid;
  gap: 2px;
}

.queue-live-copy strong {
  color: var(--accent-strong);
  font-size: 16px;
}

.queue-live-copy span,
.queue-refresh-note {
  color: var(--muted);
  font-size: 13px;
}

.queue-progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  background: rgba(255, 249, 244, 0.86);
  border: 1px solid rgba(169, 133, 88, 0.22);
  border-radius: 999px;
}

.queue-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 38%, rgba(255, 255, 255, 0.36) 70%),
    linear-gradient(135deg, var(--gold), var(--rose), var(--accent));
  background-size: 120px 100%, 100% 100%;
  box-shadow: 0 0 18px rgba(169, 133, 88, 0.28);
  transition: width 0.45s ease;
  animation: queueBar 1.2s linear infinite;
}

@keyframes queuePulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(169, 133, 88, 0.16), 0 0 0 0 rgba(169, 133, 88, 0.32);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(169, 133, 88, 0.16), 0 0 0 8px rgba(169, 133, 88, 0);
  }
}

@keyframes queueBar {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 120px 0, 0 0;
  }
}

.choice-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text);
}

.choice-line label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.choice-line input {
  width: auto;
  min-height: auto;
  accent-color: var(--accent);
}

.check-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.register-panel {
  max-width: 620px;
}

.alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.alert {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 244, 0.94);
  box-shadow: 0 10px 24px rgba(74, 52, 86, 0.08);
}

.alert.success {
  color: var(--green);
  border-color: rgba(79, 124, 101, 0.36);
  background: #f1f7f2;
}

.alert.error,
.error-text {
  color: var(--red);
}

.meta {
  display: grid;
  gap: 10px;
  margin: 4px 0 2px;
}

.meta div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
}

.meta dt {
  color: var(--muted);
}

.meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(185, 156, 189, 0.42);
  border-radius: 8px;
  background: rgba(234, 216, 239, 0.7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge.queued,
.badge.running,
.badge.amber {
  color: #856334;
  background: #fff4df;
  border-color: rgba(169, 133, 88, 0.42);
}

.badge.done {
  color: var(--green);
  background: #eef7ef;
  border-color: rgba(79, 124, 101, 0.34);
}

.badge.failed {
  color: var(--red);
  background: #faecee;
  border-color: rgba(164, 74, 88, 0.34);
}

.badge.pending {
  color: #856334;
  background: #fff4df;
  border-color: rgba(169, 133, 88, 0.42);
}

.badge.paid {
  color: var(--green);
  background: #eef7ef;
  border-color: rgba(79, 124, 101, 0.34);
}

.positive {
  color: var(--green);
  font-weight: 900;
}

.negative {
  color: var(--red);
  font-weight: 900;
}

.inline-grant-form {
  display: grid;
  grid-template-columns: 82px minmax(170px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: min(100%, 430px);
}

.inline-grant-form input,
.inline-grant-form button {
  min-height: 36px;
}

.inline-grant-form button {
  padding: 7px 12px;
}

.empty {
  padding: 38px;
  text-align: center;
}

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

.year-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.54);
}

.year-item summary {
  min-height: 34px;
  margin-bottom: 12px;
  color: var(--accent-strong);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.month-chip {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(185, 156, 189, 0.35);
  border-radius: 8px;
  background: rgba(246, 232, 231, 0.7);
}

.month-chip strong {
  color: var(--accent-strong);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(217, 196, 215, 0.8);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: rgba(234, 216, 239, 0.42);
}

tr:last-child td {
  border-bottom: 0;
}

code {
  color: var(--blue);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.place-field {
  position: relative;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  max-height: 320px;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.suggestions[hidden] {
  display: none;
}

.suggestion {
  display: grid;
  justify-content: stretch;
  gap: 3px;
  min-height: 0;
  padding: 12px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 249, 244, 0.95);
  border: 0;
  border-bottom: 1px solid rgba(217, 196, 215, 0.8);
  border-radius: 0;
  box-shadow: none;
}

.suggestion:hover {
  background: var(--accent-soft);
  transform: none;
}

.suggestion small {
  color: var(--muted);
}

.manual-place {
  padding: 14px;
  background: rgba(246, 232, 231, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manual-place summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 800;
}

.manual-place .form-row {
  margin-top: 12px;
}

.document {
  overflow-x: auto;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2)),
    var(--paper);
}

.document::after {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 210px;
  height: 210px;
  pointer-events: none;
  content: "";
  background: url("constellation-field.svg") center / contain no-repeat;
  opacity: 0.08;
}

.document h1 {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.document h2 {
  margin-top: 30px;
  padding-top: 4px;
}

.document h3 {
  margin-top: 22px;
  color: #614179;
}

.document p,
.document li {
  color: #44364a;
}

.document ul,
.document ol {
  padding-left: 22px;
}

.document table {
  min-width: 640px;
  margin: 16px 0 24px;
  background: rgba(255, 252, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.document blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  color: var(--muted);
  background: rgba(234, 216, 239, 0.42);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}

@media (max-width: 760px) {
  body::before,
  body::after {
    width: 360px;
    height: 360px;
    opacity: 0.16;
  }

  .topbar,
  .page-head,
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 10px;
    padding: 14px 18px;
  }

  .topbar::after {
    display: none;
  }

  .nav {
    gap: 8px;
  }

  .split,
  .form-row,
  .year-access-panel,
  .month-access-panel,
  .focus-card,
  .landing-hero,
  .value-grid,
  .theory-grid,
  .steps-grid,
  .faq-grid,
  .report-preview-grid,
  .compact-prices,
  .month-row {
    grid-template-columns: 1fr;
  }

  .section-head,
  .paywall-panel,
  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    width: min(100vw - 20px, 1180px);
    margin-top: 22px;
  }

  .page.page-wide {
    width: min(100vw - 20px, 1180px);
  }

  .page.page-marketing {
    width: min(100vw - 20px, 1180px);
  }

  .landing-hero {
    min-height: 0;
  }

  .product-hero .landing-copy {
    padding-top: 12px;
  }

  .landing-copy h1 {
    font-size: 38px;
  }

  .landing-copy p {
    font-size: 17px;
  }

  .hero-orbit {
    min-height: 430px;
    padding: 22px;
  }

  .orbit-note {
    margin-top: -36px;
  }

  .report-preview-grid .sample-report {
    grid-column: auto;
  }

  .page-head {
    min-height: 0;
  }

  h1 {
    font-size: 30px;
  }

  .panel,
  .card,
  .auth-panel,
  .empty,
  .document,
  .wheel-panel {
    padding: 20px;
  }

  .wheel-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-head {
    align-items: flex-start;
  }

  .calc-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    border-radius: 8px;
  }

  .calc-tab {
    flex: 0 0 auto;
  }

  .focus-wheel-wrap {
    min-height: 0;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(217, 196, 215, 0.8);
  }

  .focus-copy {
    min-height: 0;
    padding: 22px;
  }

  .focus-copy h2 {
    font-size: 26px;
  }

  .focus-description {
    font-size: 15px;
  }

  .preview-focus h3 {
    font-size: 22px;
  }

  .focus-copy > .actions {
    grid-template-columns: 1fr;
  }

  .auth-links,
  .inline-grant-form {
    grid-template-columns: 1fr;
  }

  .month-actions {
    justify-content: flex-start;
  }

  .meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

  .calc-tab,
  .icon-button {
    width: auto;
  }
}
