/* ============================================================
   MÃE · Manual da Marca + Sistema de Design Web
   ============================================================
   Sistema cromático: 4 cores · branco · preto.
   Sem terracota. Sem creme. Textos brincam com as 4.
   ============================================================ */

@font-face {
  font-family: 'Puck';
  src: url('fonts/Puck-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --bg:           #FFFFFF;
  --bg-alt:       #FAFAFA;
  --ink:          #0A0A0A;
  --ink-2:        #2A2A2A;
  --fade:         #6E6E6E;
  --fade-2:       #B5B5B5;
  --line:         rgba(10, 10, 10, 0.10);
  --line-strong:  rgba(10, 10, 10, 0.22);

  /* As 4 cores · cadernos */
  --genelle:       #C81F7C;   /* rosa-semente */
  --genelle-soft:  #FCE7F1;
  --genelle-deep:  #7E0E50;

  --aurallys:      #D9A21C;   /* mel-aurora */
  --aurallys-soft: #FBF1D4;
  --aurallys-deep: #6E4F0A;

  --mavena:        #5E27A8;   /* roxo-virada */
  --mavena-soft:   #EAE0F6;
  --mavena-deep:   #2E1257;

  --aella:         #E5611A;   /* laranja-brasa */
  --aella-soft:    #FCE2CE;
  --aella-deep:    #8A3308;

  /* Tipo */
  --display:  'Puck', 'Inter', system-ui, sans-serif;
  --body:     'Montserrat', system-ui, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, monospace;

  /* Espaçamento — escala 4pt */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Container */
  --container: 1320px;
  --gutter: 8vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================================
   PRIMITIVES
   ============================================================ */

section {
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
  position: relative;
}
section.bleed { padding-left: 0; padding-right: 0; }
section.no-border { border-bottom: none; }

.container { max-width: var(--container); margin: 0 auto; }

/* Color classes — for "playing with the 4" */
.c-gen { color: var(--genelle); }
.c-aur { color: var(--aurallys); }
.c-mav { color: var(--mavena); }
.c-aell { color: var(--aella); }
.c-ink { color: var(--ink); }
.c-fade { color: var(--fade); }

.bg-gen { background: var(--genelle); color: #fff; }
.bg-aur { background: var(--aurallys); color: var(--ink); }
.bg-mav { background: var(--mavena); color: #fff; }
.bg-aell { background: var(--aella); color: #fff; }
.bg-gen-soft { background: var(--genelle-soft); color: var(--genelle-deep); }
.bg-aur-soft { background: var(--aurallys-soft); color: var(--aurallys-deep); }
.bg-mav-soft { background: var(--mavena-soft); color: var(--mavena-deep); }
.bg-aell-soft { background: var(--aella-soft); color: var(--aella-deep); }

/* Tag · chapter mark */
.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.tag .rule {
  height: 1px;
  background: currentColor;
  width: 60px;
  opacity: 0.5;
}

/* H1 — big display */
.h-display, h1, h2 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--ink);
}
.h-display { font-size: clamp(56px, 9vw, 144px); }
h2 { font-size: clamp(48px, 6.5vw, 96px); }
h3 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.015em; line-height: 1.05; }
h4 { font-family: var(--display); font-weight: 300; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fade);
}

/* Lead */
.lead {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 720px;
}
.lead-big {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 900px;
}

p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
p strong { color: var(--ink); font-weight: 600; }

/* Mono label */
.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fade);
}
.label.lg { font-size: 12px; }

/* Rules */
hr.rule { border: none; height: 1px; background: var(--ink); margin: 60px 0; }
hr.thin { border: none; height: 1px; background: var(--line); margin: 40px 0; }

/* Helpers */
.row { display: flex; align-items: center; gap: var(--s-5); }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-7); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }

/* ============================================================
   COVER
   ============================================================ */

.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 44px var(--gutter);
  position: relative;
  border-bottom: none;
}

.cover-top, .cover-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fade);
}

.cover-bottom .strip { display: flex; gap: 6px; }
.cover-bottom .strip span { width: 28px; height: 28px; border-radius: 50%; }

.cover-main { position: relative; z-index: 2; max-width: 1500px; }

.cover-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cover-eyebrow::before {
  content: '';
  width: 50px; height: 1px;
  background: currentColor;
}

.cover-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(72px, 13.5vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.cover-title .l1 { display: block; }
.cover-title .l2 { display: block; }
.cover-title .l3 { display: block; }

.cover-sub {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  margin-top: 42px;
  max-width: 800px;
  color: var(--ink-2);
}
.cover-sub b { color: var(--ink); font-weight: 600; }

.cover-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  max-width: 960px;
}
.cover-meta > div {
  background: var(--bg);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cover-meta > div .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fade);
}
.cover-meta > div .v {
  font-family: var(--display);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.1;
}

/* ============================================================
   ÍNDICE
   ============================================================ */

.indice-table {
  margin-top: 60px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.indice-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 100px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  transition: padding-left 0.2s ease;
}
.indice-row:last-child { border-bottom: none; }
.indice-row:hover { padding-left: 20px; }
.indice-row .n {
  font-family: var(--display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
}
.indice-row .t {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1;
}
.indice-row .s {
  font-size: 14px;
  color: var(--fade);
  line-height: 1.5;
}
.indice-row .p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: right;
  color: var(--fade);
}

.indice-row.r-gen .n, .indice-row.r-gen:hover .t { color: var(--genelle); }
.indice-row.r-aur .n, .indice-row.r-aur:hover .t { color: var(--aurallys-deep); }
.indice-row.r-mav .n, .indice-row.r-mav:hover .t { color: var(--mavena); }
.indice-row.r-aell .n, .indice-row.r-aell:hover .t { color: var(--aella); }

/* ============================================================
   MARCA — wordmark + rules
   ============================================================ */

.marca-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: center;
  margin-top: var(--s-7);
}

.wordmark-stage {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8%;
}
.wordmark-stage .mae {
  font-family: var(--display);
  font-size: clamp(80px, 12vw, 180px);
  line-height: 1;
}
.wordmark-stage .mae.gen { color: var(--genelle); }
.wordmark-stage .mae.aur { color: var(--aurallys-deep); }
.wordmark-stage .mae.mav { color: var(--mavena); }
.wordmark-stage .mae.aell { color: var(--aella); }
.wordmark-stage .mae.ink { color: var(--ink); }

/* ============================================================
   BRAND LOGO (real cursive lettering)
   ============================================================ */
.brand-logo {
  display: block;
  max-width: 100%;
  height: auto;
  width: auto;
}
.brand-logo.xs { height: 28px; }
.brand-logo.sm { height: 44px; }
.brand-logo.md { height: 72px; }
.brand-logo.lg { height: 120px; }
.brand-logo.xl { height: 180px; }
.brand-logo.huge { height: 260px; }

/* Inline within headings — sits as a glyph */
.brand-logo.brand-inline {
  display: inline-block;
  vertical-align: middle;
  height: 0.85em;
  width: auto;
  margin: 0 0.05em;
  transform: translateY(-0.04em);
}
.brand-logo.brand-tiny {
  display: inline-block;
  vertical-align: middle;
  height: 1.6em;
  width: auto;
  margin: -0.2em 0.1em;
}
.brand-logo.invert { filter: invert(1); }

.wordmark-stage .brand-logo { max-width: 75%; max-height: 70%; height: auto; width: auto; }
.wordmark-stage.tight .brand-logo { max-width: 85%; max-height: 80%; }

.wordmark-stage.dark { background: var(--ink); }
.wordmark-stage .corner {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fade);
}
.wordmark-stage.dark .corner { color: var(--fade-2); }

/* Construction — clear space diagram */
.construcao {
  background: var(--bg-alt);
  padding: 60px;
  position: relative;
}
.construcao-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 360px;
}
.construcao-diagram .clear {
  border: 1px dashed var(--mavena);
  padding: 60px 80px;
  position: relative;
}
.construcao-diagram .clear::before, .construcao-diagram .clear::after {
  content: 'x';
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mavena);
  position: absolute;
}
.construcao-diagram .clear::before { left: -24px; top: 50%; transform: translateY(-50%); }
.construcao-diagram .clear::after { right: -24px; top: 50%; transform: translateY(-50%); }
.construcao-diagram .mark {
  font-family: var(--display);
  font-size: 96px;
  line-height: 1;
  color: var(--ink);
}
.construcao-diagram .clear .brand-logo { height: 90px; }
.construcao-x {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fade);
}

/* Reduction */
.reducao {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: end;
  margin-top: 40px;
}
.reducao-item {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 220px;
  justify-content: flex-end;
}
.reducao-item .brand-logo {
  margin-bottom: auto;
}
.reducao-item .size {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fade);
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.reducao-item .size b {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: 20px;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: 0;
}
.reducao-item.bad { opacity: 0.45; }
.reducao-item.bad .size b { color: var(--fade-2); }

/* Don'ts */
.dont-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.dont-card {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dont-card .stage {
  aspect-ratio: 16/10;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 12%;
}
.dont-card .stage .brand-logo {
  height: auto;
  max-height: 70%;
  max-width: 75%;
  width: auto;
}
.dont-card .stage.outline .brand-logo { filter: brightness(0) invert(1) drop-shadow(0 0 0.6px var(--ink)) drop-shadow(0 0 0.6px var(--ink)) drop-shadow(0 0 0.6px var(--ink)) drop-shadow(0 0 0.6px var(--ink)); }
.dont-card .stage.rotated .brand-logo { transform: rotate(-12deg); }
.dont-card .stage.shadow .brand-logo { filter: drop-shadow(4px 4px 6px rgba(0,0,0,0.5)); }
.dont-card .stage.distort .brand-logo { transform: scaleX(1.55); }
.dont-card .stage.blur .brand-logo { filter: blur(2.5px); }
.dont-card .stage.gradient { background: linear-gradient(45deg, var(--genelle), var(--aurallys), var(--mavena), var(--aella)); }
.dont-card .stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, transparent calc(50% - 1px), var(--aella) calc(50% - 1px), var(--aella) calc(50% + 1px), transparent calc(50% + 1px));
  opacity: 0;
  pointer-events: none;
}
.dont-card .stage.x::after { opacity: 0.55; }
.dont-card .desc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fade);
}
.dont-card .desc b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--aella);
  margin-bottom: 4px;
  font-weight: 300;
}

/* Background usage */
.bg-rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.bg-rule-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bg-rule-stage {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bg-rule-stage .mae {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
}
.bg-rule-stage .brand-logo {
  max-width: 70%;
  max-height: 50%;
  height: auto;
  width: auto;
}
.bg-rule-stage .badge {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}
.bg-rule-stage .badge.ok { background: var(--mavena); color: #fff; }
.bg-rule-stage .badge.no { background: var(--aella); color: #fff; }

.bg-rule-card .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fade);
}
.bg-rule-card .lbl b {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 3px;
  font-weight: 300;
}

/* ============================================================
   PRODUTOS
   ============================================================ */

.produto-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
  margin-top: 60px;
}
.produto-row {
  background: var(--bg);
  display: grid;
  grid-template-columns: 100px 1.2fr 2fr 240px;
  align-items: stretch;
}
.produto-row .num {
  padding: 40px 0 40px 24px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
}
.produto-row .wordmark-block {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border-left: 1px solid var(--line);
}
.produto-row .wordmark-block .pmark {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.015em;
}
.produto-row .wordmark-block .role {
  font-family: var(--body);
  font-size: 13px;
  color: var(--fade);
  text-transform: lowercase;
}
.produto-row .body-block {
  padding: 40px 24px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.produto-row .body-block .quem {
  font-family: var(--display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.produto-row .body-block .topicos {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--fade);
}
.produto-row .body-block .voz {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.produto-row .body-block .voz b { color: inherit; }
.produto-row .swatch-block {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.produto-row .swatch-block .main {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.produto-row .swatch-block .hex {
  font-family: var(--display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
}
.produto-row .swatch-block .triplet {
  display: flex;
  gap: 4px;
}
.produto-row .swatch-block .triplet span {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
}

.produto-row.gen { color: var(--genelle); }
.produto-row.gen .swatch-block .main { background: var(--genelle); color: #fff; }
.produto-row.gen .voz b { color: var(--genelle); }

.produto-row.aur { color: var(--aurallys-deep); }
.produto-row.aur .swatch-block .main { background: var(--aurallys); color: var(--ink); }
.produto-row.aur .voz b { color: var(--aurallys-deep); }

.produto-row.mav { color: var(--mavena); }
.produto-row.mav .swatch-block .main { background: var(--mavena); color: #fff; }
.produto-row.mav .voz b { color: var(--mavena); }

.produto-row.aell { color: var(--aella); }
.produto-row.aell .swatch-block .main { background: var(--aella); color: #fff; }
.produto-row.aell .voz b { color: var(--aella); }

/* assinatura mãe + produto */
.assinatura {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
.assinatura > div {
  padding: 48px;
  border-right: 1px solid var(--line);
  position: relative;
}
.assinatura > div:last-child { border-right: none; }
.assinatura .ass-mark {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.assinatura .ass-mark .mae { color: var(--ink); }
.assinatura .ass-mark .brand-logo { height: 70px; width: auto; }
.assinatura .ass-mark .sep { color: var(--fade-2); }
.assinatura .ass-mark .prod.gen { color: var(--genelle); }
.assinatura .ass-mark .prod.aur { color: var(--aurallys-deep); }
.assinatura .ass-mark .prod.mav { color: var(--mavena); }
.assinatura .ass-mark .prod.aell { color: var(--aella); }
.assinatura .ass-label {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fade);
}
