/* Growth Loop studio system: bold monochrome with a single lime accent.
   Part 1 restyles the Tailwind utility classes the pages already use, so every page shares the look.
   Part 2 holds the components used by the redesigned home page.
   Selectors are prefixed with body.studio so they win over the Tailwind CDN styles injected at runtime. */

:root {
  --ink: #0b0b0b;
  --ink-2: #1c1c1a;
  --paper: #f2f2ec;
  --white: #ffffff;
  --lime: #d7ff3a;
  --muted: #55554f;
  --muted-dark: #a3a39b;
  --line: rgba(11, 11, 11, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 48px);
}

/* ---------- Part 1: site-wide restyle ---------- */

html body.studio { font-family: var(--body); background: var(--paper); color: var(--ink); letter-spacing: -0.005em; }
body.studio ::selection { background: var(--lime); color: var(--ink); }

body.studio h1, body.studio h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.035em; line-height: 0.95;
}
body.studio h3, body.studio h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
body.studio p.text-4xl, body.studio p.text-5xl, body.studio p.text-6xl {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.95;
}

/* Surfaces */
body.studio .bg-slate-50, body.studio .bg-slate-50\/50 { background-color: var(--paper); }
body.studio .bg-white { background-color: var(--white); }
body.studio .bg-slate-900, body.studio .bg-slate-950, body.studio .bg-slate-800 { background-color: var(--ink); }
body.studio .bg-slate-800 { background-color: var(--ink-2); }

/* Text */
body.studio .text-slate-900, body.studio .text-slate-800 { color: var(--ink); }
body.studio .text-slate-600, body.studio .text-slate-500 { color: var(--muted); }
body.studio .text-blue-600, body.studio .text-blue-700, body.studio .text-blue-500,
body.studio .text-primary, body.studio .text-indigo-600,
body.studio .text-green-600, body.studio .text-green-700,
body.studio .text-emerald-500, body.studio .text-emerald-600 { color: var(--ink); }
body.studio .bg-slate-900 .text-blue-200, body.studio .bg-slate-950 .text-blue-200 { color: var(--lime); }
body.studio [class*="hover:text-primary"]:hover, body.studio [class*="hover:text-blue"]:hover,
body.studio .group:hover [class*="group-hover:text-primary"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Gradient headline words become a lime highlighter stroke */
body.studio .bg-clip-text.text-transparent {
  background: linear-gradient(transparent 14%, var(--lime) 14%, var(--lime) 90%, transparent 90%);
  -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: var(--ink); color: var(--ink);
  padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Buttons: black pill, lime on hover */
body.studio .bg-blue-600, body.studio .bg-primary { background-color: var(--ink); color: var(--white); }
body.studio a.bg-blue-600:hover, body.studio a.bg-primary:hover,
body.studio button.bg-blue-600:hover, body.studio button.bg-primary:hover {
  background-color: var(--lime); color: var(--ink);
}
body.studio .bg-slate-900 a.bg-blue-600, body.studio .bg-slate-900 a.bg-primary,
body.studio .bg-slate-950 a.bg-blue-600 { background-color: var(--lime); color: var(--ink); }
body.studio .bg-slate-900 a.bg-blue-600:hover, body.studio .bg-slate-900 a.bg-primary:hover { background-color: var(--white); }
body.studio .cta-button::after { display: none; }

/* Tints and icon tiles */
body.studio .bg-blue-50, body.studio .bg-indigo-50, body.studio .bg-emerald-50, body.studio .bg-green-100,
body.studio .bg-blue-100, body.studio .bg-emerald-500\/10 { background-color: var(--lime); }
body.studio .bg-blue-600\/5, body.studio .bg-blue-600\/10 { background-color: rgba(215, 255, 58, 0.25); }
body.studio .bg-blue-200, body.studio .bg-blue-300, body.studio .bg-blue-400 { background-color: #c9c9c0; }
body.studio .group:hover .group-hover\:bg-primary, body.studio .group:hover .group-hover\:bg-blue-600 { background-color: var(--ink); color: var(--lime); }

/* Lines, corners, shadows */
body.studio .border-slate-100, body.studio .border-slate-200, body.studio .border-slate-200\/60,
body.studio .border-blue-100, body.studio .border-blue-200, body.studio .border-indigo-100,
body.studio .border-emerald-100, body.studio .border-blue-600\/20 { border-color: var(--line); }
body.studio .rounded-3xl, body.studio .rounded-2xl { border-radius: 6px; }
body.studio .rounded-xl { border-radius: 4px; }
body.studio [class*="shadow-blue"], body.studio .shadow-sm, body.studio .shadow-md, body.studio .shadow-xl, body.studio .shadow-2xl { box-shadow: none; }
body.studio .hover\:shadow-md:hover, body.studio .hover\:shadow-lg:hover, body.studio .service-card:hover,
body.studio .glow-card:hover { box-shadow: 6px 6px 0 var(--ink); border-color: var(--ink); }

/* Decorative blue blobs and gradients are dropped */
body.studio [class*="blur-[100px]"], body.studio [class*="blur-[120px]"], body.studio .blur-3xl { display: none; }
body.studio .from-blue-50, body.studio .from-blue-100 { --tw-gradient-from: var(--paper) var(--tw-gradient-from-position); --tw-gradient-to: var(--paper) var(--tw-gradient-to-position); }

/* Shared navigation */
body.studio .glass-nav { background: rgba(242, 242, 236, 0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ink); }
body.studio #navbar a > span.text-2xl { font-family: var(--display); font-weight: 900; letter-spacing: -0.04em; font-size: 1.3rem; color: var(--ink); }
body.studio #navbar a > span svg { color: var(--ink); background: var(--lime); border-radius: 999px; padding: 3px; height: 1.75rem; width: 1.75rem; }
body.studio #navbar .text-sm.font-medium { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
body.studio .dropdown-content { border: 1px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); }
body.studio .dropdown-item { color: var(--ink); border-radius: 2px; }
body.studio .dropdown-item:hover { background: var(--lime); color: var(--ink); }
body.studio #navbar.shadow-lg { box-shadow: none; }

/* FAQ, form fields */
body.studio input:focus, body.studio select:focus, body.studio textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); box-shadow: none; }

/* ---------- Part 2: studio components (home page) ---------- */

.st-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.st-label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; gap: 10px; align-items: center; }
.st-label::before { content: ""; width: 8px; height: 8px; background: var(--lime); border: 1px solid var(--ink); border-radius: 999px; }
.st-dark .st-label::before { border-color: var(--lime); }
.st-dark { background: var(--ink); color: var(--white); }
.st-dark .st-muted { color: var(--muted-dark); }
.st-muted { color: var(--muted); }
.st-mark { background: linear-gradient(transparent 14%, var(--lime) 14%, var(--lime) 90%, transparent 90%); color: var(--ink); padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.st-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--ink); transition: background .2s, color .2s, transform .2s;
}
.st-btn svg, .st-btn i { width: 18px; height: 18px; transition: transform .2s; }
.st-btn:hover svg { transform: translateX(3px); }
.st-btn-ink { background: var(--ink); color: var(--white); }
.st-btn-ink:hover { background: var(--lime); color: var(--ink); }
.st-btn-line { background: transparent; color: var(--ink); }
.st-btn-line:hover { background: var(--ink); color: var(--white); }
.st-btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.st-btn-lime:hover { background: var(--white); border-color: var(--white); }
.st-btn:focus-visible, .st-row:focus-visible, .st-cell:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Hero */
.st-hero { padding: clamp(120px, 16vh, 180px) 0 0; border-bottom: 1px solid var(--ink); }
.st-hero h1 { font-size: clamp(2.6rem, 7.8vw, 7.75rem); line-height: 1; margin: 28px 0 0; }
.st-hero-foot { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 40px 0 56px; align-items: end; }
.st-hero-foot p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 40ch; }
.st-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .st-hero-foot { grid-template-columns: 1fr auto; } }

/* Ticker */
.st-ticker { background: var(--ink); color: var(--white); overflow: hidden; border-bottom: 1px solid var(--ink); }
.st-ticker-track { display: flex; width: max-content; animation: st-marquee 38s linear infinite; }
.st-ticker span { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0; font-size: clamp(1.1rem, 2.2vw, 1.7rem); padding: 18px 0; white-space: nowrap; }
.st-ticker b { color: var(--lime); padding: 0 28px; font-weight: 500; }
@keyframes st-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .st-ticker-track { animation: none; } }

/* Section shell */
.st-section { padding: clamp(80px, 11vw, 150px) 0; }
.st-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.st-head h2 { font-size: clamp(2.2rem, 5.2vw, 4.75rem); margin: 0; }
.st-head p { font-size: 1.15rem; line-height: 1.55; max-width: 46ch; }
@media (min-width: 900px) { .st-head { grid-template-columns: 1.4fr 1fr; align-items: end; } .st-head .st-label { grid-column: 1 / -1; } }

/* Services grid */
.st-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
@media (min-width: 700px) { .st-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .st-grid { grid-template-columns: repeat(3, 1fr); } }
.st-cell {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 340px; padding: 32px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white);
  color: var(--ink); text-decoration: none; transition: background .25s;
}
.st-cell:hover { background: var(--lime); }
.st-cell-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 0.8rem; }
.st-cell-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--lime); border-radius: 999px; }
.st-cell-icon svg, .st-cell-icon i { width: 22px; height: 22px; }
.st-cell h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; margin: 28px 0 0; font-weight: 800; }
.st-cell p { color: var(--muted); line-height: 1.55; margin: 0; }
.st-cell:hover p { color: var(--ink); }
.st-cell-more { margin-top: auto; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; gap: 8px; align-items: center; }

/* Stats */
.st-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .st-stats { grid-template-columns: repeat(4, 1fr); } }
.st-stat { padding: 40px 24px 40px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .st-stat { border-bottom: 0; border-right: 1px solid var(--line-dark); padding-left: 24px; } .st-stat:first-child { padding-left: 0; } .st-stat:last-child { border-right: 0; } }
.st-stat .counter { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 7vw, 6.5rem); letter-spacing: -0.05em; line-height: 1; color: var(--lime); }
.st-stat div:last-child { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 14px; color: var(--muted-dark); }

/* Approach loop */
.st-loop { display: grid; gap: 40px; }
@media (min-width: 1000px) { .st-loop { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.st-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.st-steps > li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--ink); }
.st-steps > li > span { font-family: var(--mono); font-size: 0.85rem; padding-top: 6px; }
.st-steps > li h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); text-transform: uppercase; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 6px; line-height: 1; }
.st-steps > li p { color: var(--muted); margin: 0; line-height: 1.55; }
.st-proof { background: var(--ink); color: var(--white); padding: 36px; border-radius: 6px; display: flex; flex-direction: column; gap: 28px; }
.st-proof-row { border-bottom: 1px solid var(--line-dark); padding-bottom: 22px; }
.st-proof-row:last-of-type { border-bottom: 0; }
.st-proof-row b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 4.6vw, 3.8rem); letter-spacing: -0.05em; line-height: 1; color: var(--lime); font-weight: 800; }
.st-proof-row span { color: var(--muted-dark); font-size: 0.95rem; }

/* Audience rows */
.st-rows { border-top: 1px solid var(--ink); }
.st-row {
  display: grid; grid-template-columns: 1fr; gap: 12px; padding: 30px 0; border-bottom: 1px solid var(--ink);
  color: var(--ink); text-decoration: none; transition: background .25s, padding .25s;
}
@media (min-width: 900px) { .st-row { grid-template-columns: 70px 1.1fr 1.4fr 48px; align-items: center; gap: 24px; } }
.st-row:hover { background: var(--lime); padding-left: 20px; padding-right: 20px; }
.st-row span { font-family: var(--mono); font-size: 0.8rem; }
.st-row h3 { font-size: clamp(1.7rem, 3.4vw, 3rem); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.95; margin: 0; font-weight: 800; }
.st-row p { color: var(--muted); margin: 0; line-height: 1.55; }
.st-row:hover p { color: var(--ink); }
.st-row i, .st-row svg { width: 32px; height: 32px; justify-self: end; transition: transform .25s; }
.st-row:hover svg { transform: rotate(-45deg); }

/* Contact + footer */
.st-cta h2 { font-size: clamp(3rem, 10vw, 9rem); margin: 28px 0 32px; }
.st-cta p { font-size: 1.2rem; line-height: 1.55; max-width: 48ch; margin: 0 0 36px; }
.st-footer { background: var(--ink); color: var(--white); border-top: 1px solid var(--line-dark); padding: 56px 0 32px; overflow: hidden; }
.st-footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 56px; }
@media (min-width: 800px) { .st-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.st-footer h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-dark); margin: 0 0 14px; }
.st-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-footer a { color: var(--white); text-decoration: none; }
.st-footer a:hover { color: var(--lime); }
.st-wordmark { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.06em; line-height: 0.8; font-size: clamp(2.6rem, 12.4vw, 13rem); white-space: nowrap; margin: 0; }
.st-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: 0.06em; }

/* AI readiness checker */
body.studio .checker { --accent: var(--ink); --accent-fg: var(--white); --fg: var(--ink); --muted: var(--muted); --line: var(--line); --card: var(--paper); --r: 6px; }
body.studio .checker .eyebrow { background: var(--lime); color: var(--ink); font-family: var(--mono); }
body.studio .checker .bar button, body.studio .checker .btn { box-shadow: none; }
body.studio .checker .bar button:hover, body.studio .checker .btn:hover { background: var(--lime); color: var(--ink); }

/* Large decorative step numbers that were pale blue */
body.studio .text-blue-200, body.studio .text-slate-200 { color: #c4c4bb; }

/* ---------- Part 3: inner page components ---------- */

/* Page hero */
.st-phero { padding: clamp(120px, 15vh, 170px) 0 0; border-bottom: 1px solid var(--ink); }
.st-phero h1 { font-size: clamp(2.4rem, 6.4vw, 6rem); line-height: 1; margin: 24px 0 0; max-width: 16ch; }
.st-phero .st-hero-foot { padding-bottom: 48px; }
.st-facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .st-facts { grid-template-columns: repeat(4, 1fr); } }
.st-fact { padding: 22px 20px 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .st-fact { border-bottom: 0; border-right: 1px solid var(--line); padding-left: 20px; } .st-fact:first-child { padding-left: 0; } .st-fact:last-child { border-right: 0; } }
.st-fact b { display: block; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; font-weight: 800; line-height: 1.05; }
.st-fact span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* Sticky in-page index */
.st-toc { position: sticky; top: 80px; z-index: 40; background: rgba(242, 242, 236, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ink); }
.st-toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.st-toc ul::-webkit-scrollbar { display: none; }
.st-toc a { display: block; padding: 14px 0; white-space: nowrap; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.st-toc a:hover, .st-toc a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
html { scroll-padding-top: 140px; }

/* Section variants */
.st-section.st-white { background: var(--white); border-top: 1px solid var(--ink); }
.st-section.st-paper { border-top: 1px solid var(--ink); }
.st-section.st-dark { border-top: 1px solid var(--ink); }
.st-dark .st-head p, .st-dark p.st-muted { color: var(--muted-dark); }

/* Two-column split */
.st-split { display: grid; gap: 40px; }
@media (min-width: 1000px) { .st-split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.st-prose p { font-size: 1.08rem; line-height: 1.65; color: var(--muted); margin: 0 0 18px; }
.st-prose strong { color: var(--ink); }
.st-dark .st-prose p { color: var(--muted-dark); }
.st-dark .st-prose strong { color: var(--white); }

/* Numbered point list (problems, reasons) */
.st-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.st-dark .st-points { border-top-color: var(--line-dark); }
.st-points li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.st-dark .st-points li { border-bottom-color: var(--line-dark); }
.st-points li > span { font-family: var(--mono); font-size: 0.8rem; padding-top: 4px; }
.st-dark .st-points li > span { color: var(--lime); }
.st-points h3 { font-size: 1.25rem; margin: 0 0 6px; text-transform: none; letter-spacing: -0.02em; }
.st-points p { margin: 0; color: var(--muted); line-height: 1.55; }
.st-dark .st-points p { color: var(--muted-dark); }

/* Feature cards with bullet lists (extends .st-grid / .st-cell) */
.st-grid.st-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 800px) { .st-grid.st-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .st-grid.st-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.st-cell.st-cell-auto { min-height: 0; }
.st-cell.st-cell-auto h3 { margin-top: 12px; }
.st-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-checks li { position: relative; padding-left: 26px; line-height: 1.5; color: var(--muted); }
.st-checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; background: var(--lime); border: 1.5px solid var(--ink); border-radius: 2px; }
.st-cell:hover .st-checks li { color: var(--ink); }
.st-dark .st-checks li { color: var(--muted-dark); }
.st-dark .st-checks li::before { border-color: var(--lime); }

/* Visual frame for diagrams and mock UI */
.st-visual { background: var(--white); border: 1px solid var(--ink); border-radius: 6px; padding: clamp(20px, 3vw, 32px); box-shadow: 8px 8px 0 var(--ink); }
.st-dark .st-visual { background: var(--ink-2); border-color: var(--line-dark); box-shadow: 8px 8px 0 var(--lime); color: var(--white); }
.st-visual-title { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 18px; display: flex; justify-content: space-between; gap: 12px; }
.st-dark .st-visual-title { color: var(--muted-dark); }
.st-visual svg { display: block; width: 100%; height: auto; }

/* Timeline (sequence over days) */
.st-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.st-timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--ink); }
.st-timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 0 0 22px; }
.st-timeline li:last-child { padding-bottom: 0; }
.st-timeline .st-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.st-timeline .st-dot svg, .st-timeline .st-dot i { width: 18px; height: 18px; }
.st-timeline li.is-goal .st-dot { background: var(--lime); color: var(--ink); border: 2px solid var(--ink); }
.st-timeline small { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.st-timeline b { display: block; font-family: var(--display); font-size: 1.05rem; margin: 2px 0 2px; }
.st-timeline p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* Flow diagram: boxes joined by arrows, wraps on mobile */
.st-flow { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .st-flow { grid-template-columns: repeat(var(--n, 4), 1fr); gap: 0; } }
.st-flow > div { position: relative; border: 1px solid var(--ink); padding: 18px; background: var(--white); }
.st-flow > div:nth-child(odd) { background: var(--paper); }
.st-flow > div.is-key { background: var(--lime); }
@media (min-width: 800px) { .st-flow > div + div { border-left: 0; } .st-flow > div:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: grid; place-items: center; background: var(--ink); color: var(--lime); border-radius: 999px; font-size: 12px; z-index: 2; } }
.st-flow small { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.st-flow b { display: block; font-family: var(--display); font-size: 1.1rem; margin: 6px 0 4px; letter-spacing: -0.02em; }
.st-flow p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* Bar meter rows (simple data visual) */
.st-meter { display: grid; gap: 14px; }
.st-meter-row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 72px; gap: 12px; align-items: center; font-size: 0.92rem; }
.st-meter-track { height: 12px; background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.st-meter-fill { height: 100%; background: var(--ink); }
.st-meter-row.is-key .st-meter-fill { background: var(--lime); }
.st-meter-row b { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; }

/* Comparison table */
.st-compare { width: 100%; border-collapse: collapse; border: 1px solid var(--ink); background: var(--white); font-size: 0.98rem; }
.st-compare th, .st-compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.st-compare thead th { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; background: var(--ink); color: var(--white); border-bottom: 1px solid var(--ink); }
.st-compare thead th:last-child { background: var(--lime); color: var(--ink); }
.st-compare tbody th { font-family: var(--display); font-weight: 700; width: 24%; }
.st-compare td { color: var(--muted); }
.st-compare td:last-child { color: var(--ink); background: rgba(215, 255, 58, 0.18); }
.st-table-wrap { overflow-x: auto; }
.st-table-wrap .st-compare { min-width: 640px; }

/* FAQ (native details/summary, no JS needed) */
.st-faq { border-top: 1px solid var(--ink); }
.st-faq details { border-bottom: 1px solid var(--ink); }
.st-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 36px; gap: 16px; align-items: center; padding: 24px 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.4rem); letter-spacing: -0.02em; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "+"; width: 36px; height: 36px; border: 1.5px solid var(--ink); border-radius: 999px; display: grid; place-items: center; font-family: var(--mono); font-size: 1.1rem; font-weight: 400; transition: background .2s, transform .2s; }
.st-faq details[open] summary::after { content: "–"; background: var(--lime); }
.st-faq summary:hover::after { background: var(--lime); }
.st-faq summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.st-faq .st-faq-a { padding: 0 52px 26px 0; color: var(--muted); line-height: 1.65; font-size: 1.02rem; }
.st-faq .st-faq-a p { margin: 0 0 12px; }
.st-faq .st-faq-a ul { margin: 0 0 12px; padding-left: 18px; }

/* Next-step cross links */
.st-next { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
@media (min-width: 800px) { .st-next { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.st-next a { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); color: var(--ink); text-decoration: none; transition: background .2s; }
.st-next a:hover { background: var(--lime); }
.st-next small { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.st-next b { font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.03em; text-transform: uppercase; font-weight: 800; }
.st-next p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* Callout quote / key line */
.st-callout { border-left: 6px solid var(--lime); background: var(--ink); color: var(--white); padding: 28px 32px; font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; border-radius: 0 6px 6px 0; }
.st-callout small { display: block; margin-top: 12px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-dark); font-weight: 400; }

/* Vertical flow: stacked boxes with downward arrows at every width */
.st-flow.st-flow-v { grid-template-columns: 1fr; gap: 0; }
.st-flow.st-flow-v > div + div { border-left: 1px solid var(--ink); border-top: 0; }
.st-flow.st-flow-v > div:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; right: auto; top: auto; bottom: -11px; transform: translateX(-50%); width: 22px; height: 22px; display: grid; place-items: center; background: var(--ink); color: var(--lime); border-radius: 999px; font-size: 12px; z-index: 2; }
.st-loop { align-items: start; }

/* Small helpers used across inner pages */
.st-cell.is-lime { background: var(--lime); }
.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--white); }
@media (min-width: 1100px) { .st-grid-4 .st-cell h3 { font-size: 1.4rem; } }
.st-nowrap { white-space: nowrap; }

/* Tables and light cards inside dark sections keep light-surface colours */
.st-dark .st-compare { color: var(--ink); }
.st-dark .st-compare tbody th { color: var(--ink); }
.st-dark .st-visual.is-light { background: var(--white); color: var(--ink); border-color: var(--ink); }

/* Buttons inside the footer keep their own colours */
.st-footer a.st-btn-lime, .st-footer a.st-btn-lime:hover { color: var(--ink); }

/* ---------- Part 4: blog ---------- */

/* Blog index */
.st-posts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
@media (min-width: 800px) { .st-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .st-posts { grid-template-columns: repeat(3, 1fr); } }
.st-post-card { display: flex; flex-direction: column; gap: 14px; padding: 30px; min-height: 300px; background: var(--white); color: var(--ink); text-decoration: none; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transition: background .2s; }
.st-post-card:hover { background: var(--lime); }
.st-post-card h2, .st-post-card h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); text-transform: none; letter-spacing: -0.03em; line-height: 1.12; margin: 0; font-weight: 800; }
.st-post-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.st-post-card:hover p { color: var(--ink); }
.st-post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.st-post-card .st-cell-more { margin-top: auto; }

/* Article layout */
.st-article-hero { padding: clamp(120px, 15vh, 160px) 0 40px; border-bottom: 1px solid var(--ink); }
.st-article-hero h1 { font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1.02; margin: 22px 0 22px; max-width: 22ch; }
.st-article-hero .st-dek { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 0 0 26px; }
.st-crumbs { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.st-crumbs a { color: var(--ink); }
.st-article-wrap { display: grid; gap: 48px; padding: 56px 0 90px; }
@media (min-width: 1100px) { .st-article-wrap { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; } }
.st-article-toc { align-self: start; }
@media (min-width: 1100px) { .st-article-toc { position: sticky; top: 110px; } }
.st-article-toc p { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.st-article-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: toc; }
.st-article-toc li { border-bottom: 1px solid var(--line); counter-increment: toc; }
.st-article-toc a { display: grid; grid-template-columns: 28px 1fr; padding: 10px 0; font-size: 0.9rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.st-article-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 0.7rem; padding-top: 2px; }
.st-article-toc a:hover, .st-article-toc a.is-active { color: var(--ink); }
.st-article-toc a.is-active::before { color: var(--ink); background: var(--lime); justify-self: start; padding: 2px 4px; margin-top: -2px; }
@media (max-width: 1099px) { .st-article-toc { border: 1px solid var(--ink); background: var(--white); padding: 18px; border-radius: 6px; } }

/* Long-form typography */
.st-article { max-width: 72ch; font-size: 1.08rem; line-height: 1.75; color: #2a2a26; }
.st-article > *:first-child { margin-top: 0; }
.st-article h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.08; margin: 64px 0 18px; text-transform: none; letter-spacing: -0.035em; scroll-margin-top: 110px; }
.st-article h3 { font-size: 1.3rem; line-height: 1.25; margin: 36px 0 10px; letter-spacing: -0.02em; scroll-margin-top: 110px; }
.st-article p { margin: 0 0 20px; }
.st-article a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.st-article a:hover { background: var(--lime); }
.st-article strong { color: var(--ink); }
.st-article ul, .st-article ol { margin: 0 0 22px; padding-left: 1.3em; }
.st-article li { margin: 0 0 8px; }
.st-article li::marker { color: var(--ink); font-weight: 700; }
.st-article code { font-family: var(--mono); font-size: 0.88em; background: var(--white); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }
.st-article pre { background: var(--ink); color: #e8e8e0; padding: 20px 22px; border-radius: 6px; overflow-x: auto; margin: 0 0 24px; font-size: 0.9rem; line-height: 1.6; }
.st-article pre code { background: none; border: 0; padding: 0; color: inherit; }
.st-article blockquote { margin: 28px 0; padding: 22px 26px; background: var(--ink); color: var(--white); border-left: 6px solid var(--lime); border-radius: 0 6px 6px 0; font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; }
.st-article blockquote p { margin: 0; }
.st-article blockquote a { color: var(--lime); text-decoration-color: var(--lime); }
.st-article-table { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--ink); background: var(--white); }
.st-article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.st-article tbody tr:last-child td { border-bottom: 0; }
.st-article th.num, .st-article td.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.st-article thead th { background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.st-article th, .st-article td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 120px; }
.st-article hr { border: 0; border-top: 1px solid var(--ink); margin: 48px 0; }

/* Boxes inside articles */
.st-tldr { background: var(--lime); border: 1px solid var(--ink); border-radius: 6px; padding: 24px 26px; margin: 0 0 36px; box-shadow: 6px 6px 0 var(--ink); }
.st-tldr > p:first-child { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.st-tldr ul { margin: 0; }
.st-tldr li { margin-bottom: 6px; }
.st-inline-cta { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--ink); border-radius: 6px; padding: 24px 26px; margin: 36px 0; }
.st-inline-cta p { margin: 0; }
.st-inline-cta .st-btn { justify-self: start; text-decoration: none; }
.st-inline-cta .st-btn:hover { background: var(--lime); }
.st-sources { font-size: 0.92rem; line-height: 1.6; }
.st-sources li { margin-bottom: 6px; color: var(--muted); }

/* Shared navbar dropdown behaviour (also defined per page; needed for generated pages like the blog) */
.glass-nav { background: rgba(242, 242, 236, 0.9); backdrop-filter: blur(14px); }
.dropdown-content { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; min-width: 260px; padding: 8px; z-index: 60; }
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { display: block; }
.dropdown-item { display: block; padding: 12px 16px; text-decoration: none; transition: background .2s; }

/* Long-form headings read better in sentence case */
body.studio .st-article h2, body.studio .st-article h3, body.studio .st-post-card h2 { text-transform: none; }
body.studio .st-article a.st-btn { color: var(--white); background: var(--ink); text-decoration: none; }
body.studio .st-article a.st-btn:hover { color: var(--ink); background: var(--lime); }
body.studio .st-article ul { list-style: disc; } body.studio .st-article ol { list-style: decimal; } body.studio .st-article ul.st-sources { list-style: disc; }
