@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --bg-soft: #ecf2fb;
  --surface: #ffffff;
  --surface-strong: #fefefe;
  --surface-muted: #f8faff;
  --text: #1d2738;
  --muted: #61708a;
  --line: #d7e2f2;
  --line-strong: #c2d2e8;
  --accent: #2f6bff;
  --accent-strong: #0f4ee5;
  --accent-warm: #ffd47a;
  --success: #0d9488;
  --danger: #ce4754;
  --shadow-soft: 0 16px 38px rgba(27, 57, 117, 0.12);
  --shadow-strong: 0 28px 64px rgba(27, 57, 117, 0.18);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell-width: 760px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 10% -5%, rgba(255, 212, 122, 0.36), transparent 34%),
    radial-gradient(circle at 100% 4%, rgba(47, 107, 255, 0.22), transparent 38%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 45%, #f8fbff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: '';
  background-image:
    linear-gradient(rgba(31, 70, 143, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 70, 143, 0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 1), transparent 78%);
}

button,
input,
a {
  font: inherit;
}

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

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

.hidden {
  display: none !important;
}

.app-shell,
.forecast-shell,
.legal-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--shell-width));
  margin: 0 auto;
  padding: 20px 14px 28px;
}

.app-shell,
.forecast-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.forecast-shell,
.legal-shell {
  align-items: start;
  gap: 16px;
}

.hero-card,
.quiz-card,
.calc-card,
.form-card,
.portal-card,
.forecast-hero,
.forecast-block,
.restart-card,
.legal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow: var(--shadow-soft);
}

.hero-card,
.quiz-card,
.calc-card,
.form-card,
.portal-card,
.forecast-hero,
.forecast-block,
.restart-card,
.legal-card {
  padding: 22px 16px;
}

.hero-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 212, 122, 0.4), transparent 30%),
    radial-gradient(circle at 0% 0%, rgba(47, 107, 255, 0.16), transparent 28%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 255, 0.97));
}

.eyebrow {
  margin: 0 0 10px;
  color: #2b5ac7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #1a2537;
  line-height: 1.07;
  letter-spacing: -0.025em;
  font-family: 'Fraunces', Georgia, serif;
}

h1 {
  font-size: clamp(32px, 10vw, 56px);
}

h2 {
  font-size: clamp(24px, 7.8vw, 40px);
}

.hero-text,
.muted,
.forecast-block p,
.legal-card p,
.contact-list a,
.contact-list p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.hero-text {
  margin: 16px 0 22px;
}

.small-note {
  margin: 12px 0 0;
  color: #7284a2;
  font-size: 13px;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 54px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #2f6bff, #1f56de 68%, #1749c8);
  box-shadow: 0 14px 28px rgba(31, 86, 222, 0.28);
}

.secondary-button {
  color: #25416a;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-color: var(--line-strong);
}

.primary-button:active,
.secondary-button:active,
.answer-button:active,
.ad-slot:active {
  transform: scale(0.985);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.answer-button:focus-visible,
.ad-slot:focus-visible,
input:focus-visible,
.site-footer a:focus-visible,
.legal-card a:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.3);
  outline-offset: 2px;
}

.orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.76;
  filter: blur(2px);
}

.orb-one {
  top: 40px;
  right: -74px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.4), transparent 66%);
}

.orb-two {
  top: 124px;
  left: -58px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 212, 122, 0.66), transparent 70%);
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #50627f;
  font-size: 13px;
  font-weight: 700;
}

.progress-bar {
  height: 9px;
  margin: 14px 0 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef9;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d9488, #2f6bff);
  transition: width 0.26s ease;
}

.question-block h2 {
  margin-bottom: 20px;
}

.answers-grid {
  display: grid;
  gap: 10px;
}

.answer-button {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: #1f3049;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfdff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.answer-button.selected {
  border-color: rgba(13, 148, 136, 0.65);
  background: rgba(13, 148, 136, 0.09);
}

.zodiac-wheel {
  width: 162px;
  height: 162px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid #cadef7;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 107, 255, 0.11), transparent 64%),
    #f8fbff;
  animation: spin 13s linear infinite;
}

.zodiac-wheel span {
  grid-area: 1 / 1;
  color: #2b5ac7;
  font-size: 31px;
}

.zodiac-wheel span:nth-child(2) {
  transform: translateY(-52px);
}

.zodiac-wheel span:nth-child(3) {
  transform: translate(46px, 32px);
}

.calc-card,
.portal-card {
  text-align: center;
}

.calc-lines {
  display: grid;
  gap: 8px;
  margin: 24px 0 16px;
}

.calc-lines span {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.42), transparent);
  animation: shimmer 2.1s ease-in-out infinite;
}

.calc-lines span:nth-child(2) {
  animation-delay: 0.16s;
}

.calc-lines span:nth-child(3) {
  animation-delay: 0.32s;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: #516685;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: #1d2738;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  outline: 0;
}

input::placeholder {
  color: #8b99ad;
}

input:focus {
  border-color: rgba(47, 107, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}

.portal {
  width: 184px;
  height: 184px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #2f6bff, #0d9488, #ffd47a, #2f6bff);
  filter: drop-shadow(0 0 28px rgba(15, 78, 229, 0.24));
  animation: portal 2.8s ease-in-out infinite;
}

.forecast-layout {
  display: grid;
  gap: 14px;
}

.forecast-block p:last-child,
.legal-card p:last-child {
  margin-bottom: 0;
}

.ad-slot {
  display: block;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #d0ddf2;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(17, 53, 112, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-video-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 107, 255, 0.28), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(255, 212, 122, 0.36), transparent 26%),
    linear-gradient(145deg, #e9f2ff, #cfdfff 56%, #b9d4ff);
}

.ad-video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-video-wrap:not(.has-video) .ad-video {
  opacity: 0;
}

.ad-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #1e3f70;
  text-align: center;
  font-size: clamp(20px, 7vw, 38px);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ad-video-wrap.has-video .ad-video-fallback {
  display: none;
}

.ad-text {
  margin: 12px 4px 4px;
  color: #233c63;
  font-size: clamp(16px, 4.8vw, 21px);
  font-weight: 800;
  line-height: 1.34;
}

.consent-note a,
.legal-card a,
.site-footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

.consent-note a:hover,
.legal-card a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  margin: -10px auto 0;
  padding: 0 14px 24px;
  color: #6f7f99;
  text-align: center;
  font-size: 13px;
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 14px;
}

.legal-card {
  overflow: visible;
}

.legal-card h1 {
  margin-bottom: 10px;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: clamp(22px, 6.2vw, 34px);
}

.legal-updated {
  margin-top: 0;
  color: #7d8ea9 !important;
  font-size: 14px !important;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.contact-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.contact-list span {
  display: block;
  margin-bottom: 7px;
  color: #2b5ac7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list p,
.contact-list a {
  margin: 0;
  font-size: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.26;
    transform: translateX(-4px);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

@keyframes portal {
  0%,
  100% {
    transform: scale(0.93) rotate(0deg);
    opacity: 0.84;
  }
  50% {
    transform: scale(1.04) rotate(56deg);
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(31, 86, 222, 0.3);
  }

  .secondary-button:hover {
    transform: translateY(-1px);
    border-color: #9eb6d8;
  }

  .answer-button:hover {
    border-color: rgba(47, 107, 255, 0.5);
    background: rgba(47, 107, 255, 0.07);
  }

  .ad-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(17, 53, 112, 0.22);
  }
}

@media (min-width: 680px) {
  .app-shell,
  .forecast-shell,
  .legal-shell {
    padding: 34px 24px 44px;
  }

  .hero-card,
  .quiz-card,
  .calc-card,
  .form-card,
  .portal-card,
  .forecast-hero,
  .forecast-block,
  .restart-card,
  .legal-card {
    padding: 34px;
    border-radius: 32px;
  }

  .hero-card {
    min-height: 560px;
  }

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

  .site-footer {
    padding: 0 24px 30px;
  }
}

@media (min-width: 980px) {
  .app-shell,
  .forecast-shell,
  .legal-shell {
    width: min(100%, 820px);
  }
}

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