/* ============================================================
   events.stonify.net/webinars/onmanage
   Consumes design-system/ui-kit/tokens.css for tokens, fonts, body
   baseline, and brand utilities. Local declarations below are
   page-specific overrides or compositions.

   Asset base URL — single source of truth for R2-hosted webinar
   assets, also declared as ASSET_BASE in script.js:
     https://cdn-events.stonify.net/webinars/onmanage/
   HTML <img>/<link> tags inline this URL so the browser preloader
   can pre-fetch during HTML parse. When the custom CDN domain
   replaces the R2.dev URL, update it everywhere (sed across
   index.html / 404.html / script.js / this comment).
   ============================================================ */

:root {
  /* Page-only token. Kit lacks a full-chamfer-sm primitive;
     --stonify-chamfer-pill has the same numeric value but encodes
     one-corner pill semantics, not full chamfer. Promote to the
     kit if the partner-card pattern recurs on other surfaces. */
  --stonify-chamfer-sm: 0.5rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-stonify);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; margin: 0; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Type roles
   ============================================================ */
.eb {
  margin: 0;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: hsl(var(--muted-foreground));
}
.eb--lg { letter-spacing: 0.26em; }
.eb--accent {
  display: inline-flex; align-items: center; gap: 14px;
}
.eb--accent::after {
  content: ""; display: inline-block; width: 48px; height: 1px;
  background: hsl(var(--border) / .35);
}

.h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.0;
  color: hsl(var(--foreground));
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: hsl(var(--foreground));
  max-width: 22ch;
  text-wrap: balance;
}
/* short-noun-label variant of h2 — for single-word headings ("Programa", "Oradores") */
.h2--label { max-width: none; }

.h3 {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: hsl(var(--foreground));
}
.lead {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  max-width: 60ch;
  text-wrap: pretty;
}
.body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
  max-width: 62ch;
  text-wrap: pretty;
}
@media (min-width: 768px) { .body { font-size: 16px; } }
.body strong { color: hsl(var(--foreground)); font-weight: 600; }

/* ============================================================
   Sections
   ============================================================ */
.section {
  position: relative;
  padding: 40px 24px;
}
@media (min-width: 768px) { .section { padding: 64px 32px; } }
.section--muted { background: hsl(var(--section-muted)); }
.inner {
  max-width: 1152px;
  margin: 0 auto;
  width: 100%;
}
.inner--narrow { max-width: 880px; }
.section__header { margin-bottom: 28px; }
@media (min-width: 768px) { .section__header { margin-bottom: 36px; } }

/* ============================================================
   Header
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: hsla(198, 31%, 6%, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border) / .25);
}
@media (min-width: 768px) { .hdr { padding: 18px 40px; } }
.hdr__brand { display: inline-flex; align-items: center; }
.hdr__brand img { height: 22px; width: auto; }
.hdr__link {
  font-size: 13px; font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s;
}
.hdr__link:hover { color: hsl(var(--foreground)); }
.hdr__link svg { width: 12px; height: 12px; opacity: .7; }

/* Section anchor nav — centered between brand and stonify.net link */
.hdr__nav {
  display: none;
  gap: 28px;
  align-items: center;
}
.hdr__navlink {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color .15s;
}
.hdr__navlink:hover { color: hsl(var(--foreground)); }

/* Burger button — mobile only */
.hdr__burger {
  display: inline-flex;
  align-items: center; justify-content: center;
  color: hsl(var(--foreground));
  padding: 4px;
}
.hdr__burger svg { width: 22px; height: 22px; }

@media (min-width: 768px) {
  .hdr__nav { display: inline-flex; gap: 32px; }
  .hdr__navlink { font-size: 15px; }
  .hdr__link { font-size: 15px; }
  .hdr__link svg { width: 14px; height: 14px; }
  .hdr__burger { display: none; }
}
@media (max-width: 767px) {
  .hdr__link { display: none; }
}

/* Mobile drawer — fullscreen overlay opened by the burger */
.hdr__drawer {
  position: fixed; inset: 0;
  z-index: 50;
  background: hsla(198, 31%, 6%, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.hdr__drawer[data-open="true"] {
  opacity: 1;
  visibility: visible;
}
.hdr__drawer-inner {
  padding: 16px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}
.hdr__close {
  align-self: flex-end;
  color: hsl(var(--foreground));
  padding: 4px;
  display: inline-flex;
}
.hdr__close svg { width: 24px; height: 24px; }
.hdr__drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.hdr__drawer-link {
  font-size: 24px; font-weight: 500;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid hsl(var(--border) / 0.15);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color .15s;
}
.hdr__drawer-link:hover { color: hsl(var(--secondary)); }
.hdr__drawer-link--external svg {
  width: 18px; height: 18px;
  opacity: 0.7;
}
@media (min-width: 768px) {
  .hdr__drawer { display: none; }
}
body[data-drawer-open="true"] { overflow: hidden; }

/* Section anchor offset — accommodate sticky header */
section[id] { scroll-margin-top: 80px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-stonify); font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: filter .15s, background .2s;
  clip-path: polygon(0 0, calc(100% - 11.2px) 0, 100% 11.2px, 100% 100%, 11.2px 100%, 0 calc(100% - 11.2px));
  letter-spacing: 0.01em;
}
.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn--primary:hover {
  background: var(--gradient-brand);
  filter: brightness(1.08);
}
@media (hover: none), (max-width: 767px) {
  .btn--primary { background: var(--gradient-brand); }
}
.btn--xl { min-height: 60px; padding: 0 36px; font-size: 17px; }
.btn__arrow { margin-left: 12px; display: inline-flex; }

.cta-microcopy {
  margin-top: 14px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.02em;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  padding: 32px 24px 48px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 48px 40px 64px; } }
@media (min-width: 1024px) { .hero { padding: 56px 40px 72px; } }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://cdn-events.stonify.net/webinars/onmanage/hero-quarry.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.05);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      hsla(var(--background) / 1) 0%,
      hsla(var(--background) / 0.95) 40%,
      hsla(var(--background) / 0.7) 70%,
      hsla(var(--background) / 0.65) 100%
    ),
    radial-gradient(
      ellipse 60% 70% at 85% 15%,
      hsla(var(--primary) / 0.28) 0%,
      hsla(var(--primary) / 0.1) 40%,
      transparent 70%
    );
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero::before {
    background-position: center center;
  }
  .hero::after {
    background:
      linear-gradient(
        180deg,
        hsla(var(--background) / 1) 0%,
        hsla(var(--background) / 0.95) 20%,
        hsla(var(--background) / 0.7) 90%,
        hsla(var(--background) / 0.65) 100%
      ),
      radial-gradient(
        ellipse 80% 40% at 50% 8%,
        hsla(var(--primary) / 0.22) 0%,
        hsla(var(--primary) / 0.06) 50%,
        transparent 75%
      );
  }
}

.hero__inner {
  max-width: 1152px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Pixel accents — brand pattern: two squares offset diagonally with 4px overlap.
   Cluster top-right on desktop, bottom-right on mobile. Fills vary per pair:
   signature gradient+white, mirrored, frosted (lets the image show through),
   and dual-colour. */
.hero__bloom {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero__bloom .pair {
  --sq: 24px;
  position: absolute;
  width: calc(2 * var(--sq) - 4px);
  height: calc(2 * var(--sq) - 4px);
}
.hero__bloom .pair::before,
.hero__bloom .pair::after {
  content: "";
  position: absolute;
  display: block;
  width: var(--sq);
  height: var(--sq);
}
.hero__bloom .pair::before { top: 0; left: 0; }
.hero__bloom .pair::after  { bottom: 0; right: 0; }

/* pair 1 — signature: brand gradient (top-left) + white (bottom-right) */
.hero__bloom .pair:nth-child(1)::before {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
}
.hero__bloom .pair:nth-child(1)::after {
  background: hsl(var(--foreground));
}

/* pair 2 — mirrored signature */
.hero__bloom .pair:nth-child(2)::before {
  background: hsl(var(--foreground));
}
.hero__bloom .pair:nth-child(2)::after {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
}

/* pair 3 — frosted glass + primary; backdrop-filter blurs the image behind */
.hero__bloom .pair:nth-child(3)::before {
  background: hsla(var(--foreground) / 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__bloom .pair:nth-child(3)::after {
  background: hsl(var(--primary));
}

/* pair 4 — dual-colour, no white */
.hero__bloom .pair:nth-child(4)::before {
  background: hsl(var(--primary));
}
.hero__bloom .pair:nth-child(4)::after {
  background: hsl(var(--secondary));
}

/* mobile: bottom-right cluster */
.hero__bloom .pair:nth-child(1) { bottom: 4%;  right: 4%;  --sq: 32px; }
.hero__bloom .pair:nth-child(2) { bottom: 16%; right: 14%; --sq: 26px; }
.hero__bloom .pair:nth-child(3) { bottom: 8%;  right: 26%; --sq: 20px; }
.hero__bloom .pair:nth-child(4) { bottom: 22%; right: 5%;  --sq: 0px; }

/* desktop: top-right cluster, larger squares */
@media (min-width: 768px) {
  .hero__bloom .pair:nth-child(1) { top: 10%; right: 4%;  bottom: auto; --sq: 36px; }
  .hero__bloom .pair:nth-child(2) { top: 28%; right: 14%; bottom: auto; --sq: 30px; }
  .hero__bloom .pair:nth-child(3) { top: 14%; right: 26%; bottom: auto; --sq: 24px; }
  .hero__bloom .pair:nth-child(4) { top: 40%; right: 6%;  bottom: auto; --sq: 38px; }
}

.hero__meta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.hero__meta::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px;
  background: var(--gradient-brand);
}

.hero__h1 { margin: 0 0 12px; max-width: 18ch; }
.hero__question {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: hsl(var(--muted-foreground));
  text-wrap: balance;
}
.hero__sub {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  font-weight: 500;
  color: hsl(var(--foreground));
  max-width: 64ch;
  text-wrap: pretty;
}

.hero__lower {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) {
  .hero__lower { grid-template-columns: 1fr auto; gap: 48px; }
}

.hero__factblock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  max-width: 520px;
}
.fact { padding-left: 14px; border-left: 1px solid hsl(var(--border) / .35); }
.fact__l {
  margin: 0 0 6px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: hsl(var(--muted-foreground));
}
.fact__v {
  margin: 0;
  font-size: 17px; font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.fact__v small {
  font-size: 13px; font-weight: 500;
  color: hsl(var(--muted-foreground));
  display: block;
  letter-spacing: 0;
  margin-top: 2px;
}

.hero__cta {
  display: flex; flex-direction: column; align-items: flex-start;
}

.hero-image-wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
@media (min-width: 768px) { .hero-image-wrap { padding: 0 40px 96px; } }

/* ============================================================
   Image placeholders (§5 of original brief)
   ============================================================ */
.img-slot {
  position: relative;
  background: linear-gradient(180deg, hsl(var(--card)) 0%, hsl(var(--card-bottom)) 100%);
  border: 1px solid hsl(var(--border) / .25);
  overflow: hidden;
  --stonify-chamfer-lg: var(--stonify-chamfer-sm);
  clip-path: polygon(
    0 var(--stonify-chamfer-lg),
    var(--stonify-chamfer-lg) 0,
    calc(100% - var(--stonify-chamfer-lg)) 0,
    100% var(--stonify-chamfer-lg),
    100% calc(100% - var(--stonify-chamfer-lg)),
    calc(100% - var(--stonify-chamfer-lg)) 100%,
    var(--stonify-chamfer-lg) 100%,
    0 calc(100% - var(--stonify-chamfer-lg))
  );
}
.img-slot::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, hsl(var(--border) / .06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, hsl(var(--border) / .04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.img-slot--16-9 { aspect-ratio: 16 / 9; }
.img-slot--1-1 { aspect-ratio: 1 / 1; }
.img-slot__label {
  position: absolute;
  top: 16px; left: 18px; right: 18px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  z-index: 2;
}
.img-slot__label::before {
  content: "Imagem · placeholder";
  display: block;
  color: hsl(var(--secondary));
  margin-bottom: 4px;
  font-size: 9px;
}
.img-slot__meta {
  position: absolute;
  bottom: 16px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; gap: 12px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground) / .8);
  z-index: 2;
}
/* When a real <img> is dropped in, it covers the placeholder labels. */
.img-slot > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 3;
}

/* ============================================================
   Thesis — heading left-aligned; two-column body + full-width
   punchline (gradient-underlined); stats strip below
   ============================================================ */
.thesis__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 0;
}
.thesis__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .thesis__cols { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.thesis__body .body { max-width: none; }

.thesis__punch {
  position: relative;
  margin: 0;
  padding-bottom: 20px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
  text-wrap: pretty;
}
.thesis__punch::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 72px;
}
@media (min-width: 640px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}
@media (min-width: 900px) {
  .stat-row { margin-top: 88px; gap: 64px; }
}

.stat { padding: 0; border: 0; }
.stat__v {
  margin: 0 0 6px;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}
.stat__v .unit {
  font-size: 0.6em; font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-left: 4px;
  letter-spacing: 0;
}
.stat__l {
  margin: 8px 0 6px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: hsl(var(--muted-foreground));
}
.stat__d {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: hsl(var(--muted-foreground));
  max-width: 38ch;
}

/* ============================================================
   Pull-quote
   ============================================================ */
.pullquote {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 32px;
  max-width: 980px;
}
.pullquote__rail { width: 2px; background: var(--gradient-brand); }
.pullquote__col { display: flex; flex-direction: column; gap: 24px; }
.pullquote__q {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  text-wrap: pretty;
}
.pullquote__q::before {
  content: "\201C";
  display: inline-block;
  color: hsl(var(--secondary));
  font-size: 1.6em; line-height: 0;
  vertical-align: -0.32em;
  margin-right: 8px;
  font-weight: 400;
}
.pullquote__q::after {
  content: "\201D";
  display: inline;
  color: hsl(var(--secondary));
  font-size: 1.6em; line-height: 0;
  vertical-align: -0.32em;
  margin-left: 4px;
  font-weight: 400;
}

/* ============================================================
   Programme
   Mobile (≤767):                    Desktop (≥768):
     [10:30]  Speaker                  [10:30 – 10:35]  [Description]  [Speaker / Affiliation]
     [10:35]  Affiliation
              Description
   ============================================================ */
.prog {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid hsl(var(--border) / .35);
}
.prog__row {
  display: grid;
  border-bottom: 1px solid hsl(var(--border) / .25);
  padding: 18px 0;
  grid-template-columns: 56px 1fr;
  grid-template-areas:
    "ts  spk"
    "te  aff"
    ".   desc";
  column-gap: 16px;
  row-gap: 2px;
}
.prog__t-start {
  grid-area: ts;
  font-family: var(--font-stonify);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.6;
}
.prog__t-end {
  grid-area: te;
  font-family: var(--font-stonify);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.6;
}
.prog__speaker {
  grid-area: spk;
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.6;
}
.prog__affil {
  grid-area: aff;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}
.prog__affil:empty { display: none; }
.prog__desc {
  grid-area: desc;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}
.prog__desc em {
  font-style: italic;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .prog__row {
    grid-template-columns: 160px 1fr 240px;
    grid-template-areas:
      "ts   desc  spk"
      "ts   desc  aff";
    column-gap: 32px;
    row-gap: 0;
    padding: 28px 0;
    align-items: start;
  }
  .prog__t-start {
    align-self: start;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .prog__t-start::after {
    content: "\00a0\2013\00a0" attr(data-end);
    color: hsl(var(--muted-foreground));
  }
  .prog__t-end { display: none; }
  .prog__desc {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: hsl(var(--foreground));
    letter-spacing: -0.01em;
    line-height: 1.45;
  }
  .prog__speaker {
    font-size: 14px;
    line-height: 1.4;
  }
  .prog__affil {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* ============================================================
   Speakers
   ============================================================ */
.speakers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) { .speakers { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.spk { display: flex; flex-direction: column; gap: 18px; }
.spk__portrait { width: 100%; max-width: 260px; }
.spk__portrait img { display: block; }
.spk__namelink {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: color .15s;
}
.spk__namelink:hover { color: hsl(var(--secondary)); }
.spk__namelink:hover .spk__name-icon { opacity: 1; }
.spk__name {
  margin: 0;
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  line-height: 1.2;
}
.spk__namelink:hover .spk__name { color: hsl(var(--secondary)); }
.spk__name-icon {
  display: inline-block;
  width: 12px; height: 12px;
  color: hsl(var(--muted-foreground));
  opacity: .6;
  transition: opacity .15s;
}
.spk__role {
  margin: 6px 0 0;
  font-size: 14px; font-weight: 600;
  color: hsl(var(--secondary));
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.spk__bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
  max-width: 38ch;
}

/* Mobile: each speaker becomes a horizontal card — small portrait left,
   name + role + bio stacked on the right */
@media (max-width: 767px) {
  .speakers { gap: 28px; }
  .spk {
    display: grid;
    grid-template-columns: 76px 1fr;
    grid-template-areas:
      "img name"
      "img bio";
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
  }
  .spk__portrait {
    grid-area: img;
    width: 76px; height: 76px;
    max-width: none;
    align-self: start;
  }
  .spk > :nth-child(2) { grid-area: name; align-self: end; }
  .spk__bio {
    grid-area: bio;
    font-size: 13px;
    line-height: 1.5;
    max-width: none;
  }
  .spk__name { font-size: 17px; }
  .spk__role { font-size: 13px; font-weight: 600; margin-top: 4px; }
}

/* ============================================================
   Eixos — desktop grid / mobile carousel
   ============================================================ */
.eixos {
  display: grid;
  gap: 24px;
}
.eixo {
  position: relative;
  padding: 28px 24px 28px;
  background: linear-gradient(180deg, hsl(var(--card)) 0%, hsl(var(--card-bottom)) 100%);
  border: 1px solid hsl(var(--border) / .25);
  clip-path: polygon(
    0 0,
    calc(100% - 11.2px) 0,
    100% 11.2px,
    100% 100%,
    11.2px 100%,
    0 calc(100% - 11.2px)
  );
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
}
.eixo__num {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em;
  color: hsl(var(--secondary));
  font-variant-numeric: tabular-nums;
}
.eixo__title {
  margin: 0;
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  line-height: 1.2;
}
.eixo__body {
  margin: 0;
  font-size: 15px; line-height: 1.6;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

/* Mobile: horizontal snap carousel */
@media (max-width: 639px) {
  .eixos-scroller {
    margin: 0 -24px; /* bleed to screen edge */
  }
  .eixos {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding: 4px 24px 16px;
    scrollbar-width: none;
  }
  .eixos::-webkit-scrollbar { display: none; }
  .eixo {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 200px;
  }
  .eixos-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }
  .eixos-dot {
    width: 6px; height: 6px;
    background: hsl(var(--border) / .4);
    border-radius: 0;
    transition: background-color .15s, transform .15s;
  }
  .eixos-dot[data-active="true"] {
    background: hsl(var(--secondary));
    transform: scaleX(2.2);
  }
}
@media (min-width: 640px) {
  .eixos { grid-template-columns: repeat(2, 1fr); }
  .eixos-dots { display: none; }
}
@media (min-width: 1024px) {
  .eixos { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ============================================================
   Partners — side-by-side at all breakpoints
   ============================================================ */
.partners {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
  flex-wrap: nowrap;
}
@media (min-width: 640px) { .partners { gap: 24px; } }
@media (min-width: 1024px) { .partners { gap: 32px; } }

.partner {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease;
}
.partner:hover { transform: translateY(-2px); }
.partner:hover .partner__logo-card { border-color: hsl(var(--secondary) / .5); }

.partner__logo-card {
  background: linear-gradient(180deg, hsl(var(--card)) 0%, hsl(var(--card-bottom)) 100%);
  border: 1px solid hsl(var(--border) / .25);
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 24px;
  clip-path: polygon(
    0 var(--stonify-chamfer-sm),
    var(--stonify-chamfer-sm) 0,
    calc(100% - var(--stonify-chamfer-sm)) 0,
    100% var(--stonify-chamfer-sm),
    100% calc(100% - var(--stonify-chamfer-sm)),
    calc(100% - var(--stonify-chamfer-sm)) 100%,
    var(--stonify-chamfer-sm) 100%,
    0 calc(100% - var(--stonify-chamfer-sm))
  );
  transition: border-color .15s;
}
@media (max-width: 480px) {
  .partner__logo-card { height: 80px; padding: 12px 14px; }
}
@media (min-width: 768px) { .partner__logo-card { height: 144px; padding: 24px 32px; } }

.partner__logo-card img {
  max-height: 100%;
  max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
}

/* ============================================================
   Closing
   ============================================================ */
.closing { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; max-width: 720px; }
.closing__h { margin: 0; }
.closing__ctx {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  max-width: 60ch;
}
@media (min-width: 768px) { .closing__ctx { font-size: 17px; } }
.closing__cta { display: flex; flex-direction: column; align-items: flex-start; margin-top: 8px; }

/* Recap access form — the post-event CTA swap. Lives at #acesso; the hero CTA
   scrolls here (or jumps straight to the player when a session already exists). */
.recap { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; }
.recap__label { font-size: 13px; font-weight: 600; color: hsl(var(--foreground)); letter-spacing: 0.01em; }
.recap__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.recap__input {
  flex: 1 1 280px; min-width: 0;
  background: hsl(var(--background)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border) / .35);
  padding: 0 18px; min-height: 56px; font: inherit; font-size: 16px; font-weight: 500;
  clip-path: polygon(0 0, calc(100% - 11.2px) 0, 100% 11.2px, 100% 100%, 11.2px 100%, 0 calc(100% - 11.2px));
}
.recap__input::placeholder { color: hsl(var(--muted-foreground) / .8); }
.recap__input:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; border-color: hsl(var(--secondary)); }
.recap__submit { flex: 0 0 auto; white-space: nowrap; min-height: 56px; padding: 0 26px; font-size: 16px; }
.recap__submit:disabled { opacity: .6; cursor: default; }
@media (max-width: 520px) {
  .recap__row { flex-direction: column; align-items: stretch; }
  .recap__submit { width: 100%; }
}
.recap__turnstile:empty { display: none; }
.recap__msg { margin: 0; font-size: 14px; line-height: 1.5; min-height: 1em; }
.recap__msg[data-state="err"] { color: hsl(var(--destructive)); }
.recap__msg[data-state="ok"]  { color: hsl(var(--secondary)); }
.recap__sent { margin: 0; font-size: 15px; line-height: 1.6; color: hsl(var(--foreground)); max-width: 46ch; }
.recap__legal { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.recap__legal a { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 2px; }
/* "check your inbox" state — hide the inputs, show the confirmation */
.recap.is-sent .recap__row,
.recap.is-sent .recap__label,
.recap.is-sent .recap__turnstile,
.recap.is-sent .recap__msg { display: none; }
.recap.is-sent .recap__sent { display: block; }

/* ============================================================
   Footer
   ============================================================ */
.ftr {
  padding: 40px 24px 48px;
  border-top: 1px solid hsl(var(--border) / .25);
  display: flex; flex-direction: column;
  gap: 24px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) {
  .ftr { padding: 48px 40px; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
}
.ftr__brand { display: inline-flex; align-items: center; }
.ftr__brand img { height: 18px; width: auto; }
.ftr__links { display: inline-flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ftr__links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.ftr__links a:hover { color: hsl(var(--foreground)); }
.ftr__copy { letter-spacing: 0.02em; }

/* small util */
.arrow-icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }

/* ============================================================
   Demonstração — tabs + scroll-snap screenshot carousel
   ============================================================ */
.demo__tabs {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .demo__tabs { gap: 48px; margin-bottom: 48px; }
}
.demo__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 22px 14px 24px;
  cursor: pointer;
  transition: transform .15s;
}
.demo__tab:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 4px; }
.demo__logo {
  display: block;
  height: 34px;
  width: auto;
  transition: opacity .15s;
}
@media (min-width: 768px) {
  .demo__logo { height: 40px; }
  .demo__tab { padding: 26px 16px 28px; }
}
/* stack the two logo variants on top of each other; show only one */
.demo__tab .demo__logo--inactive { display: none; }
.demo__tab[aria-selected="false"] .demo__logo--active { display: none; }
.demo__tab[aria-selected="false"] .demo__logo--inactive { display: block; opacity: 0.55; }
.demo__tab[aria-selected="false"]:hover .demo__logo--inactive,
.demo__tab[aria-selected="false"]:focus-visible .demo__logo--inactive { opacity: 0.85; }

/* brand-gradient hairline under the active tab */
.demo__tab::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity .15s;
}
.demo__tab[aria-selected="true"]::after { opacity: 1; }

/* Viewer wraps carousels + arrows */
.demo__viewer {
  position: relative;
}

/* Carousels */
.demo__carousels {
  position: relative;
  margin: 0 -24px;
}
@media (min-width: 768px) {
  .demo__carousels { margin: 0; }
}

/* Arrow nav (desktop only — mobile uses touch swipe) */
.demo__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center;
  background: hsla(var(--background) / 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border) / .45);
  color: hsl(var(--foreground));
  cursor: pointer;
  z-index: 4;
  transition: opacity .15s, background-color .15s, border-color .15s;
}
.demo__nav svg { width: 20px; height: 20px; display: block; }
.demo__nav:hover:not([disabled]) {
  background: hsla(var(--background) / 0.95);
  border-color: hsl(var(--border) / .7);
}
.demo__nav:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
.demo__nav[disabled] {
  opacity: 0.25;
  cursor: default;
}
.demo__nav--prev { left: -22px; }
.demo__nav--next { right: -22px; }
@media (min-width: 768px) {
  .demo__nav { display: inline-flex; }
}
.demo__carousel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding: 4px 24px 16px;
  scrollbar-width: none;
}
.demo__carousel::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .demo__carousel { gap: 24px; padding: 4px 0 16px; }
}
.demo__carousel[hidden] { display: none; }

/* Screenshot card — image + caption stacked, no card background
   (screenshots may have transparency; section bg shows through) */
.demo__card {
  position: relative;
  flex: 0 0 min(85vw, 580px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform .25s ease;
}
.demo__card img {
  display: block;
  width: 100%;
  height: auto;
}
.demo__card-caption {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .demo__card-caption { font-size: 15px; }
}

/* Card focus/hover state — active card gets a zoom-in cursor */
.demo__card:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 4px;
}
.demo__card[data-active-card="true"] { cursor: zoom-in; }

/* Lightbox dialog */
.demo__lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  color: hsl(var(--foreground));
  max-width: min(96vw, 1080px);
  max-height: 92vh;
  width: auto;
  height: auto;
  overflow: visible;
}
.demo__lightbox::backdrop {
  background: hsla(0 0% 0% / 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.demo__lightbox[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo__lightbox-imgwrap {
  position: relative;
  overflow: hidden;
  line-height: 0;
  max-height: 80vh;
}
.demo__lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  cursor: zoom-in;
  transition: transform .25s ease;
  transform-origin: center center;
}
.demo__lightbox-img[data-zoomed="true"] {
  cursor: zoom-out;
}
.demo__lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: hsla(0 0% 0% / 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid hsla(0 0% 100% / .2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background-color .15s;
}
.demo__lightbox-close:hover {
  background: hsla(0 0% 0% / 0.75);
}
.demo__lightbox-close:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
.demo__lightbox-close svg { width: 16px; height: 16px; display: block; }
.demo__lightbox-caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
  max-width: 80ch;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .demo__lightbox-caption { font-size: 15px; }
}

/* Lock body scroll while dialog open (native behavior is variable) */
body:has(.demo__lightbox[open]) { overflow: hidden; }

/* Pagination dots (mirror eixos-dot styling) */
.demo__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.demo__dot {
  width: 6px; height: 6px;
  background: hsl(var(--border) / .4);
  border: 0; padding: 0;
  cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.demo__dot[data-active="true"] {
  background: hsl(var(--secondary));
  transform: scaleX(2.2);
}
