/*
 * Ordningsvakt – säljstöd och offentligt förhandsvisningsquiz.
 * Bygger på befintlig design (blå gradient, luftiga kort) och lägger
 * bara till kompletterande layout utan att röra globala stilar.
 */

.ov-sales-hero {
  padding: 3rem 1.25rem 2.25rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 60%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}
.ov-sales-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.ov-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.ov-sales-hero h1 {
  font-size: clamp(1.55rem, 2.4vw + 1rem, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: #0f172a;
}
.ov-sales-hero .lede {
  font-size: 1.08rem;
  line-height: 1.55;
  color: #334155;
  margin: 0 auto 1.5rem;
  max-width: 620px;
}
.ov-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: baseline;
  margin: 0.5rem 0 1.25rem;
  color: #0f172a;
}
.ov-price-row .price {
  font-size: 1.55rem;
  font-weight: 800;
}
.ov-price-row .meta {
  font-size: 0.95rem;
  color: #475569;
}
.ov-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.ov-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
}
.ov-cta-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.ov-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3); }
.ov-cta-ghost {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}
.ov-cta-ghost:hover { background: #f1f5f9; }

.ov-section {
  padding: 2.75rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.ov-section h2 {
  font-size: 1.5rem;
  color: #0f172a;
  margin: 0 0 0.35rem;
  text-align: center;
}
.ov-section .sub {
  text-align: center;
  color: #475569;
  margin: 0 auto 1.6rem;
  max-width: 640px;
}

.ov-includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.ov-include-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1rem 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ov-include-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.ov-include-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-include-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: #0f172a;
}
.ov-include-body p {
  margin: 0;
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.45;
}

.ov-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.ov-steps li {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.1rem 1rem;
  position: relative;
}
.ov-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 14px;
  background: #2563eb;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.ov-steps h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1rem;
  color: #0f172a;
}
.ov-steps p {
  margin: 0;
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.5;
}

/* Trygghetsblock nära köpknappen */
.ov-trust {
  max-width: 780px;
  margin: 1.5rem auto 0;
  padding: 1.35rem 1.35rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}
.ov-trust p {
  margin: 0 0 0.9rem;
}
.ov-trust p:last-of-type { margin-bottom: 1.1rem; }
.ov-trust p strong { color: #0f172a; }
.ov-trust p a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
.ov-trust ul {
  list-style: none;
  padding: 0.85rem 0 0;
  margin: 0;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
}
.ov-trust ul a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}
.ov-trust ul a:hover { text-decoration: underline; }

/* Förhandsvisningsquiz */
.ov-preview {
  max-width: 780px;
  margin: 0 auto;
}
.ov-preview-intro {
  color: #475569;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.ov-preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.4rem 1.25rem 1.35rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.ov-preview-progress {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #475569;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.ov-preview-question {
  font-size: 1.08rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.9rem;
  line-height: 1.4;
}
.ov-preview-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}
.ov-preview-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  min-height: 48px;
}
.ov-preview-option:hover:not(:disabled) {
  border-color: #93c5fd;
  background: #f8fafc;
}
.ov-preview-option .letter {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ov-preview-option.is-correct {
  border-color: #059669;
  background: #ecfdf5;
}
.ov-preview-option.is-correct .letter { background: #059669; color: #fff; }
.ov-preview-option.is-wrong {
  border-color: #dc2626;
  background: #fef2f2;
}
.ov-preview-option.is-wrong .letter { background: #dc2626; color: #fff; }
.ov-preview-option:disabled { cursor: default; }

.ov-preview-explain {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 0.95rem;
  line-height: 1.5;
}
.ov-preview-explain strong { color: #1d4ed8; }
.ov-preview-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.ov-preview-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  font-size: 0.98rem;
}
.ov-preview-btn:hover { background: #1d4ed8; }
.ov-preview-btn[disabled] { background: #94a3b8; cursor: not-allowed; }
.ov-preview-hint {
  color: #64748b;
  font-size: 0.88rem;
}

.ov-preview-summary {
  text-align: center;
  padding: 0.5rem 0.25rem 0.25rem;
}
.ov-preview-summary h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: #0f172a;
}
.ov-preview-summary .score {
  font-size: 1.05rem;
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 1rem;
}
.ov-preview-summary .cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Sticky mobil-CTA */
.ov-sticky-cta {
  display: none;
}
@media (max-width: 640px) {
  .ov-sales-hero { padding: 2rem 1rem 1.5rem; }
  .ov-section { padding: 2rem 1rem; }
  .ov-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
    z-index: 40;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
  }
  .ov-sticky-cta .info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  .ov-sticky-cta .info .price { font-weight: 800; color: #0f172a; }
  .ov-sticky-cta .info .meta { font-size: 0.78rem; color: #475569; }
  .ov-sticky-cta a.ov-cta {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
  body.has-ov-sticky-cta { padding-bottom: 84px; }
}

/* Kompakt variant för produkt-/kurssidan */
.ov-product-trust {
  margin-top: 1rem;
  padding: 1.15rem 1.15rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.93rem;
  color: #334155;
  line-height: 1.55;
}
.ov-product-trust p {
  margin: 0 0 0.75rem;
}
.ov-product-trust p strong { color: #0f172a; }
.ov-product-trust p a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
.ov-product-trust .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  padding-top: 0.7rem;
  margin-top: 0.35rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
}
.ov-product-trust .links a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}
.ov-product-trust .links a:hover { text-decoration: underline; }
