/* Approved September 2026 design. Mirrored in beta/public/design.css. */
:root, html[data-theme="light"] {
  color-scheme: light;
  --page: #f6f1e7;
  --surface: #f6f1e7;
  --surface-strong: #fbf7ef;
  --surface-soft: #eee6d9;
  --text: #35251d;
  --muted: #715e50;
  --accent: #ed6b20;
  --accent-hover: #ff8238;
  --accent-ink: #29170c;
  --notice-accent: #a3420e;
  --line: #d8cfc2;
  --line-strong: #ad9b87;
  --shade: #35251d08;
  --error: #aa351d;
  --success: #496d38;
  --warning: #965400;
  --unknown: #6b645e;
  --backdrop: #21180f70;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #151310;
  --surface: #151310;
  --surface-strong: #201b16;
  --surface-soft: #282017;
  --text: #f0dec5;
  --muted: #bba48b;
  --accent: #ff7b22;
  --accent-hover: #ff954c;
  --accent-ink: #241307;
  --notice-accent: #ff954c;
  --line: #40372d;
  --line-strong: #8c7760;
  --shade: #f0dec508;
  --error: #ffab8f;
  --success: #a6c78d;
  --warning: #edc180;
  --unknown: #bcb0a3;
  --backdrop: #0009;
}
body { background: var(--page); }
[hidden] { display: none !important; }
.scanlines { opacity: .025; z-index: 0; }
html[data-theme="dark"] .scanlines { opacity: .025; }
.terminal-shell, html[data-theme="dark"] .terminal-shell {
  display: flex;
  flex-direction: column;
  width: min(1376px, calc(100% - 112px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.site-header {
  position: relative;
  inset: auto;
  transform: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 148px;
  padding: 24px 4px;
  gap: 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.brand-lockup {
  order: -1;
  justify-items: start;
  justify-self: start;
  text-align: left;
  gap: 9px;
  flex-shrink: 0;
}
.brand-lockup > span { font-size: 29px; font-weight: 400; letter-spacing: -.7px; }
.brand-lockup small { font-size: 13px; letter-spacing: -.1px; }
.site-nav { display: flex; width: auto; gap: 18px; }
.site-nav a { padding: 0 4px; font-size: 13px; color: var(--text); }
.site-nav a:hover { background: transparent; color: var(--notice-accent); text-decoration: underline; text-underline-offset: 5px; }
.header-actions { gap: 8px; }
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 52px;
  row-gap: 52px;
  width: min(1160px, calc(100% - 120px));
  margin: 0 auto;
  padding: 92px 0 96px;
}
.hero-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.hero h1 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 4.25vw, 65px);
  font-weight: 400;
  line-height: 1.27;
  letter-spacing: -.055em;
  text-wrap: initial;
}
.hero-dynamic-line { flex-wrap: nowrap; column-gap: .35em; color: var(--text); }
.hero-word-slot { width: 8.3ch; flex: 0 0 8.3ch; color: var(--accent); }
.hero-typing-cursor { width: .075em; height: .76em; margin-left: .08em; transform: translateY(.04em); }
.hero-description { max-width: 58ch; margin: 24px 0 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.hero-description strong { color: var(--text); font-weight: 700; }
.assessment-form { grid-column: 1; grid-row: 2; align-self: start; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; }
.assessment-form > label { font-size: 13px; font-weight: 400; margin-bottom: 13px; }
.product-entry { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border: 0; background: transparent; box-shadow: none; }
.product-entry::before { content: "↳"; position: absolute; left: 16px; top: 19px; color: var(--muted); pointer-events: none; font-size: 16px; }
#product-input, #website-url { height: 56px; min-height: 56px; padding: 0 16px 0 43px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--text); font-size: 15px; }
#product-input::placeholder, #website-url::placeholder { color: var(--muted); opacity: 1; }
.assessment-submit { grid-column: 2; display: flex; justify-content: center; align-items: center; height: 56px; min-height: 56px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--accent-ink); }
.assessment-submit span { font-size: 14px; font-weight: 500; white-space: nowrap; }
.assessment-submit:disabled { opacity: .6; cursor: wait; }
.field-helper { font-size: 12px; line-height: 1.6; margin-top: 14px; }
.field-error:empty, .submission-status:empty { display: none; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; width: 100%; margin: 0; padding: 22px 4px; border-top: 1px solid var(--line); background: transparent; }
.site-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.footer-actions { display: flex; gap: 24px; align-items: center; }
.footer-actions nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); font-size: 11px; }
.theme-toggle { border: 0; padding: 0 4px; font-size: 12px; }
.dialog-frame { border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 24px 80px #0002; }
.dialog-header { border-bottom-style: solid; }
.dialog-content h2 { font-size: 34px; line-height: 1.15; }
.contact-dialog { overflow: auto; }
.contact-entry { border-width: 1px; border-color: var(--line-strong); }
.primary-button, .secondary-button { border-radius: 2px; font-weight: 500; }
input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--notice-accent) !important; outline-offset: 4px; }
.privacy-note { font-size: 12px; }
/* Beta entry, progress, and recovery use the same quiet page language. */
.login-view { flex: 1; width: min(940px, 100%); margin: auto; padding: 90px 0; gap: 64px; }
.login-copy h1, .error-view h1, .assessment-heading h1 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.2; letter-spacing: -.04em; }
.login-card { padding: 26px; border: 1px solid var(--line); border-radius: 3px; background: transparent; box-shadow: none; }
.login-card input { font-size: 16px; }
.loading-view { display: block; width: min(760px, 100%); padding: 70px 0; }
.loading-view h1 { max-width: 22ch; }
.loader-panel { min-height: 0; margin-top: 46px; }
.scan-pixel { display: block; width: 10px; height: 10px; background: var(--accent); margin-bottom: 22px; animation: scan-pulse 1.2s steps(1,end) infinite; }
.stage-marker { border-radius: 0; }
.stage-list li { font-size: 13px; min-height: 44px; border-bottom-style: solid; }
.stage-list li[data-state="active"] { color: var(--notice-accent); }
.stage-list li[data-state="active"] .stage-marker { box-shadow: none; }
/* The approved report retains its thin orange frame and horizontal check index. */
body[data-page="result"] .terminal-shell { width: min(1488px, calc(100% - 40px)); min-height: calc(100svh - 40px); margin: 20px auto; padding: 0 40px; border: 1px solid var(--accent); border-radius: 4px; }
body[data-page="result"] .site-header { min-height: 112px; }
body[data-page="result"] .brand-lockup { order: 2; }
body[data-page="result"] .site-nav { order: 0; }
body[data-page="result"] .header-actions { order: 1; margin-left: auto; }
body[data-page="result"] .site-nav a:nth-child(2) { display: none; }
.result-view { width: min(1120px, 100%); padding: 54px 0 32px; }
.result-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 22px 50px; padding-bottom: 40px; border: 0; }
.result-hero .assessment-heading { grid-column: 1; grid-row: 1; }
.result-hero .eyebrow { margin-bottom: 16px; color: var(--muted); font-size: 11px; font-weight: 400; }
.result-hero h1 { max-width: none; font-size: 30px; overflow-wrap: anywhere; }
.assessment-heading > a { margin-top: 12px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.result-hero .verdict { grid-column: 1; grid-row: 2; max-width: 55ch; color: var(--text); font-size: clamp(19px, 2vw, 27px); line-height: 1.5; }
.overall-score { grid-column: 2; grid-row: 1 / 3; align-self: center; min-width: 190px; color: var(--text); }
.overall-score strong { font-size: 48px; line-height: 1; letter-spacing: -.04em; }
.overall-score small { font-size: 22px; margin-left: 8px; }
.overall-score > span { color: var(--muted); font-size: 10px; }
.overall-score > p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.report-scope { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.report-scope time { display: block; }
.report-checks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line-strong); }
.report-check { display: grid; grid-template-columns: 1fr auto; gap: 10px 4px; align-content: center; min-width: 0; padding: 20px 14px; color: var(--text); border-right: 1px solid var(--line); border-bottom: 3px solid transparent; text-decoration: none; font-size: 12px; }
.report-check:last-child { border-right: 0; }
.report-check:hover { background: var(--shade); }
.report-check[aria-selected="true"] { border-bottom-color: var(--accent); background: var(--shade); }
.check-label { grid-column: 1 / -1; }
.check-number { font-size: 10px; color: var(--muted); }
.check-points { font-size: 13px; grid-row: 2; grid-column: 2; }
.check-points > span { color: var(--muted); font-size: 11px; }
.check-status { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.check-status i { display: block; width: 8px; height: 8px; background: var(--warning); }
.report-check[data-status="ready"] i { background: var(--success); }
.report-check[data-status="not_ready"] i { background: var(--error); }
.report-check[data-status="unknown"] i { background: var(--unknown); }
.report-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; padding: 38px 0 44px; min-height: 310px; }
.finding-question { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.finding-copy h2 { margin: 0; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.3; font-weight: 400; letter-spacing: -.04em; }
.finding-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; margin: 14px 0 20px; }
.finding-meta .status-badge { min-height: 26px; font-size: 10px; font-weight: 400; }
.finding-summary { margin: 0; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.finding-improvement { margin-top: 28px; }
.finding-improvement h3, .finding-evidence h3 { margin: 0 0 14px; font-size: 11px; line-height: 1.4; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.finding-improvement ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.75; }
.finding-improvement li + li { margin-top: 8px; }
.finding-evidence { min-width: 0; padding-left: 34px; border-left: 1px solid var(--line); }
.finding-evidence .evidence-list { gap: 22px; }
.finding-evidence .evidence-list li { display: flex; flex-direction: column; gap: 6px; padding: 0; background: transparent; }
.finding-evidence .evidence-list a { color: var(--notice-accent); font-size: 12px; line-height: 1.6; }
.finding-evidence .evidence-list p, .finding-evidence .empty-evidence { font-size: 12px; line-height: 1.65; }
.method-note { display: block; padding: 0; border-block: 1px solid var(--line); }
.method-note summary { font-size: 12px; padding: 18px 0; color: var(--muted); }
.method-note > div { display: none; }
.method-note > p { font-size: 12px; padding-bottom: 22px; }
.result-actions { justify-content: flex-start; gap: 12px; padding-top: 24px; }
.result-actions .primary-button { background: transparent; border-color: transparent; color: var(--text); }
.result-actions .secondary-button { color: var(--text); border-color: var(--line); }
.feedback-section { display: block; margin-top: 12px; padding: 12px 0 0; border: 0; background: transparent; }
.feedback-section > div:first-child { display: none; }
.feedback-toggle { border: 0; padding-left: 0; color: var(--muted); }
.feedback-panel { margin-top: 18px; max-width: 760px; }
.feedback-form { padding: 24px; background: var(--surface-strong); border: 1px solid var(--line); }
.feedback-form input, .feedback-form textarea, .feedback-form select { font-size: 16px; }
@media (max-width: 1100px) {
  .terminal-shell { width: calc(100% - 64px); }
  .hero { width: 100%; grid-template-columns: minmax(0, 1fr) 170px; column-gap: 24px; }
  .hero h1 { font-size: clamp(35px, 4.2vw, 48px); }
  .brand-lockup > span { font-size: 24px; }
  .brand-lockup small { font-size: 11px; }
  .site-nav { gap: 12px; }
  body[data-page="result"] .terminal-shell { padding: 0 26px; }
  .report-check { padding: 16px 9px; font-size: 11px; }
}
@media (max-width: 767px) {
  .terminal-shell { width: calc(100% - 40px); }
  .site-header { min-height: 114px; flex-direction: column; justify-content: center; gap: 14px; padding: 24px 0; text-align: center; }
  .brand-lockup { justify-items: center; text-align: center; }
  .brand-lockup > span { font-size: 24px; }
  .site-nav { justify-content: center; width: 100%; gap: 20px; }
  .site-nav a { font-size: 12px; padding: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 34px; padding: 54px 0; }
  .hero h1 { font-size: clamp(28px, 6vw, 44px); letter-spacing: -.06em; }
  .hero-description { font-size: 16px; margin-top: 24px; }
  .assessment-form { grid-column: 1; grid-row: 2; }
  .product-entry { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .assessment-submit { grid-column: 1; width: 100%; }
  #product-input, #website-url { font-size: 16px; }
  .site-footer { padding: 18px 0; gap: 12px; }
  .footer-actions { justify-content: space-between; flex-wrap: wrap; width: 100%; gap: 10px; }
  .footer-actions nav { gap: 16px; flex-wrap: wrap; }
  .dialog-content { padding: 26px 22px; }
  .dialog-content h2 { font-size: 30px; }
  .dialog-actions { grid-template-columns: 1fr; }
  .login-view { display: grid; grid-template-columns: 1fr; padding: 50px 0; gap: 32px; }
  .login-card { padding: 20px; }
  .header-actions { margin-left: 0; }
  .loading-view { width: 100%; padding: 50px 0; }
  body[data-page="result"] .terminal-shell { width: calc(100% - 20px); margin: 10px auto; padding: 0 18px; }
  body[data-page="result"] .site-header .brand-lockup { order: -1; width: 100%; }
  .result-view { width: 100%; padding: 32px 0; }
  .result-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 28px; }
  .result-hero .verdict { grid-column: 1; grid-row: 2; font-size: 20px; }
  .overall-score { grid-column: 1; grid-row: 3; justify-self: start; justify-items: start; min-width: 0; }
  .overall-score strong { font-size: 38px; }
  .overall-score small { font-size: 20px; }
  .report-checks { grid-template-columns: minmax(0, 1fr); }
  .report-check { grid-template-columns: 1fr auto 74px; min-height: 52px; gap: 8px; padding: 12px 8px; border-right: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
  .report-check[aria-selected="true"] { border-left-color: var(--accent); border-bottom-color: var(--line); }
  .check-label { grid-column: 1; font-size: 12px; }
  .check-points { grid-row: 1; grid-column: 2; }
  .check-status { grid-column: 3; justify-self: end; }
  .report-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 0; }
  .finding-evidence { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .result-actions { flex-wrap: wrap; }
  .feedback-toggle { white-space: normal; text-align: left; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-typing-cursor, .scan-pixel { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  html, html[data-theme], body { --page: #fff; --surface: #fff; --surface-strong: #fff; --text: #231b16; --muted: #51463b; --line: #ccc; --notice-accent: #71300d; color-scheme: light; background: white; }
  body[data-page="result"] .terminal-shell { width: 100%; margin: 0; padding: 0; border: 0; }
  .result-view { width: 100%; padding: 24px 0; }
  .report-panel, .report-panel[hidden] { display: grid !important; break-inside: avoid; min-height: 0; }
  .report-checks, .header-actions, .site-nav, .result-actions, .feedback-section, .scanlines { display: none !important; }
  .report-panel + .report-panel { border-top: 1px solid #ccc; }
  .finding-evidence a { color: #231b16; }
  .method-note > p { display: block; }
  .site-footer { display: block; }
}

.header-actions .theme-toggle { display: inline-flex; }
.report-panel[data-status="ready"] .status-badge { color: var(--success); }
.report-panel[data-status="not_ready"] .status-badge { color: var(--error); }
.report-panel[data-status="unknown"] .status-badge { color: var(--unknown); }
@media print { .header-actions .theme-toggle { display: none; } }

@keyframes scan-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hero-typing-cursor { display: none; } }

/* Illustrated homepage footer, inspired by a continuous engraved panorama. */
body[data-page="home"] .terminal-shell { min-height: auto; }
body[data-page="home"] .hero { grid-template-columns: minmax(0, 1fr); min-height: 590px; }
body[data-page="home"] .hero-copy { width: 100%; max-width: 900px; justify-self: center; text-align: center; }
body[data-page="home"] .hero-dynamic-line { justify-content: center; }
body[data-page="home"] .hero-word-slot { width: auto; flex: 0 0 auto; }
body[data-page="home"] .hero-description { margin-inline: auto; }
body[data-page="home"] .assessment-form { max-width: 720px; justify-self: center; }
.landscape-footer { position: relative; overflow: hidden; background: var(--page); }
.landscape-footer-inner { position: relative; z-index: 1; width: min(1376px, calc(100% - 112px)); margin: auto; padding: 54px 4px 0; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.footer-brand { display: inline-block; margin-bottom: 20px; color: var(--text); font-size: 24px; letter-spacing: -.7px; text-decoration: none; }
.footer-identity p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links h2 { margin: 0 0 16px; font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--notice-accent); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover, .footer-brand:hover { color: var(--notice-accent); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 62px; }
.footer-bottom p { margin: 0; font-size: 11px; color: var(--muted); }
.footer-bottom .theme-toggle { min-width: 80px; min-height: 44px; }
.footer-landscape { margin-top: -18px; pointer-events: none; mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.footer-landscape img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
html[data-theme="dark"] .footer-landscape img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; opacity: .75; }
@media (max-width: 1100px) {
  .landscape-footer-inner { width: calc(100% - 64px); }
}
@media (max-width: 767px) {
  body[data-page="home"] .terminal-shell,
  html[data-theme="dark"] body[data-page="home"] .terminal-shell,
  .landscape-footer-inner { width: calc(100% - 40px); }
  body[data-page="home"] .hero { min-height: auto; padding: 60px 0 64px; }
  .landscape-footer-inner { padding: 36px 0 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-identity { display: none; }
  .footer-bottom { margin-top: 34px; gap: 12px; }
  .footer-landscape { margin-top: 0; }
  .footer-landscape img { height: 260px; width: 100%; object-fit: cover; object-position: 50% bottom; }
}
