/* The whole design system, in cascade order: fonts, tokens, base, layout, components, the application window, scroll flow, utilities.
   Brand values live only in tokens.css. New look goes into the component file it belongs to; a style only one page needs goes into pages/. *//* Self-hosted fonts (latin subset), served from public/fonts. The three used above the fold are preloaded in BaseLayout. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-400-normal.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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/manrope-latin-500-normal.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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-700-normal.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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/playfair-display-latin-500-normal.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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/playfair-display-latin-500-italic.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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-mono-latin-400-normal.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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/dm-mono-latin-500-normal.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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Design tokens of the Shiftplus site: colour, type and layout.
   Colour: paper ground, cream and teal tint for surfaces, teal + ink for voice, one warm accent per component.
   No alternating full-width bands: rhythm comes from composition, scale and a few contained surfaces. */
:root {
  --paper: #FFFDFC; --cream: #FAF1E6; --tint: #EAF2F3; --peach: #FCEBD6; --line: #D9DDD9; --line-soft: #E8EAE6;
  --teal: #336B82; --teal-deep: #2A5A6E; --sand: #E8A968; --gold: #C58938; --brown: #7A3B22;
  --ink: #22343B; --body: #2C4049; --muted: #65767E;
  --display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max: 1160px; --r: 16px;
  --nav-h: 69px; /* the sticky menu, border included: in-page links stop below it */
  color-scheme: light;
}
/* Reset, typography and small utilities. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: 76px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--ink); text-wrap: balance; margin: 0; letter-spacing: -0.012em; overflow-wrap: break-word; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.eyebrow { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.lead { font-size: clamp(18px, 1.9vw, 20.5px); line-height: 1.6; max-width: 58ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.ill { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .02em; }

/* visually hidden text for screen readers and search engines */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Page layout: sections, editorial grids and compact section heads. */
section { padding-block: clamp(56px, 8vw, 112px); }
.sec-tight { padding-block: clamp(40px, 5vw, 72px); }

/* editorial two-column layout: short text beside a large object */
.ed { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ed.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (max-width: 900px) { .ed, .ed.flip { grid-template-columns: minmax(0, 1fr); } }
.ed .txt { display: grid; gap: 18px; align-content: start; }
.ed .txt.stick { position: sticky; top: 96px; }
@media (max-width: 900px) { .ed .txt.stick { position: static; } }

/* compact section head: eyebrow and heading left, a short line on the right */
.mh { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.mh .sub { margin: 0; color: var(--muted); font-size: 16px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--sans); text-decoration: none; border: 1.5px solid var(--teal); background: var(--teal); color: var(--cream); transition: transform .2s ease, background .2s ease; cursor: pointer; }
.btn:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--tint); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font: 500 15px/1 var(--sans); }
.nav ul a { text-decoration: none; color: var(--body); padding-block: 8px; border-bottom: 1.5px solid transparent; }
.nav ul a:hover { border-color: var(--sand); }
.nav .logo { width: 148px; height: auto; display: block; }
.navr { display: flex; align-items: center; gap: 14px; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
@media (max-width: 960px) { .nav ul { display: none; } }
@media (max-width: 520px) { .nav .logo { width: 126px; } }
/* the smallest phones: logo, language and demo button still fit on one line */
@media (max-width: 380px) { .nav .wrap, .navr { gap: 10px; } .nav .logo { width: 112px; } .nav .btn { padding: 0 12px; } }
.nav .lang, .bk-head .lang { font: 500 13px/1 var(--sans); letter-spacing: .06em; color: var(--body); text-decoration: none; padding: 8px 2px; border-bottom: 1.5px solid transparent; }
.nav .lang:hover, .bk-head .lang:hover { border-color: var(--sand); }
/* Login menu (LoginMenu.astro): a text trigger like the language switch, opening a panel with one entry per application. */
.nav .login { position: relative; }
.nav .login summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font: 500 15px/1 var(--sans); color: var(--body); padding: 8px 2px; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.nav .login summary::-webkit-details-marker { display: none; }
.nav .login summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.nav .login[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav .login summary:hover { border-color: var(--sand); }
.nav .login ul { position: absolute; right: 0; top: calc(100% + 10px); display: block; min-width: 248px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(34, 52, 59, .16); }
.nav .login ul a { display: flex; flex-direction: column; gap: 4px; padding: 11px 14px; border: 0; border-radius: 8px; }
.nav .login ul a:hover, .nav .login ul a:focus-visible { background: var(--tint); }
.nav .login b { display: flex; align-items: center; gap: 8px; font: 700 14.5px/1.2 var(--sans); color: var(--ink); }
.nav .login em { font: 700 10.5px/1 var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); background: var(--peach); padding: 4px 7px; border-radius: 999px; }
.nav .login span { font: 400 13px/1.3 var(--sans); color: var(--muted); }
.nav .login summary svg { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (max-width: 600px) {
  .nav .login summary svg { display: block; }
  .nav .login summary::after { display: none; }
  .nav .login { position: static; }
  .nav .login ul { right: 16px; top: calc(100% - 6px); }
  .nav .login summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 520px) { .nav .wrap, .navr { gap: 10px; } .nav .btn { padding: 0 14px; } }
@media (max-width: 380px) { .nav .wrap, .navr { gap: 6px; } .nav .logo { width: 96px; } .nav .btn { padding: 0 11px; font-size: 13.5px; } }
/* hero: the title across the full width, the demo button with a text link beside it */
.hero { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; }
.hero-top h1 { font-size: clamp(38px, 7.2vw, 92px); }
.hero-top .actions { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.hero-how { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 700 16px var(--sans); color: var(--teal); text-decoration: none; } /* 44px: a comfortable tap target */
.hero-how:hover { text-decoration: underline; text-underline-offset: 4px; }
/* home variant b: the assistant still (570px, its native size) beside the title from a laptop width on; below that it follows the actions */
.hero-still { margin: 0; }
@media (min-width: 1100px) {
  .hero-b .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 570px; gap: clamp(32px, 4vw, 56px); align-items: center; }
  .hero-b .hero-top h1 { font-size: clamp(52px, 4.6vw, 66px); }
}
@media (max-width: 1099px) { .hero-b .hero-still { margin-top: clamp(28px, 4vw, 40px); } }
/* Controls: pill buttons, chips and the segmented switch. */
.ctrls { display: flex; gap: 8px; flex-wrap: wrap; }
.ctl { font: 700 12.5px var(--sans); border: 1.5px solid var(--teal); background: var(--paper); color: var(--teal); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.ctl:hover { background: var(--tint); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 700 13px var(--sans); border: 1.5px solid var(--teal); background: var(--paper); color: var(--teal); border-radius: 999px; padding: 8px 15px; cursor: pointer; }
.chip:hover { background: var(--tint); }
.chip[aria-pressed="true"] { background: var(--teal); color: var(--cream); }
.seg2 { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.seg2 button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font: 700 14px var(--sans); color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.seg2 button:hover { color: var(--ink); }
.seg2 button[aria-pressed="true"] { background: var(--teal); color: #fff; }
/* Stepper (repair example) and the three onboarding steps. */
.steps5 { display: grid; gap: 4px; }
.st { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; text-align: left; background: transparent; border: 0; border-left: 2px solid var(--line); padding: 10px 14px; cursor: pointer; font-family: inherit; color: var(--body); }
.st .no { font: 500 12px var(--mono); color: var(--muted); grid-row: 1 / span 2; padding-top: 3px; }
.st b { font: 500 19px var(--display); color: var(--ink); }
.st span.d { font-size: 14.5px; line-height: 1.5; grid-column: 2; }
.st[aria-current="true"] { border-left-color: var(--teal); background: var(--tint); }
.st[aria-current="true"] .no { color: var(--teal); }

/* onboarding path: the heading with its lead, the three beats, a note on what it depends on */
.start-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(16px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.start-head h2 { max-width: 18ch; }
.start-head .lead { margin: 0; }
.start-note { margin: clamp(20px, 3vw, 32px) 0 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .start-head { grid-template-columns: minmax(0, 1fr); } }
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; margin-top: 8px; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.pt { position: relative; padding: 36px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.pt::before { content: ""; position: absolute; top: 5px; left: 0; width: 28px; height: 14px; border-radius: 4px; background: var(--sand); }
.pt:nth-child(2)::before { background: var(--teal); width: 38px; }
.pt:nth-child(3)::before { background: var(--brown); width: 48px; }
.pt .n { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.pt h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.22; }
.pt p { margin: 0; line-height: 1.6; color: var(--body); }
/* each step's short points, with a small check mark */
.pt ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; }
.pt li { position: relative; padding-left: 24px; line-height: 1.5; color: var(--body); }
.pt li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 5px; height: 9px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .8; }
@media (max-width: 800px) { .path { grid-template-columns: minmax(0, 1fr); gap: 8px; } .path::before { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } .pt { padding: 4px 0 24px 52px; } .pt::before { top: 10px; left: -7px; } }
/* the three applications (components/AppCard.astro): on the home page (chapter "Shiftplus biedt u") and under each application page.
   A quiet card on cream with a fine rule; the whole card is the link, so hover and keyboard focus show on the card itself. */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .apps { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.app { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 32px); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.app i { display: block; width: 40px; height: 8px; border-radius: 4px; margin-bottom: 4px; }
.app h3 { font-size: clamp(23px, 2vw, 26px); }
.app p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--body); }
.app .more { margin-top: 6px; font: 700 14px var(--sans); color: var(--teal); }
.app:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(20, 40, 50, .25); border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); background: #fff; }
.app:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 800px) { .app { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .app, .app:hover { transition: none; transform: none; } }
/* "Beheren" on the homepage (Manage.astro): heading and lead side by side, the ecosystem video, then the applications */
.manage-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(16px, 5vw, 72px); align-items: end; margin-bottom: clamp(24px, 3.5vw, 40px); }
.manage-head h2 { max-width: 18ch; }
.manage-head .lead { margin: 0; }
@media (max-width: 860px) { .manage-head { grid-template-columns: minmax(0, 1fr); } }
/* The proof band on the homepage (ProofStat.astro): one large figure, its source, and a quote beside it once there is one */
.stat { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.stat.has-quote { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.stat-num { display: block; font: 600 clamp(88px, 13vw, 176px)/.9 var(--display); letter-spacing: -.03em; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat-title { display: block; margin-top: 12px; max-width: 18ch; }
.stat-source { margin: 14px 0 0; max-width: 52ch; font: 400 13px/1.55 var(--mono); color: var(--muted); }
.stat-quote { margin: 0; padding-left: 24px; border-left: 3px solid var(--sand); }
.stat-quote p { margin: 0; font: 400 clamp(20px, 2vw, 26px)/1.4 var(--display); color: var(--ink); }
.stat-quote footer { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .stat.has-quote { grid-template-columns: minmax(0, 1fr); } }
/* Closing call to action and the attention trace on the demo buttons. */
/* closing */
.close { background: var(--cream); border-radius: 26px; padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px; align-items: end; }
/* the two next steps (CtaPair.astro): demo button and try link side by side where they fit, at the end of a section;
   in the closing card (.close.pair) its column takes the width of the pair */
.cta-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(28px, 4vw, 44px); }
.cta-pair .try-link { margin: 0; }
.close.pair { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(28px, 5vw, 64px); }
.close .cta-pair { margin-top: 0; }
@media (max-width: 860px) { .close, .close.pair { grid-template-columns: minmax(0, 1fr); } }
.close .lead { margin-top: 16px; }

/* Demo button: a light traces the outline once (about 3.4 s), every 10 s, 6 times, after a short pause. */
@property --tr { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes trace {
  0% { --tr: 0deg; opacity: 0; }
  4% { opacity: 1; }
  34% { --tr: 360deg; opacity: 1; }
  40%, 100% { --tr: 360deg; opacity: 0; }
}
.nav .btn, .hero .actions .btn:not(.ghost), .close .btn { position: relative; }
.nav .btn::after, .hero .actions .btn:not(.ghost)::after, .close .btn::after {
  content: ""; position: absolute; inset: -4px; border-radius: 999px; padding: 2.5px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--tr), transparent 0 62%, color-mix(in srgb, var(--sand) 70%, transparent) 80%, var(--sand) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: trace 10s linear 5s 6;
}
.nav .btn:hover::after, .hero .actions .btn:hover::after, .close .btn:hover::after, .nav .btn:focus-visible::after, .hero .actions .btn:focus-visible::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .nav .btn::after, .hero .actions .btn::after, .close .btn::after { animation: none !important; } }
/* Footer: who we are and where to find things (product, reading, company, legal). */
footer { padding-block: clamp(40px, 5vw, 64px) 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); }
.fbrand { display: grid; gap: 6px; align-content: start; }
.fbrand b { font: 500 22px var(--display); color: var(--ink); }
.fbrand p { margin-top: 8px; max-width: 34ch; line-height: 1.5; }
.fcol { display: grid; gap: 8px; align-content: start; }
.fcol b { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
/* Who supports us: two small logos in their own colours */
.fback { display: grid; gap: 10px; margin-top: 14px; }
.fback b { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.fback ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.fback img { display: block; height: 36px; width: auto; }
footer a { color: var(--muted); text-decoration: none; }
/* "Cookie settings" is a button (it opens the banner) that looks like the links around it */
.fcol button { all: unset; cursor: pointer; color: var(--muted); }
.fcol button[hidden] { display: none; }
footer a:hover, .fcol button:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.fcol button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fbrand { grid-column: 1 / -1; } }
/* Cookie banner: a modal dialog in the middle of the page; the visitor chooses before going on. On the cookie policy page it is a card in
   the bottom corner instead, so the policy stays readable. Both choices carry the same weight. */
.consent { width: min(460px, calc(100vw - 32px)); padding: 26px 28px; color: var(--body);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 40px rgba(34, 52, 59, .16); }
.consent[open] { display: grid; gap: 12px; }
.consent:focus { outline: none; }
.consent::backdrop { background: rgba(34, 52, 59, .45); }
.consent:not(:modal) { position: fixed; z-index: 50; inset: auto 16px 16px auto; margin: 0; }
html:has(.consent:modal) { overflow: hidden; }
.consent h2 { font: 700 20px var(--sans); color: var(--ink); }
.consent p { font-size: 15px; line-height: 1.55; }
.consent a { color: var(--teal); text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.consent-actions .btn { justify-content: center; }
/* Phone: a sheet along the bottom edge, full width, within thumb reach; the buttons get a full-size tap target */
@media (max-width: 600px) {
  .consent, .consent:not(:modal) { inset: auto 0 0; width: 100%; max-width: none; margin: auto 0 0; max-height: 85dvh; overflow-y: auto;
    padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: var(--r) var(--r) 0 0; }
  .consent h2 { font-size: 18px; }
  .consent-actions .btn { min-height: 48px; font-size: 15px; }
}
/* real-application clips (cut from the intro video) */
.vid { margin: 0; display: grid; gap: 12px; }
.vid .frame { position: relative; border-radius: 18px; overflow: hidden; background: #FBF8F2; border: 1px solid var(--line); box-shadow: 0 24px 48px -30px rgba(34,52,59,.35); aspect-ratio: 16 / 9; }
.vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid .vc { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.vid .vc button { font: 700 12.5px var(--sans); border: 1.5px solid var(--teal); background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--teal); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.vid .vc button:hover { background: var(--tint); }
/* on a touch screen the controls get a finger-sized target */
@media (pointer: coarse) { .vid .vc button { min-height: 40px; padding: 9px 16px; font-size: 13.5px; } }
/* on a phone the frame is small: lighter controls cover less of the clip */
@media (max-width: 600px) { .vid .vc { right: 8px; bottom: 8px; gap: 6px; } .vid .vc button { font-size: 11.5px; padding: 5px 10px; } }
/* on the narrowest phones the clip's own caption (bottom left) reaches the buttons, so they move to the top */
@media (max-width: 420px) { .vid .vc { top: 8px; bottom: auto; } }
.vid figcaption { font-size: 14.5px; color: var(--body); max-width: 70ch; }
/* a phone held upright: the vertical cut, at most 65% of the screen high (same query as scripts/portrait.js) */
@media (max-width: 600px) and (orientation: portrait) { .vid.v916 .frame { aspect-ratio: 9 / 16; width: min(100%, calc(65svh * 9 / 16)); margin-inline: auto; } }
.vid figcaption .ill { display: block; margin-top: 4px; }
.status { font: 500 11px var(--mono); color: var(--brown); }
/* The intro video dialog, opened from the hero (IntroVideo.astro) */
.intro { width: min(1100px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r); background: #000; overflow: visible; }
.intro::backdrop { background: rgba(20, 30, 34, .72); }
.intro video { display: block; width: 100%; height: auto; border-radius: var(--r); }
/* the vertical cut on a phone held upright (intro-video.js sets .v916): as wide as fits, never taller than the screen */
.intro.v916 { width: min(calc(100vw - 32px), calc(85svh * 9 / 16)); }
.intro-close { position: absolute; top: -44px; right: 0; padding: 7px 14px; border: 0; border-radius: 99px; background: var(--paper); color: var(--ink); font: 600 13px var(--sans); cursor: pointer; }
/* Social proof under the opening */
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; margin-top: clamp(24px, 3.5vw, 40px); padding: 16px 0; border-block: 1px solid var(--line); }

/* Customer logos in the proof strip: calm by default, colour on hover */
.plogos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(24px, 3vw, 40px); flex: 1 1 360px; }
.plogos li { display: flex; align-items: center; }
.plogos img { width: auto; display: block; filter: grayscale(1) brightness(1.12); transition: filter .3s ease; }
.plogos li:hover img { filter: none; }

/* Logo conveyor: five at a time, drifting right to left; the one in the middle shows its colours. Without script or with reduced motion all of them show. */
.plvp { flex: 1 1 380px; min-width: 0; height: 72px; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.plogos.rot { flex: none; flex-wrap: nowrap; gap: 0; width: max-content; position: relative; will-change: transform; }
.plogos.rot li { flex: none; box-sizing: border-box; padding: 0 14px; height: 64px; justify-content: center; }
.plogos.rot img { width: auto !important; height: auto !important; max-width: 100%; max-height: 44px; object-fit: contain; transition: none; filter: grayscale(calc(1 - var(--c, 0))); opacity: calc(.78 + .22 * var(--c, 0)); }
.plogos.rot li:hover img { filter: grayscale(calc(1 - var(--c, 0))); }
/* Testimonials and blog */
.mh .more, .cases .more, .posts .more { font: 700 14.5px var(--sans); color: var(--teal); text-decoration: none; }
.cases, .posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.case, .post { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-decoration: none; transition: background .25s ease, transform .25s ease, border-color .25s ease; }
.case:hover, .post:hover { background: var(--tint); border-color: var(--teal); transform: translateY(-2px); }
.case .tag, .post .meta { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.case h3, .post h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.case p { margin: 0; color: var(--body); font-size: 15.5px; }
.post { background: var(--cream); }
.filters { display: grid; gap: 12px; margin-bottom: 28px; }
.filters .fg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .fl { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-width: 72px; }
.case[hidden] { display: none; }
.case .meta2 { font: 500 12px var(--mono); color: var(--muted); }
.empty { color: var(--muted); }
/* About us: team cards and the open position */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.member { display: grid; gap: 8px; align-content: start; padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
/* a small round portrait (or the initials) above the name */
.member .ph { display: grid; place-items: center; width: 112px; height: auto; aspect-ratio: 1; margin-bottom: 10px; border-radius: 50%; object-fit: cover; background: var(--cream); font: 600 36px var(--display); color: var(--brown); }
@media (max-width: 600px) { .member .ph { width: 96px; font-size: 30px; } }
.member h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.member .role, .job .type { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.member p { margin: 0; color: var(--body); font-size: 15.5px; }

.job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(20px, 2.4vw, 32px); border-radius: 18px; background: var(--cream); }
.job > div { display: grid; gap: 10px; max-width: 60ch; }
.job h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.job p { margin: 0; color: var(--body); }
.job-open { margin-top: 18px; color: var(--muted); font-size: 15.5px; }
.job-open a { color: var(--teal); }
/* Overview, detail and blog pages: page head, breadcrumbs, fact sheet, long text, episodes. */
.page-head { padding-block: clamp(40px, 6vw, 84px) clamp(8px, 2vw, 24px); }
.page-head h1 { margin-top: 18px; font-size: clamp(34px, 4.6vw, 58px); max-width: 22ch; }
.page-head .lead { margin-top: 16px; max-width: 52ch; }
.page-head .prose { margin-top: clamp(28px, 4vw, 44px); }
/* a page head with a picture beside the text (PageHead's "aside" slot), below it on a phone */
.page-head.ph-split .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .page-head.ph-split .wrap { grid-template-columns: minmax(0, 1fr); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 13.5px var(--sans); color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--teal); }
.case-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.facts { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--cream); }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.facts dd { margin: 3px 0 0; font: 500 16px var(--sans); color: var(--ink); }
.prose { max-width: 66ch; overflow-wrap: break-word; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--body); }
.prose p + p, .prose p + ul, .prose p + ol, .prose ul + p, .prose ol + p { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 10px; }
.prose blockquote { margin-top: 20px; }
/* Legal pages: several paragraphs, subheadings and the company address per section. */
.legal > * + * { margin-top: 14px; }
.legal h3 { margin: 26px 0 4px; }
.legal .updated { font: 500 14px var(--sans); color: var(--muted); }
.legal address { font-style: normal; font-size: 17px; line-height: 1.65; color: var(--body); }
.legal-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.legal-table table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.legal-table th, .legal-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.legal-table th { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--cream); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td:first-child { font-weight: 600; color: var(--ink); }
.cite { display: block; margin-top: 10px; font: 500 14px var(--sans); color: var(--muted); font-style: normal; }
.eps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.ep { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.ep figure { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--cream); aspect-ratio: 16 / 9; }
.ep img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ep:hover img { transform: scale(1.03); }
.ep .play { position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); }
.ep .play::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 12px solid #fff; border-block: 8px solid transparent; }
.ep .meta { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.ep h3 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.22; }
.ep:hover h3 { color: var(--teal-deep); }
.post-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.answer { margin: 28px 0; padding: 22px 26px; border-radius: 18px; background: var(--tint); border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent); }
.answer p { margin: 10px 0 0; font: 500 19px/1.5 var(--sans); color: var(--ink); }
.tr { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.tr summary { cursor: pointer; font: 700 14.5px var(--sans); color: var(--teal); }
.next { display: grid; gap: 18px; position: sticky; top: 96px; }
@media (max-width: 900px) { .case-grid, .post-grid { grid-template-columns: 1fr; } .facts, .next { position: static; } }

blockquote { margin: 0; font: italic 500 clamp(24px, 2.8vw, 32px)/1.32 var(--display); color: var(--ink); max-width: 30ch; }

/* Feature points (application pages) and contact details. */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.points div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.points i { display: block; width: 56px; height: 10px; border-radius: 5px; margin-bottom: 4px; }
.points h2 { font-size: 21px; line-height: 1.25; }
.points p { font-size: 16px; line-height: 1.6; color: var(--body); }
.points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.points li { position: relative; padding-left: 18px; font-size: 16.5px; line-height: 1.5; color: var(--body); }
.points li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }
.contact { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; max-width: 640px; }
.contact dt { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.contact dd { margin: 4px 0 0; font: 500 18px/1.5 var(--sans); color: var(--ink); }
.contact a { color: var(--teal); }
/* The application pages (on-call and workforce scheduling, SchedulingPage): section heads with a lead,
   the two audiences, the tables of what Shiftplus counts and checks, the start in one line, the clip in words, the other applications. */
/* section head: eyebrow, heading, a lead under it */
.ap-head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.ap-head .lead { margin: 0; }

/* who it is for: planner and physicians side by side, each a list of "feature: what it brings" */
.ap-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 800px) { .ap-roles { grid-template-columns: minmax(0, 1fr); } }
.ap-role { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 34px); border-radius: 18px; background: var(--cream); }
.ap-role.alt { background: var(--tint); }
.ap-role h3 { font-size: clamp(22px, 2.2vw, 27px); }
.ap-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.ap-list li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--body); }
.ap-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); }
.ap-list li b { color: var(--ink); font-weight: 700; }

/* what counts or which rule, what Shiftplus does, and a fictional example of what you see */
.ap-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ap-table thead th { text-align: left; font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); }
.ap-table tbody th, .ap-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.5; text-align: left; }
.ap-table tbody th { width: 34%; font-weight: 700; color: var(--ink); }
.ap-table td { color: var(--body); }
.ap-table td:last-child { font: 500 13.5px/1.5 var(--mono); color: var(--teal-deep); }
@media (max-width: 700px) {
  .ap-table thead { display: none; }
  .ap-table tr { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .ap-table tbody th, .ap-table td { padding: 0; border: 0; width: auto; }
}
.ap-note { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.ap-start { margin: clamp(24px, 3vw, 36px) 0 0; font-size: 16.5px; color: var(--body); }
.ap-start a { color: var(--teal); font-weight: 700; }

/* the clip in words, folded under it */
.ap-transcript { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; max-width: 70ch; }
.ap-transcript summary { cursor: pointer; font: 700 14.5px var(--sans); color: var(--teal); }
.ap-transcript ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--body); font-size: 15.5px; }

/* the other two applications, as the home page's cards */
.ap-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .ap-related { grid-template-columns: minmax(0, 1fr); } }
/* three short principles side by side (a phone: one under the other), with a hairline above each; no cards */
.ap-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3.5vw, 48px); }
.ap-principles div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.ap-principles h3 { font-size: 21px; }
.ap-principles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ap-principles li { position: relative; padding-left: 18px; font-size: 16.5px; line-height: 1.5; color: var(--body); }
.ap-principles li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }
@media (max-width: 760px) { .ap-principles { grid-template-columns: 1fr; gap: 22px; } }
/* hospital rollout: two options side by side */
.ap-rollout { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
@media (max-width: 760px) { .ap-rollout { grid-template-columns: 1fr; } }
/* Stills (ProductStill.astro, and the picture beside a page's heading): the picture with a soft shadow and the note that the data is fictional.
   The width and height on each source reserve the space, so the page does not shift when the file arrives. */
.still { margin: 0; }
.still img { display: block; width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 18px 40px -24px rgb(34 52 59 / .35); }
.still figcaption { margin-top: 8px; font: 500 12px var(--mono); color: var(--muted); }
/* in a section: between the lead and what follows */
.still-section { margin-bottom: clamp(28px, 4vw, 44px); }
/* beside the heading: on a phone below the text, never taller than 420px (the top of the picture stays) */
@media (max-width: 900px) { .still-head img { max-height: 420px; object-fit: cover; object-position: top; } }

/* a still made at its shown size (the marketing still beside the heading): never cropped; between phone and desktop it keeps its
   desktop width instead of being stretched to the full column */
.still-native img { max-height: none; object-fit: initial; width: auto; max-width: 100%; }
/* width: auto shows the file at its own size (from srcset and sizes) instead of stretching it to a column of 476.4px: no resampling */
@media (min-width: 601px) and (max-width: 900px) { .still-native { max-width: 476px; } }
/* the on-call month roster in the rules section keeps the full column between phone and desktop */
.still-section.still-native { max-width: none; }
/* FAQ page: the topics (sticky beside the questions, chips on a phone), then per topic the questions with their answers, always open. */
.faq .fq-topics ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.faq .fq-topics li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 14px; font: 600 15.5px var(--sans); }
.faq .fq-topics a { color: var(--ink); text-decoration: none; }
.faq .fq-topics a:hover { color: var(--teal); }
.faq .fq-topics li span { font: 500 12px var(--mono); color: var(--muted); }
.faq .fq-body { display: grid; gap: clamp(44px, 6vw, 72px); }
.faq .fq-group { padding: 0; }
.faq .fq-group h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.faq .fq-item { display: grid; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.faq .fq-item h3 { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.3; }
.faq .fq-item p { font-size: 16.5px; line-height: 1.65; max-width: 64ch; }
.faq .fq-item a, .faq .fq-more a { color: var(--teal); text-underline-offset: 3px; }
.faq .fq-more { color: var(--muted); }
@media (max-width: 900px) {
  .faq .fq-topics ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .faq .fq-topics li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
}
/* the home page's few questions (components/home/HomeFaq.astro): the same items, the first without a top rule so it lines up with the heading */
.home-faq .fq-item:first-child { border-top: 0; padding-top: 0; }
.home-faq .try-link { margin: 0; }
/* the home page's questions as an accordion (native details/summary, so the answers stay in the HTML and work by keyboard) */
.home-faq .fq-acc { border-top: 1px solid var(--line); padding: 18px 0; }
.home-faq .fq-acc:first-child { border-top: 0; padding-top: 0; }
.home-faq .fq-acc:last-child { border-bottom: 1px solid var(--line); }
.home-faq .fq-acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.home-faq .fq-acc summary::-webkit-details-marker { display: none; }
.home-faq .fq-acc summary::after { content: "+"; flex: none; font: 400 26px/1 var(--sans); color: var(--teal); }
.home-faq .fq-acc[open] summary::after { content: "\2013"; }
.home-faq .fq-acc summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.home-faq .fq-acc h3 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; }
.home-faq .fq-acc p { margin: 10px 0 0; font-size: 16.5px; line-height: 1.65; max-width: 64ch; color: var(--body); }
.home-faq .fq-acc a { color: var(--teal); text-underline-offset: 3px; }
/* Faces of the fictional physicians (src/components/Avatar.astro) */
.avatar { flex: none; display: block; border-radius: 50%; }
/* Stakes and value proposition: the two beats right after the proof. */
/* Stakes: the sentence on the left; on the right one planner with a simple week roster and, around them, the agreements they keep
   in their head (Stakes.astro, flow/stakes-pile.js). Same visual language as the marketing stills: warm panel, white cards, soft
   shadows, colour accents. Live text (sharp at every size), no rotation. The markup is the end state; .is-playing hides what is
   still to come. On a phone the notes sit in two columns under the planner and the coloured dots alone show what they touch. */
.stakes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin: 0 0 clamp(28px, 4vw, 48px); }
.stakes h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; }
.stakes p { margin: clamp(14px, 1.6vw, 20px) 0 0; font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.6; color: var(--body); max-width: 52ch; }

.stakes-map { --pw: clamp(200px, 39%, 218px); position: relative; height: 480px; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 90% at 22% 18%, #FFFDFC 0%, #FAF1E6 48%, #EBD9C2 100%); }
.stakes-map::before, .stakes-map::after { content: ''; position: absolute; height: 14px; border-radius: 7px; opacity: .45; }
.stakes-map::before { right: 6%; top: 14px; width: 40%; background: var(--teal); }
.stakes-map::after { left: 4%; bottom: 16px; width: 36%; background: var(--gold); }
.sm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sm-lines path { fill: none; stroke-width: 1.3; stroke-linecap: round; opacity: .6; transition: stroke-dashoffset 1.1s ease-in-out, opacity .6s; }
.sm-lines path.link { stroke: #A89C8B; stroke-dasharray: 3 5; opacity: .9; transition: opacity 1s ease; }

.sm-planner { position: absolute; z-index: 2; left: 50%; top: 50%; width: var(--pw); transform: translate(-50%, -50%); padding: 12px;
  background: #FFFDFC; border: 1px solid rgba(255, 255, 255, .85); border-radius: 16px;
  box-shadow: 0 28px 44px -20px rgba(10, 20, 25, .42), 0 6px 16px rgba(10, 20, 25, .10); }
.sm-person { display: flex; gap: 10px; align-items: center; }
.sm-person b { display: block; font-size: 14px; color: var(--ink); line-height: 1.25; }
.sm-person small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.sm-roster { display: grid; grid-template-columns: auto repeat(7, minmax(0, 1fr)); gap: 3px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.sm-day { font: 700 11.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 2px; }
.sm-who { font: 600 11px/1 var(--sans); color: var(--body); padding-right: 4px; white-space: nowrap; }
.sm-legend { display: flex; gap: 10px; margin-top: 9px; font: 500 11px/1 var(--sans); color: var(--muted); }
.sm-legend span { display: flex; align-items: center; gap: 4px; }
.sm-legend .sm-shift { position: static; display: block; width: 12px; height: 10px; border-left-width: 2px; }
.sm-cell { position: relative; height: 22px; border-radius: 5px; background: #F5EEE4; }
.sm-shift { position: absolute; inset: 3px; border-radius: 4px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 18%, #fff); }
.sm-shift.d { --c: #E8A968; } .sm-shift.w { --c: #336B82; }
.sm-shift.v { --c: #B5ADA2; background: repeating-linear-gradient(135deg, #EFE9E1 0 3px, #F8F4EE 3px 6px); }
/* one cell, two agreements: a soft ring, no warning */
.sm-shared::after { content: ''; position: absolute; inset: -3px; border-radius: 7px; border: 2px solid #C58938; opacity: .9; transition: opacity .8s ease; }
.stakes-map.is-playing .sm-shared:not(.in)::after { opacity: 0; }
.sm-cell .sm-dot { position: absolute; top: -3px; right: -3px; box-shadow: 0 0 0 2px #FFFDFC; }
.sm-cell .sm-dot + .sm-dot { right: 7px; }

.sm-notes { list-style: none; margin: 0; padding: 0; }
.sm-note { position: absolute; z-index: 3; width: calc((100% - var(--pw)) / 2 - 34px); padding: 10px 11px 10px 12px; background: #FFFDFC; border-radius: 12px;
  border: 1px solid rgba(217, 208, 196, .7); box-shadow: 0 14px 26px -16px rgba(10, 20, 25, .35), 0 3px 8px rgba(10, 20, 25, .06);
  font: 500 14px/1.38 var(--sans); color: var(--ink); transition: opacity .9s ease, translate .9s ease; }
.sm-note > .sm-dot { float: left; margin: 5px 8px 0 0; }
.sm-note[data-at^="l"] { left: 12px; } .sm-note[data-at^="r"] { right: 12px; }
.sm-note[data-at$="1"] { top: 40px; } .sm-note[data-at$="2"] { top: 50%; translate: 0 -50%; } .sm-note[data-at$="3"] { bottom: 40px; }
.sm-note[data-at="r1"] { top: 52px; } .sm-note[data-at="l3"] { bottom: 52px; }
.sm-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--dc); transition: opacity .6s, transform .6s; }
.sm-dot[data-c="teal"] { --dc: #336B82; } .sm-dot[data-c="brown"] { --dc: #9A4E2E; } .sm-dot[data-c="sand"] { --dc: #E8A968; }
.sm-dot[data-c="gold"] { --dc: #B8862E; } .sm-dot[data-c="muted"] { --dc: #7D8B91; } .sm-dot[data-c="deep"] { --dc: #22343B; }

/* playing: what is still to come is hidden */
.stakes-map.is-playing .sm-note:not(.in) { opacity: 0; translate: 0 8px; }
.stakes-map.is-playing .sm-note[data-at$="2"]:not(.in) { translate: 0 calc(-50% + 8px); }
.stakes-map.is-playing .sm-cell .sm-dot:not(.in) { opacity: 0; transform: scale(.4); }
.stakes-map.is-playing .sm-lines path.link:not(.in) { opacity: 0; }

/* a narrower column (861–1199px): the notes wrap onto more lines, so the panel grows */
@media (min-width: 861px) and (max-width: 1199px) { .stakes-map { height: 560px; } }
@media (max-width: 860px) { .stakes { grid-template-columns: 1fr; } .stakes-map { max-width: 600px; } }
@media (max-width: 600px) {
  .stakes-map { height: auto; padding: 24px 14px 34px; }
  .sm-lines { display: none; }
  .sm-planner { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .sm-cell { height: 26px; }
  .sm-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .sm-note, .sm-note[data-at] { position: static; width: auto; translate: none; font-size: 14px; padding: 9px 10px; }
  .stakes-map.is-playing .sm-note[data-at$="2"]:not(.in) { translate: 0 8px; }
}
/* What Shiftplus does for you (Solution.astro): the title and lead beside the still of the assistant's five flows. */
.handover { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin: 0 0 clamp(32px, 4.5vw, 56px); }
.handover h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; max-width: 14ch; color: var(--teal); }
.ho-copy p { margin: clamp(14px, 1.6vw, 20px) 0 0; font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.6; color: var(--body); max-width: 46ch; }
.ho-copy .ho-note { font-size: 13px; color: var(--muted); }
.ho-still { margin: 0; }
.ho-still.still-native { max-width: none; } /* the hero rule (476px between phone and desktop) is for the hero stills */

@media (max-width: 860px) {
  .handover { grid-template-columns: 1fr; }
}

/* The product example under the guide section (PlanExample.astro, flow/plan-example.js): three phases as tabs on the left, the
   stage on the right in the marketing still style (warm panel, white cards, soft shadows). Phase 3, the roster, is the picture;
   the result card stays small. On a phone the tabs sit on top and the week becomes a list of days. Live text, no rotation. */
.pe-title { margin: clamp(8px, 2vw, 20px) 0 clamp(16px, 2vw, 22px); font: 500 clamp(24px, 2.4vw, 32px)/1.2 var(--display); color: var(--ink); }
.pe { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; row-gap: 0; align-items: start; margin: 0 0 clamp(28px, 4vw, 44px);
  --c-teal: #336B82; --c-brown: #9A4E2E; --c-muted: #7D8B91; --c-sand: #D99A55; --c-ok: #3F6435; }
.pe-tabs { display: flex; flex-direction: column; gap: 8px; }
.pe-tab { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; text-align: left; padding: 13px 16px; border: 1px solid rgba(51, 107, 130, .2); border-radius: 14px;
  background: rgba(255, 255, 255, .55); font: inherit; color: var(--ink); cursor: pointer; transition: background .3s, border-color .3s, box-shadow .3s; }
.pe-tab:hover { background: #fff; border-color: rgba(51, 107, 130, .45); }
.pe-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pe-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); font: 700 12px/1 var(--sans); }
.pe-tt { font: 500 21px/1.2 var(--display); }
.pe-tx { grid-column: 2; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--body); display: none; }
.pe-tab[aria-selected="true"] { background: #fff; border: 2px solid var(--teal); padding: 12px 15px; box-shadow: 0 12px 26px -16px rgba(34, 52, 59, .45); }
.pe-tab[aria-selected="true"] .pe-tt { color: var(--teal-deep); }
.pe-tab[aria-selected="true"] .pe-n { background: var(--teal); color: #fff; }
.pe-tab[aria-selected="true"] .pe-tx { display: block; }
.pe-note { margin: 8px 0 0 16px; font-size: 13px; color: var(--muted); }

.pe-stage { position: relative; min-height: 470px; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 90% at 22% 18%, #FFFDFC 0%, #FAF1E6 48%, #EBD9C2 100%); }
.pe-stage::before, .pe-stage::after { content: ''; position: absolute; height: 14px; border-radius: 7px; opacity: .45; }
.pe-stage::before { right: 6%; top: 14px; width: 42%; background: var(--teal); }
.pe-stage::after { left: 5%; bottom: 16px; width: 34%; background: var(--gold); }
.pe-panel { position: relative; z-index: 1; padding: 34px 28px 40px; min-height: 470px; }
#pe-panel-2 { padding-top: 30px; }
.pe-panel[hidden] { display: none; }
.pe-panel.in { animation: pe-in .45s ease both; }
@keyframes pe-in { from { opacity: 0; } to { opacity: 1; } }
.pe-lead { display: none; }
/* home variant b: the example carries the section title (as .handover h2) */
.pe-title.pe-h2 { margin: 0 0 clamp(24px, 3vw, 36px); font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; max-width: 16ch; color: var(--teal); }
.pe-card { background: #FFFDFC; border: 1px solid rgba(255, 255, 255, .85); border-radius: 16px; box-shadow: 0 28px 44px -20px rgba(10, 20, 25, .42), 0 6px 16px rgba(10, 20, 25, .10); }
.pe-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dc); }
.c-teal { --dc: var(--c-teal); --hc: rgba(51, 107, 130, .28); } .c-brown { --dc: var(--c-brown); --hc: rgba(154, 78, 46, .26); }
.c-muted { --dc: var(--c-muted); --hc: rgba(125, 139, 145, .3); } .c-sand { --dc: var(--c-sand); --hc: rgba(217, 154, 85, .34); } .c-ok { --dc: var(--c-ok); }

/* phase 1 */
.pe-chat { max-width: 640px; margin: 40px auto 0; padding: 20px 20px 16px; }
.pe-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #EDE4D9; }
.pe-head b { display: block; font-size: 15px; } .pe-head small { display: block; font-size: 11px; color: var(--muted); }
.pe-av { width: 30px; height: 30px; border-radius: 9px; flex: none; background-position: center; background-repeat: no-repeat; background-size: 17px, cover;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2l2.2 6.3L20.5 10.5l-6.3 2.2L12 19l-2.2-6.3L3.5 10.5l6.3-2.2z'/%3E%3C/svg%3E"), linear-gradient(145deg, #336B82, #22505f); }
.pe-bubble { margin: 0 0 0 auto; max-width: 94%; padding: 14px 18px; background: #D7E9EF; border-radius: 16px 16px 5px 16px; font-size: 17px; line-height: 1.7; font-weight: 500; color: var(--ink); }
.pe-hl { color: inherit; padding: 0 2px; border-radius: 3px; background: linear-gradient(transparent 62%, var(--hc) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pe-composer { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 8px 8px 14px; border: 1px solid #D9D0C4; border-radius: 14px; font-size: 14px; color: #797167; }
.pe-composer span { flex: 1; }
.pe-composer i { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* phase 2 */
.pe-rules { max-width: 520px; padding: 14px; }
.pe-rules-h { display: flex; align-items: center; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.pe-rules-h span:last-child { margin-left: auto; }
.pe-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #D9D0C4; border-radius: 99px; font-size: 12px; color: #49443C; }
.pe-rules ul, .pe-result ul { list-style: none; margin: 0; padding: 0; }
.pe-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 7px; padding: 9px 11px; background: #fff; border: 1.5px solid #7FA374; border-radius: 11px; }
.pe-rule.soft { border-color: #C9A25A; }
.pe-rule.clash { border-color: #E3B06E; background: #FFF8EE; }
.pe-rt { flex: 1; font-size: 15px; font-weight: 600; color: var(--ink); }
.pe-kind { flex: none; padding: 3px 9px; border-radius: 99px; background: #2F5A2A; color: #fff; font: 700 11px/1.3 var(--sans); }
.pe-rule.soft .pe-kind { background: #9A6A12; }
.pe-flag { flex: none; padding: 3px 7px; border-radius: 6px; background: #F6D3A3; color: #4A300A; font: 700 11px/1.3 var(--sans); }
.pe-why { flex-basis: 100%; padding-left: 19px; font-size: 13.5px; line-height: 1.45; color: #5a4a2c; }
.pe-clash { position: absolute; right: 28px; bottom: 44px; width: 260px; padding: 14px 16px; }
.pe-clash b { display: block; font-size: 15px; } .pe-clash span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--body); }

/* phase 3: the roster is the picture */
.pe-roster { padding: 14px 16px 12px; max-width: 640px; }
.pe-grid { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.pe-grid thead th { font: 700 11px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-bottom: 3px; }
.pe-grid thead th i { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: var(--ink); letter-spacing: 0; }
.pe-grid thead td, .pe-grid tbody th { width: 104px; }
.pe-grid tbody th { text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pe-grid tbody th small { margin-left: 5px; font-size: 11px; font-weight: 500; color: var(--muted); }
.pe-grid td { position: relative; height: 32px; padding: 0; border-radius: 6px; background: #F5EEE4; }
.pe-grid td .pe-cell { position: absolute; inset: 3px; }
.pe-cell { display: flex; align-items: center; padding-left: 6px; border-radius: 5px; border-left: 3px solid var(--sc); background: color-mix(in srgb, var(--sc) 17%, #fff); font: 700 11.5px/1 var(--sans); color: #2B3A40; white-space: nowrap; overflow: hidden; }
.pe-cell:not(.w):not(.a):not(.v) { display: none; }
.pe-cell.w { --sc: #336B82; } .pe-cell.a { --sc: #E8A968; }
.pe-cell.v { --sc: #B5ADA2; background: repeating-linear-gradient(135deg, #EFE9E1 0 3px, #F8F4EE 3px 6px); }
.pe-mark { position: absolute; top: -3px; right: -3px; box-shadow: 0 0 0 2px #FFFDFC; }
.pe-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.pe-legend span { display: flex; align-items: center; gap: 5px; }
.pe-legend .pe-cell { display: block; width: 14px; height: 11px; padding: 0; border-left-width: 2px; }
.pe-fixed { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 10px; border-radius: 9px; background: #EEF3EC; font-size: 13.5px; font-weight: 500; color: #2E4A27; }
.pe-tick { width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: #3F6435 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
/* the cell where the planner resolved the clash */
td.pe-was, .pe-cell.pe-was { box-shadow: 0 0 0 2px #7D8B91; }
.pe-next { display: block; grid-column: 2; justify-self: end; margin-top: 12px; padding: 8px 16px; border: 1px solid rgba(51, 107, 130, .35); border-radius: 99px; background: #fff;
  font: 600 14px/1 var(--sans); color: var(--teal); cursor: pointer; }
.pe-next:hover { border-color: var(--teal); }
.pe-next:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pe-next[hidden] { display: none; }
.pe-days, .pe-leave { display: none; }
.pe-grid thead td { background: none; }
/* the result supports the roster: a small card under it, overlapping its edge, never over the week */
.pe-result { position: relative; z-index: 2; width: min(480px, 86%); margin: -8px 0 0 auto; padding: 10px 14px 9px; }
.pe-res-h { display: flex; align-items: center; gap: 9px; }
.pe-res-h b { display: block; font-size: 14.5px; } .pe-res-h small { display: block; font-size: 12px; color: var(--muted); }
.pe-ok { width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: #3F6435 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.pe-result ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; margin-top: 8px; padding-top: 6px; border-top: 1px solid #EDE4D9; }
.pe-result li { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 12.5px; color: var(--ink); }
.pe-result li span { margin-left: auto; padding-left: 6px; font-weight: 600; color: var(--c-ok); }

@media (max-width: 860px) {
  .pe { grid-template-columns: 1fr; gap: 12px; }
  .pe-tabs { flex-direction: row; gap: 6px; }
  .pe-tab { flex: 1; grid-template-columns: 1fr; justify-items: center; row-gap: 4px; padding: 9px 6px; text-align: center; }
  .pe-tt { font-size: 16px; }
  .pe-tab[aria-selected="true"] { padding: 8px 5px; }
  .pe-next { grid-column: 1; margin-top: 0; }
  .pe-tx, .pe-tab[aria-selected="true"] .pe-tx, .pe-note { display: none; }
  .pe-lead { display: block; margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--body); }
  .pe-panel { padding: 20px 12px 34px; min-height: 0; }
  .pe-stage { min-height: 0; }
  .pe-chat { margin-top: 0; }
  .pe-clash { position: relative; right: auto; bottom: auto; width: auto; margin: 12px 0 0 24px; }
}
@media (max-width: 600px) {
  .pe-grid { display: none; }
  .pe-legend { display: flex; margin: 0 0 8px; }
  .pe-roster { padding: 12px 14px 10px; display: flex; flex-direction: column; }
  .pe-legend { order: -1; }
  .pe-days { display: block; list-style: none; margin: 0; padding: 0; }
  .pe-days li { display: grid; grid-template-columns: 50px 1fr 1fr; gap: 5px; align-items: center; padding: 3px 0; }
  .pe-days b { font-size: 13px; color: var(--ink); }
  .pe-days .pe-cell { position: relative; height: 28px; overflow: visible; font: 600 13.5px/1 var(--sans); }
  .pe-days .pe-cell .pe-dot { position: absolute; right: 6px; top: 50%; margin-top: -4.5px; }
  .pe-leave { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13.5px; color: var(--ink); }
  .pe-leave .pe-cell { display: block; width: 22px; height: 16px; padding: 0; }
  .pe-fixed { align-items: flex-start; } .pe-fixed .pe-tick { margin-top: 1px; }
  .pe-result { width: auto; margin: -12px 0 0 18px; }
  .pe-result ul { grid-template-columns: 1fr; }
  .pe-bubble { font-size: 16px; }
  .pe-stage::before { top: auto; bottom: 16px; right: 6%; width: 30%; }
  /* the rule title gets the full line; its labels sit underneath */
  .pe-rule { row-gap: 6px; }
  .pe-rt { flex: 1 1 calc(100% - 19px); }
  .pe-rt + .pe-flag, .pe-rt + .pe-kind { margin-left: 19px; }
}
@media (prefers-reduced-motion: reduce) { .pe-panel.in { animation: none; } .pe-tab { transition: none; } }
/* Scripted examples around the app window: layer note, rule example (Guide and Probeer Shiftplus) and the link to more examples. */
.layer-note { font-size: 15px; color: var(--body); max-width: 60ch; min-height: 3.4em; }

.ruledemo { display: grid; gap: 14px; }
.rule-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rule-ctl .rl { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.rres { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: grid; gap: 8px; background: var(--paper); font-size: 15px; color: var(--body); }
.rres b { font: 700 15px var(--sans); color: var(--ink); }
.rres.ok { border-color: color-mix(in srgb, #5F8F6A 45%, transparent); background: #F2F7F1; } .rres.ok b { color: #33502F; }
.rres.clash { border-color: #D9A27A; background: #FFF6EC; } .rres.clash b { color: var(--brown); }
.rres ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rres .prop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding-top: 10px; border-top: 1px solid #EBD4BC; }
.try-link { margin: clamp(20px, 3vw, 32px) 0 0; }
.try-link a { font: 700 16px var(--sans); color: var(--teal); text-decoration: none; }
.try-link a + a { margin-left: 28px; }
.try-link a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Example "Kan deze planning beter?": two weekends of weekend duty in the application window, with a short conversation below. */
.wkend { display: grid; gap: 14px; }
.wkend .agt .wkh { text-align: center; padding: 6px 2px; font: 700 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--a-ink3); background: var(--a-canvas); }
.wkend .agt .wkgap { border-left: 2px solid var(--a-line2); }
.wkend .pl.prop { outline: 1.5px dashed #3C7F92; outline-offset: 1px; }
.wkend .pl.out { opacity: .4; text-decoration: line-through; }
.wk-chat { display: grid; gap: 10px; max-width: 760px; }
.wk-msg { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: grid; gap: 10px; background: var(--paper); font-size: 15px; color: var(--body); }
.wk-msg b { font: 700 15px var(--sans); color: var(--ink); }
.wk-msg.busy { color: var(--muted); border-style: dashed; }
.wk-msg.ok { border-color: color-mix(in srgb, #5F8F6A 45%, transparent); background: #F2F7F1; } .wk-msg.ok > b { color: #33502F; }
.wk-msg.clash { border-color: #D9A27A; background: #FFF6EC; }
.wk-user { justify-self: end; background: var(--teal); color: #fff; padding: 9px 16px; border-radius: 16px 16px 4px 16px; font: 500 14.5px var(--sans); }
.wk-ask { justify-self: end; }
.wk-cands, .wk-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.wk-cands li, .wk-checks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.wk-cands li::before, .wk-checks li::before { content: "\2022"; color: var(--muted); }
.wk-cands li.pick::before, .wk-cands li.ok::before, .wk-checks li.ok::before { content: "\2713"; color: #3F6B3C; font-weight: 700; }
.wk-cands li.no::before, .wk-checks li.no::before { content: "\2715"; color: var(--brown); font-weight: 700; }
.wk-cands li.pick { color: var(--ink); }
.wk-cands li.no { color: var(--muted); }
.wk-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
/* four day columns fit on a phone: no minimum table width, narrower name column */
.wkend .agt { min-width: 0; }
.wkend .agt th.corner, .wkend .agt td.nm { width: 74px; }
/* Review notes inside the unpublished draft pages (testimonials, blog). Not used on live pages. */
.slot { font: 500 11px var(--mono); color: var(--brown); background: var(--peach); border: 1px dashed var(--brown); border-radius: 999px; padding: 4px 10px; display: inline-block; letter-spacing: .02em; }
/* The Shiftplus application, as it looks in the product (tokens from shiftplus-app web/src/index.css).
   Used for the interactive demos so they resemble real rostering: Planning page, week grid, assistant chat, rules panel. */
.sw {
  --a-cream: #FAF1E6; --a-side: #FBF4EB; --a-canvas: #FEFDFA; --a-line: #EBE2D5; --a-line2: #D9D0C3;
  --a-ink: #1F1B16; --a-ink2: #4A443B; --a-ink3: #7C7468;
  /* event colours: one calm family from the brand (sand, brown, ink, teal), a soft tint plus a clear bar, dark text on every tint */
  --a-day: #E8A968; --a-day-t: #FCEBD3; --a-eve: #7A3B22; --a-eve-t: #F2DDD4; --a-night: #22343B; --a-night-t: #DDE4E7; --a-oc: #336B82; --a-oc-t: #D9E9EE;
  --a-leave-t: #EEF2EC; --a-leave-b: #9DB598;
  --a-leave: hsl(105 26% 40%); --a-primary: #9A4E30; --a-save: #3F6B3C; --a-pill: #EAF2F3; --a-pill-ink: #2C5A6B;
  --a-holiday: #F4EFFA; --a-holiday-ink: #6B4FA0;
  container-type: inline-size; border: 1px solid var(--a-line2); border-radius: 14px; overflow: hidden; background: var(--a-canvas);
  box-shadow: 0 24px 48px -30px rgba(34,52,59,.4); font: 400 13px/1.45 var(--sans); color: var(--a-ink); text-align: left;
}
.sw button { font-family: inherit; }
.app-top { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--a-cream); border-bottom: 1px solid var(--a-line); }
.app-top svg.mk-logo { width: 22px; height: 22px; flex: none; }
.app-top .ttl { display: grid; line-height: 1.15; }
.app-top .ttl b { font: 500 20px var(--display); color: var(--a-ink); }
.app-top .ttl small { font-size: 11px; color: var(--a-ink3); }
.app-top .r { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--a-ink2); }
.app-top .bell { position: relative; display: inline-flex; }
.app-top .bell i { position: absolute; top: -6px; right: -7px; min-width: 14px; height: 14px; border-radius: 7px; background: var(--a-primary); color: #fff; font: 700 9px/14px var(--sans); text-align: center; font-style: normal; }
.app-top .user { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.app-top .user span.av { width: 26px; height: 26px; border-radius: 50%; background: var(--a-primary); color: #fff; font: 700 10px/26px var(--sans); text-align: center; }
.app-body { display: flex; min-height: 0; }
.app-side { flex: none; background: var(--a-side); border-right: 1px solid var(--a-line); padding: 10px 8px; display: grid; gap: 2px; align-content: start; }
.app-side .ws { font: 700 9.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); padding: 6px 10px; }
.app-side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--a-ink); font-weight: 500; text-decoration: none; cursor: default; }
.app-side a[aria-current="page"] { background: var(--a-pill); color: var(--a-pill-ink); box-shadow: inset 3px 0 0 var(--teal); }
.app-side.rail a span { display: none; } .app-side.rail .ws { display: none; }
.app-side svg, .app-top svg { flex: none; }
.app-main { flex: 1; min-width: 0; display: grid; align-content: start; }
@container (max-width: 900px) { .app-side:not(.rail) { display: none; } }
@container (max-width: 520px) { .app-side { display: none; } }
/* grid view */
.ag-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--a-line); }
.ag-bar .nv { display: inline-flex; border: 1px solid var(--a-line2); border-radius: 8px; overflow: hidden; background: #fff; }
.ag-bar .nv span { padding: 5px 9px; font-size: 12px; border-right: 1px solid var(--a-line2); }
.ag-bar .nv span:last-child { border-right: 0; }
.ag-bar .wk { font-weight: 500; margin-left: 4px; }
.ag-bar .sp { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ag-bar .gb { border: 1px solid var(--a-line2); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--a-ink); }
.ag-bar .live { font-size: 11.5px; color: var(--a-ink3); background: #F2F0EA; padding: 4px 9px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.ag-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9DB598; }
.ag-bar .pub { background: var(--a-primary); color: #fff; border: 0; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 500; }
.ag-scroll { overflow-x: auto; }
table.agt { width: 100%; border-collapse: collapse; min-width: 470px; table-layout: fixed; }
.agt th, .agt td { border: 1px solid var(--a-line); padding: 0; }
.agt th.corner, .agt td.nm { width: 88px; background: var(--a-canvas); text-align: left; }
.agt td.nm { padding: 0 10px; font-size: 12px; color: var(--a-ink); height: 34px; }
.agt td.nm small { display: none; margin-left: 6px; font: 500 9.5px var(--mono); color: var(--a-pill-ink); }
.agt th.dh { padding: 7px 2px 6px; text-align: center; font-weight: 400; background: var(--a-canvas); }
.agt th.dh span.dw { display: block; font: 500 9.5px var(--sans); letter-spacing: .08em; color: var(--a-ink3); }
.agt th.dh b { display: block; font-size: 13px; font-weight: 600; }
.agt th.dh em { display: block; font: 700 7.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--a-holiday-ink); font-style: normal; }
.agt .hol { background: var(--a-holiday); }
.agt tr.grp td { background: #EEF4EB; font-size: 12px; font-weight: 500; padding: 5px 10px; border-bottom: 1.5px solid var(--a-ink2); }
.agt tr.grp .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--a-leave); margin-right: 7px; }
.agt td.c { height: 34px; padding: 3px 4px; }
.agt tfoot td { padding: 4px 4px; text-align: center; font: 500 10.5px var(--mono); color: var(--a-ink3); background: var(--a-canvas); }
.agt tfoot td:first-child { text-align: left; padding-left: 10px; font: 700 9.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.cv { display: inline-block; min-width: 36px; padding: 2px 6px; border-radius: 5px; transition: background .35s ease, color .35s ease; }
.cv.low { border: 1.5px dashed var(--a-primary); background: #FCEBD6; color: #7A3B22; }
.pl.sel { outline: 3px solid var(--teal); outline-offset: 1px; }
.pl.flash { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(232,169,104,.55); }
.pl.pulse { box-shadow: 0 0 0 3px rgba(154,78,48,.45); }
.pl.soft { border: 1.5px dashed var(--a-primary); }
/* layers */
[data-layer="beschikbaarheid"] .pl:not(.V) { opacity: .28; }
[data-layer="voorkeuren"] .pl { opacity: .5; }
[data-layer="kwalificaties"] .agt td.nm small { display: inline; }
[data-layer="kwalificaties"] .pl { opacity: .5; }
[data-layer="kwalificaties"] .pl[data-req] { opacity: 1; outline: 2px solid var(--teal); outline-offset: 1px; }
[data-layer="locaties"] .pl:not(.e)::after { content: attr(data-loc); position: absolute; right: 2px; bottom: -1px; font: 500 8px var(--mono); opacity: .85; }
[data-layer="regels"] .pl { opacity: .5; }
[data-layer="regels"] .pl[data-rest] { opacity: 1; outline: 2px dotted var(--a-primary); outline-offset: 1px; }
[data-layer="regels"] .pl.A, [data-layer="regels"] .pl.N { opacity: 1; }
.ag { position: relative; }
button.gb { font-family: inherit; cursor: pointer; }
/* the legend is a popover from the toolbar, as in the app */
.agleg { display: none; position: absolute; right: 12px; top: 48px; z-index: 8; flex-direction: column; gap: 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--a-line2); border-radius: 10px; box-shadow: 0 12px 28px -14px rgba(34,52,59,.35); font: 400 10.5px var(--mono); color: var(--a-ink2); min-width: 190px; }
.agleg.open { display: flex; }
/* compact grid: the first four physicians, the rest load in on request */
.ag.compact tbody tr.x { display: none; }
.ag.compact.open tbody tr.x { display: table-row; animation: rise .5s ease backwards; animation-delay: calc(var(--i) * 80ms); }
.agt tbody tr.mr td { border-bottom: 1px solid var(--a-line); text-align: center; padding: 4px; background: var(--a-canvas); }
.mb { background: none; border: 0; color: var(--a-pill-ink); font: 700 12px var(--sans); cursor: pointer; padding: 5px 10px; border-radius: 8px; }
.mb:hover { background: var(--a-pill); }
.agleg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* assistant view */
.assist { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); height: 480px; min-height: 0; }
@container (max-width: 600px) { .assist { grid-template-columns: minmax(0, 1fr); height: auto; } .assist .msgs { max-height: 330px; } .assist .canvas .pane { max-height: 360px; } .assist .canvas { border-left: 0; border-top: 1px solid var(--a-line); } }
.chat { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.chat .tb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chat .tb .b { border: 1px solid var(--a-line2); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--a-ink); display: inline-flex; gap: 6px; align-items: center; }
.chat .tb .back { margin-left: auto; border-color: #9CC3CD; color: var(--a-pill-ink); }
.msgs > * { flex: none; }
.msgs { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow: auto; min-height: 0; padding: 4px 2px; }
.mu { align-self: flex-end; background: #D3E6EB; border-radius: 14px; padding: 7px 13px; font-size: 13px; animation: rise .35s ease both; max-width: 85%; }
.ma { font-size: 13px; color: var(--a-ink); animation: rise .35s ease both; max-width: 92%; }
.ma .sts { display: block; color: var(--a-ink3); font-size: 12px; margin-bottom: 4px; }
.cd { border: 1px solid var(--a-line2); border-radius: 10px; background: #fff; overflow: hidden; animation: rise .35s ease both; }
.cd .h { padding: 9px 12px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--a-line); }
.cd .h .stop { border: 1px solid var(--a-line2); background: #fff; border-radius: 7px; padding: 2px 9px; font-size: 11.5px; }
.cd .bd { padding: 10px 12px; display: grid; gap: 4px; }
.cd .bd small { color: var(--a-ink3); font-size: 12px; }
.cd .ok { background: #E8F0E4; color: #33502F; padding: 8px 12px; font-size: 12.5px; animation: rise .35s ease both; }
.cd .btns { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.cd .btns button { border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; border: 1px solid var(--a-line2); background: #fff; color: var(--a-ink); display: inline-flex; gap: 6px; align-items: center; }
.cd .btns button.go { background: var(--a-save); border-color: var(--a-save); color: #fff; }
.cd .btns button[disabled] { opacity: .45; cursor: not-allowed; }
.steps { display: grid; gap: 5px; padding: 10px 12px; }
.steps div { display: grid; grid-template-columns: 16px 1fr; gap: 9px; align-items: center; font-size: 12.5px; color: var(--a-ink); }
.steps div::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--a-line2); }
.steps div.busy::before { border-color: var(--teal); border-top-color: transparent; animation: spin .9s linear infinite; }
.steps div.done::before { content: "✓"; border: 0; width: auto; height: auto; color: #33502F; font-size: 12px; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.inp { border: 1px solid var(--a-line2); border-radius: 12px; background: #fff; padding: 9px 12px 8px; display: grid; gap: 6px; }
.inp .ph { color: #A39B8E; font-size: 13px; min-height: 20px; }
.inp .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sugg { display: flex; gap: 6px; flex-wrap: wrap; }
.sugg button { border: 1px solid var(--a-line2); background: var(--a-canvas); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--a-ink); cursor: pointer; }
.sugg button:hover { background: var(--a-pill); border-color: #9CC3CD; }
.inp .send { width: 26px; height: 26px; border-radius: 8px; background: var(--a-primary); color: #fff; display: grid; place-items: center; flex: none; }
.disc { text-align: center; font-size: 10.5px; color: var(--a-ink3); }
.opt2 { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--a-line2); border-radius: 9px; background: #fff; cursor: pointer; }
.opt2 input { margin-top: 3px; accent-color: var(--a-save); }
.opt2 small { grid-column: 2 / span 2; color: var(--a-ink3); font-size: 11.5px; line-height: 1.4; }
.opt2.blocked { background: #FAF7F1; border-style: dashed; cursor: default; color: var(--a-ink3); }
.opt2.blocked input { visibility: hidden; }
.opt2.on { border-color: var(--a-save); background: #F2F7EF; }
.tg { font: 500 10px var(--mono); border: 1px solid var(--a-primary); color: #7A3B22; border-radius: 999px; padding: 2px 8px; align-self: start; white-space: nowrap; }
.canvas { border-left: 1px solid var(--a-line); background: #fff; min-width: 0; display: flex; flex-direction: column; }
.canvas .tabs { display: inline-flex; gap: 2px; margin: 10px 12px 12px; padding: 3px; background: #F2EFE9; border-radius: 9px; align-self: flex-start; }
.canvas .tabs button { border: 0; background: transparent; border-radius: 7px; padding: 4px 11px; font-size: 12px; color: var(--a-ink3); cursor: pointer; }
.canvas .tabs button[aria-selected="true"] { background: #fff; color: var(--a-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.canvas { min-height: 0; }
.canvas .pane { padding: 0; min-width: 0; flex: 1; min-height: 0; overflow: auto; }
.canvas .pane[hidden] { display: none; }
.canvas .gridpane .ag-bar { display: none; }
.rp { padding: 12px; display: grid; gap: 4px; }
.rp h3 { font: 600 15px var(--sans); color: var(--a-ink); margin: 0; letter-spacing: 0; }
.rp .sub { font-size: 12px; color: var(--a-ink3); }
.rp .cnt { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.rp .cnt.good { color: #33502F; font-weight: 500; }
.rp .sec { font: 700 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); margin: 8px 0 0; }
.rp .secsub { font-size: 11.5px; color: var(--a-ink3); margin-bottom: 4px; }
.rr { border: 1px solid var(--a-line2); border-radius: 8px; background: #fff; padding: 7px 10px; font-size: 12.5px; color: var(--a-ink); display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; cursor: pointer; text-align: left; width: 100%; animation: rise .3s ease both; }
.rr .tags { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.rr .tags i { font: 700 9px var(--sans); font-style: normal; padding: 1px 6px; border-radius: 4px; }
.rr .tags .new { background: #E6F0E1; color: #33502F; font-weight: 500; }
.rr .rs { font-size: 12px; color: #33502F; }
.rr.partial { border-color: #D9A27A; background: #FFF6EC; }
.rr.partial .rs { color: #7A3B22; font-size: 11px; font-weight: 600; }
.rr.clash { border-color: var(--a-primary); background: #FCEBD6; }
.rr.clash .rs { color: #7A3B22; font-size: 11px; font-weight: 700; }
.rr .dt { grid-column: 1 / -1; font-size: 11.5px; color: var(--a-ink3); display: none; gap: 2px; padding: 4px 0 2px; cursor: default; }
.rr.open .dt { display: grid; }
.rg { border: 1px solid var(--a-line); border-radius: 9px; background: #FBF7F0; padding: 7px; display: grid; gap: 5px; }
.rg .gt { font-size: 11px; color: var(--a-ink3); font-weight: 600; padding: 0 2px; }
.dist { padding: 12px; display: grid; gap: 8px; }
.dist .row { display: grid; grid-template-columns: 86px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.dist .bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 1px; }
.dist .bar i { display: block; height: 100%; }
.dist .n { font: 500 11px var(--mono); color: var(--a-ink3); }
/* explanation card beside the roster */
.why { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper); font-size: 14.5px; min-height: 72px; }
.why h4 { margin: 0 0 8px; font: 700 13px var(--sans); color: var(--ink); }
.why dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; }
.why dt { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.why dd { margin: 0; }
.why .hint { color: var(--muted); }
/* events as in the app: EventPill (published, concept, assistant proposal), TimeOffIndicator, PreferencePill */
.agt tbody td { border: 0; border-right: 1px solid var(--a-line); border-bottom: 2px solid #D1D5DB; }
.agt tr.grp td { border-bottom: 1.5px solid var(--a-ink2); }
.agt td.nm { height: auto; min-height: 30px; background: var(--a-side); }
.agt td.c { height: auto; min-height: 30px; padding: 3px 3px 5px; vertical-align: top; }
.agt td.c.leave { background: rgba(88,128,75,.09); border-right-color: #C7D9C0; }
.pf { display: none; }
[data-layer="voorkeuren"] .pf.has { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 2px; padding: 1px 4px; border-radius: 4px; background: #7c6aa825; color: var(--a-ink); font: 600 11px var(--sans); }
[data-layer="voorkeuren"] .pl:not(.V) { opacity: .5; }
.lnk { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--teal); text-decoration: underline; cursor: pointer; font: 700 12.5px var(--sans); }

/* events: a tinted pill with a bar in the activity colour, time above the label when there is room (like the personal calendar) */
.ag { container-type: inline-size; container-name: ag; }
.pl { position: relative; display: grid; place-items: center; width: 100%; min-height: 21px; padding: 1px 3px 1px 5px; border-radius: 5px; border: 1px solid transparent; border-left: 3px solid var(--b, transparent); background: var(--t, transparent); color: var(--a-ink); text-align: center; font: 700 11px/1.3 var(--sans); cursor: pointer; transition: background .4s ease, color .4s ease, transform .3s ease, opacity .3s ease; }
.pl.e { background: transparent; border-color: transparent; cursor: default; color: transparent; min-height: 21px; }
.pl.D { --t: var(--a-day-t); --b: var(--a-day); }
.pl.A { --t: var(--a-eve-t); --b: var(--a-eve); }
.pl.N { --t: var(--a-night-t); --b: var(--a-night); }
.pl.OC { --t: var(--a-oc-t); --b: var(--a-oc); }
.pl.V { --t: var(--a-leave-t); --b: var(--a-leave-b); border: 1px dashed var(--a-leave-b); border-left: 3px solid var(--a-leave-b); color: #3F5538; font-weight: 500; }
.pl.Z { --t: #FCEBD3; --b: var(--a-primary); border: 1px dashed var(--a-primary); border-left: 3px solid var(--a-primary); color: #7A3B22; }
.pl .t { display: none; font: 500 8.5px/1.2 var(--mono); color: var(--a-ink2); letter-spacing: -.3px; white-space: nowrap; }
.pl .ts { display: block; font: 500 8.5px/1.2 var(--mono); color: var(--a-ink2); white-space: nowrap; }
.pl .ck { display: none; }
.pl .lg { display: none; }
@container ag (min-width: 640px) { .pl .t { display: block; } .pl .ts { display: none; } .pl .lg { display: inline; } .pl .sh { display: none; } .pl .ck { display: inline-block; vertical-align: -1px; margin-right: 3px; } }
.pl.soft { outline: 1.5px dashed var(--a-primary); outline-offset: 1px; }
.pl.sel { outline: 3px solid var(--teal); outline-offset: 1px; }
.pl.flash { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(232,169,104,.55); }
.pl.pulse { box-shadow: 0 0 0 3px rgba(154,78,48,.4); }
/* event states: published as is; concept (saved, not published) dashed with the yellow corner fold; proposal of the assistant dashed teal */
.ag[data-ev="draft"] .pl:is(.D, .A, .N, .OC), .ag .pl.draft:is(.D, .A, .N, .OC) { outline: 1px dashed #9CA3AF; outline-offset: -1px; opacity: .72; }
.ag[data-ev="draft"] .pl:is(.D, .A, .N, .OC)::before, .ag .pl.draft:is(.D, .A, .N, .OC)::before { content: ""; position: absolute; top: -1px; right: -1px; width: 0; height: 0; border-style: solid; border-width: 0 11px 11px 0; border-color: transparent #FBBF24 transparent transparent; border-top-right-radius: 6px; }
.ag[data-ev="prev"] .pl:is(.D, .A, .N, .OC) { outline: 1.5px dashed #3C7F92; outline-offset: 1px; }
.pl.sel { outline: 3px solid var(--teal); outline-offset: 1px; }
.rr .tags .D, .rr .tags .A, .rr .tags .N { color: var(--a-ink); border-left: 3px solid var(--b); background: var(--t); border-radius: 4px; padding: 1px 6px 1px 5px; }
.rr .tags .D { --t: var(--a-day-t); --b: var(--a-day); } .rr .tags .A { --t: var(--a-eve-t); --b: var(--a-eve); } .rr .tags .N { --t: var(--a-night-t); --b: var(--a-night); }
.agleg i.sw { display: inline-block; width: 15px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--t); border-left: 3px solid var(--b); }
.agleg i.sw.D { --t: var(--a-day-t); --b: var(--a-day); } .agleg i.sw.A { --t: var(--a-eve-t); --b: var(--a-eve); } .agleg i.sw.N { --t: var(--a-night-t); --b: var(--a-night); } .agleg i.sw.OC { --t: var(--a-oc-t); --b: var(--a-oc); } .agleg i.sw.V { --t: var(--a-leave-t); --b: var(--a-leave-b); }
.agleg .ls i { display: inline-block; width: 15px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--a-day-t); border-left: 3px solid var(--a-day); }
.agleg .ls i.lc { outline: 1px dashed #9CA3AF; outline-offset: -1px; opacity: .8; }
.agleg .ls i.lv { outline: 1.5px dashed #3C7F92; outline-offset: 1px; }

/* Leave and sick pills: the clock sits on the same row as the label */
.pl.V, .pl.Z { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pl.V .ck, .pl.Z .ck { margin-right: 0; vertical-align: baseline; flex: none; }
/* Lean levels: the real window with less around it. data-lean="1" is light, "2" is bare. Set on any ancestor of the window (see ab.js).
   Written with CSS nesting; "&" is the selector of the parent rule. */
:is([data-lean="1"], [data-lean="2"]) .sw {
  /* left out in both levels: sidebar, top-bar icons, toolbar buttons, legend, occupancy row, chat toolbar, AI disclaimer */
  & .app-side, & .app-top .r, & .ag-bar .gb, & .ag-bar .live, & .agleg, & .agt tfoot, & .disc, & .chat .tb { display: none; }
  /* shifts: no times and no dashed preview outline */
  & .pl .t, & .pl .ts { display: none; }
  & .ag[data-ev="prev"] .pl:is(.D, .A, .N, .OC) { outline: 0; }
  /* rules panel: a plain list that only shows what needs attention */
  & .rp .sub, & .rp .secsub, & .rr .tags, & .rp .sec.ok, & .rp .rr.ok { display: none; }
  & .rp .rr { border: 0; background: transparent; border-bottom: 1px solid var(--a-line); border-radius: 0; padding: 7px 2px; }
  & .rp .rr.partial, & .rp .rr.clash { border: 1px solid #D9A27A; border-radius: 8px; padding: 7px 10px; }
  /* canvas tabs stay visible but are not clickable */
  & .canvas .tabs { pointer-events: none; }
  & .canvas .tabs button { cursor: default; }
}

/* bare level: also without title bar, week navigation, publish button, group row, qualification tags and chat input */
[data-lean="2"] .sw {
  & .app-top, & .ag-bar .nv, & .ag-bar .pub, & .agt tr.grp, & .agt td.nm small, & .chat .inp { display: none; }
  & .ag-bar { border-bottom: 0; padding-bottom: 4px; }
  & .assist { height: 400px; }
}
/* Flow: the page reads as one story. Content loads in as you scroll, a thread connects the chapters,
   a rail shows where you are, and the ground colour drifts between chapters. Everything is visible without script or motion. */
body { background: var(--flow-bg, var(--paper)); transition: background-color .9s ease; }
.nav { background: color-mix(in srgb, var(--flow-bg, var(--paper)) 92%, transparent); }
.nav::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--pg, 0) * 100%); background: var(--teal); transition: width .12s linear; }

/* hero entrance: CSS only, ends fully visible */
@keyframes heroin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero .lead, .hero .actions { animation: heroin .8s cubic-bezier(.2,.7,.2,1) backwards; }
.hero h1 { animation-delay: .08s; } .hero .lead { animation-delay: .2s; } .hero .actions { animation-delay: .32s; }
/* on a phone the title is the largest text on screen: it rises in without fading, so it paints at once (LCP) */
@keyframes herorise { from { transform: translateY(14px); } to { transform: none; } }
@media (max-width: 760px) { .hero h1 { animation-name: herorise; animation-delay: 0s; } }

/* content arrives from below and lifts away at the top, driven by the scroll position (both directions) */
.flow .sl { opacity: var(--o, 1); transform: translateY(var(--y, 0px)) scale(var(--s, 1)); transition: opacity var(--fd, .22s) ease-out, transform var(--fd, .22s) ease-out; }
/* fully arrived: no transform, so the text is painted in the page itself (crisp), not on a scaled or offset layer */
.flow .sl.sl-in { transform: none; }
.flow.init .sl { transition: none; }

/* the thread between chapters */
/* a section that a menu link jumps to keeps its chapter label (the end of the bridge above it) in view */
.flow main > section { scroll-margin-top: 44px; }
.bridge { position: relative; height: 132px; }
.bridge > .wrap { height: 100%; }
.bridge .th { position: relative; height: 100%; }
.bridge .ln { position: absolute; left: 11px; top: 0; bottom: 34px; width: 2px; background: var(--line); border-radius: 1px; overflow: hidden; }
.bridge .ln::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); background: var(--teal); }
.bridge .m3 { position: absolute; left: 0; bottom: 0; display: grid; gap: 3px; }
.bridge .m3 b { display: block; height: 8px; border-radius: 3px; transform-origin: left; transform: scaleX(.25); opacity: .35; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.bridge .m3 b:nth-child(1) { width: 24px; background: var(--sand); }
.bridge .m3 b:nth-child(2) { width: 18px; margin-left: 6px; background: var(--brown); transition-delay: .08s; }
.bridge .m3 b:nth-child(3) { width: 14px; margin-left: 2px; background: var(--teal); transition-delay: .16s; }
.bridge.done .m3 b { transform: none; opacity: 1; }
.bridge em { position: absolute; left: 40px; bottom: 2px; font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-style: normal; opacity: 0; transform: translateX(-8px); transition: opacity .6s ease .2s, transform .6s ease .2s; }
.bridge.done em { opacity: 1; transform: none; }
.bridge + section { padding-top: clamp(16px, 2vw, 32px); }

/* the rail: where you are in the story */
.flowrail { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 30; display: none; flex-direction: column; gap: 16px; }
@media (min-width: 1240px) { .flowrail { display: flex; } }
.flowrail a { display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; text-decoration: none; font: 700 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flowrail a i { display: block; width: 18px; height: 8px; border-radius: 3px; background: var(--line); transition: width .35s ease, background .35s ease; }
.flowrail a span { opacity: 0; transform: translateX(6px); transition: opacity .3s ease, transform .3s ease; white-space: nowrap; background: color-mix(in srgb, var(--paper) 88%, transparent); padding: 2px 6px; border-radius: 6px; }
.flowrail a[aria-current="true"] i { width: 34px; background: var(--c, var(--teal)); }
.flowrail a:hover span, .flowrail a:focus-visible span { opacity: 1; transform: none; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lead, .hero .actions { animation: none; }
  .flow .sl { opacity: 1; transform: none; transition: none; }
  .nav::after { transition: none; } body { transition: none; }
}

/* getting started: the three steps respond to the pointer */
.pt { isolation: isolate; }
.pt::after { content: ""; position: absolute; inset: -6px 8px -10px -14px; border-radius: 14px; background: var(--tint); opacity: 0; transition: opacity .3s ease; z-index: -1; }
.pt::before { transition: width .35s cubic-bezier(.2,.7,.2,1); }
.pt:hover::after { opacity: .8; }
.pt:nth-child(1):hover::before { width: 44px; } .pt:nth-child(2):hover::before { width: 54px; } .pt:nth-child(3):hover::before { width: 64px; }
.pt .n, .pt h3 { transition: color .25s ease; }
.pt:hover .n { color: var(--teal); }
.pt:hover h3 { color: var(--teal-deep); }
@media (max-width: 800px) { .pt::after { inset: -4px -8px 8px 40px; } }
/* Spacing and alignment helpers. Kept last in the global cascade so they win over component defaults, as the inline styles they replace did. */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; }
.mt-48 { margin-top: clamp(48px, 7vw, 96px); }
