/* ============================================================
   THE AUTO OUTLET — design tokens
   Palette:   carbon #0A0A0C · panel #17181B · panel-2 #1F2023
              red #E4002B · red-dark #9C0019 · white #F5F4F2
              steel #8A8D93 · line #2A2B2F
   Type:      Teko (display) · Inter (body) · JetBrains Mono (data/labels)
   Signature: skewed "livery stripe" section dividers + carbon weave texture
   ============================================================ */

:root {
  --carbon: #0a0a0c;
  --panel: #17181b;
  --panel-2: #1f2023;
  --red: #e4002b;
  --red-dark: #9c0019;
  --white: #f5f4f2;
  --steel: #8a8d93;
  --steel-dim: #55575c;
  --line: #2a2b2f;

  --font-display: "Teko", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.95;
}

p {
  margin: 0;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- carbon weave texture ---------- */
.carbon-bg {
  background-color: var(--carbon);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 2px, transparent 2px, transparent 5px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 2px, transparent 2px, transparent 5px);
}

.panel-bg {
  background-color: var(--panel);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 5px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 5px);
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

/* ---------- signature: livery stripe divider ---------- */
.stripe-divider {
  position: relative;
  height: 26px;
  overflow: hidden;
  background: var(--carbon);
}

.stripe-divider span {
  position: absolute;
  left: -10%;
  width: 120%;
  transform: skewY(-1.6deg);
}

.stripe-divider .bar-red {
  top: 6px;
  height: 10px;
  background: linear-gradient(90deg, var(--red-dark), var(--red) 60%, var(--red-dark));
}

.stripe-divider .bar-line {
  top: 18px;
  height: 2px;
  background: var(--line);
}

.stripe-divider.flip span {
  transform: skewY(1.6deg);
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.brand .brand-mark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.brand .brand-mark span {
  color: var(--red);
}

.brand .brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--steel);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--steel);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(228, 0, 43, 0.5);
}

.btn-primary:hover {
  background: #ff1638;
  box-shadow: 0 6px 18px -4px rgba(228, 0, 43, 0.55);
}

.btn-outline {
  background: transparent;
  border-color: var(--steel-dim);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--steel);
  padding: 15px 10px;
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 70px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(52px, 8vw, 104px);
  margin-top: 18px;
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  color: var(--steel);
  font-size: 18px;
  max-width: 46ch;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  padding: 30px 28px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 3px, 0 3px);
}

.readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}

.readout:last-child {
  border-bottom: none;
}

.readout .r-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.readout .r-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

.readout .r-value.accent {
  color: var(--red);
}

.gauge {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- sections ---------- */
.section {
  padding: 84px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin-top: 14px;
}

.section-head p {
  color: var(--steel);
  margin-top: 16px;
  font-size: 16px;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--panel);
  padding: 36px 30px;
  position: relative;
}

.step .step-num {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 30px;
  margin-top: 16px;
}

.step p {
  color: var(--steel);
  margin-top: 12px;
  font-size: 15px;
}

/* ---------- comparison ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.compare-col {
  padding: 34px 32px;
}

.compare-col + .compare-col {
  border-left: 1px solid var(--line);
}

.compare-col.us {
  background: linear-gradient(180deg, rgba(228, 0, 43, 0.08), transparent 40%);
}

.compare-col h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--steel);
  text-transform: uppercase;
  font-weight: 600;
}

.compare-col.us h4 {
  color: var(--red);
}

.compare-col ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-col li {
  font-size: 15px;
  padding-left: 24px;
  position: relative;
  color: var(--steel);
}

.compare-col.us li {
  color: var(--white);
}

.compare-col li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--steel-dim);
}

.compare-col.us li::before {
  content: "\2713";
  color: var(--red);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 74px 0;
  text-align: center;
  background: var(--panel);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(228, 0, 43, 0.14) 50%, transparent 60%);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(36px, 5vw, 60px);
}

.cta-band p {
  color: var(--steel);
  margin-top: 14px;
  font-size: 17px;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  text-decoration: none;
  color: var(--steel);
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-dim);
  letter-spacing: 0.04em;
}

/* ---------- forms (instrument-panel styling) ---------- */
.form-shell {
  max-width: 720px;
  margin: 0 auto;
}

.form-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 40px;
  position: relative;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
}

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

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 9px;
}

.field label .req {
  color: var(--red);
}

.field-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-dim);
  margin-top: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--carbon);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.18);
}

.field input.invalid,
.field select.invalid {
  border-color: #ff6b6b;
}

.field-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 7px;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error select {
  border-color: #ff6b6b;
}

.ssn-field {
  position: relative;
}

.ssn-toggle {
  position: absolute;
  right: 12px;
  top: 37px;
  background: none;
  border: none;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}

.ssn-toggle:hover {
  color: var(--white);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  margin-top: 2px;
  flex-shrink: 0;
}

.check-row label {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--steel);
  text-transform: none;
  letter-spacing: 0;
}

.toggle-pair {
  display: flex;
  gap: 10px;
}

.toggle-pair button {
  flex: 1;
  background: var(--carbon);
  border: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px;
  cursor: pointer;
  border-radius: var(--radius);
}

.toggle-pair button.active {
  border-color: var(--red);
  color: var(--white);
  background: rgba(228, 0, 43, 0.12);
}

fieldset {
  border: none;
  margin: 0 0 30px;
  padding: 0;
}

.hidden {
  display: none !important;
}

/* wizard */
.wizard-track {
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
}

.wizard-track .tick {
  flex: 1;
  height: 3px;
  background: var(--line);
  position: relative;
}

.wizard-track .tick.done,
.wizard-track .tick.active {
  background: var(--red);
}

.wizard-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.wizard-meta .w-step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.wizard-meta .w-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-dim);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 26px;
}

.review-list .r-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.review-list .r-row:last-child {
  border-bottom: none;
}

.review-list .r-row span:first-child {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-bar {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.04em;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--red);
}

.success-panel {
  text-align: center;
  padding: 60px 30px;
}

.success-panel .s-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-panel h3 {
  font-size: 36px;
}

.success-panel p {
  color: var(--steel);
  margin-top: 14px;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.page-head {
  padding: 60px 0 20px;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-top: 14px;
}

.page-head p {
  color: var(--steel);
  max-width: 52ch;
  margin: 16px auto 0;
}

.note-box {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--panel-2);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--steel);
  margin-bottom: 26px;
}

.note-box strong {
  color: var(--white);
}

/* login page */
.login-wrap {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 42px 36px;
  position: relative;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
}

.login-head {
  text-align: center;
  margin-bottom: 30px;
}

.login-head .eyebrow {
  justify-content: center;
}

.login-head h1 {
  font-size: 40px;
  margin-top: 12px;
}

.login-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
}

.login-foot a {
  color: var(--steel);
  text-decoration: none;
}

.login-foot a:hover {
  color: var(--red);
}

.inline-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--steel-dim);
  text-align: center;
  margin-top: 22px;
  line-height: 1.6;
}

.system-msg {
  display: none;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--panel-2);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  margin-bottom: 22px;
  line-height: 1.6;
}

.system-msg.show {
  display: block;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

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

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

  .compare-col + .compare-col {
    border-left: none;
    border-top: 1px solid var(--line);
  }

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

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 26px 20px;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }
}

/* ---------- mobile nav drawer ---------- */
.mobile-drawer {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--carbon);
  z-index: 39;
  padding: 30px 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer a {
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 30px;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-drawer .btn {
  margin-top: 20px;
}
