/* BCVerk site: shared styles */
:root {
  --paper: #F4F6F6;
  --surface: #FFFFFF;
  --ink: #0F1F22;
  --muted: #4D6064;
  --line: #D3DCDD;
  --petrol: #0A5C63;
  --petrol-deep: #073F44;
  --petrol-soft: #DDEFF0;
  --signal: #F5B400;
  --signal-ink: #1F1600;
  --route: 34px;          /* x position of the route line */
  --measure: 62ch;
  --display: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244,246,246,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
/* Brand: the nav.is "eye" shared with BCKerfi and BCPortal, then the product name */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--petrol); flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font: 700 24px/1 var(--display); letter-spacing: -.01em; }
.brand-small .brand-text b { font-size: 19px; }
.app-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 600; font-size: 16px; color: var(--muted); }
.app-badge svg { border-radius: 11px; box-shadow: 0 2px 6px rgba(15,31,34,.15); }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--petrol); text-decoration: underline; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; font: 600 17px/1 var(--body); text-decoration: none; border: 2px solid transparent; }
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: #FFC42E; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { background: var(--petrol-deep); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: end; padding-top: 72px; }
.hero h1 { font: 700 clamp(44px, 6.4vw, 86px)/.98 var(--display); letter-spacing: -.015em; margin: 0 0 28px; max-width: 17ch; }
.hero p { font-size: 20px; line-height: 1.55; color: #D6E6E7; max-width: 46ch; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 112px; }
.hero .wrap > div:first-child { padding-left: calc(var(--route) + 48px); }
.hero .phone { align-self: end; justify-self: center; width: min(340px, 100%); margin-bottom: -2px; border-radius: 28px 28px 0 0; border: 10px solid #0F1F22; border-bottom: 0; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; background: #fff; }
.hero .phone img { width: 100%; aspect-ratio: 9/14; object-fit: cover; object-position: top; }
/* The route starts in the hero: the depot circle of the BCVerk mark, a signal-yellow road driven once to the phone */
.hero .wrap { position: relative; }
.depot { position: absolute; left: calc(var(--route) - 12px); bottom: 32px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--signal); }
.depot::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 40px; margin-left: -1.5px; background: var(--signal); }
.road { position: absolute; left: calc(var(--route) + 14px); right: 30%; bottom: 43px; height: 3px; background: var(--signal); border-radius: 2px; transform-origin: left; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; gap: 8px; }
  .hero .actions { padding-bottom: 40px; }
  .hero .phone { width: min(280px, 80%); }
}

/* Route through the page: every section is a stop */
.route { position: relative; padding: 24px 0 0; }
.route::before { content: ""; position: absolute; left: var(--route); top: 0; bottom: 120px; width: 3px; background: var(--petrol); border-radius: 2px; }
.stop { scroll-margin-top: 72px; position: relative; padding: 72px 0 24px calc(var(--route) + 48px); }
.stop:has(> .acc) { margin-left: calc(var(--route) + 32px); }
.stop > h2 { position: relative; font: 700 clamp(32px, 4vw, 52px)/1.05 var(--display); letter-spacing: -.01em; margin: 0 0 20px; max-width: 20ch; }
.stop > h2::before { content: ""; position: absolute; left: calc(-48px - 11px + 1.5px); top: .22em; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 3px solid var(--petrol); box-sizing: border-box; }
.stop p.lead { font-size: 20px; color: var(--muted); max-width: var(--measure); margin: 0 0 40px; }
.stop.final > h2::before { background: var(--signal); border-color: var(--signal); }
@media (max-width: 760px) {
  :root { --route: 14px; }
  .stop { padding-left: calc(var(--route) + 28px); padding-top: 56px; }
  .stop > h2::before { left: calc(-28px - 9px + 1.5px); width: 18px; height: 18px; }
}

/* Three ways work reaches the app */
.origins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.origin { padding: 28px 28px 8px 0; }
.origin + .origin { padding-left: 28px; border-left: 1px solid var(--line); }
.origin h3 { font: 600 24px/1.2 var(--display); margin: 0 0 6px; }
.origin .from { font-size: 15px; color: var(--petrol); font-weight: 600; margin: 0 0 12px; }
.origin p { margin: 0 0 16px; color: var(--ink); }
@media (max-width: 900px) {
  .origins { grid-template-columns: 1fr; }
  .origin, .origin + .origin { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .origin:first-child { border-top: 0; }
}

/* Business Central */
.bc .shot:first-child { grid-column: 1 / -1; }
.bc .shot:first-child img { aspect-ratio: auto; }
.bc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; align-items: start; }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: left top; }
.shot figcaption { padding: 12px 16px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 20px; align-content: start; }
.facts li { padding-left: 34px; position: relative; }
.facts li svg { position: absolute; left: 0; top: 4px; width: 22px; height: 22px; stroke: var(--petrol); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--muted); }
@media (max-width: 900px) { .bc, .facts { grid-template-columns: 1fr; } }

/* In the app: a real sequence */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; }
.steps .frame { border: 8px solid var(--ink); border-radius: 26px; overflow: hidden; background: #fff; margin-bottom: 20px; }
.steps .frame img { aspect-ratio: 9/15; object-fit: cover; object-position: top; width: 100%; }
.steps h3 { font: 600 22px/1.25 var(--display); margin: 0 0 6px; display: flex; gap: 12px; align-items: baseline; }
.steps h3::before { content: counter(step); font: 700 15px/1 var(--body); color: var(--petrol); background: var(--petrol-soft); border-radius: 50%; width: 28px; height: 28px; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 360px; } }



/* Stacked cards: each section sticks near the top and the next one slides up over it. The card underneath
   tilts back, shrinks a little and dims, driven directly by the scroll position (see script). */
.acc-head { display: grid; margin-bottom: 20px; }
.acc-head h2 { font: 700 clamp(30px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -.01em; margin: 0; }
.acc-head .hint { display: none; }
.acc-body, .acc-inner { display: block; }
.scan { display: none; }
.stop:has(> .acc) { position: sticky; top: var(--stick, 76px); padding: 0; margin-top: 0; margin-bottom: 56px; }
.stop:has(> .acc):first-of-type { margin-top: 48px; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 48px 44px;
  box-shadow: 0 -10px 40px rgba(15, 31, 34, .08), 0 2px 6px rgba(15, 31, 34, .04);
  transform-origin: 50% 0; will-change: transform, filter; backface-visibility: hidden; }
.stop.final { position: relative; z-index: 2; background: var(--paper); padding-top: 72px; }
@media (max-width: 760px) { .acc { padding: 28px 20px 32px; border-radius: 16px; } .stop:has(> .acc) { --stick: 68px; } }
@media (prefers-reduced-motion: reduce) { .stop:has(> .acc) { position: relative; top: auto; } .acc { transform: none !important; filter: none !important; } }

/* Progress on the route line: signal yellow fills down to where the reader is */
.route::after { content: ""; position: absolute; left: var(--route); top: 0; width: 3px; border-radius: 2px; background: var(--signal);
  height: var(--progress, 0px); box-shadow: 0 0 10px rgba(245,180,0,.5); }

/* Data flow */
.arch { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.1fr 1fr; align-items: center; margin: 8px 0 48px; }
.node { background: var(--surface); border: 2px solid var(--petrol); border-radius: 12px; padding: 20px; min-height: 150px; }
.node.core { background: var(--petrol); color: #fff; }
.node.core p { color: #D6E6E7; }
.node h3 { font: 600 22px/1.2 var(--display); margin: 0 0 8px; }
.node p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.link { display: grid; gap: 14px; padding: 0 10px; font-size: 14px; line-height: 1.35; }
.link span { display: grid; gap: 4px; padding-top: 8px; border-top: 3px solid var(--petrol); }
.link .back { border-top-color: var(--signal); }
.link svg { width: 18px; height: 18px; fill: none; stroke: var(--petrol); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.link .out svg { justify-self: end; }
.link .back svg { stroke: #B88500; }
@media (max-width: 960px) {
  .arch { grid-template-columns: 1fr; gap: 12px; }
  .node { min-height: 0; }
  .link { padding: 4px 0 4px 24px; }
  .link span { border-top: 0; border-left: 3px solid var(--petrol); padding: 2px 0 2px 12px; }
  .link .back { border-left-color: var(--signal); }
  .link svg { transform: rotate(90deg); justify-self: start !important; }
}

/* Contact */
.contact { background: var(--petrol); color: #fff; border-radius: 16px; padding: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 96px; }
.contact p { margin: 0; font-size: 20px; max-width: 44ch; color: #D6E6E7; }
.stop.final > h2 { margin-bottom: 28px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
.maker { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
