:root {
  /* Graphite with a hint of green; glass panels (Alex's call, 24.10: an exception to "no glass") */
  color-scheme: dark;
  --bg: #121513;
  --paper: #121513;
  --card: rgba(255,255,255,.055);
  --glass: rgba(255,255,255,.055);
  --glass-solid: rgba(32,37,34,.92);
  --glass-line: rgba(255,255,255,.14);
  --glass-hi: rgba(255,255,255,.22);
  --ink: #eceeeb;
  --muted: #a4aca6;
  --line: rgba(255,255,255,.11);
  --accent: #8fd3ad;
  --accent-ink: #0b1510;
  --frame: rgba(255,255,255,.05);
  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: var(--ink); }
.top strong { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { padding: 48px 0 24px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h1 {
  font: 500 clamp(32px, 5.4vw, 56px)/1.08 var(--serif);
  letter-spacing: -0.01em; margin: 0 0 18px; max-width: 18ch;
}
.summary { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 0 0 24px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--card);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:hover { filter: brightness(0.96); }

/* Browser frame */
.shot { margin: 0; }
.frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--frame); position: relative; }
.frame::before {
  content: ""; display: block; height: 22px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 14px 11px, #c9c6be 4px, transparent 4.5px),
              radial-gradient(circle at 28px 11px, #c9c6be 4px, transparent 4.5px),
              radial-gradient(circle at 42px 11px, #c9c6be 4px, transparent 4.5px);
}
.frame.bare::before { display: none; }
.pics { position: relative; }
.pin {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 600 13px/26px var(--sans); text-align: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,.85);
}
figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; max-width: 70ch; }
figcaption b { color: var(--ink); font-weight: 600; }
.n {
  display: inline-block; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font: 600 11px/19px var(--sans); text-align: center; margin-right: 3px; vertical-align: 1px;
}

/* Facts */
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 32px 0 8px;
}
@media (min-width: 900px) { .facts { grid-template-columns: repeat(7, 1fr); } }
.fact { background: var(--card); padding: 14px 14px 16px; }
.fact dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.facts-note { font-size: 13px; color: var(--muted); margin: 0 0 8px; }

/* Sections */
section { padding: 40px 0; border-top: 1px solid var(--line); }
section.first { border-top: 0; }
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
}
h2 { font: 500 26px/1.2 var(--serif); margin: 0 0 16px; }
.body { max-width: 68ch; }
.body p { margin: 0 0 14px; }
.modules { list-style: none; padding: 0; margin: 0 0 8px; }
.modules li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.modules li:last-child { border-bottom: 0; }
.modules b { font-weight: 600; }
.gallery { display: grid; gap: 36px; margin-top: 28px; }
.decisions { counter-reset: d; list-style: none; padding: 0; margin: 0; }
.decisions li { counter-increment: d; position: relative; padding: 0 0 18px 40px; }
.decisions li::before {
  content: counter(d); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); font: 600 13px/24px var(--sans); text-align: center; color: var(--muted);
}

blockquote { margin: 0; padding: 0; }
blockquote p { font: 400 clamp(22px, 3vw, 30px)/1.35 var(--serif); margin: 0 0 16px; max-width: 34ch; }
blockquote cite { font-style: normal; color: var(--muted); font-size: 15px; }

.cta { text-align: left; padding: 56px 0 72px; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 18px; }

.foot { border-top: 1px solid var(--line); padding: 20px 0 40px; font-size: 13px; color: var(--muted); }
@media (max-width: 899px) { .fact:last-child { grid-column: span 2; } }

/* Case-study navigation: home link in the header, previous / all / next at the bottom */
.top a.brand { color: var(--muted); }
.top a.brand:hover strong { text-decoration: underline; }
.pager { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 8px 0 40px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr 1fr; } }
.pager a { background: var(--card); padding: 16px 18px; color: var(--ink); text-decoration: none; font: 500 18px/1.3 var(--serif); }
.pager a:hover { text-decoration: underline; }
.pager small { display: block; font: 400 13px var(--sans); color: var(--muted); margin-bottom: 4px; }
@media (min-width: 640px) { .pager .all { text-align: center; } .pager .next { text-align: right; } }

/* Screenshot zoom (assets/zoom.js) */
img.zoomable { cursor: zoom-in; }
dialog.zoom { max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; padding: 16px; border: 0; background: rgba(10, 11, 14, .92); box-sizing: border-box; display: grid; place-items: center; cursor: zoom-out; }
dialog.zoom:not([open]) { display: none; }
dialog.zoom::backdrop { background: transparent; }
dialog.zoom img { max-width: 100%; max-height: calc(100vh - 32px); width: auto; height: auto; border-radius: 6px; }
dialog.zoom button { position: fixed; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* Contact buttons */
.cta .buttons { margin-bottom: 0; }
.contact-h { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 36px 0 10px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 18px; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Floating contact pill (assets/contact.js), as on eliteflowai.co.uk */
.contact-pill { --pill-green: #178043; position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.contact-pill { --pill-green: #8fd3ad; }
.contact-pill-toggle { font: 600 14px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--pill-green); background: var(--card); border: 1.5px solid var(--pill-green); border-radius: 999px; padding: 12px 22px; cursor: pointer; transition: transform .15s; }
.contact-pill-toggle:hover, .contact-pill-toggle:focus-visible { transform: translateY(-2px); }
.contact-pill-menu { display: none; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.contact-pill.is-open .contact-pill-menu { display: flex; }
.contact-pill-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.contact-pill-menu a:hover, .contact-pill-menu a:focus-visible { background: var(--line); }
.contact-pill-menu svg { flex-shrink: 0; color: var(--pill-green); }
.foot { padding-bottom: 88px; }
.cta .promise { color: var(--muted); font-size: 17px; max-width: 52ch; margin: -6px 0 22px; }

/* WhatsApp review screenshot (Agency OS) */
.proof { margin: 0; max-width: 420px; }
.proof img { width: 100%; height: auto; display: block; border-radius: 14px; }
.proof figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.proof .ref { margin: 6px 0 0; font-size: 15px; }
.pull { font: italic 400 18px/1.45 var(--serif); color: var(--ink); margin: 0 0 24px; }
.card .pull { font-size: 16px; color: var(--ink); margin: 6px 0 8px; }

/* Glass: soft light behind, frosted panels in front. App screenshots stay sharp (they sit on top, opaque). */
body { background: var(--bg); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 10% 6%, rgba(46,110,76,.22), transparent 62%),
    radial-gradient(800px 700px at 92% 32%, rgba(24,84,98,.18), transparent 62%),
    radial-gradient(900px 700px at 28% 88%, rgba(52,104,64,.16), transparent 62%);
}
.top, .card, .steps, .about, .cta, .facts, .pager {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 12px 40px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
.top { position: sticky; top: 12px; z-index: 40; margin-top: 12px; padding: 14px 20px; border-radius: 999px; }
.hero { padding-top: 56px; }
.card { padding: 14px 14px 18px; }
.card .frame { border-radius: 14px; }
.card h3, .card p { padding: 0 6px; }
.steps { gap: 0; }
.step { background: transparent; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
@media (max-width: 819px) { .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }
.about, .cta { padding: 28px 22px; margin-top: 40px; }
@media (min-width: 720px) { .about, .cta { padding: 40px; } }
.about-photo img { border-radius: 16px; }
.facts { overflow: hidden; }
.pager { overflow: hidden; }
.btn { border-radius: 999px; }
.contact-pill-toggle { background: var(--glass-solid); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--glass-hi); }
/* Phones: blur only on the sticky bar; the panels use a near-identical solid tint so scrolling stays smooth. */
@media (max-width: 719px) {
  .card, .steps, .about, .cta, .facts, .pager { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.045); box-shadow: inset 0 1px 0 var(--glass-hi); }
  .top { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(24,28,26,.72); }
}
[id] { scroll-margin-top: 96px; }
/* Contact menu: liquid glass with the same mid-grey look on dark and on white (Alex, 24.10).
   contrast() pulls whatever is behind toward mid-grey, so the panel reads the same over any background. */
.contact-pill-menu { background: rgba(72,78,74,.55); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 16px 40px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(24px) saturate(140%) contrast(.35) brightness(.8); backdrop-filter: blur(24px) saturate(140%) contrast(.35) brightness(.8); border-radius: 18px; }
.contact-pill-menu a { font-weight: 600; }
.contact-pill-menu a:hover, .contact-pill-menu a:focus-visible { background: rgba(255,255,255,.10); }
.contact-pill-toggle { background: rgba(72,78,74,.55); border-color: rgba(143,211,173,.85); -webkit-backdrop-filter: blur(20px) saturate(140%) contrast(.35) brightness(.8); backdrop-filter: blur(20px) saturate(140%) contrast(.35) brightness(.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 28px rgba(0,0,0,.35); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
