:root {
  --ink: #101820;
  --ink-soft: #31414c;
  --paper: #f4f7f2;
  --surface: #ffffff;
  --line: #d9e1dc;
  --teal: #007f7a;
  --teal-dark: #005f5b;
  --coral: #e9654f;
  --saffron: #d99b18;
  --green: #3f9457;
  --blue: #316f9f;
  --violet: #6656a7;
  --shadow: 0 22px 60px rgba(16, 24, 32, 0.15);
  --shadow-soft: 0 10px 30px rgba(16, 24, 32, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 44px);
  background: rgba(244, 247, 242, 0.9);
  border-bottom: 1px solid rgba(217, 225, 220, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: #fff;
  background: var(--ink);
  border: 2px solid #9be0d7;
  border-radius: 8px;
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 760;
}

.main-nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #e6eee8;
  outline: none;
}

.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 880;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.header-action {
  color: #fff;
  background: var(--teal);
  box-shadow: var(--shadow-soft);
}

.header-action:hover,
.btn:hover {
  transform: translateY(-1px);
}

.header-action svg,
.btn svg,
.icon-button svg,
.check-list svg,
.profile-icon svg,
.mini-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  padding: 132px 0 68px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 13, 18, 0.94) 0%, rgba(6, 13, 18, 0.8) 42%, rgba(6, 13, 18, 0.38) 77%, rgba(6, 13, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 13, 18, 0.86) 0%, rgba(6, 13, 18, 0.08) 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.micro-label {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 890;
}

.hero .eyebrow {
  color: #a5f2e5;
}

.hero h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: 5rem;
  line-height: 0.94;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ca4f3d;
  outline: none;
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(16, 24, 32, 0.12);
}

.hero .btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #edf5ef;
  outline: none;
}

.hero .btn-secondary:hover,
.hero .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.btn-quiet {
  color: var(--ink);
  background: #e9f0ea;
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
  background: #dfe9e1;
  outline: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  max-width: 540px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 930;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.intro-band {
  padding: 28px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

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

.intro-grid article {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "icon title"
    "icon copy";
  gap: 2px 12px;
  padding: 18px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-icon {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
}

.mini-icon.coral {
  background: var(--coral);
}

.mini-icon.saffron {
  background: var(--saffron);
}

.intro-grid h2 {
  grid-area: title;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.2;
}

.intro-grid p {
  grid-area: copy;
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.test-section {
  padding: 82px 0;
  background:
    linear-gradient(180deg, #eef6ef 0%, #f4f7f2 100%);
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 34px;
  align-items: start;
}

.test-copy {
  position: sticky;
  top: 96px;
  padding: 18px 0;
}

.test-copy h2,
.section-heading h2,
.routes-layout h2,
.method-grid h2,
.plan-layout h2,
.faq-layout h2,
.legal-grid h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 2.42rem;
  line-height: 1.06;
  font-weight: 930;
}

.test-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 760;
}

.check-list svg {
  flex: 0 0 18px;
  margin-top: 4px;
  color: var(--green);
}

.test-card {
  min-height: 540px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.test-topline strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 1.25rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: #eef4ef;
  border-radius: 8px;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: #dce8de;
  outline: none;
}

.progress-track {
  height: 10px;
  margin: 18px 0 30px;
  overflow: hidden;
  background: #e6ede8;
  border-radius: 8px;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--saffron), var(--coral), var(--blue));
  transition: width 220ms ease;
}

.question-area {
  min-height: 358px;
}

.question-text {
  min-height: 104px;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 1.58rem;
  line-height: 1.2;
  font-weight: 860;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.answer-grid button {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--ink);
  text-align: left;
  background: #f7faf7;
  border: 1px solid #dce6df;
  border-radius: 8px;
  font-weight: 760;
}

.answer-grid button:hover,
.answer-grid button:focus-visible {
  background: #edf6ef;
  border-color: #a8d0bd;
  outline: none;
}

.answer-grid button.is-selected {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 8px 20px rgba(0, 127, 122, 0.2);
}

.test-navigation {
  margin-top: 26px;
}

.test-navigation .btn {
  min-width: 146px;
}

.test-navigation .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.results-section {
  padding: 76px 0 88px;
  color: #fff;
  background: var(--ink);
}

.hidden {
  display: none;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: stretch;
}

.result-main,
.result-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.result-main .section-kicker {
  color: #a5f2e5;
}

.result-main h2 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
}

.result-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.score-list,
.trait-list,
.detail-grid {
  display: grid;
  gap: 14px;
}

.trait-list {
  margin-top: 24px;
}

.score-row,
.trait-row {
  display: grid;
  gap: 8px;
}

.score-row header,
.trait-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 810;
}

.bar {
  height: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 8px;
}

.bar-teal span {
  background: var(--teal);
}

.bar-coral span {
  background: var(--coral);
}

.bar-green span {
  background: var(--green);
}

.bar-saffron span {
  background: var(--saffron);
}

.bar-blue span {
  background: var(--blue);
}

.bar-ink span {
  background: #d7e3e5;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.detail-card {
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.detail-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.detail-card ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  margin: 0;
}

.profiles-section,
.plan-section {
  padding: 82px 0;
  background: #fff;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading > p,
.routes-layout > div > p,
.method-grid > div > p,
.faq-layout > div > p,
.legal-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

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

.profile-card {
  padding: 22px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.accent-coral {
  border-top-color: var(--coral);
}

.accent-green {
  border-top-color: var(--green);
}

.accent-saffron {
  border-top-color: var(--saffron);
}

.accent-blue {
  border-top-color: var(--blue);
}

.accent-ink {
  border-top-color: var(--ink);
}

.profile-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.profile-card h3 {
  margin: 18px 0 10px;
  font-size: 1.44rem;
  line-height: 1.1;
}

.profile-card h4 {
  margin: 18px 0 6px;
  color: var(--teal-dark);
  font-size: 0.95rem;
}

.profile-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.routes-section {
  padding: 86px 0;
  background: #eef5f6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.routes-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 38px;
  align-items: start;
}

.route-grid,
.method-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.route-grid article,
.method-steps article,
.faq-list details {
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 225, 220, 0.98);
  border-radius: 8px;
}

.route-grid span,
.method-steps span {
  display: block;
  color: var(--coral);
  font-weight: 930;
}

.route-grid h3,
.method-steps h3 {
  margin: 8px 0 8px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.route-grid p,
.method-steps p {
  margin: 0;
  color: var(--ink-soft);
}

.method-section {
  padding: 86px 0;
  background:
    linear-gradient(90deg, #edf6f2 0%, #fff7e3 52%, #fcecea 100%);
  border-bottom: 1px solid var(--line);
}

.method-grid,
.plan-layout,
.faq-layout,
.legal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 38px;
  align-items: start;
}

.plan-list {
  display: grid;
  gap: 10px;
}

.plan-list article {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-list strong {
  color: var(--teal-dark);
}

.plan-list span {
  color: var(--ink-soft);
}

.faq-section {
  padding: 82px 0;
  background: #edf5f0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: #fff;
}

.faq-list summary {
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.legal-section {
  padding: 58px 0;
  color: #fff;
  background: #12272e;
}

.legal-grid h2,
.legal-grid h3 {
  margin: 0 0 12px;
  color: #fff;
}

.legal-grid h3 {
  font-size: 1.15rem;
}

.legal-grid p {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  padding: 28px 0;
  background: #081115;
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-mark {
  border-color: var(--teal);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.footer-link {
  font-weight: 850;
  color: #a5f2e5;
}

@media (max-width: 1060px) {
  .profile-grid,
  .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
    min-height: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 4px;
  }

  .hero {
    min-height: 78svh;
    padding: 92px 0 56px;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .test-layout,
  .result-layout,
  .section-heading,
  .routes-layout,
  .method-grid,
  .plan-layout,
  .faq-layout,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .test-copy {
    position: static;
    padding: 0;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    font-size: 0.95rem;
  }

  .header-action span {
    display: none;
  }

  .main-nav a {
    padding-inline: 10px;
  }

  .hero {
    min-height: 76svh;
    padding: 66px 0 42px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(6, 13, 18, 0.96) 0%, rgba(6, 13, 18, 0.78) 68%, rgba(6, 13, 18, 0.52) 100%),
      linear-gradient(0deg, rgba(6, 13, 18, 0.9) 0%, rgba(6, 13, 18, 0.18) 55%);
  }

  .hero h1 {
    font-size: 2.34rem;
    line-height: 0.98;
  }

  .hero-actions,
  .result-actions,
  .test-navigation {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .header-action {
    width: 100%;
  }

  .header-action {
    width: 44px;
    padding-inline: 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 240px;
  }

  .intro-grid,
  .profile-grid,
  .route-grid,
  .method-steps {
    grid-template-columns: 1fr;
  }

  .intro-grid article {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "title"
      "copy";
  }

  .test-copy h2,
  .section-heading h2,
  .routes-layout h2,
  .method-grid h2,
  .plan-layout h2,
  .faq-layout h2,
  .legal-grid h2 {
    font-size: 2rem;
  }

  .test-section,
  .profiles-section,
  .routes-section,
  .method-section,
  .plan-section,
  .faq-section {
    padding: 58px 0;
  }

  .test-card {
    min-height: 570px;
    padding: 18px;
  }

  .question-text {
    min-height: 132px;
    font-size: 1.3rem;
  }

  .answer-grid button {
    min-height: 56px;
  }

  .plan-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
