:root {
  --blue-950: #0f3a63;
  --blue-900: #164d7a;
  --blue-700: #2c79b5;
  --blue-200: #c7dff3;
  --blue-100: #e8f2fb;
  --light: #f8fbff;
  --text: #13314f;
  --muted: #4a6782;
  --red: #df1219;
  --red-dark: #b70d13;
  --shadow: 0 18px 40px rgba(11, 43, 75, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    repeating-linear-gradient(145deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 2px,
      rgba(255, 255, 255, 0) 2px,
      rgba(255, 255, 255, 0) 18px),
    radial-gradient(circle at 15% 20%, rgba(69, 149, 223, 0.24) 0%, rgba(69, 149, 223, 0) 45%),
    radial-gradient(circle at 80% 70%, rgba(17, 93, 160, 0.2) 0%, rgba(17, 93, 160, 0) 48%),
    linear-gradient(180deg, #f3f9ff 0%, #d9ebfb 60%, #c4def6 100%);
  min-height: 100vh;
  line-height: 1.5;
}

main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

main::before,
main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

main::before {
  top: 11%;
  bottom: 30%;
  background: linear-gradient(173deg,
      rgba(138, 190, 235, 0.24) 0%,
      rgba(138, 190, 235, 0.24) 45%,
      rgba(238, 246, 255, 0.68) 45.3%,
      rgba(238, 246, 255, 0.68) 100%);
  clip-path: polygon(0 12%, 100% 0, 100% 82%, 0 96%);
}

main::after {
  top: 35%;
  left: 54%;
  right: -10%;
  bottom: -10%;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 70% 60%, rgba(83, 154, 218, 0.2) 0%, rgba(83, 154, 218, 0) 65%);
  transform: rotate(-8deg);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 0 rgba(12, 57, 99, 0.1);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(213, 173, 99, 0.15), rgba(213, 173, 99, 0.9), rgba(213, 173, 99, 0.15));
}

.topbar {
  background: var(--blue-950);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.topbar-inner {
  min-height: 88px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

.top-help {
  text-decoration: none;
  color: #fff;
  background: var(--red);
  padding: 0 1.2rem;
  font-weight: 700;
  border: 0;
  font-size: 0.96rem;
  cursor: pointer;
  height: auto;
  min-height: 100%;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand-box {
  display: flex;
  align-items: center;
  align-self: center;
  background: #ffffff;
  border: 2px solid rgba(17, 73, 119, 0.28);
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
  margin: 0.4rem 0;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-title {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  min-width: 0;
}

.brand-title-main {
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: "Georgia", "Times New Roman", serif;
  white-space: nowrap;
}

.brand-title-sub {
  color: #d6b36e;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.hero {
  padding: clamp(2.5rem, 6vw, 5.25rem) 0 3.5rem;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "EQUITY";
  position: absolute;
  left: min(38%, 520px);
  top: 3%;
  font-size: clamp(4.5rem, 12vw, 10rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.03em;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.campaign-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  margin: 0;
}

.campaign-caption::before {
  content: "";
  width: 4px;
  height: 1.7rem;
  background: var(--red);
}

.campaign-description {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
  font-size: 0.99rem;
  max-width: 62ch;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.75vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--blue-950);
}

.hero-subtitle {
  margin: 1.15rem 0 1.7rem;
  font-size: 1.03rem;
  color: var(--muted);
  max-width: 64ch;
}

.cta-btn,
.btn-primary {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%);
  transition: transform 0.16s ease, background-color 0.2s ease;
}

.hero-content .cta-btn {
  margin-top: 0.9rem;
}

.cta-btn:hover,
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.cta-btn:active,
.btn-primary:active {
  transform: translateY(0);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.visual-frame {
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
  border: 10px solid rgba(255, 255, 255, 0.68);
  background: #d7e9f8;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.placeholder-person {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.quiz-section,
.result-section,
.thank-you {
  padding: 1rem 0 4.3rem;
  position: relative;
  z-index: 1;
}

.quiz-card {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 247, 255, 0.94) 100%);
  border: 1px solid rgba(16, 67, 109, 0.2);
  border-top: 6px solid var(--red);
  box-shadow: var(--shadow);
}

.quiz-header {
  padding: 1.4rem 1.5rem 0.8rem;
}

.quiz-kicker,
.result-kicker {
  margin: 0;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.84rem;
  font-weight: 800;
}

.quiz-header h2 {
  margin: 0.3rem 0 0.35rem;
  color: var(--blue-950);
  font-size: clamp(1.45rem, 2.45vw, 2rem);
}

.quiz-progress {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.quiz-body {
  padding: 0.3rem 1.5rem 0;
}

.question-title {
  margin: 0.8rem 0 1rem;
  color: var(--blue-900);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

.options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.78rem;
}

.option-btn {
  width: 100%;
  border: 1px solid rgba(16, 67, 109, 0.24);
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 0.88rem 0.95rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.option-btn:hover {
  border-color: var(--blue-700);
  background: #f2f8ff;
}

.option-btn.selected {
  background: var(--blue-200);
  border-color: var(--blue-700);
  box-shadow: inset 0 0 0 2px rgba(44, 121, 181, 0.14);
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.3rem 1.5rem 1.5rem;
}

.btn-secondary {
  border: 1px solid rgba(16, 67, 109, 0.34);
  background: #fff;
  color: var(--blue-900);
  padding: 0.82rem 1.15rem;
  min-height: 46px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.25rem;
}

.result-copy,
.lead-form,
.thank-you-card {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 247, 255, 0.94) 100%);
  border: 1px solid rgba(16, 67, 109, 0.2);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.result-copy h2,
.thank-you-card h2 {
  margin: 0.45rem 0 0.65rem;
  color: var(--blue-950);
  line-height: 1.2;
}

.result-copy p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.result-back-btn {
  margin-top: 1.1rem;
}

.lead-form {
  display: grid;
  gap: 0.42rem;
}

.lead-form h3 {
  margin: 0 0 0.4rem;
  color: var(--blue-900);
}

.lead-form label {
  font-weight: 600;
  color: var(--blue-900);
  margin-top: 0.4rem;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 67, 109, 0.34);
  border-radius: 0;
  background: #fff;
  padding: 0.7rem;
  min-height: 46px;
  font: inherit;
  color: var(--text);
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(44, 121, 181, 0.35);
  outline-offset: 0;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.52rem;
}

.consent-row input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
}

.wide {
  width: 100%;
  margin-top: 0.72rem;
}

.form-error {
  margin: 0.4rem 0 0;
  color: var(--red-dark);
  font-weight: 600;
}

.thank-you-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {

  main::before {
    top: 6%;
    bottom: 37%;
    clip-path: polygon(0 14%, 100% 3%, 100% 86%, 0 97%);
  }

  .hero::before {
    left: 8%;
    top: 0;
    font-size: clamp(3.8rem, 14vw, 7rem);
  }

  .hero-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    justify-content: center;
  }

  .visual-frame {
    width: min(100%, 420px);
  }
}

@media (max-width: 820px) {

  .topbar-inner {
    min-height: 78px;
    gap: 0.7rem;
  }

  .brand-wrap {
    gap: 0.58rem;
  }

  .brand-logo {
    height: 46px;
  }

  .brand-title-main {
    font-size: 0.86rem;
  }

  .brand-title-sub {
    font-size: 0.71rem;
    letter-spacing: 0.12em;
  }

  .top-help {
    padding: 0 0.9rem;
    font-size: 0.88rem;
  }

  .hero {
    padding: 2.1rem 0 2.7rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }
}

@media (max-width: 680px) {

  main::before,
  main::after {
    opacity: 0.72;
  }

  .hero::before {
    top: 2%;
    left: 4%;
    font-size: clamp(3rem, 16vw, 5.1rem);
  }

  .topbar-inner {
    min-height: 74px;
    gap: 0.55rem;
  }

  .top-help {
    padding: 0 0.75rem;
    font-size: 0.82rem;
  }

  .hero {
    padding: 1.55rem 0 2.2rem;
  }

  .campaign-description,
  .hero-subtitle {
    font-size: 0.95rem;
  }

  .brand-logo {
    height: 40px;
  }

  .brand-wrap {
    gap: 0.5rem;
  }

  .brand-title-main {
    font-size: 0.78rem;
  }

  .brand-title-sub {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .visual-frame {
    border-width: 8px;
  }

  .hero-content .cta-btn {
    width: 100%;
    max-width: 360px;
  }

  .quiz-header,
  .quiz-body,
  .quiz-actions,
  .result-copy,
  .lead-form,
  .thank-you-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .quiz-header {
    padding-top: 1rem;
  }

  .quiz-actions {
    padding-bottom: 1rem;
  }

  .option-btn {
    font-size: 0.95rem;
    padding: 0.8rem 0.85rem;
  }

  .quiz-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 520px) {

  .hero::before {
    font-size: clamp(2.4rem, 15vw, 3.7rem);
    opacity: 0.8;
  }

  main::before {
    top: 4%;
    bottom: 43%;
  }

  .container {
    width: min(1180px, 94vw);
  }

  .topbar-inner {
    min-height: 70px;
  }

  .brand-box {
    padding: 0.32rem 0.42rem;
    margin: 0.3rem 0;
  }

  .brand-logo {
    height: 36px;
  }

  .brand-title-sub {
    display: none;
  }

  .brand-title-main {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .top-help {
    padding: 0 0.62rem;
    font-size: 0.76rem;
  }
}