/* ============================================================
   Nordisk Bilpleie — sales/conversion modules
   Loaded after styles.css on høykonverterende tjenestesider.
   ============================================================ */

/* ---------- Proof bar (under hero) ---------- */
.proofbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px;
  padding: 16px 22px; border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--shadow-sm); border: .5px solid var(--border);
}
.proofbar__rating { display: flex; align-items: center; gap: 10px; }
.proofbar__rating .proofbar__stars { display: inline-flex; gap: 2px; color: var(--gold); }
.proofbar__stars .ic { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.proofbar__rating b { font-family: var(--font-display); font-size: 1.05rem; }
.proofbar__rating span { color: var(--text-secondary); font-size: .85rem; }
.proofbar__sep { width: 1px; align-self: stretch; background: var(--border); }
.proofbar__item { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.proofbar__item .ic { width: 18px; height: 18px; color: var(--teal-dark); flex: none; }
.proofbar__item span.todo { font-weight: 700; }

/* ---------- Product trust logos ---------- */
.trustlogos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.trustlogo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--ice); border: 1px solid var(--border);
  font-weight: 700; font-size: .85rem; color: var(--navy); letter-spacing: .01em;
}
.trustlogo .ic { width: 16px; height: 16px; color: var(--teal-dark); }

/* ---------- City price picker ---------- */
.citytabs { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 10px; }
.citytab {
  cursor: pointer; padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--white); border: 1.5px solid var(--border); color: var(--navy);
  font-weight: 600; font-size: .92rem; transition: all .2s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.citytab .ic { width: 15px; height: 15px; color: var(--teal-dark); }
.citytab:hover { border-color: var(--border-strong); }
.citytab.active { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.citytab.active .ic { color: #fff; }

.priceset { display: none; }
.priceset.active { display: block; animation: priceFade .35s var(--ease); }
@keyframes priceFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.priceset__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px;
  margin: 4px auto 30px; max-width: 720px; text-align: center;
}
.priceset__meta .pm-item { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--text-secondary); }
.priceset__meta .pm-item b { color: var(--navy); }
.priceset__meta .ic { width: 17px; height: 17px; color: var(--teal-dark); }

/* highlight card variant */
.card--feature { border-color: var(--pink); box-shadow: 0 14px 36px -16px rgba(255,45,155,.4); }

/* process step number (no CSS counter — explicit digit) */
.flownum {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(145deg, #E7FAF8, #D2F2EF);
  box-shadow: inset 0 0 0 1px #C6ECE8;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--teal-dark);
}

/* ---------- Price matrix table (Stavanger etc.) ---------- */
.pmatrix { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: .5px solid var(--border); }
.pmatrix th, .pmatrix td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.pmatrix thead th { background: var(--ice); font-family: var(--font-display); font-size: .9rem; letter-spacing: .01em; color: var(--navy); }
.pmatrix tbody th { font-weight: 700; color: var(--navy); }
.pmatrix td { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.pmatrix tbody tr:last-child th, .pmatrix tbody tr:last-child td { border-bottom: none; }
.pmatrix tbody tr:hover { background: #FAFCFF; }
.pmatrix .num { text-align: right; }
/* Ordinær (struck) + kampanjepris pair inside a price cell */
.pmatrix .pp { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.2; gap: 1px; }
.pmatrix .pp__orig { font-size: .82rem; font-weight: 500; color: var(--text-secondary); text-decoration: line-through; text-decoration-thickness: 1px; white-space: nowrap; }
.pmatrix .pp__camp { font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
/* discreet "most popular" tag */
.pmtag { display: inline-block; margin-left: 8px; font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--teal-dark); vertical-align: middle; white-space: nowrap; }
.pm-item .ic[data-icon="bolt"] ~ b, .pm-item.is-kampanje b { color: var(--teal-dark); }

/* ---------- Comparison table (✓/✗) ---------- */
.cmptable { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: .5px solid var(--border); }
.cmptable th, .cmptable td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmptable thead th { font-family: var(--font-display); font-size: .95rem; color: var(--navy); background: var(--ice); }
.cmptable thead th.good { color: var(--teal-dark); }
.cmptable tbody th { font-weight: 600; color: var(--navy); width: 34%; }
.cmptable td { color: var(--text-secondary); }
.cmptable .ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; margin-right: 7px; }
.cmptable td.bad .ic { color: var(--pink-dark); }
.cmptable td.good { color: var(--navy); font-weight: 600; }
.cmptable td.good .ic { color: var(--teal-dark); }
.cmptable tbody tr:last-child th, .cmptable tbody tr:last-child td { border-bottom: none; }
.cmptable col.colgood, .cmptable thead th.good { background: #F3FCFB; }

/* ---------- Guarantee / risk reversal ---------- */
.guarantee {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  padding: clamp(26px,3.5vw,40px); border-radius: var(--r-xl);
  background: linear-gradient(150deg, #EAF0FE, #F4F7FF);
  border: 1px solid var(--border); border-left: 5px solid var(--teal);
}
.guarantee__seal {
  flex: none; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white);
  box-shadow: 0 10px 26px -12px rgba(14,33,72,.35); border: 1px solid var(--border);
}
.guarantee__seal .ic { width: 46px; height: 46px; color: var(--teal-dark); }
.guarantee h3 { margin-bottom: 6px; }
.guarantee p { color: var(--text-secondary); }

/* ---------- Mini lead capture ---------- */
.leadmini {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(26px,3.5vw,40px);
  background: var(--white); box-shadow: var(--shadow-sm); border: .5px solid var(--border);
}
.leadmini__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.leadmini .field { flex: 1 1 180px; }
.leadmini .success-state { display: none; }
.leadmini .success-state.show { display: block; }

/* ---------- Sticky mobile CTA ---------- */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -16px rgba(14,33,72,.4);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.stickycta.show { transform: none; }
.stickycta .btn { flex: 1; }
@media (max-width: 760px) {
  .stickycta { display: flex; }
  body.has-stickycta { padding-bottom: 76px; }
}

/* ---------- Section dark variant for proof ---------- */
.proofnums { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.proofnums .pn { text-align: center; }
.proofnums .pn b { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.6rem); color: #fff; display: block; letter-spacing: -.03em; }
.proofnums .pn span { color: #B9C8E8; font-size: .9rem; }
@media (max-width: 680px) { .proofnums { grid-template-columns: repeat(2,1fr); gap: 28px 16px; } }

@media (max-width: 720px) {
  .guarantee { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pmatrix, .cmptable { font-size: .9rem; }
  .pmatrix th, .pmatrix td, .cmptable th, .cmptable td { padding: 12px 12px; }
}

/* ============================================================
   Editorial "story" section (Kjenner du deg igjen?)
   Dark, emotional — contrasts the light explainer that follows
   ============================================================ */
.story { position: relative; overflow: hidden; background: linear-gradient(158deg, #16335F 0%, #0D1F44 56%, #0A1838 100%); color: #fff; }
.story::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(125deg, rgba(255,255,255,.045) 0 1px, transparent 1px 26px); }
.story::after { content: ""; position: absolute; right: -60px; top: 50%; width: 320px; height: 320px; transform: translateY(-50%) rotate(-8deg); z-index: 0; pointer-events: none; opacity: .07; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-3.5 8-9.5V6l-8-3-8 3v6.5C4 18.5 12 22 12 22z M8.5 12l2.5 2.5L15.5 10'/%3E%3C/svg%3E"); }
@media (max-width: 760px) { .story::after { right: -120px; opacity: .05; } }
.story__wrap { position: relative; z-index: 1; max-width: 880px; }
.story__mark { position: absolute; top: clamp(-30px, -2vw, -10px); left: clamp(-8px, 0vw, 6px); font-family: var(--font-display); font-weight: 700; font-size: clamp(150px, 22vw, 280px); line-height: .8; color: rgba(127,227,220,.10); z-index: 0; pointer-events: none; user-select: none; }
.story__kicker { display: inline-flex; align-items: center; gap: 10px; color: #7FE3DC; font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.story__kicker::before { content: ""; width: 28px; height: 2px; background: #7FE3DC; display: inline-block; }
.story__title { color: #fff; margin-top: 18px; font-size: clamp(1.75rem, 3.4vw, 2.7rem); letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.story__body { margin-top: 24px; max-width: 720px; }
.story__body p { color: #C7D4ED; font-size: clamp(1.02rem, 1.25vw, 1.16rem); line-height: 1.8; }
.story__body p + p { margin-top: 16px; }
.story__body strong { color: #fff; font-weight: 700; }
.story__body em { color: #7FE3DC; font-style: normal; }

/* ============================================================
   Premium case study card (Rolls-Royce)
   ============================================================ */
.casecard { display: grid; grid-template-columns: 1.22fr 1fr; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(165deg, #16335F 0%, #0A1838 100%); }
.casecard__media { position: relative; min-height: 540px; }
.casecard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.casecard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(92deg, transparent 64%, rgba(10,24,56,.55) 100%); }
.casecard__badge { position: absolute; top: 20px; left: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: var(--r-pill); background: rgba(10,24,56,.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.casecard__badge .ic { width: 15px; height: 15px; color: #7FE3DC; }
.casecard__body { position: relative; z-index: 1; padding: clamp(28px, 3.4vw, 50px); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.casecard__kicker { color: #7FE3DC; font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.casecard__title { color: #fff; margin-top: 12px; font-size: clamp(1.55rem, 2.3vw, 2.15rem); letter-spacing: -.02em; line-height: 1.15; }
.casecard__txt { color: #C7D4ED; font-size: 1.04rem; line-height: 1.72; margin-top: 16px; }
.casecard__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.casecard__tags span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .86rem; font-weight: 600; }
.casecard__tags .ic { width: 16px; height: 16px; color: #7FE3DC; }
@media (max-width: 820px) {
  .casecard { grid-template-columns: 1fr; }
  .casecard__media { min-height: 0; aspect-ratio: 5 / 4; }
  .casecard__media::after { background: linear-gradient(180deg, transparent 60%, rgba(10,24,56,.5) 100%); }
}
@media (max-width: 460px) { .casecard__media { aspect-ratio: 1 / 1; } }

/* ============================================================
   Workshop split (technician + XPEL + RUPES)
   ============================================================ */
.workshop { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 4vw, 58px); align-items: center; }
.workshop__media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.workshop__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; display: block; }
.workshop__chip { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(10,24,56,.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .82rem; font-weight: 600; }
.workshop__chip .ic { width: 15px; height: 15px; color: #7FE3DC; }
.workshop__points { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.workshop__points li { display: flex; gap: 15px; align-items: flex-start; }
.workshop__points .ic { width: 24px; height: 24px; color: var(--teal-dark); flex: none; margin-top: 1px; stroke-width: 2.3; }
.workshop__points h4 { margin: 0; font-size: 1.08rem; color: var(--navy); }
.workshop__points p { margin: 3px 0 0; color: var(--text-secondary); font-size: .96rem; line-height: 1.5; }
@media (max-width: 820px) {
  .workshop { grid-template-columns: 1fr; gap: 26px; }
  .workshop__media { max-width: 460px; margin-inline: auto; }
  .workshop__media img { aspect-ratio: 3 / 4; }
}
