:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0d1b2a;
  --muted: #475569;
  --line: #e2e8f0;
  --blue: #1d70f1;
  --blue-dark: #1558c0;
  --blue-soft: #eff6ff;
  --navy: #0f172a;
  --green: #0f766e;
  --grain-light: rgba(29, 112, 241, 0.12);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(29, 112, 241, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  font-family: Inter, Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.brand img {
  display: block;
  width: 158px;
  height: 48px;
  object-fit: contain;
}

.nav-links,
.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-link-new {
  position: relative;
}

.nav-link-new::after {
  position: absolute;
  top: -12px;
  right: -18px;
  border-radius: 999px;
  padding: 2px 5px;
  color: #ffffff;
  background: var(--green);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  content: "New";
}

.primary-button,
.secondary-button,
.text-button,
.menu-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  padding: 0 18px;
  color: #ffffff;
  background: var(--blue);
}

.primary-button:hover {
  background: var(--blue-dark);
  box-shadow: 0 12px 24px rgba(29, 112, 241, 0.22);
  transform: translateY(-1px);
}

.secondary-button {
  padding: 0 18px;
  color: var(--blue);
  background: #ffffff;
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: rgba(29, 112, 241, 0.34);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.text-button {
  min-height: 36px;
  padding: 0 6px;
  color: var(--muted);
  background: transparent;
}

.text-button:hover {
  color: var(--blue);
}

.large {
  min-height: 50px;
  padding-inline: 22px;
}

.menu-button {
  display: none;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.mobile-menu-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.language-picker {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.language-picker select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.7)),
    radial-gradient(circle at 80% 20%, rgba(29, 112, 241, 0.28), transparent 28%),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero::after,
.section::after,
.trust-band::after,
.footer::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    radial-gradient(circle, var(--grain-light) 0 0.8px, transparent 1px),
    radial-gradient(circle, rgba(15, 23, 42, 0.07) 0 0.7px, transparent 1px);
  background-position: 0 0, 9px 11px;
  background-size: 18px 18px, 25px 25px;
}

.hero > *,
.section > *,
.trust-band > *,
.footer > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 18px;
  border-radius: 8px;
  background: var(--blue-soft);
}

.hero-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 36px;
}

.hero-panel span {
  color: var(--muted);
  font-weight: 700;
}

.trust-band {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 34px;
  padding: 22px 20px;
  color: var(--muted);
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.trust-band strong {
  color: var(--ink);
}

.section {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 6vw, 72px);
  background: #ffffff;
}

.section-muted {
  --grain-light: rgba(29, 112, 241, 0.1);
  background: var(--bg);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading p,
.pricing-grid p,
.about-grid p,
.contact-section p {
  color: var(--muted);
  line-height: 1.7;
}

.steps,
.path-grid,
.value-list,
.faq-list {
  display: grid;
  gap: 16px;
}

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

.steps article,
.path-grid article,
.pricing-card,
.intern-callout,
.value-list article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.steps article:hover,
.path-grid article:hover,
.pricing-card:hover,
.intern-callout:hover,
.value-list article:hover,
.faq-list details:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 112, 241, 0.24);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.steps p,
.path-grid p,
.value-list p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.pricing-grid,
.about-grid,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.pricing-cards {
  display: grid;
  gap: 16px;
}

.pricing-card strong {
  display: block;
  margin: 8px 0 12px;
  color: var(--blue);
  font-size: 64px;
  line-height: 1;
}

.intern-pricing-card {
  background: #f8fbff;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

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

.intern-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 980px;
  margin: 24px auto 0;
  background: #f8fbff;
}

.intern-callout p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tests-promo-section {
  --grain-light: rgba(15, 118, 110, 0.08);
  background: #ffffff;
}

.tests-promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #f3fbf9);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.tests-promo-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tests-section {
  --grain-light: rgba(15, 118, 110, 0.1);
  background:
    radial-gradient(circle at 14% 12%, rgba(29, 112, 241, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tests-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto 18px;
}

.tests-panel,
.tests-builder,
.tests-industries article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.tests-panel {
  padding: 24px;
}

.tests-panel p,
.tests-selector p,
.tests-pack-summary,
.tests-diagnostic-header span,
.tests-score-copy,
.tests-industries p {
  color: var(--muted);
  line-height: 1.65;
}

.tests-badge {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green);
  background: rgba(15, 118, 110, 0.1);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tests-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tests-pill-row span,
.tests-question-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  color: #1558c0;
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
}

.tests-score-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.tests-score-ring {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 10px solid rgba(29, 112, 241, 0.16);
  border-top-color: var(--green);
  border-radius: 50%;
  color: var(--ink);
  text-align: center;
}

.tests-score-ring strong {
  font-size: 40px;
  line-height: 1;
}

.tests-score-ring span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tests-builder {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
}

.tests-selector {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.8fr);
  gap: 16px;
  align-items: end;
}

.tests-selector label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.tests-selector select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
}

.tests-pack-summary {
  grid-column: 1 / -1;
  border: 1px solid rgba(29, 112, 241, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.tests-selector .primary-button {
  width: fit-content;
}

.tests-diagnostic,
.tests-report {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.tests-diagnostic-header,
.tests-diagnostic-actions,
.tests-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.test-form {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.tests-question {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.tests-question h4 {
  margin: 10px 0 14px;
  font-size: 16px;
  line-height: 1.45;
}

.tests-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tests-options {
  display: grid;
  gap: 10px;
}

.tests-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: #f8fafc;
  cursor: pointer;
}

.tests-options input {
  width: auto;
  margin-top: 2px;
  accent-color: var(--blue);
}

.tests-report-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tests-score-card {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.tests-score-card strong {
  font-size: 48px;
  line-height: 1;
}

.tests-score-card span {
  font-weight: 900;
}

.tests-feedback-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.tests-industries {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
  margin: 18px auto 0;
}

.tests-industries article {
  padding: 16px;
}

.tests-industries span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 900;
}

.tests-industries small {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tests-industry-live {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
}

.tests-industry-live small {
  color: #ffffff;
  background: var(--green);
}

.tests-industry-locked {
  position: relative;
  opacity: 0.72;
  background: #f8fafc;
}

.tests-industry-locked small {
  color: #64748b;
  background: #e2e8f0;
}

.tests-industry-locked::after {
  position: absolute;
  top: 14px;
  right: 14px;
  content: "Locked";
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tests-page-hero {
  min-height: calc(92vh - 72px);
}

.tests-page-header .header-actions a {
  display: inline-flex;
  align-items: center;
}

.pre-interview-form {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.contact-form {
  display: grid;
  gap: 12px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(29, 112, 241, 0.72);
  box-shadow: 0 0 0 4px rgba(29, 112, 241, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

select {
  min-height: 48px;
  font-weight: 700;
}

.footer {
  position: relative;
  isolation: isolate;
  --grain-light: rgba(148, 163, 184, 0.18);
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(140px, auto) minmax(220px, auto) minmax(160px, auto);
  gap: 24px;
  align-items: start;
  padding: 40px clamp(20px, 6vw, 72px);
  color: #cbd5e1;
  background: var(--navy);
}

.footer-brand img {
  width: 158px;
  height: 48px;
  object-fit: contain;
  filter: brightness(1.05);
}

.footer p {
  max-width: 420px;
  margin: 10px 0 0;
  line-height: 1.6;
}

.footer-motto {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-column h3 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
}

.footer nav {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.footer-link-button {
  width: fit-content;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.footer a:hover {
  color: #ffffff;
}

.footer-link-button:hover {
  color: #ffffff;
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  position: relative;
  padding-left: 16px;
  color: #dbe4ee;
  font-size: 14px;
  font-weight: 700;
}

.footer-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #93c5fd;
  color: var(--blue-soft);
  content: "";
}

.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.market-note {
  margin: 0;
  color: #d6e7e5;
  font-size: 13px;
  line-height: 1.5;
}

.compliance-note {
  color: #9ce4d4;
  font-size: 13px;
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.social-links img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.form-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.form-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.dialog-shell {
  display: flex;
  justify-content: flex-end;
  padding: 14px 14px 0;
}

.dialog-close {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 800;
}

.application-form {
  padding: 0 24px 24px;
}

.dialog-heading {
  margin-bottom: 20px;
}

.dialog-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}

.form-progress span {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.form-progress span.active,
.form-progress span.complete {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #0f766e);
  border-color: transparent;
}

.step-hidden {
  display: none !important;
}

.input-prefix {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.input-prefix > span {
  padding: 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.input-prefix input {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.word-count,
.form-note,
.field-error {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.field-error {
  color: #b42318;
}

.word-count.valid {
  color: var(--green);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

.hidden {
  display: none;
}

.generated-brief-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.generated-brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.generated-brief-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.generated-brief-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(24px);
  opacity: 0;
  max-width: 360px;
  padding: 13px 15px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: var(--shadow);
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.legal-main {
  background: var(--bg);
}

.legal-hero {
  padding: clamp(56px, 7vw, 92px) clamp(20px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.82)),
    radial-gradient(circle at 80% 20%, rgba(29, 112, 241, 0.2), transparent 28%);
}

.legal-hero-content {
  max-width: 920px;
}

.legal-hero h1 {
  max-width: 920px;
  font-size: clamp(38px, 5vw, 64px);
}

.legal-hero p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) clamp(20px, 6vw, 72px);
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.legal-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.legal-card h3 {
  margin-top: 22px;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.cookie-consent {
  position: fixed;
  inset: auto 18px 18px;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent-card {
  width: min(940px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 8px;
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.cookie-consent-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.cookie-consent-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-consent-options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cookie-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--blue-soft);
}

.cookie-checkbox-row {
  cursor: pointer;
}

.cookie-checkbox-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
}

.cookie-always-on {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.cookie-accept-button {
  min-width: 156px;
  background: linear-gradient(135deg, var(--blue), #1558c0);
  box-shadow: 0 14px 28px rgba(29, 112, 241, 0.24);
}

.cookie-accept-button:hover {
  box-shadow: 0 18px 34px rgba(29, 112, 241, 0.3);
}

.cookie-reject-button {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.cookie-reject-button:hover {
  color: #475569;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.cookie-save-button {
  background: #ffffff;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline: 14px;
  }

  .brand img {
    width: min(148px, 38vw);
  }

  .mobile-menu-controls {
    min-width: 0;
    gap: 6px;
  }

  .language-picker {
    grid-template-columns: 1fr;
    gap: 3px;
    font-size: 10px;
  }

  .language-picker select {
    width: min(34vw, 138px);
    padding-inline: 8px;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .site-header.open .nav-links,
  .site-header.open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .hero,
  .pricing-grid,
  .about-grid,
  .contact-section,
  .tests-hero-grid,
  .tests-selector,
  .tests-report-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .steps,
  .path-grid,
  .tests-industries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intern-callout {
    grid-template-columns: 1fr;
  }

  .tests-promo-card {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding-inline: 20px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
  }

  .mobile-menu-controls {
    max-width: 52vw;
  }

  .language-picker > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .menu-button {
    min-height: 38px;
    max-width: 76px;
    padding-inline: 9px;
    font-size: 13px;
    white-space: nowrap;
  }

  .site-header.open .menu-button {
    font-size: 0;
  }

  .site-header.open .menu-button::after {
    content: "Close";
    font-size: 13px;
  }

  .hero-actions,
  .dialog-actions,
  .generated-brief-header {
    flex-direction: column;
    align-items: stretch;
  }

  .steps,
  .path-grid,
  .tests-industries,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .tests-score-preview,
  .tests-diagnostic-header,
  .tests-diagnostic-actions,
  .tests-report-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .tests-selector .primary-button,
  .tests-promo-card .primary-button,
  .tests-diagnostic-actions button,
  .tests-report-actions button {
    width: 100%;
  }

  .cookie-consent {
    inset: auto 10px 10px;
  }

  .cookie-row,
  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions button {
    width: 100%;
  }
}
