/* Brand kit — structure adapted from Mobbin Aave Brand section
   b7851cbc-e94a-420f-99ca-09bf79787164 (hero grid, logo stage, color
   cards, best-practice tiles). PetrolPrice tokens from DESIGN.md. */

.brand-main {
  width: min(var(--lt-max, 1120px), calc(100% - 2 * var(--ppx-page-inset, 20px)));
  margin-inline: auto;
  padding-top: clamp(2.75rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* ── Hero ──────────────────────────────────────────────────── */

.brand-hero {
  margin-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.brand-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.brand-hero-title {
  margin: 0;
  font-family: var(--lt-display, Inter, system-ui, sans-serif);
  font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--lt-ink, #121212);
}

.brand-hero-sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--lt-muted, rgba(71, 70, 69, 0.7));
  text-align: right;
  max-width: 28ch;
}

.brand-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.brand-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: clamp(220px, 28vw, 320px);
  padding: 32px 24px;
  border-radius: 24px;
  background: #ff6a00;
  color: #fff;
}

.brand-hero-logo img {
  width: clamp(48px, 7vw, 72px);
  height: auto;
  flex: none;
}

.brand-hero-logo span {
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-hero-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  min-height: 0;
}

.brand-hero-accent {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.18) 0 28%, transparent 29%),
    radial-gradient(circle at 72% 62%, rgba(255, 255, 255, 0.12) 0 22%, transparent 23%),
    radial-gradient(circle at 55% 20%, rgba(0, 0, 0, 0.12) 0 18%, transparent 19%),
    linear-gradient(145deg, #1a1a1a 0%, #0c0c0c 100%);
}

.brand-hero-dl {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 148px;
  padding: 22px 22px 18px;
  border-radius: 24px;
  border: 1px solid var(--lt-line, #e8e8e8);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.brand-hero-dl:hover {
  border-color: color-mix(in srgb, var(--lt-ink, #121212) 18%, transparent);
  background: #fafafa;
}

.brand-hero-dl:focus-visible {
  outline: 2px solid var(--lt-orange, #ff6a00);
  outline-offset: 3px;
}

.brand-hero-dl-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand-hero-dl-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lt-ink, #121212);
}

.brand-hero-dl-copy {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--lt-muted, rgba(71, 70, 69, 0.7));
}

.brand-hero-dl-ico {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--lt-ink, #121212);
  display: grid;
  place-items: center;
  color: var(--lt-ink, #121212);
}

.brand-hero-dl-meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--lt-muted, rgba(71, 70, 69, 0.55));
  text-transform: uppercase;
}

/* ── Sections ──────────────────────────────────────────────── */

.brand-section {
  margin-top: clamp(3.25rem, 7vw, 5rem);
}

.brand-section-title {
  margin: 0 0 0.35rem;
  font-family: var(--lt-display, Inter, system-ui, sans-serif);
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--lt-ink, #121212);
}

.brand-section-sub {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--lt-muted, rgba(71, 70, 69, 0.7));
}

/* ── Logo showcase ─────────────────────────────────────────── */

.brand-logo-stage {
  display: grid;
  place-items: center;
  min-height: clamp(240px, 36vw, 380px);
  padding: 40px 24px;
  border-radius: 24px;
  background: #0f0f0f;
}

.brand-logo-stage img {
  width: clamp(120px, 22vw, 220px);
  height: auto;
}

.brand-asset-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.brand-asset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.brand-asset-label {
  min-width: 6.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--lt-ink, #121212);
}

.brand-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--lt-line, #e8e8e8);
  background: #f7f7f7;
  color: var(--lt-ink, #121212);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.brand-dl:hover {
  background: #efefef;
  border-color: color-mix(in srgb, var(--lt-ink, #121212) 16%, transparent);
}

.brand-dl:focus-visible {
  outline: 2px solid var(--lt-orange, #ff6a00);
  outline-offset: 2px;
}

/* ── Colors ────────────────────────────────────────────────── */

.brand-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.brand-swatch-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: #f7f7f7;
}

.brand-swatch-card-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lt-ink, #121212);
}

.brand-swatch-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-swatch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-swatch code {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.brand-swatch--accent {
  background: #ff6a00;
  color: #fff;
}

.brand-swatch--accent-deep {
  background: #f06619;
  color: #fff;
}

.brand-swatch--ink {
  background: #0f0f0f;
  color: #ececec;
}

.brand-swatch--ink-soft {
  background: #17171a;
  color: #ececec;
}

.brand-swatch--canvas {
  background: #ffffff;
  color: #0f0f0f;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.brand-swatch--page {
  background: #f1f1f0;
  color: #0f0f0f;
}

.brand-swatch--dark {
  background: #1a1a1a;
  color: #ececec;
}

.brand-swatch--void {
  background: #0c0c0c;
  color: #ececec;
}

.brand-swatch--up {
  background: #15803d;
  color: #fff;
}

.brand-swatch--down {
  background: #b91c1c;
  color: #fff;
}

.brand-swatch--muted {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.7);
}

/* ── Best practices ────────────────────────────────────────── */

.brand-practices {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
}

.brand-practice-block-title {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--lt-ink, #121212);
}

.brand-dos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.brand-do {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 18px;
  padding: 18px;
}

.brand-do img {
  width: 42%;
  height: auto;
}

.brand-do--orange { background: #ff6a00; }
.brand-do--ink { background: #0f0f0f; }
.brand-do--page { background: #f1f1f0; }
.brand-do--white {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.brand-donts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 12px;
}

.brand-dont {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-dont-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 18px;
  background: #f7f7f7;
  overflow: hidden;
}

.brand-dont-tile img {
  width: 40%;
  height: auto;
}

.brand-dont-tile::after {
  content: "";
  position: absolute;
  inset: 18% auto auto 10%;
  width: 80%;
  height: 2px;
  background: #e11d48;
  transform: rotate(-28deg);
  transform-origin: center;
  border-radius: 2px;
}

.brand-dont--rotate img { transform: rotate(18deg); }
.brand-dont--stretch img { width: 58%; transform: scaleY(0.72); }
.brand-dont--shadow img { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); }
.brand-dont--recolor img { filter: hue-rotate(160deg) saturate(1.4); }

.brand-dont-label {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--lt-muted, rgba(71, 70, 69, 0.7));
  text-align: center;
}

/* ── FAQ ───────────────────────────────────────────────────── */

.brand-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.brand-faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--lt-line, #e8e8e8);
}

.brand-faq details {
  border-bottom: 1px solid var(--lt-line, #e8e8e8);
}

.brand-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--lt-ink, #121212);
}

.brand-faq summary::-webkit-details-marker { display: none; }

.brand-faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
  opacity: 0.55;
}

.brand-faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}

.brand-faq-body {
  padding: 0 0 18px;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--lt-muted, rgba(71, 70, 69, 0.7));
}

.brand-faq-body p { margin: 0; }

.brand-faq-body a {
  color: var(--lt-orange, #ff6a00);
  text-decoration: none;
}

.brand-faq-body a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 860px) {
  .brand-hero-grid {
    grid-template-columns: 1fr;
  }

  .brand-hero-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .brand-hero-accent {
    min-height: 148px;
  }

  .brand-colors {
    grid-template-columns: 1fr;
  }

  .brand-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-hero-sub {
    text-align: left;
    max-width: none;
  }

  .brand-hero-side {
    grid-template-columns: 1fr;
  }

  .brand-dos,
  .brand-donts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero-dl,
  .brand-dl,
  .brand-faq summary::after {
    transition: none;
  }
}
