:root {
  color-scheme: light;
  --paper: #f6f0e6;
  --paper-strong: #efe3d1;
  --panel: #fffaf2;
  --panel-soft: #fbf5eb;
  --ink: #303241;
  --ink-strong: #222433;
  --muted: #777b8f;
  --line: #ded1bf;
  --plum: #795985;
  --plum-dark: #563e60;
  --gold: #d99a25;
  --blue: #557ea8;
  --rose: #b56376;
  --ok: #7d6530;
  --danger: #9a4f41;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(48, 50, 65, 0.12);
  --shadow-soft: 0 10px 28px rgba(48, 50, 65, 0.08);
  --step--1: 0.86rem;
  --step-0: 1rem;
  --step-1: 1.18rem;
  --step-2: 1.42rem;
  --step-3: 2rem;
  --step-4: 3rem;
  --step-5: 4.4rem;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body,
button,
input {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

a {
  color: inherit;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(85, 126, 168, 0.55);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 240, 230, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf2;
  background: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.topnav a {
  text-decoration: none;
}

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

.topbar-cta,
.primary-button,
.secondary-button,
.ghost-button,
.plain-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.topbar-cta,
.primary-button {
  color: #fffaf2;
  background: var(--ink-strong);
  box-shadow: var(--shadow-soft);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
}

.ghost-button,
.plain-button {
  color: var(--ink);
  background: transparent;
}

.plain-button {
  padding: 0 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topbar-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.screen-root {
  min-height: calc(100vh - 76px);
}

#inicio,
#planos {
  scroll-margin-top: 86px;
}

.loading-screen {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  gap: 12px;
  color: var(--muted);
}

.loading-mark {
  width: 46px;
  height: 46px;
  border: 4px solid var(--line);
  border-top-color: var(--plum);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.hero-screen {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  padding: clamp(34px, 7vh, 72px) clamp(24px, 4.5vw, 64px) clamp(24px, 4.5vw, 64px);
}

.eyebrow,
.label,
.metric-label,
.tag,
.form-note,
.mini-title {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--plum-dark);
  background: var(--panel-soft);
}

.hero-copy h1 {
  max-width: 920px;
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 5.8vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 720px;
  color: #565b70;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
}

.hero-actions,
.button-row,
.quiz-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
}

.hero-point,
.metric-card,
.plan-card,
.history-card,
.test-card,
.auth-card,
.paywall-card,
.result-block,
.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.hero-point {
  min-height: 116px;
  padding: 16px;
}

.hero-point strong {
  display: block;
  margin-top: 10px;
  color: var(--ink-strong);
  line-height: 1.2;
}

.hero-visual {
  position: relative;
  display: grid;
  align-content: end;
  min-height: calc(100vh - 76px);
  padding: clamp(16px, 3.2vw, 44px);
  background: var(--paper-strong);
}

.visual-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-receipt {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--panel);
}

.hero-receipt strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-strong);
  font-size: var(--step-2);
  line-height: 1.05;
}

.hero-receipt p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.plans-section,
.content-section,
.library-section,
.assessment-page {
  padding: clamp(34px, 5vw, 76px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 760px;
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.4vw, 4.7rem);
  line-height: 0.95;
}

.section-heading p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
}

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

.library-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

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

.library-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 386px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2vw, 24px);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.library-card h3 {
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.4vw, 2.7rem);
  line-height: 0.96;
}

.library-card p {
  color: var(--muted);
  line-height: 1.52;
}

.assessment-page {
  min-height: calc(100vh - 76px);
}

.assessment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: stretch;
}

.assessment-hero > div:first-child {
  display: grid;
  align-content: center;
  gap: 20px;
}

.assessment-hero h1 {
  max-width: 920px;
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.2vw, 6.8rem);
  line-height: 0.92;
  text-wrap: balance;
}

.assessment-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.58;
}

.assessment-preview {
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
  color: #fffaf2;
  background: var(--ink-strong);
  box-shadow: var(--shadow);
}

.assessment-preview strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.8vw, 3.1rem);
  line-height: 1.02;
}

.assessment-preview p {
  color: rgba(255, 250, 242, 0.74);
}

.assessment-layout {
  display: grid;
  gap: 18px;
  margin-top: clamp(26px, 5vw, 60px);
}

.deliverable-list,
.report-sample,
.mini-link-grid,
.share-flow {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

.deliverable-item,
.mini-link,
.report-sample > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel-soft);
}

.deliverable-item {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 128px;
}

.mini-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-link {
  display: grid;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}

.mini-link span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-link strong,
.deliverable-item strong,
.report-sample strong {
  color: var(--ink-strong);
  line-height: 1.35;
}

.share-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-flow article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.share-flow strong {
  color: var(--ink-strong);
  line-height: 1.25;
}

.share-flow p {
  color: var(--muted);
  line-height: 1.48;
}

.plan-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 372px;
  padding: clamp(18px, 2vw, 26px);
}

.plan-card.is-featured {
  border-color: rgba(121, 89, 133, 0.58);
  box-shadow: 0 18px 40px rgba(121, 89, 133, 0.16);
}

.plan-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.plan-card h3 {
  color: var(--ink-strong);
  font-size: var(--step-2);
}

.price {
  color: var(--plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--step-3);
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
}

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

.plan-list li,
.check-list li {
  position: relative;
  padding-left: 20px;
  color: #565b70;
  line-height: 1.45;
}

.plan-list li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.app-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.side-nav {
  border-right: 1px solid var(--line);
  padding: 24px;
  background: var(--panel-soft);
}

.profile-chip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf2;
  background: var(--plum);
  font-weight: 950;
}

.profile-chip strong,
.profile-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.side-menu {
  display: grid;
  gap: 8px;
}

.side-menu button,
.side-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-weight: 850;
}

.side-menu button:hover,
.side-menu a:hover,
.side-menu .is-active {
  background: var(--panel);
}

.work-area {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(20px, 4vw, 46px);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.dashboard-hero h1,
.auth-copy h1,
.paywall-card h1 {
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 0.94;
  text-wrap: balance;
}

.dashboard-hero p,
.auth-copy p,
.paywall-card p {
  margin-top: 12px;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

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

.metric-card {
  min-height: 118px;
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink-strong);
  font-size: var(--step-2);
}

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

.test-card,
.history-card,
.panel-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.history-card {
  min-height: 184px;
}

.history-card strong {
  color: var(--ink-strong);
  font-size: var(--step-1);
}

.history-card p,
.test-card p,
.panel-card p {
  color: var(--muted);
  line-height: 1.5;
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.72fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(22px, 5vw, 70px);
}

.auth-copy {
  display: grid;
  gap: 24px;
}

.auth-card {
  padding: clamp(18px, 3vw, 30px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.auth-tabs button {
  min-height: 42px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.is-active {
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: #fffdf8;
}

.form-status,
.fine-print {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-ok {
  color: var(--ok);
}

.quiz-screen,
.result-screen {
  min-height: calc(100vh - 76px);
  padding: clamp(18px, 3vw, 40px);
}

.quiz-frame {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
  min-height: calc(100vh - 116px);
}

.quiz-sidebar,
.question-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.quiz-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.quiz-sidebar h1 {
  margin-top: 10px;
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.3vw, 3.7rem);
  line-height: 0.98;
}

.progress-stack {
  display: grid;
  gap: 10px;
}

.progress-line {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-strong);
}

.progress-line span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 220ms ease;
}

.question-panel {
  display: grid;
  align-content: center;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(22px, 5vw, 70px);
}

.question-meta,
.scale-hint,
.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.question-panel h2 {
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5.4vw, 6rem);
  line-height: 0.96;
  text-wrap: balance;
}

.scale-rail {
  display: grid;
  gap: 14px;
}

.scale-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  min-height: 76px;
}

.scale-line::before {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  content: "";
}

.answer-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  justify-self: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--panel);
  font-size: 1.22rem;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(222, 209, 191, 0.9);
}

.answer-button:hover,
.answer-button.is-selected {
  border-color: var(--plum);
  color: #fffaf2;
  background: var(--plum);
}

.answer-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.paywall-card {
  display: grid;
  max-width: 1060px;
  min-height: 520px;
  margin: 0 auto;
  align-content: center;
  gap: 24px;
  padding: clamp(24px, 6vw, 72px);
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.share-card {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: 18px;
  color: #fffaf2;
  background: var(--ink-strong);
  box-shadow: var(--shadow);
}

.share-card-image img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
}

.share-card-body {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
}

.share-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.6vw, 5rem);
  line-height: 0.9;
  text-wrap: balance;
}

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

.score-ring {
  position: relative;
  width: 116px;
  height: 116px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg,
.ring-value {
  fill: none;
  stroke-width: 10;
}

.ring-bg {
  stroke: rgba(255, 250, 242, 0.18);
}

.ring-value {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 314;
}

.score-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 950;
}

.result-content {
  display: grid;
  gap: 18px;
}

.result-block {
  padding: clamp(18px, 3vw, 30px);
}

.result-block h2 {
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 0.96;
}

.result-block p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.insight-grid,
.bar-grid {
  display: grid;
  gap: 12px;
}

.insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.insight {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel-soft);
}

.insight strong {
  display: block;
  margin-top: 8px;
  color: var(--ink-strong);
  line-height: 1.3;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  min-height: 34px;
}

.bar-row span {
  color: var(--ink);
  font-weight: 850;
}

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

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.possible-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.possible-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-soft);
}

.rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf2;
  background: var(--plum);
  font-weight: 950;
}

.empty-state {
  display: grid;
  gap: 12px;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: var(--panel-soft);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1120px) {
  .hero-screen,
  .auth-screen,
  .quiz-frame,
  .result-grid,
  .assessment-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .share-card {
    position: relative;
    top: auto;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .topnav {
    display: none;
  }

  .hero-points,
  .plan-grid,
  .library-grid,
  .deliverable-list,
  .mini-link-grid,
  .share-flow,
  .metric-row,
  .test-grid,
  .history-grid,
  .suite-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .plans-section,
  .content-section,
  .library-section,
  .assessment-page,
  .work-area,
  .quiz-screen,
  .result-screen {
    padding-inline: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .side-menu {
    grid-template-columns: 1fr 1fr;
  }

  .question-panel h2 {
    font-size: clamp(2.2rem, 11vw, 4rem);
  }

  .answer-button {
    width: 48px;
    height: 48px;
  }

  .answer-labels {
    font-size: 0.68rem;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: 68px;
    padding: 10px 12px;
  }

  .brand small {
    display: none;
  }

  .topbar-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .screen-root {
    min-height: calc(100vh - 68px);
  }

  .quiz-screen,
  .result-screen {
    padding: 12px;
  }

  .quiz-sidebar,
  .question-panel,
  .result-block,
  .auth-card,
  .paywall-card {
    padding: 16px;
  }
}
