:root {
  --navy: #10243a;
  --navy-deep: #0b1b2c;
  --navy-soft: #1a3a58;
  --white: #ffffff;
  --gray: #f4f6f8;
  --gold: #c9a45c;
  --gold-dark: #a7843e;
  --slate: #243041;
  --muted: #5b6775;
  --border: #e3e8ee;
  --error: #b42318;
  --error-bg: #fdeeee;
  --ok: #176c45;
  --ok-bg: #e8f6ef;
  --focus: #1d4e89;
  --shadow: 0 14px 40px rgba(16, 36, 58, 0.08);
  --radius: 8px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--slate);
  background: var(--gray);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
  border-radius: 4px;
}

.skip:focus {
  top: 12px;
}

.site-header {
  background: var(--navy);
  color: var(--white);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--gold);
}

.header-inner,
.footer-inner,
.shell,
.legal-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(201, 164, 92, 0.55);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--white);
}

.shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 48px 24px;
}

.intro {
  color: var(--navy);
}

.intro-photo {
  width: 100%;
  height: 168px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  background:
    linear-gradient(180deg, rgba(16, 36, 58, 0.28) 0%, rgba(16, 36, 58, 0.55) 100%),
    url("truck-bg.jpg") center / cover no-repeat;
  border: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.intro h1,
.card h1,
.legal-wrap h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 12px;
}

.lede,
.subtitle {
  color: var(--muted);
  font-size: 16px;
  max-width: 42ch;
}

.stage {
  display: flex;
  justify-content: center;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow);
}

.card h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.card .subtitle {
  margin-bottom: 28px;
  max-width: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

input[type="password"],
input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
  border-radius: 6px;
  border: 1px solid #cfd6de;
  background: var(--white);
  color: var(--slate);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder {
  color: #8b97a6;
}

input:hover {
  border-color: #b7c0cb;
}

input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16, 36, 58, 0.12);
}

input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

#pin-input {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.btn,
.btn-primary,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 18px 24px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary,
.download-btn,
form button[type="submit"] {
  width: 100%;
  min-height: 64px;
  padding: 18px 24px;
  font-size: 17px;
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover,
.download-btn:hover,
form button[type="submit"]:hover {
  background: var(--navy-soft);
}

.btn-primary:focus-visible,
.download-btn:focus-visible,
form button[type="submit"]:focus-visible,
.link-btn:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary:disabled,
form button[type="submit"]:disabled {
  opacity: 0.58;
  cursor: wait;
}

.btn-ghost,
.link-btn {
  background: transparent;
  color: var(--navy);
  box-shadow: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  min-height: auto;
  padding: 8px 0;
  cursor: pointer;
}

.btn-ghost:hover,
.link-btn:hover {
  color: var(--gold-dark);
}

.error {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid #f0c7c3;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
}

.note,
.foot-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid #c6e6d4;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--navy);
}

.copyright {
  font-size: 13px;
  color: var(--muted);
}

.legal-page {
  padding: 48px 0 64px;
}

.legal-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.legal-wrap h1 {
  font-size: 28px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.legal-wrap ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.back-inline {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 28px 18px 40px;
    gap: 22px;
  }

  .intro-photo {
    height: 128px;
    margin-bottom: 18px;
  }

  .intro h1 {
    font-size: 26px;
  }

  .card {
    max-width: none;
    padding: 28px 20px 22px;
  }

  .legal-wrap {
    padding: 24px 18px;
  }
}

@media (max-width: 560px) {
  .brand-tag {
    display: none;
  }

  .header-nav a {
    font-size: 13px;
  }

  .intro h1,
  .card h1 {
    font-size: 24px;
  }
}
