/*
 * Pre-launch CSS
 * Komponenter spesifikt for pre-launch-versjonen.
 * Lastes via functions.php kun på pre-launch-sidene (eller alltid før butikk-versjonen).
 */

/* ===========================
   Reset/base override
   =========================== */

body.sk-prelaunch {
    margin: 0;
    padding: 0;
    background: var(--bg);
}

body.sk-prelaunch * {
    box-sizing: border-box;
}

body.sk-prelaunch a { text-decoration: none; }

/* ===========================
   Nav
   =========================== */

.sk-nav {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sk-nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--px);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sk-logo {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}

.sk-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

@media (max-width: 640px) {
    .sk-logo-img { height: 38px; }
}

.sk-nav-menu {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.sk-nav-menu a {
    color: var(--ink2);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s;
}

.sk-nav-menu a:hover { color: var(--ink); }

.sk-nav-cta {
    padding: 8px 18px;
    border-radius: var(--rp);
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s;
}

.sk-nav-cta:hover { background: var(--accent-d); color: #fff; }

@media (max-width: 640px) {
    .sk-nav-menu { display: none; }
    .sk-nav-inner { height: 56px; }
}

/* ===========================
   Hero — Editorial / eksklusiv
   =========================== */

.sk-hero {
    background: #0A0A12;
    color: #fff;
    padding: clamp(80px, 14vh, 160px) var(--px) clamp(70px, 12vh, 130px);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sk-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sk-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
    opacity: 0.6;
}

.sk-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.sk-hero-glow-1 {
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(13, 124, 110, 0.45) 0%, transparent 70%);
    opacity: 0.7;
}

.sk-hero-glow-2 {
    bottom: -20%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 91, 36, 0.18) 0%, transparent 70%);
    opacity: 0.6;
}

.sk-hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.sk-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    backdrop-filter: blur(8px);
}

.sk-hero-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
    animation: sk-pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sk-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.sk-hero-title {
    font-family: var(--fh);
    font-size: clamp(40px, 7.5vw, 88px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 auto 28px;
    max-width: 16ch;
    color: #fff;
}

.sk-hero-title em {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, #E4F4F1 0%, #6AC9BA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: 'Outfit', serif;
}

.sk-hero-desc {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 580px;
    margin: 0 auto 44px;
}

.sk-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.sk-hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: #fff;
    color: var(--ink);
    border-radius: 100px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.12);
}

.sk-hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 50px rgba(255, 255, 255, 0.18);
    color: var(--ink);
}

.sk-hero-cta-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.sk-hero-cta-primary:hover svg { transform: translateX(3px); }

.sk-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 100px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sk-hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.sk-hero-credentials {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.sk-hero-cred-sep {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
    .sk-hero-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .sk-hero-cta-primary,
    .sk-hero-cta-secondary {
        justify-content: center;
        width: 100%;
    }

    .sk-hero-credentials {
        font-size: 11px;
        gap: 10px;
    }
}

/* ===========================
   Trust stripe
   =========================== */

.sk-trust {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 22px var(--px);
}

.sk-trust-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.sk-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sk-trust-item svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
    flex-shrink: 0;
}

.sk-trust-item strong {
    display: block;
    font-family: var(--fh);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1px;
}

.sk-trust-item span {
    font-size: 12px;
    color: var(--ink3);
}

/* ===========================
   E-post-fang
   =========================== */

.sk-signup {
    background: var(--white);
    padding: 70px var(--px);
}

.sk-signup-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.sk-signup-title {
    font-family: var(--fh);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin: 0 0 14px;
}

.sk-signup-desc {
    font-size: 15.5px;
    color: var(--ink2);
    margin: 0 0 28px;
    line-height: 1.6;
}

.sk-signup-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.sk-signup-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--rs);
    font-family: var(--fb);
    font-size: 15px;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sk-signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-l);
}

.sk-signup-btn {
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--rs);
    font-family: var(--fb);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.sk-signup-btn:hover { background: var(--accent-d); }

.sk-signup-btn svg { width: 14px; height: 14px; }

.sk-signup-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.sk-signup-help {
    font-size: 12.5px;
    color: var(--ink3);
    margin: 16px 0 0;
}

.sk-signup-status {
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    min-height: 24px;
}

.sk-signup-status.success {
    color: var(--accent-d);
}

.sk-signup-status.error {
    color: var(--vipps);
}

/* ===========================
   Categories
   =========================== */

.sk-categories {
    padding: 80px var(--px);
    background: var(--bg);
}

.sk-categories-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.sk-categories-title {
    font-family: var(--fh);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.015em;
    text-align: center;
    margin: 0 0 36px;
}

.sk-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.sk-category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.sk-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-h);
}

.sk-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.sk-category-icon svg {
    width: 22px;
    height: 22px;
}

.sk-category-card h3 {
    font-family: var(--fh);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

.sk-category-card p {
    font-size: 13px;
    color: var(--ink3);
    line-height: 1.55;
    margin: 0;
}

/* ===========================
   How it works
   =========================== */

.sk-how {
    padding: 80px var(--px);
    background: var(--white);
    border-top: 1px solid var(--border);
}

.sk-how-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.sk-how-title {
    font-family: var(--fh);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.015em;
    text-align: center;
    margin: 0 0 44px;
}

.sk-how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.sk-how-step {
    text-align: center;
    padding: 0 14px;
}

.sk-how-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-l);
    color: var(--accent-d);
    font-family: var(--fh);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 2px solid var(--accent);
}

.sk-how-step h3 {
    font-family: var(--fh);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.sk-how-step p {
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   Catalog preview (Vipps-vurdering)
   =========================== */

.sk-catalog {
    padding: 80px var(--px);
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.sk-catalog-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.sk-catalog-head {
    text-align: center;
    margin-bottom: 44px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.sk-catalog-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-l);
    color: var(--accent-d);
    border-radius: 999px;
    font-family: var(--fh);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sk-catalog-title {
    font-family: var(--fh);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    line-height: 1.2;
}

.sk-catalog-desc {
    font-size: 16px;
    color: var(--ink2);
    line-height: 1.6;
    margin: 0;
}

/* WC produktgrid — bruker nå .gc/.sc-kort fra woocommerce/content-product.php
   Vi styler kun grid-layout her; selve kort-styling kommer fra butikk.css. */
.sk-shop .woocommerce { margin: 0; }

.sk-shop ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.sk-shop ul.products li.product {
    /* Reset WC-default — kortet inni (.gc eller .sc) styler seg selv */
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    list-style: none;
    display: block !important;
}

.sk-shop ul.products li.product::before,
.sk-shop ul.products li.product::after { content: none !important; }

/* Skjul WC sale-flag — vi viser den i prisen istedenfor */
.sk-shop ul.products li.product .onsale { display: none !important; }

/* Mobil-tilpasning */
@media (max-width: 380px) {
    .sk-shop ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
}

.sk-catalog-cta {
    text-align: center;
    margin-top: 48px;
}

.sk-catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: 999px;
    font-family: var(--fh);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sk-catalog-link:hover {
    background: var(--accent-d);
    color: var(--white);
    transform: translateY(-1px);
}

.sk-catalog-link svg {
    width: 18px;
    height: 18px;
}

/* ===========================
   Page (om-oss, kontakt, etc.)
   =========================== */

.sk-page {
    padding: 60px var(--px) 80px;
    background: var(--bg);
    min-height: 60vh;
}

.sk-page-inner {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: clamp(24px, 5vw, 48px);
}

.sk-page-header { margin-bottom: 28px; }

.sk-page-title {
    font-family: var(--fh);
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.sk-page-meta {
    font-size: 12.5px;
    color: var(--ink3);
    margin: 0;
}

.sk-page-meta strong {
    color: var(--ink2);
    font-weight: 700;
}

.sk-page-content {
    font-size: 15.5px;
    color: var(--ink2);
    line-height: 1.7;
}

.sk-page-content h2 {
    font-family: var(--fh);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 28px 0 12px;
    line-height: 1.3;
}

.sk-page-content h3 {
    font-family: var(--fh);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 22px 0 10px;
}

.sk-page-content p { margin: 0 0 14px; }
.sk-page-content p:last-child { margin-bottom: 0; }

.sk-page-content ul,
.sk-page-content ol {
    padding-left: 22px;
    margin: 0 0 14px;
}

.sk-page-content li { margin-bottom: 6px; }

.sk-page-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(13, 124, 110, 0.3);
    text-underline-offset: 2px;
}

.sk-page-content a:hover { color: var(--accent-d); }

.sk-page-content strong { color: var(--ink); font-weight: 700; }

/* ===========================
   Footer
   =========================== */

.sk-footer {
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 40px var(--px) 22px;
    margin-top: 0;
}

.sk-footer-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.sk-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.sk-footer-brand .sk-footer-logo {
    font-family: var(--fh);
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.sk-footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.sk-footer-info {
    font-size: 12.5px;
    color: var(--ink3);
    line-height: 1.7;
    margin: 0;
}

.sk-footer-info a { color: var(--ink2); }
.sk-footer-info a:hover { color: var(--accent); }

.sk-footer-info-small {
    font-size: 12px;
    color: var(--ink3);
    margin: 0;
    line-height: 1.6;
}

.sk-footer-info-small a { color: var(--accent); font-weight: 600; }

.sk-footer-title {
    font-family: var(--fh);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.sk-footer-col a {
    display: block;
    font-size: 13px;
    color: var(--ink3);
    margin-bottom: 7px;
    transition: color 0.15s;
}

.sk-footer-col a:hover { color: var(--ink); }

.sk-footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--ink4);
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 880px) {
    .sk-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 540px) {
    .sk-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}


/* ===========================
   Pre-launch katalog-modus — WooCommerce
   =========================== */

.superkeys-prelaunch-banner {
    background: linear-gradient(135deg, #0D7C6E 0%, #6AC9BA 100%);
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    margin: 20px auto 28px;
    font-size: 14.5px;
    line-height: 1.55;
    max-width: var(--max);
    box-shadow: 0 8px 24px rgba(13, 124, 110, 0.18);
}

.superkeys-prelaunch-banner strong {
    font-weight: 700;
    color: #fff;
}

.superkeys-prelaunch-banner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.superkeys-prelaunch-banner a:hover {
    text-decoration: none;
}

.superkeys-prelaunch-cta {
    margin: 22px 0 8px;
    padding: 18px 22px;
    background: #f6f7f9;
    border: 1px solid #d8dde3;
    border-radius: 10px;
}

.sk-prelaunch-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #0D7C6E !important;
    color: #fff !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.18s ease;
}

.sk-prelaunch-button:hover {
    background: #096158 !important;
    color: #fff !important;
}

.superkeys-prelaunch-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #4a5159;
    line-height: 1.5;
}

.sk-prelaunch-button-loop {
    display: block !important;
    margin-top: 10px;
    background: #0D7C6E !important;
    color: #fff !important;
    text-align: center;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.sk-prelaunch-button-loop:hover {
    background: #096158 !important;
    color: #fff !important;
}

/* Skjul pris-ekstrabokser som er irrelevante uten kjop */
.woocommerce-product-rating,
.woocommerce-tabs .reviews_tab {
    display: none;
}
