/* Case de identidade visual Tozati: estilos restritos a .tozati-case */
.tozati-case {
  --tz-midnight: #03032A;
  --tz-deep-blue: #141496;
  --tz-cyan: #14C0DC;
  --tz-off-white: #F4F3F9;
  --tz-white: #FFFFFF;
  --tz-font: "Manrope", sans-serif;
  --tz-weight-regular: 400;
  --tz-weight-medium: 500;
  --tz-weight-semibold: 600;
  --tz-weight-bold: 700;
  --tz-weight-extrabold: 800;
  --tz-container: 1216px;
  --tz-gutter: clamp(16px, 2vw, 24px);
  --tz-section-space: clamp(48px, 8vw, 120px);
  --tz-headline: clamp(2.25rem, 6vw, 5rem);
  --tz-heading: clamp(1.75rem, 4vw, 3rem);
  font-family: var(--tz-font);
  font-weight: var(--tz-weight-regular);
  color: var(--tz-midnight);
}
.tozati-case h1, .tozati-case h2, .tozati-case h3 { font-family: var(--tz-font); }
.tozati-case p { margin: 0; }

.tozati-case .tz-wrap {
  width: min(var(--tz-container), 100% - 2 * clamp(20px, 5vw, 48px));
  margin-inline: auto;
}
.tozati-case .tz-section { padding-block: var(--tz-section-space); }

/* Fundos */
.tozati-case .tz-light, .tozati-case .tz-bg-white { background: var(--tz-white); }
.tozati-case .tz-offwhite, .tozati-case .tz-bg-offwhite { background: var(--tz-off-white); }
.tozati-case .tz-dark, .tozati-case .tz-bg-midnight { background: var(--tz-midnight); color: var(--tz-white); }
.tozati-case .tz-bg-deep { background: var(--tz-deep-blue); }
.tozati-case .tz-bg-cyan { background: var(--tz-cyan); }
.tozati-case .tz-line { box-shadow: inset 0 0 0 1px rgba(3, 3, 42, .14); }

/* Tipografia */
.tozati-case .tz-label {
  font-weight: var(--tz-weight-semibold);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tz-deep-blue);
  margin-bottom: 18px;
}
.tozati-case .tz-dark .tz-label { color: var(--tz-cyan); }
.tozati-case .tz-h2 {
  font-weight: var(--tz-weight-extrabold);
  font-size: var(--tz-heading);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.tozati-case .tz-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: rgba(3, 3, 42, .78);
}
.tozati-case .tz-dark .tz-lead { color: rgba(255, 255, 255, .8); }
.tozati-case .tz-body { margin-top: 20px; line-height: 1.7; color: rgba(3, 3, 42, .78); }

/* Grid 12 colunas: título 5, texto 6 (com 1 de respiro) */
.tozati-case .tz-split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--tz-gutter);
  row-gap: 24px;
  align-items: start;
}
.tozati-case .tz-split > :first-child { grid-column: 1 / span 5; }
.tozati-case .tz-split > :last-child { grid-column: 7 / span 6; padding-top: 36px; }

/* Hero */
.tozati-case .tz-hero {
  background: var(--tz-midnight);
  color: var(--tz-white);
  padding-block: calc(var(--tz-section-space) + 40px) var(--tz-section-space);
  text-align: center;
}
.tozati-case .tz-eyebrow {
  font-weight: var(--tz-weight-semibold);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tz-cyan);
}
.tozati-case .tz-hero h1 { margin: clamp(48px, 9vw, 112px) auto; }
.tozati-case .tz-hero__logo { width: min(620px, 86%); height: auto; margin-inline: auto; }
.tozati-case .tz-hero__tagline {
  font-weight: var(--tz-weight-extrabold);
  font-size: var(--tz-headline);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 14ch;
  margin-inline: auto;
}

/* Símbolo */
.tozati-case .tz-symbol {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--tz-gutter);
  row-gap: 40px;
  align-items: center;
}
.tozati-case .tz-symbol__art { grid-column: 1 / span 6; }
.tozati-case .tz-symbol__art img { width: 100%; max-width: 520px; height: auto; }
.tozati-case .tz-symbol > :last-child { grid-column: 8 / span 5; }
.tozati-case .tz-concepts {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tz-gutter);
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid rgba(3, 3, 42, .16);
}
.tozati-case .tz-concepts li { padding-top: 24px; }
.tozati-case .tz-concepts__n { display: block; font-weight: var(--tz-weight-medium); font-size: .85rem; color: var(--tz-deep-blue); margin-bottom: 14px; }
.tozati-case .tz-concepts h3 { font-weight: var(--tz-weight-bold); font-size: 1.35rem; margin-bottom: 6px; }
.tozati-case .tz-concepts p { color: rgba(3, 3, 42, .72); }

/* Versões */
.tozati-case .tz-versions {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--tz-gutter);
  margin-top: clamp(32px, 5vw, 64px);
}
.tozati-case .tz-versions__card {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  border-radius: 6px;
  padding: 12%;
}
.tozati-case .tz-versions__card img { width: 100%; max-width: 360px; height: auto; }
.tozati-case .tz-versions p { margin-top: 12px; font-weight: var(--tz-weight-medium); font-size: .9rem; color: rgba(3, 3, 42, .72); }

/* Paleta */
.tozati-case .tz-palette {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--tz-gutter);
  margin-top: clamp(40px, 6vw, 72px);
}
.tozati-case .tz-swatch { display: block; aspect-ratio: 3 / 4; border-radius: 6px; margin-bottom: 18px; }
.tozati-case .tz-palette h3 { font-weight: var(--tz-weight-bold); font-size: 1.15rem; }
.tozati-case .tz-palette code {
  display: block; margin: 4px 0 10px;
  font-family: var(--tz-font); font-weight: var(--tz-weight-semibold);
  font-size: .9rem; color: var(--tz-deep-blue); letter-spacing: .04em;
}
.tozati-case .tz-palette p { font-size: .92rem; line-height: 1.55; color: rgba(3, 3, 42, .74); }

/* Tipografia */
.tozati-case .tz-specimen {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--tz-gutter);
  align-items: end;
  margin-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.tozati-case .tz-specimen__aa {
  grid-column: 1 / span 5;
  font-weight: var(--tz-weight-extrabold);
  font-size: clamp(7rem, 20vw, 16rem);
  line-height: .8; letter-spacing: -.05em;
  color: var(--tz-cyan);
}
.tozati-case .tz-specimen__chars { grid-column: 7 / span 6; font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: var(--tz-weight-medium); line-height: 1.5; overflow-wrap: anywhere; }
.tozati-case .tz-specimen__name { font-weight: var(--tz-weight-bold); color: var(--tz-cyan); margin-bottom: 8px; }
.tozati-case .tz-table-wrap { overflow-x: auto; margin-top: 24px; }
.tozati-case .tz-weights { width: 100%; border-collapse: collapse; text-align: left; }
.tozati-case .tz-weights caption { text-align: left; font-weight: var(--tz-weight-medium); font-size: .85rem; color: rgba(255, 255, 255, .7); padding-bottom: 12px; }
.tozati-case .tz-weights th, .tozati-case .tz-weights td { padding: 18px 16px 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); vertical-align: middle; }
.tozati-case .tz-weights thead th { font-weight: var(--tz-weight-semibold); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tz-cyan); }
.tozati-case .tz-weights tbody th { font-weight: var(--tz-weight-medium); font-size: .95rem; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.tozati-case .tz-weights td:last-child { color: rgba(255, 255, 255, .8); }
.tozati-case .tz-weights td:nth-child(2) { font-size: clamp(1.1rem, 2.4vw, 1.75rem); }
.tozati-case .tz-w800 { font-weight: 800; }
.tozati-case .tz-w700 { font-weight: 700; }
.tozati-case .tz-w600 { font-weight: 600; }
.tozati-case .tz-w500 { font-weight: 500; }
.tozati-case .tz-w400 { font-weight: 400; }

/* Linguagem gráfica */
.tozati-case .tz-graphics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--tz-gutter);
  margin-top: clamp(40px, 6vw, 72px);
}
.tozati-case .tz-graphic { margin: 0; }
.tozati-case .tz-graphic__frame { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.tozati-case .tz-graphic__frame img { width: 100%; height: 100%; object-fit: cover; }
.tozati-case .tz-graphic__headline {
  position: absolute; top: 8%; left: 8%; right: 30%;
  color: var(--tz-white);
  font-weight: var(--tz-weight-extrabold);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.05; letter-spacing: -.03em;
}
.tozati-case .tz-graphic figcaption { margin-top: 14px; font-weight: var(--tz-weight-medium); color: rgba(3, 3, 42, .74); }
.tozati-case .tz-graphic figcaption strong { display: block; font-weight: var(--tz-weight-bold); color: var(--tz-midnight); font-size: 1.1rem; }

/* Encerramento */
.tozati-case .tz-closing__symbol { width: 88px; height: auto; margin-bottom: 32px; }
.tozati-case .tz-credit {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-weight: var(--tz-weight-semibold);
  color: var(--tz-cyan);
}

/* Responsivo */
@media (max-width: 1024px) {
  .tozati-case .tz-palette { grid-template-columns: repeat(3, 1fr); }
  .tozati-case .tz-concepts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .tozati-case .tz-split > :first-child,
  .tozati-case .tz-split > :last-child,
  .tozati-case .tz-symbol__art,
  .tozati-case .tz-symbol > :last-child,
  .tozati-case .tz-specimen__aa,
  .tozati-case .tz-specimen__chars { grid-column: 1 / -1; }
  .tozati-case .tz-split > :last-child { padding-top: 0; }
  .tozati-case .tz-specimen { row-gap: 24px; }
  .tozati-case .tz-palette { grid-template-columns: repeat(2, 1fr); }
  .tozati-case .tz-versions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tozati-case .tz-graphics { grid-template-columns: 1fr; }
  .tozati-case .tz-concepts { grid-template-columns: 1fr; }
  .tozati-case .tz-weights thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tozati-case .tz-weights tr { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .tozati-case .tz-weights th, .tozati-case .tz-weights td { padding: 0; border: 0; }
}
