/* Big Blue marketing site: shared tokens, layout, type, buttons, cards and footer.
   Every class here is opt-in. Pages that keep their own stylesheet (the listing
   wizard, the legal pages) only pick up the tokens, the skip link, focus rings and
   the footer. Page-specific layout lives in each page's <style> block. */

:root {
  --bb-blue: #0A66FF;
  --bb-blue-hover: #2A7BFF;
  --bb-blue-light: #3D8BFF;
  --bb-blue-soft: rgba(10, 102, 255, 0.14);
  --bb-ink: #06080C;
  --bb-navy: #070E1F;
  --bb-navy-2: #0A1220;
  --bb-surface: #0D1422;
  --bb-border: rgba(255, 255, 255, 0.08);
  --bb-border-strong: rgba(255, 255, 255, 0.16);
  --bb-text: #F4F4F5;
  --bb-heading: #F0EEE8;
  --bb-muted: #B4BCCB;
  --bb-subtle: #8E97A8;
  --bb-parking: #6AD7AE;
  --bb-docking: #F3C11B;
  --bb-nav-h: 64px;
  --bb-container: 1200px;
  --bb-gutter: clamp(20px, 5vw, 40px);
  --bb-section-y: clamp(56px, 8vw, 88px);
  --bb-radius: 16px;
  --bb-radius-lg: 24px;
  --bb-font-display: 'Cal Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bb-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* In-page anchors land below the fixed navigation bar. */
html {
  scroll-padding-top: calc(var(--bb-nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ── Base for the redesigned marketing pages (body.site) ── */
body.site {
  margin: 0;
  font-family: var(--bb-font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bb-ink);
  color: var(--bb-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

/* Resets use :where() so they never out-rank a component class. */
:where(body.site) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) {
  margin: 0;
}

:where(body.site) :where(ul, ol) {
  padding: 0;
}

:where(body.site) img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Accessibility helpers ── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10001;
  padding: 10px 16px;
  border-radius: 8px;
  background: #FFFFFF;
  color: #06080C;
  font: 600 15px/1.2 var(--bb-font-body);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Zero specificity, so any page that styles its own focus state still wins. */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--bb-blue-light);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: calc(var(--bb-container) + 2 * var(--bb-gutter));
  margin-inline: auto;
  padding-inline: var(--bb-gutter);
}

.section {
  padding-block: var(--bb-section-y);
}

.section--alt {
  background: var(--bb-navy-2);
  border-block: 1px solid var(--bb-border);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

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

/* ── Type ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-blue-light);
}

.h-display {
  font-family: var(--bb-font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--bb-heading);
  text-wrap: balance;
}

.h-section {
  font-family: var(--bb-font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bb-heading);
  text-wrap: balance;
}

.eyebrow + .h-section,
.eyebrow + .h-display {
  margin-top: 14px;
}

.h-card {
  font-family: var(--bb-font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  color: var(--bb-heading);
}

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--bb-muted);
  max-width: 62ch;
}

* + .lede {
  margin-top: 18px;
}

.section-head--center .lede {
  margin-inline: auto;
}

.text-parking {
  color: var(--bb-parking);
}

.text-docking {
  color: var(--bb-docking);
}

/* ── Buttons and links ── */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1.2 var(--bb-font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--bb-blue);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(10, 102, 255, 0.28);
}

.btn-primary:hover {
  background: var(--bb-blue-hover);
  box-shadow: 0 10px 30px rgba(10, 102, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--bb-text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
}

@media (max-width: 480px) {
  .btn-row .btn {
    flex: 1 1 100%;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bb-blue-light);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link .arrow {
  transition: transform 0.2s ease;
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

/* ── Cards and lists ── */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: clamp(24px, 3vw, 32px);
}

.card p {
  margin-top: 10px;
  color: var(--bb-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

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

.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bb-blue-soft);
  border: 1px solid rgba(61, 139, 255, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--bb-blue-light);
}

.icon-chip img,
.icon-chip svg {
  width: 22px;
  height: 22px;
}

/* Numbered steps (homepage "how it works", Blue Parking hosting). */
.steps {
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--bb-border);
}

.step:first-child {
  padding-top: 0;
  border-top: 0;
}

.step:last-child {
  padding-bottom: 0;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 15px/1 var(--bb-font-display);
  color: var(--bb-blue-light);
  background: var(--bb-blue-soft);
  border: 1px solid rgba(61, 139, 255, 0.3);
}

.step p {
  margin-top: 6px;
  color: var(--bb-muted);
  max-width: 54ch;
}

/* Benefit list with a small icon per item. */
.benefits {
  list-style: none;
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.benefit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.benefit .icon-chip {
  margin: 0;
}

.benefit h3 {
  font: 600 18px/1.3 var(--bb-font-display);
  color: var(--bb-heading);
}

.benefit p {
  margin-top: 4px;
  color: var(--bb-muted);
}

/* Status / clarification notes. */
.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(61, 139, 255, 0.08);
  border: 1px solid rgba(61, 139, 255, 0.28);
  color: var(--bb-text);
  font-size: 15px;
  line-height: 1.55;
}

.note svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--bb-blue-light);
}

.note--docking {
  background: rgba(243, 193, 27, 0.08);
  border-color: rgba(243, 193, 27, 0.35);
}

.note--docking svg {
  color: var(--bb-docking);
}

/* Payment explanation shown near booking steps. */
.pay-note {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--bb-radius);
  border: 1px solid rgba(61, 139, 255, 0.28);
  background: rgba(61, 139, 255, 0.07);
}

.pay-note h3 {
  font: 600 19px/1.3 var(--bb-font-display);
  color: var(--bb-heading);
}

.pay-note p {
  margin-top: 8px;
  color: var(--bb-muted);
}

.pay-note .pay-note-fine {
  font-size: 14px;
  color: var(--bb-subtle);
}

/* Rounded media frame for photography. */
.media {
  position: relative;
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bb-border);
  background: var(--bb-surface);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 8, 12, 0.72);
  border: 1px solid var(--bb-border-strong);
  color: var(--bb-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Phone frame around app screenshots. All screenshots share one shape, so
   taller captures are cropped from the top rather than stretching the frame. */
.phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 362 / 786;
  padding: 8px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2C3039 0%, #14161B 55%, #0B0C0F 100%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 36px;
  background: #F2F2F2;
}

/* Call-to-action panel. */
.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--bb-radius-lg);
  border: 1px solid rgba(61, 139, 255, 0.28);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(61, 139, 255, 0.34) 0%, rgba(10, 102, 255, 0.1) 45%, rgba(7, 14, 31, 0) 75%),
    linear-gradient(135deg, #0C1D40 0%, #081127 100%);
}

.cta-panel .lede {
  color: #C9D2E3;
}

.cta-panel .btn-row {
  margin-top: 0;
}

@media (max-width: 760px) {
  .cta-panel {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--bb-border);
  background: var(--bb-ink);
  padding: 48px 0 32px;
  color: var(--bb-subtle);
  font-family: var(--bb-font-body);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 48px;
}

.site-footer-logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #F4F4F5;
  text-decoration: none;
}

.site-footer-logo span {
  color: var(--bb-blue);
}

.site-footer-tagline {
  margin: 10px 0 0;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: #C3CAD6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer-links a:hover {
  color: #FFFFFF;
}

.site-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bb-border);
}

.site-footer-base p {
  margin: 0;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-legal a {
  display: inline-block;
  padding: 4px 0;
  color: var(--bb-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer-legal a:hover {
  color: #FFFFFF;
}

/* ── Motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
