/* Badgy presentation site.
   Colour tokens mirror lib/core/theme/app_colors.dart — keep them in sync. */

:root {
  --background: #F3F1EC;
  --surface: #FFFFFF;
  --ink: #17191E;
  --ink-2: #23262D;
  --muted: #5B6070;
  --on-ink-muted: #A4A8B4;
  --border: #E2DED6;
  --accent: #C2410C;
  --accent-dark: #9A3412;
  --accent-light: #FFEDD5;

  --working-fg: #166534; --working-bg: #DCFCE7;
  --break-fg: #92400E;   --break-bg: #FEF3C7;
  --out-fg: #9F1239;     --out-bg: #FFE4E6;
  --pending-fg: #3730A3; --pending-bg: #E0E7FF;

  --radius-card: 16px;
  --radius-btn: 14px;
  --container: 1160px;
  --font: 'Barlow', system-ui, sans-serif;
  --font-num: 'Barlow Condensed', 'Barlow', sans-serif;

  /* Apple-like motion: fast start, long soft landing. */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ink-dim: #3A3E48;        /* unlit words on the dark statement */
  --accent-bright: #FB923C;  /* accent that stays readable on ink */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

.eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8em;
}
.eyebrow--light { color: #FDBA74; }
.lead, .section__lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-btn);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { border: 2px solid var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 18px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 241, 236, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.45rem; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand--small { font-size: 1.1rem; }
.brand--small img { border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero__points li::before { content: "✓"; color: var(--working-fg); font-weight: 800; margin-right: 6px; }
.hero__visual { display: flex; justify-content: center; position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: 8% -10% -6% 10%;
  background: radial-gradient(circle at 50% 45%, var(--accent-light), transparent 65%);
  z-index: -1;
}

/* ---------- Phone mockup (Pointage screen) ---------- */
.phone {
  width: 320px; padding: 12px; border-radius: 44px;
  background: var(--ink); box-shadow: 0 30px 60px -20px rgba(23, 25, 30, .45);
}
.phone__screen { border-radius: 34px; overflow: hidden; background: var(--background); font-size: 13px; line-height: 1.4; }
.app-header { background: var(--ink); color: #fff; padding: 22px 20px 54px; }
.app-header__top { display: flex; justify-content: space-between; align-items: center; }
.app-logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; }
.app-logo img { border-radius: 5px; }
.app-header__date { color: var(--on-ink-muted); margin: 16px 0 2px; }
.timer { font-family: var(--font-num); font-weight: 700; font-size: 54px; line-height: 1; margin: 0 0 6px; letter-spacing: .01em; }
.app-header__sub { color: var(--on-ink-muted); margin: 0; font-size: 12px; }
.app-card { background: var(--surface); border-radius: 14px; margin: 0 12px 10px; padding: 14px 16px; border: 1px solid var(--border); }
.app-card--overlap { margin-top: -38px; position: relative; box-shadow: 0 8px 20px -10px rgba(0,0,0,.25); }
.app-card p { margin: 0; }
.app-card__label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px !important; }
.app-card__title { font-weight: 700; font-size: 15px; }
.app-card__muted { color: var(--muted); }
.gps { display: flex; align-items: center; gap: 7px; margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--border); color: var(--working-fg); font-weight: 600; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--ok { background: var(--working-fg); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 4px 0 4px 16px; position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline b { color: var(--ink); font-weight: 700; margin-right: 6px; }
.app-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 4px 12px 18px; }
.app-btn { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 13px; font-weight: 700; }
.app-btn--light { background: var(--surface); border: 1px solid var(--border); }
.app-btn--dark { background: var(--accent); color: #fff; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--working { color: var(--working-fg); background: var(--working-bg); }
.pill--break { color: var(--break-fg); background: var(--break-bg); }
.pill--out { color: var(--out-fg); background: var(--out-bg); }
.pill--pending { color: var(--pending-fg); background: var(--pending-bg); }

/* ---------- Trades strip ---------- */
.strip { background: var(--surface); border-block: 1px solid var(--border); padding: 26px 0; }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.strip p { margin: 0; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--background); border: 1px solid var(--border); font-weight: 600; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; overflow-x: clip; } /* glows and slide-ins never cause sideways scroll */
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .section__lead { color: var(--on-ink-muted); }
.section--ink strong { color: #fff; }

/* ---------- Scroll reveal (blur + rise, Apple-like) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px) scale(.98); filter: blur(10px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
.stats__grid [data-reveal]:nth-child(2) { transition-delay: .1s; }
.stats__grid [data-reveal]:nth-child(3) { transition-delay: .2s; }
.stats__grid [data-reveal]:nth-child(4) { transition-delay: .3s; }

/* ---------- Top bar compacts once the page scrolls ---------- */
.topbar { transition: background .4s, box-shadow .4s; }
.topbar__inner { transition: height .4s var(--ease-out); }
.topbar.is-scrolled { background: rgba(243, 241, 236, .78); box-shadow: 0 1px 0 var(--border), 0 10px 30px -20px rgba(23, 25, 30, .35); }
.topbar.is-scrolled .topbar__inner { height: 60px; }

/* ---------- Hero entrance + scroll ---------- */
/* Headline words arrive one by one, from blur to sharp. */
.word { display: inline-block; }
.js [data-split] .word { opacity: 0; transform: translateY(.4em); filter: blur(8px); animation: word-in .9s var(--ease-out) forwards; animation-delay: calc(.1s + var(--i) * 60ms); }
.js .hero-in { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: word-in 1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
/* The phone rises and tilts into place. */
.js .hero__visual { animation: phone-rise 1.6s var(--ease-out) .35s backwards; }
@keyframes phone-rise { from { opacity: 0; transform: perspective(1200px) translateY(140px) rotateX(18deg) scale(.9); } }
/* While scrolling away: text drifts up and fades, the phone grows a little. */
.hero__text { transform: translateY(calc(var(--hero-p, 0) * -70px)); opacity: calc(1 - var(--hero-p, 0) * 1.3); }
.hero__visual .phone { transform: translateY(calc(var(--hero-p, 0) * 50px)) scale(calc(1 + var(--hero-p, 0) * .1)); }

/* ---------- Statement: words light up with the scroll ---------- */
.statement { background: var(--ink); padding: 20vh 0 12vh; }
.statement__text { margin: 0; max-width: 1020px; font-size: clamp(1.9rem, 4.6vw, 3.7rem); font-weight: 800; line-height: 1.14; letter-spacing: -.02em; }
.statement .word { color: var(--ink-dim); transition: color .45s ease; }
.statement .word.is-lit { color: #fff; }
.statement .accent .word.is-lit { color: var(--accent-bright); }

/* ---------- Key figures ---------- */
.stats { background: var(--ink); color: #fff; padding: 0 0 20vh; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid #2E323B; padding-top: 48px; }
.stat b {
  display: block; font-family: var(--font-num); font-weight: 700; line-height: 1;
  font-size: clamp(3.2rem, 7vw, 5.6rem); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, var(--on-ink-muted)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 10px; color: var(--on-ink-muted); font-weight: 600; }

/* ---------- Features: scroll-driven on wide screens (set by site.js) ---------- */
.showcase.is-scrolly .showcase__list { gap: 0; padding: 16vh 0 30vh; }
.showcase.is-scrolly .feat {
  min-height: 44vh; align-items: center; opacity: .28;
  background: none; border-color: transparent; box-shadow: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transform: scale(.97); transform-origin: left center;
}
.showcase.is-scrolly .feat.is-active { opacity: 1; transform: none; }
.showcase.is-scrolly .feat:hover { background: none; }
.showcase.is-scrolly .feat__body b { font-size: 1.7rem; line-height: 1.2; margin-bottom: 6px; }
.showcase.is-scrolly .feat__body span { max-height: none; opacity: 1; font-size: 1.08rem; }
.showcase.is-scrolly .feat__progress { display: none; }
.showcase.is-scrolly .showcase__phone { top: max(90px, calc(50vh - 302px)); }
/* ---------- Features: interactive phone ---------- */
.showcase { display: grid; grid-template-columns: 1fr 340px; gap: 56px; margin-top: 44px; align-items: start; }
.showcase__list { display: grid; gap: 8px; }
.feat {
  position: relative; overflow: hidden; width: 100%;
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border: 1px solid transparent; border-radius: var(--radius-card);
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.feat:hover { background: rgba(255, 255, 255, .55); }
.feat:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.feat.is-active { background: var(--surface); border-color: var(--border); box-shadow: 0 18px 40px -28px rgba(23, 25, 30, .4); }
.feat__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-light); display: grid; place-items: center; transition: background .3s; }
.feat__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.feat.is-active .feat__icon { background: var(--accent); }
.feat.is-active .feat__icon svg { stroke: #fff; }
.feat__body b { display: block; font-size: 1.12rem; line-height: 44px; }
.feat__body span { display: block; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .45s ease; }
.feat.is-active .feat__body span { max-height: 140px; opacity: 1; }
.feat__progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.showcase.is-playing .feat.is-active .feat__progress { animation: progress 6s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

.showcase__phone { position: sticky; top: 100px; display: flex; justify-content: center; }
.showcase__phone::before {
  content: ""; position: absolute; inset: 10% -20%; z-index: -1;
  background: radial-gradient(circle, var(--accent-light), transparent 65%);
}
.phone--demo .phone__screen { position: relative; height: 580px; }
.scr {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--background);
  opacity: 0; transform: translateX(28px) scale(.98); pointer-events: none;
  transition: opacity .55s var(--ease-out), transform .7s var(--ease-out);
}
.scr.is-active { opacity: 1; transform: none; }
.scr__bar { padding: 22px 16px 12px; font-weight: 700; font-size: 15px; background: var(--surface); border-bottom: 1px solid var(--border); }
.scr__cta { margin: auto 12px 16px; }
.scr__q { margin: 12px 12px 8px; font-weight: 700; }

/* Toasts that pop up at the bottom of a screen */
.toast {
  position: absolute; left: 12px; right: 12px; bottom: 76px; z-index: 2;
  padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 12.5px;
  opacity: 0; transform: translateY(12px);
  box-shadow: 0 10px 24px -12px rgba(23, 25, 30, .35);
}
.toast--ok { color: var(--working-fg); background: var(--working-bg); }
.toast--info { color: var(--pending-fg); background: var(--pending-bg); }
.scr.is-active .toast { animation: toast-in .4s var(--d, 2s) forwards; }
@keyframes toast-in { to { opacity: 1; transform: none; } }

/* 0. Start the day */
.app-header--tall { padding-bottom: 24px; }
.pill--muted { color: var(--on-ink-muted); background: rgba(255, 255, 255, .1); }
.scr__center { flex: 1; display: grid; place-items: center; position: relative; }
.big-btn {
  position: relative; width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; line-height: 1.25;
  box-shadow: 0 18px 30px -12px rgba(194, 65, 12, .6);
}
.big-btn__ring { position: absolute; inset: -12px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.25); opacity: 0; } }
.tap { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(23, 25, 30, .28); opacity: 0; }
.scr--start.is-active .tap { animation: tap .7s 1.2s ease-out; }
.scr--start.is-active .big-btn { animation: press .35s 1.4s; }
.scr--start .toast { bottom: 20px; --d: 1.8s; }
@keyframes tap { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes press { 50% { transform: scale(.93); } }

/* 1. Site picker + GPS */
.radar { position: relative; height: 150px; display: grid; place-items: center; }
.radar i { position: absolute; width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--working-fg); opacity: 0; animation: radar 2.4s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: .8s; }
.radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { 0% { transform: scale(.3); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.radar__pin { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.scr--gps.is-active .radar__pin { animation: drop .6s .2s cubic-bezier(.3, 1.6, .5, 1) backwards; }
@keyframes drop { from { transform: translateY(-60px); opacity: 0; } }
.gps--center { justify-content: center; border-top: 0; margin: 0 0 12px !important; padding: 0; }
.sites { list-style: none; margin: 0 12px; padding: 0; }
.sites li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 12px; margin-bottom: 8px; font-size: 12.5px;
}
.sites b { font-weight: 600; }
.sites span { color: var(--muted); }
.sites em { font-style: normal; color: var(--accent); font-weight: 800; }
.sites li.is-selected { border: 2px solid var(--accent); }
.scr.is-active .sites li { animation: slide-in .45s backwards; }
.scr.is-active .sites li:nth-child(2) { animation-delay: .1s; }
.scr.is-active .sites li:nth-child(3) { animation-delay: .2s; }
@keyframes slide-in { from { opacity: 0; transform: translateX(20px); } }

/* 2. Offline */
.timer--small { font-size: 40px; margin: 12px 0 0; }
.net { position: relative; height: 44px; margin: 12px 12px 10px; }
.net span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; font-weight: 600; font-size: 12.5px; }
.net__off { color: var(--break-fg); background: var(--break-bg); }
.net__on { color: var(--working-fg); background: var(--working-bg); opacity: 0; }
.scr--offline.is-active .net__off { animation: fade-out .4s 2.4s forwards; }
.scr--offline.is-active .net__on { animation: fade-in .4s 2.4s forwards; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.sync { float: right; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--break-fg); border-right-color: transparent; animation: spin .8s linear infinite; }
.scr--offline.is-active .sync { animation: spin .8s linear infinite, synced .3s 2.6s forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes synced { to { border-color: var(--working-fg); background: var(--working-fg); } }

/* 3. Activities */
.act-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 12px 4px; }
.act-chips span { padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 12px; }
.act-chips .is-on { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.scr--activity.is-active .act-chips .is-on { animation: pop .4s .5s backwards; }
.scr--activity .toast { --d: 2.2s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } }

/* 4. Week */
.week__total { font-family: var(--font-num); font-weight: 700; font-size: 44px; line-height: 1; margin: 16px 16px 10px; }
.week__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 12px 14px; }
.week__tiles span { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 11px; color: var(--muted); }
.week__tiles b { display: block; font-family: var(--font-num); font-size: 18px; color: var(--ink); }
.week__tiles .is-accent b { color: var(--accent); }
.bars {
  position: relative; height: 210px; margin: 0 12px; padding: 16px 12px 26px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.bars div { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars span {
  width: 100%; height: calc(var(--h) * 100%); border-radius: 6px 6px 3px 3px; transform-origin: bottom;
  background: linear-gradient(to top, var(--ink) calc((var(--h) - var(--o, 0)) / var(--h) * 100%), var(--accent) 0);
}
.bars small { position: absolute; bottom: -20px; font-size: 11px; color: var(--muted); }
.bars__line { position: absolute; left: 8px; right: 8px; bottom: calc(26px + .8 * (210px - 42px - 2px)); border-top: 2px dashed var(--accent); z-index: 1; }
.bars__line em { position: absolute; right: 0; top: -17px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent); }
.scr--week.is-active .bars span { animation: grow .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.scr--week.is-active .bars div:nth-of-type(2) span { animation-delay: .08s; }
.scr--week.is-active .bars div:nth-of-type(3) span { animation-delay: .16s; }
.scr--week.is-active .bars div:nth-of-type(4) span { animation-delay: .24s; }
.scr--week.is-active .bars div:nth-of-type(5) span { animation-delay: .32s; }
@keyframes grow { from { transform: scaleY(0); } }

/* 5. Approval */
.approve { list-style: none; margin: 12px; padding: 0; }
.approve li {
  display: grid; grid-template-columns: 1fr auto 26px; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.approve span { font-size: 11.5px; color: var(--muted); }
.approve span b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.approve strong { font-family: var(--font-num); font-size: 18px; }
.approve em { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; color: var(--muted); background: var(--background); border: 1px solid var(--border); }
.approve .is-flag { border-color: var(--out-bg); }
.approve .is-flag em { color: var(--out-fg); background: var(--out-bg); border-color: transparent; }
.scr--approve.is-active li:not(.is-flag) em { animation: check .35s forwards; }
.scr--approve.is-active li:nth-child(1) em { animation-delay: .8s; }
.scr--approve.is-active li:nth-child(2) em { animation-delay: 1.1s; }
.scr--approve.is-active li:nth-child(3) em { animation-delay: 1.4s; }
.scr--approve .toast { --d: 2.2s; }
@keyframes check { 50% { transform: scale(1.25); } to { color: var(--working-fg); background: var(--working-bg); border-color: transparent; } }

/* 6. Own workers and subcontractors */
.team-filter { display: flex; gap: 6px; padding: 12px 12px 4px; }
.team-filter span { padding: 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 11.5px; }
.team-filter .is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.team { list-style: none; margin: 8px 12px; padding: 0; }
.team li {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 9px 10px; margin-bottom: 7px;
}
.team .avatar { width: 32px; height: 32px; font-size: 11px; }
.team span:not(.avatar) { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.team b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.team em { font-style: normal; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); border-radius: 999px; padding: 1px 7px; margin-right: 4px; }
.team i { font-style: normal; }
.team .is-sub { border-left: 3px solid var(--accent); }
.scr.is-active .team li { animation: slide-in .45s backwards; }
.scr.is-active .team li:nth-child(2) { animation-delay: .08s; }
.scr.is-active .team li:nth-child(3) { animation-delay: .16s; }
.scr.is-active .team li:nth-child(4) { animation-delay: .24s; }
.scr.is-active .team li:nth-child(5) { animation-delay: .32s; }
.scr--team .toast { bottom: 16px; --d: 1.6s; }

/* ---------- How it works: 3 scenes ---------- */
.story { position: relative; list-style: none; padding: 0; margin: 64px 0 0; display: grid; gap: 96px; }
.story__line { position: absolute; left: 25px; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; background: var(--border); }
.story__fill { position: absolute; inset: 0; border-radius: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.scene { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-left: 84px; }
.scene > * { min-width: 0; }
.scene__num {
  position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-num); font-size: 26px; font-weight: 700;
  background: var(--surface); border: 3px solid var(--border); color: var(--muted);
  transition: background .4s, border-color .4s, color .4s, transform .4s;
}
.scene.is-playing .scene__num { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.06); }
.scene__when { color: var(--accent); font-weight: 700; font-size: .92rem; letter-spacing: .02em; margin-bottom: .5em; }
.scene__text h3 { font-size: 1.6rem; }
.scene__text p { color: var(--muted); }
.scene__text p b { color: var(--ink); }
.scene__text, .scene__visual { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.scene__visual { transition-delay: .15s; }
.scene.is-playing .scene__text, .scene.is-playing .scene__visual { opacity: 1; transform: none; }
.scene__visual {
  position: relative; min-height: 290px; display: grid; place-items: center;
  background: var(--background); border-radius: 22px; padding: 32px;
}
.mini { width: 100%; max-width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 20px 40px -28px rgba(23, 25, 30, .4); }
.mini__label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.mini__ok { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--working-fg); font-weight: 600; font-size: .95rem; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }

/* Scene 1: invitation code */
.code { display: flex; align-items: center; min-height: 60px; margin: 0; padding: 4px 16px; border: 2px solid var(--accent); border-radius: 12px; font-family: var(--font-num); font-weight: 700; font-size: 38px; letter-spacing: .08em; }
.code__caret { width: 3px; height: 34px; margin-left: 3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scene[data-scene="invite"] .app-btn { opacity: .35; transition: opacity .4s .2s; }
.scene[data-scene="invite"].is-done .app-btn { opacity: 1; }
.scene[data-scene="invite"].is-done .mini__ok { opacity: 1; transform: none; }
.scene[data-scene="invite"].is-done .code { border-color: var(--working-fg); }
.scene[data-scene="invite"].is-done .code__caret { display: none; }
.mini--toast { position: absolute; right: 16px; bottom: 16px; width: auto; max-width: 270px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; font-size: .92rem; opacity: 0; transform: translateY(16px); transition: opacity .5s .7s, transform .5s .7s; }
.scene.is-done .mini--toast { opacity: 1; transform: none; }
.scene[data-scene="invite"] .scene__visual { padding-bottom: 88px; }
.avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-light); color: var(--accent); font-weight: 700; font-size: 13px; }

/* Scene 2: arriving on site */
.map {
  position: relative; height: 170px; border-radius: 12px; overflow: hidden;
  background-color: var(--background);
  background-image: repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 28px),
                    repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 28px);
}
.map__zone { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px; border-radius: 50%; background: rgba(22, 101, 52, .12); border: 2px dashed var(--working-fg); transform: scale(0); transition: transform .6s .2s cubic-bezier(.3, 1.4, .5, 1); }
.map__site { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; background: var(--ink); border-radius: 3px; transform: rotate(45deg); }
.map__pin { position: absolute; left: calc(50% + 18px); top: calc(50% - 22px); width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); opacity: 0; }
.map__label { position: absolute; right: 10px; bottom: 8px; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface); padding: 2px 8px; border-radius: 6px; }
.scene[data-scene="clock"].is-playing .map__zone { transform: scale(1); }
.scene[data-scene="clock"].is-playing .map__pin { animation: pin-drop .7s .8s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-90px); } to { opacity: 1; transform: none; } }
.scene[data-scene="clock"].is-playing .mini__ok { opacity: 1; transform: none; transition-delay: 1.4s; }
.mini__clock { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); opacity: 0; transition: opacity .4s 1.6s; }
.scene[data-scene="clock"].is-playing .mini__clock { opacity: 1; }
.timer--ink { color: var(--ink); font-size: 32px; margin: 0; }

/* Scene 3: Friday approval */
.trow { display: grid; grid-template-columns: 1fr auto 78px; gap: 10px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--border); font-size: .95rem; border-radius: 8px; }
.trow span:nth-child(2) { font-family: var(--font-num); font-weight: 700; font-size: 1.1rem; }
.trow em { font-style: normal; text-align: center; font-size: 12px; font-weight: 700; padding: 4px 0; border-radius: 999px; color: var(--working-fg); background: var(--working-bg); opacity: 0; transform: scale(.6); }
.trow--fix em { color: var(--pending-fg); background: var(--pending-bg); }
.scene[data-scene="approve"].is-playing .trow em { animation: badge .35s forwards; }
.scene[data-scene="approve"].is-playing .trow:nth-of-type(1) em { animation-delay: .7s; }
.scene[data-scene="approve"].is-playing .trow:nth-of-type(2) em { animation-delay: 1s; }
.scene[data-scene="approve"].is-playing .trow:nth-of-type(3) em { animation-delay: 1.9s; }
.scene[data-scene="approve"].is-playing .trow:nth-of-type(4) em { animation-delay: 1.3s; }
.scene[data-scene="approve"].is-playing .trow--fix { animation: fix-row 1.9s forwards; }
@keyframes badge { to { opacity: 1; transform: none; } }
@keyframes fix-row { 0%, 85% { background: var(--out-bg); } 100% { background: transparent; } }
.mini__sum { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; padding: 12px 6px 0; border-top: 1px solid var(--border); color: var(--muted); }
.mini__sum b { font-family: var(--font-num); font-size: 1.5rem; color: var(--ink); }

/* ---------- Office ---------- */
.office { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 34px; position: relative; font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--working-bg); color: var(--working-fg); font-size: 13px; font-weight: 800;
}

.browser { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 30px 60px -28px rgba(23, 25, 30, .35); }
.browser__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dash { display: grid; grid-template-columns: 150px 1fr; font-size: 13px; min-height: 330px; }
.dash__side { background: var(--ink); color: var(--on-ink-muted); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.dash__logo { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 800; font-size: 15px; padding: 0 8px 14px; }
.dash__logo img { border-radius: 4px; }
.dash__link { padding: 7px 8px; border-radius: 8px; display: flex; justify-content: space-between; }
.dash__link.is-active { background: var(--ink-2); color: #fff; }
.dash__link em { font-style: normal; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 700; }
.dash__main { padding: 16px; background: var(--background); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.kpi span { display: block; color: var(--muted); font-size: 11px; }
.kpi b { font-family: var(--font-num); font-size: 26px; line-height: 1.1; }
.kpi--alert b { color: var(--out-fg); }
.table { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.table__title { font-weight: 700; margin: 0 0 6px; }
.row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.row span:nth-child(2) { color: var(--muted); }

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.privacy__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy__list li { background: var(--ink-2); border: 1px solid #2E323B; border-radius: 14px; padding: 16px 20px; color: var(--on-ink-muted); }
.privacy__list b { color: #fff; }

/* ---------- Pricing ---------- */
.billing {
  display: inline-flex; gap: 4px; padding: 4px; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.billing__opt {
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--muted);
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; cursor: pointer;
}
.billing__opt em { font-style: normal; color: var(--working-fg); margin-left: 4px; }
.billing__opt.is-active { background: var(--ink); color: #fff; }
.billing__opt.is-active em { color: #86EFAC; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 30px 28px;
}
.plan--featured { border: 2px solid var(--accent); box-shadow: 0 24px 48px -28px rgba(194, 65, 12, .45); }
.plan__badge {
  position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700;
}
.plan h3 { font-size: 1.4rem; margin-bottom: .2em; }
.plan__for { color: var(--muted); font-size: .98rem; }
.plan__price { margin: 8px 0 0; font-size: 1.4rem; font-weight: 700; }
.plan__price b { font-family: var(--font-num); font-size: 3.4rem; line-height: 1; }
.plan__price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan__price--text { font-family: var(--font-num); font-size: 2.6rem; line-height: 1.3; }
.plan__note { color: var(--muted); font-size: .88rem; margin: 2px 0 20px; }
.plan__list { list-style: none; padding: 20px 0 0; margin: 0 0 28px; border-top: 1px solid var(--border); display: grid; gap: 10px; flex: 1; align-content: start; }
.plan__list li { padding-left: 28px; position: relative; font-size: .98rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--working-fg); font-weight: 800; }
.plan__list li:has(b)::before { content: none; }
.plan__list li:has(b) { padding-left: 0; }
.plans__foot { color: var(--muted); font-size: .92rem; margin: 24px 0 0; text-align: center; }

/* ---------- CTA ---------- */
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__inner img { margin-bottom: 22px; }
.cta .section__lead { margin-bottom: 28px; }

/* ---------- Contact form ---------- */
.contact-form {
  width: 100%; max-width: 720px; text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 32px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 52px; padding: 12px 14px;
  background: var(--background); border: 1.5px solid var(--border); border-radius: 12px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--out-fg); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.consent.is-invalid { color: var(--out-fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--out-fg); background: var(--out-bg); padding: 12px 16px; border-radius: 12px; }
.form-status.is-ok { color: var(--working-fg); background: var(--working-bg); padding: 12px 16px; border-radius: 12px; }
.contact-form .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer .brand { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--muted); }
.legal b, .legal strong { color: var(--ink); }
.legal__updated { font-size: .92rem; }
.legal__note { background: var(--break-bg); color: var(--break-fg) !important; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.legal mark { background: var(--accent-light); color: var(--accent-dark); padding: 0 4px; border-radius: 4px; }
.legal__table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--border); font-size: .98rem; }
.legal__table th { width: 34%; color: var(--ink); }
.footer__links a { color: inherit; }

/* ---------- Frames around real screenshots ---------- */
.browser__bar { align-items: center; }
.browser__bar span {
  flex: 1; max-width: 320px; margin-left: 10px; padding: 2px 10px; border-radius: 6px;
  background: var(--background); color: var(--muted); font-size: 11px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser--shot { margin: 0; }
.browser--shot img { display: block; width: 100%; height: auto; }
.phone.phone--shot { width: min(260px, 42vw); padding: 9px; border-radius: 40px; flex-shrink: 0; }
.phone--shot img { display: block; width: 100%; height: auto; border-radius: 31px; }

/* ---------- Zoom: from Marc's phone to the office (site.js sets the vars) ---------- */
.zoom { position: relative; height: 320vh; background: var(--ink); }
.zoom__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.zoom__caption { position: absolute; top: 7vh; left: 0; right: 0; z-index: 2; padding: 0 16px; text-align: center; color: #fff; }
.zoom__caption h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0; }
.zoom__caption--site { opacity: var(--cap1, 1); transform: translateY(calc((1 - var(--cap1, 1)) * -24px)); }
.zoom__caption--office { opacity: var(--cap2, 0); transform: translateY(calc((1 - var(--cap2, 0)) * 24px)); }
.zoom__phone.phone {
  position: absolute; width: min(230px, 52vw); padding: 9px; border-radius: 40px; background: #2A2D35;
  opacity: var(--phone-o, 1); transform: translateY(6vh) scale(var(--phone-s, 1));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
}
.zoom__phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.zoom__desk {
  position: absolute; width: min(1080px, 92vw); margin-top: 8vh;
  opacity: var(--desk-o, 0); transform: scale(var(--desk-s, 1.15));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
}

/* ---------- One app, three views ---------- */
.segmented {
  position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr);
  margin: 20px 0 44px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.segmented__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 999px; background: var(--ink);
  transform: translateX(calc(var(--seg, 0) * 100%)); transition: transform .55s var(--ease-out);
}
.segmented button {
  position: relative; z-index: 1; min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px;
  background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: color .3s;
}
.segmented button.is-active { color: #fff; }
.segmented button:focus-visible { outline: 3px solid var(--accent-light); }
.profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.profile[hidden] { display: none; }
.profile.is-active { animation: profile-in .8s var(--ease-out); }
@keyframes profile-in { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
.profile__text h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.profile__text p { color: var(--muted); font-size: 1.1rem; }
.profile__shots { display: flex; gap: 24px; justify-content: center; align-items: flex-start; }
.profile__shots .phone--shot:nth-child(2) { margin-top: 56px; }
.profile__shots .browser { width: 100%; }

/* ---------- Paper vs Badgy ---------- */
.compare { background: var(--surface); }
.bars-compare { display: grid; gap: 22px; max-width: 920px; margin-top: 40px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 100px; gap: 18px; align-items: center; }
.bar-row__label { font-weight: 700; }
.bar-row__track { height: 46px; border-radius: 12px; background: var(--background); overflow: hidden; }
.bar-row__fill {
  display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 12px;
  transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out);
}
.bar-row__fill--paper { background: var(--muted); }
.bar-row__fill--badgy { background: var(--accent); }
.bars-compare.is-visible .bar-row__fill { transform: scaleX(1); }
.bars-compare.is-visible .bar-row:nth-child(2) .bar-row__fill { transition-delay: .6s; }
.bar-row__value { font-family: var(--font-num); font-size: 1.9rem; text-align: right; }
.compare__callout { margin: 10px 0 0; color: var(--muted); font-size: 1.2rem; font-weight: 600; }
.compare__callout b { font-family: var(--font-num); font-size: clamp(3.2rem, 8vw, 5.4rem); color: var(--accent); margin-right: 10px; vertical-align: -.12em; }
.compare__note { max-width: 720px; margin-top: 28px; color: var(--muted); font-size: .9rem; }

/* ---------- Menu: the section on screen is highlighted (site.js) ---------- */
.nav a.is-current:not(.btn) { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Highlights gallery (horizontal scroll with snap) ---------- */
.gallery { overflow: hidden; }
.gallery__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.gallery__track {
  --gutter: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  list-style: none; margin: 28px 0 0; padding: 4px var(--gutter) 8px;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--accent-light); outline-offset: -3px; }
.gcard {
  position: relative; flex: 0 0 min(420px, 78vw); cursor: pointer; height: 600px; overflow: hidden;
  scroll-snap-align: start; border-radius: 28px; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.gcard--wide { flex-basis: min(760px, 86vw); }
.gcard--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.gcard__text { padding: 34px 32px 0; }
.gcard__text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin-bottom: 8px; }
.gcard__text p { color: var(--muted); margin: 0; }
.gcard--dark .gcard__text p { color: var(--on-ink-muted); }
.gcard__shot { flex: 1; position: relative; display: flex; justify-content: center; margin-top: 28px; }
/* Phones peek out from the bottom of the card, like product shots. */
.gcard__shot .phone.phone--shot { position: absolute; top: 0; width: 250px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); }
.gcard--dark .gcard__shot .phone.phone--shot { background: #2A2D35; }
.gcard__shot .browser { position: absolute; top: 0; left: 32px; width: 900px; max-width: none; }
.gallery__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.gallery__dots { display: flex; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.gallery__dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width .4s var(--ease-out), background .4s; }
.gallery__dots i.is-active { width: 28px; background: var(--ink); }
.gallery__arrows { display: flex; gap: 10px; }
.gallery__arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font: 700 1.6rem/1 var(--font); box-shadow: inset 0 0 0 1px var(--border);
  transition: background .3s, color .3s, opacity .3s;
}
.gallery__arrow:hover { background: var(--ink); color: #fff; }
.gallery__arrow:disabled { opacity: .35; cursor: default; background: var(--surface); color: var(--ink); }

/* Cards arrive one by one (site.js adds .is-in, with --delay), then their screen rises.
   The card itself only fades: its content slides in. A transformed card would move
   its snap point, and iOS Safari then stops the scroll in the wrong place. */
.js .gcard { opacity: 0; transition: opacity .9s var(--ease-out) var(--delay, 0s); }
.js .gcard > * { transform: translateX(70px); transition: transform 1.2s var(--ease-out) var(--delay, 0s); }
.js .gcard.is-in { opacity: 1; }
.js .gcard.is-in > * { transform: none; }
/* Screens stay hidden; only the card the visitor swiped to (.is-active) shows
   its screen, rising from the bottom. Leaving a card sends it back down. */
.js .gcard__shot > * {
  opacity: 0; transform: translateY(140px) scale(.94);
  transition: opacity .45s ease, transform .6s var(--ease-out);
}
.js .gcard.is-in.is-active .gcard__shot > * {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out) .15s, transform 1.2s var(--ease-out) .15s;
}

/* ---------- Big visuals grow into place while scrolling (site.js sets --s) ---------- */
[data-scale] { transform: scale(var(--s, 1)); transform-origin: center top; will-change: transform; }

/* ---------- Apple-like section intros: centered, bigger ---------- */
.section h2 { letter-spacing: -.025em; }
#fonctions .container > .eyebrow, #fonctions .container > h2, #fonctions .container > .section__lead,
#profils .container > .eyebrow, #profils .container > h2,
.compare .container > .eyebrow, .compare .container > h2, .compare .container > .section__lead, .compare__note,
#tarifs .container > .eyebrow, #tarifs .container > h2, #tarifs .container > .section__lead,
#comment .container > .eyebrow, #comment .container > h2, #comment .container > .section__lead {
  text-align: center; margin-left: auto; margin-right: auto;
}
#fonctions h2, #profils h2, .compare h2, #tarifs h2, #comment h2 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
.segmented { display: grid; width: max-content; margin-left: auto; margin-right: auto; }
.bars-compare { margin-left: auto; margin-right: auto; }
.compare__callout { text-align: center; }
#tarifs .billing { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.plans__foot { margin-left: auto; margin-right: auto; max-width: 720px; }

/* Privacy headline in a light gradient. */
#vie-privee h2 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  background: linear-gradient(100deg, #fff 30%, var(--accent-bright)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Pricing cards lift; Pro glows ---------- */
.plan { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); isolation: isolate; }
.plan:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -34px rgba(23, 25, 30, .45); }
.plan--featured::before {
  content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 30px;
  background: radial-gradient(60% 50% at 50% 0%, rgba(194, 65, 12, .28), transparent 70%);
  filter: blur(8px); opacity: .9; transition: opacity .5s;
}
.plan--featured:hover::before { opacity: 1; }

/* ---------- Language switch (FR · EN · NL) in the top bar ---------- */
.nav .langs { display: inline-flex; padding: 3px; border: 1.5px solid var(--border); border-radius: 999px; }
.nav .langs a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 28px; padding: 0 6px;
  border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); text-decoration: none;
}
.nav .langs a:hover { color: var(--ink); }
.nav .langs a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .office, .privacy { grid-template-columns: 1fr; gap: 48px; }
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .showcase__phone { position: relative; top: 0; order: -1; }
  /* Phones: the phone shrinks and sticks under the top bar; features scroll below it. */
  .showcase.is-scrolly .showcase__phone {
    position: sticky; top: 62px; z-index: 2; height: 372px; padding-top: 10px; align-items: flex-start;
    background: linear-gradient(var(--background) 90%, rgba(243, 241, 236, 0));
  }
  .showcase.is-scrolly .showcase__phone::before { display: none; }
  .showcase.is-scrolly .showcase__phone .phone { transform: scale(.58); transform-origin: top center; }
  .showcase.is-scrolly .showcase__list { padding: 4vh 0 36vh; }
  .showcase.is-scrolly .feat { min-height: 30vh; }
  .showcase.is-scrolly .feat__body b { font-size: 1.35rem; }
  .scene { grid-template-columns: 1fr; gap: 28px; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 28px; }
  .hero { padding-top: 48px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px;
  }
  .nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .langs { align-self: flex-start; margin-top: 12px; }
  .nav .langs a { min-width: 48px; height: 40px; padding: 0 10px; border-bottom: 0; }
  .nav .btn { margin-top: 12px; }

  .phone { width: 290px; }
  .timer { font-size: 48px; }
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr auto; }
  .row span:nth-child(2) { display: none; }
  .contact-form { grid-template-columns: 1fr; padding: 22px 18px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .segmented button { padding: 0 16px; }
  .gcard { height: 520px; }
  .gcard__text { padding: 26px 22px 0; }
  .gcard__shot .phone.phone--shot { width: 220px; }
  .gcard__shot .browser { left: 22px; width: 720px; }
  .profile__shots { gap: 12px; }
  .bar-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .bar-row__track { grid-column: 1 / -1; grid-row: 2; }
  .statement { padding: 14vh 0 8vh; }
  .feat { padding: 14px; gap: 12px; }
  .story { gap: 72px; }
  .story__line { left: 19px; }
  .scene { padding-left: 58px; }
  .scene__num { width: 42px; height: 42px; font-size: 21px; }
  .scene__visual { padding: 20px 14px 80px; }
  .code { font-size: 30px; }
}

/* Visitors who asked their device for less motion get the final state at once. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .feat__progress { display: none; }
  .zoom { height: auto; }
  .zoom__sticky { position: relative; height: auto; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 14vh 16px; }
  .zoom__caption { position: relative; top: 0; }
  .zoom__caption--site, .zoom__phone.phone { display: none; }
  .zoom__caption--office { opacity: 1; transform: none; }
  .zoom__desk { position: relative; margin: 0; opacity: 1; transform: none; }
  [data-scale] { transform: none; }
  .plan:hover { transform: none; }
}

/* ---------- Coming soon: Checkinatwork 2027 ---------- */
#checkinatwork .container { max-width: 820px; }
.soon-note { color: var(--muted); font-size: .95rem; }

/* ---------- Feedback: report a problem / suggest an idea ---------- */
.feedback__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feedback__inner .section__lead { margin-bottom: 28px; }
.feedback__kind { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 24px; }
.feedback__kind legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; width: 100%; }
.feedback__kind label { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.feedback__kind input { width: 20px; height: 20px; accent-color: var(--accent); }

