:root {
  --bg: #eef6ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #26435f;
  --muted: #5e7893;
  --line: rgba(72, 126, 184, 0.16);
  --blue: #3158bc;
  --blue-deep: #213b88;
  --green: #5aaf57;
  --orange: #eb9b25;
  --red: #d95b5b;
  --shadow: 0 20px 60px rgba(73, 113, 169, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 201, 122, 0.45), transparent 28%),
    radial-gradient(circle at top right, rgba(115, 179, 255, 0.35), transparent 24%),
    linear-gradient(180deg, #dff0ff 0%, #f7fbff 34%, #eef8ef 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(rgba(255, 213, 137, 0.3) 1px, transparent 1px);
  background-position: 0 0, 20px 20px;
  background-size: 36px 36px, 52px 52px;
  pointer-events: none;
  opacity: 0.45;
}

.page-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-copy,
.hero-art,
.card,
.tabs {
  backdrop-filter: blur(14px);
}

.hero-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(49, 88, 188, 0.1);
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.96;
  color: var(--blue);
}

.hero p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 54ch;
}

.hero-art {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.hero-art--relationship {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 100%;
}

.hero-symbol {
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8eb4 0%, #ffb56d 100%);
  color: #fff;
  font-size: 3.5rem;
  box-shadow: 0 18px 35px rgba(255, 124, 134, 0.28);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  font-weight: 700;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab:hover,
.tab.is-active {
  background: linear-gradient(135deg, var(--blue) 0%, #5d8fff 100%);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: rise 0.35s ease;
}

.grid,
.stack {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h2,
.card h3 {
  margin-top: 0;
  font-family: "Outfit", sans-serif;
}

.intro-card p,
.detail-card p,
.result-text {
  color: var(--muted);
}

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

label,
fieldset {
  display: grid;
  gap: 8px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend,
label span {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

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

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

.segmented label,
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(72, 126, 184, 0.14);
}

.toggle-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  accent-color: var(--blue);
}

.primary-button {
  border: 0;
  border-radius: 18px;
  padding: 16px 22px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep) 0%, #5180ff 100%);
  box-shadow: 0 18px 30px rgba(46, 88, 196, 0.3);
  cursor: pointer;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-row > * {
  flex: 1 1 240px;
}

.secondary-button {
  border: 1px solid rgba(46, 88, 196, 0.2);
  border-radius: 18px;
  padding: 16px 22px;
  font: inherit;
  font-weight: 800;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.badge--green { background: var(--green); }
.badge--blue { background: var(--blue); }
.badge--orange { background: var(--orange); }
.badge--red { background: var(--red); }

.score {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue-deep);
}

.result-section ul,
.detail-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.detail-card section + section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(72, 126, 184, 0.14);
}

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

.legal-footer {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--muted);
}

.legal-footer p {
  margin: 0;
}

.legal-footer a {
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

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

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

  .tabs {
    display: grid;
    width: 100%;
    border-radius: 28px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 14px 40px;
  }

  .hero-copy,
  .hero-art,
  .card {
    padding: 18px;
    border-radius: 22px;
  }

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

  .result-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}
