:root {
  --psych-ink: #0b1025;
  --psych-muted: #56647c;
  --psych-line: #dfe5ef;
  --psych-surface: #ffffff;
  --psych-purple: #7146e8;
  --psych-purple-dark: #5130b5;
  --psych-purple-soft: #f1edff;
  --psych-green: #13a85a;
  --psych-red: #d83b48;
  --psych-shadow: 0 22px 60px rgba(28, 27, 67, 0.11);
}

* {
  box-sizing: border-box;
}

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

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle span:first-child {
  transform: translateY(-6px);
}

.menu-toggle span:last-child {
  transform: translateY(6px);
}

html {
  scroll-behavior: smooth;
}

body.precision-page {
  margin: 0;
  background: #fbfcff;
  color: var(--psych-ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

.precision-page button,
.precision-page a {
  -webkit-tap-highlight-color: transparent;
}

.precision-page button {
  font: inherit;
}

.precision-page [hidden] {
  display: none !important;
}

.psych-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(113, 70, 232, 0.2),
      transparent 27%
    ),
    radial-gradient(
      circle at 8% 86%,
      rgba(68, 198, 208, 0.16),
      transparent 31%
    ),
    linear-gradient(145deg, #fcfbff 0%, #f5f3ff 60%, #f4fbff 100%);
  border-bottom: 1px solid #e8e4f7;
}

.psych-hero::before {
  position: absolute;
  top: -110px;
  right: 7%;
  width: 290px;
  height: 290px;
  border: 44px solid rgba(113, 70, 232, 0.06);
  border-radius: 50%;
  content: '';
}

.psych-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.psych-eyebrow,
.psych-card-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--psych-purple-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.psych-hero h1 {
  max-width: 790px;
  margin: 14px 0 20px;
  font-size: clamp(2.55rem, 6vw, 5.3rem);
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.psych-hero-lead {
  max-width: 720px;
  margin: 0;
  color: #46546b;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  line-height: 1.68;
}

.psych-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.psych-summary li {
  display: grid;
  min-width: 142px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(113, 70, 232, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(53, 37, 111, 0.06);
  backdrop-filter: blur(10px);
}

.psych-summary strong {
  font-size: 1.12rem;
}

.psych-summary span {
  margin-top: 3px;
  color: var(--psych-muted);
  font-size: 0.78rem;
}

.psych-note {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(11, 16, 37, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(20, 18, 49, 0.2);
}

.psych-note > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  place-items: center;
}

.psych-note strong {
  display: block;
  margin-bottom: 6px;
}

.psych-note p {
  margin: 0;
  color: #cbd3e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.psych-practice-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.psych-practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 26px;
  align-items: start;
}

.psych-test-card,
.psych-rules-card {
  background: var(--psych-surface);
  border: 1px solid var(--psych-line);
  border-radius: 24px;
  box-shadow: var(--psych-shadow);
}

.psych-test-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
}

.psych-test-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.psych-test-heading h2,
.psych-rules-card h2 {
  margin: 5px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
}

.psych-reset-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 10px 13px;
  background: #f7f8fb;
  color: #43516a;
  border: 1px solid #dbe1ea;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
}

.psych-reset-button:hover {
  background: var(--psych-purple-soft);
  color: var(--psych-purple-dark);
  border-color: #c8bbf5;
}

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

.psych-metrics > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 12px;
  background: #f8f9fc;
  border: 1px solid #e7eaf1;
  border-radius: 13px;
  text-align: center;
}

.psych-metrics span {
  overflow: hidden;
  color: #69768b;
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.psych-metrics strong {
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.precision-stage {
  position: relative;
  display: grid;
  width: min(100%, 540px);
  padding: clamp(8px, 2vw, 18px);
  margin: 0 auto;
  background: radial-gradient(
    circle at 50% 48%,
    #eef1f6 0%,
    #e4e8f0 66%,
    #d8dde7 100%
  );
  border: 1px solid #d3d9e4;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.5),
    0 18px 42px rgba(24, 35, 58, 0.14);
  aspect-ratio: 1;
  place-items: center;
}

.precision-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: crosshair;
  outline: none;
  touch-action: none;
  user-select: none;
}

.precision-canvas:focus-visible {
  box-shadow: 0 0 0 5px rgba(113, 70, 232, 0.26);
}

.precision-feedback {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 5px solid transparent;
  border-radius: 50%;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.precision-feedback.is-success {
  border-color: rgba(19, 168, 90, 0.8);
  box-shadow: 0 0 0 8px rgba(19, 168, 90, 0.11);
}

.precision-feedback.is-error {
  border-color: rgba(216, 59, 72, 0.78);
  box-shadow: 0 0 0 8px rgba(216, 59, 72, 0.1);
}

.psych-live-status {
  min-height: 1.5em;
  margin: 20px 0 0;
  color: #55637a;
  font-size: 0.91rem;
  font-weight: 650;
  text-align: center;
}

.psych-instructions,
.psych-result {
  padding: clamp(18px, 3vw, 27px);
  margin-top: 22px;
  background: #f8f6ff;
  border: 1px solid #dcd4fa;
  border-radius: 18px;
}

.psych-instructions h3,
.psych-result h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.psych-instructions p,
.psych-result > p {
  margin: 0;
  color: #56647c;
  line-height: 1.6;
}

.psych-instructions ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  margin: 17px 0 21px;
  color: #36445d;
  font-size: 0.9rem;
}

.psych-primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  background: linear-gradient(135deg, var(--psych-purple), #5a36ca);
  color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(94, 55, 208, 0.24);
  cursor: pointer;
  font-weight: 820;
}

.psych-primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(94, 55, 208, 0.3);
}

.psych-result {
  background: #fbfcff;
  border-color: #dfe4ed;
}

.psych-result.is-passed {
  background: #f1fbf5;
  border-color: #b9e6cc;
}

.psych-result.is-failed {
  background: #fff6f6;
  border-color: #f0c8cc;
}

.psych-result-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 13px;
  background: #eaf8f0;
  color: var(--psych-green);
  border-radius: 14px;
  font-size: 1.5rem;
  font-weight: 900;
  place-items: center;
}

.is-failed .psych-result-icon {
  background: #fde9eb;
  color: var(--psych-red);
}

.psych-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
  margin: 21px 0;
}

.psych-result-list > div {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(112, 126, 149, 0.2);
  border-radius: 12px;
}

.psych-result-list dt {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 760;
}

.psych-result-list small {
  color: #778399;
  font-size: 0.68rem;
  font-weight: 550;
}

.psych-result-list dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 850;
}

.psych-result-list dd.is-pass {
  color: var(--psych-green);
}

.psych-result-list dd.is-fail {
  color: var(--psych-red);
}

.psych-rules-card {
  position: sticky;
  top: 92px;
  padding: 28px;
}

.psych-rules-card p {
  color: var(--psych-muted);
  line-height: 1.68;
}

.psych-rules-card ol {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 25px 0;
  list-style: none;
  counter-reset: rules;
}

.psych-rules-card li {
  position: relative;
  padding-left: 42px;
  color: #46546b;
  line-height: 1.5;
  counter-increment: rules;
}

.psych-rules-card li::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  width: 29px;
  height: 29px;
  background: var(--psych-purple-soft);
  color: var(--psych-purple-dark);
  border-radius: 9px;
  content: counter(rules);
  font-size: 0.78rem;
  font-weight: 850;
  place-items: center;
}

.psych-privacy-note {
  padding: 14px;
  background: #f6f7fa;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  font-size: 0.8rem;
}

.psych-content {
  padding: clamp(56px, 8vw, 90px) 0;
  background: #f5f7fb;
  border-block: 1px solid #e5e8ef;
}

.psych-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 78px);
}

.psych-content h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.psych-content p,
.psych-advice-list {
  color: #546279;
  line-height: 1.78;
}

.psych-advice-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.psych-advice-list li {
  position: relative;
  padding-left: 29px;
}

.psych-advice-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--psych-green);
  content: '✓';
  font-weight: 900;
}

.psych-related {
  padding: clamp(58px, 8vw, 90px) 0;
}

.psych-section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.psych-section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
}

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

.psych-related-grid a {
  display: grid;
  gap: 7px;
  min-height: 160px;
  padding: 24px;
  background: #fff;
  color: var(--psych-ink);
  border: 1px solid #e0e5ed;
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(24, 35, 58, 0.06);
  text-decoration: none;
}

.psych-related-grid a:hover {
  border-color: #c9bcf4;
  box-shadow: 0 17px 36px rgba(66, 42, 145, 0.1);
  transform: translateY(-2px);
}

.psych-related-grid a > span {
  font-size: 1.5rem;
}

.psych-related-grid strong {
  font-size: 1rem;
}

.psych-related-grid small {
  color: #6a768a;
  line-height: 1.5;
}

.psych-download {
  padding: 0 0 clamp(62px, 8vw, 96px);
}

.psych-download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(110, 76, 225, 0.35),
      transparent 31%
    ),
    #0b1025;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(11, 16, 37, 0.2);
}

.psych-download h2 {
  margin: 9px 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.psych-download p {
  max-width: 680px;
  margin: 0;
  color: #bdc7d8;
  line-height: 1.65;
}

.psych-download .psych-eyebrow {
  color: #baa8ff;
}

.psych-store-actions {
  display: grid;
  gap: 10px;
}

.psych-store-button {
  display: flex;
  min-width: 210px;
  min-height: 62px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  color: #0b1025;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 13px;
  text-decoration: none;
}

.psych-store-button--dark {
  background: #151b31;
  color: #fff;
}

.psych-store-button img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.psych-store-button span {
  display: grid;
  font-weight: 850;
  line-height: 1.05;
}

.psych-store-button small {
  margin-bottom: 3px;
  font-size: 0.67rem;
  font-weight: 600;
}

.psych-store-button:hover {
  transform: translateY(-2px);
}

@media (max-width: 920px) {
  .psych-hero-grid,
  .psych-practice-grid,
  .psych-download-card {
    grid-template-columns: 1fr;
  }

  .psych-note {
    max-width: 680px;
  }

  .psych-rules-card {
    position: static;
  }

  .psych-download-card {
    align-items: start;
  }

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

@media (max-width: 680px) {
  .psych-hero {
    padding: 50px 0 42px;
  }

  .psych-hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  .psych-summary li {
    flex: 1 1 30%;
    min-width: 100px;
    padding: 12px;
  }

  .psych-test-card {
    padding: 15px;
    border-radius: 18px;
  }

  .psych-test-heading {
    align-items: flex-start;
  }

  .psych-reset-button {
    padding: 9px;
    font-size: 0;
  }

  .psych-reset-button span {
    font-size: 1.25rem;
  }

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

  .psych-result-list,
  .psych-content-grid,
  .psych-related-grid,
  .psych-store-actions {
    grid-template-columns: 1fr;
  }

  .psych-related-grid a {
    min-height: auto;
  }

  .psych-store-button {
    min-width: 0;
  }
}

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

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