:root {
  color-scheme: dark;
  --night: #061526;
  --night-soft: #0a2038;
  --surface: rgba(13, 43, 72, .8);
  --surface-solid: #102f4d;
  --violet: #67afe8;
  --violet-bright: #9ed5ff;
  --gold: #d7bc78;
  --ink: #edf7ff;
  --muted: #afc3d6;
  --line: rgba(160, 207, 245, .18);
  --danger: #ffb8c1;
  --shadow: 0 24px 70px rgba(1, 10, 22, .46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(26, 105, 170, .25), transparent 30rem),
    radial-gradient(circle at 88% 28%, rgba(37, 102, 158, .23), transparent 28rem),
    linear-gradient(145deg, #051321 0%, #0a223b 55%, #061526 100%);
  line-height: 1.6;
}

body {
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
}

.site-header {
  padding-top: max(1rem, env(safe-area-inset-top));
}

.site-footer {
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: .65rem 1rem;
  clip: auto;
  border-radius: .5rem;
  background: var(--ink);
  color: var(--night);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .13;
  pointer-events: none;
}

.ambient-one {
  top: 8rem;
  left: -10rem;
  background: #268cd5;
}

.ambient-two {
  right: -12rem;
  bottom: 5rem;
  background: #1a73bd;
}

.page-shell,
.site-header,
.site-footer,
.site-messages {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
}

.brand-mark,
.benefit-icon,
.sign-symbol {
  color: var(--gold);
}

nav {
  display: flex;
  gap: .85rem;
  align-items: center;
  font-size: .92rem;
}

nav form {
  display: inline;
}

.nav-link,
.link-button {
  border: 0;
  padding: .5rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.nav-pill {
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.account-email {
  max-width: 12rem;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.hero {
  display: grid;
  min-height: min(690px, calc(100vh - 5rem));
  align-items: center;
  padding-block: 5rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.chat-label {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 10vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -.045em;
}

.hero h1 span {
  color: var(--violet-bright);
  font-style: italic;
}

.hero-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin: 2.2rem 0 1.7rem;
}

.primary-button {
  display: inline-flex;
  gap: .8rem;
  justify-content: center;
  align-items: center;
  min-height: 3.2rem;
  padding: .8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  background: linear-gradient(135deg, #298ed1, #1763a2);
  box-shadow: 0 12px 30px rgba(20, 101, 164, .3);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.secondary-link,
.back-link {
  color: var(--muted);
  text-underline-offset: .3rem;
}

.trust-note {
  color: #9db4c8;
  font-size: .84rem;
}

.trust-note span {
  margin-right: .35rem;
  color: var(--gold);
}

.hero-orbit {
  display: none;
}

.benefits {
  padding-block: 4rem 6rem;
}

.benefits h2 {
  max-width: 42rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
}

.benefit-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.benefit-grid article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(18, 57, 91, .74), rgba(8, 31, 54, .68));
}

.benefit-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border: 1px solid rgba(215, 188, 120, .3);
  border-radius: 50%;
}

.benefit-grid h3 {
  margin-bottom: .6rem;
  font-size: 1.25rem;
}

.benefit-grid p,
.disclaimer p,
.form-intro > p,
.privacy-points,
.form-disclaimer,
.chat-disclaimer {
  color: var(--muted);
}

.disclaimer {
  margin-bottom: 5rem;
  padding: 1.4rem;
  border: 1px solid rgba(215, 188, 120, .22);
  border-radius: 1rem;
  background: rgba(215, 188, 120, .06);
}

.disclaimer p {
  margin: .45rem 0 0;
}

.form-layout {
  display: grid;
  gap: 2rem;
  min-height: calc(100vh - 5rem);
  align-items: center;
  padding-block: 3rem 5rem;
}

.form-intro h1 {
  margin: 1.2rem 0;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 500;
}

.form-intro .eyebrow {
  margin-top: 2.5rem;
}

.privacy-points {
  display: grid;
  gap: .5rem;
  padding: 0;
  list-style: none;
}

.privacy-points span {
  margin-right: .45rem;
  color: var(--gold);
}

.reading-form {
  padding: clamp(1.25rem, 5vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.form-field {
  display: grid;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-weight: 700;
}

.form-field small {
  color: #9d95b0;
}

.form-field input,
.form-field select,
.form-field textarea,
.chat-composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: rgba(5, 22, 39, .68);
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 3rem;
  padding: .8rem .9rem;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field .errorlist {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--danger);
}

.button-full {
  width: 100%;
}

.primary-button:disabled {
  cursor: wait;
  filter: saturate(.75);
  opacity: .78;
  transform: none;
}

.generation-status {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  text-align: center;
}

.modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 16, 29, .84);
  backdrop-filter: blur(8px);
}

.auth-modal-card,
.auth-card {
  position: relative;
  width: min(100%, 31rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.3rem, 5vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #0b2945;
  box-shadow: var(--shadow);
}

.auth-modal-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.8rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  margin: 1rem 0;
  padding: .3rem;
  border-radius: .8rem;
  background: rgba(4, 20, 36, .54);
}

.auth-tabs button {
  padding: .7rem;
  border: 0;
  border-radius: .6rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.auth-tabs button[aria-selected="true"] {
  background: rgba(45, 132, 194, .45);
  color: var(--ink);
}

.auth-modal-form,
.auth-form {
  display: grid;
  gap: .7rem;
}

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

.auth-modal-form input:not([type="checkbox"]),
.auth-form input:not([type="checkbox"]),
.auth-form select {
  width: 100%;
  min-height: 3rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: rgba(4, 20, 36, .64);
  color: var(--ink);
}

.auth-checkbox {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.auth-modal-fallback,
.auth-help {
  color: var(--muted);
  font-size: .82rem;
}

.auth-shell {
  display: grid;
  min-height: 65vh;
  place-items: center;
  padding-block: 2rem 4rem;
}

.auth-errors,
.auth-form .errorlist {
  color: var(--danger);
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: .82rem;
}

.auth-separator::before,
.auth-separator::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-providers {
  display: grid;
  gap: .6rem;
}

.form-disclaimer {
  margin: 1rem 0 0;
  font-size: .78rem;
  text-align: center;
}

.chat-layout {
  max-width: 860px;
  padding-block: 2rem 4rem;
}

.guided-choices {
  margin: 1.25rem 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(8, 31, 55, .76);
}

.guided-choices > p {
  margin-top: 0;
  color: var(--muted);
}

#guided-choice-list {
  display: grid;
  gap: .75rem;
}

.guided-choice {
  width: 100%;
  padding: .95rem 1rem;
  border: 1px solid rgba(198, 170, 102, .35);
  border-radius: .85rem;
  background: rgba(35, 116, 180, .22);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sign-flow {
  max-width: 52rem;
  padding-block: 1.25rem 4rem;
}

.sign-flow-copy {
  margin-bottom: 1.25rem;
}

.sign-form {
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
}

.zodiac-wheel {
  position: relative;
  height: 18rem;
  overflow: hidden;
  border-radius: 1rem;
  background: radial-gradient(circle, rgba(45, 133, 199, .25), rgba(4, 20, 36, .84) 68%);
  touch-action: pan-y;
  perspective: 650px;
  outline: none;
}

.zodiac-wheel:focus-visible {
  box-shadow: 0 0 0 3px var(--gold);
}

.zodiac-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7rem;
  height: 7rem;
  margin: -3.5rem;
  transform-style: preserve-3d;
  transition: transform .32s ease-out;
}

.zodiac-wheel-item {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  transform: rotateY(calc(var(--wheel-index) * 30deg)) translateZ(11rem);
  backface-visibility: hidden;
  color: var(--muted);
  text-align: center;
}

.zodiac-wheel-item strong {
  color: var(--gold);
  font-size: 1.8rem;
}

.zodiac-wheel-item small {
  font-size: .7rem;
}

.wheel-pointer {
  position: absolute;
  z-index: 3;
  top: .55rem;
  left: 50%;
  color: var(--gold);
  transform: translateX(-50%);
}

.wheel-selected {
  position: absolute;
  z-index: 2;
  inset: auto 50% 1rem auto;
  display: flex;
  min-width: 10rem;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid rgba(212, 183, 111, .45);
  border-radius: 999px;
  background: rgba(6, 27, 48, .92);
  transform: translateX(50%);
}

.wheel-selected span {
  color: var(--gold);
  font-size: 1.5rem;
}

.wheel-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: .75rem 0 1.25rem;
}

.wheel-controls button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: rgba(32, 111, 171, .22);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
}

.accessible-sign-select,
.optional-date {
  margin: 1rem 0;
}

.accessible-sign-select {
  display: grid;
  gap: .45rem;
}

.accessible-sign-select select,
.date-control select {
  width: 100%;
  min-height: 44px;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: rgba(4, 20, 36, .68);
  color: var(--ink);
}

.optional-date {
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
}

.optional-date summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}

.date-wheel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.date-control {
  display: grid;
  gap: .4rem;
}

.date-stepper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
}

.date-stepper button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: rgba(32, 111, 171, .22);
  color: var(--ink);
  cursor: pointer;
}

.calculated-sign {
  min-height: 1.5em;
  color: var(--gold);
}

@media (min-width: 48rem) {
  .sign-form {
    padding: 1.6rem;
  }

  #guided-choice-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 22rem) {
  .site-header {
    padding-inline: .7rem;
  }

  .site-header nav {
    gap: .35rem;
  }

  .zodiac-wheel {
    height: 16rem;
  }
}

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

.ranking-page { padding-block: 2rem 5rem; }
.ranking-heading { margin-bottom: 1.5rem; }
.ranking-fallback, .ranking-return { color: var(--muted); }
.ranking-podium, .home-podium {
  display: grid;
  gap: .75rem;
  margin: 1.5rem 0;
}
.podium-card, .home-podium article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.podium-card.selected, .ranking-list .selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 183, 111, .2);
}
.ranking-position {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 183, 111, .16);
  color: var(--gold);
  font-weight: 800;
}
.ranking-list {
  display: grid;
  gap: .75rem;
  padding: 0;
  list-style: none;
}
.ranking-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(8, 31, 55, .72);
}
.ranking-list h2, .ranking-list p { margin: 0 0 .4rem; }
.ranking-list .secondary-button {
  grid-column: 1 / -1;
  min-height: 44px;
}
.movement-up { color: #9ed8ad; }
.movement-down { color: #d8c18f; }
.movement-same, .movement-new { color: var(--muted); }
.selected-ranking-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(212, 183, 111, .35);
  border-radius: 1rem;
  background: rgba(10, 38, 65, .84);
}
.selected-ranking-card p { margin: .35rem 0; }
.selected-ranking-card > a { grid-column: 1 / -1; }
.change-sign {
  margin: .75rem 0;
  color: var(--muted);
}
.change-sign summary { min-height: 44px; cursor: pointer; }
.change-sign form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.change-sign label { width: 100%; }
.change-sign select, .change-sign button {
  min-height: 44px;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: rgba(6, 27, 48, .82);
  color: var(--ink);
}
.home-ranking { padding-block: 3rem 5rem; }
.home-podium article { display: grid; gap: .25rem; }
.home-podium span { color: var(--gold); font-size: 1.5rem; font-weight: 800; }

@media (min-width: 48rem) {
  .ranking-podium, .home-podium { grid-template-columns: repeat(3, 1fr); }
  .podium-1 { order: 2; transform: translateY(-.75rem); }
  .podium-2 { order: 1; }
  .podium-3 { order: 3; }
  .ranking-list li { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .ranking-list .secondary-button { grid-column: auto; }
}

.guided-choice:hover,
.guided-choice:focus-visible {
  border-color: var(--gold);
  background: rgba(37, 120, 181, .38);
}

.guided-choice:disabled {
  cursor: wait;
  opacity: .58;
}

.guided-appear {
  animation: guided-appear .28s ease-out;
}

@keyframes guided-appear {
  from { opacity: 0; transform: translateY(.35rem); }
}

.chat-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.sign-symbol {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(215, 188, 120, .25);
  border-radius: 50%;
  background: rgba(215, 188, 120, .06);
  font-size: 1.35rem;
}

.chat-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.chat-header p {
  margin: .15rem 0 0;
  color: var(--muted);
}

.chat-header .chat-label {
  margin: 0 0 .25rem;
  color: var(--gold);
}

.save-reading {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--violet-bright);
  font-size: .9rem;
  text-underline-offset: .25rem;
}

.chat-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: .8rem 0;
  color: var(--muted);
  font-size: .8rem;
}

.chat-status p {
  margin: 0;
}

.chat-status span,
.ai-label span {
  color: var(--gold);
}

.chat-messages {
  display: flex;
  height: clamp(240px, 50dvh, 560px);
  padding: 1.5rem .25rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 1.2rem;
  scroll-behavior: auto;
  overflow-anchor: none;
  scrollbar-color: #346d98 transparent;
}

.chat-messages > :first-child {
  margin-top: auto;
}

.chat-messages > * {
  flex-shrink: 0;
}

.message-row {
  display: flex;
  max-width: min(88%, 650px);
  flex-direction: column;
  gap: .35rem;
}

.message-user {
  align-self: flex-end;
  align-items: flex-end;
}

.message-assistant {
  align-self: flex-start;
}

.message-meta {
  padding-inline: .35rem;
  color: #94aec4;
  font-size: .75rem;
  font-weight: 700;
}

.message-bubble {
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 1rem .25rem;
  background: var(--surface-solid);
  color: #eaf6ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-user .message-bubble {
  border-color: rgba(103, 175, 232, .3);
  border-radius: 1rem 1rem .25rem 1rem;
  background: linear-gradient(145deg, #1d6599, #174c79);
}

.loading-row {
  display: flex;
  gap: .35rem;
  align-items: center;
  align-self: flex-start;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--muted);
  font-size: .86rem;
}


.loading-dot {
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--violet-bright);
  animation: pulse 1s infinite alternate;
}

.loading-dot:nth-child(2) {
  animation-delay: .2s;
}

.loading-dot:nth-child(3) {
  margin-right: .35rem;
  animation-delay: .4s;
}

@keyframes pulse {
  to { opacity: .25; transform: translateY(-2px); }
}

.chat-error {
  margin: .4rem 0 1rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 184, 193, .25);
  border-radius: .7rem;
  background: rgba(128, 34, 54, .2);
  color: var(--danger);
}

.paywall-placeholder {
  margin: 1rem 0;
  padding: 1.5rem;
  border: 1px solid rgba(215, 188, 120, .28);
  border-radius: 1rem;
  background: rgba(215, 188, 120, .07);
  text-align: center;
}

.paywall-placeholder > span {
  color: var(--gold);
}

.paywall-placeholder h2 {
  margin: .4rem 0;
}

.paywall-placeholder p {
  margin: 0;
  color: var(--muted);
}

.unlock-button {
  margin: 1.2rem .3rem .4rem;
}

.unlock-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.paywall-placeholder small {
  display: block;
  color: #91889f;
}

.simulation-button {
  margin-top: 1rem;
  padding: .7rem 1rem;
  border: 1px dashed rgba(215, 188, 120, .45);
  border-radius: .7rem;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.simulation-button span {
  display: block;
  color: var(--muted);
  font-size: .65rem;
}

.paywall-placeholder .paywall-account {
  max-width: 36rem;
  margin: 1.2rem auto 0;
  font-size: .85rem;
}

.paywall-account a {
  color: var(--violet-bright);
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .65rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(11, 42, 69, .95);
  box-shadow: 0 16px 45px rgba(1, 12, 24, .38);
}

.chat-composer textarea {
  min-height: 2.8rem;
  max-height: 10rem;
  padding: .65rem .75rem;
  border: 0;
  outline: 0;
  resize: none;
}

.chat-composer button {
  display: flex;
  gap: .45rem;
  align-items: center;
  align-self: end;
  min-height: 2.8rem;
  padding: .65rem .9rem;
  border: 0;
  border-radius: .7rem;
  background: var(--violet);
  color: #06182a;
  cursor: pointer;
  font-weight: 800;
}

.chat-composer button:disabled,
.chat-composer textarea:disabled {
  cursor: wait;
  opacity: .55;
}

.chat-composer > p {
  grid-column: 1 / -1;
  margin: -.2rem .5rem 0;
  color: #8ca6bc;
  font-size: .7rem;
}

.chat-disclaimer {
  max-width: 700px;
  margin: 1.2rem auto 0;
  font-size: .72rem;
  text-align: center;
}

.site-messages {
  padding-block: 1rem;
  color: var(--violet-bright);
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: #8da6ba;
  font-size: .75rem;
  text-align: center;
}

.site-footer p {
  margin: .2rem;
}

.footer-links {
  justify-content: center;
  margin-top: .7rem;
}

.footer-links a {
  color: var(--muted);
  text-underline-offset: .2rem;
}

.legal-page {
  min-height: calc(100vh - 12rem);
  max-width: 760px;
  padding-block: 4rem 6rem;
}

.legal-page h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 500;
}

.legal-page h2 {
  margin-top: 2rem;
}

.legal-page > p {
  color: var(--muted);
}

.legal-page .legal-warning {
  padding: .8rem 1rem;
  border: 1px solid rgba(215, 188, 120, .25);
  border-radius: .75rem;
  color: var(--gold);
}

.readings-history {
  min-height: calc(100vh - 10rem);
  padding-block: 4rem 6rem;
}

.history-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 2.5rem;
}

.history-heading h1 {
  margin-bottom: .6rem;
  font-size: clamp(2.7rem, 8vw, 4.8rem);
  font-weight: 500;
}

.history-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.history-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.history-symbol {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(215, 188, 120, .25);
  border-radius: 50%;
  color: var(--gold);
}

.history-card time,
.history-card p,
.history-state {
  color: var(--muted);
  font-size: .8rem;
}

.history-card h2,
.history-card p {
  margin: .15rem 0;
}

.history-state {
  grid-column: 2;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.history-state strong {
  color: var(--violet-bright);
}

.history-open {
  grid-column: 2;
  color: var(--gold);
  font-size: .9rem;
  font-weight: 700;
  text-underline-offset: .25rem;
}

.empty-history {
  padding: clamp(2rem, 8vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
  text-align: center;
}

.empty-history > span {
  color: var(--gold);
  font-size: 3rem;
}

.empty-history p {
  color: var(--muted);
}

@media (min-width: 700px) {
  .page-shell,
  .site-header,
  .site-footer,
  .site-messages {
    width: min(1120px, calc(100% - 4rem));
  }

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

  .form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
    gap: clamp(3rem, 8vw, 8rem);
  }

  .chat-header {
    grid-template-columns: auto 1fr auto;
  }

  .save-reading {
    grid-column: auto;
    justify-self: end;
  }

  .history-card {
    grid-template-columns: auto 1fr auto auto;
  }

  .history-state,
  .history-open {
    grid-column: auto;
  }
}

@media (min-width: 950px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  }

  .hero-orbit {
    position: relative;
    display: block;
    width: 300px;
    height: 300px;
    justify-self: end;
  }

  .orbit-ring {
    position: absolute;
    border: 1px solid rgba(145, 201, 242, .2);
    border-radius: 50%;
    inset: 0;
  }

  .orbit-ring-two {
    inset: 2.8rem;
    border-color: rgba(215, 188, 120, .22);
  }

  .orbit-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 5rem;
    transform: translate(-50%, -50%);
  }

  .orbit-star {
    position: absolute;
    color: var(--violet-bright);
  }

  .star-one { top: 4%; left: 48%; }
  .star-two { right: 3%; bottom: 27%; }
  .star-three { bottom: 3%; left: 28%; font-size: 2rem; }
}

.natal-form-page, .natal-chart-page { padding-block: 2.5rem 5rem; }
.natal-heading { max-width: 46rem; margin-bottom: 2rem; }
.natal-heading h1 { margin: .45rem 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 7vw, 4.5rem); }
.natal-form { max-width: 48rem; padding: clamp(1.2rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 1.4rem; background: rgba(9, 35, 61, .84); }
.natal-form-grid { display: grid; gap: 1rem; }
.natal-field { display: grid; gap: .4rem; }
.natal-field input, .natal-field select { width: 100%; min-height: 48px; padding: .75rem; color: var(--ink); border: 1px solid var(--line); border-radius: .75rem; background: #0a233d; }
.natal-field small { color: var(--muted); }
.natal-privacy { margin: 1.25rem 0; padding: 1rem; border-left: 3px solid var(--gold); background: rgba(255,255,255,.035); }
.natal-privacy p { margin: .3rem 0 0; color: var(--muted); }
.natal-layout { display: grid; gap: 2rem; align-items: center; }
.natal-wheel-wrap { width: min(100%, 34rem); margin-inline: auto; }
.natal-wheel { display: block; width: 100%; height: auto; overflow: visible; }
.natal-ring-outer, .natal-ring { fill: rgba(7,29,51,.58); stroke: rgba(126,194,244,.48); stroke-width: 1; }
.natal-ring { fill: none; stroke-opacity: .55; }
.natal-sign { fill: var(--gold); font-size: 18px; text-anchor: middle; dominant-baseline: middle; }
.natal-planet circle { fill: #103c62; stroke: var(--violet-bright); stroke-width: 1; }
.natal-planet text { fill: #fff; font-size: 14px; text-anchor: middle; dominant-baseline: central; }
.natal-aspect { stroke: rgba(112,185,239,.38); stroke-width: 1; }
.natal-aspect-square, .natal-aspect-opposition { stroke: rgba(255,143,164,.4); }
.natal-aspect-trine, .natal-aspect-sextile { stroke: rgba(124,220,204,.4); }
.natal-center, .natal-center-sub { fill: var(--ink); text-anchor: middle; font-family: Georgia, serif; letter-spacing: .12em; }
.natal-center-sub { fill: var(--muted); font-size: 9px; }
.natal-summary { padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(9,35,61,.74); }
.natal-big-three { display: grid; gap: .75rem; margin: 1rem 0; }
.natal-big-three article { display: flex; gap: .8rem; align-items: center; padding: .8rem; border-radius: .8rem; background: rgba(255,255,255,.04); }
.natal-big-three article > span { color: var(--gold); font-size: 1.7rem; }
.natal-big-three div { display: grid; }
.natal-big-three small { color: var(--muted); }
.natal-table-section, .natal-aspects-list, .saved-natal-charts { margin-top: 3rem; }
.table-scroll { overflow-x: auto; }
.natal-table { width: 100%; border-collapse: collapse; min-width: 35rem; }
.natal-table th, .natal-table td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.natal-aspects-list ul { display: grid; gap: .6rem; padding: 0; list-style: none; }
.natal-aspects-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem; border-bottom: 1px solid var(--line); }

@media (min-width: 48rem) {
  .natal-form-grid { grid-template-columns: 1fr 1fr; }
  .natal-field-birthplace, .natal-field-city, .natal-field-country, .natal-field-timezone { grid-column: 1 / -1; }
  .natal-layout { grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); }
}

@media (max-width: 420px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: .7rem;
    padding-block: .9rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-block: 3.5rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-link {
    text-align: center;
  }

  .chat-composer button span:first-child {
    display: none;
  }
}

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