:root {
  --ink: #15131c;
  --muted: #665f72;
  --paper: #fff7df;
  --cream: #fffdf7;
  --yellow: #ffd43d;
  --pink: #ff4f88;
  --mint: #22c99a;
  --blue: #3e70ff;
  --red: #dc315b;
  --line: rgba(21, 19, 28, 0.14);
  --shadow-hard: 7px 7px 0 var(--ink);
  --shadow-soft: 0 26px 80px rgba(21, 19, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 19, 28, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 19, 28, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 8% 8%, rgba(255, 212, 61, 0.7), transparent 23rem),
    radial-gradient(circle at 92% 8%, rgba(255, 79, 136, 0.2), transparent 24rem),
    linear-gradient(180deg, var(--paper), #fff 48%, #f3fbff);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  padding: 0.28rem clamp(1rem, 4vw, 4rem);
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
}

.brand-logo {
  width: clamp(15rem, 24vw, 21rem);
  max-height: 4.25rem;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.top-nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(1rem, 3vw, 3rem) clamp(1rem, 4vw, 4rem) clamp(3rem, 7vw, 6rem);
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-hard);
  cursor: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21, 19, 28, 0.3));
  pointer-events: none;
}

.magnifier-lens {
  --lens-size: 176px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: none;
  width: var(--lens-size);
  height: var(--lens-size);
  border: 0;
  border-radius: 50%;
  background-image: url("./assets/hero-lab-magnify.png");
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 5px #d6dde9,
    0 0 0 9px #536172,
    0 0 0 12px #eef3f8,
    inset 16px 18px 32px rgba(255, 255, 255, 0.42),
    inset -18px -18px 34px rgba(21, 42, 66, 0.18),
    0 18px 44px rgba(21, 19, 28, 0.34);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.magnifier-lens::before {
  content: "";
  position: absolute;
  inset: 18px 22px auto auto;
  width: 54px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  filter: blur(0.5px);
  transform: rotate(-30deg);
}

.magnifier-lens::after {
  content: none;
}

.hero-media.is-magnifying .magnifier-lens {
  display: block;
}

.hero-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  max-width: 220px;
  padding: 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-2deg);
}

.hero-badge span,
.hero-badge strong {
  display: block;
}

.hero-badge span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-badge strong {
  margin-top: 0.2rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.section-pad {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: #a73560;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 7.4vw, 7rem);
}

h2 {
  font-size: clamp(2.1rem, 4.1vw, 4.2rem);
}

h3 {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
}

.hero-lead,
.section-heading p,
.tone-grid p,
.demo-report p {
  color: #51495d;
  line-height: 1.55;
}

.hero-lead {
  max-width: 650px;
  margin: 1.35rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.ghost-button:hover,
.answer-button:hover,
.test-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.primary {
  background: var(--pink);
  color: #fff;
}

.secondary {
  background: var(--yellow);
}

.light,
.ghost-button {
  background: #fff;
}

.ghost-button {
  min-height: 2.45rem;
  padding: 0.55rem 0.8rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-stats div {
  padding: 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.6rem;
}

.hero-stats span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.ticker {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  padding: 0.85rem 0;
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.ticker span {
  min-width: max-content;
  animation: slide 18s linear infinite;
}

@keyframes slide {
  to {
    transform: translateX(-30rem);
  }
}

.section-heading {
  max-width: 840px;
  margin-bottom: 2rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: -0.5rem 0 1.5rem;
}

.filter-chip {
  min-height: 2.6rem;
  padding: 0.62rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
}

.filter-chip[aria-pressed="true"] {
  background: var(--yellow);
}

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

.test-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 410px;
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-hard);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.test-visual {
  position: relative;
  min-height: 150px;
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.65), transparent 7rem),
    linear-gradient(135deg, var(--card-a), var(--card-b));
}

.test-image {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.test-symbol {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  transform: rotate(3deg);
}

.test-content {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.1rem;
}

.test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.test-meta span {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.test-card p {
  margin: 0;
  color: #51495d;
  line-height: 1.45;
}

.quiz-shell,
.result-shell {
  scroll-margin-top: 80px;
}

.quiz-card,
.result-card,
.demo-report,
.tone-grid div {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

.quiz-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.quiz-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#questionCounter {
  font-weight: 900;
}

.progress {
  overflow: hidden;
  height: 0.9rem;
  margin: 1.25rem 0 2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--yellow), var(--pink));
}

#questionText {
  line-height: 1.15;
}

.answers {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.answer-button {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(220px, 0.6fr);
  gap: 2rem;
  align-items: start;
  justify-content: center;
}

.result-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2rem);
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(21, 19, 28, 0.08) 35px 36px);
}

.paper-holes {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(21, 19, 28, 0.22) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 50%, rgba(21, 19, 28, 0.22) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 80%, rgba(21, 19, 28, 0.22) 0 6px, transparent 7px);
}

.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-left: 1.1rem;
}

.stamp {
  display: inline-flex;
  padding: 0.55rem;
  border: 2px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transform: rotate(9deg);
}

.score-row {
  display: flex;
  align-items: baseline;
  margin: 1.5rem 0 1rem;
  padding-left: 1.1rem;
}

.score-row strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(4.2rem, 12vw, 8rem);
  line-height: 0.85;
}

.score-row span {
  font-size: 1.5rem;
  font-weight: 900;
}

.result-line {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.35;
}

.report-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding-left: 1.1rem;
}

.report-list div {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0.25rem 0 0;
  font-weight: 900;
}

.fine-print {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.result-actions {
  position: sticky;
  top: 6rem;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
}

#copyFeedback {
  min-height: 1.4rem;
  margin: 0;
  color: #286d58;
  font-weight: 900;
}

#shareText {
  width: 100%;
  min-height: 12rem;
  padding: 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: center;
}

.demo-report {
  overflow: hidden;
  padding: 1.5rem;
  background: var(--ink);
  color: #fff;
}

.demo-report .eyebrow,
.demo-report p {
  color: rgba(255, 255, 255, 0.82);
}

.demo-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -1.5rem -1.5rem 1.4rem;
  padding: 0.9rem 1.5rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mini-tags span {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.tone-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 2rem;
  align-items: start;
}

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

.tone-grid div {
  padding: 1rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 4rem);
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

@media (max-width: 980px) {
  .hero,
  .demo-section,
  .tone-section,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 430px;
  }

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

  .result-actions {
    position: static;
  }
}

@media (max-width: 660px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
    min-height: 4rem;
    padding-block: 0.25rem;
  }

  .brand-logo {
    width: clamp(10.8rem, 47vw, 13.2rem);
    max-height: 3.35rem;
  }

  .hero-stats {
    width: 100%;
  }

  .top-nav {
    flex: 1;
    justify-content: flex-end;
    gap: 0.7rem;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-media,
  .hero-media img {
    min-height: 330px;
  }

  .magnifier-lens {
    --lens-size: 138px;
  }

  .hero-stats,
  .test-grid,
  .tone-grid {
    grid-template-columns: 1fr;
  }

  .test-card {
    min-height: 390px;
  }

  .report-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stamp {
    align-self: flex-end;
  }
}
