/*
 * landing.css — shared components for landing/campaign pages
 * (doman, billiga-domaner, masshantering, snapback, flytta-doman, …)
 *
 * All colors come from the design-system tokens in style.css :root
 * (--blue, --header, --text, --strong, --light-bg, --green, --red,
 *  --orange, --yellow, --borders). No page may hardcode palette hex
 * values or re-declare .button rules — use these classes instead.
 */

/* ---------- Sections ---------- */

.landing-section {
  padding: 80px 0;
}

.landing-section.compact {
  padding: 60px 0;
}

.landing-section.light {
  background: var(--light-bg);
}

.landing-section.dark {
  background: var(--header);
  color: #fff;
}

.landing-section.dark h2,
.landing-section.dark h3,
.landing-section.dark p {
  color: #fff;
}

/* ---------- Breadcrumb ---------- */

.landing-breadcrumb {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
}

.landing-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.landing-breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Stat boxes (hero rows: "375 kr", "47 000+", …) ---------- */

.stat-box {
  background: #fff;
  border: 1px solid var(--borders);
  border-radius: 12px;
  padding: 20px 28px;
  text-align: center;
}

.stat-box .stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--strong);
}

.stat-box .stat-label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-top: 4px;
}

.landing-section.dark .stat-box,
.hero-bg .stat-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.landing-section.dark .stat-box .stat-value,
.hero-bg .stat-box .stat-value,
.landing-section.dark .stat-box .stat-label,
.hero-bg .stat-box .stat-label {
  color: #fff;
}

/* ---------- Numbered steps ("Så fungerar det") ---------- */

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

/* ---------- Cards ---------- */

.landing-card {
  background: #fff;
  border: 1px solid var(--borders);
  border-radius: 12px;
  padding: 28px;
}

/* Equal-height cards in grids — but only when the card is the column's sole
   child. A percentage height on a card with siblings resolves circularly
   inside Bootstrap's flex row and overflows the section. */
[class*="col"] > .landing-card:only-child {
  height: 100%;
}

.landing-card h3 {
  color: var(--strong);
}

.landing-card.positive {
  border-color: var(--green);
}

.landing-card.negative {
  border-color: var(--red);
}

.landing-card .card-icon {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ---------- Comparison table ---------- */

.landing-compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--borders);
}

.landing-compare th,
.landing-compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--borders);
}

.landing-compare thead th {
  background: var(--header);
  color: #fff;
  font-weight: 600;
}

.landing-compare tr:last-child td {
  border-bottom: none;
}

.landing-compare .highlight {
  color: var(--green);
  font-weight: 700;
}

.landing-compare .muted {
  color: var(--text);
}

/* ---------- Code block (API examples) ---------- */

.landing-code {
  background: var(--header);
  color: #e8ecf8;
  border-radius: 12px;
  padding: 20px 24px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  text-align: left;
}

/* ---------- Final CTA band ---------- */

.landing-cta {
  background: var(--header);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}

.landing-cta h2 {
  color: #fff;
}

.landing-cta p {
  color: rgba(255, 255, 255, 0.85);
}
