:root {
  color-scheme: light;
  --ink: #1A1A1A;
  --muted: #555f6d;
  --line: #d8dce3;
  --panel: #FFFFFF;
  --soft: #F2F2F2;
  --brand-blue: #0B2D92;
  --brand-blue-dark: #071f66;
  --brand-red: #F01B14;
  --brand-red-soft: #fff0ef;
  --brand-gold: #F4C000;
  --brand-gold-soft: #fff8da;
  --accent: var(--brand-blue);
  --accent-strong: var(--brand-blue-dark);
  --warning: var(--brand-red);
  --warning-bg: var(--brand-red-soft);
  --good: var(--brand-blue);
  --good-bg: #eef3ff;
  --shadow: 0 14px 36px rgba(11, 45, 146, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.app-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.brand-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  color: #fff;
  background: var(--brand-blue);
  border-bottom: 6px solid var(--brand-gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.brand-kicker {
  margin: 0 0 8px;
  color: var(--brand-gold);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-header h1 {
  color: #fff;
}

.brand-subtitle {
  margin: 10px 0 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  color: var(--brand-blue);
  font-size: 1.45rem;
}

h3 {
  color: var(--brand-blue);
  font-size: 1rem;
}

p {
  color: var(--muted);
}

.subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.intro-message {
  max-width: 760px;
  margin: 12px 0 0;
}

.panel,
.results {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand-blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.section-description {
  margin: 8px 0 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 45, 146, 0.14);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.question {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.answer-help {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--brand-gold-soft);
  border: 1px solid #efd56b;
  border-radius: 8px;
}

.answer-help p {
  margin: 0 0 8px;
}

.answer-help ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.question:first-of-type {
  margin-top: 16px;
}

.question-text {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 700;
}

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

.answer-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 400;
}

.answer-row input {
  width: auto;
  min-height: auto;
}

.actions {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}

button {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

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

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  color: var(--accent);
  background: #fff;
  border-color: var(--brand-blue);
}

.secondary-button:hover {
  border-color: var(--accent);
}

.hidden {
  display: none;
}

.score-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: center;
}

.score-number {
  color: var(--accent);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
}

.level {
  display: inline-block;
  margin: 8px 0;
  padding: 6px 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-weight: 700;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.result-box {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-box ul {
  padding-left: 20px;
}

.report-header {
  padding-bottom: 20px;
  border-bottom: 3px solid var(--brand-blue);
}

.report-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.report-header p:last-child {
  margin-bottom: 0;
}

.results-disclaimer {
  margin-top: 14px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--brand-gold-soft);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.report-section {
  margin-top: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
}

.report-section p:last-child,
.report-section ul:last-child {
  margin-bottom: 0;
}

.section-score-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.section-score-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.section-score-list li:last-child {
  border-bottom: 0;
}

.section-score-list strong {
  color: var(--accent);
  white-space: nowrap;
}

.learn-more-group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.learn-more-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.learn-more-group h4 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1rem;
}

.learn-more-group ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.learn-more-group li strong,
.learn-more-group li span {
  display: block;
}

.learn-more-group li span {
  margin-top: 4px;
  color: var(--muted);
}

.reminder {
  background: var(--brand-gold-soft);
  border-left-color: var(--brand-gold);
}

.lead-capture {
  background: #fff;
}

.review-focus {
  background: #fff;
}

.review-focus ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.handoff-section {
  background: #fff;
}

.handoff-checklist {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 20px;
}

.handoff-closing {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 700;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.wide-field,
.lead-form button {
  grid-column: 1 / -1;
}

.lead-form button {
  justify-self: start;
}

.confirmation-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: var(--brand-blue);
  background: var(--good-bg);
  border: 1px solid #bdcfff;
  border-radius: 8px;
  font-weight: 700;
}

.education-note {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

.closing-line {
  margin: 22px 0 0;
  padding: 18px 20px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--brand-blue);
  border-left: 6px solid var(--brand-gold);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

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

.report-actions h3 {
  margin-right: auto;
}

.warning {
  background: var(--warning-bg);
  border-color: #ffbab7;
  border-left-color: var(--brand-red);
}

.warning h3 {
  color: var(--warning);
}

.good {
  background: var(--good-bg);
  border-color: #bdcfff;
}

.good h3 {
  color: var(--good);
}

@media (max-width: 760px) {
  .brand-header {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 92px;
    height: 92px;
  }

  .intro,
  .actions {
    flex-direction: column;
  }

  .field-grid,
  .lead-form,
  .answer-row,
  .answer-help ul,
  .score-card,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .section-score-list li,
  .report-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .secondary-button,
  .primary-button {
    width: 100%;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.65in;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 10.5pt;
    line-height: 1.35;
  }

  body::after {
    content: "Before You Buy: Food Truck & Trailer Readiness Check";
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding-top: 8px;
    color: #555;
    border-top: 1px solid #bbb;
    font-size: 9pt;
    text-align: center;
  }

  .actions,
  #printButton,
  #readinessForm,
  .report-actions,
  .lead-form,
  .confirmation-message {
    display: none;
  }

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

  .intro {
    display: block;
    padding: 0 0 12px;
    border-bottom: 2px solid #111;
  }

  .brand-header {
    display: block;
    margin: 0 0 10px;
    padding: 0 0 10px;
    color: #111;
    background: #fff;
    border: 0;
    border-bottom: 2px solid #111;
    border-radius: 0;
  }

  .brand-mark {
    display: none;
  }

  .brand-kicker {
    color: #111;
    font-size: 9pt;
  }

  .brand-header h1 {
    color: #111;
  }

  .brand-subtitle {
    color: #333;
    font-size: 10.5pt;
  }

  .intro .eyebrow,
  .intro-message {
    display: none;
  }

  h1 {
    max-width: none;
    font-size: 22pt;
  }

  h2,
  .report-header h2 {
    font-size: 17pt;
  }

  h3 {
    font-size: 11.5pt;
  }

  p {
    color: #222;
  }

  .subtitle {
    max-width: none;
    margin-top: 6px;
    color: #333;
    font-size: 10.5pt;
  }

  .panel,
  .results,
  .result-box,
  .report-section,
  .closing-line {
    border-color: #bbb;
    border-left-color: #bbb;
    border-top-color: #bbb;
    border-radius: 0;
  }

  .results {
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    background: #fff;
  }

  .report-header {
    padding-bottom: 10px;
  }

  .report-section {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff;
  }

  .results-disclaimer {
    margin-top: 8px;
    padding: 8px 10px;
    border-left-color: #111;
    background: #fff;
  }

  .score-card {
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
  }

  .score-number {
    color: #111;
    font-size: 28pt;
  }

  .level {
    color: #111;
    background: #fff;
    border: 1px solid #111;
  }

  .section-score-list {
    gap: 0;
  }

  .section-score-list li {
    padding: 6px 0;
  }

  .learn-more-group {
    margin-top: 10px;
    padding-top: 10px;
  }

  .learn-more-group h4,
  .section-score-list strong,
  .warning h3,
  .good h3 {
    color: #111;
  }

  .lead-capture {
    display: none;
  }

  .closing-line {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 11pt;
    background: #fff;
  }

  .report-section,
  .report-header,
  .closing-line {
    break-inside: avoid;
  }
}
