:root {
  color-scheme: dark;
  --ink: #f7f7f4;
  --muted: #a6a8ad;
  --panel: #111111;
  --line: rgba(255, 255, 255, 0.13);
  --orange: #ff7900;
  --orange-soft: rgba(255, 121, 0, 0.14);
  --white: #ffffff;
  --amber: #ff9f2f;
  --red: #f05252;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 121, 0, 0.22), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(145deg, #050505 0%, #111111 48%, #050505 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] {
  color: var(--orange);
}

.nav-pay-button {
  min-height: 38px;
  padding: 0 14px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-lockup img {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 121, 0, 0.42);
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.header-pill {
  border: 1px solid rgba(255, 121, 0, 0.4);
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 9px 13px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.marketing-hero,
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-copy,
.marketing-copy,
.marketing-card,
.panel,
.score-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.88);
  box-shadow: var(--shadow);
}

.marketing-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
}

.marketing-copy {
  min-height: 560px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(120deg, rgba(255, 121, 0, 0.13), transparent 42%),
    rgba(10, 10, 10, 0.92);
  padding: clamp(28px, 6vw, 64px);
}

.marketing-copy h1 {
  max-width: 960px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
}

.marketing-copy p {
  max-width: 760px;
  color: #d2d2d2;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.62;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.marketing-actions a {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 121, 0, 0.42);
  border-radius: 8px;
  color: var(--orange);
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.button-link {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #080808;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

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

.route-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 14, 14, 0.92);
  color: var(--ink);
  padding: 22px;
  text-decoration: none;
}

.route-card span,
.history-topline span {
  width: fit-content;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-card p,
.page-hero p,
.content-band p,
.journey-grid p,
.account-shell p,
.history-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.page-hero,
.content-band,
.account-shell {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 121, 0, 0.1), transparent 38%),
    rgba(10, 10, 10, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 58px);
}

.page-hero p,
.content-band p,
.account-shell p {
  max-width: 780px;
}

.page-hero h1,
.pricing-section h1,
.account-shell h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.98;
}

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

.content-band .button-link {
  flex: 0 0 auto;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 18px;
  align-items: stretch;
}

.login-panel,
.report-history {
  display: grid;
  align-content: center;
  gap: 18px;
}

.login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 880px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-login-form {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr) auto;
  max-width: 100%;
}

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

.auth-actions a,
.secondary-button,
.text-button {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 121, 0, 0.42);
  border-radius: 8px;
  background: #080808;
  color: var(--orange);
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.text-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

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

.account-profile-summary,
.report-auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080808;
  padding: 16px;
}

.account-profile-summary {
  display: grid;
  gap: 6px;
}

.account-profile-summary strong,
.report-auth-panel strong {
  font-size: 1rem;
}

.account-profile-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.history-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.history-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080808;
  padding: 16px;
}

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

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

.history-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.history-card a {
  width: fit-content;
  margin-top: 12px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.account-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.muted-history {
  opacity: 0.58;
}

.sample-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 121, 0, 0.42);
  border-radius: 8px;
  background: #000;
  color: var(--orange);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.sample-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.sample-hero > div,
.sample-proof {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 121, 0, 0.12), transparent 42%),
    rgba(10, 10, 10, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 58px);
}

.sample-hero h1 {
  max-width: 980px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.sample-hero p,
.sample-proof p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.sample-proof {
  display: grid;
  align-content: center;
  gap: 12px;
  background: #080808;
}

.sample-proof span {
  width: fit-content;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 900;
}

.sample-proof strong {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.marketing-card,
.pricing-card {
  display: grid;
  align-content: center;
  gap: 18px;
  background: #080808;
  padding: 28px;
}

.mini-report-topline,
.mini-score {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.mini-report-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mini-report-topline span,
.pricing-card span,
.mini-score span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-report-topline strong,
.pricing-card strong {
  color: var(--orange);
  font-size: 2.2rem;
}

.mini-score strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

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

.education-panel p:not(.eyebrow),
.pricing-section p,
.pricing-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 14, 14, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.pricing-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.hero-copy {
  min-height: 480px;
  background:
    linear-gradient(120deg, rgba(255, 121, 0, 0.1), transparent 38%),
    rgba(10, 10, 10, 0.92);
  padding: clamp(24px, 5vw, 48px);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-brand img {
  width: 126px;
  height: 126px;
  border: 1px solid rgba(255, 121, 0, 0.48);
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 7vw, 5.65rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.08rem;
}

h3 {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 18px;
  color: #d2d2d2;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.6;
}

.report-auth-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.report-auth-panel.signed-in {
  border-color: rgba(255, 121, 0, 0.48);
  background: rgba(255, 121, 0, 0.1);
}

.report-auth-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.audit-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  max-width: 100%;
}

.email-field,
.password-field,
.url-field,
.city-field {
  display: grid;
  gap: 8px;
}

.email-field,
.password-field,
.url-field {
  grid-column: span 2;
}

.city-field,
#auditSubmitButton {
  grid-column: span 1;
}

.email-field span,
.password-field span,
.url-field span,
.city-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #060606;
  color: var(--ink);
  padding: 0 14px;
}

select {
  appearance: none;
}

input:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.18);
  outline: none;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #080808;
  padding: 0 18px;
  font-weight: 900;
}

#auditSubmitButton {
  min-height: 56px;
  padding: 0 16px;
  line-height: 1.1;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.74);
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0c0c;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 32px);
}

.small-modal-card {
  width: min(520px, 100%);
}

.modal-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-topline h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #080808;
  color: var(--ink);
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}

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

.create-account-form label,
.single-field-form label {
  display: grid;
  gap: 8px;
}

.create-account-form span,
.single-field-form span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.create-account-form button,
.single-field-form button {
  grid-column: 1 / -1;
}

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

.audit-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.checkout-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid rgba(255, 121, 0, 0.48);
  border-radius: 8px;
  background: rgba(255, 121, 0, 0.1);
  padding: 14px;
}

.checkout-notice[hidden] {
  display: none;
}

.checkout-notice strong {
  display: block;
  font-size: 0.92rem;
}

.checkout-notice p {
  margin: 3px 0 0;
  color: #d8d8d8;
  line-height: 1.42;
}

.checkout-notice button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 40px;
  padding: 0 14px;
}

.save-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.save-buttons button {
  min-height: 38px;
  border: 1px solid rgba(255, 121, 0, 0.42);
  background: #080808;
  color: var(--orange);
  padding: 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.score-card {
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 28px;
}

.score-ring {
  position: relative;
  display: grid;
  place-items: center;
}

.score-ring svg {
  width: min(100%, 270px);
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 15;
}

.ring-bg {
  stroke: #2a2a2a;
}

.ring-progress {
  stroke: var(--orange);
  stroke-linecap: round;
  transition: stroke-dashoffset 400ms ease;
}

.score-ring div {
  position: absolute;
  display: grid;
  place-items: center;
}

.score-ring strong {
  font-size: 4.2rem;
  line-height: 1;
}

.score-ring span,
.model-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.model-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.model-strip span {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080808;
  padding: 12px;
}

.model-strip strong {
  color: var(--ink);
  font-size: 1.25rem;
}

#scoreSummary {
  margin-bottom: 0;
  color: #d2d2d2;
  line-height: 1.55;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.panel {
  padding: 22px;
  background: rgba(14, 14, 14, 0.92);
}

.panel-header,
.category-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid rgba(255, 121, 0, 0.42);
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.grade-badge {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 46px;
  border-radius: 8px;
  background: var(--orange);
  color: #080808;
  font-size: 1.3rem;
  font-weight: 900;
}

.audit-categories,
.fix-list,
.phase-list,
.evidence-list,
.model-analysis-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.category-card,
.fix-card,
.phase,
.evidence-card,
.model-analysis-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080808;
  padding: 16px;
}

.category-topline p,
.fix-card p,
.phase p,
.evidence-card p,
.model-analysis-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

.evidence-card strong {
  display: block;
  margin-bottom: 8px;
}

.evidence-card p {
  overflow-wrap: anywhere;
}

.model-analysis-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.model-analysis-topline strong,
.model-analysis-topline small {
  display: block;
}

.model-analysis-topline small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.model-status {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.model-status.complete {
  background: var(--orange-soft);
  color: var(--orange);
}

.model-status.skipped {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.model-status.error {
  background: rgba(240, 82, 82, 0.14);
  color: var(--red);
}

.model-score-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.model-score-line span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 8px;
  background: var(--orange);
  color: #080808;
  font-size: 1.35rem;
  font-weight: 900;
}

.model-analysis-card ul {
  margin-top: 14px;
}

.category-topline strong {
  font-size: 1.75rem;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #292929;
  margin: 14px 0;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ffffff);
}

ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d8d8d8;
  font-size: 0.94rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
}

.status-dot.pass {
  background: var(--orange);
}

.status-dot.warn {
  background: var(--amber);
}

.status-dot.fail {
  background: var(--red);
}

.fix-card span,
.phase span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fix-card:nth-child(1) span {
  background: rgba(240, 82, 82, 0.14);
  color: var(--red);
}

.fix-card:nth-child(2) span,
.fix-card:nth-child(3) span {
  background: rgba(255, 121, 0, 0.16);
  color: var(--orange);
}

.intent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.intent-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #080808;
  color: #f0f0f0;
  padding: 10px 13px;
  font-size: 0.9rem;
  font-weight: 700;
}

.phase.active {
  border-color: rgba(255, 121, 0, 0.5);
  background: rgba(255, 121, 0, 0.1);
}

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

@media (max-width: 940px) {
  .marketing-hero,
  .hero,
  .report-grid,
  .audit-form,
  .education-grid,
  .pricing-section,
  .page-grid,
  .journey-grid,
  .account-shell,
  .sample-hero {
    grid-template-columns: 1fr;
  }

  .content-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .email-field,
  .password-field,
  .url-field,
  .city-field,
  #auditSubmitButton {
    grid-column: 1;
  }

  .compact-login-form {
    grid-template-columns: 1fr;
  }

  .marketing-copy,
  .hero-copy {
    min-height: auto;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .brand-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1200px);
    padding: 12px 0;
  }

  .hero-copy,
  .marketing-copy,
  .marketing-card,
  .score-card,
  .panel {
    padding: 18px;
  }

  .model-strip {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .category-topline {
    display: grid;
  }

  .grade-badge {
    width: 58px;
  }

  .report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-notice {
    grid-template-columns: 1fr;
  }

  .checkout-notice button {
    grid-row: auto;
    grid-column: auto;
  }

  .login-form {
    grid-template-columns: 1fr;
  }

  .create-account-form {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    display: none;
  }
}

@media print {
  :root {
    color-scheme: light;
    --ink: #111111;
    --muted: #555555;
    --panel: #ffffff;
    --line: #d9d9d9;
    --shadow: none;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .brand-header,
  .marketing-copy,
  .marketing-card,
  .hero-copy,
  .score-card,
  .panel {
    break-inside: avoid;
    box-shadow: none;
  }

  .marketing-hero,
  .hero {
    grid-template-columns: 1fr 320px;
  }

  .report-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audit-form,
  .site-nav,
  .marketing-actions,
  .save-buttons {
    display: none;
  }

  .marketing-copy,
  .marketing-card,
  .hero-copy,
  .score-card,
  .panel,
  .category-card,
  .fix-card,
  .phase,
  .evidence-card,
  .model-analysis-card,
  .model-strip span,
  input {
    background: #ffffff;
    color: #111111;
  }

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

  h1 {
    font-size: 42px;
    line-height: 1;
  }
}
