/* TimeSpark marketing site. Colours and shapes taken from the app. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --violet: #6D28D9;
  --violet-deep: #5B21B6;
  --violet-deepest: #4C1D95;
  --violet-soft: #EDE7FB;
  --grad: linear-gradient(135deg, #6D28D9 0%, #5B21B6 58%, #4C1D95 100%);
  --lilac: #F5F3FB;
  --ink: #14111F;
  --muted: #56526B;
  --line: #E4DEF1;
  --white: #FFFFFF;

  --green: #15803D;
  --green-bg: #DCF5E4;
  --amber: #B45309;
  --amber-bg: #FDEFD3;
  --blue: #1D4ED8;
  --blue-bg: #DDE7FD;
  --red: #C81E1E;
  --red-bg: #FDE1E1;

  --shadow: 0 1px 2px rgba(76, 29, 149, .06), 0 18px 40px -18px rgba(76, 29, 149, .28);
  --shadow-lg: 0 2px 4px rgba(46, 16, 101, .10), 0 40px 80px -30px rgba(46, 16, 101, .55);

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--lilac);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--violet); text-underline-offset: .18em; }
a:hover { color: var(--violet-deepest); }

:focus-visible { outline: 3px solid #A78BFA; outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 84%;
  font-weight: 760;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .92; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: .96; }
h3 { font-size: 1.45rem; line-height: 1.1; letter-spacing: -.015em; }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 1rem/1 var(--body);
  padding: .95em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: var(--white); box-shadow: 0 8px 20px -8px rgba(109, 40, 217, .7); }
.btn-primary:hover { background: var(--violet-deep); color: var(--white); }
.btn-light { background: var(--white); color: var(--violet-deepest); box-shadow: 0 10px 24px -10px rgba(20, 8, 50, .6); }
.btn-light:hover { background: #F3EEFF; color: var(--violet-deepest); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); background: transparent; }
.btn-ghost:hover { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-outline { color: var(--violet-deep); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--violet); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  color: var(--white);
  background: transparent;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35); }
.site-header.is-solid .brand img, .site-footer .brand img { box-shadow: none; }
.brand span { font-family: var(--display); font-weight: 760; font-size: 1.4rem; letter-spacing: -.02em; }
.brand:hover { color: inherit; }
.nav-links { display: flex; gap: 24px; margin: 0 0 0 12px; padding: 0; list-style: none; }
.nav-links a { color: inherit; text-decoration: none; font-weight: 500; opacity: .88; }
.nav-links a:hover { opacity: 1; color: inherit; text-decoration: underline; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-signin { color: inherit; text-decoration: none; font-weight: 500; }
.nav-signin:hover { color: inherit; text-decoration: underline; }
.site-header .btn { padding: .75em 1.15em; }
.site-header:not(.is-solid) .btn-primary { background: var(--white); color: var(--violet-deepest); box-shadow: none; }
.menu-toggle { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-signin { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .14); color: inherit;
  }
  .site-header.is-solid .menu-toggle { background: var(--violet-soft); }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 12px; right: 12px; top: 72px; margin: 0;
    background: var(--white); color: var(--ink); border-radius: 20px; padding: 8px; box-shadow: var(--shadow-lg);
  }
  .site-header.menu-open .nav-links a { display: block; padding: 14px 16px; border-radius: 12px; opacity: 1; }
  .site-header.menu-open .nav-links a:hover { background: var(--lilac); text-decoration: none; }
}
@media (max-width: 420px) { .site-header .nav-end .btn { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: -76px;
  padding: 140px 0 120px;
  background: var(--grad);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(167, 139, 250, .35), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(30, 10, 70, .45), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { color: rgba(255, 255, 255, .86); margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-for { margin: 36px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .7); max-width: 30em; }

.stage { position: relative; padding-bottom: 64px; }

/* The Today board */
.board {
  background: var(--white); color: var(--ink);
  border-radius: 24px; padding: 22px 22px 52px;
  box-shadow: var(--shadow-lg);
  margin-left: 36px;
}
.board-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.board-title { font-family: var(--display); font-weight: 760; font-size: 1.5rem; letter-spacing: -.02em; }
.board-date { color: var(--muted); font-size: .9rem; margin-left: 8px; font-family: var(--body); font-weight: 500; letter-spacing: 0; }
.board-clock { font-family: var(--display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--violet-deep); }
.board-clock::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 4px var(--green-bg); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { border-radius: 16px; padding: 12px 14px 14px; background: var(--lilac); }
.tile b { display: block; font-family: var(--display); font-weight: 760; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile span { display: block; margin-top: 6px; font-size: .82rem; font-weight: 600; line-height: 1.2; }
.tile.in { background: var(--green-bg); } .tile.in b, .tile.in span { color: var(--green); }
.tile.late { background: var(--amber-bg); } .tile.late b, .tile.late span { color: var(--amber); }
.tile.off { background: var(--blue-bg); } .tile.off b, .tile.off span { color: var(--blue); }
.tile.missing { background: var(--red-bg); } .tile.missing b, .tile.missing span { color: var(--red); }
.tile.bump b { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }

.feed-head { display: flex; justify-content: space-between; margin: 18px 2px 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0 96px 0 0; min-height: 232px; }
.feed li {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 6px; border-top: 1px solid var(--line);
}
.feed li:first-child { border-top: 0; }
.feed li.new { animation: slidein .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px); background: var(--violet-soft); } }
.feed .who { font-weight: 600; line-height: 1.2; }
.feed .where { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }
.feed .t { font-variant-numeric: tabular-nums; font-weight: 600; }
.feed .t.is-late { color: var(--amber); }
.feed-empty { color: var(--muted); font-size: .95rem; padding: 18px 6px; }

.face { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--violet-soft); flex: none; }
.face svg { width: 100%; height: 100%; }

/* Ring and Needs you on the desktop board */
.board-main { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: start; }
.ring.ring-lg { width: 196px; height: 196px; margin: 4px auto 18px; }
.ring.ring-lg .ring-label b { font-size: 1.95rem; }
.ring.ring-lg .ring-label span { font-size: .9rem; }
.ring .seg-ok { stroke: #16A34A; }
.ring .seg-late { stroke: #E08A0B; }
.ring .seg-missing { stroke: #DC2626; }
.ring .seg-arc { transition: stroke-dasharray .45s ease, stroke-dashoffset .45s ease; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legend li { display: grid; grid-template-columns: 12px 30px 1fr; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; grid-column: 1; grid-row: 1; }
.legend b { grid-column: 2; grid-row: 1; font-family: var(--display); font-weight: 760; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.legend .ok::before { background: #16A34A; }
.legend .late::before { background: #E08A0B; }
.legend .missing::before { background: #DC2626; }
.legend .off::before { background: var(--blue); }
.legend li.bump b { animation: bump .35s ease; }
.board .board-needs { background: var(--lilac); padding: 14px 16px; border-radius: 18px; }
.board-needs .needs-title { font-size: .95rem; margin-bottom: 8px; }
.board .board-needs ul { height: auto; min-height: 232px; overflow: visible; }
.board-needs li { background: var(--white); border-radius: 14px; padding: 9px 12px; margin-bottom: 8px; font-size: .9rem; gap: 12px; }
.board-needs li::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #B9AEDB; border-top: 2px solid #B9AEDB; transform: rotate(45deg); }
.board-needs .face { width: 38px; height: 38px; }
.board-needs .face::after { width: 11px; height: 11px; }
.board-needs li small { font-size: .82rem; }
.board-needs li.missing small { color: var(--red); }
.board-needs li.late small { color: var(--amber); }
.board-needs .needs-ok { background: transparent; padding: 6px 0; font-size: .9rem; }
.board-needs .needs-ok::after { display: none; }

/* The latest clocking, with its photo */
.toast {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  background: var(--white); color: var(--ink); border-radius: 20px; padding: 12px 18px 12px 12px;
  box-shadow: var(--shadow-lg); min-width: 268px;
}
.toast .face { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 0 0 3px #16A34A; }
.toast .face svg { border-radius: 14px; }
.toast.is-late .face { box-shadow: 0 0 0 3px #E08A0B; }
.toast small { display: block; font-size: .78rem; font-weight: 700; color: var(--green); }
.toast.is-late small { color: var(--amber); }
.toast b { display: block; font-size: 1.05rem; line-height: 1.2; }
.toast span span { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.toast.pop { animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: translateY(10px) scale(.94); opacity: .2; } }
.toast.is-empty { visibility: hidden; }
.hero-phone { display: none; }

/* Phone */
.phone {
  position: absolute; right: 0; bottom: 0; width: 220px;
  background: #1B1530; border-radius: 38px; padding: 9px;
  box-shadow: var(--shadow-lg);
}
.phone-screen { background: var(--lilac); border-radius: 30px; overflow: hidden; color: var(--ink); padding: 26px 14px 16px; position: relative; }
.phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: #1B1530; border-radius: 999px; }
.phone-title { font-family: var(--display); font-weight: 760; font-size: 1.15rem; letter-spacing: -.02em; margin: 6px 2px 8px; }
.ring { position: relative; width: 132px; height: 132px; margin: 0 auto 10px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: #E3DBF6; }
.ring .bar { stroke: var(--violet); transition: stroke-dashoffset .5s ease; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-family: var(--display); font-size: 1.4rem; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.needs { background: var(--white); border-radius: 18px; padding: 10px 12px; }
.needs-title { font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.needs ul { list-style: none; margin: 0; padding: 0; height: 164px; overflow: hidden; }
.needs li { display: flex; align-items: center; gap: 8px; font-size: .8rem; padding: 4px 0; }
.needs .face { width: 28px; height: 28px; position: relative; overflow: visible; }
.needs .face svg { border-radius: 50%; }
.needs .face::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--white); }
.needs li.missing .face::after { background: var(--red); }
.needs li.late .face::after { background: var(--amber); }
.needs li b { font-weight: 600; display: block; line-height: 1.15; }
.needs li small { color: var(--muted); }
.needs-ok { font-size: .8rem; color: var(--muted); padding: 6px 0; }

.replay {
  position: absolute; right: 0; bottom: 18px;
  background: transparent; border: 0; color: rgba(255, 255, 255, .8); font: 500 .9rem var(--body);
  cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: .2em;
}
.replay:hover { color: var(--white); }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 680px; }
}
@media (max-width: 640px) {
  .hero { padding: 118px 0 72px; }
  .board, .toast { display: none; }
  .hero-phone { display: block; }
  .stage { padding-bottom: 44px; }
  .replay { bottom: 0; }
  .phone { position: relative; margin: 8px auto 0; width: 260px; }
  .replay { left: 50%; transform: translateX(-50%); white-space: nowrap; }
}

/* ---------- Sections ---------- */

.band { padding: clamp(80px, 11vw, 140px) 0; }
.band-white { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin-bottom: 20px; }
.section-head p { margin: 0; }

/* Problems */
.problems { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.problems-head { position: sticky; top: 120px; }
.problems-head h2 { margin-bottom: 20px; }
.problem-list { list-style: none; margin: 0; padding: 0; }
.problem-list li { padding: 28px 0; border-top: 1px solid var(--line); }
.problem-list li:last-child { border-bottom: 1px solid var(--line); }
.problem-list q {
  display: block; quotes: "“" "”";
  font-family: var(--display); font-stretch: 88%; font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 10px;
}
.problem-list p { margin: 0; color: var(--muted); max-width: 36em; }
@media (max-width: 860px) {
  .problems { grid-template-columns: minmax(0, 1fr); }
  .problems-head { position: static; }
}

/* Workings */
.workings-panel { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 40px); }
.wp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 28px; }
.wp-head .face { width: 52px; height: 52px; }
.wp-name { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.wp-sub { color: var(--muted); font-size: .95rem; }
.wp-flag { margin-left: auto; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--green-bg); color: var(--green); }

.timeline-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px 8px; }
.timeline { position: relative; min-width: 760px; height: 168px; }
.tl-axis { position: absolute; left: 0; right: 0; top: 124px; height: 1px; background: var(--line); }
.tl-hour { position: absolute; top: 132px; font-size: .78rem; color: var(--muted); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tl-hour::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 6px; background: #CFC6E6; }
.tl-shift { position: absolute; top: 96px; height: 28px; border-radius: 8px 8px 0 0; background: var(--violet-soft); }
.tl-shift span { position: absolute; left: 10px; top: 5px; font-size: .78rem; font-weight: 600; color: var(--violet-deep); white-space: nowrap; }
.tl-break { position: absolute; top: 96px; height: 28px; background: repeating-linear-gradient(135deg, #DCD2F5 0 4px, transparent 4px 8px); }
.tl-mark { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: 74px; }
.tl-mark .face { width: 46px; height: 46px; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--violet); }
.tl-mark.ignored .face { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px #D5CEE6; filter: grayscale(.8); opacity: .75; }
.tl-mark b { margin-top: 8px; font-variant-numeric: tabular-nums; font-size: .95rem; }
.tl-mark.ignored b { color: var(--muted); font-weight: 500; }
.tl-mark::after { content: ""; position: absolute; top: 76px; left: 50%; width: 2px; height: 48px; background: var(--violet); }
.tl-mark.ignored::after { background: #D5CEE6; }

.wp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.wp-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--violet); }
.wp-legend span.ign::before { background: #D5CEE6; }

.sum {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em;
  font-family: var(--display); font-weight: 760; font-stretch: 84%;
  font-size: clamp(2.4rem, 6.4vw, 5.2rem); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin: 36px 0 0; padding-top: 32px; border-top: 1px solid var(--line);
}
.sum .op { color: #B9AEDB; font-weight: 500; }
.sum small { font-family: var(--body); font-size: .28em; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: -.1em; }
.sum .total { color: var(--violet); }

.never { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(72px, 9vw, 112px); }
.never h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; font-stretch: 84%; letter-spacing: -.025em; margin-bottom: 18px; }
.never p { margin: 0 0 14px; max-width: 32em; }
.records { position: relative; }
.record { background: var(--white); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.record + .record { margin-top: 14px; }
.record-orig { background: transparent; box-shadow: inset 0 0 0 1.5px dashed var(--line); border: 1.5px dashed #CFC6E6; }
.record-top { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.record-main { font-weight: 600; }
.record-main .tnum { font-weight: 700; }
.record-meta { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.record-meta b { color: var(--ink); font-weight: 600; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag-violet { background: var(--violet-soft); color: var(--violet-deep); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.tag-grey { background: #EFEDF4; color: var(--muted); }
.record-pending { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.record-pending .btns { display: flex; gap: 8px; }
.mini-btn { font: 600 .85rem var(--body); padding: 8px 14px; border-radius: 999px; border: 0; background: var(--violet); color: var(--white); cursor: pointer; }
.mini-btn.quiet { background: var(--lilac); color: var(--ink); }
.mini-btn:disabled { cursor: default; }
@media (max-width: 860px) { .never { grid-template-columns: minmax(0, 1fr); } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0 0 48px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--violet); color: var(--white);
  font-family: var(--display); font-weight: 760; font-size: 1.3rem; margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.flow { background: var(--white); box-shadow: var(--shadow); border-radius: 24px; padding: clamp(20px, 4vw, 44px); }
.flow-row { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0; }
.node { width: 168px; text-align: center; }
.node-icon { width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 24px; background: var(--white); display: grid; place-content: center; box-shadow: var(--shadow); position: relative; }
.node-icon svg { width: 52px; height: 52px; }
.node b { display: block; font-size: 1rem; line-height: 1.2; }
.node small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; margin-top: 4px; }
.buffer {
  position: absolute; top: -10px; right: -12px; min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 999px; background: var(--amber); color: var(--white);
  font-weight: 700; font-size: .9rem; display: grid; place-content: center; font-variant-numeric: tabular-nums;
  transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.buffer.show { transform: scale(1); }
.link { position: relative; height: 4px; margin: 0 6px 56px; border-radius: 4px; background: #D9CFF3; }
.link .dot { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(109, 40, 217, .18); animation: travel 1.3s linear forwards; }
@keyframes travel { to { left: 100%; } }
.link.down { background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 16px); }
.link.down::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 7l8 8M15 7l-8 8' stroke='%23C81E1E' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/22px no-repeat;
  box-shadow: 0 0 0 2px var(--red);
}
.flow-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.flow-status { margin: 0; font-weight: 500; }
.flow-status b { font-variant-numeric: tabular-nums; }
.flow-foot .btn { margin-left: auto; }
@media (max-width: 760px) {
  .flow-row { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .link { width: 4px; height: 56px; margin: 10px 0; }
  .link .dot { top: 0; left: 50%; animation-name: travel-down; }
  @keyframes travel-down { to { top: 100%; } }
  .link.down { background: repeating-linear-gradient(180deg, var(--red) 0 8px, transparent 8px 16px); }
  .flow-foot .btn { margin-left: 0; }
}

.it-line { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; }
.it-line p:first-child {
  margin: 0; font-family: var(--display); font-weight: 760; font-stretch: 84%;
  font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.025em;
}
.it-line p:last-child { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .it-line { grid-template-columns: minmax(0, 1fr); } }

/* Shifts */
.shifts-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.shift-points { list-style: none; margin: 28px 0 0; padding: 0; }
.shift-points li { padding: 14px 0; border-top: 1px solid var(--line); }
.shift-points b { display: block; }
.shift-points span { color: var(--muted); font-size: .95rem; }
.rota-card { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); }
.rota-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.rota-card-head b { font-family: var(--display); font-size: 1.35rem; font-weight: 760; letter-spacing: -.02em; }
.rota-card-head span { color: var(--muted); font-size: .9rem; }
.rota-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px 6px; }
.rota { min-width: 600px; }
.rota-days, .rota-row { display: grid; grid-template-columns: 136px 1fr; align-items: center; }
.rota-days .cells { display: grid; grid-template-columns: repeat(14, 1fr); }
.rota-days .cells span { font-size: .75rem; color: var(--muted); text-align: center; line-height: 1.25; padding-bottom: 8px; }
.rota-days .cells span b { display: block; color: var(--ink); font-size: .85rem; font-variant-numeric: tabular-nums; }
.rota-days .cells span.we { color: #9A93B4; }
.rota-row { padding: 10px 0; border-top: 1px solid var(--line); }
.rota-who { font-size: .9rem; line-height: 1.25; padding-right: 10px; }
.rota-who b { display: block; }
.rota-who small { color: var(--muted); }
.track {
  position: relative; overflow: hidden; height: 34px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, var(--lilac) 0 calc(100% / 14 - 2px), #fff calc(100% / 14 - 2px) calc(100% / 14));
}
.seg { position: absolute; top: 5px; bottom: 5px; border-radius: 6px; background: var(--violet); }
.seg.night { background: var(--violet-deepest); }
.seg.leave { background: var(--blue); min-width: 30px; z-index: 1; }
.seg.leave::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-content: center; color: var(--white); font-size: .72rem; font-weight: 700; }
.rota-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: .85rem; color: var(--muted); }
.rota-key span::before { content: ""; display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; background: var(--violet); }
.rota-key .k-night::before { background: var(--violet-deepest); }
.rota-key .k-leave::before { background: var(--blue); }
@media (max-width: 900px) { .shifts-grid { grid-template-columns: minmax(0, 1fr); } }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.role { padding: 28px 24px 8px 0; }
.role + .role { padding-left: 24px; border-left: 1px solid var(--line); }
.role h3 { margin-bottom: 18px; }
.role dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.role dd { margin: 2px 0 16px; }
.role dd.worry { font-family: var(--display); font-weight: 650; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.01em; }
.industries { margin: 48px 0 0; color: var(--muted); max-width: 52em; }
.industries b { color: var(--ink); }
@media (max-width: 980px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role:nth-child(3) { padding-left: 0; border-left: 0; }
  .role:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role + .role { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Phone section */
.pocket { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.pocket-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.pocket-list b { display: block; margin-bottom: 2px; }
.pocket-list span { color: var(--muted); font-size: .95rem; }
.pocket-visual { display: flex; justify-content: center; gap: 18px; align-items: flex-end; }
.pocket-visual .phone { position: relative; width: 250px; right: auto; bottom: auto; }
.balance { background: var(--white); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.balance-top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 600; }
.balance-num { font-family: var(--display); font-weight: 760; font-size: 2.4rem; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.balance-num small { font-size: .4em; color: var(--muted); font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.balance-bar { height: 8px; border-radius: 8px; background: var(--lilac); overflow: hidden; display: flex; margin-top: 8px; }
.balance-bar i { display: block; height: 100%; }
.shift-next { background: var(--white); border-radius: 18px; padding: 12px 14px; font-size: .82rem; }
.shift-next + .shift-next { margin-top: 8px; }
.shift-next b { display: block; font-size: .9rem; }
.shift-next span { color: var(--muted); }
.phone-btn { display: block; margin-top: 10px; text-align: center; padding: 11px; border-radius: 999px; background: var(--violet); color: var(--white); font-weight: 600; font-size: .85rem; }
@media (max-width: 900px) { .pocket { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .pocket-list { grid-template-columns: minmax(0, 1fr); } }

/* Closing CTA */
.closing { background: var(--grad); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 90% 10%, rgba(167, 139, 250, .35), transparent 70%); }
.closing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.closing h2 { margin-bottom: 20px; }
.closing p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 34em; }
.demo-steps { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.demo-steps li { counter-increment: d; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .9); }
.demo-steps li::before { content: counter(d); font-family: var(--display); font-weight: 700; color: #C4B5FD; font-variant-numeric: tabular-nums; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 860px) { .closing-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: #120D22; color: rgba(255, 255, 255, .72); padding: 56px 0 40px; font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer .brand { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-small { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* 404 */
.lost { min-height: 72vh; display: grid; place-content: center; text-align: left; }
.lost h1 { margin-bottom: 20px; color: var(--ink); }
.lost p { margin: 0 0 28px; color: var(--muted); max-width: 30em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ======================= Inner pages ======================= */

.nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }

.page-hero { padding: 150px 0 88px; }
.page-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); max-width: 13em; margin-bottom: 24px; }
.page-hero .lede { margin: 0; }
@media (max-width: 640px) { .page-hero { padding: 116px 0 60px; } }

/* A heading on the left, content on the right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split + .split { margin-top: clamp(72px, 9vw, 112px); }
.split-head { position: sticky; top: 112px; }
.split-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 16px; }
.split-head p { margin: 0; color: var(--muted); max-width: 28em; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-head { position: static; }
}

/* Point lists: a bold line and a plain explanation */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.points li { padding: 20px 0; border-top: 1px solid var(--line); }
.points b { display: block; font-size: 1.08rem; line-height: 1.3; margin-bottom: 4px; }
.points span { color: var(--muted); }
.points.single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 620px) { .points { grid-template-columns: minmax(0, 1fr); } }

.note { margin: 28px 0 0; padding: 18px 22px; border-radius: 18px; background: var(--violet-soft); color: var(--violet-deepest); }
.note b { font-weight: 700; }

.more { display: inline-block; margin-top: 24px; font-weight: 600; }

/* Questions and answers */
.qa { margin: 0; }
.qa dt { font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.015em; padding-top: 24px; border-top: 1px solid var(--line); }
.qa dd { margin: 8px 0 24px; color: var(--muted); max-width: 38em; }
.qa dd:last-child { margin-bottom: 0; }

/* Features page: contents list beside the groups */
.features-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 112px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--violet-deep); border-left-color: var(--violet); }
.feature-group { scroll-margin-top: 100px; }
.feature-group + .feature-group { margin-top: clamp(64px, 8vw, 96px); }
.feature-group h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 12px; }
.feature-group > p { margin: 0 0 20px; color: var(--muted); max-width: 36em; font-size: 1.1rem; }
@media (max-width: 900px) {
  .features-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { margin: 0; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font-size: .92rem; }
  .toc a.is-current { background: var(--violet); color: var(--white); }
}

/* Who it's for: one block per industry */
.industry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.industry:first-child { border-top: 0; padding-top: 0; }
.industry h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 20px; }
.pains { list-style: none; margin: 0; padding: 0; }
.pains li { font-family: var(--display); font-weight: 650; font-stretch: 90%; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; padding: 10px 0 10px 26px; position: relative; }
.pains li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
@media (max-width: 860px) { .industry { grid-template-columns: minmax(0, 1fr); } }

/* Hardware */
.terminal-figure { margin: 0; background: var(--grad); border-radius: 24px; padding: clamp(32px, 6vw, 64px); display: grid; place-items: center; min-height: 420px; position: relative; overflow: hidden; }
.terminal-figure svg { width: min(220px, 60%); height: auto; filter: drop-shadow(0 30px 40px rgba(20, 8, 50, .45)); }
.terminal-figure figcaption { position: absolute; left: 24px; bottom: 20px; color: rgba(255, 255, 255, .75); font-size: .85rem; }
.spec { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 28px; }
.spec dt, .spec dd { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.spec dt { font-weight: 600; }
.spec dd { color: var(--muted); }
@media (max-width: 520px) {
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec dd { border-top: 0; padding-top: 0; }
}

.needs-list { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.needs-list li { background: var(--white); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.needs-list svg { width: 44px; height: 44px; margin-bottom: 14px; }
.needs-list b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.needs-list span { color: var(--muted); }
@media (max-width: 860px) { .needs-list { grid-template-columns: minmax(0, 1fr); } }

/* Security: plain rows */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 48px; padding: 26px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--display); font-weight: 700; font-stretch: 88%; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.1; letter-spacing: -.015em; }
.facts span { color: var(--muted); }
@media (max-width: 760px) { .facts li { grid-template-columns: minmax(0, 1fr); } }

/* ======================= Addendum 1 ======================= */

/* Wallchart: today, sickness, and what actually happened */
.today-col { position: absolute; top: 0; bottom: 0; background: rgba(109, 40, 217, .10); box-shadow: inset 0 0 0 1.5px rgba(109, 40, 217, .35); border-radius: 6px; }
.rota-days .cells span.today b { display: inline-block; min-width: 24px; padding: 1px 6px; border-radius: 999px; background: var(--violet); color: var(--white); }
.seg.sick { background: var(--red); min-width: 30px; z-index: 1; }
.seg.sick::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-content: center; color: var(--white); font-size: .72rem; font-weight: 700; }
.mark { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; z-index: 2; box-shadow: 0 0 0 2px var(--white); }
.mark.in { background: #16A34A; }
.mark.amber { background: #E08A0B; }
.mark.never { background: var(--white); box-shadow: inset 0 0 0 2.5px var(--red), 0 0 0 2px var(--white); }
.rota-key .k-sick::before { background: var(--red); }
.rota-key .k-dot::before { width: 10px; height: 10px; border-radius: 50%; }
.rota-key .k-in::before { background: #16A34A; }
.rota-key .k-amber::before { background: #E08A0B; }
.rota-key .k-never::before { background: var(--white); box-shadow: inset 0 0 0 2px var(--red); }

/* Teams */
.teams { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.teams h2 { margin-bottom: 20px; }
.teams .lede { margin: 0 0 20px; }
.teams-visual { position: relative; }
.scope-card { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 20px 20px 44px; margin-right: 48px; }
.scope-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.scope-head .face { width: 46px; height: 46px; }
.scope-head b { display: block; }
.scope-head small { color: var(--muted); }
.scope-list { list-style: none; margin: 0; padding: 0; }
.scope-list li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.scope-list li:first-child { border-top: 0; }
.scope-list small { color: var(--muted); font-size: .85rem; }
.faces { display: flex; align-items: center; }
.faces .face { width: 30px; height: 30px; box-shadow: 0 0 0 2px var(--white); }
.faces .face + .face { margin-left: -8px; }
.more-faces { margin-left: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.scope-list .theirs { opacity: .55; }
.scope-list .theirs b { color: var(--muted); }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.lock::before { content: ""; width: 12px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M3 6V4.5a3 3 0 0 1 6 0V6' fill='none' stroke='%2356526B' stroke-width='1.6'/%3E%3Crect x='1' y='6' width='10' height='7.5' rx='2' fill='%2356526B'/%3E%3C/svg%3E") center/contain no-repeat; }
.booking-card {
  position: relative; margin: -28px 0 0 auto; width: min(340px, 92%);
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 16px 18px;
}
.booking-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .85rem; color: var(--muted); }
.booking-top b { color: var(--ink); font-size: 1rem; }
.booking-dates { display: flex; justify-content: space-between; margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--lilac); font-weight: 600; font-size: .92rem; }
.warn { padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--amber-bg); color: #7A3A06; font-size: .88rem; line-height: 1.4; border-left: 4px solid #E08A0B; }
.warn b { display: block; }
.booking-btns { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 960px) {
  .teams { grid-template-columns: minmax(0, 1fr); }
  .teams-visual { max-width: 520px; }
}
@media (max-width: 520px) {
  .scope-card { margin-right: 0; }
  .booking-card { width: auto; margin: -24px 10px 0; }
  .scope-list li { grid-template-columns: 80px 1fr; }
  .scope-list small { grid-column: 2; }
}

/* Who's on a terminal */
.terminal-page { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); }
.tp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.tp-head b { font-family: var(--display); font-size: 1.4rem; font-weight: 760; letter-spacing: -.02em; }
.tp-head small { color: var(--muted); }
.tp-head .btn { margin-left: auto; padding: .65em 1.1em; font-size: .9rem; }
.who-on { list-style: none; margin: 0; padding: 0; }
.who-on li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.who-on .face { width: 40px; height: 40px; grid-row: span 2; }
.who-on .unknown { width: 40px; height: 40px; grid-row: span 2; border-radius: 50%; background: #EFEDF4; display: grid; place-content: center; color: var(--muted); font-weight: 700; }
.who-on b { font-weight: 600; }
.who-on .id { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; margin-left: 6px; }
.who-on .by { display: flex; gap: 6px; justify-self: end; }
.who-on .by span { font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--lilac); color: var(--violet-deep); }
.who-on .by span.admin { background: #14111F; color: var(--white); }
.who-on .why { grid-column: 2 / -1; font-size: .88rem; }
.who-on .why.ok { color: var(--green); }
.who-on .why.amber { color: var(--amber); }
.who-on .why.red { color: var(--red); }
@media (max-width: 520px) {
  .who-on li { grid-template-columns: 40px minmax(0, 1fr); }
  .who-on .by { grid-column: 2; justify-self: start; }
}
