/* content-hub / hub.css: the whole look of a client hub.

   Layout, spacing and type scale follow the reference hub Ryan picked from the
   Viktor AI demo (youtube.com/watch?v=vVZPIuS_fEs, 2026-09-28). Colours are
   Gherkin's, from layer-1-context/brand-assets.md: the reference's red and
   yellow become the brand green and a light green that reads on black.

   Headings are Inter at 800-900 with tight tracking, standing in for the
   reference's Inter Tight (same glyphs, tighter default spacing).
   ponytail: add an Inter Tight woff2 to templates/fonts if the difference ever shows. */

@font-face {
  /* inter-400.woff2 is the variable file, so it covers every weight. */
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --brand-dark: #000;
  --accent: #74832C;        /* brand green: borders, icons, glows */
  --accent-text: #505C18;   /* small green text on light surfaces, 7.28:1 */
  --accent-fill: #505C18;   /* behind small white text, 7.28:1 */
  --accent-bright: #C2D479; /* highlights on black */
  --bg: #f9fafb; --surface: #fff; --surface2: #f4f5f7;
  --text: #1f2937; --text2: #4b5563; --text3: #6b7280;
  --border: #e5e7eb; --line: #e5e7eb; --zebra: #fafafa;
  --tint: color-mix(in srgb, var(--accent) 8%, var(--surface));
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(17,24,39,.08), 0 2px 4px -2px rgba(17,24,39,.05);
  --shadow-lg: 0 10px 25px -5px rgba(17,24,39,.12), 0 8px 10px -6px rgba(17,24,39,.07);
  --font: Inter, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html.dark {
  color-scheme: dark;
  --accent: #A8BC55; --accent-text: #A8BC55;
  --bg: #0f0f11; --surface: #17171a; --surface2: #1e1e22;
  --text: #f4f4f5; --text2: #c9c9cf; --text3: #9a9aa2;
  --border: #2c2c31; --line: #2c2c31; --zebra: #161619;
  --shadow-md: 0 4px 16px rgba(0,0,0,.45); --shadow-lg: 0 12px 30px rgba(0,0,0,.55);
}
/* The hub home sits its grey cards on white, the other way round from the rest. */
.page-home { --bg: #fff; --surface: #f8f9fb; }
html.dark .page-home { --bg: #0d0f11; --surface: #17171a; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
  transition: background .3s, color .3s;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-fill); color: #fff; padding: .7rem 1.1rem; font-weight: 600;
}
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.inner { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .inner { padding: 0 2rem; } }

/* Header: black bar on the hub home and reports, frosted glass elsewhere */

.topbar { position: sticky; top: 0; z-index: 100; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { flex: none; }
.logo img { width: auto; }
.hub-nav { display: flex; align-items: center; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hub-nav::-webkit-scrollbar { display: none; }
.hub-nav a { white-space: nowrap; transition: all .18s; }
.theme-toggle {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px; cursor: pointer; transition: all .2s;
}
.theme-toggle svg { width: 1rem; height: 1rem; }

.is-black { background: #000; border-bottom: 1px solid rgba(255,255,255,.08); }
.is-black .bar { height: 3.25rem; }
.is-black .logo img { height: 1.6rem; filter: brightness(0) invert(1); }
.is-black .hub-nav { gap: .15rem; }
.is-black .hub-nav a, .is-black .hub-nav .soon { font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.6); padding: .4rem .7rem; border-radius: .4rem; }
.is-black .hub-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.is-black .hub-nav a.on { color: #fff; font-weight: 600; background: rgba(255,255,255,.1); }
.is-black .theme-toggle { width: 2rem; height: 2rem; border: 1px solid rgba(255,255,255,.15); background: transparent; color: rgba(255,255,255,.6); }
.is-black .theme-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }

.is-glass {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(17,24,39,.04);
}
.is-glass .bar { height: 4rem; }
.is-glass .logo img { height: 2rem; }
html.dark .is-glass .logo img { filter: brightness(0) invert(1); opacity: .92; }
.is-glass .hub-nav { gap: 1.25rem; }
.is-glass .hub-nav a, .is-glass .hub-nav .soon { font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--text3); }
/* A section with nothing approved yet: in the nav, but not a link. */
.hub-nav .soon { opacity: .45; cursor: default; white-space: nowrap; }
.is-glass .hub-nav a:hover { color: var(--accent-text); }
.is-glass .hub-nav a.on { color: var(--accent-text); font-weight: 700; }
.is-glass .theme-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--text2); }
.is-glass .theme-toggle:hover { color: var(--accent-text); border-color: var(--accent); }

.progress { height: 3px; background: var(--border); }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); transition: width .15s ease-out; }

/* Report pages: a second row linking the numbered sections */
.section-nav {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(17,24,39,.04);
}
.section-nav .inner { height: 3rem; display: flex; align-items: center; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.section-nav .inner::-webkit-scrollbar { display: none; }
.section-nav a:first-child { margin-left: auto; }
.section-nav a:last-child { margin-right: auto; }
.section-nav a { font-size: .875rem; color: var(--text2); white-space: nowrap; transition: color .2s; }
.section-nav a:hover { color: var(--accent-text); }

/* Shared dark hero */

.hero { position: relative; overflow: hidden; background: var(--brand-dark); color: #fff; padding: 4rem 0 3.5rem; }
@media (min-width: 768px) { .hero { padding: 5.5rem 0 4.5rem; } }
.hero-dots {
  position: absolute; inset: 0; opacity: .3;
  background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 22px 22px;
}
.hero-grad {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(70% 90% at 78% 12%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%);
}
.hero .inner, .report-hero .inner { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-bright); margin-bottom: .75rem;
}
.hero h1 { font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; max-width: 44rem; }
@media (min-width: 768px) { .hero h1 { font-size: 3.2rem; } }
.hero-sub { margin-top: 1rem; font-size: 1.05rem; color: rgba(255,255,255,.72); max-width: 40rem; line-height: 1.6; }
.hero-sub a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.hero-meta { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.6); }
.hero-meta .sep { opacity: .4; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stat-n { font-size: 2rem; font-weight: 900; line-height: 1.2; }
.hero-stat-l { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: .25rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .7s cubic-bezier(.4,0,.2,1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; }

/* Hub home */

.hub-hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #333 100%); padding: 4rem 2rem 3.5rem;
}
.hub-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 78% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(60% 80% at 6% 96%, color-mix(in srgb, var(--accent-bright) 12%, transparent), transparent 55%);
}
.hub-hero > * { position: relative; }
.pill {
  display: inline-block; margin-bottom: 1.25rem; padding: .35rem .9rem; border-radius: 9999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-bright); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.hub-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.15; margin-bottom: .75rem; }
.hub-hero h1 span { color: var(--accent-bright); }
.hub-hero p:last-child { font-size: 1.05rem; color: rgba(255,255,255,.7); max-width: 500px; margin: 0 auto; }

.hub-main { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 5rem; width: 100%; }
.section-label { display: flex; align-items: center; gap: .6rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); margin: 2.5rem 0 1rem; }
.section-label:first-child { margin-top: 0; }
/* The SCOOTER letter, a small cousin of the report section badge. */
.section-label .letter {
  flex: none; width: 1.6rem; height: 1.6rem; border-radius: .5rem; letter-spacing: 0;
  background: linear-gradient(135deg, #000, var(--accent)); color: #fff;
  font-size: .8rem; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
/* auto-fill, not auto-fit: a section with one card keeps a column's width
   instead of stretching across the page. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.cards > li { display: flex; }
.card {
  flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem 1.75rem; transition: all .2s;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon { width: 2.25rem; height: 2.25rem; margin-bottom: .5rem; color: var(--accent); }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); padding-right: 3.5rem; }
.card-desc { font-size: .875rem; color: var(--text2); line-height: 1.55; }
.card-arrow { margin-top: auto; padding-top: .75rem; font-size: .8rem; font-weight: 600; color: var(--accent-text); display: flex; align-items: center; gap: .3rem; }
.card-arrow::after { content: "\2192"; transition: transform .2s; }
.card:hover .card-arrow::after { transform: translateX(4px); }
.card-badge {
  position: absolute; top: 1rem; right: 1rem; background: var(--accent-fill); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 9999px;
}
/* A deliverable with nothing approved yet, as the reference hub shows one. */
.card.soon { opacity: .55; pointer-events: none; }
.card.soon .card-badge { background: var(--border); color: var(--text3); }
.empty { color: var(--text3); font-style: italic; }

/* Work: months and their pages */

.page-main { padding-top: 3rem; padding-bottom: 5rem; width: 100%; }
.months-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.month-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-md); transition: box-shadow .2s; }
.month-card:hover { box-shadow: var(--shadow-lg); }
.month-card-header { background: var(--brand-dark); color: #fff; padding: 1.25rem 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.month-card-label { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-bright); font-weight: 600; margin-bottom: .2rem; }
.month-card-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.month-card-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.month-card-count { font-size: .8rem; color: rgba(255,255,255,.6); white-space: nowrap; }
.month-card-pages { padding: 1rem 1.75rem; display: flex; flex-direction: column; gap: .5rem; }
.page-link { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: .75rem; border: 1px solid var(--border); transition: all .2s; }
.page-link:hover { border-color: var(--accent); background: var(--tint); transform: translateX(4px); }
.page-icon { flex: none; width: 1.15rem; height: 1.15rem; color: var(--accent); }
.page-title { flex: 1; font-weight: 600; font-size: .9rem; color: var(--text); }
.page-type { flex: none; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }

/* Breadcrumb bar under the header on content pages */

.meta-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: .75rem 0; }
.meta-bar .inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.crumbs { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .8rem; color: var(--text3); }
.crumbs a { color: var(--text2); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.crumbs a:hover { color: var(--accent-text); }
.meta-badges { display: flex; gap: .5rem; margin-left: auto; flex-wrap: wrap; }
.meta-badge { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 9999px; white-space: nowrap; }
.badge-type { background: var(--tint); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.badge-keyword { background: var(--surface2); color: var(--text3); border: 1px solid var(--border); }

/* Reading: prose shared by articles and reports */

.prose > :first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--text); scroll-margin-top: 5.5rem; }
@media (min-width: 768px) { .prose h3 { font-size: 1.3rem; } }
.prose h4 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.prose p { color: var(--text2); font-size: .95rem; line-height: 1.75; margin-bottom: 1rem; }
.prose ul, .prose ol { color: var(--text2); font-size: .95rem; line-height: 1.75; margin: 1rem 0; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 1.25rem 1.5rem; margin: 1.5rem 0; background: var(--surface2); border-radius: 0 .75rem .75rem 0; }
.prose blockquote p { font-size: 1.05rem; font-style: italic; color: var(--text); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose code { background: var(--surface2); padding: .1em .35em; border-radius: 3px; font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre { background: var(--surface2); padding: .9rem 1rem; border-radius: .75rem; overflow-x: auto; margin: 1rem 0; }
.prose pre code { background: none; padding: 0; }

.table-scroll { margin: 1.5rem 0; border-radius: 1rem; overflow-x: auto; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  background: var(--brand-dark); color: #fff; text-align: left; white-space: nowrap;
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; padding: .9rem 1rem;
}
tbody td { padding: .85rem 1rem; border-top: 1px solid var(--line); color: var(--text2); vertical-align: top; }
tbody td strong { color: var(--text); }
tbody tr { background: var(--surface); }
tbody tr:nth-child(even) { background: var(--zebra); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Articles: service pages, pillars, blog posts */

.article-wrap { padding: 3rem 0 4rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1024px) { .article-layout.has-side { grid-template-columns: minmax(0, 1fr) 14rem; gap: 3rem; } }
.article-body { min-width: 0; max-width: 52rem; }
.article-body > .prose { margin-bottom: 2.5rem; }
.article-side { display: none; }
@media (min-width: 1024px) { .article-side { display: block; } }

.chapter-nav { position: sticky; top: 5.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; box-shadow: var(--shadow-sm); }
.ch-nav-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .82rem; color: var(--text); }
.ch-nav-list { display: flex; flex-direction: column; gap: .15rem; }
.ch-nav-item { display: flex; align-items: center; gap: .55rem; padding: .4rem .5rem; border-radius: .5rem; font-size: .8rem; color: var(--text2); transition: all .2s; }
.ch-nav-item:hover { background: var(--surface2); color: var(--text); }
.ch-nav-item.on { background: var(--tint); color: var(--accent-text); font-weight: 600; }
.ch-nav-num { flex: none; width: 1.4rem; height: 1.4rem; border-radius: .4rem; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .65rem; color: var(--text3); }
.ch-nav-item.on .ch-nav-num { background: var(--accent-fill); color: #fff; }
.ch-nav-title { line-height: 1.3; }

.ch-nav-mobile { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 2rem; scrollbar-width: none; }
.ch-nav-mobile::-webkit-scrollbar { display: none; }
.ch-nav-mobile li { flex: none; }
.ch-nav-pill { display: block; white-space: nowrap; padding: .5rem 1rem; border-radius: 9999px; font-size: .78rem; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--text2); transition: all .2s; }
.ch-nav-pill:hover { border-color: var(--accent); color: var(--accent-text); }
.ch-nav-pill.on { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); }
@media (min-width: 1024px) { .ch-nav-mobile { display: none; } }

.wyl { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 1rem; padding: 1.5rem; margin-bottom: 2.5rem; }
.wyl-title { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1rem; color: var(--text); margin-bottom: .75rem; }
.wyl ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .25rem .75rem; }
.wyl li { position: relative; padding: .4rem 0 .4rem 1.5rem; font-size: .9rem; color: var(--text2); line-height: 1.5; }
.wyl li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.wyl p { font-size: .9rem; color: var(--text2); }

.chapter { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.chapter:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.chapter-header { margin-bottom: 1.5rem; }
.chapter-badge {
  display: inline-block; margin-bottom: .75rem; padding: .3rem .75rem; border-radius: 9999px;
  background: linear-gradient(135deg, #000, color-mix(in srgb, var(--accent) 70%, #000)); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.chapter h2 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; color: var(--text); line-height: 1.2; }
@media (min-width: 768px) { .chapter h2 { font-size: 1.8rem; } }

.faq-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; }
.faq-q { padding: 1rem 1.25rem; font-weight: 700; font-size: .95rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; color: var(--text); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-size: 1.1rem; color: var(--text3); }
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { padding: 0 1.25rem 1rem; }
.faq-a p, .faq-a li { font-size: .9rem; }

/* Reports: market analysis and strategy */

.report-hero { position: relative; overflow: hidden; background: var(--brand-dark); color: #fff; padding: 7rem 0 6rem; }
@media (min-width: 768px) { .report-hero { padding: 10rem 0 8rem; } }
.report-hero .hero-dots { opacity: .4; }
.report-hero .hero-grad {
  background:
    radial-gradient(70% 90% at 78% 12%, color-mix(in srgb, var(--accent-bright) 30%, transparent), transparent 60%),
    radial-gradient(60% 80% at 6% 96%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 55%);
}
.accent-bar { width: 3.5rem; height: 4px; background: var(--accent-bright); border-radius: 9999px; }
.report-hero .eyebrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-bright); font-weight: 600; margin: 1.5rem 0 1rem; }
.report-hero h1 { font-size: 2.5rem; line-height: 1.02; font-weight: 900; letter-spacing: -.04em; }
@media (min-width: 768px) { .report-hero h1 { font-size: 4rem; } }
@media (min-width: 1024px) { .report-hero h1 { font-size: 4.75rem; } }
.report-hero .domain { font-size: 1.25rem; font-weight: 600; margin-top: .75rem; color: color-mix(in srgb, var(--accent-bright) 25%, #fff); }
.report-hero .meta { margin-top: 2rem; color: rgba(255,255,255,.78); font-size: .95rem; }
.report-hero .meta b { color: #fff; font-weight: 600; }

.section { padding: 5rem 0; scroll-margin-top: 6.25rem; background: var(--bg); }
.section.alt { background: var(--surface); }
.section.intro { padding: 3.5rem 0 1rem; }
.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.badge {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: .75rem; box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #000, var(--accent)); color: #fff;
  font-weight: 900; font-size: 1.05rem; display: flex; align-items: center; justify-content: center;
}
.sec-title { font-size: 1.85rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.15; }
@media (min-width: 768px) { .sec-title { font-size: 2.6rem; } }
.page-report .prose > p, .page-report .prose > ul, .page-report .prose > ol { max-width: 48rem; }
.page-report .prose p { font-size: 1.05rem; line-height: 1.65; }
.page-report .prose h3 { font-size: 1.2rem; margin: 2.5rem 0 1rem; }
.page-report .prose blockquote { background: var(--tint); border-radius: 1rem; border-left-width: 3px; }
.page-report .prose blockquote p { font-style: normal; font-size: .95rem; color: var(--text2); }

/* Social: posts shown as they would appear in the feed */

.posts-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; justify-items: center; }
@media (min-width: 1100px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; align-items: start; } }
.post-slot { width: 100%; max-width: 34.75rem; }
.mock {
  --ui-bg: #fff; --ui-text: #0a0a0a; --ui-muted: #6b7280; --ui-line: #e4e4e7;
  background: var(--ui-bg); color: var(--ui-text); overflow: hidden; transition: box-shadow .25s, transform .25s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html.dark .mock { --ui-bg: #000; --ui-text: #f5f5f5; --ui-muted: #a1a1aa; --ui-line: #26262a; }
.post-slot:hover .mock { transform: translateY(-2px); }
.mock svg { width: 1.5rem; height: 1.5rem; }
.av { flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .02em; line-height: 1; background: #000; color: var(--accent-bright); }
.av-sq { width: 3rem; height: 3rem; border-radius: .25rem; font-size: .9rem; }
.av-ring { width: 2rem; height: 2rem; border-radius: 50%; font-size: .63rem; box-shadow: 0 0 0 2px var(--ui-bg), 0 0 0 4px #d6249f; }
.cap { font-size: .875rem; line-height: 1.45; overflow: hidden; }
/* One blank line between paragraphs, as the feed shows it, and exactly one
   line-height so the three-line clamp below always cuts between lines. */
.cap p + p, .cap p + ul, .cap ul + p { margin-top: 1.45em; }
.cap ul { list-style: none; }
.js .cap[data-clamp] { max-height: calc(3 * 1.45 * .875rem); }
.js .cap[data-clamp].expanded { max-height: none; }
.cap .tag { color: #0a66c2; }
html.dark .cap .tag { color: #70b5f9; }
.more-btn { background: none; border: 0; padding: 0; margin-top: .15rem; cursor: pointer; font-size: .875rem; color: var(--ui-muted); }
.more-btn:hover { text-decoration: underline; }

.mock.li { border-radius: .5rem; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06); }
html.dark .mock.li { --ui-bg: #1b1f23; box-shadow: 0 0 0 1px rgba(255,255,255,.09); }
.li-head { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 1rem .5rem; }
.li-id { flex: 1; min-width: 0; }
.li-name { font-size: .875rem; font-weight: 600; line-height: 1.3; }
.li-headline, .li-time { font-size: .75rem; color: var(--ui-muted); line-height: 1.3; margin-top: .05rem; }
.li-time { display: flex; align-items: center; gap: .25rem; }
.li-time svg { width: .75rem; height: .75rem; }
.li-dots { color: var(--ui-muted); }
.li-dots svg, .ig-dots svg { width: 1.25rem; height: 1.25rem; }
.li-caption { padding: 0 1rem .75rem; }
.li-actions { display: flex; justify-content: space-around; padding: .25rem .5rem; border-top: 1px solid var(--ui-line); margin-top: .25rem; }
.li-act { display: flex; align-items: center; gap: .4rem; padding: .6rem .5rem; font-size: .8125rem; font-weight: 600; color: var(--ui-muted); }
.li-act svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 480px) { .li-act { font-size: 0; gap: 0; } } /* icons only, as the app does on a phone */

.mock.ig { border: 1px solid #dbdbdb; border-radius: .5rem; max-width: 29.375rem; margin: 0 auto; }
html.dark .mock.ig { border-color: #26262a; }
.ig .cap .tag { color: #00376b; }
html.dark .ig .cap .tag { color: #e0f1ff; }
.ig .cap::before { content: attr(data-handle); float: left; font-weight: 600; margin-right: .35em; }
.ig-head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.ig-id { flex: 1; min-width: 0; }
.ig-name { font-size: .875rem; font-weight: 600; line-height: 1.2; }
.mock-img { aspect-ratio: 1; background: var(--ui-line); display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; font-weight: 700; font-size: 1.05rem; color: var(--ui-muted); }
.ig-actions { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem .35rem; color: var(--ui-text); }
.ig-actions-l { display: flex; gap: 1rem; }
.ig-caption { padding: .15rem 1rem 0; }
.ig-date { padding: .5rem 1rem 1rem; font-size: .6875rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ui-muted); }

.car { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 4 / 5; scrollbar-width: none; }
.car::-webkit-scrollbar { display: none; }
.car-frame {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center;
  padding: 2.5rem; text-align: center; color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3;
  background: linear-gradient(135deg, #000, color-mix(in srgb, #74832C 60%, #000));
}
.car-frame::before {
  content: attr(data-count); position: absolute; top: .75rem; right: .75rem; background: rgba(0,0,0,.65); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em; padding: .2rem .55rem; border-radius: 999px;
}

.slot-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .75rem auto 0; max-width: 29.375rem; padding: 0 .15rem; }
.is-li .slot-meta { max-width: none; }
.slot-plat { font-size: .625rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fff; padding: .2rem .5rem; border-radius: 9999px; }
.plat-li { background: #0a66c2; }
.plat-ig { background: #c13584; }
.slot-type, .slot-n { font-size: .7rem; color: var(--text3); }
.slot-n { margin-left: auto; }
.copy-sm {
  display: inline-flex; align-items: center; gap: .35rem; background: none; border: 1px solid var(--border); color: var(--text2);
  border-radius: .4rem; padding: .3rem .55rem; font-size: .7rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.copy-sm svg { width: .85rem; height: .85rem; }
.copy-sm:hover { border-color: var(--accent); color: var(--accent-text); }

/* Newsletter: the email as it lands in the inbox */

.nl { max-width: 48rem; margin: 0 auto; }
.toolbar { display: flex; gap: .7rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.copy-btn {
  display: flex; align-items: center; gap: .5rem; padding: .7rem 1.35rem; border-radius: .7rem; cursor: pointer; transition: all .2s;
  border: 2px solid var(--border); background: var(--surface); color: var(--text); font-size: .85rem; font-weight: 600;
}
.copy-btn svg { width: 1rem; height: 1rem; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.copy-btn.primary { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); }
.copy-btn.primary:hover { opacity: .9; color: #fff; }
.copied, .copy-btn.primary.copied { background: #047857; border-color: #047857; color: #fff; }
.view-switch { margin-left: auto; display: flex; border: 1px solid var(--border); border-radius: .7rem; overflow: hidden; background: var(--surface); }
.view-switch button { padding: .6rem 1rem; font-size: .78rem; font-weight: 600; border: 0; background: transparent; color: var(--text3); cursor: pointer; transition: all .18s; }
.view-switch button[aria-pressed="true"] { background: var(--surface2); color: var(--text); }

.mail-app { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-lg); overflow: hidden; }
.mail-chrome { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--surface2); border-bottom: 1px solid var(--border); }
.traffic { display: flex; gap: .4rem; }
.traffic span { width: 11px; height: 11px; border-radius: 50%; }
.traffic .r { background: #ff5f57; } .traffic .y { background: #febc2e; } .traffic .g { background: #28c840; }
.mail-search { flex: 1; max-width: 22rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 9999px; padding: .32rem .9rem; font-size: .72rem; color: var(--text3); text-align: center; }
.mail-folder { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.inbox-label { font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--text3); padding: .7rem 1.25rem .35rem; }
.inbox-row { position: relative; display: flex; gap: .85rem; align-items: flex-start; padding: .95rem 1.25rem; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.inbox-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.avatar { flex: none; width: 2.35rem; height: 2.35rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; letter-spacing: .02em; background: #000; color: #C2D479; }
.inbox-main { flex: 1; min-width: 0; }
.inbox-top { display: flex; align-items: center; gap: .5rem; }
.inbox-unread { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.inbox-from { font-weight: 700; font-size: .88rem; color: var(--text); }
.inbox-time { margin-left: auto; font-size: .72rem; color: var(--text3); white-space: nowrap; font-weight: 600; }
.inbox-subject { font-size: .86rem; font-weight: 600; color: var(--text); margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-snippet { font-size: .8rem; color: var(--text3); margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-open { padding: 1.4rem 1.5rem 1rem; }
.mail-subject { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.mail-meta { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; }
.mail-meta .avatar { width: 2.6rem; height: 2.6rem; font-size: .88rem; }
.mail-sender { font-size: .9rem; font-weight: 700; }
.mail-to { font-size: .76rem; color: var(--text3); margin-top: .1rem; }
.mail-date { margin-left: auto; text-align: right; font-size: .74rem; color: var(--text3); white-space: nowrap; }
.mail-body-wrap { background: var(--surface2); border-top: 1px solid var(--border); padding: 1.25rem 1rem 1.75rem; display: flex; justify-content: center; }
.mail-frame { width: 100%; max-width: 660px; transition: max-width .25s ease; }
.mail-frame.mobile { max-width: 390px; }
.reply-bar { display: flex; gap: .6rem; padding: .9rem 1.5rem 1.25rem; border-top: 1px solid var(--border); }
.reply-chip { border: 1px solid var(--border); border-radius: 9999px; padding: .45rem 1.1rem; font-size: .78rem; color: var(--text3); font-weight: 600; }

/* The email itself stays white in both themes, as a real one would. */
.email { background: #fff; color: #1f2937; border-radius: .55rem; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.email-head { padding: 1.4rem 2rem 1.2rem; border-bottom: 1px solid #e5e7eb; font-size: .95rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #111827; }
.email-body { padding: 1.75rem 2rem 2rem; font-size: .95rem; line-height: 1.7; }
.email-body p, .email-body ul, .email-body ol { margin-bottom: 1rem; }
.email-body ul { list-style: disc; padding-left: 1.25rem; }
.email-body ol { list-style: decimal; padding-left: 1.25rem; }
.email-body strong { font-weight: 700; color: #111827; }
.email-body a { color: #505C18; text-decoration: underline; }
.merge { font: .8em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #eef2e0; color: #3b4411; border-radius: .3rem; padding: .05em .35em; }
.nl-btn { display: inline-block; margin: .25rem 0; background: #505C18; color: #fff; font-weight: 700; padding: .7rem 1.4rem; border-radius: .5rem; }

.notes { margin-top: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem 1.75rem; }
.notes h2 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); margin-bottom: .9rem; }
.notes dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: .55rem 1rem; font-size: .86rem; }
.notes dt { color: var(--text3); font-weight: 600; }
.notes dd { color: var(--text); line-height: 1.55; }
.notes .prose { margin-top: 1.25rem; }
@media (max-width: 560px) { .notes dl { grid-template-columns: 1fr; gap: .2rem 0; } .notes dd { margin-bottom: .7rem; } }

footer.site { border-top: 1px solid var(--border); padding: 2.5rem 0; text-align: center; font-size: .8rem; color: var(--text3); }
footer.site a { color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
