/* Site institucional. Mesmo sistema visual da LP do livro (lp-ebook/index.html): tokens, fontes, botão, kicker, fita, strips. */
:root {
  color-scheme: dark;
  --bg-0: #060708;
  --bg-1: #0b0e11;
  --bg-2: #12161b;
  --bg-3: #1a2027;
  --line: #28313b;
  --line-2: #3a4552;
  --led-off: #1c232b;
  --track: #05070a;
  --ink: #eef2f5;
  --ink-2: #b4bdc7;
  --ink-3: #8a95a1;
  --accent: #ff9a2e;
  --accent-hover: #ffad57;
  --accent-ink: #060708;
  --accent-key: #9a560f;
  --accent-soft: rgba(255, 154, 46, .08);
  --accent-line: rgba(255, 154, 46, .55);
  --led-green: #2fe07b;
  --led-yellow: #ffd23f;
  --led-glow-green: 0 0 14px rgba(47, 224, 123, .6);
  --led-glow-accent: 0 0 8px rgba(255, 154, 46, .8);
  --led-glow-lamp: 0 0 8px rgba(255, 226, 184, .55);
  --lamp: #ffe2b8;
  --strip-blue: #46c2ff;
  --strip-tape: #e8d6b4;
  --stage-bg:
    radial-gradient(ellipse 55% 65% at 74% -10%, rgba(255, 190, 110, .13), transparent 62%),
    radial-gradient(ellipse 45% 35% at 8% 112%, rgba(120, 150, 190, .07), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, #07080a 100%);

  --f-display: "Barlow Condensed", "Avenir Next Condensed", "DIN Condensed", sans-serif;
  --f-body: "Barlow", "Avenir Next", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --fs-h1: clamp(3rem, 6.6vw, 6rem);
  --fs-h2: clamp(2.25rem, 4.6vw, 4rem);
  --fs-h3: clamp(1.6rem, 2.6vw, 2.25rem);
  --fs-lead: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-body: clamp(1.0625rem, 1.15vw, 1.125rem);
  --fs-small: .9375rem;
  --fs-label: .8125rem;
  --font-label: 700 var(--fs-label)/1 var(--f-mono);
  --font-label-soft: 500 var(--fs-label)/1.3 var(--f-mono);
  --r-strip: 3px;
  --r-btn: 6px;
  --r-card: 8px;
  --r-panel: 14px;
  --bw: 1.5px;
  --page-max: 1200px;
  --gutter: clamp(16px, 4vw, 64px);
  --section-y: clamp(72px, 9vw, 132px);
  --ease-stage: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .2s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-2);
  font: 400 var(--fs-body)/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--ink);
  line-height: .95;
  letter-spacing: -.005em;
  text-wrap: balance;
}
strong { color: var(--ink); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); font-weight: 600; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }

/* luz de palco atrás de tudo */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--stage-bg); pointer-events: none; }
.haze { position: absolute; border-radius: 50%; will-change: transform; }
.haze--amber { width: 70vw; height: 70vw; top: -30vw; right: -20vw; background: radial-gradient(circle, rgba(255, 154, 46, .09), transparent 65%); }
.haze--blue { width: 60vw; height: 60vw; bottom: -30vw; left: -20vw; background: radial-gradient(circle, rgba(70, 194, 255, .05), transparent 65%); }

/* layout */
.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sec { padding-block: var(--section-y); position: relative; scroll-margin-top: 72px; }
.sec + .sec { border-top: 1px solid rgba(40, 49, 59, .6); }
.kicker {
  font: var(--font-label-soft);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.kicker--accent { color: var(--accent); }
.h2 { font-size: var(--fs-h2); max-width: 18ch; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); max-width: 54ch; }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .lead { margin-top: 4px; }
@media (min-width: 980px) {
  .sec-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
}

/* cabeçalho */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 7, 8, .82); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font: 800 1.5rem/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: clamp(4px, 2vw, 28px); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font: var(--font-label); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 559px) {
  .brand { font-size: 1.2rem; }
  .nav a { font-size: .75rem; letter-spacing: .06em; padding: 0 4px; }
}

/* botões */
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 6px 30px 4px;
  background: var(--accent); color: var(--accent-ink);
  font: 800 1.5rem/1 var(--f-display);
  text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; text-align: center;
  border-radius: var(--r-btn);
  box-shadow: 0 4px 0 var(--accent-key);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-key); }
.btn:focus-visible { outline-color: var(--lamp); outline-offset: 5px; }
.btn--ghost { background: transparent; color: var(--ink); border: var(--bw) solid var(--line-2); box-shadow: 0 4px 0 var(--track); }
.btn--ghost:hover { background: var(--bg-3); border-color: var(--accent); }
@media (max-width: 559px) {
  .cta .btn { display: flex; width: 100%; padding-inline: 14px; font-size: 1.3rem; }
}
.link-more {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0;
  font: 600 1.25rem/1 var(--f-display); letter-spacing: .02em;
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2);
}
.link-more:hover { text-decoration-color: var(--accent); }

/* LEDs */
.led { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--led-off); flex: none; }
.led--green { background: var(--led-green); box-shadow: var(--led-glow-green); }
.led--accent { background: var(--accent); box-shadow: var(--led-glow-accent); }
.led--lamp { background: var(--lamp); box-shadow: var(--led-glow-lamp); }

/* visor (rótulo com LED) */
.visor {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-1); border: var(--bw) solid var(--line-2); border-radius: var(--r-card);
  padding: 10px 14px 9px;
  font: var(--font-label); font-size: .8125rem; letter-spacing: .12em; color: var(--accent);
}

/* fita crepe com o nome, como na LP */
.tape {
  display: inline-block; transform: rotate(-1.2deg);
  background: var(--strip-tape); color: #2a2318;
  font: 800 clamp(1.9rem, 3.6vw, 2.8rem)/1 var(--f-display); letter-spacing: .01em;
  padding: 10px 18px 8px; border-radius: 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  background-image: linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px), linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.05));
}

/* foto em moldura */
.photo { margin: 0; position: relative; }
.photo-frame { background: var(--bg-2); border: var(--bw) solid var(--line); border-radius: var(--r-panel); padding: 6px; }
.photo-frame img { width: 100%; border-radius: 8px; object-fit: cover; }
.photo figcaption { margin-top: 12px; font: var(--font-label-soft); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* strips de mesa (fita / azul) */
.strips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.strips li {
  font: var(--font-label); letter-spacing: .08em;
  padding: 7px 9px 6px; border-radius: var(--r-strip); border: var(--bw) solid;
}
.strips--tape li { color: var(--strip-tape); border-color: rgba(232, 214, 180, .6); background: rgba(232, 214, 180, .08); }
.strips--blue li { color: var(--strip-blue); border-color: rgba(70, 194, 255, .6); background: rgba(70, 194, 255, .07); }

/* marcador de lista: risco da escala do fader */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; max-width: 58ch; }
.ticks li + li { margin-top: 14px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 3px; background: var(--ink-3); }

/* ============ HERO ============ */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: var(--fs-h1); max-width: 12ch; }
.hero-sub { margin-top: 24px; max-width: 46ch; }
.hero-visual { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.hero-visual .photo-frame img { aspect-ratio: 4 / 5; }
.hero-visual .tape { position: absolute; left: -14px; bottom: 56px; z-index: 2; }
.hero-visual .visor { position: absolute; right: -10px; top: 22px; z-index: 2; color: var(--ink); background: rgba(11, 14, 17, .92); }
@media (max-width: 559px) {
  .hero-visual .tape { left: 8px; }
  .hero-visual .visor { right: 8px; }
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero-visual { justify-self: end; }
}

/* ============ NÚMEROS ============ */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat {
  background: var(--bg-2); border: var(--bw) solid var(--line); border-radius: var(--r-panel);
  padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 14px; align-content: start;
}
.stat-num { font: 800 clamp(2.8rem, 6vw, 4.6rem)/.9 var(--f-display); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat-num span { color: var(--accent); }
.stat-meter { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.stat-meter i { height: 8px; border-radius: 2px; background: #17402b; }
.stat-meter i.on { background: var(--led-green); box-shadow: 0 0 6px rgba(47, 224, 123, .35); }
.stat-meter i.y { background: #4a3f17; }
.stat-meter i.y.on { background: var(--led-yellow); box-shadow: none; }
.stat-label { font: var(--font-label-soft); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ============ O QUE TEM AQUI (cards) ============ */
.get-grid { display: grid; gap: 16px; }
.get-card {
  background: var(--bg-2); border: var(--bw) solid var(--line); border-radius: var(--r-panel);
  padding: 28px 24px; display: grid; gap: 14px; align-content: start;
}
.get-card h3 { font-size: var(--fs-h3); }
.get-card p { max-width: 44ch; }
.get-icon { width: 40px; height: 40px; stroke: var(--lamp); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.status {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  font: var(--font-label); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.status--on { color: var(--led-green); }
.status--wip { color: var(--lamp); }
@media (min-width: 760px) { .get-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ CATÁLOGO ============ */
.cat-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.prod {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  background: var(--bg-2); border: var(--bw) solid var(--line); border-radius: var(--r-panel);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
a.prod:hover { border-color: var(--accent); transform: translateY(-3px); }
.prod-media { aspect-ratio: 1 / 1; background: var(--bg-1); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
/* produto sem capa ainda: "canal" de mesa com o nome da família na fita */
.prod-ph {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 18px; justify-items: center; padding: 20px;
  background: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1.3px) 0 0 / 14px 14px, var(--bg-1);
}
.prod-ph .tape { font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-align: center; }
.prod-ph svg { width: 56px; height: 56px; stroke: var(--line-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prod-body { padding: 20px 20px 22px; display: grid; gap: 10px; align-content: start; }
.prod-kind { font: var(--font-label-soft); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.prod h3 { font-size: 1.6rem; line-height: 1.02; }
.prod-desc { font-size: var(--fs-small); color: var(--ink-2); }
.prod-foot { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prod-price { font: 800 1.6rem/1 var(--f-display); color: var(--ink); }
.prod-go { font: 600 1.15rem/1 var(--f-display); color: var(--accent); }
.prod--soon { border-style: dashed; }
.prod--soon .prod-media img { filter: grayscale(.6) brightness(.7); }
.cat-more { margin-top: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px 9px;
  font: var(--font-label); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--bg-3); border: var(--bw) solid var(--line-2); border-radius: var(--r-strip);
  box-shadow: 0 3px 0 var(--track); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast);
}
.chip-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #221a10; }
.chip-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--track); }
.cat-empty { color: var(--ink-3); }

/* ============ SOBRE (resumo na home) ============ */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-grid .photo-frame img { aspect-ratio: 4 / 3; }
.about-copy .tape { margin-bottom: 24px; }
.about-copy .lead + .lead { margin-top: 16px; }
.quote {
  margin: 28px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent);
  font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.15 var(--f-display); color: var(--ink); max-width: 30ch;
}
@media (min-width: 980px) { .about-grid { grid-template-columns: .95fr 1.05fr; gap: 72px; } }

/* ============ MESAS ============ */
.desks { display: grid; gap: 28px; }
.desk-brand { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.desk-brand h3 { font-size: var(--fs-h3); }
.desk-fams { display: grid; gap: 16px; }
.desk-fam strong { display: block; font: 600 1.2rem/1.1 var(--f-display); letter-spacing: .02em; margin-bottom: 8px; color: var(--ink); }
@media (min-width: 980px) {
  .desk-brand { grid-template-columns: 220px 1fr; gap: 32px; }
}

/* ============ LINHA DO TEMPO ============ */
.tl { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.tl::before { content: ""; position: absolute; left: 8px; top: 30px; bottom: 30px; width: 3px; background: var(--line-2); }
.tl-item { position: relative; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.tl-item:first-child { border-top: 1px solid var(--line); }
.tl-item::before {
  content: ""; position: absolute; left: -31px; top: 30px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--lamp); border: 2px solid var(--lamp); box-shadow: var(--led-glow-lamp);
}
.tl-when { font: var(--font-label-soft); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tl-stage { margin-top: 8px; font: 800 clamp(1.6rem, 2.6vw, 2.1rem)/1.05 var(--f-display); color: var(--ink); }
.tl-body { margin-top: 10px; max-width: 60ch; }
.story-grid { display: grid; gap: 48px; }
.story-side { display: grid; gap: 16px; align-content: start; }
.story-side .photo-frame img { aspect-ratio: 3 / 4; }
@media (min-width: 980px) {
  .story-grid { grid-template-columns: 1.2fr .8fr; gap: 72px; }
  .story-side { position: sticky; top: 96px; }
}

/* ============ PROPÓSITO ============ */
.purpose { background: linear-gradient(180deg, transparent, rgba(255, 154, 46, .04) 45%, transparent); }
.purpose-text {
  font: 700 clamp(1.7rem, 3.4vw, 2.9rem)/1.12 var(--f-display); color: var(--ink); max-width: 30ch;
}
.purpose-text em { font-style: normal; color: var(--accent); }
.purpose-sign { margin-top: 28px; display: flex; align-items: center; gap: 12px; font: var(--font-label-soft); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ============ FUNÇÕES / FORMAÇÃO ============ */
.two { display: grid; gap: 48px; }
.two h3 { font-size: var(--fs-h3); margin-bottom: 20px; }
@media (min-width: 980px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; } }
.certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.certs li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--bg-2); border: var(--bw) solid var(--line); border-radius: var(--r-card); padding: 16px 18px;
}
.certs li .led { margin-top: 7px; }
.certs b { display: block; color: var(--ink); font-weight: 600; }
.certs span { font-size: var(--fs-small); color: var(--ink-3); }

/* ============ GALERIA + STORIES ============ */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery .photo-frame img { aspect-ratio: 4 / 5; }
.gallery .photo--wide { grid-column: 1 / -1; }
.gallery .photo--wide .photo-frame img { aspect-ratio: 16 / 10; }
@media (min-width: 980px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery .photo--wide { grid-column: span 2; }
  .gallery .photo--wide .photo-frame img { aspect-ratio: 8 / 5; height: calc(100% - 0px); }
}
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  scrollbar-color: var(--line-2) transparent;
}
.reel .photo { scroll-snap-align: start; }
.reel .photo-frame { border-radius: 22px; padding: 5px; }
.reel .photo-frame img { aspect-ratio: 720 / 1358; border-radius: 17px; }
.reel-note { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-3); max-width: 60ch; }

/* ============ FINAL ============ */
.final { text-align: left; }
.closing { margin-top: 8px; font: 800 var(--fs-h2)/.98 var(--f-display); color: var(--ink); max-width: 16ch; }
.final .visor { color: var(--lamp); }

/* rodapé */
.foot { padding-block: 48px 64px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-3); }
.foot-grid { display: grid; gap: 24px; }
.foot p { max-width: 70ch; }
.foot p + p { margin-top: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink-2); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }

/* movimento: wrapper do line-mask */
.lm { display: block; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; }
.lm-in { display: block; }
.pre-anim .hero-copy > *, .pre-anim .hero-visual { visibility: hidden; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0s; }
  html { scroll-behavior: auto; }
}
