/* ============================================================================
   SITE LOOK "2027" — the staging homepage's look, as a theme layer for every other page (phases 1 and 2)
   ============================================================================
   STAGING ONLY. Base.astro links this file, and puts .look-27 on <html>, only when src/lib/staging-look.js says the
   build is staging; it ships from marketing/homepage/ to /_home/ with the homepage concept (scripts/
   apply-homepage-concept.mjs), so a production build never contains it. Every selector starts with html.look-27
   (api/tests/marketing-staging-look.test.js), so even if it loaded on a page without the class nothing would change.

   WHAT IT DOES. Restyles what pages share: tokens, fonts, type, links, buttons, cards, section grounds, tables,
   forms, prose, and the existing header and footer (same markup, same links, same menu behaviour). Pages are not
   rebuilt here; per-page leftovers are the PHASE 2 block at the end. No copy, link or number is added.

   HOW IT WINS. It is unlayered, so it outranks Tailwind's layers (base, components, utilities) whatever the
   specificity. Against the unlayered .v3 page styles it wins by specificity (html.look-27 .v3 ...). Most marketing
   pages paint with Tailwind arbitrary colours (text-[#292929], bg-[#fafafa], border-[#ececec]) rather than tokens, so
   those are matched by attribute selector and moved onto the homepage palette.

   Values are the homepage's (marketing/homepage/index.html :root and its "v4: 2027 layer"). Lime fills buttons only;
   orange marks waste and warnings only. No motion is added here.
   ============================================================================ */
@import url("site-look-tools.css");
@import url("site-look-sections.css");

/* Self-hosted variable fonts (latin subset), SIL Open Font License 1.1: Geist and Geist Mono by Vercel, Newsreader by
   Production Type. The same files the homepage loads. */
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url(/_home/fonts/geist-normal.woff2) format("woff2")}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url(/_home/fonts/geist-mono-normal.woff2) format("woff2")}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:200 800;font-display:swap;src:url(/_home/fonts/newsreader-normal.woff2) format("woff2")}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:200 800;font-display:swap;src:url(/_home/fonts/newsreader-italic.woff2) format("woff2")}

/* ── Tokens ──────────────────────────────────────────────────────────────────
   html.look-27 (0,1,1) outranks the :root (0,1,0) that Tailwind's @theme and Astro's <Font> write to, so every
   utility and component that reads these variables follows. */
html.look-27 {
  --l27-bg: #F3F4F2;
  --l27-white: #FFFFFF;
  --l27-panel: #F8F9FA;
  --l27-ink: #0E1012;
  --l27-ink2: #5A6168;
  --l27-ink3: #697077;
  --l27-line: rgba(15, 23, 42, .08);
  --l27-line2: rgba(15, 23, 42, .05);
  --l27-lime: #C8F000;
  --l27-lime-hover: #BEE600;
  --l27-lime-ink: #0E1200;
  --l27-orange-ink: #B3480E;
  --l27-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --l27-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --l27-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --l27-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 44px -26px rgba(15, 23, 42, .22);
  --l27-ease: cubic-bezier(.22, 1, .36, 1);

  --font-primary: var(--l27-sans);
  --font-serif: var(--l27-serif);
  --font-mono: var(--l27-mono);
  --color-body: var(--l27-bg);
  --color-text: var(--l27-ink);
  --color-text-dark: var(--l27-ink);
  --color-text-light: var(--l27-ink2);
  --color-gray: var(--l27-ink2);
  --color-border: #E3E6E8;
  color-scheme: light;
}

/* ── Page ground and body text ─────────────────────────────────────────────── */
html.look-27 body {
  background-color: var(--l27-bg);
  color: var(--l27-ink2);
  font-family: var(--l27-sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* The homepage's paper grain: a fixed, non-interactive layer at 4.5% under multiply. */
html.look-27 body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: .045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html.look-27 :is([class*="font-sans"], [class*="font-primary"]) { font-family: var(--l27-sans); }
html.look-27 :is(code, kbd, samp, pre, [class*="font-mono"]) { font-family: var(--l27-mono); }

/* Ink and muted text, from the Figma-era arbitrary colours to the homepage's two greys. */
html.look-27 :is([class~="text-[#292929]" i], [class~="text-[#0f1012]" i], [class~="text-[#1b1f1f]" i], [class~="text-[#161616]" i], [class~="text-stone-800"], [class~="text-stone-900"]) { color: var(--l27-ink); }
html.look-27 :is([class~="text-[#525252]" i], [class~="text-[#647070]" i], [class~="text-[#6e675c]" i], [class~="text-[#737373]" i], [class~="text-[#666]" i], [class~="text-[#666666]" i], [class~="text-[#545454]" i], [class~="text-[#555a54]" i], [class~="text-[#6b6b6b]" i], [class~="text-stone-600"], [class~="text-stone-500"]) { color: var(--l27-ink2); }
/* Captions: the homepage's --ink3, at the AA value (#697077, at least 4.55:1 on every ground the site uses). */
html.look-27 :is([class~="text-[#888]" i], [class~="text-[#888888]" i], [class~="text-[#999]" i], [class~="text-[#999999]" i], [class~="text-[#929292]" i], [class~="text-[#a3a3a3]" i]) { color: var(--l27-ink3); }
html.look-27 [class~="text-[#404040]" i] { color: #3F464C; }

/* ── Headings: the homepage's editorial serif ───────────────────────────────
   h1-h3 take Newsreader at a regular weight with tight tracking; h4-h6 stay in Geist at 500, as the homepage's card
   titles do. Sizes: h1 everywhere, and section h2s (the ones authored with a clamp() size), move to the homepage
   scale; every other heading keeps the size its page gave it. */
html.look-27 :is(h1, h2, h3) {
  font-family: var(--l27-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  color: var(--l27-ink);
  text-wrap: balance;
}
html.look-27 :is(h4, h5, h6) {
  font-family: var(--l27-sans);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--l27-ink);
}
html.look-27 h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
html.look-27 h2[class*="text-[clamp("] {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04;
}
html.look-27 :is(h1, h2, h3) :is(em, i, [class*="font-serif"]) {
  font-family: var(--l27-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}
/* The v3 pages set their own display metrics on unlayered .v3 selectors, up to (0,2,1); these sit above them. */
html.look-27 .v3 :is(h1, h2, h3) {
  font-family: var(--l27-serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--l27-ink);
}
html.look-27 .v3 h1,
html.look-27 .v3 .v3-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* Eyebrows: the short orange 20px label above a section heading becomes the homepage's quiet mono eyebrow. */
html.look-27 p:is([class*="text-[20px]"], [class*="text-[18px]"])[class~="text-[#b3480e]" i]:not(:has(*)) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--l27-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--l27-ink2);
}
html.look-27 p:is([class*="text-[20px]"], [class*="text-[18px]"])[class~="text-[#b3480e]" i]:not(:has(*))::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--l27-ink);
  flex: none;
}
html.look-27 p:is([class*="text-[20px]"], [class*="text-[18px]"])[class~="text-[#b3480e]" i]:not(:has(*))::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--l27-line);
  flex: none;
}

/* ── Links ─────────────────────────────────────────────────────────────────── */
html.look-27 :is(.content, .prose, .blog-prose) a:not([class*="bg-"]):not(.btn) {
  color: var(--l27-ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(14, 16, 18, .35);
  transition: text-decoration-color .2s ease;
}
html.look-27 :is(.content, .prose, .blog-prose) a:not([class*="bg-"]):not(.btn):hover { text-decoration-color: currentColor; }

/* ── Section grounds: grey and white alternate, as on the homepage ─────────── */
html.look-27 section:is([class~="bg-[#fafafa]" i], [class~="bg-[#f5f4f0]" i], [class~="bg-[#f7f7f7]" i], [class~="bg-[#f5f5f5]" i], [class~="bg-[#f7fee7]" i]) { background-color: var(--l27-bg); }
html.look-27 :not(section):is([class~="bg-[#fafafa]" i], [class~="bg-[#f5f4f0]" i], [class~="bg-[#f7f7f7]" i], [class~="bg-[#f5f5f5]" i]) { background-color: var(--l27-panel); }
/* The lime glow behind the old heroes: the homepage keeps lime for buttons only. */
html.look-27 [aria-hidden="true"][style*="rgba(222,244,122" i],
html.look-27 [aria-hidden="true"][style*="rgba(200,240,0" i] { display: none; }

/* Hairlines. */
html.look-27 :is([class~="border-[#ececec]" i], [class~="border-[#f0f0f0]" i], [class~="border-[#ececea]" i], [class~="border-[#e5e5e5]" i], [class~="border-[#ebebeb]" i], [class~="border-[#ebebe9]" i], [class~="border-[#f2f2f2]" i], [class~="border-[#f5f5f5]" i], [class~="border-[#f0f0ee]" i], [class~="border-[#e8e8e4]" i], [class~="border-[#eaeaea]" i], [class~="border-slate-100"], [class~="border-slate-200"]) { border-color: var(--l27-line); }

/* ── Cards: soft white panels with a shadow instead of a drawn border ──────── */
html.look-27 :is([class*="rounded-[20px]"], [class*="rounded-[24px]"], [class*="rounded-[28px]"])[class~="border"]:is([class~="bg-white"], [class~="bg-[#fff]" i], [class~="bg-[#ffffff]" i]) {
  border-color: transparent;
  border-radius: 20px;
  box-shadow: var(--l27-shadow), inset 0 0 0 1px var(--l27-line2);
}
html.look-27 a:is([class*="rounded-[20px]"], [class*="rounded-[24px]"])[class~="border"] { transition: box-shadow .35s ease, transform .45s var(--l27-ease); }
html.look-27 a:is([class*="rounded-[20px]"], [class*="rounded-[24px]"])[class~="border"]:hover {
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 52px -26px rgba(15, 23, 42, .32), inset 0 0 0 1px var(--l27-line);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html.look-27 a:is([class*="rounded-[20px]"], [class*="rounded-[24px]"])[class~="border"]:hover { transform: translateY(-3px); }
}

/* ── Buttons ───────────────────────────────────────────────────────────────
   Lime: the homepage's .btn (8px corners, 500 weight, dark ink). Dark and outline buttons take the same shape. */
html.look-27 :is(a, button):is([class~="bg-[#c8f000]" i], [class~="bg-primary"], .btn-primary) {
  background: var(--l27-lime);
  color: var(--l27-lime-ink);
  border-color: transparent;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background-color .2s ease, transform .2s ease;
}
html.look-27 :is(a, button):is([class~="bg-[#c8f000]" i], [class~="bg-primary"], .btn-primary):hover { background: var(--l27-lime-hover); color: var(--l27-lime-ink); }
html.look-27 :is(a, button):is([class~="bg-[#c8f000]" i], [class~="bg-primary"], .btn-primary):active { transform: translateY(1px); }
html.look-27 :is(a, button):is([class~="bg-[#292929]" i], [class~="bg-[#0f1012]" i], [class~="bg-dark"], .btn-dark)[class*="rounded-full"] {
  background: var(--l27-ink);
  border-radius: 8px;
  font-weight: 500;
}
html.look-27 :is(a, button)[class*="rounded-full"][class*="min-h-["]:not([data-submenu-toggle]) { border-radius: 8px; }
html.look-27 :is(a, button)[class*="rounded-full"][class~="border"]:is([class*="min-h-["], [class*="py-"]):not([class~="bg-[#c8f000]" i]) {
  border-radius: 8px;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--l27-line);
}
html.look-27 :is(a, button)[class*="rounded-full"][class~="border"]:is([class*="min-h-["], [class*="py-"]):not([class~="bg-[#c8f000]" i]):hover {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .2);
}

/* ── Tables ────────────────────────────────────────────────────────────────── */
html.look-27 table { font-variant-numeric: tabular-nums; }
html.look-27 thead th {
  font-family: var(--l27-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--l27-ink2);
}
html.look-27 :is(td, th) { border-color: var(--l27-line2); }
html.look-27 :is(thead, tr) { border-color: var(--l27-line); }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
html.look-27 :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  background-color: var(--l27-white);
  border-color: var(--l27-line);
  border-radius: 10px;
  color: var(--l27-ink);
  font-family: var(--l27-sans);
}
html.look-27 :is(input, select, textarea)::placeholder { color: #80878D; }

/* ── Prose (blog posts, legal pages, changelog) ───────────────────────────── */
html.look-27 :is(.prose, .content) {
  --tw-prose-body: #3F464C;
  --tw-prose-headings: var(--l27-ink);
  --tw-prose-lead: var(--l27-ink2);
  --tw-prose-links: var(--l27-ink);
  --tw-prose-bold: var(--l27-ink);
  --tw-prose-counters: var(--l27-ink2);
  --tw-prose-bullets: #A3AAB0;
  --tw-prose-hr: var(--l27-line);
  --tw-prose-quotes: var(--l27-ink);
  --tw-prose-quote-borders: var(--l27-line);
  --tw-prose-captions: var(--l27-ink2);
  --tw-prose-code: var(--l27-ink);
  --tw-prose-th-borders: var(--l27-line);
  --tw-prose-td-borders: var(--l27-line2);
}
html.look-27 :is(.prose, .content) :is(p, li) { color: #3F464C; }
html.look-27 :is(.prose, .content) h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; margin-top: 1.6em; }
html.look-27 :is(.prose, .content) h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.2; margin-top: 1.4em; }
html.look-27 :is(.prose, .content) :is(ul, ol) > li::marker { color: #A3AAB0; }
html.look-27 :is(.prose, .content) blockquote {
  border: 0;
  border-left: 2px solid var(--l27-ink);
  border-radius: 0;
  background: transparent;
  padding: 4px 0 4px 22px;
  font-family: var(--l27-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-style: italic;
  font-weight: 300;
  color: var(--l27-ink);
}
html.look-27 :is(.prose, .content) :not(pre) > code {
  background: var(--l27-panel);
  border-radius: 6px;
  padding: .12em .38em;
  box-shadow: inset 0 0 0 1px var(--l27-line2);
  font-size: .86em;
}
html.look-27 :is(.prose, .content) :not(pre) > code::before,
html.look-27 :is(.prose, .content) :not(pre) > code::after { content: none; }
html.look-27 :is(.prose, .content) pre {
  background: var(--l27-panel);
  color: var(--l27-ink);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--l27-line2);
}
/* Integration pages: since #2671 their sections are h2 and their step/FAQ items h3 (they were h3/h4, which skipped a
   level under the h1). Draw them exactly as the old h3/h4 were drawn here: the section h2 at this sheet's h3 size, the
   item h3 in Geist 500 like the h4-h6 rule above, at the old h4 size. Measured against a staging build from before #2671. */
html.look-27 .content.integration-content h2 { font-size: clamp(21px, 2vw, 25px); line-height: 1.2; margin-top: 1.4em; }
html.look-27 .content.integration-content h3 {
  font-family: var(--l27-sans);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: wrap;
  font-size: 1.728rem; /* text-h4, the old h4 size (22.1px on phones, 27.6px on desktop) */
  line-height: 1.5;
  margin-top: 0.6em;
}
/* Legal pages draw their section titles at the h4 size: keep that size in the serif. */
html.look-27 .content.legal-content h2 { font-size: clamp(22px, 2vw, 26px); margin-top: 1.4em; }

/* ── Header: the homepage's floating, frosted bar (same markup, links and menus) ── */
html.look-27 #site-header,
html.look-27 #site-header[data-scrolled="true"] {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 10px max(12px, env(safe-area-inset-left, 0px)) 0;
}
html.look-27 #site-header > div:first-child {
  max-width: 1180px;
  height: 60px;
  padding: 0 10px 0 18px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -18px rgba(15, 23, 42, .25), inset 0 0 0 1px rgba(255, 255, 255, .7);
  transition: background-color .4s ease, box-shadow .4s ease;
}
html.look-27 #site-header[data-scrolled="true"] > div:first-child {
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 14px 34px -18px rgba(15, 23, 42, .3), inset 0 0 0 1px var(--l27-line2);
}
html.look-27 #site-header .navbar-brand { gap: 8px; }
html.look-27 #site-header .navbar-brand svg { width: 30px; height: 30px; }
html.look-27 #site-header .st-wordmark {
  font-family: var(--l27-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--l27-ink);
}
html.look-27 #site-header [data-nav-pill] { background: transparent; padding: 0; gap: 2px; }
html.look-27 #site-header [data-nav-pill] > a,
html.look-27 #site-header [data-nav-pill] > .nav-dropdown > a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--l27-ink);
}
html.look-27 #site-header [data-nav-pill] > a:hover,
html.look-27 #site-header [data-nav-pill] > .nav-dropdown > a:hover { background: rgba(15, 23, 42, .05); }
html.look-27 #site-header [data-nav-pill].has-glider > a:hover,
html.look-27 #site-header [data-nav-pill].has-glider > .nav-dropdown > a:hover { background: transparent; }
html.look-27 #site-header [data-nav-pill] > a[aria-current="page"],
html.look-27 #site-header [data-nav-pill] > .nav-dropdown > a[aria-current="page"] { background: rgba(15, 23, 42, .06); }
html.look-27 #site-header [data-nav-glider] { top: 0; bottom: 0; border-radius: 8px; background: rgba(15, 23, 42, .05); }
html.look-27 #site-header > div:first-child > div:last-of-type { gap: 18px; }
/* Log in: the homepage's underlined text link. Start free: its lime button, with the same arrow. */
html.look-27 #site-header > div:first-child a[href$="/login"] {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transform: none;
}
html.look-27 #site-header > div:first-child a[href$="/signup"] {
  min-height: 40px;
  padding: 0 14px;
  gap: 8px;
  font-size: 14px;
  transform: none;
}
html.look-27 #site-header > div:first-child a[href$="/signup"]::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M4 10 L10 4 M5 4 H10 V9' stroke='%230E1200' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
/* Mega-menus: white cards with the homepage's corners and shadow; the lime tint becomes the neutral panel. */
html.look-27 #site-header .desktop-dropdown > div {
  border-radius: 16px;
  border-color: var(--l27-line2);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 28px 60px -28px rgba(15, 23, 42, .32);
}
html.look-27 #site-header :is([class~="bg-[#f1f5df]" i], [class~="bg-[#f7f7f7]" i]) { background-color: var(--l27-panel); }
html.look-27 #site-header [class~="border-[#e3ecbd]" i] { border-color: var(--l27-line); }
html.look-27 #site-header [class~="border-[#e3ecbd]" i]:hover { border-color: rgba(15, 23, 42, .22); }
html.look-27 #site-header .desktop-dropdown [class~="hover:bg-[#f5f4f0]" i]:hover { background-color: var(--l27-panel); }
html.look-27 #site-header .desktop-dropdown p[class*="uppercase"] { font-family: var(--l27-mono); font-size: 11px; font-weight: 500; color: var(--l27-ink2); }
html.look-27 #site-header .desktop-dropdown span[class*="font-medium"],
html.look-27 #site-header .desktop-dropdown span[class*="font-semibold"] { font-weight: 500; }
/* Phone menu: the same white card, under the bar. */
html.look-27 #mobile-nav {
  max-width: 1180px;
  margin: 8px auto 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px -14px rgba(15, 23, 42, .35), inset 0 0 0 1px var(--l27-line);
}
html.look-27 #mobile-nav > :is(a, div) { border-radius: 10px; background-color: var(--l27-panel); }
html.look-27 #mobile-nav :is(a, button) { font-weight: 500; }
html.look-27 #mobile-nav > div:last-of-type { background: transparent; }
html.look-27 #mobile-nav a:is([href$="/login"], [href$="/signup"]) { border-radius: 8px; }
html.look-27 #mobile-nav a[href$="/login"] { background: var(--l27-white); }
html.look-27 #mobile-nav > p { color: var(--l27-ink2); font-weight: 400; }

/* ── Footer: the homepage's white footer (same links, legal links and cookie settings) ── */
html.look-27 body > footer {
  margin-top: 0;
  padding-top: 64px;
  background: var(--l27-white);
  border-top: 1px solid var(--l27-line2);
  position: relative;
  z-index: 1;
}
html.look-27 body > footer :is(h2, h3) {
  margin-bottom: 14px;
  font-family: var(--l27-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-wrap: wrap;
}
html.look-27 body > footer #footer-main :is(ul a, ul button) { font-size: 14px; font-weight: 400; color: var(--l27-ink2); }
html.look-27 body > footer #footer-main :is(ul a, ul button):hover { color: var(--l27-ink); }
html.look-27 body > footer #footer-main ul[class*="gap-y-3"] { row-gap: 9px; }
html.look-27 body > footer #footer-main > div:first-child p { font-size: 14px; color: var(--l27-ink2); max-width: 32ch; }
html.look-27 body > footer #footer-main > div:first-child ul a { font-size: 14px; color: var(--l27-ink); }
html.look-27 body > footer .st-wordmark { font-family: var(--l27-sans); font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
html.look-27 body > footer .navbar-brand svg { width: 30px; height: 30px; }
/* The closing wordmark, set in the homepage's serif instead of uppercase grotesque. */
html.look-27 body > footer .footer-title {
  font-family: var(--l27-serif);
  font-weight: 300;
  text-transform: none;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-bottom: .08em;
}
html.look-27 body > footer #footer-bottom > div:last-child { border-color: var(--l27-line2); }
html.look-27 body > footer #footer-bottom p { color: var(--l27-ink2); }

/* ============================================================================
   PHASE 2 — every page type matches the homepage
   ============================================================================
   Phase 1 restyled what pages share; this part takes the per-page leftovers found by screenshotting one page of
   every template against the homepage. Same rules as above: staging only, every selector under html.look-27, no
   copy, link or number changes, lime only as a button fill, orange only where a page already marks waste.

   HOW COLOURS ARE MATCHED. Where a page paints through a variable (docs.css's --docs-*, focus.css's
   --st-focus-ring) the variable is overridden. Most pages paint with Tailwind arbitrary colours, which compile to
   literal values with no variable behind them, so those are matched by exact class token ([class~="bg-[#c8f000]" i]),
   keyed on the colour, never on layout classes: a hover: or md: variant is a different token and does not match.
   ============================================================================ */

html.look-27 {
  /* Focus: the homepage's orange ring (:focus-visible{outline:2px solid var(--orange)}). The dark docs code block
     keeps its own lime ring (focus.css sets it on .docs-code, which is closer than this). */
  --st-focus-ring: #F0602A;
}
html.look-27 [role="button"]:focus-visible { outline-color: #F0602A; }
html.look-27 [class~="focus-visible:outline-[#c8f000]" i]:focus-visible { outline-color: #F0602A; }

/* ── Page grounds and section rhythm ───────────────────────────────────────
   The pages wrap their sections in one white div; the homepage paints the page ground and sets white chapters on it
   as inset rounded panels. The wrapper goes transparent, the first section (the hero) sits on the ground, and every
   later white section becomes an inset panel; two white sections in a row join into one panel. */
html.look-27 main > div[class~="bg-white"][class~="antialiased"] { background-color: transparent; }
html.look-27 main > div[class~="antialiased"] > :is(section, nav) { border-color: transparent; }
html.look-27 main > div[class~="antialiased"] > section:first-child { background-color: transparent; }
html.look-27 main > div[class~="antialiased"] > :is(section, nav)[class~="bg-white"]:not(:first-child) {
  margin-inline: clamp(8px, 1.4vw, 20px);
  border-radius: 32px;
}
html.look-27 main > div[class~="antialiased"] > :is(section, nav)[class~="bg-white"]:not(:first-child):has(+ :is(section, nav)[class~="bg-white"]) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
html.look-27 main > div[class~="antialiased"] > :is(section, nav)[class~="bg-white"] + :is(section, nav)[class~="bg-white"] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
/* The homepage's chapter rhythm: .sec clamp(64px,8vw,116px), inset panels clamp(56px,7vw,100px). Only the standard
   chapter sections (py-16 and py-20, with their lg: steps); compact bands (py-8, py-10, py-12) keep their size. */
html.look-27 main section:is([class~="py-16"], [class~="py-20"]) { padding-block: clamp(64px, 8vw, 116px); }
html.look-27 main > div[class~="antialiased"] > section[class~="bg-white"]:not(:first-child):is([class~="py-16"], [class~="py-20"]) { padding-block: clamp(56px, 7vw, 100px); }

/* ── Eyebrows: the pill badge with a lime dot becomes the homepage's mono eyebrow ─
   Same markup and text; the pill loses its tint and border, the dot becomes the 8px ink square, a hairline follows. */
html.look-27 :is(span, p, div)[class~="rounded-full"]:has(> span[class~="rounded-full"][class~="bg-[#c8f000]" i]:empty) {
  gap: 10px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-family: var(--l27-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--l27-ink2);
}
html.look-27 :is(span, p, div)[class~="rounded-full"]:has(> span[class~="rounded-full"][class~="bg-[#c8f000]" i]:empty)::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--l27-line);
  flex: none;
}
html.look-27 :is(span, p, div)[class~="rounded-full"] > span[class~="rounded-full"][class~="bg-[#c8f000]" i]:empty {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--l27-ink);
}
/* The template Badge (PageHeader, CallToAction, FAQ blocks): a lime-bordered dark pill with lime gradient text. */
html.look-27 [id^="badge-"][class~="bg-gradient-primary"] { background: transparent; padding: 0; }
html.look-27 [id^="badge-"][class~="bg-gradient-primary"] > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
}
html.look-27 [id^="badge-"][class~="bg-gradient-primary"] > div::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--l27-ink);
  flex: none;
}
html.look-27 [id^="badge-"][class~="bg-gradient-primary"] > div::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--l27-line);
  flex: none;
}
html.look-27 [id^="badge-"] .gradient-text-primary {
  background: none;
  color: var(--l27-ink2);
  -webkit-text-fill-color: currentColor;
  font-family: var(--l27-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* Small tags that wear the lime tint (card labels, "Example", "SourceTrack ahead") become the homepage's .pill. */
html.look-27 :is(span, em, a)[class~="rounded-full"]:is([class~="bg-[#f1f5df]" i], [class~="bg-[#c8f000]/40" i]),
html.look-27 :is(span, em)[class~="rounded-full"][class~="bg-white"]:is([class~="border-[#e2edd0]" i], [class~="border-[#c8f000]" i]) {
  background: var(--l27-white);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--l27-line);
  color: var(--l27-ink2);
}

/* ── Lime tints, borders and fills that are not buttons ─────────────────────
   Tints become the homepage's neutral panel, lime hairlines its line, and small solid lime marks (dots, bars, step
   numbers, the current page) its ink, with white text where they hold text. */
html.look-27 :is([class~="bg-[#f1f5df]" i], [class~="bg-[#f7faf0]" i], [class~="bg-[#f2f5e7]" i], [class~="bg-[#e8edd9]" i], [class~="bg-[#f7fbed]" i], [class~="bg-[#fbfdf5]" i], [class~="bg-[#edf0e6]" i], [class~="bg-[#e2edd0]" i], [class~="bg-[#eef7d2]" i], [class~="bg-[#f7fbea]" i], [class~="bg-[#f7f7f0]" i], [class~="bg-[#e2e6d8]" i], [class~="bg-[#e2e7d8]" i], [class~="bg-[#c8f000]/40" i], [class~="bg-[#f1ffc8]" i]) { background-color: var(--l27-panel); }
html.look-27 :is([class~="hover:bg-[#e8edd9]" i], [class~="hover:bg-[#f2f5e7]" i], [class~="hover:bg-[#f1f5df]" i]):hover { background-color: #ECEFF1; }
/* Bars: the homepage's grey bar and its ink "on" bar. */
html.look-27 :is([class~="bg-[#d4e8a0]" i], [class~="bg-[#e4f1bc]" i], [class~="bg-[#c9c9c4]" i]) { background-color: #C3C9CE; }
html.look-27 [class~="bg-[#e4f1bc]" i]:is([class~="p-2"], [class~="p-2.5"], [class~="p-3"]) { background-color: #ECEFF1; }
html.look-27 [class~="bg-[#f2f2f0]" i][class~="rounded-full"] { background-color: #ECEFF1; }
html.look-27 [class~="bg-[#14bb69]" i] { background-color: var(--l27-ink); }
html.look-27 [class~="text-[#0d8f50]" i] { color: var(--l27-ink); }
html.look-27 :is(span, div, li, p, em, b, i, td)[class~="bg-[#c8f000]" i],
html.look-27 :is(a, span)[aria-current="page"][class~="bg-[#c8f000]" i] {
  background-color: var(--l27-ink);
  color: var(--l27-white);
  border-color: var(--l27-ink);
  box-shadow: none;
}
html.look-27 [class~="text-[#c8f000]" i] { color: var(--l27-white); }
/* A whole card filled lime (the featured plan): the homepage's white card with the recommended plan's ring. */
html.look-27 div[class~="bg-[#c8f000]" i]:is([class*="rounded-[20px]"], [class*="rounded-[24px]"], [class~="rounded-2xl"], [class~="rounded-3xl"]) {
  background-color: var(--l27-white);
  color: var(--l27-ink);
  border-color: transparent;
  box-shadow: 0 0 0 1.5px var(--l27-ink), var(--l27-shadow);
}
html.look-27 :is([class~="border-[#e2edd0]" i], [class~="border-[#eef5dc]" i], [class~="border-[#e9f7c6]" i], [class~="border-[#d4e8a0]" i]) { border-color: var(--l27-line); }
html.look-27 :not(a):not(button)[class~="border-[#c8f000]" i] { border-color: var(--l27-ink); }
/* The plan badge: orange is for waste only, so it becomes the homepage's ink pill. */
html.look-27 span[class~="bg-[#ff5a1f]" i] { background-color: var(--l27-ink); box-shadow: none; }
html.look-27 span[class~="bg-[#ff5a1f]" i] > span { color: var(--l27-white); }
/* Lime underlines: the homepage's quiet ink underline. */
html.look-27 [class~="decoration-[#c8f000]" i] {
  text-decoration-color: rgba(14, 16, 18, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
html.look-27 [class~="decoration-[#c8f000]" i]:hover { text-decoration-color: currentColor; }
/* Open accordions: a lime ring becomes the homepage's open <details> (white, soft shadow, hairline). */
html.look-27 :is([class~="open:ring-[#c8f000]" i], [class~="ring-[#c8f000]" i]) { --tw-ring-color: var(--l27-line); }
html.look-27 details[class~="open:ring-[#c8f000]" i][open] { box-shadow: var(--l27-shadow), inset 0 0 0 1px var(--l27-line); }
/* Lime glows and gradient connectors. */
html.look-27 [class*="shadow-[0_6px_24px_rgba(200,240,0" i] { box-shadow: var(--l27-shadow); }
html.look-27 :is([class~="from-[#c8f000]" i], [class~="to-[#c8f000]" i], [class~="from-[#e2edd0]" i], [class~="to-[#e2edd0]" i]) { background-image: none; background-color: #C3C9CE; }

/* ── Glows and gradient bands ──────────────────────────────────────────────
   Decorative lime glows are removed (the homepage keeps lime for buttons); a CTA band painted with a lime wash
   takes the homepage's cool chapter atmosphere (.atm-cool). Inline styles need !important to be overridden. */
html.look-27 [class~="pointer-events-none"]:is([style*="rgba(225,255,125" i], [style*="rgba(225, 255, 125" i], [style*="rgba(222, 244, 122" i], [style*="rgba(200, 240, 0" i]) { display: none; }
html.look-27 section > [class~="absolute"][class~="-z-10"] { display: none; }
html.look-27 [class~="bg-card"] > [class~="pointer-events-none"]:has(> svg) { display: none; }
html.look-27 :not([aria-hidden="true"]):is([style*="#eef7d2" i], [style*="rgb(238, 247, 210)"]) {
  background: radial-gradient(60% 70% at 8% 0%, #E6ECF3 0%, transparent 70%), radial-gradient(50% 60% at 100% 100%, #F1ECE4 0%, transparent 70%), #F8F9FA !important;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--l27-line2);
}
/* The flat lime highlight behind an emphasised headline word: the homepage sets emphasis as light serif italic. */
html.look-27 :is(.hero-text, #hero-title) > mark {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}
html.look-27 .hero-text { font-weight: 400; }
/* The reading-progress bar. */
html.look-27 .scroll-progress { background: var(--l27-ink); }
/* Template cards and their hover: the lime hover border and radial wash go neutral. */
html.look-27 .st-card-subtle:hover { border-color: rgba(15, 23, 42, .14); }
html.look-27 [class~="bg-radial-accent-dark"] { background: rgba(15, 16, 18, .3); }

/* ── Buttons that phase 1 missed ───────────────────────────────────────────
   Lime pills without a min-height take the 8px corner; the lime-grey and warm-grey secondary pills become the
   homepage's .btn.ghost (white, hairline). The lime hover glow and shimmer sweep go: the homepage's button only
   darkens on hover. */
html.look-27 :is(a, button)[class~="rounded-full"]:is([class~="bg-[#c8f000]" i], [class~="st-btn-primary"]):not([aria-current="page"]) { border-radius: 8px; }
html.look-27 :is(a, button):is([class~="bg-[#f2f5e7]" i], [class~="bg-[#f5f4f0]" i])[class*="min-h-["] {
  background-color: var(--l27-white);
  border-color: transparent;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--l27-line);
  color: var(--l27-ink);
}
html.look-27 :is(a, button):is([class~="bg-[#f2f5e7]" i], [class~="bg-[#f5f4f0]" i])[class*="min-h-["]:hover { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .2); }
/* The template AnimatedButton: an outlined pill around a lime pill. One 8px lime button, as on the homepage. */
html.look-27 a[class~="group"][class~="rounded-full"]:has(> span.btn.btn-primary) { border-color: transparent; border-radius: 8px; }
html.look-27 a[class~="group"] > span.btn.btn-primary { border-radius: 8px; border-color: transparent; }
html.look-27 .st-btn-primary:hover { box-shadow: none; transform: none; }
html.look-27 .st-btn-primary::after { content: none; }

/* ── Cards that phase 1 missed: white bordered cards at the 16px and 24px Tailwind radii ── */
html.look-27 :is([class~="rounded-2xl"], [class~="rounded-3xl"])[class~="border"][class~="bg-white"] {
  border-color: transparent;
  box-shadow: var(--l27-shadow), inset 0 0 0 1px var(--l27-line2);
}

/* ── Docs: the docs palette is variables, so it is retuned rather than overridden ── */
html.look-27 .docs-page {
  --docs-body: #3F464C;
  --docs-muted: var(--l27-ink2);
  --docs-link: var(--l27-ink);
  --docs-line: var(--l27-line);
  --docs-paper: var(--l27-bg);
  --docs-card: var(--l27-white);
  --docs-active: rgba(15, 23, 42, .06);
  --docs-soft: var(--l27-panel);
}
html.look-27 .help-tab.is-active { border-bottom-color: var(--l27-ink); }
html.look-27 .doc-hero { background: var(--l27-bg); border-bottom-color: transparent; }
html.look-27 .doc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  font-family: var(--l27-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--l27-ink2);
}
html.look-27 .doc-hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--l27-ink);
}
html.look-27 .doc-hero-badge::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--l27-line);
}
html.look-27 :is(.docs-btn, .docs-page a[class*="rounded-full"]) { border-radius: 8px; }

/* More lime-cast tints and hairlines, found on single templates (roadmap cards, form mockups, the warm grey chips). */
html.look-27 :is([class~="bg-[#f8fbec]" i], [class~="bg-[#f4fbe3]" i], [class~="bg-[#fcfdf8]" i], [class~="bg-[#f5f7f0]" i], [class~="bg-[#f4f9e6]" i], [class~="bg-[#f3f5ed]" i], [class~="bg-[#fafaf8]" i]) { background-color: var(--l27-panel); }
html.look-27 :not(section)[class~="bg-[#f7fee7]" i] { background-color: var(--l27-panel); }
html.look-27 [class~="bg-[#f0f0ea]" i] { background-color: #ECEFF1; }
html.look-27 :is([class~="border-[#f1f5e9]" i], [class~="border-[#e5efcf]" i]) { border-color: var(--l27-line); }
/* Contact form: each field is a pill wrapper with a transparent input inside. The wrapper takes the homepage's field
   (white, hairline, 10px corners) and the input stays transparent inside it. */
html.look-27 :is(input, textarea)[class~="bg-transparent"] { background-color: transparent; border-radius: 0; }
html.look-27 :is(div)[class~="border-gray"]:has(> :is(input, textarea)[class~="bg-transparent"]) {
  border-radius: 10px;
  background-color: var(--l27-white);
  border-color: var(--l27-line);
}

/* ── Shared animated components (scoped Astro styles, outranked by html.look-27) ── */
/* SectionMotion: the step lit in turn takes the homepage's lit card (ink ring), not a lime ring. */
html.look-27 [data-seq-step].is-lit { box-shadow: 0 0 0 1.5px var(--l27-ink), 0 26px 50px -28px rgba(15, 23, 42, .35); }
/* HomeModels: the pressed model tab is the homepage's "on" segment. */
html.look-27 .model-tab[aria-pressed="true"] { background: var(--l27-ink); color: var(--l27-white); }
/* HomeCloseLoop: lit stages, fields and destinations, the dots, ticks and flow lines. */
html.look-27 :is(.hc-stage.is-lit, .hc-client.is-lit) { background: var(--l27-panel); }
html.look-27 [data-loop-field].is-lit .hc-field.hc-field { background: var(--l27-panel); border-color: var(--l27-ink); }
html.look-27 .hc-dest.is-lit { border-color: var(--l27-ink); }
/* Astro scopes these as .hc-stage[data-astro-cid-*] .hc-dot[data-astro-cid-*] (0,4,0); the repeated class outranks it,
   while the pending state (0,5,0) still wins and stays grey. Same for the lit field (0,5,0). */
html.look-27 .hc-stage .hc-dot.hc-dot { background: var(--l27-ink); }
html.look-27 .hc-check { background: var(--l27-ink); color: var(--l27-white); }
html.look-27 [data-loop-check].is-pending .hc-check { color: var(--l27-ink2); }
html.look-27 .hc-loop :is([class*="border-[#e2edd0]" i], [class*="border-[#c8f000]" i]) { border-color: var(--l27-line); }
/* Diagram strokes and fills drawn in lime (model glyphs, the close-the-loop lines, packets): the homepage's ink. */
html.look-27 svg :is([fill="#C8F000" i], [fill="#c8f000"]) { fill: var(--l27-ink); }
html.look-27 svg :is([stroke="#C8F000" i], [stroke="#c8f000"]) { stroke: var(--l27-ink); }
html.look-27 :is(span, div)[style*="background:#c8f000" i] { background: var(--l27-ink) !important; }
html.look-27 svg [fill="#dcee9f" i] { fill: #C3C9CE; }
html.look-27 [class~="border-[#d9e4bd]" i] { border-color: rgba(15, 23, 42, .18); }
/* Prose links on the compare pages are underlined lime from their parent ([&_a]:decoration-[#C8F000]). */
html.look-27 [class~="[&_a]:decoration-[#c8f000]" i] a {
  text-decoration-color: rgba(14, 16, 18, .35);
  text-decoration-thickness: 1px;
}
html.look-27 [class~="[&_a]:decoration-[#c8f000]" i] a:hover { text-decoration-color: currentColor; }
/* The template Badge without an id (inside the FAQ block). */
html.look-27 [class~="bg-gradient-primary"][class~="rounded-full"]:not(a):not(button):has(> [class~="bg-gradient-black-grid"]) { background: transparent; padding: 0; }
html.look-27 [class~="bg-gradient-primary"][class~="rounded-full"]:not(a):not(button) > [class~="bg-gradient-black-grid"] { background: transparent; padding: 0; }
html.look-27 [class~="bg-gradient-black-grid"] > .gradient-text-primary {
  background: none;
  color: var(--l27-ink2);
  -webkit-text-fill-color: currentColor;
  font-family: var(--l27-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── The server-side tagging landing page (/lp/*): its own palette is variables, retuned to the homepage's ──
   Its lime becomes the homepage's quiet grey, except on the primary button; the hard offset shadows become the
   homepage's soft one; the highlighted headline word becomes light serif italic; the orange kicker the mono eyebrow. */
html.look-27 .lp {
  --bg: transparent;
  --paper: var(--l27-panel);
  --ink: var(--l27-ink);
  --muted: var(--l27-ink2);
  --faint: var(--l27-ink3);
  --line: var(--l27-line);
  --line-soft: var(--l27-line2);
  --lime: #ECEFF1;
  --lime-soft: var(--l27-panel);
  --lime-deep: var(--l27-ink);
}
html.look-27 .lp :is(h1, h2, h3) { font-weight: 400; letter-spacing: -0.03em; }
html.look-27 .lp .btn { border-radius: 8px; }
html.look-27 .lp .btn-p { background: var(--l27-lime); color: var(--l27-lime-ink); }
html.look-27 .lp .btn-p:hover { background: var(--l27-lime-hover); }
html.look-27 .lp .hero h1 .serif { background: none; font-style: italic; font-weight: 300; }
/* Its cards are drawn with 1.5px ink outlines (and some with an 8px offset shadow): they become the homepage's card,
   a soft shadow with a hairline, and the dividers inside them hairlines. */
html.look-27 .lp :is(.ticket, .eqt, .route-card, .rec, .bc, .setup, .clients, .price, details) {
  border-color: transparent;
  box-shadow: var(--l27-shadow), inset 0 0 0 1px var(--l27-line2);
}
html.look-27 .lp :is(.panel, .sc, .pc + .pc) { border-color: var(--l27-line); }
html.look-27 .lp .tl li .d { border-color: #C3C9CE; }
html.look-27 .lp .final { border-color: transparent; box-shadow: inset 0 0 0 1px var(--l27-line2); }
html.look-27 .lp .kicker { color: var(--l27-ink2); font-weight: 400; }
html.look-27 .lp .kicker::before { width: 8px; height: 8px; border-radius: 2px; background: var(--l27-ink); }

/* ── Legal pages (PageHeader with an empty slot, then .legal-content) ──────
   The hero kept its bottom padding, its empty slot and a 40px margin under the removed glow, then the content
   section added its own top padding: about 300px of nothing. The text now starts one homepage .head gap (64px)
   under the hero's lede. Contact, which fills the slot with its form, is not matched. */
html.look-27 main > section[id^="ph-"]:has(.mt-10:empty) { margin-bottom: 0; }
html.look-27 main > section[id^="ph-"]:has(.mt-10:empty) .container-padding-y { padding-bottom: 0; }
html.look-27 main > section[id^="ph-"] .mt-10:empty { display: none; }
html.look-27 main > section .container-padding-y:has(> .legal-content) { padding-top: 64px; }

/* ── Code blocks: they stay dark (their syntax colours are tuned for it) but take the homepage's 12px corner and
   hairline, so they read as part of the same system. ── */
html.look-27 :is(pre.astro-code, .docs-code, pre:is([class~="bg-[#292929]" i], [class~="bg-[#1b1f1f]" i], [class~="bg-[#111827]" i], [class~="bg-[#0f1012]" i])) {
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--l27-line), 0 1px 2px rgba(15, 23, 42, .04);
}
html.look-27 [class~="text-[#e2edd0]" i] { color: #F3F4F2; }

/* ── Single-page leftovers ─────────────────────────────────────────────────── */
/* Product tour (/changelog, /product): the newest feed row and the lit SEO row. */
html.look-27 .feed-row.is-newest { background: var(--l27-white); box-shadow: 0 0 0 1.5px var(--l27-ink), 0 10px 22px -14px rgba(15, 23, 42, .4); }
html.look-27 .seo-row.is-lit { background: #ECEFF1; }
/* /features connect panel: the pressed tab, the lit reason, the tile hover. */
html.look-27 .hx-tab[aria-pressed="true"] { background: var(--l27-ink); color: var(--l27-white); }
html.look-27 .hx-reason.is-lit { background: var(--l27-panel); border-color: var(--l27-ink); }
html.look-27 [class~="hover:border-[#c8f000]" i]:hover { border-color: rgba(15, 23, 42, .22); }
html.look-27 [class*="hover:shadow-[0_2px_10px_rgba(200,240,0" i]:hover { box-shadow: var(--l27-shadow); }
/* /features/website-analytics: the product demo's own palette (.st-demo), its lime retuned to the homepage greys;
   the selected nav item is the homepage's "on" segment. /demo, which also uses it, is not themed. */
html.look-27 .st-demo { --f-lime: #E2E6E9; --f-lime-2: #ECEFF1; --f-lime-w: #F3F5F6; }
html.look-27 .st-demo .fx-nav.on { background: var(--l27-ink); color: var(--l27-white); }
html.look-27 .st-demo .fx-nav.on svg { color: var(--l27-white); }
html.look-27 .st-demo .fx-cb svg { color: var(--l27-ink); }
html.look-27 .st-demo :is(.fx-pill.ok, .fx-dot.lime) { color: var(--l27-ink2); }
/* Dark-green accents (form tracking, the integrations "How-to guide" links) and the green success chips: the
   homepage has no green, so ink text, the neutral panel and the hairline. */
html.look-27 :is([class~="text-[#84b200]" i], [class~="text-[#7ca800]" i], [class~="text-[#789d15]" i], [class~="text-[#5f8f00]" i], [class~="text-[#14ba69]" i]) { color: var(--l27-ink); }
html.look-27 [class~="bg-[#84b200]" i] { background-color: var(--l27-ink); }
html.look-27 [class~="bg-[#eefaf3]" i] { background-color: var(--l27-panel); }
html.look-27 [class~="border-[#d2f3e1]" i] { border-color: var(--l27-line); }
html.look-27 :is([class~="from-[#f2f8dc]" i], [class~="to-[#f9fdf0]" i]) { background-image: none; background-color: var(--l27-panel); }
/* The heaviest weights: the homepage tops out at 600. */
html.look-27 :is([class~="font-black"], [class~="font-extrabold"]) { font-weight: 600; }
/* The Tally post's older inline component, painted in the retired lime: the same treatment as the current lime
   (marks become ink, the tinted chip the panel, the outline ink, its button the brand lime with the 8px corner). */
html.look-27 :is(span, div)[class~="bg-[#ccf03f]" i] { background-color: var(--l27-ink); color: var(--l27-white); }
html.look-27 [class~="bg-[#ccf03f]/30" i] { background-color: var(--l27-panel); }
html.look-27 [class~="border-[#ccf03f]" i] { border-color: var(--l27-ink); }
html.look-27 a[class~="bg-[#ccf03f]" i] {
  background-color: var(--l27-lime);
  color: var(--l27-lime-ink);
  border-radius: 8px;
  font-weight: 500;
  box-shadow: none;
}
html.look-27 a[class~="bg-[#ccf03f]" i]:hover { background-color: var(--l27-lime-hover); }

/* Final leftovers (dispatcher review, 2026-11-10).
   1. List bullets in .prose and .content (legal pages): components.css paints them with the brand primary (lime) via prose-ul:marker:text-primary!,
      inside Tailwind's layer with !important, which no unlayered rule can beat. That rule reads var(--color-primary),
      so the list sets the variable to the homepage's caption grey for its own markers (buttons elsewhere keep lime).
   2. The shared green check icon (/images/solutions/saas/check.svg, used on 13 pages incl. PlainOutcomes on
      /features, /pricing, /product and the /solutions/saas line icons) is an image, so it cannot take a colour; a
      greyscale filter renders it in the homepage's ink without editing the file. */
html.look-27 :is(.prose, .content) :is(ul, ol) { --color-primary: var(--l27-ink3); }
html.look-27 img[src$="/images/solutions/saas/check.svg"] { filter: grayscale(1) brightness(.35) contrast(1.2); }

/* ============================================================================
   GLASS — embossed glass on one calm ground (founder, 2026-11-11: "a touch of glass UI/UX", "make it stronger",
   "too much gradient", then: take the four ideas from the workflows.io review, "make sure our site doesn't look like
   copycat")
   ============================================================================
   The homepage carries the same layer (marketing/homepage/index.html, "v5: glass layer"); keep the two in step.
   WHAT IS OURS. The ideas are general glass techniques (paired inner light and shade, a tray rim, glass capsules);
   the look stays SourceTrack's: our neutral ground (#F2F4F5), shading in our own ink, a 6px rim only on the headline
   cards, capsules that keep our mono caps and 8px ink square, Newsreader headings, lime only on buttons, orange focus.
   Not taken: a dark section, orbiting logos, pulsing dots, pop-in scaling, square icon tiles beside text links.
   GROUND. One flat neutral, no colour glows. Caption grey #5F666D is 5.2:1 on it; every glass surface is white over
   the ground, so text never sits on anything darker than the ground.
   SURFACES. Cards, panels, the bar and capsules are translucent white with a white hairline, a soft shade along the
   top-left inner edge and a light along the bottom-right, so they read as pressed glass without colour behind them.
   The bar and the headline cards also blur what passes behind; other cards do not (no stacked blur layers).
   TRAY. A 6px translucent rim plus a white outer hairline, on the plan cards and the "at a glance" hero panel only,
   so cards in tight grids never touch rims.
   BUTTONS. The lime button gets a scan-light sweep and a pressed state; the arrow squares invert to ink on hover.
   MENUS and fixed overlays stay solid (inside the blurred bar a translucent menu shows the page text through it).
   FALLBACK. No backdrop-filter: the bar keeps its solid value. prefers-reduced-transparency: reduce: every surface is
   solid white. prefers-reduced-motion: reduce: no sweep, nudge or lift. No copy, link or number changes. */
html.look-27 {
  --l27-ink3: #5F666D;
  --l27-bg: #F2F4F5;
  --l27-glass: rgba(255, 255, 255, .55);
  --l27-glass-bar: rgba(242, 244, 245, .72);
  --l27-glass-panel: rgba(255, 255, 255, .42);
  --l27-glass-blur: saturate(1.6) blur(18px);
  --l27-glass-edge: inset 0 0 0 1px #FFFFFF, inset 7px 7px 18px rgba(15, 23, 42, .045), inset -7px -7px 18px rgba(255, 255, 255, .75);
  --l27-glass-drop: 0 1px 2px rgba(15, 23, 42, .04), 0 22px 46px -30px rgba(15, 23, 42, .3);
  --l27-glass-tray: 0 0 0 6px rgba(15, 23, 42, .028), 0 0 0 7px rgba(255, 255, 255, .9);
}
html.look-27 body { background-color: var(--l27-bg); background-image: none; }
/* Sections painted the page ground (the grey bands) sit on the same ground. */
html.look-27 section:is([class~="bg-[#fafafa]" i], [class~="bg-[#f5f4f0]" i], [class~="bg-[#f7f7f7]" i], [class~="bg-[#f5f5f5]" i], [class~="bg-[#f7fee7]" i]),
html.look-27 .doc-hero { background-color: transparent; }
/* Chapter panels: pressed glass sheets. */
html.look-27 main > div[class~="antialiased"] > :is(section, nav)[class~="bg-white"]:not(:first-child) {
  background-color: var(--l27-glass-panel);
  box-shadow: var(--l27-glass-edge);
}
/* Cards: pressed glass. Not inside the header (its menu panels are white cards too) and not fixed overlays. */
html.look-27 :is([class*="rounded-[20px]"], [class*="rounded-[24px]"], [class*="rounded-[28px]"])[class~="border"]:is([class~="bg-white"], [class~="bg-[#fff]" i], [class~="bg-[#ffffff]" i]):not(#site-header *, [class~="fixed"]),
html.look-27 :is([class~="rounded-2xl"], [class~="rounded-3xl"])[class~="border"][class~="bg-white"]:not(#site-header *, [class~="fixed"]),
html.look-27 div[class~="bg-white"][class~="rounded-lg"][class*="shadow-[0_0_3px" i]:not(#site-header *, [class~="fixed"]) {
  background-color: var(--l27-glass);
  background-image: none;
  border-color: transparent;
  box-shadow: var(--l27-glass-drop), var(--l27-glass-edge);
}
/* The headline cards sit in a tray. */
html.look-27 [data-plan-card],
html.look-27 div[class~="bg-white"][class~="rounded-lg"][class*="shadow-[0_0_3px" i]:not(#site-header *, [class~="fixed"]) {
  box-shadow: var(--l27-glass-tray), var(--l27-glass-drop), var(--l27-glass-edge);
}
html.look-27 a:is([class*="rounded-[20px]"], [class*="rounded-[24px]"])[class~="border"]:hover {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 30px 60px -30px rgba(15, 23, 42, .38), var(--l27-glass-edge);
}
/* Eyebrows: our mono caps and ink square, in a pressed-glass capsule. */
html.look-27 :is(span, p, div)[class~="rounded-full"]:has(> span[class~="rounded-full"][class~="bg-[#c8f000]" i]:empty) {
  padding: 7px 14px 7px 11px;
  background: var(--l27-glass);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .25), var(--l27-glass-edge);
}
html.look-27 :is(span, p, div)[class~="rounded-full"]:has(> span[class~="rounded-full"][class~="bg-[#c8f000]" i]:empty)::after { display: none; }
html.look-27 .l27-eyebrow,
html.look-27 p:is([class*="text-[20px]"], [class*="text-[18px]"])[class~="text-[#b3480e]" i]:not(:has(*)) {
  padding: 7px 14px 7px 11px;
  width: fit-content;
  border-radius: 999px;
  background: var(--l27-glass);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .25), var(--l27-glass-edge);
}
html.look-27 .l27-eyebrow::after,
html.look-27 p:is([class*="text-[20px]"], [class*="text-[18px]"])[class~="text-[#b3480e]" i]:not(:has(*))::after { display: none; }
/* Primary button: a scan-light passes across the lime on hover; pressed on click. The light is a background layer,
   so the header button's ::after arrow is untouched. */
html.look-27 :is(a, button):is([class~="bg-[#c8f000]" i], [class~="bg-primary"], .btn-primary) {
  background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px -10px rgba(110, 140, 0, .55);
}
html.look-27 :is(a, button):is([class~="bg-[#c8f000]" i], [class~="bg-primary"], .btn-primary):hover {
  background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: -30% 0;
  background-repeat: no-repeat;
}
html.look-27 :is(a, button):is([class~="bg-[#c8f000]" i], [class~="bg-primary"], .btn-primary):active { transform: translateY(1px) scale(.985); box-shadow: inset 0 2px 4px rgba(14, 18, 0, .18); }
html.look-27 #site-header > div:first-child a[href$="/signup"]:hover::after { transform: translate(2px, -2px); }
/* Arrow squares beside text links invert to ink on hover. */
html.look-27 .l27-sq { box-shadow: var(--l27-glass-edge), 0 4px 10px -6px rgba(15, 23, 42, .3); }
html.look-27 .l27-more:hover .l27-sq { background: var(--l27-ink); color: #FFFFFF; box-shadow: 0 6px 14px -6px rgba(15, 23, 42, .45); }
@media (prefers-reduced-motion: no-preference) {
  html.look-27 :is(a, button):is([class~="bg-[#c8f000]" i], [class~="bg-primary"], .btn-primary) { transition: background-color .2s ease, background-position .9s cubic-bezier(.45, .05, .3, 1), transform .2s ease, box-shadow .2s ease; }
  html.look-27 #site-header > div:first-child a[href$="/signup"]::after { transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
  html.look-27 .l27-sq { transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .25s ease, color .25s ease, box-shadow .25s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html.look-27 :is(a, button):is([class~="bg-[#c8f000]" i], [class~="bg-primary"], .btn-primary):hover { background-position: 130% 0; }
  html.look-27 :is(a, button):is([class~="bg-[#c8f000]" i], [class~="bg-primary"], .btn-primary):active { transform: none; }
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html.look-27 #site-header > div:first-child,
  html.look-27 #site-header[data-scrolled="true"] > div:first-child {
    background: var(--l27-glass-bar);
    -webkit-backdrop-filter: var(--l27-glass-blur);
    backdrop-filter: var(--l27-glass-blur);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 30px -18px rgba(15, 23, 42, .28), var(--l27-glass-edge);
  }
  html.look-27 [data-plan-card],
html.look-27 div[class~="bg-white"][class~="rounded-lg"][class*="shadow-[0_0_3px" i]:not(#site-header *, [class~="fixed"]) {
    -webkit-backdrop-filter: var(--l27-glass-blur);
    backdrop-filter: var(--l27-glass-blur);
  }
}
@media (max-width: 700px) {
  html.look-27 { --l27-glass-blur: saturate(1.5) blur(12px); }
}
@media (prefers-reduced-transparency: reduce) {
  html.look-27 {
    --l27-glass: #FFFFFF;
    --l27-glass-bar: rgba(255, 255, 255, .97);
    --l27-glass-panel: #FFFFFF;
    --l27-glass-blur: none;
  }
}

/* ============================================================================
   "HOW IT FITS TOGETHER" IN MOTION (feature pages, layouts/v3/surfaces/FeatureStory.astro; founder, 2026-11-12:
   "why 'How it fits together' is not animated?")
   ============================================================================
   Our own motion, the same language as the homepage's "Close the loop": a light packet runs along each connector into
   the SourceTrack hub and out again, the hub gives a soft pulse as it passes, and the chips on each side light up in
   turn (sources first, then destinations). Matched on the card's own classes, so the markup and the production page
   are unchanged. Nothing moves under prefers-reduced-motion, and the page's "Pause motion" control (WCAG 2.2.2) stops it
   with every other loop. */
@media (prefers-reduced-motion: no-preference) {
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div[aria-hidden="true"] > span:not(:nth-child(2)) {
    position: relative;
    overflow: visible;
    width: 56px;
    height: 2px;
    background: rgba(15, 23, 42, .14);
  }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div[aria-hidden="true"] > span:not(:nth-child(2))::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--l27-lime);
    box-shadow: 0 0 0 1px rgba(14, 18, 0, .35), 0 0 12px 2px rgba(200, 240, 0, .75);
    opacity: 0;
    animation: l27-pkt-x 2.4s cubic-bezier(.45, .05, .3, 1) infinite;
  }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div[aria-hidden="true"] > span:last-child::after { animation-delay: 1.2s; }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div[aria-hidden="true"] > span:nth-child(2) {
    animation: l27-hub 2.4s cubic-bezier(.22, 1, .36, 1) .95s infinite;
  }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div:not([aria-hidden]) span[class~="inline-flex"] {
    animation: l27-chip 6s cubic-bezier(.22, 1, .36, 1) infinite;
  }
html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div:first-child span[class~="inline-flex"]:nth-child(2) { animation-delay: .35s; }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div:first-child span[class~="inline-flex"]:nth-child(3) { animation-delay: .7s; }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div:first-child span[class~="inline-flex"]:nth-child(4) { animation-delay: 1.05s; }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div:nth-child(3) span[class~="inline-flex"]:nth-child(1) { animation-delay: 1.8s; }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div:nth-child(3) span[class~="inline-flex"]:nth-child(2) { animation-delay: 2.15s; }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div:nth-child(3) span[class~="inline-flex"]:nth-child(3) { animation-delay: 2.5s; }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div:nth-child(3) span[class~="inline-flex"]:nth-child(4) { animation-delay: 2.85s; }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div:nth-child(3) span[class~="inline-flex"]:nth-child(5) { animation-delay: 3.2s; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div[aria-hidden="true"] > span:not(:nth-child(2)) { width: 2px; height: 56px; }
  html.look-27 div[class*="md:grid-cols-[1fr_auto_1fr]"][class~="rounded-2xl"][class~="p-6"] > div[aria-hidden="true"] > span:not(:nth-child(2))::after { top: -4px; left: -3px; animation-name: l27-pkt-y; }
}
@keyframes l27-pkt-x { 0% { left: -4px; opacity: 0; } 8% { opacity: 1; } 42% { opacity: 1; } 50% { left: calc(100% - 4px); opacity: 0; } 100% { left: calc(100% - 4px); opacity: 0; } }
@keyframes l27-pkt-y { 0% { top: -4px; opacity: 0; } 8% { opacity: 1; } 42% { opacity: 1; } 50% { top: calc(100% - 4px); opacity: 0; } 100% { top: calc(100% - 4px); opacity: 0; } }
@keyframes l27-hub {
  0% { box-shadow: 0 0 0 0 rgba(200, 240, 0, .6); transform: scale(1); }
  12% { transform: scale(1.06); }
  30% { transform: scale(1); }
  45%, 100% { box-shadow: 0 0 0 16px rgba(200, 240, 0, 0); transform: scale(1); }
}
@keyframes l27-chip {
  0%, 14%, 100% { transform: none; }
  5% { transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .35), inset 0 0 0 1px rgba(15, 23, 42, .18); background-color: #FFFFFF; }
}

/* Marks that homepage/site-look-logos.js puts in front of platform names in short labels. */
html.look-27 .l27-ilogo {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: .45em;
  object-fit: contain;
  vertical-align: -.2em;
  border-radius: .2em;
}
