:root {
  color-scheme: light;
  --ink: #101525;
  --muted: #687083;
  --soft: #f7f3ea;
  --surface: rgba(255, 255, 255, 0.82);
  --solid: #ffffff;
  --border: rgba(16, 21, 37, 0.12);
  --balen: #2563eb;
  --balen-soft: #e8f0ff;
  --harka: #10a66a;
  --harka-soft: #e8fff3;
  --sun: #ffd449;
  --rose: #f05274;
  --violet: #7048e8;
  --shadow: 0 22px 80px rgba(16, 21, 37, 0.15);
  --shadow-soft: 0 14px 40px rgba(16, 21, 37, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 212, 73, 0.3) 0 18%, transparent 18% 100%),
    linear-gradient(245deg, rgba(37, 99, 235, 0.11) 0 16%, transparent 16% 100%),
    linear-gradient(135deg, #fff9ea 0%, #f4fbff 47%, #fff1f5 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(16, 21, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 37, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

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

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.9rem 0;
  backdrop-filter: blur(18px);
}

.brand,
.header-nav,
.site-footer {
  font-size: 0.92rem;
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(16, 21, 37, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--sun), #fff1ad);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
}

.header-nav {
  display: flex;
  gap: 0.55rem;
  color: var(--muted);
}

.header-nav a {
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
}

.header-nav a:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

main {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.88fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  min-height: calc(100svh - 7rem);
  padding: clamp(1.5rem, 4vw, 3.25rem) 0 4rem;
}

.eyebrow,
.question-kicker,
.screenshot-hint {
  margin: 0 0 0.75rem;
  color: var(--rose);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.25rem, 8.6vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.subtitle {
  max-width: 610px;
  margin: 1.25rem 0 1.15rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.62;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.55rem;
}

.hero-meta span,
.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #364052;
  font-size: 0.86rem;
  font-weight: 850;
}

.primary-button,
.secondary-button,
.share-button,
.choice-button {
  min-height: 3.25rem;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button {
  position: relative;
  min-width: 11rem;
  padding: 0 1.45rem;
  background: linear-gradient(135deg, var(--ink), #30384f);
  color: #fff;
  box-shadow: 0 16px 34px rgba(16, 21, 37, 0.24);
}

.primary-button::after {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-left: 0.75rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-1px);
}

.primary-button:hover,
.secondary-button:hover,
.share-button:hover,
.choice-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16, 21, 37, 0.18);
  filter: saturate(1.04);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.1rem);
  align-items: end;
  min-height: 360px;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.54)),
    repeating-linear-gradient(-28deg, rgba(255, 212, 73, 0.32) 0 14px, rgba(37, 99, 235, 0.08) 14px 28px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  position: absolute;
  inset: auto 1.15rem 1.15rem 1.15rem;
  height: 4.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  content: "";
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(16, 21, 37, 0.16));
}

.hero-visual img:first-child {
  transform: translateY(-0.6rem) rotate(-3deg);
}

.hero-visual img:last-child {
  transform: translateY(0.65rem) rotate(3deg);
}

.versus-badge {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 4.9rem;
  height: 4.9rem;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--violet));
  color: #fff;
  box-shadow: 0 16px 32px rgba(240, 82, 116, 0.28);
  font-size: 1.35rem;
  font-weight: 1000;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.quiz-shell,
.analysis,
.result {
  max-width: 820px;
  margin: 1.5rem auto 3rem;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.progress-track {
  height: 0.72rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 2px rgba(16, 21, 37, 0.08);
}

.progress-fill {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--balen), var(--harka), var(--sun));
  transition: width 280ms ease;
}

.question-panel,
.result-card,
.analysis {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.question-panel {
  margin-top: 1.1rem;
  padding: clamp(1.15rem, 4vw, 2.15rem);
}

.question-panel h2,
.analysis h2,
.result-card h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.choice-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.55rem;
}

.choice-button {
  position: relative;
  width: 100%;
  padding: 1.05rem 3.25rem 1.05rem 1.1rem;
  border: 1px solid rgba(16, 21, 37, 0.1);
  background: var(--solid);
  box-shadow: var(--shadow-soft);
  text-align: left;
  line-height: 1.38;
}

.choice-button::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  content: "";
  transform: translateY(-50%);
}

.choice-button::before {
  position: absolute;
  top: 50%;
  right: 1.75rem;
  z-index: 1;
  width: 0.46rem;
  height: 0.46rem;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.choice-button[data-person="balen"] {
  background: linear-gradient(135deg, #fff, var(--balen-soft));
}

.choice-button[data-person="balen"]::after {
  background: var(--balen);
}

.choice-button[data-person="harka"] {
  background: linear-gradient(135deg, #fff, var(--harka-soft));
}

.choice-button[data-person="harka"]::after {
  background: var(--harka);
}

.analysis {
  display: grid;
  min-height: 390px;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.analysis p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 850;
}

.loader {
  width: 5rem;
  height: 5rem;
  border: 0.55rem solid rgba(37, 99, 235, 0.14);
  border-top-color: var(--rose);
  border-right-color: var(--harka);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.result-card {
  position: relative;
  padding: clamp(1.2rem, 4vw, 2.35rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 212, 73, 0.3), transparent 38%),
    linear-gradient(230deg, rgba(16, 166, 106, 0.13), transparent 36%),
    #fff;
}

.result-card::before {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(16, 21, 37, 0.045) 0 1px, transparent 1px 34px);
  content: "";
  pointer-events: none;
}

.result-card > * {
  position: relative;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.result-heading .eyebrow {
  margin-bottom: 0;
}

.result-card > p:not(.eyebrow):not(.screenshot-hint),
.result-card #resultDescription {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.58;
}

.score-layout {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(160px, 1.5fr) minmax(112px, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 1.7rem 0 1.2rem;
}

.person-score {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 1rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-weight: 900;
}

.person-score img {
  width: min(118px, 24vw);
  height: auto;
}

.person-score span {
  font-size: clamp(1.8rem, 7vw, 2.75rem);
  line-height: 0.95;
}

.meter {
  display: flex;
  min-height: 2.45rem;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 999px;
  background: #f5f5f5;
  box-shadow: inset 0 0 0 1px rgba(16, 21, 37, 0.12), var(--shadow-soft);
}

.meter-balen {
  width: 50%;
  background: linear-gradient(90deg, #1d4ed8, var(--balen));
}

.meter-harka {
  width: 50%;
  background: linear-gradient(90deg, var(--harka), #28c783);
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.share-button,
.secondary-button {
  display: inline-grid;
  place-items: center;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.facebook {
  color: #174ea6;
}

.whatsapp {
  color: #087a46;
}

.copy {
  color: #b4234c;
}

.native {
  color: #4f46e5;
}

.secondary-button {
  color: var(--ink);
}

.disclaimer {
  max-width: 820px;
  margin: 2rem auto;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer {
  flex-wrap: wrap;
  padding: 1.1rem 0 1.35rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.legal-page {
  max-width: 780px;
  padding: 2rem 0 4rem;
}

.legal-page h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
}

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

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

.hidden {
  display: none;
}

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.1rem;
  }

  .hero-visual {
    order: -1;
    min-height: 250px;
  }

  .share-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 1.25rem, 1140px);
  }

  main {
    width: min(100% - 1.25rem, 1140px);
  }

  .header-nav {
    gap: 0.25rem;
  }

  .header-nav a {
    padding: 0.5rem 0.58rem;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    padding-bottom: 2.25rem;
  }

  .hero-visual {
    min-height: 218px;
    padding: 0.85rem;
  }

  .versus-badge {
    width: 4.1rem;
    height: 4.1rem;
    font-size: 1.08rem;
  }

  .hero-meta span {
    min-height: 1.95rem;
    font-size: 0.8rem;
  }

  .result-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .score-layout {
    grid-template-columns: 1fr 1fr;
  }

  .meter {
    grid-column: 1 / -1;
    order: -1;
  }

  .share-actions {
    grid-template-columns: 1fr;
  }
}
