/* ============================================================
   OmNom Drive Pages — Styles

   Dedicated visual system for the public driver-signup funnel and
   temporary download handoff. The aesthetic leans into high-visibility
   roadway graphics, warm asphalt neutrals, and punchy orange wayfinding
   so the driver experience feels distinct from the restaurant homepage
   while still clearly belonging to OmNom.
   ============================================================ */

.drive-page {
  --drive-asphalt: #221d19;
  --drive-ink: #15110d;
  --drive-amber: #ff8b38;
  --drive-amber-deep: #d85d18;
  --drive-sand: #fff4e8;
  --drive-roadline: #ffd96b;
  --drive-cream: #fffaf4;
  --drive-card: #fffefa;
  --drive-shadow: 0 28px 90px rgba(34, 29, 25, 0.12);
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 217, 107, 0.24),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 139, 56, 0.2),
      transparent 30%
    ),
    linear-gradient(180deg, #fff6eb 0%, #fffaf4 36%, #fff2e3 100%);
}

.drive-page .nav.scrolled {
  background: rgba(255, 250, 244, 0.9);
}

.drive-hero {
  position: relative;
  padding: 140px 32px 88px;
}

.drive-hero::before {
  content: "";
  position: absolute;
  inset: 110px 32px 30px;
  border-radius: 42px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.48)
    ),
    repeating-linear-gradient(
      115deg,
      rgba(255, 217, 107, 0.12) 0 14px,
      rgba(255, 217, 107, 0) 14px 28px
    );
  border: 1px solid rgba(34, 29, 25, 0.08);
  box-shadow: var(--drive-shadow);
}

.drive-hero-grid,
.drive-rules-layout,
.drive-signup-layout {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 42px;
}

.drive-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px);
  align-items: center;
}

.drive-kicker {
  font-family: "Archivo Black", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drive-amber-deep);
  margin-bottom: 18px;
}

.drive-badge {
  background: rgba(255, 217, 107, 0.45);
  color: var(--drive-ink);
}

.drive-hero-copy h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  text-transform: uppercase;
  color: var(--drive-ink);
}

.drive-hero-copy h1 span {
  color: var(--drive-amber-deep);
}

.drive-lead {
  max-width: 620px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: rgba(21, 17, 13, 0.78);
}

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

.drive-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.drive-stat-card,
.drive-benefit-card,
.drive-rule-item,
.drive-form,
.drive-download-card {
  background: var(--drive-card);
  border: 1px solid rgba(34, 29, 25, 0.08);
  border-radius: 28px;
  box-shadow: var(--drive-shadow);
}

.drive-stat-card {
  padding: 18px 18px 20px;
  display: grid;
  gap: 4px;
}

.drive-stat-card strong {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.7rem;
  color: var(--drive-ink);
}

.drive-stat-card span {
  color: rgba(21, 17, 13, 0.66);
  font-size: 0.92rem;
}

.drive-visual-shell {
  position: relative;
  min-height: 620px;
}

.drive-route-line {
  position: absolute;
  inset: 42px 40px auto 22px;
  height: 540px;
  border: 3px dashed rgba(255, 217, 107, 0.7);
  border-radius: 48px;
  transform: rotate(6deg);
}

.drive-visual-card {
  position: absolute;
  inset: 40px 36px 110px 60px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(255, 139, 56, 0.12), transparent 55%),
    linear-gradient(180deg, #fff, #ffeedd);
  box-shadow: 0 26px 80px rgba(34, 29, 25, 0.2);
  transform: rotate(-3deg);
  padding: 18px;
}

.drive-visual-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.drive-benefits,
.drive-signup {
  position: relative;
}

.drive-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.drive-benefit-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.drive-benefit-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 139, 56, 0.09);
}

.drive-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 217, 107, 0.38);
  color: var(--drive-amber-deep);
  font-family: "Archivo Black", sans-serif;
  margin-bottom: 18px;
}

.drive-benefit-card h3,
.drive-signup-intro h2,
.drive-rules-copy h2,
.drive-download-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--drive-ink);
}

.drive-benefit-card p,
.drive-rules-copy p,
.drive-signup-intro p,
.drive-rule-item p,
.drive-download-lead,
.drive-download-details {
  color: rgba(21, 17, 13, 0.72);
  line-height: 1.7;
}

.drive-rules {
  padding-bottom: 30px;
}

.drive-rules-layout,
.drive-signup-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.95fr);
  align-items: start;
}

.drive-rule-list,
.drive-checklist {
  display: grid;
  gap: 14px;
}

.drive-rule-item {
  padding: 22px 24px;
}

.drive-rule-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--drive-ink);
}

.drive-checklist {
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.drive-checklist li {
  position: relative;
  padding-left: 30px;
  color: rgba(21, 17, 13, 0.72);
}

.drive-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--drive-roadline),
    var(--drive-amber)
  );
}

.drive-form {
  padding: 30px;
}

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

.drive-form label {
  display: grid;
  gap: 8px;
}

.drive-form label span,
.drive-terms-row span {
  font-size: 0.85rem;
  color: rgba(21, 17, 13, 0.74);
}

.drive-form input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(34, 29, 25, 0.12);
  background: #fffcf8;
  padding: 15px 16px;
  font-size: 1rem;
  color: var(--drive-ink);
}

.drive-form input:focus {
  outline: none;
  border-color: var(--drive-amber);
  box-shadow: 0 0 0 4px rgba(255, 139, 56, 0.14);
}

.drive-form-full {
  grid-column: 1 / -1;
}

.drive-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 18px;
}

.drive-terms-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--drive-amber-deep);
}

.drive-form-footnote {
  margin: 14px 0 0;
  color: rgba(21, 17, 13, 0.58);
  font-size: 0.9rem;
}

.drive-form-status {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 600;
}

.drive-form-status.is-error {
  color: #b33b26;
}

.drive-form-status.is-success {
  color: #246846;
}

.drive-download-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.drive-download-shell {
  width: min(820px, 100%);
}

.drive-download-card {
  padding: 34px;
  text-align: center;
}

.drive-download-icon {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.55rem;
  background: linear-gradient(
    135deg,
    var(--drive-roadline),
    var(--drive-amber)
  );
  color: var(--drive-ink);
}

.drive-download-zone {
  margin: 12px auto 0;
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 217, 107, 0.32);
  color: var(--drive-ink);
  font-weight: 700;
}

.drive-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 18px;
}

.drive-download-note {
  padding: 22px;
  border-radius: 22px;
  background: var(--drive-sand);
  text-align: left;
  border: 1px solid rgba(34, 29, 25, 0.08);
}

.drive-download-note strong,
.drive-download-note span {
  display: block;
}

.drive-download-note strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--drive-ink);
}

.drive-download-note span {
  color: rgba(21, 17, 13, 0.62);
  margin-bottom: 14px;
}

.download-placeholder-button {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 16px;
  background: rgba(34, 29, 25, 0.12);
  color: rgba(21, 17, 13, 0.54);
  font-weight: 700;
}

.drive-download-details {
  margin-top: 10px;
  font-size: 1rem;
}

.drive-download-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 1080px) {
  .drive-hero-grid,
  .drive-rules-layout,
  .drive-signup-layout,
  .drive-benefit-grid {
    grid-template-columns: 1fr;
  }

  .drive-hero-grid {
    gap: 28px;
  }

  .drive-visual-shell {
    min-height: 520px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

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

@media (max-width: 720px) {
  .drive-hero {
    padding: 104px 16px 44px;
  }

  .drive-hero::before {
    inset: 86px 12px 12px;
    border-radius: 24px;
  }

  .drive-hero-grid {
    gap: 22px;
  }

  .drive-hero-copy {
    text-align: center;
  }

  .drive-kicker {
    margin-bottom: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .drive-form,
  .drive-download-card,
  .drive-benefit-card,
  .drive-rule-item {
    border-radius: 22px;
  }

  .drive-form-grid,
  .drive-download-grid {
    grid-template-columns: 1fr;
  }

  .drive-visual-shell {
    min-height: 380px;
    max-width: 440px;
    margin: 0 auto;
  }

  .drive-visual-card {
    inset: 18px 14px 78px 18px;
    border-radius: 28px;
    transform: rotate(-1.5deg);
    padding: 14px;
  }

  .drive-route-line {
    display: none;
  }

  .drive-hero-copy h1 {
    font-size: clamp(2.3rem, 12vw, 3.2rem);
    margin-bottom: 16px;
  }

  .drive-lead {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.65;
  }

  .drive-hero-actions {
    justify-content: center;
    margin-top: 24px;
  }

  .drive-hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .drive-stat-row {
    margin-top: 24px;
    gap: 12px;
  }

  .drive-stat-card {
    padding: 16px 16px 18px;
  }

  .drive-stat-card strong {
    font-size: 1.45rem;
  }

  .drive-page .nav-links {
    display: none;
  }

  .drive-page .nav-hamburger {
    display: flex;
  }

  .drive-page .mobile-menu {
    display: flex;
  }
}

@media (max-width: 420px) {
  .drive-hero {
    padding: 94px 14px 36px;
  }

  .drive-hero::before {
    inset: 78px 8px 8px;
  }

  .drive-hero-copy h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .drive-hero-actions .btn {
    max-width: none;
  }

  .drive-visual-shell {
    min-height: 330px;
  }

  .drive-visual-card {
    inset: 14px 10px 66px 14px;
    padding: 10px;
  }

  .drive-stat-card {
    padding: 14px 14px 16px;
  }
}
