:root {
    --orange: #f2994b;
    --orange-dark: #e07e30;
    --dark: #111827;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.logo img { width: 32px; height: 32px; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
}

.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid var(--border);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 12px;
}

/* ── HERO ── */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-text h1 span { color: var(--orange); }

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 460px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    font-size: 11px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
}

.hero-visual {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.visual-live-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    flex-shrink: 0;
    animation: live-pulse 2.4s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.visual-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.visual-product {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-visual .shop-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.hero-visual .shop-row:last-child { border-bottom: none; }

.shop-name-wrap { display: flex; align-items: center; gap: 8px; }
.hero-visual .shop-name { font-weight: 500; }
.shop-best-badge {
    font-size: 10px;
    font-weight: 700;
    background: #dcfce7;
    color: #16a34a;
    padding: 1px 7px;
    border-radius: 20px;
}

.hero-visual .shop-price { font-weight: 700; color: var(--text); }
.hero-visual .shop-price.best { color: #16a34a; }

.visual-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.visual-savings {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
}

.visual-ext-note {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
}

/* ── MEDIA ── */
.media-section {
    padding: 72px 24px;
    border-top: 1px solid var(--border);
}

.media-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.media-inner h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.media-video {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: block;
    margin-bottom: 24px;
}

.media-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.media-screenshots img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: block;
}

/* ── TOOL SECTION ── */
.tool-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 72px 24px;
}

.tool-section .container {
    max-width: 700px;
    margin: 0 auto;
}

.tool-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-section > .container > p {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 16px;
}

/* ── SHOPS FOLD-OUT ── */
.shops-reveal {
    margin-top: 32px;
}

.shops-reveal-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: none;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
}

.shops-reveal-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.shops-reveal-btn.open {
    border-style: solid;
    border-color: #e5e7eb;
    border-bottom-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: #374151;
}

.shops-arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.shops-reveal-btn.open .shops-arrow {
    transform: rotate(180deg);
}

.shops-panel {
    overflow: hidden;
    max-height: 0;
    border: 1.5px solid transparent;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: max-height 0.35s ease, border-color 0.15s;
}

.shops-panel.open {
    max-height: 420px;
    border-color: #e5e7eb;
}

.shops-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 16px;
}

.shops-group {
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.shops-group--ext {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    white-space: nowrap;
}

.shop-chip--ext {
    background: #f9fafb;
    color: #9ca3af;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.search-bar input {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.search-bar input:focus { border-color: var(--orange); }

.search-bar input::placeholder { color: #9ca3af; }

/* ── RESULTS ── */
#results { margin-top: 8px; }

.result-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow 0.15s;
}

.result-card:hover { box-shadow: var(--shadow); }

.result-card.cheapest {
    border-color: #16a34a;
    background: #f0fdf4;
}

.result-shop { font-weight: 600; font-size: 15px; }
.result-badge {
    font-size: 11px;
    background: #dcfce7;
    color: #16a34a;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.result-right { display: flex; align-items: center; gap: 16px; }

.result-price-col { display: flex; flex-direction: column; align-items: flex-end; }
.result-age {
    font-size: 11px;
    color: #9ca3af;
    cursor: help;
    margin-top: 2px;
    white-space: nowrap;
}
.result-age--ext { color: #f97316; }

.result-price {
    font-size: 18px;
    font-weight: 700;
}

.result-card.cheapest .result-price { color: #16a34a; }

.result-link {
    font-size: 13px;
    color: var(--orange);
    font-weight: 600;
    white-space: nowrap;
}

.result-link:hover { text-decoration: underline; }

.result-product-name { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--text); }

.result-gtin {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.result-gtin span { font-weight: 600; color: var(--text); }

/* ── LOADING ── */
.loading-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
}

.shop-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
    color: var(--text-light);
}

.spinner {
    width: 11px;
    height: 11px;
    border: 2px solid var(--orange);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.status-icon {
    width: 11px;
    font-size: 11px;
    flex-shrink: 0;
}

/* ── ERROR / EMPTY ── */
.msg-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    font-size: 14px;
    color: var(--text-light);
}

.msg-box.error { border-color: #fca5a5; color: #dc2626; background: #fff5f5; }

/* ── SHARE ROW ── */
.share-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.share-btn {
    font-size: 13px;
    padding: 6px 14px;
    gap: 6px;
}

/* ── FEATURES ── */
.features-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.feature-icon {
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 48px 20px;
    }

    .hero-visual { display: none; }

    .features-section {
        grid-template-columns: 1fr;
        padding: 48px 20px;
    }

    .media-screenshots { grid-template-columns: 1fr; }

    .search-bar { flex-direction: column; }
    .search-bar .btn { width: 100%; justify-content: center; }

    .result-card { flex-wrap: wrap; }
}

.amo-section { padding: 32px 24px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.amo-inner { max-width: 800px; margin: 0 auto; }
.amo-heading { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.amo-item { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); gap: 16px; }
.amo-date { color: var(--text-light); white-space: nowrap; }

/* ── PRICE DROP WIDGET ── */
.pricedrop-section { padding: 48px 24px; border-top: 1px solid var(--border); }
.pricedrop-inner { max-width: 700px; margin: 0 auto; }
.pricedrop-heading { font-size: 20px; font-weight: 700; margin-bottom: 20px; text-align: center; }

.savings-list {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.savings-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}
.savings-row:last-child { border-bottom: none; }
.savings-row:hover { background: #fafafa; }

.savings-rank {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff4ec;
    color: var(--orange);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.savings-info { flex: 1; min-width: 0; }
.savings-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.savings-shops { display: block; font-size: 12px; color: var(--text-light); margin-top: 2px; }

.savings-amount { flex: 0 0 auto; text-align: right; }
.savings-kr { display: block; font-size: 18px; font-weight: 800; color: #16a34a; }
.savings-pct {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    background: #e7f6ec;
    padding: 1px 7px;
    border-radius: 20px;
    margin-top: 2px;
}
