@import url("./tokens.css?v=2");
@import url("./base.css?v=2");
@import url("./layout.css?v=2");
@import url("./components/hero.css?v=5");
@import url("./components/footer.css?v=15");
@import url("./components/cookie.css?v=7");
@import url("./privacy.css?v=3");
@import url("./landing.css?v=129");
@import url("./application.css?v=63");
@import url("./home.css?v=10");
@import url("./product-hero.css?v=20");

[hidden] { display: none !important; }

:root { --header-height: clamp(65px, 3.6vw, 108px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: #061121;
  border-bottom: 1px solid #203649;
}

.header-actions, .site-nav {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: calc(var(--header-height) - 1px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.site-nav { gap: clamp(26px, 2vw, 40px); }
.header-actions { justify-self: end; gap: 6px; }
.brand-logo { display: block; width: clamp(120px, 9vw, 264px); height: auto; }

.site-nav a {
  padding: 9px 4px;
  white-space: nowrap;
  font-size: clamp(.9375rem, .85vw, 1.625rem);
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: #9bdaf5; }

.language-switch {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, .55vw, 16px);
  min-height: clamp(44px, 2.6vw, 72px);
  padding-inline: clamp(8px, .6vw, 18px);
  border-radius: 10px;
  font-size: clamp(.875rem, .85vw, 1.625rem);
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.language-flag { display: block; width: clamp(20px, 1.35vw, 40px); height: auto; aspect-ratio: 10 / 7; object-fit: cover; }

.language-switch:hover { background: #102b40; }
.contact-fab-call:hover { background: #116b92; }

.site-header .menu-toggle { display: none; }
.menu-toggle[aria-expanded="false"] .menu-close,
.menu-toggle[aria-expanded="true"] .menu-lines { display: none; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 56;
  background: rgb(0 0 0 / 35%);
  touch-action: none;
}

.contact-fab {
  position: fixed;
  z-index: 55;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 5px 18px #030a1740;
}
.contact-fab :is(img, svg) { width: 26px; height: 26px; }
.contact-fab-whatsapp { right: max(16px, env(safe-area-inset-right)); background: #168548; }
.contact-fab-whatsapp:hover { background: #116f3b; }
.contact-fab-call { display: none; left: max(16px, env(safe-area-inset-left)); background: #1476a0; }
body:has(.cookie-banner.is-visible, .cookie-modal[open]) .contact-fab { visibility: hidden; }

.page-actions, .contact-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.hero-content.hero-content-single { grid-template-columns: minmax(0, 1fr); }
.hero-content-single .hero-description { max-width: 64ch; }
.hero-content-single #hero-title { max-width: 24ch; }
.hero-intro .product-subtitle { margin: 14px 0 0; color: #91d9f9; font-size: clamp(20px, 5vw, 30px); }

.button-secondary {
  background: #0d2035;
  border-color: #426985;
  color: #e9f6ff;
  box-shadow: none;
}

.overview h2 { font-size: clamp(20px, 3.5vw, 27px); }
.overview-list { padding: 0; margin: 14px 0 0; list-style: none; }

.overview-list li {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #254259;
}

.overview-list li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #143852;
  color: #9bdaf5;
  flex: none;
}

.overview-list small { display: block; margin-top: 3px; color: #aec7d9; font-size: 14px; }

.section .section-content > :is(h2, p) {
  padding-inline: 0;
  text-align: start;
}

.section-content > h2, .promo-panel h2 {
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-content p { color: var(--muted); }

.prose > :is(h2, p) { max-width: 72ch; }
.prose > h2:not(:first-child) { margin-top: 36px; }
.prose > p { margin: 0 0 16px; }
.legal p a, .text-link, .feature-card a { text-decoration: underline; text-underline-offset: .2em; }
.text-link { display: inline-block; margin-top: 12px; font-weight: 650; }

.feature-grid { display: grid; gap: 14px; }

.feature-card {
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.site-main .feature-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 650; }
.feature-card p { margin: 0; line-height: 1.6; }
.feature-card a { display: inline-block; margin-top: 14px; }

.promo-panel {
  display: grid;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid #2c516c;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #0e2d43, #081626);
}

.promo-panel p { color: #c5d8e7; }
.promo-panel .hero-product { color: #9bdaf5; }
.promo-panel .hero-btn { margin-top: 16px; }
.promo-panel .hero-inclusions { margin: 0; }
.promo-panel .hero-inclusions li::before { content: "✓"; color: #91d9f9; }
.contact-links { margin-top: 0; }
.contact-links .hero-btn { margin: 0; }
.direct-phone { padding: 8px; text-align: center; text-decoration: underline; }

.founder-profile { display: flex; gap: 16px; align-items: center; }
.founder-profile img { width: clamp(62px, 17vw, 105px); aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

.pilot-contact, #cookies { scroll-margin-top: var(--header-height); }

@media (min-width: 680px) {
  .page-actions { display: flex; flex-wrap: wrap; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-panel { grid-template-columns: 1.3fr 1fr; }
  .promo-panel .hero-btn { width: fit-content; }
  .contact-links .hero-btn { width: 100%; }
}

@media (max-width: 1024px) {
  .contact-fab-call { display: grid; }
}

@media (max-width: 1024px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
  .brand-logo { width: clamp(96px, 30vw, 120px); }
  .site-nav {
    order: 1;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    padding-bottom: 12px;
  }
  .site-header.menu-enhanced .site-nav,
  .js .site-header:not(.menu-enhanced) .site-nav { display: none; }
  .js .site-header:not(.menu-enhanced) .header-actions { padding-inline-end: 44px; }
  .site-header.menu-open { z-index: 57; }
  .site-header.menu-enhanced.menu-open .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 24px;
    border-top: 1px solid #203649;
    background: #061121;
  }
  .site-header.menu-open .site-nav a {
    padding: 12px 6px;
    font-size: 18px;
    font-weight: 500;
  }
  .header-actions { gap: 0; }
  .language-switch {
    gap: clamp(8px, 2.5vw, 13px);
    padding-inline: 6px 0;
    font-size: clamp(.875rem, 3.6vw, 1.0625rem);
  }
  .language-flag { width: clamp(20px, 5.4vw, 26px); }
  .site-header .menu-toggle { display: inline-grid; width: 44px; height: 44px; }
}

@media (max-width: 350px) {
  .header-inner { padding-inline: 13px; }
}

/* Give content more room as the desktop type and containers grow. */
@media (min-width: 1440px) {
  .site-main {
    --section-spacing-increase: clamp(0px, calc((100vw - 1440px) * .018), 28px);
  }

  .section.landing-section :is(h2, .contact-intro h1) {
    margin-bottom: calc(28px + var(--section-spacing-increase));
  }
  .section.home-report-section h2 {
    margin-bottom: calc(14px + var(--section-spacing-increase));
  }
  .landing-grid { gap: clamp(76px, 5.3vw, 132px); }
  .report-layout, .pilot-options {
    gap: calc(24px + var(--section-spacing-increase));
  }
  .landing-grid p + p, .contact-intro p + p {
    margin-block-start: calc(16px + var(--section-spacing-increase));
  }

  .pilot-cta, .comparison-action,
  .application-comparison .container > .comparison-transfer {
    margin-block-start: calc(28px + var(--section-spacing-increase));
  }
  .deadlines-cta-desktop, .founders-contact-cta-desktop {
    margin-block-start: calc(16px + var(--section-spacing-increase));
  }
  .founder-pair, .landing-section .landing-steps {
    gap: calc(16px + var(--section-spacing-increase));
  }
  .founder-pair figcaption {
    margin-block-start: calc(9px + var(--section-spacing-increase) / 2);
  }
  .application-migration .onboarding-steps {
    margin-block: calc(24px + var(--section-spacing-increase));
  }

  .product-hero .hero-actions {
    gap: calc(.875rem + var(--section-spacing-increase) / 2);
  }
  .vat-basis { margin-block-end: calc(20px + var(--section-spacing-increase)); }
  .comparison-table { margin-block-start: calc(28px + var(--section-spacing-increase)); }
  .landing-faq details { padding-block: calc(22px + var(--section-spacing-increase) / 2); }

  .privacy-body .legal > h2:not(:first-child) {
    margin-block-start: calc(36px + var(--section-spacing-increase));
  }
  .privacy-body .legal > h2 {
    margin-block-end: calc(16px + var(--section-spacing-increase) / 2);
  }
}

@media (min-width: 760px) {
  .pilot-section > .container {
    display: grid;
    align-items: start;
    row-gap: 24px;
  }
  .section.pilot-section > .container > :is(h2, p, .onboarding-steps, .pilot-cta) {
    margin-block: 0;
  }
  .pilot-section .pilot-cta { justify-self: start; }
}

@media (min-width: 1440px) {
  .pilot-section > .container {
    row-gap: calc(28px + var(--section-spacing-increase));
  }
}

@media (width < 760px) {
  .site-main { --mobile-cta-space: 36px; }

  .site-main .hero-btn {
    max-inline-size: 100%;
    text-align: center;
    white-space: normal;
  }

  .landing-section .pilot-cta,
  .application-comparison .comparison-action {
    margin-block-start: var(--mobile-cta-space);
  }

  .pilot-section .pilot-cta {
    margin-block-start: calc(var(--mobile-cta-space) - var(--pilot-gap));
  }

  .home-report-actions,
  .founder-pair .founders-contact-cta {
    margin-block-start: calc(var(--mobile-cta-space) - 32px);
  }

  .deadlines-media { row-gap: var(--mobile-cta-space); }

  .landing-hero.product-hero .page-actions {
    margin-block-start: var(--mobile-cta-space);
  }

  .product-hero .fleet-home-actions {
    margin-block-start: calc(var(--mobile-cta-space) - clamp(16px, 3svh, 24px));
  }

  .application-hero.product-hero .page-actions {
    margin-block-start: calc(var(--mobile-cta-space) - var(--hero-actions-gap));
  }
}

@media (min-width: 761px) {
  .cookie-modal-close {
    position: relative;
  }

  .contact-dialog-close,
  .cookie-modal-close {
    font-size: 0;
  }

  .contact-dialog-close::before,
  .cookie-modal-close::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    background:
      linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    transform: rotate(45deg);
  }
}

.mileage-log-page .product-hero .hero-offer.pilot-highlight {
  background: #fff;
}

.mileage-log-page .report-section {
  background: #f0f6fa;
}

.mileage-log-page .pilot-section {
  background: linear-gradient(to bottom, #f0f6fa, #e7f0f6);
}

.site-main.mileage-log-page .landing-section + .pilot-section::before {
  content: "";
}

.mileage-log-page :is(.mobile-pilot-offer, .vat-section, .signup-section) {
  background: #fff;
}

.mileage-log-page .mobile-pilot-offer > .pilot-highlight {
  background: transparent;
}

.mileage-log-page .product-crosslink {
  background: #e7f0f6;
}

.contact-page-section > .landing-grid {
  align-items: start;
  gap: clamp(24px, 3vw, 44px);
}

.contact-page-section .pilot-contact-cards {
  grid-auto-rows: 1fr;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-page-section .pilot-contact-card,
.contact-page-section .contact-intro {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--landing-line);
  border-radius: 16px;
  background: #fff;
}

.contact-page-section .pilot-contact-card {
  grid-template-columns: clamp(42px, 6vw, 54px) minmax(0, 1fr) 48px;
}

.contact-page-section .pilot-contact-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.contact-page-section .pilot-contact-icon svg {
  width: 30px;
  height: 30px;
}

.contact-page-section .pilot-contact-copy {
  width: 48px;
  height: 48px;
  margin: 0;
}

.contact-page-section .pilot-contact-copy svg {
  width: 24px;
  height: 24px;
}

.contact-card-details {
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}

.contact-card-details address {
  font-style: normal;
}

.contact-card-details a {
  color: #12638e;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.contact-page-section .contact-intro .contact-form {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
}

@media (min-width: 760px) {
  /* Keep entrance movement from shifting the page's scroll anchor. */
  html:has(.contact-page-section) {
    overflow-anchor: none;
  }

  .contact-page-section > .landing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width < 760px) {
  .contact-page-section {
    --contact-section-gap: 44px;
    padding-block-end: var(--contact-section-gap);
  }

  .contact-page-section > .landing-grid {
    row-gap: var(--contact-section-gap);
  }

}
