@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/jost-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --paper: #F6F1E7;
  --white: #fffefa;
  --ink: #15181C;
  --blue: #0D5BC9;
  --muted: #555b61;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Jost', Futura, sans-serif; letter-spacing: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: var(--blue); color: var(--white); }

.site-brand { position: absolute; top: max(32px, env(safe-area-inset-top)); left: max(32px, env(safe-area-inset-left)); }
.site-brand img { display: block; width: 180px; height: auto; }
.brand-rule { display: block; width: 100%; height: 1px; margin-top: 13px; background: #bdbbb5; }

.landing {
  width: min(1440px, 100%);
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 88px);
  padding: max(32px, env(safe-area-inset-top)) max(56px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(56px, env(safe-area-inset-left));
}
.intro-copy { display: grid; align-content: center; justify-items: start; gap: 120px; min-width: 0; padding-top: 42px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 64px; padding: 18px 28px; border: 1px solid var(--blue); border-radius: 4px; color: var(--white); background: var(--blue); font-size: 24px; font-weight: 500; line-height: 1.25; transition: background .2s, border-color .2s; }
.button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.button svg { width: 25px; height: 25px; flex-shrink: 0; stroke-width: 1.7; }
.contact-open { flex-shrink: 0; min-height: 48px; padding: 12px 20px; font-size: 20px; gap: 12px; }
.contact-open svg { width: 22px; height: 22px; }
.network { position: relative; width: 100%; height: min(68svh, 660px); min-height: 0; overflow: hidden; pointer-events: none; }
#flow { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#flow-logos { position: absolute; inset: 0; }
.flow-logo { position: absolute; display: grid; place-items: center; opacity: 0; }
.flow-logo img { display: block; width: 40%; height: 40%; object-fit: contain; }
.flow-logo.pedalion img { width: 100%; height: 100%; }
.tagline { display: block; max-width: 100%; margin: 0; text-align: left; font-size: clamp(25px, 3vw, 44px); line-height: 1.16; font-weight: 450; }
.tagline > span { display: block; white-space: nowrap; }
.tagline .accent { color: var(--blue); }

/* Page frame: content fills the screen, footer links sit at the bottom of every page */
body { display: flex; flex-direction: column; min-height: 100svh; }
.landing { flex: 1 1 0; min-height: auto; }
.site-footer { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px 16px max(18px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; padding: 6px 2px; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible, .legal a:focus-visible, .site-brand a:focus-visible, dialog a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* Imprint, Privacy Policy and newsletter pages */
.site-brand a { display: block; }
.subpage .site-brand { position: static; padding: max(32px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-left)) 0; width: max-content; }
.legal { flex: 1; width: min(760px, 100%); margin: 0 auto; padding: 56px 24px 64px; font-size: 17px; line-height: 1.6; }
.legal h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 44px); line-height: 1.15; font-weight: 500; }
.legal h2 { margin: 36px 0 8px; font-size: 21px; line-height: 1.3; font-weight: 500; }
.legal p { margin: 0 0 14px; }
.legal .lead { color: var(--muted); margin-bottom: 28px; }
.legal a { color: var(--blue); overflow-wrap: anywhere; }
.legal .button { margin-top: 12px; }
.notice { width: min(560px, 100%); }
.export-form { display: grid; gap: 12px; }
.export-form input[type='password'] { padding: 11px 12px; border: 1px solid #b7c1cc; border-radius: 4px; font: inherit; }
.export-form label:has(input[type='radio']) { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }

/* Contact form additions */
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.consent a, .fine-print a { color: var(--blue); }
.fine-print { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #e2e6eb; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

body:has(dialog[open]) { overflow: hidden; }
dialog { position: relative; width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #cfd5dd; border-radius: 8px; background: #ffffff; color: var(--ink); box-shadow: 0 24px 64px #15181c26, 0 4px 12px #15181c12; }
dialog::backdrop { background: #15181c66; backdrop-filter: blur(4px); }
.contact-title { margin: 0 48px 20px 0; font-size: 20px; line-height: 1.35; font-weight: 500; }
.close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #e2e6eb; border-radius: 4px; background: transparent; color: var(--muted); }
.close:hover { background: #e8eef6; color: var(--blue); }
.close svg { width: 18px; height: 18px; stroke-width: 1.7; }
.email-label, .comment-label { display: block; font-size: 14px; font-weight: 500; }
.email-label { margin: 10px 0 8px; }
input[type='email'], textarea { display: block; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #b7c1cc; border-radius: 4px; background: #fafbfc; color: var(--ink); font-size: 16px; line-height: 1.4; }
input[type='email'] { min-height: 48px; }
textarea { min-height: 92px; resize: vertical; }
input[type='email']::placeholder, textarea::placeholder { color: #6b7176; opacity: 1; }
.comment-label { margin: 18px 0 8px; }
.send { width: 100%; min-height: 48px; margin-top: 20px; padding: 12px 18px; font-size: 16px; gap: 10px; }
.send svg { width: 18px; height: 18px; }
#contact-status { margin: 16px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#contact-status:empty { display: none; }
#contact-status[data-state='error'] { color: #a12432; }
#contact-status[data-state='success'] { color: #1b6248; }
#contact-status a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .landing { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(210px, 1fr) auto; align-content: center; gap: 18px; padding: 112px max(40px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left)); }
  .intro-copy { gap: 72px; padding-top: 0; }
  .tagline { font-size: clamp(30px, 4.3vw, 39px); }
  .network { height: min(48svh, 420px); min-height: 240px; }
}

@media (max-width: 704px) {
  .site-brand { top: max(24px, env(safe-area-inset-top)); left: max(20px, env(safe-area-inset-left)); }
  .site-brand img { width: 144px; }
  .landing { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(210px, 1fr) auto; align-content: center; gap: 18px; padding: 112px max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .intro-copy { gap: 72px; padding-top: 0; }
  .network { width: calc(100% + 40px); height: min(48svh, 380px); min-height: 240px; margin-inline: -20px; }
  .tagline { font-size: clamp(21px, 7vw, 29px); }
  .contact-open { min-height: 48px; padding: 12px 18px; font-size: 18px; }
  .contact-open svg { width: 20px; height: 20px; }
}

@media (max-width: 460px) {
  .subpage .site-brand { padding-inline: max(16px, env(safe-area-inset-left)); }
  .legal { padding: 40px 16px 48px; font-size: 16px; }
  .site-brand { left: max(16px, env(safe-area-inset-left)); }
  .landing { gap: 14px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .contact-open { min-height: 44px; padding: 10px 14px; font-size: 16px; }
  .contact-open svg { width: 20px; height: 20px; }
  .tagline { font-size: clamp(19px, 7vw, 23px); }
  .network { width: calc(100% + 32px); margin-inline: -16px; }
}

@media (max-width: 360px) {
  .landing { grid-template-rows: auto minmax(176px, 1fr) auto; padding-top: 84px; }
  .contact-open { padding-inline: 12px; }
  .tagline { font-size: 24px; }
  .network { width: calc(100% + 32px); height: min(44svh, 280px); min-height: 176px; margin-inline: -16px; }
}

@media (max-width: 704px) and (max-height: 520px) {
  .landing { padding-top: 64px; }
  .network { height: min(40svh, 220px); min-height: 170px; }
}

@media (max-height: 600px) {
  .site-brand { top: max(16px, env(safe-area-inset-top)); }
  .site-brand img { width: 126px; }
  dialog { padding: 20px; }
  .contact-title { margin-right: 48px; margin-bottom: 12px; font-size: 18px; line-height: 1.2; }
  .comment-label { margin-top: 12px; }
  textarea { min-height: 60px; }
  .send { min-height: 42px; margin-top: 12px; }
}

@media (max-height: 600px) and (min-width: 700px) {
  .landing { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: minmax(0, 1fr); gap: 22px; padding-block: 16px; }
  .intro-copy { gap: 64px; padding-top: 0; }
  .network { height: 68svh; }
  .contact-open { min-height: 48px; padding: 12px 20px; font-size: 18px; }
  .tagline { font-size: 23.4px; }
}

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

/* Small screens: the animation takes whatever height is left, so the footer links stay on screen */
@media (max-width: 900px) {
  .landing { padding-bottom: 8px; grid-template-rows: auto minmax(180px, 1fr); }
  .network { height: auto; align-self: stretch; min-height: 180px; }
}


/* Admin page */
.button.small { min-height: 40px; padding: 8px 14px; font-size: 15px; margin-top: 0; }
.button.secondary { background: transparent; color: var(--ink); border-color: #b7c1cc; }
.button.secondary:hover:not(:disabled) { background: var(--ink); color: var(--white); }
form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.enquiries { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.enquiry { padding: 16px; background: #ffffff; border: 1px solid #e2e6eb; border-radius: 6px; font-size: 15px; }
.enquiry p { margin: 8px 0; overflow-wrap: anywhere; }
.enquiry .meta, .admin-notice { color: var(--muted); font-size: 14px; }
.admin-notice { padding: 10px 14px; background: #e8eef6; border-radius: 4px; color: var(--ink); }
