/* ==========================================================================
   Valour UI: the shared design system for every public Valour website.
   Edit THIS file (Valour Shared), then run sync_shared.bat to copy it into each site.

   Principles (Apple's fluid-interface guidance, translated for the web):
   - Response: feedback happens on press-down, never on release.
   - Springs, not fixed-duration curves: --spring is critically damped, --bounce only for momentum.
   - Type: system font, tracking tightens as size grows, line-height tightens with it.
   - Materials: translucent glass chrome (nav) over content, solid surfaces for content.
   - Restraint: one accent colour per site, generous space, no decoration without purpose.
   - Accessibility: reduced motion -> cross-fade, reduced transparency -> solid, more contrast -> hairlines.
   Each site sets its accent in its own style.css:  --a (text/glyphs)  --a-fill (buttons).
   ========================================================================== */

:root {
  color-scheme: dark light;

  /* type: the platform's own font (SF on Apple devices, Segoe UI Variable on Windows 11): no network, optical sizing for free */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);                    /* fast in, long settle: critically damped feel */
  --spring: linear(0, 0.0298, 0.1016, 0.1953, 0.2972, 0.3986, 0.4941, 0.5806, 0.6569, 0.7227, 0.7785, 0.8249, 0.8631, 0.8941, 0.919, 0.9388, 0.9543, 0.9664, 0.9756, 0.9827, 0.9879, 0.9918, 0.9947, 0.9967, 0.9982, 0.9992, 0.9998, 1.0002, 1.0005, 1.0006, 1.0006, 1.0006, 1.0006, 1.0005, 1);
  --bounce: linear(0, 0.0408, 0.1385, 0.2639, 0.3968, 0.5244, 0.639, 0.7369, 0.8172, 0.8805, 0.9286, 0.9636, 0.988, 1.0039, 1.0134, 1.0183, 1.0199, 1.0194, 1.0176, 1.0152, 1.0125, 1.01, 1.0076, 1.0056, 1.0039, 1.0026, 1.0016, 1.0008, 1.0003, 1, 0.9998, 0.9996, 0.9996, 0.9996, 1);

  /* dark (default: it is a car brand) */
  --bg: #060607;
  --bg-alt: #0e0e10;
  --surface: #161618;
  --surface-2: #1d1d20;
  --fill: rgba(255, 255, 255, .08);
  --fill-2: rgba(255, 255, 255, .13);
  --line: rgba(255, 255, 255, .11);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #8e8e93;
  --text-ph: #98989d;            /* placeholders: --text-3 is 4.46:1 on the field fill, just under AA */
  --glass: rgba(22, 22, 24, .72);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);

  /* accent: sites override these two */
  --a: #ff6a5f;
  --a-fill: #dc3328;
  --a-ink: #fff;                 /* text on a filled button: dark for light accents like amber */

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfd;
    --bg-alt: #f2f2f5;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --fill: rgba(0, 0, 0, .06);
    --fill-2: rgba(0, 0, 0, .1);
    --line: rgba(0, 0, 0, .1);
    --text: #1d1d1f;
    --text-2: #5f5f64;
    --text-3: #6e6e73;
    --text-ph: #6e6e73;
    --glass: rgba(251, 251, 253, .72);
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 50px -28px rgba(0, 0, 0, .28);
    --a: #d70015;
    --a-fill: #dc3328;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--vbar, 0px) + 1rem); background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.5 var(--font);
  letter-spacing: -.011em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--a) 40%, transparent); }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2 * var(--gutter)); }

/* ---------- type: tracking tightens as size grows, leading tightens with it ---------- */
h1, h2, h3, h4 { font-family: var(--font); text-wrap: balance; }
h1, .display { font-size: clamp(2.75rem, 9vw, 6.25rem); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -.032em; }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.2; letter-spacing: -.018em; }
h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; letter-spacing: -.011em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.1875rem, 2.4vw, 1.5rem); line-height: 1.38; letter-spacing: -.017em; font-weight: 400; color: var(--text-2); max-width: 36em; }
.eyebrow { font-size: clamp(1rem, 1.6vw, 1.1875rem); font-weight: 600; letter-spacing: -.012em; color: var(--a); margin-bottom: .75rem; }
.muted { color: var(--text-2); }
.fine { font-size: .8125rem; line-height: 1.45; letter-spacing: .002em; color: var(--text-3); }
.grad { background: linear-gradient(180deg, var(--text) 25%, color-mix(in srgb, var(--text) 52%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-text { background: linear-gradient(100deg, var(--a), color-mix(in srgb, var(--a) 55%, var(--text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons: instant press feedback, springy release ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: 0 1.55rem;
  border: 0; border-radius: 999px;
  background: var(--a-fill); color: var(--a-ink, #fff);
  font: 500 1.0625rem/1 var(--font); letter-spacing: -.011em; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
  transition: transform .45s var(--spring), background-color .2s, filter .2s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.955); transition-duration: .07s; filter: brightness(.95); }
.btn.ghost, .btn.secondary { background: var(--fill); color: var(--text); }
.btn.ghost:hover, .btn.secondary:hover { background: var(--fill-2); filter: none; }
.btn.small { min-height: 2.25rem; padding: 0 1rem; font-size: .9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn:not([href]):not(button) { cursor: default; }

a.more { display: inline-flex; align-items: center; gap: .3em; color: var(--a); text-decoration: none; font-weight: 500; }
a.more::after { content: "\203A"; font-size: 1.25em; line-height: 1; transition: transform .35s var(--spring); }
a.more:hover::after { transform: translateX(4px); }
a.more:hover { text-decoration: underline; text-underline-offset: 3px; }

.cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta.center { justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88svh, 820px); display: grid; align-items: center; text-align: center;
  padding: clamp(3.5rem, 11vh, 7rem) 0 clamp(3rem, 9vh, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -5%, color-mix(in srgb, var(--a) 26%, transparent), transparent 72%),
    radial-gradient(34% 40% at var(--mx, 50%) var(--my, 42%), color-mix(in srgb, var(--a) 13%, transparent), transparent 72%);
}
.hero .hero-in { opacity: calc(1 - var(--p, 0) * .9); transform: translateY(calc(var(--p, 0) * -28px)) scale(calc(1 - var(--p, 0) * .035)); transform-origin: 50% 0; }
.hero h1 { margin-inline: auto; max-width: 20ch; }
.hero .lead { margin: 1.5rem auto 2.25rem; }
.hero .cta { justify-content: center; }
.hero.left { text-align: left; }
.hero.left h1, .hero.left .lead { margin-inline: 0; }
.hero.left .cta { justify-content: flex-start; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 3rem; margin-top: clamp(2.5rem, 7vh, 4.5rem); color: var(--text-2); font-size: .9375rem; }
.facts b { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; color: var(--text); }

/* ---------- sections ---------- */
.section { padding: clamp(4.5rem, 11vw, 8.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { max-width: 46rem; margin: 0 auto clamp(2.25rem, 5vw, 3.75rem); text-align: center; }
.sec-head.left { margin-inline: 0; text-align: left; }
.sec-head .lead { margin: 1rem auto 0; }
.sec-head.left .lead { margin-inline: 0; }
.statement { font-size: clamp(1.75rem, 4.4vw, 3rem); font-weight: 600; line-height: 1.14; letter-spacing: -.03em; max-width: 24ch; text-wrap: balance; }
.statement span { color: var(--text-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.card, .plan, .pack, .tile-card {
  position: relative; background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.section.alt .card, .section.alt .plan, .section.alt .pack { background: var(--surface); }
a.card { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; transition: transform .6s var(--spring), box-shadow .3s; }
a.card:hover { transform: translateY(-5px) scale(1.012); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow); }
a.card:active { transform: scale(.982); transition-duration: .08s; }
.ico { width: 3.25rem; height: 3.25rem; border-radius: 1rem; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--a)) 16%, transparent); color: var(--c, var(--a)); flex: none; }
.ico svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-flex; align-self: flex-start; align-items: center; min-height: 1.6rem; padding: 0 .7rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; letter-spacing: 0; background: color-mix(in srgb, var(--a) 16%, transparent); color: var(--a); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps > li, .steps > .step { counter-increment: s; background: var(--surface); border-radius: var(--r-md); padding: 1.5rem; box-shadow: 0 0 0 1px var(--line) inset; display: grid; gap: .4rem; align-content: start; }
.steps > li::before, .steps > .step::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: color-mix(in srgb, var(--a) 18%, transparent); color: var(--a); font-weight: 600; font-size: .9375rem; margin-bottom: .6rem; }
.steps b { font-size: 1.2rem; font-weight: 600; letter-spacing: -.017em; }
.steps p, .steps span { color: var(--text-2); font-size: .975rem; line-height: 1.45; }

/* ---------- forms ---------- */
label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
input, select, textarea {
  width: 100%; font: 400 1.0625rem/1.3 var(--font); letter-spacing: -.011em;
  background: var(--fill); color: var(--text);
  border: 1px solid transparent; border-radius: var(--r-sm);
  padding: .9rem 1rem; min-height: 3rem; appearance: none; -webkit-appearance: none;
  transition: box-shadow .2s, background-color .2s, border-color .2s;
}
textarea { resize: vertical; min-height: 6.5rem; }
input::placeholder, textarea::placeholder { color: var(--text-ph); }
input:hover, select:hover, textarea:hover { background: var(--fill-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--a); background: var(--fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 24%, transparent); }
select {
  padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 1.35rem) 50%, calc(100% - 1rem) 50%; background-size: .4rem .4rem; background-repeat: no-repeat;
}
select option { background: var(--surface); color: var(--text); }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; accent-color: var(--a-fill); }
.form-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 0 0 1px var(--line) inset; display: grid; gap: 1rem; }
.form-card .r, .form-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-card .r, .form-card .row2 { grid-template-columns: 1fr; } }
.form-msg { min-height: 1.2em; }
.form-msg.err, .err { color: var(--a); }

/* NL plate field */
.plate-field { position: relative; }
.plate-field input { background: #f7c600; color: #151515; text-transform: uppercase; font-weight: 700; letter-spacing: .12em; text-align: center; padding-left: 3.1rem; border-radius: 10px; font-family: var(--font); }
.plate-field input::placeholder { color: rgba(0, 0, 0, .6); }
.plate-field input:hover { background: #ffd21a; }
.plate-field::before { content: "NL"; position: absolute; left: 0; top: 0; bottom: 0; width: 2.5rem; border-radius: 10px 0 0 10px; background: #003399; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; display: grid; place-items: end center; padding-bottom: .55rem; z-index: 1; pointer-events: none; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--text-3); font-size: .8125rem; line-height: 1.5; letter-spacing: .002em; }
footer .wrap { display: grid; gap: .5rem; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 2px; }
footer .v-legal { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-top: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand em { font-style: normal; font-weight: 400; color: var(--text-2); }
.mark { color: var(--a); }

/* ---------- reveal: animation (not transition) so hover transitions on the same element stay snappy ---------- */
.rv { opacity: 0; }
.rv.in { opacity: 1; animation: rv-up 1s var(--ease) var(--d, 0ms) backwards; }
@keyframes rv-up { from { opacity: 0; transform: translateY(30px) scale(.985); } }
@keyframes rv-fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ---------- material fallbacks + accessibility ---------- */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .hero-in { transform: none; }
  .rv.in { animation: rv-fade .45s ease backwards; }
  a.card:hover, a.card:active, .btn:active { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(128, 128, 128, .65); --text-2: color-mix(in srgb, var(--text) 82%, transparent); --text-3: color-mix(in srgb, var(--text) 72%, transparent); }
  .btn.ghost, .btn.secondary { box-shadow: 0 0 0 1px var(--line) inset; }
}
@media print {
  .rv { opacity: 1 !important; animation: none !important; }
  .hero::before { display: none; }
}

/* ---------- Valour FX (see valour-fx.js) ---------- */
.fx .hero h1, .fx .sec-head h2 { opacity: 0; }           /* hidden until the headline is split; valour-fx.js (or a 2.5 s fallback) removes .fx */
.fx-line { will-change: transform, opacity; }
.btn { translate: var(--bx, 0px) var(--by, 0px); }        /* magnetic pull: composes with the press scale */
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--a) 17%, transparent), transparent 70%); }
.spot:hover::after { opacity: 1; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) { .fx .hero h1, .fx .sec-head h2 { opacity: 1; } .spot::after { display: none; } }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth iframe { pointer-events: none; }
