/* Brand identity page — complements /marketing.css */
.brand-hero {
  margin: 0.5rem 0 2rem;
}
.brand-hero .lead {
  max-width: 40rem;
}

.lockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
@media (max-width: 720px) {
  .lockup-grid {
    grid-template-columns: 1fr;
  }
}

.lockup-swatch {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}
.lockup-swatch.is-dark {
  background: #0b1220;
  border-color: #1e293b;
}
.lockup-swatch.is-soft {
  background: #f0fdfa;
}
.lockup-swatch img,
.lockup-swatch svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.lockup-swatch .caption {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lockup-swatch.is-dark .caption {
  color: #94a3b8;
}
.lockup-swatch .mark-lg {
  width: 56px;
  height: 56px;
}
.lockup-swatch .lockup-img {
  width: min(280px, 100%);
  height: auto;
}

.rules-grid,
.dont-grid,
.swatch-grid,
.token-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}
.rules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dont-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.swatch-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.token-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (max-width: 860px) {
  .rules-grid,
  .dont-grid {
    grid-template-columns: 1fr;
  }
}

.rule-card,
.dont-card,
.token-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.rule-card h3,
.dont-card h3,
.token-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}
.rule-card p,
.dont-card p,
.token-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.dont-card {
  border-color: color-mix(in srgb, #e11d48 28%, var(--border));
}
.dont-card h3 {
  color: #be123c;
}
@media (prefers-color-scheme: dark) {
  .dont-card h3 {
    color: #fb7185;
  }
}

.clear-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 1rem 0 1.5rem;
}
.clear-frame {
  position: relative;
  width: 120px;
  height: 120px;
  border: 1px dashed color-mix(in srgb, var(--brand) 55%, var(--border));
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-softer) 70%, transparent);
}
.clear-frame img {
  width: 64px;
  height: 64px;
}
.clear-label {
  position: absolute;
  bottom: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.swatch {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.swatch-chip {
  height: 72px;
  width: 100%;
}
.swatch-meta {
  padding: 0.7rem 0.8rem 0.85rem;
}
.swatch-meta strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}
.swatch button.hex {
  appearance: none;
  border: 0;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.swatch button.hex:hover {
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface-2));
}
.swatch button.hex.copied {
  background: var(--brand);
  color: #fff;
}

.type-sample {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  margin: 1rem 0 1.5rem;
  box-shadow: var(--shadow);
}
.type-sample .display {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
}
.type-sample .body {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}
.type-meta {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.voice-list {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}
.voice-list li {
  margin: 0.45rem 0;
}
.voice-list strong {
  color: var(--ink);
}

.dl-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}
.dl-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}
.dl-list .meta {
  min-width: 0;
}
.dl-list .meta strong {
  display: block;
  font-size: 0.95rem;
}
.dl-list .meta span {
  color: var(--muted);
  font-size: 0.84rem;
}
.dl-list a.btn {
  flex-shrink: 0;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}

.callout {
  background: color-mix(in srgb, var(--brand-softer) 80%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
}
.callout h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}
.callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.callout code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: color-mix(in srgb, var(--brand-soft) 40%, transparent);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  color: var(--ink);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
}
.toc a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  text-decoration: none;
}

.section-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -0.35rem 0 1rem;
  max-width: 40rem;
}
