/* static/css/carbon.css — the Skoog Carbon landing page's own styling.
   Same recipe as erstatning.css/abandon.css (tribal background + glass
   cards), but tribal_grey.jpg over near-black instead of green/red — a
   third, deliberately distinct identity: carbon is grey/graphite, not
   a color this product already uses elsewhere, so it doesn't collide
   with either existing subsidiary's own tribal_green/tribal_red. */

body:has(.carb-page) {
  background-image: url('/static/logo/tribal_grey.jpg');
  background-size: 272px 370px;
  background-color: #1c1c1c;
}

.carb-page { max-width: 900px; margin: 0 auto; padding: 56px 24px 96px; color: #fff; }

/* ── Video hero — full-bleed, full-viewport-height, same recipe as
   erstatning.css's/abandon.css's own video heroes: headline + lead
   centered in the middle of the video, CTA row stacked below as part
   of the same centered column. ───────────────────────────────────── */
.carb-video-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.carb-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.carb-video-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.7) 100%);
}
.carb-video-logo { position: absolute; top: 24px; left: 24px; z-index: 2; }
.carb-video-text { position: relative; z-index: 2; max-width: 680px; padding: 0 24px; margin-bottom: 28px; }
.carb-video-text h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.carb-video-text p.lead {
  color: #fff;
  font-size: 1.1rem;
  opacity: .92;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.carb-video-ctas {
  position: relative; z-index: 2;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  padding: 0 24px;
}
.carb-btn-solid, .carb-btn-ghost {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
}
.carb-btn-solid { background: #fff; color: #1c1c1c; }
.carb-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.carb-btn-ghost:hover { border-color: rgba(255,255,255,.7); }

/* ── Glass panel, the product's own recipe ──────────────────────────── */
.carb-glass {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.carb-section { margin: 56px 0; padding: 32px; }
.carb-section h2 { color: #fff; font-size: 1.4rem; font-weight: 600; margin: 0 0 14px; }
.carb-section p { line-height: 1.65; opacity: .9; margin: 0 0 12px; }
.carb-section ul { line-height: 1.65; opacity: .9; padding-left: 20px; margin: 0 0 12px; }
.carb-caveat { font-size: .9rem; opacity: .7; border-left: 2px solid rgba(255, 255, 255, 0.3); padding-left: 12px; }

/* ── Client / Problem / Solution / Features table ───────────────────── */
.carb-table-wrap { overflow-x: auto; }
table.carb-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.carb-table th, table.carb-table td {
  text-align: left; padding: 12px 14px; vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
table.carb-table th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
  opacity: .65; font-weight: 600;
}
table.carb-table tr:last-child td { border-bottom: none; }
table.carb-table td.carb-table-label { font-weight: 600; white-space: nowrap; opacity: .85; }

/* ── Four plan-types row ─────────────────────────────────────────────── */
.carb-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; padding: 8px 0; }
.carb-type-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 16px;
}
.carb-type-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: #fff; }
.carb-type-card p { margin: 0; font-size: .85rem; opacity: .8; line-height: 1.5; }

/* ── Scroll-reveal ───────────────────────────────────────────────────── */
.carb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.carb-reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .carb-section { padding: 22px; }
}
