/* DNSai brand & style guide (/brand/). Ported from ixm.ai/brand onto theme.css tokens. */
.toc { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: 76px; z-index: 5; padding: 10px 0; background: var(--bg-body); }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-default); color: var(--text-muted); text-decoration: none; font-size: 13px; }
.toc a:hover { color: var(--text-primary); border-color: var(--brand-cyan); }
.brand-contents { padding-block: 0; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lockup { margin: 0; border: 1px solid var(--border-default); border-radius: 14px; overflow: hidden; background: var(--bg-card); }
.lockup img { display: block; width: 100%; height: auto; }
.lockup--light { background: #FFFFFF; }
.lockup--light figcaption { background: #f9f9f9; color: #555555; border-color: #cccccc; }
.lockup figcaption { padding: 10px 14px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border-default); background: var(--bg-card); }
.icon-row { display: flex; align-items: flex-end; gap: 24px; padding: 28px; }
.icon-row img { border-radius: 18%; }
.gradient-bar { height: 56px; border-radius: 12px; background: var(--brand-gradient); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #ffffff; margin-bottom: 28px; }
.color-group__title { font-size: 15px; color: var(--text-muted); font-weight: 600; margin: 24px 0 12px; letter-spacing: .04em; text-transform: uppercase; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.swatch { display: block; padding: 0; border: 1px solid var(--border-default); border-radius: 12px; overflow: hidden; background: var(--bg-card); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.swatch__preview { display: block; height: 84px; background: var(--sw); }
.swatch__info { display: grid; gap: 2px; padding: 10px 12px; }
.swatch__name { font-weight: 600; font-size: 14px; }
.swatch__hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--brand-cyan); }
.swatch__var { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-muted); }
.swatch__note { font-size: 12px; color: var(--text-muted); }
.swatch:hover { border-color: var(--brand-cyan); }
.swatch.is-copied .swatch__hex::after { content: "  copied"; color: var(--text-primary); }
.mode-panel { border-radius: 14px; padding: 24px; border: 1px solid var(--border-default); }
.mode-panel h3 { margin: 0 0 8px; }
.mode-panel p { margin: 0 0 16px; }
.mode-panel--dark { background: var(--bg-card); }
.mode-panel--light { background: #FFFFFF; color: #000000; border-color: #cccccc; background-image: linear-gradient(180deg, #f1f1f1, #FFFFFF); }
.mode-panel--light h3 { color: #000000; }
.mode-panel--light p { color: #555555; }
.mode-panel--light a { color: #0054ff; }
.mode-panel__swatches { display: flex; gap: 8px; }
.mode-panel__swatches span { width: 40px; height: 40px; border-radius: 10px; display: block; }
.type-specimen { display: grid; gap: 18px; }
.type-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border-default); }
.type-meta { font-size: 12px; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.spec-h1 { font-family: 'Inter', sans-serif; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); font-weight: 800; line-height: 1.05; margin: 0; }
.spec-h2 { font-family: 'Inter', sans-serif; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem); font-weight: 700; margin: 0; }
.spec-h3 { font-family: 'Inter', sans-serif; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 700; margin: 0; }
.spec-body { margin: 0; max-width: 560px; }
.spec-num { font-family: 'Inter', sans-serif; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 720px) { .type-row { grid-template-columns: 1fr; gap: 6px; } }
.spacing-scale { display: grid; gap: 10px; }
.space { display: flex; align-items: center; gap: 14px; }
.space span { display: block; height: 14px; background: var(--brand-gradient); border-radius: 4px; }
.space code { font-size: 13px; color: var(--text-muted); }
.comp { padding: 22px 0; border-bottom: 1px solid var(--border-default); }
.comp h3 { font-size: 15px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.comp-note { color: var(--text-muted); font-size: 13px; margin: 12px 0 0; }
.comp .stats-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dodont { list-style: none; margin: 0; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--border-default); background: var(--bg-card); }
.dodont li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--border-default); }
.dodont li:last-child { border-bottom: 0; }
.dodont li::before { position: absolute; left: 0; top: 8px; font-weight: 700; }
.dodont--do li::before { content: "\2713"; color: var(--brand-cyan); }
.dodont--dont li::before { content: "\2715"; color: var(--color-error); }
.tokens { position: relative; }
.tokens pre { margin: 0; padding: 20px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-default); overflow: auto; font-size: 13px; line-height: 1.5; }
.tokens__copy { position: absolute; top: 12px; right: 12px; }

.gradient-bar--cta { background: var(--brand-gradient); margin-top: -18px; }
.rationale { margin-bottom: 26px; }

/* v4 additions */
.lockup img { max-height: 260px; object-fit: contain; }
.lockup .icon-row img { max-height: none; }
.icon-row--split { padding: 0; align-items: stretch; gap: 0; }
.icon-row--split span { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px; }
.icon-row--split img { width: 100%; max-width: 260px; height: auto; }
.mono-dark { background: #000000; }
.mono-light { background: #ffffff; }
.downloads { margin-top: 24px; border: 1px solid var(--border-default); border-radius: 14px; padding: 12px 18px; background: var(--bg-card); }
.downloads summary { cursor: pointer; font-weight: 600; }
.downloads ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; }
.downloads a { color: var(--brand-cyan); }
.hl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-warning); margin-right: 8px; vertical-align: 1px; }
.nav-demo { color: var(--text-primary); text-decoration: none; padding: 8px 12px; box-shadow: inset 0 -2px 0 var(--color-warning); font-size: 14px; }

/* DNSai additions */
.brand-page { max-width: 1200px; margin: 0 auto; padding: calc(var(--nav-h) + 28px) max(clamp(1.25rem, 4vw, 2.5rem), 24px) 60px; }
.brand-page .section { padding-block: 40px; border-top: 1px solid var(--border-default); }
.brand-page .section:first-of-type { border-top: 0; }
.brand-page .section-head { max-width: 720px; margin-bottom: 24px; }
.brand-page .section-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem); margin: 0 0 8px; }
.brand-page .section-sub { color: var(--text-secondary); margin: 0; }
.brand-page .eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-cyan); margin-bottom: 8px; }
.brand-page .grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.brand-page .card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 12px; padding: 24px; min-width: 0; }
.brand-page .card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.brand-page .card p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.brand-page .footnote { font-size: 13px; color: var(--text-muted); margin: 16px 0 0; }
.brand-page .cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.brand-page .table-wrap { overflow-x: auto; }
.brand-page table { width: 100%; border-collapse: collapse; font-size: 14px; }
.brand-page th, .brand-page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-default); }
.brand-page th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.rec-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rec-legend .swatch__preview { height: 56px; }
.lockup--whale { display: grid; place-items: center; padding: 28px; }
.lockup--whale img { width: 160px; height: 160px; max-height: none; }
.wordmark-demo { font-size: 40px; font-weight: 700; letter-spacing: .01em; }
.wordmark-demo .thin { font-weight: 300; }
.toc { top: calc(var(--nav-h) + 4px); background: var(--bg-body); }
