/* Landingsside + hele annoncør-selvbetjeningsfladen — mere "produkt"-følelse
   end admin.css: hero, pricing-cards, tydeligt CTA-hierarki. */
h1, h2 { font-weight: 600; }

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-4);
    max-width: 1100px;
    margin: 0 auto;
}
.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}
.hero__eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--color-primary); flex: none; }
.hero h1 { font-size: 2.5rem; line-height: 1.08; margin-bottom: var(--space-3); }
.hero p { font-size: 1.08rem; color: var(--color-text-muted); margin-bottom: var(--space-4); max-width: 46ch; }
.hero__ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.hero__stats { display: flex; gap: var(--space-5); flex-wrap: wrap; border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.hero__stats-value { display: block; font-size: 1.3rem; font-weight: 700; color: var(--color-text); letter-spacing: -0.02em; }
.hero__stats-label { font-size: 0.74rem; color: var(--color-text-muted); }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual::before {
    content: '';
    position: absolute;
    inset: 12% -6% -6% 12%;
    background: var(--color-secondary);
    border-radius: var(--radius-lg);
    z-index: 0;
}
.hero__visual-stack {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 700 / 450;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transform: rotate(-2deg);
    overflow: hidden;
}
.hero__visual-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s ease, transform 5s ease;
}
.hero__visual-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
    .hero__visual-slide { transition: opacity 0.3s ease; transform: none !important; }
}
.hero__visual-caption {
    position: absolute;
    z-index: 2;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.9rem;
    font-size: 0.76rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

@media (max-width: 800px) {
    .hero { grid-template-columns: 1fr; text-align: center; gap: var(--space-4); padding-top: var(--space-4); }
    .hero__eyebrow { justify-content: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero__ctas, .hero__stats { justify-content: center; }
    .hero h1 { font-size: 1.9rem; }
    .hero__visual { order: -1; margin-bottom: var(--space-3); }
    .hero__visual-stack { max-width: 280px; }
}

.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); margin: var(--space-5) 0; }
.site-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.site-card:nth-child(3n+2) { border-top-color: var(--color-secondary); }
.site-card:nth-child(3n) { border-top-color: var(--color-text); }
.site-card__screenshot { background: var(--color-surface); }
.site-card__screenshot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.site-card__body { padding: var(--space-4); }
.site-card h3 { margin-bottom: var(--space-2); }
.site-card__placement { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.35rem 0; border-bottom: 1px solid var(--color-border); }
.site-card__placement:last-of-type { border-bottom: none; }
.site-card__placement-price { font-weight: 600; color: var(--color-primary); }
.site-card__placement-price--unset { color: var(--color-text-muted); font-weight: 400; }
.site-card__visit { display: inline-block; margin-top: var(--space-3); font-size: 0.85rem; font-weight: 600; }

/* Campaign cards (advertiser dashboard) */
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.campaign-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.campaign-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.campaign-card:has(.badge--active) { border-left-color: var(--color-success); }
.campaign-card:has(.badge--pending_review) { border-left-color: var(--color-warning); }
.campaign-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.campaign-card__title { font-weight: 600; }
.campaign-card__stats { display: flex; gap: var(--space-4); font-size: 0.82rem; color: var(--color-text-muted); }
.campaign-card__stats strong { color: var(--color-text); font-weight: 600; }
.campaign-card__rejection { font-size: 0.8rem; color: var(--color-danger); background: var(--color-danger-soft); border-radius: var(--radius-sm); padding: 0.4rem 0.6rem; }

/* Placement picker (campaign-new/edit) */
.placement-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-2); }
.placement-option {
    display: block;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    cursor: pointer;
    transition: border-color 0.1s ease, background-color 0.1s ease;
}
.placement-option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.placement-option input { margin-right: var(--space-2); }
.placement-option__site { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.placement-option__name { font-weight: 600; margin: 2px 0; }
.placement-option__price { font-size: 0.85rem; color: var(--color-primary); font-weight: 600; }
.placement-option__price--unset { color: var(--color-text-muted); font-weight: 400; }
.placement-option__dims { font-size: 0.76rem; color: var(--color-text-muted); margin-top: 4px; }
.placement-option__example { font-size: 0.76rem; display: inline-block; margin-top: 2px; }

/* Image upload preview */
.image-upload__preview { margin-top: var(--space-2); max-width: 220px; }
.image-upload__preview img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--color-border); display: block; }

/* Checkout order summary */
.checkout-summary-header { display: flex; align-items: center; gap: var(--space-2); }
.checkout-summary-header h2 { margin: 0; }
.checkout-summary-header__img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.order-summary__line { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.order-summary__line:last-of-type { border-bottom: none; }
.order-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-3); margin-top: var(--space-2); border-top: 2px solid var(--color-border); }
.order-summary__total-value { font-size: 1.5rem; font-weight: 700; }
.order-summary__vat-note { font-size: 0.78rem; color: var(--color-text-muted); }
.trust-note { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 0.8rem; color: var(--color-text-muted); margin: var(--space-3) 0; }
.trust-note svg { flex: none; margin-top: 1px; color: var(--color-success); }
.consent-box { font-size: 0.76rem; line-height: 1.4; color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-3) 0; }
.consent-box input { margin-top: 3px; flex: none; }
.consent-box strong { color: var(--color-text); }
.checkout-next-note { font-size: 0.8rem; color: var(--color-text-muted); text-align: center; margin-top: var(--space-2); }
.checkout-blocked { text-align: center; padding: var(--space-4); background: var(--color-surface); border-radius: var(--radius-md); margin-top: var(--space-3); }
.checkout-blocked p { margin-top: 0; }

/* Placement guide gallery (how-it-works.php) */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.guide-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
/* overflow-x:auto alone makes overflow-y compute to auto too (CSS Overflow
   spec) - explicit overflow-y:hidden is required, otherwise a tall source
   screenshot triggers an unwanted vertical scrollbar inside the strip. */
.guide-card__images { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; background: var(--color-surface); scrollbar-width: none; -ms-overflow-style: none; }
.guide-card__images::-webkit-scrollbar { display: none; }
.guide-card__images img { width: 100%; height: 220px; object-fit: cover; object-position: top; flex: none; scroll-snap-align: start; display: block; cursor: zoom-in; }
.guide-card__images--empty { padding: var(--space-5) var(--space-3); text-align: center; color: var(--color-text-muted); font-size: 0.85rem; }
.guide-card__body { padding: var(--space-3) var(--space-4); }
.guide-card__body h3 { margin-bottom: var(--space-1); }
.guide-card__body p { color: var(--color-text-muted); font-size: 0.9rem; }
.guide-card__dims { font-weight: 700; display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0; }
.guide-card__aspect { font-weight: 400; color: var(--color-text-muted); font-size: 0.85rem; }

/* Lightbox for guide example images */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    z-index: 100;
    cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.lightbox__close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Section headings with a numbered step badge (campaign-new/edit.php) -
   this class previously had NO rule at all here (only in admin.css, which
   these advertiser-facing pages don't load) - was rendering as unstyled
   plain text. */
.section-heading {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-5) 0 var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}
.section-heading:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.section-heading__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex: none;
}
.section-heading__hint { font-weight: 400; font-size: 0.8rem; color: var(--color-text-muted); margin-left: auto; }
