:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #111827;
  --muted: #5f6b7a;
  --subtle: #8b95a5;
  --navy: #111827;
  --navy-2: #1f2937;
  --orange: #e06b1a;
  --orange-dark: #c25510;
  --green: #16a34a;
  --teal: #0f766e;
  --blue: #2563eb;
  --red: #dc2626;
  --purple: #7c3aed;
  --border: #dce3ee;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.09);
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1160px;

  /* ── Etalon design tokens (readyou-etalon) — additive, old tokens above
     are kept as-is so existing rules keep working unchanged. ── */

  /* Deep navy scale — authority/text, richer than --navy */
  --navy-950: #08102a;
  --navy-800: #0f1d3e;
  --navy-600: #172344;
  --navy-400: #253660;
  --navy-200: #3d4f7c;

  /* Teal — secondary accent (new, distinct from existing --teal) */
  --teal-500: #0891b2;
  --teal-400: #22c4db;
  --teal-dim: rgba(8, 145, 178, 0.10);

  /* Orange CTA glow/dim (--orange/--orange-dark already match etalon) */
  --orange-400: #f07c2e;
  --orange-dim: rgba(224, 107, 26, 0.10);
  --orange-glow: rgba(224, 107, 26, 0.22);

  /* Surfaces — --surface/--surface-2 already exist and are close enough
     to the etalon's surface-1/2, so only the missing tier is added. */
  --surface-1: var(--surface);
  --surface-3: #e5e9f5;

  /* Etalon text tiers, used by the new light header/footer */
  --text-1: #08102a;
  --text-2: #4a5578;
  --text-3: #8b95b8;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-price: 'Roboto', system-ui, sans-serif;

  /* Etalon radius scale, up-sized. Named by literal px, not "sm/md/lg",
     because --radius (8px) and --radius-lg (14px) already exist with
     different meaning/usage — this avoids silently changing them. */
  --radius-20: 20px;
  --radius-28: 28px;
  --radius-40: 40px;

  /* DISC standard colors (industry-standard, exact etalon values) — used
     both for the DISC test itself and as the per-test accent elsewhere. */
  --disc-d: #dc2626;
  --disc-i: #d97706;
  --disc-s: #16a34a;
  --disc-c: #2563eb;
  --disc-d-dim: rgba(220, 38, 38, 0.08);
  --disc-i-dim: rgba(217, 119, 6, 0.08);
  --disc-s-dim: rgba(22, 163, 74, 0.08);
  --disc-c-dim: rgba(37, 99, 235, 0.08);
}

/* Houdini custom property for the running-border button/badge accents. */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Fallback when Houdini @property is unavailable: the conic-gradient can't
   animate, so drop the moving-light layers and give the button a plain
   static ring instead of a borderless flat chip. */
@supports not (background: conic-gradient(from var(--border-angle), red, blue)) {
  .btn-ghost,
  .btn-card {
    border: 1px solid var(--border);
  }

  .btn-ghost::before,
  .btn-ghost::after,
  .btn-card::before,
  .btn-card::after {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Etalon dot-grid texture — fixed, behind all content, on every page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(11, 23, 49, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 251, 0.92);
  color: var(--navy-950);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-950);
  flex: 0 0 auto;
  font-weight: 800;
  min-width: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 190px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px dashed var(--orange);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  left: 7px;
  top: 7px;
}

.brand-name span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-950);
}

.header-cta,
.btn,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.header-cta,
.btn-primary,
.card-action {
  background: var(--orange);
  color: #fff;
}

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

.btn-primary:hover,
.card-action:hover {
  background: var(--orange-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--orange-glow);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}

/* Etalon "ghost" / running-border button — new, not applied to any
   template yet in this stage (that's a later per-page decision). */
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: none;
  outline: none;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  z-index: 0;
  overflow: hidden;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(from var(--border-angle), transparent 0deg, var(--orange) 60deg, transparent 120deg);
  animation: btn-ghost-spin 2.8s linear infinite;
}

.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--surface-2);
}

@keyframes btn-ghost-spin {
  to { --border-angle: 360deg; }
}

.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--orange);
  transform: translateY(-2px);
}

.btn-ghost:hover::after {
  background: var(--surface-3);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-actions [hidden] {
  display: none !important;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 750;
}

.auth-link:hover {
  color: var(--navy-950);
}

button.header-cta {
  font: inherit;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--navy-950);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.mobile-menu-toggle span[aria-hidden="true"] {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu-toggle span[aria-hidden="true"]::before,
.mobile-menu-toggle span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu-toggle span[aria-hidden="true"]::before {
  top: -5px;
}

.mobile-menu-toggle span[aria-hidden="true"]::after {
  top: 5px;
}

.mobile-menu-toggle[aria-expanded="true"] span[aria-hidden="true"] {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] span[aria-hidden="true"]::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span[aria-hidden="true"]::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero,
.page-hero {
  padding: 86px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

h3,
h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
}

.notice-inline {
  display: inline-flex;
  max-width: 720px;
  margin-top: 18px;
  padding: 10px 12px;
  color: #7c2d12;
  background: #fff6ef;
  border: 1px solid rgba(224, 107, 26, 0.22);
  border-radius: var(--radius);
  font-weight: 750;
}

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

.hero-panel,
.result-card,
.test-workspace,
.test-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

/* Hero DISC card: hover lift + bar fill. Everything here is decorative —
   the bars and their percentages are static in the HTML and shown filled
   by default, so the card is complete without hover (mobile, no pointer,
   crawlers). The fill animation is a pointer-device bonus only. */
.hero-panel {
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.42s ease;
}

.hero-panel.reveal:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(17, 24, 39, 0.14);
}

.disc-bar {
  width: 100%;
  height: 7px;
  margin-top: 10px;
  border-radius: 100px;
  background: var(--surface-3);
  overflow: hidden;
}

.disc-bar-fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 100px;
}

.disc.d .disc-bar-fill { background: var(--disc-d); }
.disc.i .disc-bar-fill { background: var(--disc-i); }
.disc.s .disc-bar-fill { background: var(--disc-s); }
.disc.c .disc-bar-fill { background: var(--disc-c); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .disc-bar-fill {
    width: 0%;
    transition: width 0.8s ease;
  }

  .hero-panel:hover .disc-bar-fill {
    width: var(--w, 0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel {
    transition: opacity 0.42s ease;
  }

  .hero-panel.reveal:hover {
    transform: none;
  }
}

.panel-top,
.mini-result,
.submit-row,
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-top span,
.mini-result span {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-top strong {
  color: var(--orange);
  font-size: 2.4rem;
}

/* Decorative sales hook under the hero DISC card bars — points at the
   profile's weak axis (S) and links into the DISC test. */
.disc-hook {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disc-hook-title {
  font-weight: 800;
  color: var(--navy-950);
}

.disc-hook-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.disc-hook-weak {
  color: var(--disc-s);
  font-weight: 700;
}

.disc-hook-cta {
  align-self: flex-start;
  margin-top: 2px;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.disc-hook-cta:hover {
  text-decoration: underline;
}

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

.disc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  font-size: 2rem;
  font-weight: 850;
}

.disc small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.d { color: var(--red); background: rgba(220, 38, 38, 0.07); }
.i { color: var(--orange); background: rgba(224, 107, 26, 0.08); }
.s { color: var(--green); background: rgba(22, 163, 74, 0.08); }
.c { color: var(--blue); background: rgba(37, 99, 235, 0.08); }

.metrics-strip {
  padding: 22px 0;
  background: #490229;
  color: #fff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metrics-grid div {
  display: grid;
  gap: 2px;
}

.metrics-grid strong {
  font-size: 1.55rem;
}

.metrics-grid span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  color: var(--muted);
}

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

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

.tests-showcase {
  padding: 56px 0 82px;
}

.tests-hero {
  position: relative;
  margin-bottom: 30px;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(224, 107, 26, 0.12), rgba(255, 255, 255, 0) 44%),
    #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tests-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
}

.tests-hero .lead {
  max-width: 760px;
}

.tests-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tests-hero__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 780;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.test-preview-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.test-preview-card:hover {
  border-color: var(--card-accent, rgba(224, 107, 26, 0.38));
  box-shadow: 0 16px 56px rgba(8, 16, 42, 0.10), 0 2px 8px rgba(8, 16, 42, 0.05);
  transform: translateY(-4px);
}

.test-preview-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.test-preview-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.test-preview-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.test-preview-card__label {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: var(--card-accent, var(--navy));
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
}

.test-preview-card__price {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--orange-dark);
  background: #fff3e8;
  border: 1px solid #f4d4b2;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.test-preview-card__price.is-free {
  background: #e8f7ee;
  border-color: #bde8c9;
  color: var(--green);
}

.test-preview-card__features {
  display: grid;
  gap: 9px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.test-preview-card__features h3 {
  margin: 0 0 2px;
  font-size: 0.98rem;
}

.test-preview-card__features span {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.test-preview-card__features span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.test-preview-card__example {
  margin: 0;
  padding: 18px;
  background: #fffaf3;
  border: 1px solid #f4d4b2;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.test-preview-card__example strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.test-preview-card__example p {
  margin: 0;
  color: var(--muted);
}

.test-preview-card__cta {
  width: 100%;
  margin-top: auto;
}

.tests-disclaimer {
  margin-top: 30px;
  padding: 22px 24px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.tests-disclaimer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.08rem;
}

.tests-disclaimer p {
  margin: 0;
}

.tests-disclaimer p + p {
  margin-top: 6px;
}

.test-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.test-card:hover {
  border-color: var(--card-accent, var(--orange));
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(8, 16, 42, 0.10), 0 2px 8px rgba(8, 16, 42, 0.05);
}

.test-card.featured {
  grid-column: auto;
  background: linear-gradient(135deg, #fff, #fff6ef);
}

.test-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--card-accent, var(--navy));
  color: #fff;
  font-weight: 850;
}

.test-abbr {
  color: var(--subtle);
  font-size: 0.88rem;
}

.test-card p:not(.test-abbr) {
  color: var(--muted);
}

/* Etalon eyebrow pill — distinct from .badge above (that one is the
   absolutely-positioned pro/free corner label on test cards, already used
   in test_cards.html/tests.html and left untouched). New, unused by any
   template yet — prepared here for later stages to apply. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(224, 107, 26, 0.20);
  border-radius: 100px;
  padding: 5px 14px;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: tag-blink 2.2s ease infinite;
}

@keyframes tag-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-eyebrow {
  margin-bottom: 18px;
}

.hero-accent {
  color: var(--orange);
  font-style: italic;
  font-family: var(--font-display);
}

.badge {
  position: absolute;
  right: 18px;
  top: 18px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 850;
}

.badge.pro {
  background: #f0e9ff;
  color: var(--purple);
}

.badge.free {
  background: #e8f7ee;
  color: var(--green);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pills span {
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--muted)) 24%, transparent);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--card-accent, var(--muted));
  background: color-mix(in srgb, var(--card-accent, var(--muted)) 10%, transparent);
  font-size: 0.8rem;
}

.card-action {
  margin-top: 8px;
}

.card-action.muted {
  background: var(--surface-2);
  color: var(--muted);
}

/* Per-test accent — sets --card-accent, picked up by .test-icon,
   .test-preview-card__label, .pills span and .btn-card below. Exact etalon
   mapping (tc-disc/tc-paei/tc-eq/tc-bf/tc-iq). */
.tc-disc { --card-accent: var(--disc-d); }
.tc-paei { --card-accent: var(--orange); }
.tc-eq   { --card-accent: var(--teal-500); }
.tc-bf   { --card-accent: var(--disc-c); }
.tc-iq   { --card-accent: var(--disc-s); }

/* Etalon running-border card CTA — same conic-gradient mechanism as
   .btn-ghost above, but thinner and tinted per-card via --card-accent.
   Added alongside .card-action (kept) on test_cards.html buttons. */
.btn-card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  padding: 11px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  z-index: 0;
  overflow: hidden;
}

.btn-card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 1.5px);
  background: conic-gradient(from var(--border-angle), transparent 0deg, var(--card-accent, var(--orange)) 55deg, transparent 110deg);
  animation: btn-ghost-spin 2.4s linear infinite;
}

.btn-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--surface-2);
  transition: background 0.2s;
}

.btn-card:hover {
  /* Overrides .card-action:hover's orange fill — the etalon running-border
     button stays on --surface-2 on hover, only text color/lift change. */
  background: var(--surface-2);
  color: var(--card-accent, var(--orange));
  transform: translateY(-1px);
}

.btn-card:hover::after {
  background: var(--surface-2);
}

.steps-grid,
.use-grid,
.result-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step,
.use-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.step:hover {
  border-color: rgba(224, 107, 26, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(8, 16, 42, 0.10), 0 2px 8px rgba(8, 16, 42, 0.05);
}

.step b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}

.cta-section {
  padding: 56px 0;
  /* No background here — in the etalon only .cta-box (below) is dark; the
     section itself sits on the ordinary page background. */
}

.cta-box {
  padding: 32px;
  color: #fff;
  background: var(--navy-950);
  border-radius: var(--radius-lg);
}

.cta-box p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

/* Etalon override — .btn-ghost's default light chip would look wrong on
   this dark box, so it gets the same translucent-white treatment as
   .cta-box .btn-run in the etalon. The mask (background/::after) must
   stay fully OPAQUE, same as the light-mode default (var(--surface-2))
   — otherwise the running-border ::before conic-gradient shows through
   the whole button face instead of just the thin ring, smearing orange
   across the middle. Layering the translucent white over an opaque
   --navy-950 backdrop keeps the same tint but renders it as one flat,
   opaque colour. */
.cta-box .btn-ghost {
  background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), var(--navy-950);
  color: rgba(255, 255, 255, 0.85);
}

.cta-box .btn-ghost::after {
  background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), var(--navy-950);
}

.cta-box .btn-ghost:hover {
  background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)), var(--navy-950);
  color: var(--orange-400);
}

.cta-box .btn-ghost:hover::after {
  background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)), var(--navy-950);
}

.articles-cta-section {
  background: #fff;
}

.articles-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.articles-cta:hover {
  border-color: rgba(224, 107, 26, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(8, 16, 42, 0.10), 0 2px 8px rgba(8, 16, 42, 0.05);
}

.articles-cta div {
  max-width: 760px;
}

.articles-cta h2 {
  max-width: 760px;
}

.articles-cta p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.articles-cta .btn {
  flex: 0 0 auto;
}

.page-hero.compact {
  padding-bottom: 54px;
}

.pro-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 24px;
  color: #fff;
  background: #24021c;
  border-radius: var(--radius-lg);
}

.pro-note div {
  display: grid;
  gap: 4px;
}

.pro-note span {
  color: rgba(255, 255, 255, 0.68);
}

.test-shell,
.result-shell {
  padding: 46px 0 82px;
}

.test-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.test-sidebar {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.test-sidebar p:not(.eyebrow),
.back-link {
  color: var(--muted);
}

.progress-card {
  margin: 24px 0;
}

.progress-card strong,
.progress-card span {
  display: block;
}

.progress-card strong {
  margin-bottom: 4px;
}

.progress-card span {
  color: var(--muted);
}

.progress-track {
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--orange);
  transition: width 180ms ease;
}

.test-workspace {
  min-height: 520px;
  padding: 28px;
}

.loading-state {
  color: var(--muted);
}

.invite-intro {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.invite-intro h2 {
  margin: 0;
  font-size: 1.7rem;
}

.invite-intro p {
  margin: 0;
  color: var(--muted);
}

.invite-intro strong {
  color: var(--ink);
}

.invite-state {
  background: #fff6ef;
  border-color: rgba(224, 107, 26, 0.18);
}

.question-list {
  display: grid;
  gap: 16px;
}

.big5-form {
  display: grid;
  gap: 16px;
}

.big5-profile-card {
  padding: 16px;
}

.big5-profile-card .profile-inputs {
  grid-template-columns: 150px minmax(180px, 240px);
  align-items: end;
}

.step-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #fff6ef;
  border: 1px solid rgba(224, 107, 26, 0.18);
  border-radius: var(--radius);
}

.step-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.step-head .eyebrow {
  margin-bottom: 4px;
}

.step-head > span {
  color: var(--muted);
  font-weight: 800;
}

.question-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

/* Question content uses the same readable sans-serif as the site body; the
   decorative display face remains reserved for large page headings. */
.question-card > h2,
.question-card .figure-cell,
.question-card .option {
  font-family: var(--font-body);
}

.question-card > h2 {
  font-weight: 600;
}

.question-card--math > h2 {
  white-space: pre-line;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 700;
}

.figure-sequence,
.figure-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.figure-cell {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.figure-matrix {
  display: grid;
  grid-template-columns: repeat(3, 48px);
}

/* Test-page H1 in the 320px sidebar (IQ, EQ, DISC, Big Five, PAEI, PAEI Job):
   one size everywhere, wrapping only between words — never mid-word. */
.test-sidebar h1 {
  font-size: 1.75rem;
  line-height: 1.15;
  overflow-wrap: normal;
}

/* Short instruction under the IQ H1: a quiet hint, not a banner. */
.test-sidebar .iq-intro {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Test-page nav (includes/test_page_nav.html, test_page_cta.html). */
html:has([data-test-page-nav]) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has([data-test-page-nav]) {
    scroll-behavior: auto;
  }
}

#test-start,
#about-test {
  scroll-margin-top: 96px;
}

.test-page-nav {
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.test-page-nav-title {
  margin: 0 0 6px;
  color: var(--navy-950);
  font-weight: 750;
}

.test-page-nav ul {
  margin: 0 0 10px;
  padding-left: 1.1em;
  color: var(--muted);
}

.test-page-nav li + li {
  margin-top: 2px;
}

.test-page-nav-anchor {
  color: var(--orange);
  font-weight: 750;
}

.test-page-cta {
  margin: 24px 0 0;
}

/* Mobile: keep the left column of a nav page as short as possible before
   the form — spacing only, no text removed. */
@media (max-width: 680px) {
  .test-shell:has([data-test-page-nav]) {
    padding-top: 16px;
  }

  .test-sidebar:has([data-test-page-nav]) {
    padding: 16px;
  }

  .test-sidebar:has([data-test-page-nav]) .eyebrow {
    margin-bottom: 6px;
  }

  .test-sidebar:has([data-test-page-nav]) h1 {
    margin-bottom: 10px;
  }

  .test-sidebar:has([data-test-page-nav]) .test-page-nav {
    margin-top: 12px;
  }

  .test-sidebar:has([data-test-page-nav]) .test-page-nav ul {
    margin-bottom: 6px;
  }

  .test-sidebar:has([data-test-page-nav]) .progress-card {
    margin: 12px 0;
  }

  /* Every answer option carries its own caption, so the sidebar legend
     only pushes the form down on phones. */
  .test-sidebar .scale-labels {
    display: none;
  }

  .test-layout:has([data-test-page-nav]) {
    gap: 10px;
  }

  .test-sidebar:has([data-test-page-nav]) h1 {
    line-height: 1.1;
  }

  .test-sidebar:has([data-test-page-nav]) .iq-intro,
  .test-sidebar:has([data-test-page-nav]) .test-page-nav {
    line-height: 1.35;
  }
}

/* Static SEO text + FAQ under the IQ form. */
.iq-seo {
  padding-top: 0;
}

.iq-seo .legal-content ul {
  padding-left: 1.2em;
  color: var(--muted);
}

.iq-seo .iq-faq-title {
  margin: 44px 0 18px;
}

.iq-seo .info-card h3 {
  font-size: 1.2rem;
}

.iq-seo .iq-faq-more {
  margin: 18px 0 0;
}

.iq-seo .iq-faq-more a {
  color: var(--orange);
  font-weight: 800;
}

/* IQ has compact symbolic matrices, including cells with repeated shapes. */
.test-shell[data-iq-test] .question-card > h2 {
  font-size: 1.35rem;
  line-height: 1.4;
}

.test-shell[data-iq-test] .option {
  font-size: 0.98rem;
  font-weight: 500;
}

.test-shell[data-iq-test] .figure-sequence,
.test-shell[data-iq-test] .figure-matrix {
  gap: 8px;
}

.test-shell[data-iq-test] .figure-cell {
  width: 64px;
  min-width: 0;
  min-height: 52px;
  padding: 0 4px;
  font-size: 1.15rem;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}

.test-shell[data-iq-test] .figure-matrix {
  grid-template-columns: repeat(3, 64px);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

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

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
}

.option:has(input:checked) {
  border-color: var(--orange);
  background: #fff6ef;
}

.option input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.scale-option {
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  text-align: center;
}

.scale-option strong {
  font-size: 1.25rem;
  line-height: 1;
}

.scale-option span {
  color: var(--muted);
  font-size: 0.8rem;
}

.big5-question-card {
  display: grid;
  gap: 12px;
}

.big5-question-card h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.big5-scale-grid .scale-option {
  min-height: 86px;
  padding: 12px 8px;
}

.big5-nav {
  align-items: center;
  justify-content: flex-start;
}

.disc-choice-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.disc-choice-head,
.disc-choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 118px;
  gap: 10px;
  align-items: stretch;
}

.disc-choice-head {
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.disc-option-text {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.disc-radio {
  display: grid;
  place-items: center;
  min-height: 56px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.disc-radio:has(input:checked) {
  border-color: var(--orange);
  background: #fff6ef;
}

.disc-radio:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.45;
}

.disc-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.scale-labels,
.score-bars {
  display: grid;
  gap: 10px;
}

.scale-labels {
  /* Bottom gap so the legend never touches the "До всіх тестів" link that
     follows it in the sidebar (PAEI Job has four rows). */
  margin: 18px 0 16px;
}

.scale-labels div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.profile-inputs label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.profile-inputs input,
.profile-inputs select {
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.score-bar {
  display: grid;
  gap: 6px;
}

.score-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.score-bar-row span {
  color: var(--muted);
  font-weight: 750;
  text-align: right;
}

.score-bar-track {
  height: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.score-bar-fill {
  display: block;
  height: 100%;
  background: var(--orange);
}

.form-error {
  margin-top: 18px;
  padding: 12px 14px;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
}

.form-success {
  margin-top: 18px;
  padding: 12px 14px;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
}

.submit-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.submit-row span {
  color: var(--muted);
}

.result-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.score-circle {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: #fff6ef;
  border: 8px solid rgba(224, 107, 26, 0.18);
  color: var(--orange);
  flex: 0 0 auto;
}

.score-circle strong {
  font-size: 2.2rem;
  line-height: 1;
}

.score-circle span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* IQ result "share" block — native Web Share button on capable devices,
   copy-link + direct social links as the desktop fallback. */
.share-block {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.share-block-label {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--navy-950);
}

.share-block-preview {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  color: var(--navy-800);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.share-block-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.share-block-actions .btn svg,
.share-block-actions .btn-ghost svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.share-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy-800);
  font-weight: 750;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.share-icon-link:hover {
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.share-icon-link svg {
  width: 20px;
  height: 20px;
}

.share-block-status {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.score-line {
  margin: 16px 0;
  color: var(--muted);
  font-weight: 750;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.result-meta div,
.score-card,
.result-detail-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.result-meta div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.result-meta span,
.score-card p,
.ocean-note,
.human-row span,
.human-list li,
.human-readable p {
  color: var(--muted);
}

.result-meta strong {
  overflow-wrap: anywhere;
}

.result-description {
  color: var(--muted);
  font-size: 1.05rem;
}

.score-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 20px;
}

/* IQ's result always renders exactly 3 cards (Правильні відповіді,
   Відсоток, Рівень) — the shared 4-column grid above leaves them at
   quarter-width instead of a third, squeezing the longer "Рівень" label. */
.score-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* IQ's "Рівень" value ("Потребує розвитку" etc.) is much longer than
   DISC/EQ's short codes and percentages. Side-by-side in .score-card-top
   squeezed the label into almost no width, and the shared h1-h4 rule
   (overflow-wrap: anywhere) then broke it mid-word. Stack label above
   value instead, just for these three cards. */
.score-card-grid--three .score-card-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.score-card-grid--three .score-card strong {
  text-align: left;
}

.score-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

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

/* Card labels ("Надійність", "Рівень") wrap only between words: when label
   and value don't fit side by side, the value moves to the next line. */
.score-card h3 {
  margin: 0;
  font-size: 0.98rem;
  overflow-wrap: normal;
}

.score-card strong {
  color: var(--orange);
  font-size: 1.35rem;
  line-height: 1.1;
  text-align: right;
}

.score-card p {
  margin: 0;
  font-size: 0.92rem;
}

.result-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 20px;
}

.result-columns section {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.result-columns h2 {
  font-size: 1.2rem;
}

.result-columns li {
  margin-bottom: 6px;
  color: var(--muted);
}

.result-actions {
  justify-content: flex-start;
  margin-top: 26px;
}

/* Conversion block under the free IQ result — bridge copy + paid-test
   cards (apps/assessments/templates/includes/paid_tests_cta.html). */
.iq-upsell {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.iq-upsell h2 {
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.iq-upsell p {
  max-width: 60ch;
  color: var(--muted);
}

.iq-upsell .cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.result-detail-panel {
  margin-top: 20px;
  padding: 16px 18px;
}

.result-detail-panel summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.human-readable {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.human-readable-nested {
  margin-top: 8px;
}

.human-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.human-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.human-section {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.human-section h3 {
  margin: 0;
  font-size: 1rem;
}

.human-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.disc-graph {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.disc-graph h3 {
  margin: 0;
  font-size: 1rem;
}

.ocean-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 20px;
}

.ocean-card {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.ocean-head h2 {
  font-size: 1.2rem;
}

.ocean-head strong {
  color: var(--orange);
  font-size: 1.6rem;
}

.ocean-note {
  margin-top: -8px;
  font-size: 0.94rem;
}

.facet-details {
  margin-top: 14px;
}

.facet-details summary {
  cursor: pointer;
  color: var(--orange);
  font-weight: 800;
}

.facet-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.facet-list li {
  margin-bottom: 6px;
  color: var(--muted);
}

.auth-shell {
  padding: 56px 0 82px;
}

.profile-shell {
  padding: 46px 0 82px;
}

.auth-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.auth-form,
.profile-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

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

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.auth-form input {
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.auth-form input:focus {
  border-color: var(--orange);
  outline: 3px solid rgba(224, 107, 26, 0.16);
}

.auth-form textarea {
  min-height: 120px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  resize: vertical;
}

.auth-form textarea:focus {
  border-color: var(--orange);
  outline: 3px solid rgba(224, 107, 26, 0.16);
}

.corporate-inquiry-panel {
  margin-top: 32px;
}

.field-hint {
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 500;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
}

.auth-switch a {
  color: var(--orange);
  font-weight: 800;
}

.profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.profile-list span {
  color: var(--muted);
}

.profile-results {
  margin-top: 34px;
}

.profile-anonymous,
.profile-dashboard-head,
.profile-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.profile-anonymous {
  max-width: 640px;
  margin: 0 auto;
  padding: 34px;
}

.profile-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.profile-dashboard-head h1 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.profile-dashboard-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.profile-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.profile-stats article {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profile-stats span,
.profile-subhead span {
  color: var(--muted);
  font-weight: 750;
}

.profile-stats strong {
  color: var(--orange);
  font-size: 2rem;
  line-height: 1;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.profile-tabs button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.profile-tabs button.active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.profile-panel {
  padding: 24px;
  margin-top: 18px;
}

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

.profile-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profile-card-row h3 {
  margin-bottom: 4px;
}

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

.profile-invite-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.profile-invite-columns > section {
  display: grid;
  gap: 12px;
}

.profile-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-subhead h3 {
  margin: 0;
  font-size: 1.15rem;
}

.profile-results .section-head {
  margin-bottom: 18px;
}

.profile-results .section-head h2 {
  font-size: 1.6rem;
}

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

.profile-results [hidden],
[data-auth-page="profile"] [hidden],
[data-auth-page="account-settings"] [hidden] {
  display: none !important;
}

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

.account-settings-shell .section-head h2,
.deletion-panel h2 {
  font-size: 1.6rem;
}

.deletion-panel p {
  color: var(--muted);
}

.deletion-panel a {
  color: var(--orange);
  font-weight: 800;
}

.profile-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profile-result-item h3 {
  margin-bottom: 4px;
}

.profile-result-item p,
.profile-empty p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-empty {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profile-empty.compact {
  padding: 14px;
}

.profile-invitations {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.invite-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.invite-created {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  background: #fff6ef;
  border: 1px solid rgba(224, 107, 26, 0.18);
  border-radius: var(--radius);
}

.invite-created p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.invite-link-row,
.invite-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.invite-link-row input,
.invite-actions input {
  min-width: 0;
  flex: 1 1 240px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.invite-history-head {
  margin-top: 28px;
}

.site-footer {
  padding: 36px 0 18px;
  color: var(--text-3);
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.footer-logo {
  color: var(--navy-950);
}

.footer-logo img {
  height: 38px;
  max-width: 168px;
}

.footer-brand p {
  max-width: 420px;
  margin: 12px 0 0;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-col h2 {
  margin-bottom: 8px;
  color: var(--navy-950);
  font-size: 1rem;
}

.footer-col a:hover {
  color: var(--navy-950);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-hero {
  padding-bottom: 34px;
}

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

.article-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-card time,
.article-detail time {
  color: var(--orange);
  font-weight: 800;
  font-size: 0.9rem;
}

.article-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

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

.article-detail {
  padding: 54px 0 82px;
}

.article-detail header {
  max-width: 1000px;
  margin-top: 22px;
}

.article-detail h1 {
  max-width: 100%;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  line-height: 1.04;
}

.article-detail header .lead {
  max-width: 880px;
}

.article-content {
  width: 100%;
  max-width: none;
  margin-top: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-content p {
  color: var(--ink);
  margin: 0 0 20px;
}

.article-content h2,
.article-content h3 {
  max-width: 100%;
  line-height: 1.22;
}

.article-content h2 {
  margin: 38px 0 14px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.article-content h3 {
  margin: 30px 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}

.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table,
.article-content figure {
  margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
  padding-left: 28px;
}

.article-content li + li {
  margin-top: 10px;
}

.article-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--orange);
  background: var(--surface-2);
  color: var(--navy-2);
}

.article-content a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.article-content blockquote p:last-child,
.article-content p:last-child,
.article-content ul:last-child,
.article-content ol:last-child,
.article-content figure:last-child,
.article-content table:last-child {
  margin-bottom: 0;
}

.article-content hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.article-content img {
  display: block;
  height: auto;
  margin: 28px auto;
  border-radius: var(--radius);
}

.article-content figure {
  max-width: 100%;
}

.article-content figure img {
  margin-bottom: 10px;
}

.article-content figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--surface-2);
  font-weight: 800;
}

.content-narrow,
.legal-content {
  max-width: 880px;
}

.faq-list,
.info-grid {
  display: grid;
  gap: 14px;
}

.info-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.info-card h2,
.legal-content h2 {
  font-size: 1.35rem;
}

.info-card p:last-child,
.legal-content p:last-child {
  margin-bottom: 0;
}

.info-card p,
.legal-content p {
  color: var(--muted);
}

.info-card a:not(.btn):not(.header-cta),
.legal-content a:not(.btn):not(.header-cta) {
  color: var(--orange);
  font-weight: 800;
}

.legal-content {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.legal-content h2:not(:first-child) {
  margin-top: 28px;
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 10px;
    color: var(--navy-950);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 22px 45px rgba(8, 16, 42, 0.14);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    color: var(--text-2);
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-align: left;
  }

  .mobile-nav a:hover,
  .mobile-nav a.active,
  .mobile-nav button:hover {
    color: var(--navy-950);
    background: rgba(0, 0, 0, 0.05);
  }

  .hero-grid,
  .test-layout,
  .result-meta,
  .score-card-grid,
  .profile-stats,
  .profile-invite-columns,
  .account-settings-grid,
  .article-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .test-sidebar {
    position: static;
  }

  .auth-actions {
    margin-left: auto;
  }

  .cards-grid,
  .test-preview-grid,
  .steps-grid,
  .use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 60px;
    gap: 10px;
    padding: 8px 0;
  }

  .brand img {
    height: 38px;
    max-width: 170px;
  }

  .header-cta {
    padding: 0 12px;
    min-height: 38px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .brand-mark::after {
    left: 5px;
    top: 5px;
  }

  .auth-actions {
    gap: 6px;
  }

  .auth-actions .auth-link[data-auth-anonymous] {
    display: none !important;
  }

  .auth-actions .auth-link[data-auth-authenticated] {
    display: none !important;
  }

  .auth-link {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
  }

  .hero,
  .page-hero {
    padding: 44px 0 36px;
  }

  .section {
    padding: 46px 0;
  }

  .hero-grid {
    gap: 24px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 2.05rem;
    line-height: 1.08;
  }

  h2 {
    margin-bottom: 10px;
    font-size: 1.65rem;
    line-height: 1.12;
  }

  h3 {
    font-size: 1.12rem;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.48;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .notice-inline {
    margin-top: 14px;
    padding: 9px 10px;
    font-size: 0.92rem;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .cards-grid,
  .test-preview-grid,
  .steps-grid,
  .use-grid,
  .options-grid,
  .disc-choice-head,
  .disc-choice-row,
  .auth-grid,
  .profile-inputs,
  .ocean-grid,
  .result-columns {
    grid-template-columns: 1fr;
  }

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

  .metrics-grid strong {
    font-size: 1.28rem;
  }

  .metrics-grid span {
    font-size: 0.82rem;
  }

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

  .tests-showcase {
    padding: 34px 0 52px;
  }

  .tests-hero {
    margin-bottom: 22px;
    padding: 22px;
  }

  .tests-hero__badges {
    gap: 8px;
    margin-top: 18px;
  }

  .tests-hero__badges span {
    width: 100%;
    justify-content: center;
    font-size: 0.86rem;
  }

  .test-preview-card {
    padding: 18px;
    gap: 12px;
  }

  .test-preview-card__label {
    width: 48px;
    height: 48px;
  }

  .test-preview-card__features,
  .test-preview-card__example {
    padding: 14px;
  }

  .tests-disclaimer {
    margin-top: 22px;
    padding: 18px;
  }

  .hero-panel {
    padding: 18px;
  }

  .articles-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .articles-cta .btn {
    width: 100%;
  }

  .disc {
    min-height: 88px;
  }

  .step,
  .use-card,
  .article-card,
  .info-card {
    padding: 18px;
  }

  .disc-choice-head {
    display: none;
  }

  .disc-radio {
    grid-template-columns: auto 1fr;
    justify-items: start;
    gap: 10px;
    padding: 10px 12px;
  }

  .disc-radio::after {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.88rem;
  }

  .panel-top,
  .mini-result,
  .submit-row,
  .step-head,
  .result-head,
  .profile-dashboard-head,
  .profile-card-row,
  .profile-result-item,
  .pro-note,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .test-workspace,
  .test-sidebar,
  .result-card,
  .cta-box,
  .auth-card,
  .profile-dashboard-head,
  .profile-panel,
  .legal-content,
  .article-content {
    padding: 20px;
  }

  .test-shell,
  .result-shell,
  .profile-shell,
  .auth-shell {
    padding: 32px 0 48px;
  }

  .test-layout {
    gap: 16px;
  }

  .auth-card h1,
  .profile-dashboard-head h1,
  .article-detail h1 {
    font-size: 1.85rem;
    line-height: 1.1;
  }

  .score-circle {
    width: 124px;
    height: 124px;
  }

  .score-circle strong {
    font-size: 1.65rem;
  }

  .score-card-top,
  .human-row {
    flex-direction: column;
  }

  .score-card strong,
  .human-row strong,
  .score-bar-row span {
    text-align: left;
  }

  .score-bar-row {
    grid-template-columns: 1fr;
  }

  .big5-profile-card .profile-inputs,
  .big5-scale-grid {
    grid-template-columns: 1fr;
  }

  .big5-scale-grid .scale-option {
    min-height: 54px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .big5-nav {
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .big5-nav .btn {
    flex: 1 1 120px;
  }

  .question-card {
    padding: 16px;
  }

  .question-meta,
  .ocean-head,
  .profile-subhead {
    flex-direction: column;
    align-items: flex-start;
  }

  .invite-actions,
  .invite-link-row,
  .hero-actions,
  .result-actions,
  .profile-head-actions {
    width: 100%;
  }

  .invite-actions input,
  .invite-link-row input,
  .invite-actions .btn,
  .invite-link-row .btn,
  .result-actions .btn,
  .hero-actions .btn,
  .profile-head-actions .btn {
    width: 100%;
  }

  .profile-tabs {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .profile-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .profile-stats article {
    padding: 14px;
  }

  .profile-stats strong {
    font-size: 1.55rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .brand {
    flex: 1 1 132px;
  }

  .auth-actions {
    flex: 0 1 auto;
    margin-left: 0;
  }

  .mobile-menu-toggle {
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .auth-link,
  .header-cta {
    font-size: 0.86rem;
  }

  .hero,
  .page-hero {
    padding: 34px 0 30px;
  }

  .section {
    padding: 38px 0;
  }

  h1 {
    font-size: 1.78rem;
  }

  h2 {
    font-size: 1.42rem;
  }

  .lead {
    font-size: 0.96rem;
  }

  .hero-actions .btn,
  .result-actions .btn,
  .submit-row .btn {
    min-height: 44px;
  }

  .test-workspace,
  .test-sidebar,
  .result-card,
  .cta-box,
  .auth-card,
  .profile-dashboard-head,
  .profile-panel,
  .legal-content,
  .article-content {
    padding: 16px;
  }

  .question-card {
    padding: 14px;
  }

  .option,
  .disc-option-text,
  .disc-radio {
    min-height: 50px;
  }

  .scale-option span {
    font-size: 0.78rem;
  }

  .result-meta div,
  .score-card,
  .result-columns section,
  .ocean-card {
    padding: 12px;
  }

  .footer-bottom {
    margin-top: 26px;
  }
}

@media (max-width: 360px) {
  .brand img {
    height: 34px;
    max-width: 122px;
  }

  .auth-actions {
    flex: 0 0 auto;
  }

  .header-cta {
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .mobile-menu-toggle span:not([aria-hidden="true"]) {
    display: none;
  }

  .score-circle {
    width: 108px;
    height: 108px;
  }

  .score-circle strong {
    font-size: 1.35rem;
  }
}

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

.billing-package-grid.compact {
  gap: 14px;
}

.billing-package-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.billing-package-card h2,
.billing-package-card h3,
.billing-package-card p {
  margin: 0;
}

.billing-package-card form,
.billing-package-card .btn {
  width: 100%;
  margin-top: auto;
}

.billing-package-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-950);
}

.billing-package-credits {
  color: var(--muted);
}

.billing-package-features {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.billing-package-features li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.billing-package-old-price {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7em;
}

.billing-corporate-head {
  margin-top: 56px;
}

.billing-package-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin-inline: auto;
}

.billing-corporate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.billing-corporate-banner h2,
.billing-corporate-banner p {
  margin: 0 0 8px;
}

.billing-corporate-banner p:last-child {
  margin-bottom: 0;
}

.billing-corporate-banner .btn {
  flex-shrink: 0;
}

.billing-safety-note,
.billing-notice {
  margin-top: 22px;
  text-align: center;
}

.billing-status-page {
  min-height: 56vh;
}

@media (max-width: 820px) {
  .billing-package-grid,
  .billing-package-grid--two {
    grid-template-columns: 1fr;
  }

  .billing-corporate-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* HR cabinet: candidate PAEI result next to the job profile it came from. */
.job-candidate-compare {
  margin: 10px 0 4px;
}

.job-compare-head {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.job-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.job-compare-table th,
.job-compare-table td {
  padding: 4px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.job-compare-table th {
  color: var(--muted);
  font-weight: 700;
}

/* Gift test page (/billing/gift/<token>/). */
.gift-link-input {
  width: 100%;
  margin: 12px 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
}

.gift-form fieldset {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.gift-compat {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.gift-compat dt {
  margin-top: 10px;
  font-weight: 700;
}

.gift-compat dd {
  margin: 2px 0 0;
}

.gift-cta {
  margin-top: 20px;
}
