:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #081121;
  color: #eef4ff;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #081121;
}

.audit-shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 32px 0 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f4f7fd;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #4ba4f5;
  color: #7abfff;
  font-size: 0.78rem;
  font-weight: 900;
}

.audit-card {
  margin-top: 42px;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(122, 191, 255, 0.22);
  border-radius: 8px;
  background: #101d32;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  color: #6eb8ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
legend {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  margin-top: 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
}

.audit-intro p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #bdcae2;
  font-size: 1.05rem;
  line-height: 1.65;
}

.progress {
  display: grid;
  gap: 10px;
  margin: 44px 0 34px;
  color: #91a9c9;
  font-size: 0.86rem;
  font-weight: 700;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #263650;
}

.progress-track span {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: #3d9ff3;
  transition: width 180ms ease;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  max-width: 600px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.28;
}

label {
  display: block;
  margin: 22px 0 8px;
  color: #d7e2f2;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 56px;
  border: 1px solid #3a4a65;
  border-radius: 6px;
  padding: 0 16px;
  background: #17253d;
  color: #f4f7fd;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid #4ba4f5;
  outline-offset: 2px;
}

.field-hint {
  margin: 12px 0 0;
  color: #91a9c9;
  line-height: 1.55;
}

.form-error {
  margin: 22px 0 0;
  color: #ffb6b6;
  line-height: 1.5;
}

.audit-result {
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid #32445f;
}

.audit-result h2 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.result-observations {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.result-observations p {
  margin: 0;
  padding: 16px;
  border-left: 3px solid #4ba4f5;
  background: #162640;
  color: #dce8f8;
  line-height: 1.58;
}

.result-plan {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #40668e;
  border-radius: 6px;
  background: #12233c;
}

.result-plan span {
  display: block;
  color: #a9bfdb;
  font-size: 0.88rem;
  font-weight: 700;
}

.result-plan strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.35rem;
}

.result-plan p {
  margin: 10px 0 0;
  color: #c7d6e9;
  line-height: 1.55;
}

.audit-result .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  border: 1px solid #4ba4f5;
  border-radius: 6px;
  padding: 0 22px;
  background: #1875c2;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button:hover { background: #2387dc; }

.button-secondary {
  border-color: #526582;
  background: transparent;
  color: #dce8f8;
}

.button-secondary:hover { background: #1b2a42; }

@media (max-width: 560px) {
  .audit-shell { width: min(100% - 24px, 760px); padding-top: 20px; }
  .audit-card { margin-top: 26px; }
  .form-actions .button { width: 100%; }
}

/* Shared landing identity for Audit Express. */
:root {
  --font-heading: "Sora", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --audit-cyan: #22d3ee;
  --audit-cyan-glow: rgba(34, 211, 238, 0.18);
  font-family: var(--font-body);
  background: #080d18;
}

body {
  background:
    radial-gradient(980px 480px at 10% 14%, rgba(34, 211, 238, 0.09), transparent 64%),
    radial-gradient(780px 440px at 96% 82%, rgba(251, 191, 36, 0.07), transparent 68%),
    linear-gradient(135deg, #080d18 0%, #0d1721 52%, #11110e 100%);
}

.audit-topbar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 128px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(760px 260px at 14% 48%, rgba(126, 157, 171, 0.42), transparent 66%),
    linear-gradient(100deg, #091018 0%, #1a2b38 46%, #071522 100%);
}

.audit-topbar-inner {
  display: flex;
  align-items: center;
  width: min(100% - 68px, 1180px);
  min-height: 128px;
  margin: 0 auto;
}

.audit-brand-link {
  display: block;
  width: 228px;
  aspect-ratio: 2320 / 1414;
  overflow: hidden;
  border-radius: 6px;
  line-height: 0;
}

.audit-brand-link:focus-visible {
  outline: 2px solid var(--audit-cyan);
  outline-offset: 4px;
}

.audit-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.audit-shell {
  width: min(100% - 32px, 820px);
  padding: 52px 0 72px;
}

.audit-card {
  margin-top: 0;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(145deg, rgba(15, 27, 42, 0.96), rgba(8, 14, 25, 0.96)) padding-box,
    linear-gradient(135deg, rgba(34, 211, 238, 0.42), rgba(251, 191, 36, 0.18)) border-box;
  box-shadow: 0 22px 66px rgba(0, 0, 0, 0.36), 0 0 42px rgba(34, 211, 238, 0.08);
}

h1, h2, legend {
  font-family: var(--font-heading);
  font-weight: 700;
}

.eyebrow {
  color: var(--audit-cyan);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  color: #f8fbff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
}

.audit-intro p {
  max-width: 620px;
  color: #b6c7d8;
}

.progress {
  gap: 12px;
  margin: 44px 0 36px;
}

.progress-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

#progressLabel {
  color: #f0f7ff;
  font-size: 0.9rem;
  font-weight: 500;
}

.progress-reassurance {
  max-width: 430px;
  color: #9fb4c9;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: right;
}

.progress-track {
  height: 7px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 8, 18, 0.64);
}

.progress-track span {
  background: linear-gradient(90deg, #22d3ee, #8be6f4);
  box-shadow: 0 0 16px var(--audit-cyan-glow);
  transition: width 280ms ease;
}

legend { color: #f8fbff; }

input, select {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(7, 17, 30, 0.8);
}

input:focus, select:focus {
  border-color: var(--audit-cyan);
  outline-color: rgba(34, 211, 238, 0.32);
}

.field-hint { color: #9fb4c9; }

.audit-result {
  border-top-color: rgba(148, 163, 184, 0.2);
}

.audit-result h2 { color: #f8fbff; }

.result-observations p {
  border-left-color: var(--audit-cyan);
  border-radius: 0 6px 6px 0;
  background: rgba(18, 38, 58, 0.78);
}

.result-next-step {
  margin: 24px 0 0;
  color: #c9d7e6;
  font-size: 1.04rem;
  line-height: 1.6;
}

.result-plan {
  margin-top: 16px;
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(11, 29, 43, 0.78);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

.result-plan span {
  color: #acd4dc;
  font-weight: 500;
}

.result-plan strong { font-family: var(--font-heading); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(125, 232, 255, 0.3);
  background: var(--audit-cyan);
  color: #07111e;
  box-shadow: 0 10px 22px var(--audit-cyan-glow);
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 500;
  text-align: center;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.button:hover, .button:focus-visible {
  background: var(--audit-cyan);
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(34, 211, 238, 0.26);
}

.button-secondary {
  border-color: rgba(148, 163, 184, 0.34);
  background: transparent;
  color: #dce8f8;
  box-shadow: none;
}

.button-secondary:hover, .button-secondary:focus-visible {
  background: rgba(148, 163, 184, 0.11);
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  .audit-card { animation: auditEnter 460ms ease-out both; }
  @keyframes auditEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 640px) {
  .audit-topbar, .audit-topbar-inner { min-height: 112px; }
  .audit-topbar-inner { justify-content: center; width: calc(100% - 32px); }
  .audit-brand-link { width: min(74vw, 232px); }
  .audit-brand-logo { transform: none; }
  .audit-shell { width: min(100% - 24px, 820px); padding: 32px 0 48px; }
  .audit-card { padding: 28px 20px; }
  .progress-summary { align-items: flex-start; flex-direction: column; gap: 6px; }
  .progress-reassurance { max-width: none; text-align: left; }
  .form-actions .button { width: 100%; }
}

.audit-step[hidden],
.audit-result[hidden],
.button[hidden] {
  display: none !important;
}
