/* AffixIO /brands — for companies partnering with AffixIO.
   Distinct layout from /collab: stacked hero band, fit-finder, models accordion,
   zigzag image rows, horizontal process. Reuses site-chrome tokens. */

body { background: var(--chalk, #f5f2ea); }

.brands-page {
  --pine: #295f4e;
  --pine-deep: #1f4a3c;
  --bronze: #8a6742;
  --refusal: #8c3a32;
  --graphite: #1d2128;
  --chalk: #f5f2ea;
  --card: #f0ece2;
  --line: #cfc7b8;
  --chip: #ebe4d6;
  --muted: #4c5868;
  --ink: #1a1e24;
  --paper: #fbfaf6;

  color: var(--graphite);
  background: var(--chalk);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
}

.brands-page * { box-sizing: border-box; }

.brands-page .kicker {
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brands-page .kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--bronze);
  display: inline-block;
}

/* ---------- Hero (stacked, wide band) ---------- */
.brands-hero {
  padding: clamp(1.25rem, 4vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.brands-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 1rem;
  max-width: 20ch;
  color: var(--ink);
}
.brands-hero h1 .mark { color: var(--pine); }

.brands-hero .lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 1.5rem;
}

.brands-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.brands-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--graphite);
  border-radius: 6px;
  padding: 0.72rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.brands-btn:hover { transform: translateY(-1px); border-color: var(--bronze); }
.brands-btn--primary { background: var(--pine); border-color: var(--pine); color: #f5f2ea; }
.brands-btn--primary:hover { background: var(--pine-deep); border-color: var(--pine-deep); }

.brands-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.74rem;
  color: var(--muted);
  padding-top: 0.4rem;
}
.brands-hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.brands-hero-meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pine);
}

.brands-hero-figure {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 22px 55px rgba(20, 26, 24, 0.15);
  position: relative;
}
.brands-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 24 / 9;
}
.brands-hero-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.1rem;
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  color: #f2efe7;
  background: linear-gradient(to top, rgba(20, 26, 24, 0.8), rgba(20, 26, 24, 0));
}

/* ---------- Section scaffolding ---------- */
.brands-section {
  padding: clamp(2.2rem, 4.5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}

.brands-section-head { max-width: 64ch; margin: 0 0 1.8rem; }
.brands-section-head h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.brands-section-head p { font-size: 1rem; color: var(--muted); margin: 0; }

/* ---------- Value props ---------- */
.brands-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}
.brands-value { border-left: 2px solid var(--bronze); padding-left: 1rem; }
.brands-value .vnum {
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--bronze);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}
.brands-value h3 { margin: 0 0 0.35rem; font-size: 1.02rem; letter-spacing: -0.01em; }
.brands-value p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Fit finder (interactive) ---------- */
.brands-finder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.brands-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--graphite);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.brands-chip:hover { border-color: var(--bronze); }
.brands-chip[aria-selected="true"] { background: var(--pine); border-color: var(--pine); color: #f5f2ea; }

.brands-finder-result { position: relative; min-height: 150px; }
.brands-result {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 1.4rem 1.5rem;
  animation: brands-fade 0.3s ease both;
}
.brands-result[data-active="true"] { display: block; }
@keyframes brands-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.brands-result .r-model {
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 0.5rem;
}
.brands-result h3 { margin: 0 0 0.5rem; font-size: 1.2rem; letter-spacing: -0.02em; }
.brands-result p { margin: 0 0 0.9rem; font-size: 0.94rem; color: var(--muted); max-width: 62ch; }
.brands-result .r-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.86rem; }
.brands-result .r-links a { color: var(--pine); font-weight: 600; }

/* ---------- Models accordion ---------- */
.brands-models { display: grid; gap: 0.55rem; }
.brands-model {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}
.brands-model summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
}
.brands-model summary::-webkit-details-marker { display: none; }
.brands-model .m-num {
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--bronze);
  font-weight: 500;
}
.brands-model .m-title { font-weight: 700; font-size: 1.02rem; }
.brands-model .m-tag {
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}
.brands-model summary::after {
  content: "+";
  color: var(--bronze);
  font-weight: 700;
  font-size: 1.2rem;
  grid-column: 4;
}
.brands-model[open] summary { border-bottom: 1px solid var(--line); }
.brands-model[open] summary::after { content: "\2212"; }
.brands-model-body { padding: 1.1rem 1.15rem 1.3rem; }
.brands-model-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem 1.8rem;
}
.brands-model-cols h4 {
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 0.55rem;
}
.brands-model-cols p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.brands-model-foot { margin-top: 1.1rem; font-size: 0.86rem; }
.brands-model-foot a { color: var(--pine); font-weight: 600; }

/* ---------- Zigzag image rows ---------- */
.brands-zig { display: grid; gap: clamp(0.9rem, 1.8vw, 1.35rem); }
.brands-zig-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.1rem, 2.6vw, 2.25rem);
  align-items: stretch;
}
.brands-zig-row:nth-child(even) .brands-zig-media { order: 2; }
.brands-zig-media {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  min-height: 230px;
}
.brands-zig-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brands-zig-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.4rem 0;
}
.brands-zig-copy .zc-label {
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 0.5rem;
}
.brands-zig-copy h3 { margin: 0 0 0.5rem; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.brands-zig-copy p { margin: 0 0 0.7rem; font-size: 0.94rem; color: var(--muted); max-width: 52ch; }
.brands-zig-copy a { color: var(--pine); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.brands-zig-copy a:hover { text-decoration: underline; }

/* ---------- Process ---------- */
.brands-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.brands-step { background: var(--paper); padding: 1.3rem 1.15rem; }
.brands-step .s-num {
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--pine);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}
.brands-step h3 { margin: 0 0 0.35rem; font-size: 1rem; letter-spacing: -0.01em; }
.brands-step p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* ---------- Proof band ---------- */
.brands-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.brands-proof div { background: var(--paper); padding: 1.3rem 1.1rem; }
.brands-proof .num {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pine);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.brands-proof .lbl { font-size: 0.82rem; color: var(--muted); }
.brands-proof a { color: var(--pine); font-weight: 600; }

/* ---------- FAQ ---------- */
.brands-faq { display: grid; gap: 0.55rem; max-width: 820px; }
.brands-faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.brands-faq summary {
  list-style: none; cursor: pointer; padding: 1rem 1.1rem;
  font-weight: 600; font-size: 0.98rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.brands-faq summary::-webkit-details-marker { display: none; }
.brands-faq summary::after { content: "+"; color: var(--bronze); font-weight: 700; font-size: 1.2rem; }
.brands-faq details[open] summary { border-bottom: 1px solid var(--line); }
.brands-faq details[open] summary::after { content: "\2212"; }
.brands-faq details p { margin: 0; padding: 0.95rem 1.1rem 1.15rem; font-size: 0.92rem; color: var(--muted); }
.brands-faq details a { color: var(--pine); font-weight: 600; }

/* ---------- CTA ---------- */
.brands-cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  border: 1px solid var(--pine);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, rgba(41, 95, 78, 0.06), rgba(41, 95, 78, 0.02));
}
.brands-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); letter-spacing: -0.02em; margin: 0 0 0.7rem; color: var(--ink); }
.brands-cta p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.98rem; }
.brands-cta-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 1.4rem; text-align: center; }
.brands-cta-panel .brands-btn { width: 100%; justify-content: center; }
.brands-cta-panel .note { font-size: 0.84rem; color: var(--muted); margin: 0.9rem 0 0; }
.brands-cta-panel .note a { color: var(--pine); font-weight: 600; }

/* ---------- Reveal ---------- */
.brands-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.brands-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .brands-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .brands-values { grid-template-columns: 1fr; }
  .brands-model-cols { grid-template-columns: 1fr; }
  .brands-zig-row { grid-template-columns: 1fr; }
  .brands-zig-row:nth-child(even) .brands-zig-media { order: 0; }
  .brands-process { grid-template-columns: 1fr 1fr; }
  .brands-proof { grid-template-columns: 1fr 1fr; }
  .brands-cta { grid-template-columns: 1fr; }
  .brands-hero-figure img { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .brands-process, .brands-proof { grid-template-columns: 1fr; }
  .brands-model summary { grid-template-columns: auto 1fr; }
  .brands-model .m-tag { display: none; }
}
