/* Glosora – startsida (templates/landing.html) */

:root {
    --lp-blue: #4f6be8;
    --lp-violet: #7c4dff;
    --lp-gold: #ffc83d;
    --lp-gold-dark: #e89a00;
    --lp-ink: #1b1f3b;
    --lp-text: #3d4363;
    --lp-muted: #6b7190;
    --lp-bg: #ffffff;
    --lp-tint: #f4f6fd;
    --lp-card: #ffffff;
    --lp-line: #e3e7f5;
    --lp-shadow: 0 18px 50px rgba(40, 52, 140, 0.18);
    --lp-radius: 22px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --lp-ink: #f1f3ff;
        --lp-text: #c9cde6;
        --lp-muted: #9ca2c4;
        --lp-bg: #12152a;
        --lp-tint: #181c36;
        --lp-card: #1f2442;
        --lp-line: #2c3258;
        --lp-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--lp-text);
    background: var(--lp-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }

.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { color: var(--lp-ink); line-height: 1.15; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

/* ---------- Knappar ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn-gold { background: var(--lp-gold); color: #3b2500; box-shadow: 0 8px 22px rgba(255, 200, 61, 0.45); }
.lp-btn-gold:hover { box-shadow: 0 12px 28px rgba(255, 200, 61, 0.6); }
.lp-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.lp-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.lp-btn-light { background: #fff; color: var(--lp-blue); }
.lp-btn-outline { color: var(--lp-blue); border-color: var(--lp-blue); background: transparent; }
.lp-btn-block { width: 100%; }
.lp-btn.is-disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

/* ---------- Navigering ---------- */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(79, 107, 232, 0.92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    color: #fff;
}
.lp-nav-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 66px; }
.lp-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; font-size: 1.35rem; color: #fff; }
.lp-brand img { border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.lp-links { display: flex; gap: 1.3rem; margin-left: auto; }
.lp-links a { text-decoration: none; font-weight: 600; opacity: 0.9; }
.lp-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lp-login { min-height: 42px; padding: 0.45rem 1.1rem; }

@media (max-width: 980px) {
    .lp-links { display: none; }
    .lp-login { margin-left: auto; }
}

/* ---------- Hero ---------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(255, 255, 255, 0.16), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(255, 200, 61, 0.18), transparent 60%),
        linear-gradient(135deg, #5b7cfa 0%, #6a5cf6 45%, #7c4dff 100%);
}
.lp-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}
.lp-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 850; }
.lp-hero h1 em { font-style: normal; color: var(--lp-gold); }
.lp-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.lp-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); opacity: 0.95; max-width: 34rem; margin: 0 0 1.6rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.lp-cta-center { justify-content: center; }
.lp-hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.95rem; opacity: 0.95; }

.lp-hero-phones { position: relative; height: 560px; }
.lp-hero-phones .lp-phone { position: absolute; width: 250px; }
.lp-phone-front { left: 50%; top: 10px; transform: translateX(-30%) rotate(4deg); z-index: 2; }
.lp-phone-back { left: 50%; top: 60px; transform: translateX(-105%) rotate(-7deg); opacity: 0.95; }
.lp-float {
    position: absolute;
    z-index: 3;
    background: #fff;
    color: #1b1f3b;           /* fast mörk text – bubblan är alltid vit, även i mörkt läge */
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.55rem 0.9rem;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(20, 20, 60, 0.25);
    animation: lp-bob 4s ease-in-out infinite;
}
.lp-float-1 { right: 2%; top: 120px; }
.lp-float-2 { left: 0; bottom: 70px; animation-delay: -2s; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
    .lp-hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; padding-bottom: 3.5rem; text-align: left; }
    .lp-hero-phones { height: 430px; }
    .lp-hero-phones .lp-phone { width: 185px; padding: 7px; border-radius: 32px; }
    .lp-hero-phones .lp-phone img { border-radius: 25px; }
    .lp-phone-front { transform: translateX(-12%) rotate(4deg); }
    .lp-phone-back { transform: translateX(-88%) rotate(-7deg); }
    .lp-float-1 { right: 0; top: 40px; }
    .lp-float-2 { left: 0; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-float { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Telefonram ---------- */
.lp-phone {
    position: relative;
    width: min(290px, 78vw);
    margin: 0 auto;
    padding: 10px;
    border-radius: 42px;
    /* mörk ram – ett snäpp ljusare än svart så att den inte flyter ihop med bakgrunden */
    background: linear-gradient(145deg, #3a4170 0%, #2a2f55 55%, #20244a 100%);
    box-shadow: var(--lp-shadow);
    isolation: isolate;
}
/* ingen "notch" – den skymde appens meny */
.lp-phone img {
    display: block; width: 100%; border-radius: 32px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
    background: #1b1f3b;               /* mörk bakom bilden – ingen ljus kant vid rotation */
    transform: translateZ(0);          /* eget renderingslager → rena kanter när telefonen lutas */
    backface-visibility: hidden;
}
.lp-phone-glow { box-shadow: 0 25px 70px rgba(124, 77, 255, 0.55); }

/* ---------- Höjdpunkter ---------- */
.lp-strip { position: relative; z-index: 1; margin-top: -2.6rem; }
.lp-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.6rem 20px;
    background: var(--lp-card);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow);
}
.lp-strip-inner div { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; color: var(--lp-ink); font-size: 0.95rem; line-height: 1.35; }
.lp-strip-inner > div > b { font-size: 1.8rem; flex: 0 0 auto; }
@media (max-width: 900px) { .lp-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lp-strip-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Avsnitt ---------- */
.lp-section { padding: 5rem 0; }
.lp-strip + .lp-section { padding-top: 4rem; }
.lp-tinted { background: var(--lp-tint); }
.lp-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.lp-head p { color: var(--lp-muted); font-size: 1.08rem; margin: 0; }
.lp-kicker {
    display: inline-block;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-blue);
    margin-bottom: 0.6rem;
}
@media (prefers-color-scheme: dark) { .lp-kicker { color: #9fb2ff; } }
.lp-kicker-light { color: var(--lp-gold) !important; }

.lp-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 4.5rem;
}
.lp-feature:last-child { margin-bottom: 0; }
.lp-reverse .lp-feature-text { order: 2; }
.lp-feature-text p { font-size: 1.06rem; margin: 0 0 1rem; }
@media (max-width: 820px) {
    .lp-feature { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-bottom: 3.5rem; }
    .lp-reverse .lp-feature-text { order: 0; }
}

.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.lp-checks li { position: relative; padding-left: 1.9rem; }
.lp-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #20c997;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Kort ---------- */
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 3.5rem; }
.lp-card { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 1.5rem; }
.lp-card > b { font-size: 1.9rem; display: block; margin-bottom: 0.5rem; }
.lp-card p b { color: var(--lp-ink); }
.lp-card h4 { font-size: 1.1rem; }
.lp-card p { margin: 0; color: var(--lp-muted); font-size: 0.97rem; }
@media (max-width: 900px) { .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lp-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Mörkt band ---------- */
.lp-dark-band {
    color: #d7dbf5;
    background:
        radial-gradient(700px 400px at 80% 50%, rgba(124, 77, 255, 0.35), transparent 65%),
        linear-gradient(160deg, #161a3a, #0e1028);
}
.lp-dark-band h2 { color: #fff; }
.lp-everywhere { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; }
.lp-everywhere p { font-size: 1.06rem; }
@media (max-width: 820px) { .lp-everywhere { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Priser ---------- */
.lp-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.lp-price {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--lp-card);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    padding: 1.6rem 1.3rem;
}
.lp-price .lp-checks { flex: 1 1 auto; font-size: 0.95rem; align-content: start; }
.lp-price-featured { border: 2px solid var(--lp-gold); box-shadow: 0 16px 40px rgba(255, 200, 61, 0.25); }
.lp-price-tag {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lp-gold);
    color: #3b2500;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
}
.lp-price-days { font-size: 1.5rem; font-weight: 850; color: var(--lp-ink); }
.lp-price-note { color: var(--lp-muted); font-size: 0.95rem; margin-top: -0.5rem; }
.lp-price-amount { font-weight: 700; color: var(--lp-blue); padding: 0.4rem 0; border-top: 1px dashed var(--lp-line); border-bottom: 1px dashed var(--lp-line); }
@media (prefers-color-scheme: dark) { .lp-price-amount { color: #9fb2ff; } }
@media (max-width: 900px) { .lp-prices { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; } }

.lp-pay { display: none; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap; text-align: center; color: var(--lp-muted); margin: 2rem 0 0; }
.lp-swish { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; background: linear-gradient(135deg, #ef4b6c, #f7a541); color: #fff; font-weight: 800; letter-spacing: 0.02em; }

/* ---------- Frågor ---------- */
.lp-faq-wrap { max-width: 780px; }
.lp-faq { display: grid; gap: 0.7rem; }
.lp-faq details { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 16px; padding: 0 1.2rem; }
.lp-faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--lp-ink); padding: 1.05rem 2rem 1.05rem 0; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--lp-blue); transition: transform 0.2s; }
.lp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq details p { margin: 0 0 1.1rem; color: var(--lp-muted); }

/* ---------- Avslut och sidfot ---------- */
.lp-final { text-align: center; padding: 5rem 0; color: #fff; background: linear-gradient(135deg, #5b7cfa, #7c4dff); }
.lp-final img { border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); margin-bottom: 1.2rem; }
.lp-final h2 { color: #fff; max-width: 34rem; margin: 0 auto 1.6rem; }
.lp-footer { background: var(--lp-bg); border-top: 1px solid var(--lp-line); color: var(--lp-muted); font-size: 0.92rem; }
.lp-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.lp-footer-inner span { display: flex; align-items: center; gap: 0.5rem; }
.lp-footer nav { display: flex; gap: 1.2rem; }
.lp-footer a { text-decoration: none; }
.lp-footer a:hover { text-decoration: underline; }

/* ---------- Så kommer köpet att fungera ---------- */
.lp-steps {
    max-width: 720px;
    margin: 2.2rem auto 0;
    padding: 1.4rem 1.6rem;
    border-radius: var(--lp-radius);
    background: var(--lp-tint);
    border: 1px solid var(--lp-line);
}
.lp-steps-title { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; font-weight: 800; color: var(--lp-ink); margin-bottom: 0.7rem; }
.lp-steps ol { margin: 0 0 0.7rem; padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.lp-steps p { margin: 0; color: var(--lp-muted); font-size: 0.95rem; }

.lp-final-sub { font-size: 1.15rem; opacity: 0.95; margin: -0.6rem auto 1.8rem; max-width: 34rem; }

/* ---------- Webbläsarfönster ---------- */
.lp-browser {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--lp-shadow), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.lp-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    background: #eceff7;
    border-bottom: 1px solid #dde2f0;
}
.lp-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.lp-browser-bar i:nth-child(2) { background: #febc2e; }
.lp-browser-bar i:nth-child(3) { background: #28c840; }
.lp-browser-url {
    flex: 1 1 auto;
    margin-left: 0.6rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    color: #5b6183;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lp-browser img { display: block; width: 100%; aspect-ratio: 1280 / 800; object-fit: cover; object-position: top; background: #12152a; }
@media (prefers-color-scheme: dark) {
    .lp-browser { background: #1f2442; }
    .lp-browser-bar { background: #262b4d; border-bottom-color: #31375f; }
    .lp-browser-url { background: #171b36; color: #aab0d6; }
}

.lp-devices { position: relative; padding-bottom: 2.5rem; }
.lp-devices .lp-phone { position: absolute; right: -10px; bottom: 0; width: min(170px, 34%); padding: 7px; border-radius: 28px; }
.lp-devices .lp-phone img { border-radius: 22px; }

.lp-browser-feature { margin-top: 3.5rem; }

/* ---------- Planer ---------- */
.lp-plan-tiers { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.lp-plan-tiers li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0.7rem; border-radius: 10px; background: var(--lp-tint); font-size: 0.93rem; }
.lp-plan-tiers b { color: var(--lp-ink); }
.lp-plan-size { font-size: 1.05rem; font-weight: 700; color: var(--lp-blue); }
@media (prefers-color-scheme: dark) { .lp-plan-size { color: #9fb2ff; } }
.lp-periods { text-align: center; color: var(--lp-muted); margin: 1.6rem 0 0; }
.lp-periods b { color: var(--lp-ink); }

.lp-card-highlight { border: 2px solid var(--lp-gold); }

.lp-coming { max-width: 760px; margin: 2rem auto 0; text-align: center; color: var(--lp-text); }
.lp-coming span { display: inline-block; margin-right: 0.4rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--lp-gold); color: #3b2500; font-weight: 800; font-size: 0.85rem; }

/* ---------- Ljust / mörkt ---------- */
.lp-theme { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.lp-theme p { font-size: 1.06rem; }
.lp-theme-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.lp-theme-pills span { padding: 0.45rem 0.9rem; border-radius: 12px; background: var(--lp-tint); border: 1px solid var(--lp-line); font-weight: 600; color: var(--lp-ink); }
.lp-theme-pills span.on { background: var(--lp-blue); border-color: var(--lp-blue); color: #fff; }
.lp-theme-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.lp-theme-phones figure { margin: 0; text-align: center; }
.lp-theme-phones .lp-phone { width: 100%; max-width: 250px; }
.lp-theme-phones figcaption { margin-top: 0.8rem; font-weight: 700; color: var(--lp-ink); }
@media (max-width: 820px) { .lp-theme { grid-template-columns: minmax(0, 1fr); gap: 2rem; } .lp-theme-phones { gap: 0.8rem; } .lp-theme-phones .lp-phone { padding: 6px; border-radius: 26px; } .lp-theme-phones .lp-phone img { border-radius: 20px; } }

.lp-game-phones { max-width: 520px; margin: 0 auto; }
