@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap");

:root {
  --background: #09090b;
  --background-soft: #0f0f14;
  --card: #0f0f14;
  --card-muted: #18181b;
  --foreground: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #d4d4d8;
  --border: #27272a;
  --primary: #c00212;
  --primary-soft: rgba(192, 2, 18, 0.14);
  --cta: #fc6703;
  --cta-hover: #e85d02;
  --cta-foreground: #ffffff;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 86% 6%, rgba(192, 2, 18, 0.18), transparent 34rem),
    radial-gradient(circle at 10% 20%, rgba(252, 103, 3, 0.08), transparent 28rem),
    var(--background);
  color: var(--foreground);
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  opacity: 0.35;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  gap: 0;
  margin: 0 auto;
  max-width: 1280px;
  min-height: 100vh;
  padding: 96px 18px 40px;
}

.intro-panel,
.form-card,
.report-card {
  background: rgba(15, 15, 20, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-panel {
  border-bottom: 0;
  padding: 32px 24px;
  position: relative;
}

.intro-panel::before,
.report-card::before {
  background: var(--primary);
  content: "";
  display: block;
  height: 6px;
  left: 24px;
  position: absolute;
  top: 24px;
  width: 64px;
}

.brand-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 54px;
}

.brand-mark {
  align-items: baseline;
  background: transparent;
  color: var(--foreground);
  display: inline-flex;
  font-family: Oswald, Inter, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  height: auto;
  letter-spacing: 0.075em;
  padding: 0;
  text-transform: uppercase;
}

.brand-mark::first-letter {
  color: var(--foreground);
}

.brand-mark span {
  color: var(--primary);
  margin-left: 0.25em;
}

.eyebrow {
  color: var(--muted);
  font-family: Oswald, Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Oswald, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.65rem, 5vw, 2.45rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.intro-panel > p {
  color: var(--muted-2);
  font-size: 1.02rem;
  max-width: 720px;
}

.belief-box,
.summary-callout {
  background: rgba(9, 9, 11, 0.74);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.55;
  margin-top: 28px;
  padding: 18px;
}

.form-card {
  padding: 0;
}

.progress-wrap {
  background: rgba(9, 9, 11, 0.55);
  border-bottom: 1px solid var(--border);
  padding: 20px 20px 18px;
}

.progress-meta {
  color: var(--muted);
  display: flex;
  font-family: Oswald, Inter, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.progress-track {
  background: var(--card-muted);
  border-radius: 0;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  background: var(--primary);
  border-radius: 0;
  height: 100%;
  transition: width 180ms ease;
  width: 12.5%;
}

form {
  padding: 24px 20px 0;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.section-copy {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 28px;
  max-width: 720px;
}

.field-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.field-grid.single {
  grid-template-columns: 1fr;
}

label span,
legend {
  color: var(--foreground);
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 9px;
}

input,
select,
textarea {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  outline: none;
  padding: 14px 14px;
  width: 100%;
}

select {
  color-scheme: dark;
}

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

input::placeholder,
textarea::placeholder {
  color: #71717a;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 2, 18, 0.22);
}

.choice-list {
  display: grid;
  gap: 16px;
}

fieldset {
  background: rgba(9, 9, 11, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
  padding: 18px;
}

.segmented {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.segmented label {
  cursor: pointer;
}

.segmented input {
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

.segmented span {
  align-items: center;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted-2);
  display: flex;
  font-weight: 700;
  justify-content: center;
  min-height: 50px;
  padding: 10px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.segmented input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--foreground);
}

.segmented span:hover {
  border-color: rgba(192, 2, 18, 0.65);
  transform: translateY(-1px);
}

.form-actions {
  background: rgba(9, 9, 11, 0.55);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 30px -20px 0;
  padding: 18px 20px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-family: Oswald, Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.09em;
  min-height: 52px;
  padding: 13px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.button.primary {
  background: var(--cta);
  color: var(--cta-foreground);
}

.button.primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 16px 40px rgba(252, 103, 3, 0.28);
}

.button.secondary {
  background: rgba(9, 9, 11, 0.25);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--foreground);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.is-hidden {
  display: none;
}

.form-error {
  color: var(--danger);
  font-weight: 700;
  margin-top: 18px;
  min-height: 22px;
}

.audit-loading {
  align-items: center;
  background:
    radial-gradient(circle at 78% 8%, rgba(192, 2, 18, 0.28), transparent 28rem),
    rgba(0, 0, 0, 0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 20;
}

.audit-loading.is-active {
  opacity: 1;
  pointer-events: all;
}

.audit-loading-card {
  background: rgba(15, 15, 20, 0.98);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow);
  max-width: 560px;
  padding: 34px;
  width: min(100%, 560px);
}

.loading-mark {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  height: 54px;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  width: 54px;
}

.loading-mark::before {
  animation: spin 1s linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--cta);
  content: "";
  height: 34px;
  position: absolute;
  width: 34px;
}

.loading-mark span {
  background: var(--primary);
  display: block;
  height: 8px;
  width: 8px;
}

.loading-kicker {
  color: var(--muted);
  font-family: Oswald, Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.audit-loading h2 {
  font-size: clamp(2rem, 7vw, 3.7rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

.audit-loading p {
  color: var(--muted-2);
  line-height: 1.6;
}

.loading-track {
  background: rgba(255, 255, 255, 0.08);
  height: 8px;
  margin: 26px 0 22px;
  overflow: hidden;
}

.loading-bar {
  animation: loadingSweep 1.45s ease-in-out infinite;
  background: linear-gradient(90deg, var(--primary), var(--cta));
  height: 100%;
  width: 42%;
}

.loading-steps {
  color: var(--muted);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.loading-steps li {
  align-items: center;
  display: flex;
  gap: 10px;
}

.loading-steps li::before {
  background: var(--primary);
  content: "";
  height: 7px;
  width: 7px;
}

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

@keyframes loadingSweep {
  0% {
    transform: translateX(-110%);
  }

  50% {
    transform: translateX(70%);
  }

  100% {
    transform: translateX(250%);
  }
}

.report-body {
  background: var(--background);
}

.report-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px 18px 40px;
}

.report-hero {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-top: 18px;
}

.report-card {
  padding: 34px 22px 22px;
  position: relative;
}

.report-head {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.score-panel {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--foreground);
  padding: 24px;
}

.score-number {
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(3.4rem, 14vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 0.92;
}

.score-number span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.65rem;
}

.status-pill {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  display: inline-flex;
  font-family: Oswald, Inter, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 18px;
  padding: 9px 12px;
  text-transform: uppercase;
}

.report-grid,
.problem-grid,
.fix-grid,
.website-score-grid {
  display: grid;
  gap: 16px;
}

.metric-card,
.insight-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.metric-card:hover,
.insight-card:hover {
  border-color: rgba(192, 2, 18, 0.55);
  transform: translateY(-2px);
}

.metric-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.metric-name {
  font-family: Oswald, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-score {
  color: var(--primary);
  font-family: Oswald, Inter, sans-serif;
  font-weight: 700;
}

.mini-track {
  background: var(--card-muted);
  border-radius: var(--radius);
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
}

.mini-bar {
  background: var(--primary);
  height: 100%;
}

.report-section {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding-top: 28px;
}

.opportunity {
  align-items: flex-start;
  background: var(--background);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 20px;
}

.opportunity strong {
  font-family: Oswald, Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.website-findings {
  margin-top: 18px;
}

.website-findings ul {
  color: var(--muted-2);
  line-height: 1.65;
  margin: 0;
  padding-left: 1.2rem;
}

.website-opportunities {
  margin-top: 16px;
}

.cta-strip {
  align-items: center;
  background: var(--primary);
  border-radius: var(--radius);
  color: var(--foreground);
  display: grid;
  gap: 18px;
  margin-top: 32px;
  padding: 24px;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0;
}

.cta-strip .button.primary {
  background: var(--foreground);
  color: var(--primary);
}

.cta-strip .button.primary:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.empty-report {
  padding: 48px 0;
  text-align: center;
}

@media (min-width: 760px) {
  .app-shell {
    grid-template-columns: 0.88fr 1.12fr;
    padding: 128px 32px 64px;
  }

  .intro-panel {
    border-bottom: 1px solid var(--border);
    border-right: 0;
    min-height: calc(100vh - 192px);
    padding: 48px;
    position: sticky;
    top: 64px;
  }

  .form-card {
    min-height: calc(100vh - 192px);
  }

  .progress-wrap {
    padding: 24px 28px 20px;
  }

  form {
    padding: 34px 28px 0;
  }

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

  .form-actions {
    margin: 34px -28px 0;
    padding: 20px 28px;
  }

  .report-shell {
    padding: 42px 32px 70px;
  }

  .report-card {
    padding: 46px;
  }

  .report-head {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid,
  .fix-grid,
  .website-score-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .website-score-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.05;
  }

  h3 {
    font-size: 1.1rem;
    line-height: 1.12;
  }

  .intro-panel > p,
  .section-copy {
    font-size: 0.98rem;
  }

  .belief-box,
  .summary-callout {
    font-size: 0.96rem;
  }

  label span,
  legend {
    font-size: 0.82rem;
  }

  .button {
    font-size: 0.88rem;
    min-height: 48px;
    padding: 12px 18px;
  }

  .score-number {
    font-size: 5rem;
  }

  .intro-panel h1 {
    font-size: 2.65rem;
    line-height: 1.06;
    max-width: 420px;
  }

  .form-step h2 {
    font-size: 2rem;
    line-height: 1.08;
  }
}

@media (min-width: 1120px) {
  .app-shell {
    padding-left: 48px;
    padding-right: 48px;
  }

  .intro-panel {
    padding: 42px;
  }

  form {
    padding-top: 30px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  .print-button,
  .cta-strip .button {
    display: none;
  }

  .report-card,
  .intro-panel,
  .form-card,
  .metric-card,
  .insight-card {
    box-shadow: none;
  }
}
