:root {
  --blue-950: #0a2454;
  --blue-900: #0d367c;
  --blue-700: #1457d9;
  --blue-600: #1c66eb;
  --blue-100: #dce9ff;
  --blue-50: #f2f7ff;
  --ink: #14213d;
  --muted: #61708b;
  --line: #dce4f1;
  --surface: #ffffff;
  --canvas: #eaf0fa;
  --whatsapp: #25d366;
  --whatsapp-dark: #18ad50;
  --shadow: 0 18px 48px rgba(20, 47, 96, 0.13);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 87, 217, 0.13), transparent 34rem),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.app-view[hidden] {
  display: none !important;
}

.app-view.is-active .app-shell {
  animation: view-enter 220ms ease-out;
}

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

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

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 635px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(12, 50, 117, 0.12), rgba(9, 35, 85, 0.4)),
    linear-gradient(145deg, var(--blue-600), var(--blue-950));
}

.hero-orb,
.loading-orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.hero-orb-one {
  top: 90px;
  right: -115px;
  width: 285px;
  height: 285px;
}

.hero-orb-two {
  bottom: -90px;
  left: -100px;
  width: 240px;
  height: 240px;
}

.site-header,
.question-header,
.results-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 7px 17px rgba(9, 45, 114, 0.22);
  font-size: 20px;
  font-weight: 900;
}

.brand-light {
  color: #fff;
}

.brand-light .brand-mark {
  color: var(--blue-900);
  background: #fff;
}

.country-pill,
.match-pill,
.secure-badge,
.question-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.country-pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 70px 24px 46px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #a9cdfd;
}

.hero h1,
.question-content h1,
.loading-content h1,
.results-intro h1 {
  margin: 14px 0 0;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 420px;
  font-size: clamp(38px, 10vw, 52px);
  line-height: 1.03;
}

.hero-copy {
  max-width: 400px;
  margin: 22px 0 0;
  color: #d9e8ff;
  font-size: 16px;
  line-height: 1.7;
}

.cta-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 17px;
  border: 0;
  border-radius: 16px;
  font-weight: 850;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.cta-button-whatsapp {
  color: #fff;
  background: var(--whatsapp);
  box-shadow: 0 14px 28px rgba(16, 176, 79, 0.3);
}

.hero .cta-button {
  margin-top: 32px;
}

.cta-leading-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-icon {
  width: 27px;
  height: 27px;
  fill: currentColor;
  stroke: none;
}

.hero-note {
  margin: 14px 0 0;
  color: #c6dbfa;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.content-section {
  padding: 38px 22px;
}

.content-section h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.steps-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.step-card {
  display: flex;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 900;
}

.step-card h3,
.mini-task-card h3 {
  margin: 0;
  font-size: 15px;
}

.step-card p,
.mini-task-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.preview-section {
  background: var(--blue-50);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.secure-badge {
  flex: 0 0 auto;
  color: #147b41;
  background: #dff8e9;
}

.mini-task-grid {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.mini-task-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid #d9e5f7;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 72, 139, 0.06);
}

.task-emoji {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-100);
  font-size: 22px;
}

.site-footer {
  padding: 32px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer > p {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer .legal-note {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  font-size: 12px;
}

.site-footer .copyright {
  color: #8691a4;
  font-size: 11px;
}

.question-shell {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background:
    linear-gradient(180deg, var(--blue-50), #fff 34%),
    #fff;
}

.question-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.question-count {
  color: var(--blue-700);
  background: var(--blue-100);
}

.progress-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: #dfe8f5;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--blue-700), #3d8bff);
  transition: width 300ms ease;
}

.question-content {
  flex: 1;
  padding: 42px 22px 24px;
}

.question-content h1 {
  max-width: 420px;
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.12;
}

.question-help {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.answer-list {
  display: grid;
  gap: 12px;
  margin-top: 27px;
}

.answer-card {
  display: flex;
  width: 100%;
  min-height: 92px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 7px 19px rgba(25, 57, 111, 0.04);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.answer-card:hover {
  border-color: #98b9f4;
  box-shadow: 0 10px 25px rgba(20, 87, 217, 0.1);
  transform: translateY(-1px);
}

.answer-card.is-selected {
  border-color: var(--blue-700);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(20, 87, 217, 0.12);
}

.answer-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-100);
  font-size: 22px;
}

.answer-text {
  display: grid;
  flex: 1;
  gap: 5px;
}

.answer-text strong {
  font-size: 15px;
  line-height: 1.3;
}

.answer-text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.answer-arrow {
  color: var(--blue-700);
  font-size: 28px;
  line-height: 1;
}

.privacy-note {
  margin: 0;
  padding: 18px 22px 26px;
  color: #7a879b;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.loading-shell {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, var(--blue-600), var(--blue-950));
}

.loading-orb-one {
  top: -70px;
  right: -80px;
  width: 230px;
  height: 230px;
}

.loading-orb-two {
  bottom: -95px;
  left: -75px;
  width: 260px;
  height: 260px;
}

.loading-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 38px 28px;
  text-align: center;
}

.loading-brand {
  margin-bottom: 58px;
}

.matching-visual {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  margin: 0 auto 34px;
  place-items: center;
}

.matching-ring {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse-ring 1.6s ease-out infinite;
}

.matching-ring-one {
  inset: 0;
}

.matching-ring-two {
  inset: 17px;
  animation-delay: 350ms;
}

.matching-center {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-900);
  background: #fff;
  box-shadow: 0 15px 36px rgba(4, 24, 68, 0.28);
  font-size: 32px;
  font-weight: 900;
}

.loading-content h1 {
  font-size: 34px;
  line-height: 1.12;
}

.loading-content > p {
  margin: 14px auto 0;
  color: #cee0fa;
  font-size: 14px;
  line-height: 1.6;
}

.loading-progress {
  width: 100%;
  height: 7px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.loading-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--whatsapp);
  animation: load-progress 1.65s ease-in-out forwards;
}

.matching-checks {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.matching-checks li {
  padding: 7px 8px;
  border-radius: 9px;
  color: #d9e8ff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 750;
}

.matching-checks span {
  color: #6df29f;
}

.results-shell {
  background: var(--blue-50);
}

.results-header {
  color: #fff;
  background: var(--blue-900);
}

.match-pill {
  color: #d9ffea;
  background: rgba(37, 211, 102, 0.18);
}

.results-intro {
  padding: 38px 22px 56px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 255, 255, 0.1), transparent 190px),
    linear-gradient(145deg, var(--blue-900), var(--blue-700));
}

.results-intro h1 {
  max-width: 410px;
  font-size: 38px;
  line-height: 1.08;
}

.results-intro p {
  margin: 15px 0 0;
  color: #d7e7ff;
  font-size: 14px;
  line-height: 1.6;
}

.results-content {
  position: relative;
  z-index: 1;
  padding: 0 18px 34px;
  transform: translateY(-28px);
}

.task-results {
  display: grid;
  gap: 14px;
}

.task-card {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 13px 32px rgba(20, 52, 107, 0.11);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.task-card:hover {
  box-shadow: 0 17px 38px rgba(20, 52, 107, 0.16);
  transform: translateY(-2px);
}

.task-card-main {
  padding: 18px 18px 15px;
}

.task-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.task-category {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.task-match {
  flex: 0 0 auto;
  color: #198447;
  font-size: 11px;
  font-weight: 850;
}

.task-card h2 {
  margin: 13px 0 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.task-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.task-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 15px;
}

.task-stat {
  padding: 11px;
  border-radius: 12px;
  background: var(--blue-50);
}

.task-stat small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.task-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--blue-900);
  font-size: 14px;
}

.task-card-cta {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: #fff;
  background: var(--whatsapp);
  font-size: 13px;
  font-weight: 850;
}

.task-card-skeleton {
  height: 238px;
  border-color: #dbe5f5;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent),
    #e5edf8;
  background-size: 220% 100%;
  animation: skeleton 1.2s infinite linear;
}

.explore-all {
  margin-top: 19px;
}

.earnings-note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #d9e5f7;
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
}

.earnings-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.restart-link {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 11px;
  padding: 13px;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.result-footer {
  margin-top: -28px;
  background: #fff;
}

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

.age-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 22, 53, 0.62);
  backdrop-filter: blur(4px);
  animation: modal-fade-in 180ms ease-out;
}

.age-modal-panel {
  position: relative;
  width: min(100%, 410px);
  padding: 32px 24px 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 18, 46, 0.3);
  text-align: center;
  animation: modal-panel-in 200ms ease-out;
}

.age-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--blue-50);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.age-modal-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 11px 25px rgba(20, 87, 217, 0.24);
  font-size: 20px;
  font-weight: 900;
}

.age-modal-panel h2 {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.age-modal-panel > p:not(.age-modal-error) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.age-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 24px;
}

.age-confirm-button,
.age-decline-button {
  display: grid;
  min-height: 50px;
  padding: 12px 16px;
  place-items: center;
  border-radius: 14px;
  font-weight: 850;
  cursor: pointer;
}

.age-confirm-button {
  color: #fff;
  background: var(--whatsapp);
  box-shadow: 0 10px 22px rgba(16, 176, 79, 0.24);
}

.age-decline-button {
  border: 1px solid var(--line);
  color: var(--blue-900);
  background: #fff;
}

.age-modal-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 11px;
  color: #a52d2d;
  background: #fff0f0;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

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

:focus-visible {
  outline: 3px solid #7cacff;
  outline-offset: 3px;
}

@media (hover: hover) {
  .cta-button-whatsapp:hover {
    background: var(--whatsapp-dark);
    box-shadow: 0 17px 31px rgba(16, 176, 79, 0.34);
    transform: translateY(-2px);
  }

  .age-confirm-button:hover {
    background: var(--whatsapp-dark);
  }

  .age-modal-close:hover,
  .age-decline-button:hover {
    background: var(--blue-100);
  }
}

@media (max-width: 360px) {
  .hero-content,
  .content-section,
  .question-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-content {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .question-content h1,
  .results-intro h1 {
    font-size: 31px;
  }

  .answer-card {
    min-height: 86px;
    padding: 12px;
  }

  .answer-icon {
    width: 42px;
    height: 42px;
  }

  .matching-checks {
    flex-wrap: wrap;
  }
}

@media (min-width: 700px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 48px);
    border-radius: 28px;
  }

  .question-shell,
  .loading-shell {
    min-height: calc(100dvh - 48px);
  }
}

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

@keyframes pulse-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.78);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes load-progress {
  0% {
    width: 8%;
  }
  45% {
    width: 62%;
  }
  100% {
    width: 100%;
  }
}

@keyframes skeleton {
  to {
    background-position: -220% 0;
  }
}

@keyframes view-enter {
  from {
    opacity: 0.55;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
