@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../assets/fonts/IBMPlexSansCondensed-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../assets/fonts/IBMPlexSansCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../assets/fonts/IBMPlexSansCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nasalization";
  src: url("../assets/fonts/Nasalization.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #eef4fa;
  --bg-secondary: #e4edf6;
  --panel: #f7fafd;
  --border: #c9d9e8;
  --text: #10253e;
  --muted: #4e6783;
  --accent: #4d8fd8;
  --accent-strong: #266db9;
  --banner-edge: #061426;
  --focus: #1f67b2;
  --shadow: 0 16px 44px rgba(20, 56, 92, 0.1);
  --max-width: 75rem;
  --tech-control-size: 0.82rem;
  --space-label-title: 0.875rem;
  --space-title-copy: 1.375rem;
  --panel-padding: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #08182b;
    --bg-secondary: #0d223a;
    --panel: #112b47;
    --border: #28496a;
    --text: #e8f1fb;
    --muted: #afc4da;
    --accent: #79b9ff;
    --accent-strong: #a4cfff;
    --banner-edge: #061426;
    --focus: #9dccff;
    --shadow: 0 18px 50px rgba(0, 7, 18, 0.28);
  }
}

:root[data-theme="dark"] {
  --bg: #08182b;
  --bg-secondary: #0d223a;
  --panel: #112b47;
  --border: #28496a;
  --text: #e8f1fb;
  --muted: #afc4da;
  --accent: #79b9ff;
  --accent-strong: #a4cfff;
  --banner-edge: #061426;
  --focus: #9dccff;
  --shadow: 0 18px 50px rgba(0, 7, 18, 0.28);
}

:root[data-theme="light"] {
  --bg: #eef4fa;
  --bg-secondary: #e4edf6;
  --panel: #f7fafd;
  --border: #c9d9e8;
  --text: #10253e;
  --muted: #4e6783;
  --accent: #4d8fd8;
  --accent-strong: #266db9;
  --banner-edge: #061426;
  --focus: #1f67b2;
  --shadow: 0 16px 44px rgba(20, 56, 92, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 200;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0;
  transition: background-color 180ms ease, color 180ms ease;
}

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

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-weight: 500;
}

.skip-link:focus {
  transform: translateY(0);
}

.banner-region {
  background: var(--bg);
}

.banner-frame {
  position: relative;
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  background: var(--banner-edge);
}

.banner-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1794 / 877;
  object-fit: contain;
}

.banner-play-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 7rem;
  max-width: calc(100% - 1.5rem);
  border-radius: 4px;
  opacity: 0.88;
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.banner-play-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.banner-play-badge:hover {
  filter: brightness(1.08);
  opacity: 1;
  transform: scale(1.02);
}

.closed-test-section {
  scroll-margin-top: 1rem;
}

@media (max-width: 21.25rem) {
  .banner-play-badge {
    right: 0.5rem;
    bottom: 0.5rem;
    width: 6.875rem;
  }
}

.banner-transition {
  position: relative;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 10rem;
  margin-top: -1px;
  margin-inline: auto;
  padding: 2.5rem 0 1.25rem;
  background: linear-gradient(180deg, var(--banner-edge) 0%, color-mix(in srgb, var(--banner-edge) 66%, var(--bg)) 38%, var(--bg) 100%);
}

.site-nav {
  width: 100%;
  margin-inline: auto;
}

.nav-menu {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
  box-shadow: var(--shadow);
}

.nav-menu summary {
  min-height: 3rem;
  padding: 0.76rem 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-family: "Nasalization", sans-serif;
  font-size: var(--tech-control-size);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "+";
  margin-left: 0.6rem;
  color: var(--accent);
}

.nav-menu[open] summary::after {
  content: "−";
}

.nav-content {
  display: block;
}

.nav-links,
.nav-tools {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
}

.nav-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.nav-links a,
.language-switch,
.theme-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-family: "Nasalization", sans-serif;
  font-size: var(--tech-control-size);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.language-switch:hover,
.theme-toggle:hover {
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--text);
}

.nav-tools {
  border-top: 1px solid var(--border);
}

.language-switch,
.theme-toggle {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
}

.theme-toggle {
  padding-inline: 0.75rem;
}

main {
  display: block;
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.content-wrap {
  width: 100%;
  margin-inline: auto;
}

main > .content-wrap {
  padding-inline: var(--panel-padding);
}

.home-intro {
  padding-top: 2.25rem;
  padding-bottom: 4rem;
  text-align: center;
}

.tech-section-title {
  color: var(--accent-strong);
  font-family: "Nasalization", sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.tech-section-title + h1,
.tech-section-title + h2,
.tech-section-title + h3 {
  margin-top: 0;
  margin-bottom: var(--space-title-copy);
}

p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 200;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--space-title-copy);
  font-size: clamp(1.9rem, 3.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
}

.home-intro h1 {
  max-width: 52rem;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.16;
}

.intro-copy {
  max-width: 53.125rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
}

.intro-copy--wide {
  max-width: 58rem;
}

.intro-copy + .intro-copy {
  margin-top: 1rem;
}

.section-band {
  padding: 4.5rem var(--panel-padding);
}

.section-band--secondary {
  background: var(--bg-secondary);
}

.section-heading {
  max-width: 53.125rem;
  margin-bottom: 2.75rem;
}

.section-heading > p:not(.tech-section-title) {
  margin: 0;
  color: var(--muted);
}

.axis-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.axis-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}

.axis-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.axis-number {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--accent-strong);
  font-family: "Nasalization", sans-serif;
  font-size: var(--tech-control-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.axis-card p {
  margin: 0;
  color: var(--muted);
}

.statement {
  max-width: 53.125rem;
  margin-inline: auto;
  text-align: center;
}

.statement > p:not(.tech-section-title) {
  margin: 0;
  color: var(--muted);
}

.statement > p:not(.tech-section-title) + p:not(.tech-section-title) {
  margin-top: 1rem;
}

.closed-test-content {
  max-width: 53.125rem;
  margin-inline: auto;
}

.closed-test-content > p:not(.tech-section-title) {
  margin: 0 0 1rem;
  color: var(--muted);
}

.closed-test-content > p:last-of-type {
  margin-bottom: 0;
}

.copy-link-button {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  vertical-align: middle;
  cursor: pointer;
  opacity: 0.72;
}

.copy-link-button:hover,
.copy-link-button:focus-visible,
.copy-link-button.is-copied {
  color: var(--accent-strong);
  opacity: 1;
}

.copy-link-icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-link-icon--check {
  display: none;
}

.copy-link-button.is-copied .copy-link-icon--copy {
  display: none;
}

.copy-link-button.is-copied .copy-link-icon--check {
  display: block;
}

.copy-link-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.google-play-badge {
  display: block;
  width: 10rem;
  max-width: 100%;
  flex: 0 0 auto;
  cursor: default;
}

.google-play-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.closed-test-cta {
  min-height: 3.8rem;
  max-width: 100%;
  text-align: center;
  text-transform: uppercase;
}

.page-header {
  padding: 1.75rem 0 2.75rem;
}

.page-header h1 {
  margin-left: 0;
  margin-right: 0;
  max-width: 28ch;
  font-size: clamp(1.9rem, 3.5vw, 3.25rem);
}

.page-header > p:not(.tech-section-title) {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.prose {
  max-width: 49rem;
  padding-bottom: 5rem;
}

.prose section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 2rem;
}

.prose h2 {
  margin-bottom: 0.75rem;
  font-size: 1.55rem;
}

.prose p,
.prose ul {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.form-shell {
  width: 100%;
  max-width: 53.125rem;
  margin: 0 auto 4rem;
  padding: 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  gap: 1.75rem;
}

.field-group {
  min-width: 0;
}

.field-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.field-help {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
}

.field-group input,
.field-group select {
  height: 3.25rem;
}

.field-group textarea {
  min-height: 13.75rem;
  resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--accent);
}

.field-error {
  min-height: 1.35rem;
  margin: 0.25rem 0 0;
  color: #b73445;
  font-size: 0.92rem;
}

.field-error:empty {
  min-height: 0;
  margin: 0;
}

:root[data-theme="dark"] .field-error {
  color: #ff9aa6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .field-error {
    color: #ff9aa6;
  }
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.submit-button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #061426;
  font-family: "Nasalization", sans-serif;
  font-size: var(--tech-control-size);
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--accent-strong);
}

.form-status {
  margin: 0;
  color: var(--muted);
}

.form-status:empty {
  display: none;
}

.form-note {
  max-width: 53.125rem;
  margin: 1.25rem auto 4rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding: 2rem max(1rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  font-family: "Nasalization", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
}

.footer-inner {
  width: 100%;
  margin-inline: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.125rem 1.25rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  color: var(--muted);
  text-transform: uppercase;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: inherit;
}

@media (max-width: 37.99rem) {
  .site-footer {
    padding-right: max(0.5rem, env(safe-area-inset-right));
    padding-left: max(0.5rem, env(safe-area-inset-left));
  }

  .cta-group {
    flex-direction: column;
    gap: 0.875rem;
  }

  .closed-test-cta {
    width: 100%;
  }

  .copy-link-button {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 30rem) {
  .tech-section-title {
    font-size: 1.12rem;
    line-height: 1.3;
  }
}

@media (min-width: 38rem) {
  .banner-play-badge {
    right: 1.125rem;
    bottom: 1rem;
    width: 9rem;
  }

  .axis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-shell {
    padding: 1.625rem;
  }

  .form-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 54rem) {
  .banner-transition {
    min-height: 12rem;
    padding-top: 3.5rem;
  }

  .nav-menu {
    display: block;
  }

  .nav-menu summary {
    display: none;
  }

  .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem;
  }

  .nav-links {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
  }

  .nav-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0;
    border-top: 0;
  }

  .language-switch,
  .theme-toggle {
    width: 5.5rem;
    min-width: 5.5rem;
  }

  .axis-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 56.25rem) {
  .banner-play-badge {
    right: 1.375rem;
    bottom: 1.25rem;
    width: 10rem;
  }

  .tech-section-title {
    font-size: 1.45rem;
  }
}

@media (min-width: 65.625rem) {
  .form-shell {
    padding: 2rem;
  }

  .field-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
