@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Palette: transport-agency navy and green, road-marking yellow */
  --navy-950: #071a28;
  --navy-900: #0b2536;
  --navy-800: #103750;
  --navy-700: #17507a;
  --navy-100: #dbe7ef;
  --green-700: #17623d;
  --green-600: #1f7a4d;
  --green-100: #dcefe3;
  --yellow: #ffcb05;
  --paper: #f3f5f2;
  --white: #ffffff;
  --ink: #0e2233;
  --ink-soft: #4b5d6b;
  --line: #d5dcd6;
  --lock: #a8321f;
  --lock-bg: #f8e5e1;

  /* Names used by callback.html */
  --color-primary: var(--navy-700);
  --color-background: var(--paper);
  --color-on-background: var(--ink);
  --color-surface-variant: var(--line);
  --font-headline: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow: 0 1px 2px rgba(14, 34, 51, .06), 0 8px 24px rgba(14, 34, 51, .08);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0; }

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

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

.eyebrow {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn:focus-visible,
.tab:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy-950);
  box-shadow: 0 4px 0 #c79c00;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #c79c00; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #c79c00; }

.btn-solid { background: var(--navy-700); color: var(--white); }
.btn-solid:hover { background: var(--navy-800); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  padding: 8px 14px;
  font-size: .9rem;
}

.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-ghost-lg { padding: 15px 22px; font-size: 1rem; }

.btn-quiet {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--line);
  padding: 8px 14px;
  font-size: .9rem;
}

.btn-quiet:hover { border-color: var(--navy-700); }

.btn[disabled] {
  background: #e4e8e4;
  color: #7b8791;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Brand and top bar ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 8px;
  background: var(--yellow);
  position: relative;
  transform: rotate(45deg) scale(.82);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 3px solid var(--navy-950);
  border-radius: 4px;
}

.brand span em { font-style: normal; color: var(--yellow); }

.topbar {
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 4px solid var(--green-600);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-700);
  border: 2px solid var(--yellow);
}

#user-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Landing hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(31, 122, 77, .55), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(23, 80, 122, .9), transparent 65%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
}

/* Contour lines, like a survey map */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 78% 30%, transparent 0 38px, rgba(255, 255, 255, .045) 38px 39px);
  pointer-events: none;
}

.hero-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.hero-nav nav { display: flex; gap: 26px; }

.hero-nav nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

.hero-nav nav a:hover { color: var(--yellow); }

.hero-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 120px;
}

.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  font-weight: 800;
  margin: 14px 0 22px;
}

.hero h1 span { color: var(--yellow); }

.hero .eyebrow { color: #8fd3ad; }

.hero-lede {
  max-width: 34em;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .86);
  margin-bottom: 32px;
}

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

.hero-cta .btn-primary { font-size: 1.1rem; padding: 17px 28px; }

.hero-note { font-size: .9rem; color: rgba(255, 255, 255, .7); max-width: 34em; margin-top: 16px; }

/* The road running under the hero */
.road {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -34px;
  height: 96px;
  background: #1c2a33;
  transform: rotate(-1.6deg);
  border-top: 5px solid var(--white);
}

.road::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 54px, transparent 54px 108px);
  animation: lane 1.6s linear infinite;
}

@keyframes lane { to { background-position: -108px 0; } }

/* Sample licence shown in the hero */
.licence-sample {
  justify-self: end;
  width: min(100%, 400px);
  transform: rotate(3deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-10px); }
}

/* ---------- Licence card ---------- */

.licence-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  padding: 22px;
  color: var(--white);
  background:
    radial-gradient(320px 200px at 100% 0, rgba(255, 203, 5, .22), transparent 70%),
    linear-gradient(135deg, var(--navy-700), var(--green-700));
  box-shadow: 0 18px 40px rgba(7, 26, 40, .35);
}

.licence-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, .04) 14px 15px);
  pointer-events: none;
}

.licence-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.licence-kind {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.licence-kind small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, .78);
}

.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.verified-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7be3a6;
}

.licence-main {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.licence-photo {
  width: 92px;
  height: 112px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, .14);
  border: 2px solid rgba(255, 255, 255, .5);
}

.licence-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.licence-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 12px 0 0;
}

.licence-fields div { min-width: 0; }

.licence-fields dt {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.licence-fields dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.licence-classes {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, .35);
}

.licence-classes .class-row { flex: 1 1 100%; display: grid; gap: 6px; }

.class-row-title {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.class-row-title b {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(123, 227, 166, .25);
  color: #b9f3d0;
  letter-spacing: .04em;
}

.class-row.is-info .class-row-title b { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); }

.class-row-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* The set that doesn't decide bookings is shown quieter */
.class-row.is-info .class-chip { background: rgba(255, 255, 255, .2); color: var(--white); }

.class-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-s);
  background: var(--yellow);
  color: var(--navy-950);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.class-chip small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: none;
}

.class-chip.is-void {
  background: rgba(255, 255, 255, .18);
  color: var(--white);
  text-decoration: line-through;
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }

.section-head { max-width: 46em; margin-bottom: 40px; }

.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 8px 0 14px; }

.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.section-alt { background: var(--white); border-block: 1px solid var(--line); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  border-top: 6px solid var(--navy-700);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--green-600);
  margin-bottom: 10px;
}

.step h3 { font-size: 1.5rem; margin-bottom: 8px; }

.step p { color: var(--ink-soft); }

/* Licence class table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }

.rules {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .98rem;
}

.rules th, .rules td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }

.rules thead th {
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rules tbody tr:last-child td { border-bottom: 0; }

.rules td:first-child { font-weight: 600; }

.code {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-s);
  background: var(--navy-100);
  color: var(--navy-800);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

.code.is-truck { background: var(--green-100); color: var(--green-700); }

/* ---------- Fleet ---------- */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.vehicle {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: rise .5s ease both;
}

.vehicle:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(14, 34, 51, .08), 0 16px 34px rgba(14, 34, 51, .14); }

.vehicle-art {
  position: relative;
  padding: 26px 22px 14px;
  color: var(--navy-700);
  background:
    linear-gradient(transparent 0 calc(100% - 22px), #cfd8d2 calc(100% - 22px) calc(100% - 20px), #e7ece8 calc(100% - 20px)),
    linear-gradient(180deg, #e9f0f4, #f6f8f6);
}

.vehicle[data-group="truck"] .vehicle-art { color: var(--green-700); }

.vehicle-art svg { width: 100%; height: 96px; }

.vehicle-art.has-photo { padding: 0; background: #dfe6e2; overflow: hidden; }

.vehicle-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s ease;
}

.vehicle:hover .vehicle-photo { transform: scale(1.04); }

.vehicle-art.has-photo .vehicle-badge { z-index: 1; box-shadow: 0 2px 8px rgba(14, 34, 51, .25); }

.vehicle.is-locked .vehicle-photo { filter: grayscale(1) contrast(.85); opacity: .6; }

.vehicle.is-locked:hover .vehicle-photo { transform: none; }

.vehicle-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  background: var(--white);
  color: var(--green-700);
  border: 1px solid var(--green-600);
}

.vehicle-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }

.vehicle-body h3 { font-size: 1.55rem; }

.vehicle-blurb { color: var(--ink-soft); font-size: .93rem; }

.vehicle-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.vehicle-specs li {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.vehicle-req { font-size: .86rem; color: var(--ink-soft); }

.vehicle-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price { font-family: var(--font-headline); font-weight: 700; font-size: 1.7rem; line-height: 1; }

.price small { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--ink-soft); }

.vehicle.is-locked { box-shadow: none; }

.vehicle.is-locked:hover { transform: none; }

.vehicle.is-locked .vehicle-art { color: #9aa6ad; filter: saturate(.3); }

.vehicle.is-locked .vehicle-badge { color: var(--lock); border-color: var(--lock); }

.lock-reason {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--lock-bg);
  color: var(--lock);
  font-size: .86rem;
  font-weight: 600;
}

.lock-reason svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- Dashboard ---------- */

.dash-intro {
  background:
    radial-gradient(700px 320px at 100% 0, rgba(31, 122, 77, .16), transparent 70%),
    var(--white);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 48px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.dash-intro h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 8px 0 14px; }

.dash-intro p { color: var(--ink-soft); font-size: 1.05rem; max-width: 36em; }

.verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }

.verdict {
  padding: 16px 18px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--paper);
  border-left: 6px solid var(--green-600);
}

.verdict.is-no { border-left-color: var(--lock); }

.verdict strong {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.verdict span { font-size: .9rem; color: var(--ink-soft); }

.notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--lock-bg);
  color: var(--lock);
  font-weight: 600;
}

.fleet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.fleet-head h2 { font-size: clamp(2rem, 4vw, 3rem); }

.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }

.tab {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}

.tab[aria-selected="true"] { background: var(--navy-900); color: var(--white); }

.bookings { display: grid; gap: 12px; }

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius-m);
}

.booking h3 { font-size: 1.4rem; }

.booking p { color: var(--ink-soft); font-size: .93rem; }

.booking-ref { font-family: var(--font-headline); font-weight: 700; letter-spacing: .08em; color: var(--green-700); }

.empty { color: var(--ink-soft); padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--radius-m); background: var(--white); }

details.claims { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }

details.claims summary { padding: 18px 20px; font-weight: 700; cursor: pointer; }

#claims-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; padding: 0 20px 18px; }

.claim-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: .93rem;
  min-width: 0;
}

.claim-item strong {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.claim-item span { overflow-wrap: anywhere; }

/* ---------- Booking dialog ---------- */

dialog.booking-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(7, 26, 40, .45);
}

dialog.booking-dialog::backdrop { background: rgba(7, 26, 40, .62); }

.dialog-head { padding: 22px 26px; background: var(--navy-900); color: var(--white); border-bottom: 4px solid var(--yellow); }

.dialog-head h2 { font-size: 2rem; }

.dialog-head p { color: rgba(255, 255, 255, .8); font-size: .92rem; margin-top: 4px; }

.dialog-body { display: grid; gap: 16px; padding: 24px 26px 26px; }

.field { display: grid; gap: 6px; }

.field label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }

.field input, .field select {
  width: 100%;
  padding: 12px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field input:focus, .field select:focus { outline: none; border-color: var(--navy-700); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.quote {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 600;
}

.quote strong { font-family: var(--font-headline); font-size: 1.8rem; }

.form-error { color: var(--lock); font-weight: 600; font-size: .92rem; min-height: 1.4em; }

.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }

.confirm-ref {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: .08em;
  color: var(--green-700);
}

/* ---------- Error page ---------- */

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(700px 400px at 50% 0, rgba(23, 80, 122, .14), transparent 70%),
    var(--paper);
}

.center-card {
  width: min(520px, 100%);
  padding: 40px 34px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--yellow);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  animation: rise .5s ease both;
}

.center-card h1 { font-size: 2.6rem; margin: 18px 0 12px; }

.center-card p { color: var(--ink-soft); margin-bottom: 26px; overflow-wrap: anywhere; }

.detour {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--yellow);
  transform: rotate(45deg);
  display: grid;
  place-items: center;
}

.detour span {
  transform: rotate(-45deg);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--navy-950);
}

/* ---------- Footer ---------- */

.footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding: 36px 0; font-size: .88rem; }

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

.footer p { max-width: 52em; }

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: rise .6s ease both; }
.reveal-1 { animation-delay: .08s; }
.reveal-2 { animation-delay: .18s; }
.reveal-3 { animation-delay: .28s; }
.reveal-4 { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); padding-bottom: 130px; }
  .licence-sample { justify-self: start; }
  .hero-nav nav { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 60px 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .brand { font-size: 1.3rem; }
  .verdicts, .field-row { grid-template-columns: minmax(0, 1fr); }
  .licence-main { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .licence-photo { width: 72px; height: 90px; }
  .licence-name { font-size: 1.5rem; }
  #user-name { display: none; }
  .booking { grid-template-columns: minmax(0, 1fr); }
}
