/* ============================================================
   KemitSecurity — branding.css
   ============================================================ */

/* ── Jump nav bar ──────────────────────────────────────────── */
.brand-toc-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand-toc {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand-toc-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.brand-toc-sep {
  color: var(--text-3);
  font-size: 0.75rem;
}

.brand-toc-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.brand-toc-link:hover           { color: var(--text); background: rgba(255,255,255,0.06); }
.brand-toc-link.vpn-toc:hover   { color: var(--blue);   border-color: rgba(59,130,246,0.3);  background: rgba(59,130,246,0.08); }
.brand-toc-link.pass-toc:hover  { color: var(--violet); border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.08); }

/* ── Brand section headers ─────────────────────────────────── */
.brand-section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.brand-section-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.ks-mark {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
}

.vpn-mark {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #3b82f6;
}
.vpn-mark svg { width: 32px; height: 32px; }

.pass-mark {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #8b5cf6;
}
.pass-mark svg { width: 32px; height: 32px; }

.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 0.5rem;
  max-width: 560px;
}

/* ── Brand blocks ──────────────────────────────────────────── */
.brand-block {
  margin-bottom: 4rem;
}
.brand-block:last-child { margin-bottom: 0; }

.brand-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ── Logo showcase ─────────────────────────────────────────── */
.logo-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.logo-preview {
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.ks-bg   { background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(139,92,246,0.12)); }
.vpn-bg  { background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(6,182,212,0.10)); }
.pass-bg { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(236,72,153,0.10)); }
.dark-bg { background: var(--bg-2); }
.light-bg {
  background: #f8fafc;
  border-color: rgba(0,0,0,0.08);
}

.logo-xl .logo-mark { font-size: 1.5rem; width: 48px; height: 48px; border-radius: 14px; }
.logo-xl .logo-text { font-size: 1.25rem; }

.logo-mark-dark {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: #fff !important;
}
.logo-text-dark { color: #0f172a !important; }

/* ── Product logo lockup ───────────────────────────────────── */
.product-logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.plc-icon-lg {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
}
.plc-icon-lg svg { width: 28px !important; height: 28px !important; }

.vpn-icon       { background: rgba(59,130,246,0.15);  color: #3b82f6; }
.vpn-icon-light { background: rgba(59,130,246,0.12);  color: #1d4ed8; }
.pass-icon       { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.pass-icon-light { background: rgba(139,92,246,0.12); color: #7c3aed; }

.product-wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.vpn-wordmark      { color: #3b82f6; }
.vpn-wordmark-dark { color: #1d4ed8; }
.pass-wordmark      { color: #8b5cf6; }
.pass-wordmark-dark { color: #7c3aed; }

/* ── Logo rules ────────────────────────────────────────────── */
.logo-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.logo-rule {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.logo-rule.do   { border-color: rgba(16,185,129,0.2);  background: rgba(16,185,129,0.04); }
.logo-rule.dont { border-color: rgba(239,68,68,0.2);   background: rgba(239,68,68,0.04); }

.rule-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.do-label   { color: #10b981; background: rgba(16,185,129,0.12);  border: 1px solid rgba(16,185,129,0.25); }
.dont-label { color: #f87171; background: rgba(239,68,68,0.12);   border: 1px solid rgba(239,68,68,0.25); }

.logo-rule ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.logo-rule li {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
  padding-left: 1.1rem;
  position: relative;
}
.logo-rule.do   li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-size: 0.8rem; }
.logo-rule.dont li::before { content: '✗'; position: absolute; left: 0; color: #f87171; font-size: 0.8rem; }

/* ── Color swatches ────────────────────────────────────────── */
.color-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.color-row.mt-sm { margin-top: 0.5rem; }

.color-swatch {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.swatch-chip {
  height: 72px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.swatch-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.swatch-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.swatch-role {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── Gradient showcase ─────────────────────────────────────── */
.gradient-showcase {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}

.grad-chip {
  width: 120px;
  height: 60px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.grad-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.grad-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.grad-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.grad-usage {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── Typography stack ──────────────────────────────────────── */
.type-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.type-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.type-row:first-child { border-top: 1px solid var(--border); }

.type-specimen {
  flex: 0 0 280px;
  color: var(--text);
  line-height: 1;
}

.type-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.type-family {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue);
  letter-spacing: 0.06em;
}

.type-usage {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ── Voice grid ────────────────────────────────────────────── */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.voice-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.voice-card:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
}

.voice-icon {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.voice-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.voice-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Voice examples ────────────────────────────────────────── */
.voice-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.voice-ex {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.voice-ex.do-ex   { border-color: rgba(16,185,129,0.2);  background: rgba(16,185,129,0.04); }
.voice-ex.dont-ex { border-color: rgba(239,68,68,0.2);   background: rgba(239,68,68,0.04); }

.voice-ex blockquote {
  margin-top: 0.85rem;
  font-size: 0.925rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-2);
  border-left: 3px solid var(--border-md);
  padding-left: 1rem;
}
.voice-ex.do-ex blockquote   { border-left-color: rgba(16,185,129,0.4); color: var(--text); }
.voice-ex.dont-ex blockquote { border-left-color: rgba(239,68,68,0.3); }

/* ── Messaging grid ────────────────────────────────────────── */
.messaging-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.messaging-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.messaging-quote {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.4;
  font-style: italic;
}

.messaging-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.messaging-list li {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.messaging-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ── Section label variants ────────────────────────────────── */
.vpn-label {
  color: var(--blue) !important;
  background: rgba(59,130,246,0.1) !important;
  border-color: rgba(59,130,246,0.25) !important;
}

.pass-label {
  color: var(--violet) !important;
  background: rgba(139,92,246,0.1) !important;
  border-color: rgba(139,92,246,0.25) !important;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .logo-showcase-grid  { grid-template-columns: 1fr 1fr; }
  .voice-grid          { grid-template-columns: 1fr 1fr; }
  .messaging-grid      { grid-template-columns: 1fr 1fr; }
  .type-row            { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .type-specimen       { flex: none; }
  .brand-section-header { flex-direction: column; gap: 1rem; }
  .color-swatch        { min-width: 100px; }
}

@media (max-width: 640px) {
  .logo-showcase-grid  { grid-template-columns: 1fr; }
  .logo-rules          { grid-template-columns: 1fr; }
  .voice-grid          { grid-template-columns: 1fr; }
  .voice-examples      { grid-template-columns: 1fr; }
  .messaging-grid      { grid-template-columns: 1fr; }
  .color-row           { gap: 0.75rem; }
  .color-swatch        { min-width: calc(50% - 0.375rem); }
  .gradient-showcase   { flex-direction: column; align-items: flex-start; }
  .brand-toc           { gap: 0.5rem; }
}

/* ============================================================
   Logo concept trio
   ============================================================ */

.concept-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.concept-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.concept-card-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.ctag {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(108,92,231,0.15);
  border: 1px solid rgba(108,92,231,0.3);
  color: #6C5CE7;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.concept-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.concept-desc {
  font-size: 0.775rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* Large preview — translucent dark field */
.cc-large {
  flex: 1;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.015);
}

/* Small dark card preview — pure #0E0E0E matching the SVG reference */
.cc-small {
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #0E0E0E;
  min-height: 52px;
}

/* ── Concept A: Closing Arc ─────────────────────────────── */
.cl-a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}

/* ── Concept B: K-Mark ──────────────────────────────────── */
.cl-b {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}

/* ── Concept C: Understroke ─────────────────────────────── */
.cl-c {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
}

.cl-kemit-wide {
  font-family: 'Inter', var(--font);
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: 0.14em;
  color: var(--text);
  line-height: 1;
}

.cl-us-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 5px;
}

.cl-us-line-a,
.cl-us-line-b {
  height: 1.5px;
  background: rgba(255,255,255,0.35);
  margin-top: 2.5px;
}
.cl-us-line-a { flex: 3; }
.cl-us-line-b { flex: 1; }

.cl-us-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}

.cl-us-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6C5CE7;
}

.cl-suffix-c {
  font-family: 'Inter', var(--font);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #6C5CE7;
  white-space: nowrap;
  line-height: 1;
}

/* Small (cc-small) variant for concept C */
.cl-c-sm .cl-kemit-wide {
  font-size: 1.1rem;
}
.cl-c-sm .cl-us-dot {
  width: 4px;
  height: 4px;
}
.cl-c-sm .cl-suffix-c {
  font-size: 0.5rem;
}
.cl-c-sm .cl-us-line-a,
.cl-c-sm .cl-us-line-b {
  margin-top: 1.5px;
}

/* ── Shared wordmark ─────────────────────────────────────── */
.cl-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cl-kemit {
  font-family: 'Inter', var(--font);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.cl-suffix {
  font-family: 'Inter', var(--font);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #6C5CE7;
  line-height: 1;
}

/* Small wordmark variant */
.cl-words-sm .cl-kemit { font-size: 1rem; }
.cl-words-sm .cl-suffix { font-size: 0.52rem; }

/* Responsive */
@media (max-width: 860px) {
  .concept-trio { grid-template-columns: 1fr; }
}
