/* ============================================
   BRAND BOOK — Estilos específicos
   Regras: sem uppercase em Roboto Slab, sem tracking customizado
   ============================================ */

/* ——— NAV LATERAL ——— */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 248px;
  height: 100vh;
  background: #FFFFFF;
  color: var(--ink);
  padding: 28px 24px;
  overflow-y: auto;
  z-index: 10;
  border-right: 1px solid var(--rule);
  /* esconder scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sidebar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.sidebar-logo img {
  width: 150px;
  height: auto;
  display: block;
}

.sidebar-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 4px;
  margin-top: 8px;
  color: var(--marrom);
}
.sidebar-sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.nav-group {
  margin-bottom: 24px;
}
.nav-group-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--amarelo-escuro);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.nav-link {
  display: block;
  padding: 7px 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, padding 0.15s;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
}
.nav-link:hover {
  color: var(--marrom);
}
.nav-link.active {
  color: var(--marrom);
  border-left-color: var(--amarelo);
  font-weight: 500;
}

/* ——— CONTEÚDO PRINCIPAL ——— */
.main {
  margin-left: 248px;
  min-height: 100vh;
}

.section {
  padding: 96px 80px;
  max-width: 1280px;
  scroll-margin-top: 20px;
}
.section + .section {
  border-top: 1px solid var(--rule);
}

.section-num {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  margin: 0 0 16px;
  color: var(--ink);
}

.section-lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 0 64px;
}

.subsection-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 20px;
}

/* ——— CAPA / HERO ——— */
.hero {
  min-height: 100vh;
  background: var(--amarelo);
  color: var(--marrom);
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* MÃO — elemento protagonista, grande à direita */
.hero-hand-wrap {
  position: absolute;
  top: 0;
  right: -4%;
  bottom: 0;
  width: 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
  perspective: 1200px;
}
.hero-hand-sticker {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  isolation: isolate;
}

/* Halo/glow luminoso atrás da mão — visível sempre */
.hero-hand-halo {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 230, 140, 0.85) 0%,
    rgba(255, 200, 80, 0.5) 25%,
    rgba(242, 167, 27, 0.2) 50%,
    transparent 70%
  );
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
  animation: halo-pulse 4s ease-in-out infinite;
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-hand-img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: 50% 60%;
  transition: transform 0.15s ease-out;
  filter:
    drop-shadow(0 0 40px rgba(255, 220, 120, 0.6))
    drop-shadow(0 30px 50px rgba(58,30,10,0.22))
    drop-shadow(0 8px 16px rgba(58,30,10,0.12));
  will-change: transform;
  position: relative;
  z-index: 1;
}

/* Faixa de brilho metálica — varre continuamente, intensificada pelo mouse */
.hero-hand-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mask: url('assets/mao-tulipa.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask: url('assets/mao-tulipa.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  overflow: hidden;
}

.hero-hand-shine::before {
  content: '';
  position: absolute;
  inset: -20% -100%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 220, 120, 0.4) 40%,
    rgba(255, 255, 255, 0.9) 46%,
    rgba(255, 240, 180, 1) 50%,
    rgba(255, 255, 255, 0.9) 54%,
    rgba(255, 220, 120, 0.4) 60%,
    transparent 70%
  );
  mix-blend-mode: screen;
  animation: shine-sweep 3.5s ease-in-out infinite;
  transform: translateX(calc(var(--mx, 0) * 1px));
}

@keyframes shine-sweep {
  0% { transform: translateX(-60%) skewX(-12deg); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(60%) skewX(-12deg); opacity: 0; }
}

/* Reflexo dourado adicional — segundo sweep atrasado */
.hero-hand-shine::after {
  content: '';
  position: absolute;
  inset: -20% -100%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(242, 167, 27, 0.6) 48%,
    rgba(255, 200, 80, 0.9) 50%,
    rgba(242, 167, 27, 0.6) 52%,
    transparent 65%
  );
  mix-blend-mode: overlay;
  animation: shine-sweep 3.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

/* Hotspot radial que segue o cursor */
.hero-hand-hotspot {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mask: url('assets/mao-tulipa.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask: url('assets/mao-tulipa.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  background: radial-gradient(
    circle 120px at var(--sx, 50%) var(--sy, 30%),
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 240, 180, 0.7) 20%,
    rgba(255, 200, 80, 0.3) 45%,
    transparent 70%
  );
  mix-blend-mode: overlay;
}

/* Brilho sticker/holográfico — faixa de luz metálica como foil */
.hero-hand-sticker::before {
  content: none;
}

.hero-hand-sticker::after {
  content: none;
}

.hero::before {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -15%;
  width: 60%;
  height: 70%;
  background: var(--creme);
  border-radius: 58% 42% 52% 48% / 45% 55% 45% 55%;
  opacity: 0.55;
  pointer-events: none;
}
.hero-top, .hero-bottom, .hero-middle { position: relative; z-index: 1; }

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(58,30,10,0.25);
  padding-bottom: 24px;
}
.hero-meta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--marrom);
}
.hero-meta div + div { margin-top: 4px; color: var(--marrom-medio); font-weight: 400; }

.hero-title {
  font-family: 'Alegreya', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(90px, 13vw, 200px);
  line-height: 0.88;
  margin: 0;
  color: var(--marrom);
}
.hero-title .amp { color: var(--bordo); font-weight: 500; }
.hero-title .line { display: block; }
.hero-title .line.indent { padding-left: 0.6em; color: var(--bordo); }

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  border-top: 1px solid rgba(58,30,10,0.25);
  padding-top: 24px;
}
.hero-tag {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  max-width: 440px;
  line-height: 1.55;
  color: var(--marrom-medio);
}

/* ——— HEADING PRIMARY (Alegreya Italic Medium — identidade oficial) ——— */
.section-title {
  font-family: 'Alegreya', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
  color: var(--marrom) !important;
}
.section-title.on-dark {
  color: var(--creme) !important;
}
.subsection-title, .pillar-title, .card-title, .showcase-title, .specimen-name, .swatch-name, .tl-year {
  font-family: 'Alegreya', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
}

/* ——— STAMP (carimbo tradição) ——— */
.stamp {
  width: 140px;
  height: 140px;
  border: 2px solid var(--dourado);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dourado);
  font-family: var(--font-display);
  font-style: italic;
  transform: rotate(-6deg);
  position: relative;
  text-align: center;
}
.stamp::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--dourado);
  border-radius: 50%;
}
.stamp-top {
  font-size: 13px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}
.stamp-big {
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  margin: 4px 0;
}
.stamp-bot {
  font-size: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* ——— COLOR SWATCHES ——— */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.swatch {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swatch-chip {
  height: 200px;
  border-radius: var(--r-xs);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rule);
}
.swatch-chip::after {
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.swatch-meta { font-size: 13px; line-height: 1.4; }
.swatch-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.swatch-hex {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.swatch-role {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ——— TYPO SPECIMEN ——— */
.specimen {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 56px 48px;
  margin-bottom: 32px;
}
.specimen-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.specimen-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 40px;
}
.specimen-big {
  font-size: 140px;
  line-height: 0.9;
}
.specimen-scale {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px dashed var(--rule);
}
.specimen-scale:last-child { border-bottom: 1px dashed var(--rule); }
.specimen-scale-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.specimen-charset {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: var(--ink-muted);
}

/* ——— VALUE PILLARS ——— */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.pillar {
  background: var(--bg);
  padding: 40px 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pillar-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  line-height: 1;
  color: var(--ambar);
  font-weight: 500;
}
.pillar-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  margin: 20px 0 12px;
}
.pillar-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 400;
}

/* ——— PILL / BADGE ——— */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}
.pill-solid { background: var(--carvao); color: var(--creme); }
.pill-gold { background: var(--dourado); color: var(--carvao); }
.pill-bordeaux { background: var(--bordo); color: var(--creme); }
.pill-outline { border: 1px solid var(--rule-strong); color: var(--ink); }

/* ——— DO / DON'T ——— */
.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dd-card {
  padding: 24px;
  border: 1px solid var(--rule);
  background: var(--bg);
}
/* removido: accent bar colorido no topo dos cards do/dont */
.dd-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.dd-card.do .dd-label { color: var(--garrafa); }
.dd-card.dont .dd-label { color: var(--bordo); }

/* ——— PLACEHOLDER (imagem) ——— */
.ph {
  background: repeating-linear-gradient(
    135deg,
    rgba(15,15,15,0.04) 0 10px,
    rgba(15,15,15,0.08) 10px 11px
  );
  border: 1px dashed var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  padding: 16px;
}

/* ——— TWEAKS PANEL ——— */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: var(--carvao);
  color: var(--creme);
  padding: 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  border: 1px solid var(--dourado);
}
.tweaks-panel h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--dourado-claro);
  font-size: 20px;
}
.tweak-group {
  margin-bottom: 14px;
}
.tweak-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(250,246,236,0.7);
  margin-bottom: 6px;
  display: block;
}
.tweak-opts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tweak-btn {
  flex: 1;
  min-width: 60px;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--rule-inverse);
  color: rgba(250,246,236,0.75);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
}
.tweak-btn:hover { border-color: var(--dourado); color: var(--dourado-claro); }
.tweak-btn.active {
  background: var(--dourado);
  border-color: var(--dourado);
  color: var(--carvao);
  font-weight: 500;
}

/* ——— COMPONENT SHOWCASE ——— */
.showcase {
  background: var(--bg-alt);
  padding: 40px;
  border: 1px solid var(--rule);
  margin-bottom: 24px;
}
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.showcase-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}
.showcase-meta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ——— BUTTONS (UI KIT) ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: calc(12px * var(--density)) calc(22px * var(--density));
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  border-radius: var(--r-sm);
}
.btn-primary {
  background: var(--carvao);
  color: var(--creme);
}
.btn-primary:hover { background: var(--madeira); }
.btn-gold {
  background: var(--dourado);
  color: var(--carvao);
}
.btn-gold:hover { background: var(--dourado-claro); }
.btn-bordeaux {
  background: var(--bordo);
  color: var(--creme);
}
.btn-bordeaux:hover { background: var(--cereja); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--creme); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--rule); }

/* ——— INPUTS ——— */
.input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1.5px solid var(--rule-strong);
  background: var(--marfim);
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: border-color 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--ambar);
}
.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

/* ——— CARD ——— */
.card {
  background: var(--marfim);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.card-img {
  aspect-ratio: 4/3;
  background: var(--papel);
}
.card-body { padding: 20px; }
.card-kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--ambar);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.card-body-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

/* ——— MOCKUPS DE APLICAÇÃO ——— */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.app-mockup {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.app-mockup-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  background: var(--carvao);
  color: var(--creme);
  padding: 5px 11px;
  z-index: 2;
  border-radius: 3px;
}

/* ——— TIMELINE ——— */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rule);
}
.tl-item {
  padding: 0 24px 0 0;
  position: relative;
}
.tl-dot {
  width: 16px;
  height: 16px;
  background: var(--ambar);
  border-radius: 50%;
  border: 3px solid var(--bg);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  box-shadow: 0 0 0 3px var(--rule);
}
.tl-year {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--ink);
}
.tl-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 280px;
}

/* ——— BEER GLASS (CSS art — simple) ——— */
.beer-glass {
  width: 100px;
  height: 140px;
  position: relative;
  margin: 0 auto;
}
.beer-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--creme) 0 20%,
    var(--dourado-claro) 20% 24%,
    var(--dourado) 24% 90%,
    var(--ambar) 90% 100%
  );
  clip-path: polygon(10% 0, 90% 0, 82% 100%, 18% 100%);
}
.beer-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(10% 0, 90% 0, 82% 100%, 18% 100%);
  border: 2px solid rgba(15,15,15,0.2);
  box-shadow: inset 12px 0 20px rgba(255,255,255,0.15), inset -8px 0 16px rgba(0,0,0,0.1);
}

/* ============================================
   ARREDONDAMENTO GLOBAL — cantos suaves
   Aplica em todas as superfícies estruturais para quebrar a rigidez.
   ============================================ */
.showcase,
.app-mockup,
.dd-card,
.card,
.specimen,
.pillar,
.tweaks-panel,
.ph {
  border-radius: var(--r-md);
}

/* cards do/dont — sem border-radius, visual flat */
.do-dont .dd-card { border-radius: 0; }
.showcase { border-radius: 0; overflow: hidden; }
.card { border-radius: 0; }
.app-mockup { border-radius: 0; }
.specimen { border-radius: 0; }

/* imagens soltas ganham cantinho */
img.logo-img,
.sidebar-logo img { border-radius: 0; }

/* botões com suavização extra */
.btn { border-radius: var(--r-md); }
.input { border-radius: var(--r-sm); }

/* tweaks panel mais suave */
.tweaks-panel { border-radius: var(--r-lg); }
.tweak-btn { border-radius: var(--r-sm); }

/* mobile nav toggle */
.mobile-nav-toggle { border-radius: var(--r-md); }

/* ============================================
   ARREDONDAMENTO INLINE — pega blocos com style=background/border
   inline inline dentro das seções, sem precisar editar cada componente.
   ============================================ */

/* Qualquer div com background sólido inline dentro de section/hero */
/* Regras globais de cantos — DESIGN FLAT, SEM ROUNDED */
.section div[style*="background:"],
.section a[style*="background:"],
.hero div[style*="background:"] {
  border-radius: 0;
}

/* Divs com border inline ganham arredondamento */
.section div[style*="border:"],
.section div[style*="border-left"],
.section div[style*="border-top"],
.section div[style*="border-bottom"],
.section div[style*="border-right"] {
  border-radius: 0;
}

/* Grids com borda externa (ex. glossário) */
.section > div > div[style*="border:"],
.section > div[style*="border:"] {
  border-radius: 0;
}

/* Imagens com box */
.section img[style*="border"] {
  border-radius: 0;
}

/* Exceções: barras horizontais finas, timelines, underlines, dividers — mantém reto */
.section div[style*="height: 1"],
.section div[style*="height: 2"],
.section div[style*="height: 3"],
.section div[style*="height:1px"],
.section div[style*="height:2px"],
.section div[style*="height:3px"],
.section div[style*="height: 1px"],
.section div[style*="height: 2px"],
.section div[style*="height: 3px"],
.section div[style*="border-radius: 50%"],
.section div[style*="borderRadius: \"50%\""] {
  border-radius: 0 !important;
}

/* Círculos (stamp, pills, dots, tl-dot) mantêm border-radius próprio */
.stamp,
.tl-dot,
.pill,
.beer-glass {
  border-radius: 50% !important;
}
.pill { border-radius: var(--r-pill) !important; }
.beer-glass { border-radius: 0 !important; } /* tem clip-path */

/* cantos do selo 30 — imagem */
.section img[alt*="30"] { border-radius: 0; }

/* linhas ornamentais (OrnamentalDivider) — svg dentro, mantém reto */
.section svg { border-radius: 0; }

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Mobile nav toggle — só aparece em telas estreitas */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 48px;
  height: 48px;
  background: var(--carvao);
  color: var(--creme);
  border: 1px solid var(--rule-inverse);
  border-radius: 8px;
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Tablet — reduzir paddings de seção */
@media (max-width: 1100px) {
  .sidebar { width: 220px; padding: 22px 18px; }
  .main { margin-left: 220px; }
  .section { padding: 72px 56px; }
  .hero { padding: 56px; }
}

/* Mobile — sidebar vira drawer */
@media (max-width: 820px) {
  .hero-hand-wrap {
    position: relative;
    width: 100%;
    right: auto;
    height: 340px;
    margin: 0 0 16px 0;
  }
  .hero-hand-sticker { max-width: 280px; }
  .mobile-nav-toggle {
    display: flex;
  }

  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 0 24px rgba(0,0,0,0.3);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main { margin-left: 0; }

  .section { padding: 56px 24px; max-width: 100%; }
  .section-lede { font-size: 16px; margin-bottom: 40px; }
  .subsection-title { font-size: 26px; }

  /* capa */
  .hero { padding: 32px 24px; min-height: auto; }
  .hero-header { flex-direction: column; gap: 24px; align-items: flex-start; }
  .hero-middle {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-tag { max-width: 100%; font-size: 14px; }
  .stamp { transform: rotate(-4deg); width: 120px; height: 120px; }

  /* colunas genéricas — forçar 1 coluna em grids */
  .do-dont,
  .app-grid,
  .pillars,
  .timeline {
    grid-template-columns: 1fr !important;
  }
  .pillars { gap: 1px; }
  .timeline::before { display: none; }
  .tl-item { padding: 0 0 32px 0; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
  .tl-item:last-child { border-bottom: none; }

  /* forçar grids inline de 2-3 colunas para 1 */
  .section [style*="grid-template-columns: repeat(2"],
  .section [style*="grid-template-columns: repeat(3"],
  .section [style*="grid-template-columns: 1fr 1fr"],
  .section [style*="grid-template-columns: 1fr 1fr 1fr"],
  .section [style*="grid-template-columns: \"1fr 1fr\""],
  .section [style*="grid-template-columns: 1.1fr 0.9fr"],
  .section [style*="gridTemplateColumns"] {
    grid-template-columns: 1fr !important;
  }

  /* paddings internos aliviar */
  .section [style*="padding: 56px"] { padding: 32px !important; }
  .section [style*="padding: 48px"] { padding: 28px !important; }
  .section [style*="padding: 40px"] { padding: 24px !important; }
  .section [style*="padding: 64px"] { padding: 32px !important; }
  .section [style*="padding: 80px"] { padding: 32px !important; }

  /* gap em grids grandes */
  .section [style*="gap: 64px"] { gap: 32px !important; }
  .section [style*="gap: 56px"] { gap: 28px !important; }
  .section [style*="gap: 48px"] { gap: 24px !important; }
  .section [style*="gap: 40px"] { gap: 20px !important; }

  /* swatches menores */
  .swatch-chip { height: 140px; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* specimens de tipografia */
  .specimen { padding: 32px 24px; }
  .specimen-big { font-size: 80px; }
  .specimen-header { flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 24px; }

  /* tweaks panel — full bottom em mobile */
  .tweaks-panel {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
  }

  /* section-title menor em mobile */
  .section-title {
    font-size: clamp(40px, 10vw, 64px) !important;
  }
  .hero-title {
    font-size: clamp(64px, 17vw, 120px) !important;
  }
}

/* Mobile bem estreito */
@media (max-width: 480px) {
  .section { padding: 48px 20px; }
  .swatch-grid { grid-template-columns: 1fr; }
  .specimen-big { font-size: 60px; }
  .hero { padding: 24px 20px; }
  .stamp { width: 100px; height: 100px; }
  .stamp-big { font-size: 28px; }
}
