/* Vigil landing: big type, and the product as the motion graphic.
   The real dashboard plays one day across it (depot, pump, bank) with live cards floating over it, the way the best
   ERP sites (Rillet, Campfire) show their product. Calm neutrals; Viggo purple and gold only as accents. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-wdth-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-wdth-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/satoshi-variable.woff2") format("woff2"); }

:root {
  --ink: #111013; --ink-2: #46434B; --muted: #75717B; --grey: #A9A5AE; --line: #E9E8EC; --bg: #F4F4F6; --white: #fff;
  --purple: #752190; --gold: #CF971C; --ok: #067647; --ok-bg: #E7F6EE; --blue: #2D4FB8; --blue-bg: #EEF2FD;
  --display: "Archivo", "Satoshi", -apple-system, "Segoe UI", sans-serif;
  --body: "Satoshi", "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gut: clamp(20px, 4vw, 64px);
  --shadow: 0 1px 2px rgb(17 16 19 / 0.05), 0 18px 48px rgb(17 16 19 / 0.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, p, ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 140ms ease; }
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A282E; }
.btn-ghost { border-color: #D9D7DE; background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }

/* nav */
.nav { position: absolute; z-index: 10; inset: 0 0 auto 0; height: 76px; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-size: 14px; }

/* hero: everything on one centre line. Copy on top, the film below it, cards floating out into the margins. */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 2.8vh, 32px); text-align: center;
  padding: 88px var(--gut) 20px; overflow: clip;
  background: radial-gradient(55% 50% at 50% 70%, #FFFFFF 0%, rgb(255 255 255 / 0) 75%); }
.copy { display: flex; flex-direction: column; align-items: center; }
.kicker { color: var(--purple); font-size: 12.5px; margin-bottom: clamp(14px, 2.2vh, 22px); }
h1 { font-family: var(--display); font-stretch: 120%; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; font-size: clamp(36px, min(4.6vw, 7.4vh), 80px); }
h1 .ln { display: block; }
h1 .ln span { white-space: nowrap; } /* lines may break between sentences, never inside one */
h1 .lo { color: var(--grey); }
.sub { margin-top: clamp(12px, 2vh, 20px); color: var(--ink-2); font-size: clamp(15px, 1.25vw, 19px); line-height: 1.5; }
.cta { display: flex; justify-content: center; gap: 12px; margin-top: clamp(18px, 2.8vh, 28px); }

/* the film */
.film { position: relative; container-type: inline-size; width: min(1240px, 100%); padding: 0; text-align: left; }
/* the window is sized by the height left on screen, so the whole page fits in one view */
.screen { width: min(64%, calc((100svh - 480px) * 1.6)); min-width: min(560px, 100%); margin: 0 auto; }
.screen { position: relative; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgb(17 16 19 / 0.06), 0 40px 100px rgb(17 16 19 / 0.16), 0 10px 30px rgb(17 16 19 / 0.06); }
.chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #FAFAFB; }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #E1DFE5; }
.chrome span { margin-left: 10px; font-size: 11px; color: var(--muted); }
.view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.view img { width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }

/* floating cards */
.fc { position: absolute; z-index: 3; background: #fff; border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px rgb(17 16 19 / 0.05); padding: 1.1em 1.2em; font-size: clamp(10.5px, 1.15cqi, 14px); opacity: 0; will-change: transform, opacity; }
.fc-k { display: flex; align-items: center; justify-content: space-between; gap: 1em; color: var(--muted); }
.fc-k .mono { font-size: 0.82em; }
.fc-t { margin-top: 0.55em; font-weight: 600; font-size: 1.15em; letter-spacing: -0.01em; }
.fc-t em { font-style: normal; color: var(--grey); margin: 0 0.2em; }
.fc-s { margin-top: 0.5em; color: var(--muted); font-size: 0.9em; }
.fc-n { margin-top: 0.6em; font-family: var(--mono); font-size: 0.95em; color: var(--muted); }
.fc-n b { color: var(--ink); font-size: 1.6em; font-weight: 600; letter-spacing: -0.02em; }
.chip { display: inline-flex; align-items: center; gap: 0.35em; height: 1.75em; padding: 0 0.6em; border-radius: 6px; font-size: 0.86em; font-weight: 600; white-space: nowrap; }
.chip-ago { background: #FBF1DC; color: #8C6405; }
.chip-road { background: var(--blue-bg); color: var(--blue); }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.bar { margin-top: 0.9em; height: 0.5em; border-radius: 99px; background: #EFEDF2; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #E8B23A, var(--gold)); }

.fc-load { left: 3%; top: 16%; width: 25%; }
.fc-trip { right: 2%; bottom: 14%; width: 29%; }
.fc-toast { right: 5%; top: 1%; width: 29%; display: flex; align-items: center; gap: 0.8em; padding: 0.85em 1em; }
.fc-toast .bell { width: 2.3em; height: 2.3em; flex: none; border-radius: 50%; background: #F3EDF7; color: var(--purple); display: grid; place-items: center; }
.fc-toast b { display: block; font-size: 1em; }
.fc-toast em { display: block; font-style: normal; color: var(--muted); font-size: 0.88em; }
.fc-toast time { margin-left: auto; align-self: flex-start; color: var(--grey); font-size: 0.82em; }
.fc-bank { right: 1.5%; top: 20%; width: 31%; }
.fc-profit { left: 4%; bottom: 16%; width: 23%; }

.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8em; margin-top: 0.9em; font-weight: 600; font-size: 0.98em; }
.rl { position: relative; height: 0.25em; border-radius: 99px; background: #E6E4EA; }
.rl i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: var(--purple); }
.rl b { position: absolute; top: 50%; left: 0; width: 0.95em; height: 0.95em; margin: -0.475em 0 0 -0.475em; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 0.3em rgb(117 33 144 / 0.16); }
.fc-btn { margin-top: 0.9em; width: 100%; height: 2.6em; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.95em; transition: background-color 200ms ease; }
.fc-btn.done { background: var(--ok-bg); color: var(--ok); }

.fc-bank ul { list-style: none; margin-top: 0.7em; }
.fc-bank li { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.6em; gap: 0.8em; align-items: center; padding: 0.55em 0; border-top: 1px solid var(--line); font-size: 0.95em; }
.fc-bank li span:nth-child(2) { font-family: var(--mono); font-size: 0.92em; color: var(--ink-2); }
.fc-bank li b { justify-self: end; height: 1.75em; padding: 0 0.6em; border-radius: 6px; display: inline-flex; align-items: center; font-size: 0.82em; background: #F2F1F4; color: var(--grey); transition: background-color 250ms ease, color 250ms ease; }
.fc-bank li b.ok { background: var(--ok-bg); color: var(--ok); }
.fc-bank li b.ok::before { content: "✓"; margin-right: 0.35em; }
.fc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 0.7em; border-top: 1px solid var(--line); color: var(--muted); }
.fc-total b { color: var(--ink); font-family: var(--mono); font-size: 1.25em; letter-spacing: -0.02em; }

.fc-profit .mono { color: var(--muted); font-size: 0.8em; }
.fc-big { margin-top: 0.4em; font-family: var(--mono); font-size: 1.05em; color: var(--muted); }
.fc-big b { color: var(--ink); font-size: 1.7em; font-weight: 600; letter-spacing: -0.03em; }
.fc-big .up { margin-left: 0.4em; color: var(--ok); font-size: 0.85em; }
.spark { display: block; width: 100%; height: 2.6em; margin-top: 0.5em; overflow: visible; }
.spark path { fill: none; stroke: var(--purple); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }

.cursor { position: absolute; z-index: 5; left: 0; top: 0; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.25)); will-change: transform; }
.cursor-ring { position: absolute; z-index: 4; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--purple); opacity: 0; pointer-events: none; }

.chapters { width: min(64%, calc((100svh - 480px) * 1.6)); min-width: min(560px, 100%); margin: 18px auto 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; font-size: 13px; }
.chapters li { color: var(--grey); font-weight: 600; transition: color 300ms ease; }
.chapters li span { font-family: var(--mono); font-weight: 500; margin-right: 0.6em; }
.chapters li i { display: block; height: 2px; margin-top: 0.7em; border-radius: 2px; background: #E2E0E6; overflow: hidden; }
.chapters li i b { display: block; height: 100%; width: 0; background: var(--ink); }
.chapters li.on { color: var(--ink); }

/* sign in: a dialog over the film */
.signin { width: min(420px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 30px 28px 24px; border: 0; border-radius: 18px; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgb(17 16 19 / 0.06), 0 40px 120px rgb(17 16 19 / 0.28); overflow-y: auto; }
.signin::backdrop { background: rgb(17 16 19 / 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.signin[open] { animation: si-in 380ms cubic-bezier(0.16, 1, 0.3, 1); }
.signin[open]::backdrop { animation: si-fade 300ms ease; }
@keyframes si-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes si-fade { from { opacity: 0; } to { opacity: 1; } }
.x-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.x { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.x:hover { background: var(--bg); color: var(--ink); }
.si-logo { width: 36px; height: 36px; margin-bottom: 16px; }
.signin h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.lede { margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.continue { margin-bottom: 14px; }
.seats { display: grid; gap: 2px; }
.seat { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; width: calc(100% + 20px); border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; transition: background-color 140ms ease; }
.seat:hover { background: var(--bg); }
.seat:disabled { opacity: 0.6; cursor: wait; }
.seat i { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #F3EDF7; color: var(--purple); font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.seat b { display: block; font-size: 14px; font-weight: 600; }
.seat span span { display: block; font-size: 12.5px; color: var(--muted); }
.seat svg { margin-left: auto; color: #B5B0BC; flex: none; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font-size: 12.5px; color: #A29DA9; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: block; margin-bottom: 10px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #E2E0E6; border-radius: 10px; font-size: 15px; background: #fff; transition: border-color 140ms ease, box-shadow 140ms ease; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(17 16 19 / 0.08); }
.btn-block { margin-top: 4px; }
.note { margin: 10px 0 0; font-size: 13px; color: #B42318; }
.foot { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.small { font-size: 13px; }

/* reduced motion: the composed last frame, still */
html.still .fc-bank, html.still .fc-profit { opacity: 1; }
html.still .fc-bank li b { background: var(--ok-bg); color: var(--ok); }
html.still .spark path { stroke-dashoffset: 0; }

@media (max-width: 1000px) {
  .screen, .chapters { width: 100%; min-width: 0; }
  .fc { font-size: clamp(10px, 1.8cqi, 13px); }
  .fc-load { left: 0; top: 14%; width: 44%; } .fc-trip { right: 0; bottom: 18%; width: 54%; } .fc-toast { right: 2%; top: 2%; width: 58%; }
  .fc-bank { right: 0; top: 22%; width: 58%; } .fc-profit { left: 2%; bottom: 18%; width: 42%; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  h1 { font-size: clamp(34px, 11vw, 50px); }
  .copy { max-width: 100%; }
  .fc-load { width: 56%; } .fc-trip { width: 66%; } .fc-toast { width: 74%; } .fc-bank { width: 70%; } .fc-profit { width: 54%; }
}
