/* Viabo teaser. Colours and type follow the Viabo brand: charcoal, blue and rose, Manrope. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20A6, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #22292E; --paper: #F5F4F2; --white: #FFFFFF; --line: #E3E1DD; --field: #C9C6C0;
  --muted: #555D63; --soft: #3D454B; --blue: #2F7FA0; --rose: #D9566B;
  --ease: cubic-bezier(.65, 0, .35, 1); --gut: max(24px, 6vw);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:has(body.home) { scroll-snap-type: y mandatory; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Manrope, "Segoe UI", system-ui, sans-serif; font-size: 17px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
h1, h2 { letter-spacing: -0.02em; }
[hidden] { display: none !important; }

/* Header: light over the light sections, light text over the dark one. */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gut); padding-top: max(12px, env(safe-area-inset-top)); color: var(--ink);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  transition: background-color .5s ease, color .5s ease, border-color .5s ease; }
body.s0 .top { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.s4 .top { background: transparent; border-color: transparent; color: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand span { font-size: 27px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.mk-b { stroke: var(--blue); transition: stroke .5s ease; } .mk-r { stroke: var(--rose); transition: stroke .5s ease; }
body.s4 .mk-b { stroke: #6CB8D6; } body.s4 .mk-r { stroke: #F28A9B; }
.top-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 700;
  background: var(--ink); color: var(--white); transition: background-color .3s ease, color .3s ease, transform .15s ease; }
.top-cta:active { transform: scale(.98); }
body.s4 .top-cta { background: var(--white); color: var(--ink); }

/* Buttons */
.btn { min-height: 52px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; transition: transform .15s ease, background-color .2s ease; }
.btn:active { transform: scale(.98); }
.dark-btn { background: var(--ink); color: var(--white); }
.dark-btn:hover { background: #000; }
.dark-btn[disabled] { opacity: .6; cursor: wait; }
.line { background: none; color: var(--ink); border: 1px solid var(--ink); font-weight: 500; }
.line:hover { background: rgba(34, 41, 46, .05); }

/* Full-screen sections, one per swipe. */
.sec { position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
#s0, #s2, #s5 { background: var(--paper); }
.sec.dark { background: var(--ink); color: var(--paper); }
.copy { width: min(48vw, 600px); padding: 96px 0 64px var(--gut); opacity: 0; transform: translateY(24px); transition: opacity .7s ease .25s, transform .7s cubic-bezier(.2, .7, .2, 1) .25s; }
.sec.on .copy { opacity: 1; transform: none; }
h1 { margin: 0 0 32px; font-size: clamp(30px, 4vw, 54px); line-height: 1.12; font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.big { margin: 0; font-size: clamp(24px, 3vw, 40px); line-height: 1.3; font-weight: 500; }
.mid { margin: 0 0 20px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.35; font-weight: 500; }
.soft { margin: 0; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.6; color: var(--soft); }
.sec h2 { margin: 0 0 20px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; font-weight: 700; }
.dark p { margin: 0; color: #E4E2DE; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; }
.list { list-style: none; margin: 0; padding: 0; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.45; }
.list li { padding: 11px 0; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.next { position: absolute; left: 50%; bottom: 22px; margin-left: -22px; width: 44px; height: 44px; border-radius: 22px; border: 1px solid rgba(34, 41, 46, .35); display: grid; place-items: center; color: var(--ink); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Section dots */
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; }
.dots a { width: 28px; height: 28px; display: grid; place-items: center; }
.dots a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B5B0A8; transition: all .3s ease; }
.dots a.on::after { width: 10px; height: 10px; background: var(--ink); }
body.s4 .dots a::after { background: rgba(255, 255, 255, .45); }
body.s4 .dots a.on::after { background: var(--white); }

/* The stage and its eight cards. Their places come from site.js. */
.stage { position: fixed; z-index: 10; pointer-events: none; right: 7vw; top: 50%; transform: translateY(-46%); width: min(40vw, 66vh); aspect-ratio: 1; }
.card { position: absolute; overflow: hidden; left: 40%; top: 40%; width: 20%; height: 10%; background: var(--white); border: 1px solid var(--field); border-radius: 8px;
  box-shadow: 0 6px 18px -8px rgba(20, 25, 28, .25);
  transition: left .95s var(--ease), top .95s var(--ease), width .95s var(--ease), height .95s var(--ease), transform .95s var(--ease),
    opacity .6s ease, background-color .6s ease, border-color .6s ease, border-radius .95s ease, box-shadow .6s ease;
  transition-delay: var(--d, 0s); }
.card > span { position: absolute; inset: 0; display: flex; align-items: center; gap: 8%; padding: 0 9%; transition: opacity .4s ease; }
.card i { position: absolute; left: 9%; top: 50%; width: 11%; aspect-ratio: 1; margin-top: -5.5%; border-radius: 3px; background: var(--dot, var(--blue)); }
.card > span { padding-left: 27%; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14%; }
.card b { display: block; height: max(3px, .5vmin); border-radius: 3px; background: var(--ink); width: 82%; transition: background-color .6s ease; }
.card b + b { background: var(--field); width: 56%; }
.card.nobars > span, .card.nobars i { opacity: 0; }
.card i { transition: opacity .4s ease; }
.stage.s4 .card b:first-child { background: #C9CED1; }
.frame, .fit, .lock { position: absolute; opacity: 0; transition: opacity .7s ease .35s; }
.frame { left: 4%; top: 12%; width: 92%; height: 84%; border: 1px solid #D6D3CE; border-radius: 14px; background: var(--paper); overflow: hidden; }
.frame-bar { height: 11%; background: var(--ink); display: flex; align-items: center; padding-left: 4%; }
.frame-bar svg { width: 8%; }
.fit { inset: 0; width: 100%; height: 100%; overflow: visible; }
.fit-fill { fill: #E9E6E1; opacity: 0; }
.rigid { fill: none; stroke: var(--ink); stroke-width: .7; opacity: 0; }
.wrap { fill: none; stroke: var(--blue); stroke-width: .8; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lock { inset: 0; width: 100%; height: 100%; }
.lock path { fill: none; stroke: var(--paper); stroke-width: 3.2; stroke-linecap: round; }
.stage.s1 .fit, .stage.s2 .frame, .stage.s4 .lock { opacity: 1; }
.stage.s1 .rigid { animation: rigid 2.6s ease both .5s; }
.stage.s1 .wrap { animation: wrapdraw 1.3s ease-out 1.9s forwards; }
.stage.s1 .fit-fill { animation: wrapfill .9s ease 2.9s forwards; }
@keyframes rigid { 0% { opacity: 0; } 15% { opacity: 1; } 55% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes wrapdraw { to { stroke-dashoffset: 0; } }
@keyframes wrapfill { to { opacity: 1; } }

/* Form */
form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
form input[type=text], form input[type=email], form input[type=tel], form select {
  min-height: 46px; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; background: var(--white); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 400; width: 100%; }
form input:focus, form select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
form input[aria-invalid=true], form select[aria-invalid=true] { border-color: var(--rose); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
form .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: 0; font-size: 14px; color: var(--muted); }
.err { margin: 0; padding: 10px 14px; border-radius: 8px; background: #FDF0F2; color: #A3263A; font-size: 15px; }
form button { align-self: flex-start; }
.h-big { font-size: clamp(30px, 3.4vw, 44px) !important; font-weight: 800 !important; margin-bottom: 14px !important; }
.lead { margin: 0; color: var(--soft); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; }
.sent { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.sent p { margin: 0; }
.sent-h { font-size: 22px; font-weight: 800; margin-bottom: 8px !important; }
.sec.last { justify-content: space-between; }
.sec.last .copy { padding-top: 104px; padding-bottom: 32px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sec.last .foot { border-top: 1px solid var(--line); padding: 20px var(--gut) max(20px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px 48px; font-size: 13px; line-height: 1.55; color: var(--soft); }
.sec.last .foot p { margin: 0; flex: 1 1 380px; }

/* Privacy page */
body:not(.home) .top { background: var(--white); }
.foot { background: var(--paper); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 72px; }
body:not(.home) > .foot { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; line-height: 1.6; color: var(--soft); }
body:not(.home) > .foot p { margin: 0; }
.page { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 12px; }
.page h2 { font-size: 20px; margin: 36px 0 8px; }
.page p, .page li { color: var(--soft); }
.page .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }

/* Tablets and phones: the stage sits above the words. */
@media (max-width: 820px) {
  .stage { left: 50%; right: auto; top: 76px; transform: translateX(-50%); width: min(66vw, 30svh); }
  .stage.on5 { opacity: 0; transition: opacity .4s ease; }
  .copy { width: auto; padding: calc(92px + min(66vw, 30svh)) 20px 56px; }
  #s0 .copy { padding-bottom: 92px; }
  .dots { display: none; }
  .sec.last .copy { padding-top: 96px; }
  .two { grid-template-columns: 1fr; }
  .list li { padding: 7px 0; font-size: 15px; }
  .sec h2 { font-size: 21px; margin-bottom: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { padding-left: 16px; padding-right: 16px; }
  .brand span { font-size: 24px; }
  .top-cta { padding: 0 12px; font-size: 14px; }
  h1 { font-size: 27px; }
  .big { font-size: 22px; }
  .mid { font-size: 19px; }
  .actions .btn { flex: 1 1 100%; }
  .pair { grid-template-columns: 1fr; }
  form button { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .frame, .fit, .lock, .copy, .top, .btn { transition: none !important; }
  .next { animation: none; }
  .stage.s1 .rigid { animation: none; opacity: 0; }
  .stage.s1 .wrap { animation: none; stroke-dashoffset: 0; }
  .stage.s1 .fit-fill { animation: none; opacity: 1; }
}
