/**
 * Rabataftaler.dk - Stylesheet
 * State-of-the-art one-pager: glass, gradient mesh, scroll reveal
 */

:root {
    --bg:        #070a14;
    --bg-2:      #0b1020;
    --surface:   rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border:    rgba(255, 255, 255, 0.09);
    --border-2:  rgba(255, 255, 255, 0.16);

    --text:      #eef1f9;
    --muted:     #9aa3bd;
    --faint:     #6b7493;

    --brand:     #22d3a7;   /* mint - savings */
    --brand-2:   #18b48c;
    --accent:    #7c9cff;   /* indigo */
    --accent-2:  #b48bff;   /* violet */
    --gold:      #f5b94a;

    --grad: linear-gradient(120deg, #22d3a7 0%, #7c9cff 55%, #b48bff 100%);

    --r-sm: 12px;
    --r:    18px;
    --r-lg: 26px;
    --r-xl: 34px;

    --shadow:   0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --shadow-sm:0 12px 30px -16px rgba(0, 0, 0, 0.6);

    --font:    'Plus Jakarta Sans', system-ui, sans-serif;
    --display: 'Sora', var(--font);

    --container: 1160px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 820px; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.muted { color: var(--muted); }

/* ============ Background mesh ============ */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124, 156, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 0% 10%, rgba(34, 211, 167, 0.10), transparent 55%),
    var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob-1 { width: 460px; height: 460px; background: #22d3a7; top: -120px; right: -80px; animation: drift 22s var(--ease) infinite alternate; }
.blob-2 { width: 520px; height: 520px; background: #7c9cff; bottom: -160px; left: -120px; animation: drift 26s var(--ease) infinite alternate-reverse; }
.blob-3 { width: 360px; height: 360px; background: #b48bff; top: 40%; left: 55%; opacity: .35; animation: drift 30s var(--ease) infinite alternate; }
.grid-overlay { position: absolute; inset: 0; opacity: .35;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
@keyframes drift { to { transform: translate3d(40px, 50px, 0) scale(1.12); } }

/* ============ Glass ============ */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ============ Buttons ============ */
.btn {
    --pad: 14px 24px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: var(--pad);
    font-family: var(--font); font-weight: 700; font-size: .98rem;
    border: 1px solid transparent; border-radius: 999px; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
    white-space: nowrap;
}
.btn-sm { --pad: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #061018; box-shadow: 0 14px 34px -12px rgba(34, 211, 167, .55); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(34, 211, 167, .7); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--accent); background: rgba(124,156,255,.1); transform: translateY(-2px); }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7, 10, 20, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 22px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.18rem; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #061018; font-size: 1rem; box-shadow: 0 8px 20px -8px rgba(34,211,167,.6); }
.brand-name span { color: var(--brand); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: .95rem; }
.nav-links a { color: var(--muted); transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--text); } .nav-links a:hover::after { width: 100%; }
.nav-mobile-only { display: none; }
.nav-links.open .nav-mobile-only { display: block; }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 11px; font-size: 1.1rem; cursor: pointer; }

/* ============ Hero ============ */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); padding: 7px 14px; border: 1px solid var(--border-2); border-radius: 999px; background: rgba(34,211,167,.07); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); font-weight: 800; margin: 22px 0 18px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-trust i { color: var(--brand); margin-right: 6px; }

/* Hero card */
.hero-card-wrap { position: relative; }
.deal-spotlight { padding: 26px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.spotlight-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--gold); background: rgba(245,185,74,.12); border: 1px solid rgba(245,185,74,.3); padding: 6px 12px; border-radius: 999px; }
.spotlight-disc { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--brand); }
.deal-spotlight h3 { font-size: 1.4rem; }
.spotlight-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.spotlight-meta .near { color: var(--brand); font-weight: 700; }
.avatar-row { display: flex; align-items: center; margin-top: 18px; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #061018; background: var(--grad); border: 2px solid var(--bg-2); margin-left: -10px; }
.av:first-child { margin-left: 0; }
.av.more { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }

.mini-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); z-index: 3; }
.mini-card i { font-size: 1.3rem; color: var(--brand); }
.mini-card strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.mini-card span { font-size: .78rem; color: var(--muted); }
.float-1 { top: -26px; left: -28px; animation: bob 6s var(--ease) infinite; }
.float-2 { bottom: -24px; right: -22px; animation: bob 6s var(--ease) infinite 1.5s; }
.float-2 i { color: var(--accent); }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* Progress bar */
.progress { height: 9px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 16px; }
.progress span { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width 1.4s var(--ease); }

/* ============ Stats ============ */
.stats-band { padding: 24px 0 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: .92rem; font-weight: 600; margin-top: 4px; }

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section-alt { position: relative; }
.section-alt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(124,156,255,.04), transparent); pointer-events: none; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin: 18px 0 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 30px 24px; position: relative; transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: var(--border-2); }
.step-num { position: absolute; top: 18px; right: 22px; font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: rgba(255,255,255,.06); }
.step-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 1.4rem; color: var(--brand); background: rgba(34,211,167,.1); border: 1px solid rgba(34,211,167,.25); margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* Deals */
.deals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.deal { padding: 24px; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.deal:hover { transform: translateY(-6px); border-color: var(--accent); }
.deal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.deal-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; color: var(--accent, #fff); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); }
.deal-cat { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.deal-disc { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--accent); }
.deal h3 { font-size: 1.15rem; margin-bottom: 4px; }
.deal .muted { font-size: .9rem; }
.deal-meta { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 18px; font-size: .9rem; color: var(--muted); }
.deal-pct { font-weight: 700; color: var(--accent); }
.deal .progress span { background: var(--accent); }
.deals-note { text-align: center; margin-top: 30px; color: var(--faint); font-size: .9rem; }
.deals-note i { color: var(--accent); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.benefit { display: flex; gap: 18px; padding: 26px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); transition: transform .3s var(--ease), border-color .3s; }
.benefit:hover { transform: translateY(-4px); border-color: var(--border-2); }
.benefit-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.3rem; color: var(--brand); background: var(--grad); -webkit-background-clip: padding-box; }
.benefit-icon { color: #061018; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: .96rem; }

/* CTA */
.cta-section { padding-top: 30px; }
.cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 48px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta::before { content: ""; position: absolute; width: 360px; height: 360px; background: var(--grad); filter: blur(110px); opacity: .25; top: -120px; right: -80px; }
.cta-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 16px 0 12px; }
.cta-copy p { color: var(--muted); }
.signup { position: relative; z-index: 2; }
.field { display: flex; align-items: center; gap: 12px; padding: 4px 18px; border: 1px solid var(--border-2); border-radius: 999px; background: rgba(0,0,0,.25); margin-bottom: 14px; transition: border-color .2s; }
.field:focus-within { border-color: var(--brand); }
.field i { color: var(--muted); }
.field input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: var(--font); font-size: 1rem; padding: 14px 0; }
.field input::placeholder { color: var(--faint); }
.form-msg { font-size: .9rem; font-weight: 600; margin-top: 12px; min-height: 1.2em; }
.form-msg.ok { color: var(--brand); }
.form-msg.err { color: #ff7a7a; }
.form-fine { font-size: .8rem; color: var(--faint); margin-top: 12px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item { padding: 0 24px; transition: border-color .25s; }
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.06rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; color: var(--brand); transition: transform .3s var(--ease); }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-a { overflow: hidden; padding-bottom: 22px; }
.faq-a p { color: var(--muted); }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 60px; background: linear-gradient(180deg, transparent, rgba(124,156,255,.03)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand p { color: var(--muted); font-size: .94rem; margin: 16px 0; max-width: 320px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; }
.footer-mail:hover { text-decoration: underline; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: all .25s var(--ease); }
.socials a:hover { color: #061018; background: var(--grad); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; padding-bottom: 30px; border-top: 1px solid var(--border); color: var(--faint); font-size: .85rem; }

/* ============ To top ============ */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #061018; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s var(--ease); z-index: 40; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 64px; }
    .hero-card-wrap { max-width: 440px; margin-inline: auto; }
    .steps, .deals { grid-template-columns: repeat(2, 1fr); }
    .cta { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Header på tablet: alt på én linje (visuel test 2026-10-29) */
.brand, .nav-links a, .nav .btn-sm { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 980px) {
    .nav { gap: 16px; }
    .nav-links { gap: 16px; font-size: .88rem; }
}
@media (max-width: 760px) {
    .nav-links, .nav .btn-sm { display: none; }
    .nav-toggle { display: grid; place-items: center; }
    .nav-links.open { display: flex; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 6px; padding: 16px; background: rgba(11,16,32,.96); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--r); }
    .section { padding: 64px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cta { padding: 32px 24px; }
}
@media (max-width: 480px) {
    .steps, .deals, .benefits { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .mini-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
