/* =============================================================
   ACUME – Integrations page styles
   Extracted from acume-integrations-page.html prototype.
   ============================================================= */

/* ═══════════════════════════════════════
   SECTION 1  ·  HERO
   ═══════════════════════════════════════ */

.hero {
  position: relative; min-height: 100vh; padding: 140px 0 100px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg-type {
  position: absolute; font-family: var(--serif);
  font-size: clamp(180px, 24vw, 340px); line-height: 0.85;
  color: var(--bg-type-color); pointer-events: none; user-select: none;
  white-space: nowrap; letter-spacing: -0.04em; opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}
[data-theme="disruptor"] .hero-bg-type { opacity: 1; }
.hero-bg-type.top { top: 6%; left: -5%; }
.hero-bg-type.bottom { bottom: 3%; right: -10%; }
.hero-diagonal {
  position: absolute; top: 38%; left: -10%;
  width: 120%; height: 1px; background: var(--accent);
  transform: rotate(-12deg); opacity: var(--diagonal-opacity);
  pointer-events: none; transition: opacity 0.8s ease 0.6s;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.hero-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--accent); }
[data-theme="editorial"] .hero-eyebrow::before { background: var(--text-label); }
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(42px, 5.8vw, 82px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--text-hero); max-width: 22ch;
  margin-bottom: 36px; transition: color 0.6s ease 0.4s;
}
.hero-headline em { font-style: italic; color: var(--accent); }
[data-theme="editorial"] .hero-headline em { color: var(--text-label); font-style: italic; }
.hero-subhead {
  font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55;
  color: var(--text-body); max-width: 62ch; margin-bottom: 48px; font-weight: 400;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.btn-primary {
  padding: 18px 32px; background: var(--cta-bg); color: var(--cta-text);
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
  border: 1px solid var(--cta-bg); display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.25s ease;
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-primary .arrow { transition: transform 0.25s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-secondary {
  padding: 18px 32px; background: var(--cta-bg-secondary); color: var(--cta-text-secondary);
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.3px;
  border: 1px solid var(--cta-border-secondary); display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.25s ease;
}
.btn-secondary:hover { border-color: var(--cta-border-hover); color: var(--accent); transform: translateY(-2px); }
[data-theme="editorial"] .btn-secondary:hover { color: var(--text-hero); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.trust-item {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--label-letter-spacing);
  color: var(--text-label); display: flex; align-items: center; gap: 10px;
}
.trust-item::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
[data-theme="editorial"] .trust-item::before { background: var(--text-label); }

[data-hero-variant="a"] .hero-variant-b, [data-hero-variant="a"] .hero-variant-c,
[data-hero-variant="b"] .hero-variant-a, [data-hero-variant="b"] .hero-variant-c,
[data-hero-variant="c"] .hero-variant-a, [data-hero-variant="c"] .hero-variant-b { display: none; }

/* ═══ SECTIONS (shared) ═══ */
.section {
  position: relative; padding: 140px 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.6s ease 0.4s;
}
.section-header {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; margin-bottom: 80px; align-items: end;
}
.section-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 20px; display: block;
}
[data-theme="editorial"] .section-num { color: var(--text-label); }
.section-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: var(--label-letter-spacing); color: var(--text-label); text-transform: uppercase;
}
.section-title {
  font-family: var(--serif); font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--text-hero); max-width: 22ch;
  transition: color 0.6s ease 0.4s;
}
.section-title em { color: var(--accent); font-style: italic; }
[data-theme="editorial"] .section-title em { color: var(--text-hero); font-style: italic; }
.section-intro { font-size: 19px; line-height: 1.6; color: var(--text-body); max-width: 58ch; }

/* ═══════════════════════════════════════
   SECTION 2  ·  THREE LAYERS (overview)
   ═══════════════════════════════════════ */

.tier-diagram {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 40px;
}

.tier-card {
  padding: 48px 40px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  position: relative;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
}
.tier-card:hover { transform: translateY(-4px); background: var(--bg-elevated); }

.tier-level {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 18px;
}
[data-theme="editorial"] .tier-level { color: var(--text-label); }

.tier-title {
  font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15; color: var(--text-hero); margin-bottom: 16px;
}

.tier-desc {
  font-size: 15px; line-height: 1.6;
  color: var(--text-body); margin-bottom: 24px; flex-grow: 1;
}

.tier-count {
  font-family: var(--serif); font-size: clamp(40px, 3.5vw, 56px);
  line-height: 1; color: var(--accent);
  letter-spacing: -0.02em; margin-bottom: 8px;
}
[data-theme="editorial"] .tier-count { color: var(--text-hero); }

.tier-count-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; color: var(--text-label);
  text-transform: uppercase;
  padding-top: 20px; border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   SECTION 3  ·  NATIVE API INTEGRATIONS
   ═══════════════════════════════════════ */

.native-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.native-cell {
  padding: 56px 32px 48px;
  border-right: 1px solid var(--border);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}
.native-cell:last-child { border-right: none; }
.native-cell:hover {
  background: var(--bg-card);
  transform: translateY(-3px);
}

.native-num {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 16px;
}
[data-theme="editorial"] .native-num { color: var(--text-label); }

.native-name {
  font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1; color: var(--text-hero); margin-bottom: 10px;
}

.native-region {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; color: var(--text-label);
  text-transform: uppercase; margin-bottom: 20px;
}

.native-desc {
  font-size: 13px; line-height: 1.55;
  color: var(--text-body); margin-bottom: 20px;
  min-height: 70px;
}

.native-tag {
  padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.native-tag-item {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px; color: var(--accent);
  text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--accent);
}
[data-theme="editorial"] .native-tag-item { color: var(--text-hero); border-color: var(--text-hero); }

.native-note {
  margin-top: 56px; padding: 32px 40px;
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
  font-size: 16px; line-height: 1.6;
  color: var(--text-body);
}
.native-note strong { color: var(--text-hero); font-weight: 600; }

/* ═══════════════════════════════════════
   SECTION 4  ·  PEPPOL NETWORK
   ═══════════════════════════════════════ */

.peppol-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 72px; align-items: start; margin-top: 40px;
}

.peppol-explain h3 {
  font-family: var(--serif); font-size: clamp(26px, 2.3vw, 36px);
  line-height: 1.2; color: var(--text-hero); margin-bottom: 24px;
}
.peppol-explain p {
  font-size: 16px; line-height: 1.7; color: var(--text-body);
  margin-bottom: 18px;
}
.peppol-explain p strong { color: var(--text-hero); font-weight: 600; }

.peppol-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 14px 0;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 2px; color: var(--accent);
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.25s ease;
}
[data-theme="editorial"] .peppol-link { color: var(--text-hero); border-bottom-color: var(--text-hero); }
.peppol-link:hover { gap: 18px; }

.peppol-stats {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.peppol-stat {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr;
  gap: 40px; align-items: baseline;
}
.peppol-stat:last-child { border-bottom: none; }

.peppol-stat-num {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1; color: var(--accent);
  letter-spacing: -0.02em; min-width: 140px;
}
[data-theme="editorial"] .peppol-stat-num { color: var(--text-hero); }
.peppol-stat-text {
  font-size: 14px; line-height: 1.55;
  color: var(--text-body);
}
.peppol-stat-text strong { color: var(--text-hero); font-weight: 600; }

/* ═══════════════════════════════════════
   SECTION 5  ·  FLAT-FILE INTEGRATIONS
   ═══════════════════════════════════════ */

.flat-intro {
  max-width: 68ch; margin-bottom: 56px;
  font-size: 17px; line-height: 1.65; color: var(--text-body);
}
.flat-intro strong { color: var(--text-hero); font-weight: 600; }

.flat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flat-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: all 0.2s ease;
}
.flat-cell:nth-child(4n) { border-right: none; }
/* All cells get a bottom border; the grid wrapper's own border-bottom
   visually covers the last row's stray borders. Simpler than
   nth-last-child wrangling when the row count is variable. */
.flat-cell:hover { background: var(--bg-card); }

/* Logo tile replaces the name when a logo URL is present */
.flat-cell .flat-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  transition: background 0.25s ease;
}
.flat-cell .flat-logo img {
  max-height: 40px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Editorial: transparent backdrop, logos display in native colour */
[data-theme="editorial"] .flat-cell .flat-logo {
  background: transparent;
}

/* Disruptor: logos display against a near-white pill so the original
   brand colours remain legible against the dark canvas */
[data-theme="disruptor"] .flat-cell .flat-logo {
  background: #F4F6F7;
}
[data-theme="disruptor"] .flat-cell:hover .flat-logo {
  background: #FFFFFF;
}

.flat-name {
  font-family: var(--serif); font-size: 17px;
  line-height: 1.2; color: var(--text-hero); margin-bottom: 6px;
}
.flat-category {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 1.5px; color: var(--text-label);
  text-transform: uppercase;
}

.flat-footer {
  margin-top: 56px;
  padding: 32px 40px;
  background: var(--bg-secondary);
  border-left: 2px solid var(--accent);
}
.flat-footer-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 12px;
}
[data-theme="editorial"] .flat-footer-label { color: var(--text-label); }
.flat-footer-text {
  font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4; color: var(--text-hero);
  max-width: 64ch;
}
.flat-footer-text em { color: var(--accent); font-style: italic; }
[data-theme="editorial"] .flat-footer-text em { color: var(--text-hero); font-style: italic; }

/* ═══════════════════════════════════════
   SECTION 6  ·  PARTNERS
   ═══════════════════════════════════════ */

.partner-wrap {
  padding: 96px 72px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  margin-top: 40px;
}

.partner-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 24px;
}
[data-theme="editorial"] .partner-label { color: var(--text-label); }

.partner-title {
  font-family: var(--serif); font-size: clamp(36px, 3.5vw, 52px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text-hero); margin-bottom: 28px;
  max-width: 24ch;
}
.partner-title em { color: var(--accent); font-style: italic; }
[data-theme="editorial"] .partner-title em { color: var(--text-hero); font-style: italic; }

.partner-body {
  font-size: 17px; line-height: 1.65;
  color: var(--text-body); margin-bottom: 20px;
  max-width: 58ch;
}
.partner-body strong { color: var(--text-hero); font-weight: 600; }

.partner-audience {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin: 48px 0;
  padding-top: 40px; border-top: 1px solid var(--border);
}

.partner-aud {
  padding: 24px 28px;
  background: var(--bg-primary);
  border-left: 2px solid var(--accent);
}
[data-theme="editorial"] .partner-aud { background: var(--bg-elevated); border-left-color: var(--text-hero); }

.partner-aud-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 2px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 10px;
}
[data-theme="editorial"] .partner-aud-label { color: var(--text-label); }

.partner-aud-title {
  font-family: var(--serif); font-size: 20px;
  line-height: 1.2; color: var(--text-hero); margin-bottom: 10px;
}

.partner-aud-desc {
  font-size: 13px; line-height: 1.55; color: var(--text-body);
}

.partner-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 32px; background: var(--cta-bg); color: var(--cta-text);
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
  border: 1px solid var(--cta-bg);
  transition: all 0.25s ease;
}
.partner-cta:hover { transform: translateY(-2px); opacity: 0.92; }
.partner-cta .arrow { transition: transform 0.25s ease; }
.partner-cta:hover .arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════
   SECTION 7 · CTA
   ═══════════════════════════════════════ */

.cta-section {
  position: relative; padding: 160px 0 140px;
  border-top: 1px solid var(--border); overflow: hidden;
}
[data-theme="disruptor"] .cta-section::before {
  content: 'CONNECT';
  position: absolute; bottom: -40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(260px, 28vw, 440px);
  line-height: 0.85; color: var(--bg-type-color);
  pointer-events: none; user-select: none;
  letter-spacing: -0.04em; white-space: nowrap;
}
.cta-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center; }
.cta-headline {
  font-family: var(--serif); font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--text-hero); margin-bottom: 40px;
}
.cta-headline em { color: var(--accent); font-style: italic; }
[data-theme="editorial"] .cta-headline em { color: var(--text-hero); font-style: italic; }
.cta-subhead {
  font-size: 19px; line-height: 1.55;
  color: var(--text-body); margin-bottom: 56px;
  max-width: 58ch; margin-left: auto; margin-right: auto;
}
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 80px; }
.cta-buttons .btn-primary, .cta-buttons .btn-secondary { padding: 22px 40px; font-size: 16px; }
.cta-contact {
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
  padding-top: 48px; border-top: 1px solid var(--border);
}
.cta-contact-item { text-align: left; min-width: 180px; }
.cta-contact-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; color: var(--text-label);
  text-transform: uppercase; margin-bottom: 10px;
}
.cta-contact-value { font-family: var(--serif); font-size: 20px; color: var(--text-hero); }
.cta-contact-value small {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 1.5px; color: var(--accent);
}



/* ═══ Responsive (Integrations page-specific) ═══ */

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  nav, nav.scrolled { padding: 18px 28px; }
  .tier-diagram { grid-template-columns: 1fr; gap: 16px; }
  .native-grid { grid-template-columns: repeat(2, 1fr); }
  .native-cell:nth-child(2) { border-right: none; }
  .native-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
  .native-cell:nth-child(4) { border-right: none; }
  .native-cell:nth-child(5) { border-right: none; grid-column: 1 / -1; }
  .peppol-wrap { grid-template-columns: 1fr; gap: 48px; }
  .flat-grid { grid-template-columns: repeat(2, 1fr); }
  .flat-cell:nth-child(4n) { border-right: 1px solid var(--border); }
  .flat-cell:nth-child(2n) { border-right: none; }
  .flat-cell:nth-last-child(-n+2) { border-bottom: none; }
  .flat-cell:nth-last-child(n+3) { border-bottom: 1px solid var(--border); }
  .partner-wrap { padding: 56px 32px; }
  .partner-audience { grid-template-columns: 1fr; }
  .section-header { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  nav { padding: 14px 20px; flex-wrap: wrap; gap: 12px; }
  .nav-links, .nav-phone, .nav-try { display: none; }
  .native-grid { grid-template-columns: 1fr; }
  .native-cell { border-right: none; border-bottom: 1px solid var(--border); grid-column: 1; }
  .native-cell:last-child { border-bottom: none; }
  .flat-grid { grid-template-columns: 1fr; }
  .flat-cell { border-right: none; }
  .peppol-stat { grid-template-columns: 1fr; gap: 8px; }
  .partner-wrap { padding: 40px 24px; }
  .hero { padding: 120px 0 80px; }
  .section { padding: 96px 0; }
  .btn-primary, .btn-secondary, .partner-cta { padding: 16px 24px; font-size: 14px; width: 100%; justify-content: center; }
  .floating-controls { bottom: 20px; right: 20px; gap: 8px; }
  .theme-toggle-label { display: none; }
}

