/* Partnerships LP — extends colors_and_type.css */

@import url('assets/colors_and_type.css');

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: #fff; }

body {
  background: #fff;
  color: var(--fg-2);
}

/* ---------- Layout primitives ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.container-prose { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* ---------- Section header treatments ---------- */
.section-rule {
  border-top: 1px solid var(--border-default);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

.section-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--fg-2);
  margin: 0;
  max-width: 720px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 8px;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform 120ms var(--ease-out), background 120ms var(--ease-out);
}
.btn-primary {
  background: var(--ap-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ap-purple-deep);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border: 1px solid var(--fg-1);
}
.btn-ghost:hover {
  background: var(--fg-1);
  color: #fff;
}
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* ---------- Pill / chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-accent-soft);
  color: var(--ap-blue);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Real-content placeholder slots ----------
   Used wherever we will paste a real screenshot, embed,
   headshot, or asset. Visually quiet, clearly labelled.
*/
.slot {
  position: relative;
  background: #fafbfc;
  border: 1px dashed #c2cad2;
  border-radius: 8px;
  color: var(--fg-3);
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.slot-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-blue);
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--bg-accent-soft);
}
.slot-icon { font-size: 28px; opacity: 0.4; margin-bottom: 8px; display: block; }
.slot-body { font-size: 14px; line-height: 1.45; max-width: 320px; }
.slot-body strong { color: var(--fg-1); font-weight: 600; display: block; margin-bottom: 4px; }

/* ---------- Hero stats strip ---------- */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero-meta-item { padding-right: 16px; }
.hero-meta-item + .hero-meta-item {
  padding-left: 32px;
  border-left: 1px solid var(--border-default);
}

/* ---------- Decorative ---------- */
.kicker-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--ap-blue);
  vertical-align: middle;
  margin-right: 12px;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 12px;
}

/* ---------- Big numerals (stats) ---------- */
.stat-num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-1);
}
.stat-num .unit { color: var(--ap-blue); }

/* ---------- Table ---------- */
table.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
}
table.ref-table th, table.ref-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
}
table.ref-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--fg-3);
  background: #fafbfc;
}
table.ref-table tr:hover td { background: #fafbfc; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--border-default);
  padding: 20px 0;
}
details.faq > summary {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--fg-1);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 300;
  color: var(--ap-blue);
  transition: transform 200ms var(--ease-out);
}
details.faq[open] > summary::after { content: '−'; }
details.faq > div {
  padding-top: 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 760px;
}
details.faq > div ul { margin: 12px 0; padding-left: 18px; }
details.faq > div li { margin-bottom: 6px; }

/* ---------- Misc ---------- */
.muted { color: var(--fg-3); }
.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

/* =========================================================================
   Responsive — mobile-first overrides
   Strategy: collapse all 2-3 column grids to single column,
             shrink section paddings, reflow hero, condense cards.
   ========================================================================= */

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .container-narrow { padding: 0 24px; }
  .container-prose { padding: 0 24px; }
}

@media (max-width: 860px) {
  /* Section paddings */
  section { padding-top: 64px !important; padding-bottom: 64px !important; }

  /* Hero — stack vertically, portrait under text */
  .hero-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .hero-portrait { padding-top: 0 !important; max-width: 420px; margin: 0 auto; }
  .hero-sig { left: 8px !important; top: 8px !important; max-width: 200px !important; }
  .hero-quote { margin-left: 16px !important; margin-right: 8px !important; }
  /* Hero meta: 4 cols -> 2 cols on tablet */
  .hero-meta { grid-template-columns: repeat(2, 1fr) !important; gap: 24px 0 !important; }
  .hero-meta .hero-meta-item { padding-top: 12px; }
  .hero-meta .hero-meta-item:nth-child(2n+1) {
    padding-left: 0 !important;
    border-left: 0 !important;
  }
  .hero-meta .hero-meta-item:nth-child(2n) {
    padding-left: 32px !important;
    border-left: 1px solid var(--border-default) !important;
  }

  /* Generic: every direct 2-column or N-column grid collapses to 1 */
  .stack-mobile,
  section > div > div[style*="grid-template-columns: 1fr 1fr"],
  section > div > div[style*="grid-template-columns: 1.05fr 1fr"],
  section > div > div[style*="grid-template-columns: 1.1fr 1fr"],
  section > div > div[style*="grid-template-columns: 1.2fr 1fr"],
  section > div > div[style*="grid-template-columns: 1.35fr 1fr"],
  section > div > div[style*="grid-template-columns: 1.4fr 1fr"],
  section > div > div[style*="grid-template-columns: 1fr 1.05fr"],
  section > div > div[style*="grid-template-columns: 1fr 1.4fr"],
  section > div > div[style*="grid-template-columns: 1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Stat strips: 3 cols -> 1 col */
  section > div > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  section > div > div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border-default);
    padding: 24px 0 !important;
  }
  section > div > div[style*="grid-template-columns: repeat(3, 1fr)"] > div:last-child {
    border-bottom: 0;
  }

  /* 4-col Problems strip */
  section > div > div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  section > div > div[style*="grid-template-columns: repeat(4, 1fr)"] > div {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Case studies inner grid */
  article.card > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  article.card > div[style*="grid-template-columns"] > div {
    order: unset !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 32px 24px !important;
  }
  /* Real-content side becomes first on mobile so partner sees proof first */
  article.card > div[style*="grid-template-columns: 1.05fr 1fr"] > div:nth-child(2),
  article.card > div[style*="grid-template-columns: 1fr 1.05fr"] > div:nth-child(1) {
    order: -1 !important;
  }

  /* Packages: 3 cards -> stack */
  section#pakete div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  section#pakete article.card[style*="translateY"] {
    transform: none !important;
  }

  /* Audience companies grid */
  section div[style*="grid-template-columns: repeat(4, 1fr)"][style*="aspect-ratio"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Reference table - hide channel column on tiny screens, keep name + type */
  table.ref-table th:nth-child(4), table.ref-table td:nth-child(4) { display: none; }

  /* Hero headline tuning */
  h1, h2, h3 { word-break: normal; }
  .section-title { font-size: clamp(32px, 7vw, 48px) !important; }
  .hero-title { font-size: clamp(38px, 9vw, 56px) !important; }

  /* Channel cards inner grid (copy + slot) -> stack */
  /* already covered above */

  /* Process steps: 2 col -> 1 */
  ol[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Big stat numbers - cap so they don't overflow */
  .stat-num { font-size: clamp(48px, 14vw, 72px) !important; }

  /* TopBar */
  div[style*="position: sticky"] > div.container {
    padding: 12px 20px !important;
    gap: 12px !important;
  }
  div[style*="position: sticky"] nav { gap: 10px !important; }
  div[style*="position: sticky"] .btn { padding: 8px 14px !important; font-size: 13px !important; }

  /* Footer */
  footer > div.container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  /* Reduce horizontal paddings on cards */
  .card[style*="padding: 48"], .card[style*="padding: 56"], .card[style*="padding: 40"], .card[style*="padding: 36"] {
    padding: 24px !important;
  }
}

@media (max-width: 480px) {
  section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .container, .container-narrow, .container-prose { padding: 0 20px !important; }
  .btn-lg { padding: 14px 22px !important; font-size: 15px !important; }
  /* Hero meta: collapse to 1 col, no left padding/border, use border-top between rows */
  .hero-meta { grid-template-columns: 1fr !important; gap: 0 !important; }
  .hero-meta .hero-meta-item,
  .hero-meta .hero-meta-item:nth-child(2n),
  .hero-meta .hero-meta-item:nth-child(2n+1) {
    padding: 20px 0 !important;
    border-left: 0 !important;
  }
  .hero-meta .hero-meta-item + .hero-meta-item {
    border-top: 1px solid var(--border-default);
  }
  table.ref-table th, table.ref-table td { padding: 10px 12px !important; font-size: 13px !important; }
  details.faq > summary { font-size: 17px !important; gap: 12px !important; }
  .hero-sig { left: 8px !important; top: 8px !important; padding: 10px 12px !important; }
  /* Stack footer to 1 col on very small */
  footer > div.container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Audience companies tighter */
  section div[style*="grid-template-columns: repeat(4, 1fr)"][style*="aspect-ratio"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
