:root {
  --at-primary: #cd5449;
  --at-primary-dark: #a83e35;
  --at-ink: #20252b;
  --at-muted: #68717b;
  --at-surface: #ffffff;
  --at-background: #f5f3f1;
  --at-border: #e5dfda;
  --at-footer: #252a30;
  --at-radius-lg: 1.5rem;
  --at-radius-md: 1rem;
  --at-shadow: 0 1rem 3rem rgba(32, 37, 43, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--at-background);
  color: var(--at-ink);
}

a {
  text-underline-offset: 0.2em;
}

.at-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.at-main {
  flex: 1 0 auto;
}

.at-site-header {
  position: sticky;
  z-index: 1030;
  top: 0;
}

.at-navbar {
  min-height: 5rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--at-border);
  box-shadow: 0 0.25rem 1.5rem rgba(32, 37, 43, 0.05);
  backdrop-filter: blur(12px);
}

.at-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--at-ink);
}

.at-brand:hover,
.at-brand:focus-visible {
  color: var(--at-primary-dark);
}

.at-brand-logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.at-brand-copy {
  display: grid;
  line-height: 1.05;
}

.at-brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.at-brand-copy small {
  margin-top: 0.3rem;
  color: var(--at-muted);
  font-size: 0.75rem;
}

.at-nav-link {
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--at-ink);
  font-weight: 600;
}

.at-nav-link:hover,
.at-nav-link:focus-visible {
  background: rgba(205, 84, 73, 0.1);
  color: var(--at-primary-dark);
}

.at-menu-toggle {
  border-color: var(--at-border);
}

.at-menu-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(205, 84, 73, 0.25);
}

.at-dropdown {
  padding: 0.5rem;
  border-color: var(--at-border);
  border-radius: 0.85rem;
  box-shadow: var(--at-shadow);
}

.at-dropdown .dropdown-item {
  border-radius: 0.5rem;
}

.at-dropdown .dropdown-item:hover,
.at-dropdown .dropdown-item:focus {
  background: rgba(205, 84, 73, 0.1);
  color: var(--at-primary-dark);
}

.at-hero {
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius-lg);
  background:
    radial-gradient(circle at 88% 15%, rgba(205, 84, 73, 0.2), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f9f5f2 100%);
  box-shadow: var(--at-shadow);
}

.at-hero h1 {
  max-width: 13ch;
  letter-spacing: -0.04em;
}

.at-hero .lead {
  max-width: 39rem;
  color: var(--at-muted);
}

.at-eyebrow,
.at-footer-kicker,
.at-card-number {
  margin-bottom: 0.75rem;
  color: var(--at-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.at-how-it-works,
.at-vehicle-card,
.at-legal-card {
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius-md);
  background: var(--at-surface);
  box-shadow: 0 0.75rem 2rem rgba(32, 37, 43, 0.07);
}

.at-how-it-works {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.at-steps {
  display: grid;
  gap: 0.85rem;
  padding-left: 1.25rem;
}

.at-vehicle-section {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  scroll-margin-top: 6rem;
}

.at-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.at-vehicle-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 2rem);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.at-vehicle-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--at-shadow);
}

.at-status {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(205, 84, 73, 0.11);
  color: var(--at-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.at-empty-state {
  padding: 2rem;
  border: 1px dashed var(--at-border);
  border-radius: var(--at-radius-md);
  color: var(--at-muted);
  text-align: center;
}

.at-legal-section {
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.at-legal-card {
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.at-legal-card h1 {
  margin-bottom: 2.5rem;
  font-size: clamp(2.25rem, 7vw, 4rem);
  hyphens: auto;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.at-legal-card h2,
.at-legal-card h3 {
  color: var(--at-ink) !important;
}

.at-legal-card h2 {
  font-size: 1.45rem;
}

.at-legal-card h3 {
  font-size: 1.15rem;
}

.at-legal-card p,
.at-legal-card li {
  line-height: 1.75;
}

.at-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--at-footer);
  color: #c8cdd2;
}

.at-footer-kicker {
  color: #eea39c;
}

.at-footer a {
  color: #f1f3f5;
}

.at-footer a:hover,
.at-footer a:focus-visible {
  color: #ffffff;
}

.at-footer address {
  line-height: 1.75;
}

.at-footer-links {
  display: grid;
  gap: 0.65rem;
}

.at-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aeb5bb;
}

.btn-primary {
  --bs-btn-bg: var(--at-primary);
  --bs-btn-border-color: var(--at-primary);
  --bs-btn-hover-bg: var(--at-primary-dark);
  --bs-btn-hover-border-color: var(--at-primary-dark);
  --bs-btn-active-bg: var(--at-primary-dark);
  --bs-btn-active-border-color: var(--at-primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--at-primary-dark);
  --bs-btn-border-color: var(--at-primary);
  --bs-btn-hover-bg: var(--at-primary);
  --bs-btn-hover-border-color: var(--at-primary);
}

@media (max-width: 991.98px) {
  .at-navbar .navbar-collapse {
    max-height: calc(100vh - 6rem);
    margin-top: 0.75rem;
    padding: 0.75rem 0 1rem;
    overflow-y: auto;
    border-top: 1px solid var(--at-border);
  }

  .at-nav-link {
    width: 100%;
    padding: 0.75rem;
    text-align: left;
  }

  .at-dropdown {
    margin: 0 0.75rem 0.5rem;
    box-shadow: none;
  }
}

@media (max-width: 575.98px) {
  .at-navbar {
    min-height: 4.5rem;
  }

  .at-brand-logo {
    width: 2.75rem;
    height: 2.75rem;
  }

  .at-brand-copy small {
    display: none;
  }

  .at-section-heading {
    display: block;
  }

  .at-section-heading > p {
    margin-top: 0.75rem;
  }

  .at-vehicle-card .btn {
    flex: 1 1 auto;
  }

  .at-legal-card h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .at-vehicle-card {
    transition: none;
  }
}
