﻿/* ============================================================================
   landing.css — publik startsida (visas endast för utloggade besökare).
   Allt är scopat under .landing / body.landing-active så inget läcker in i
   appen. Renderas av wwwroot/js/views/landing.js.
   ========================================================================== */

/* ── App-chrome göms medan landningssidan visas ───────────────────────────── */
body.landing-active { background: #eef1f6; }
body.landing-active > header.sticky-top,
body.landing-active > footer.site-footer,
body.landing-active #mobile-top-bar,
body.landing-active .mobile-bottom-nav { display: none !important; }
body.landing-active #app { padding: 0; }

/* ── TOKENS ──────────────────────────────────────────────────────────────── */
.landing {
  --g-teal:     #00D9A3;
  --g-indigo:   #6366f1;
  --grad-sig:   linear-gradient(135deg, #00D9A3 0%, #6366f1 100%);
  --grad-main:  linear-gradient(120deg, #08111d 0%, #0a1e30 40%, #0c2a3a 70%, #0d2535 100%);
  --grad-ts:    linear-gradient(135deg, #00D9A3 0%, #6366f1 100%);
  --l-border:   #e2e8f0;
  --l-white:    #ffffff;
  --l-surface:  #f8fafc;
  --l-text:     #0f172a;
  --l-muted:    #64748b;
  --radius-lg:  22px;
  --radius:     14px;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.05);
  --card-shadow-dark: 0 2px 8px rgba(0,0,0,0.2), 0 12px 40px rgba(0,0,0,0.18);

  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--l-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
.landing h1, .landing h2, .landing h3, .landing p, .landing ul, .landing figure { margin: 0; padding: 0; }
.landing ul { list-style: none; }
.landing a { text-decoration: none; color: inherit; }
.landing button { font-family: inherit; }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
.landing .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.landing .reveal.visible { opacity: 1; transform: none; }
.landing .reveal-d1 { transition-delay: 0.08s; }
.landing .reveal-d2 { transition-delay: 0.16s; }
.landing .reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .landing .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── ANIMATIONER ─────────────────────────────────────────────────────────── */
@keyframes landing-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0,217,163,0.5); }
  50% { opacity: 0.65; box-shadow: 0 0 14px rgba(0,217,163,0.85), 0 0 28px rgba(0,217,163,0.3); }
}
@keyframes landing-glow-drift {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(-14px); opacity: 0.82; }
}
@keyframes landing-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.landing .l-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 60px;
  background: rgba(8,17,29,0.9);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.landing .l-nav-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; padding: 0 28px; gap: 32px;
}
.landing .l-nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 1rem; font-weight: 800; letter-spacing: -0.3px;
  flex-shrink: 0;
}
.landing .l-nav-brand-name {
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .l-nav-logo { width: 34px; height: 34px; flex-shrink: 0; }
.landing .l-nav-links { display: flex; gap: 24px; margin-left: auto; }
.landing .l-nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.42); transition: color 0.15s;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit;
}
.landing .l-nav-links a:hover { color: var(--g-teal); }
.landing .l-nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.landing .btn-ghost-d {
  padding: 7px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.1);
  background: transparent; cursor: pointer; transition: all 0.15s;
}
.landing .btn-ghost-d:hover { border-color: rgba(255,255,255,0.25); color: #fff; }
.landing .btn-nav-cta {
  padding: 8px 18px; border-radius: 8px; font-size: 0.875rem; font-weight: 700;
  color: #fff; background: var(--grad-sig);
  border: none; cursor: pointer; transition: opacity 0.15s;
  box-shadow: 0 2px 12px rgba(0,217,163,0.25);
}
.landing .btn-nav-cta:hover { opacity: 0.88; color: #fff; }

/* ── SIDWRAPPER ──────────────────────────────────────────────────────────── */
.landing .page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.landing .card-section { border-radius: var(--radius-lg); overflow: hidden; }
.landing .card-light { background: var(--l-white); box-shadow: var(--card-shadow); }
.landing .card-surf  { background: var(--l-surface); box-shadow: var(--card-shadow); }
.landing .card-dark  { background: var(--grad-main); box-shadow: var(--card-shadow-dark); }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.landing .hero { padding: 72px 48px 0; text-align: center; position: relative; overflow: hidden; }
.landing .hero-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,217,163,0.14) 0%, rgba(99,102,241,0.06) 50%, transparent 70%);
  animation: landing-glow-drift 8s ease-in-out infinite;
}
.landing .hero-glow-r {
  position: absolute; bottom: 0; right: -100px;
  width: 500px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse at 100% 100%, rgba(99,102,241,0.12) 0%, transparent 60%);
}
.landing .hero-kicker {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,217,163,0.22);
  border-radius: 999px; padding: 5px 14px 5px 10px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 26px;
  background: rgba(0,217,163,0.07);
}
.landing .hero-kicker span {
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-sig);
  animation: landing-dot-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.landing .hero h1 {
  position: relative; z-index: 1;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900; letter-spacing: -2.5px; line-height: 1.06;
  color: #fff; max-width: 820px; margin: 0 auto 16px;
}
.landing .hero h1 .line1 { color: rgba(255,255,255,0.92); }
.landing .hero h1 .line2 {
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .hero-sub {
  position: relative; z-index: 1;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: rgba(255,255,255,0.4);
  max-width: 540px; margin: 0 auto 32px; line-height: 1.75;
}
.landing .hero-sub strong { color: rgba(255,255,255,0.7); font-weight: 600; }
.landing .hero-btns {
  position: relative; z-index: 1;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 10px;
}
.landing .btn-primary-l {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 700;
  color: #fff; background: var(--grad-sig);
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,217,163,0.22), 0 2px 8px rgba(99,102,241,0.18);
  transition: all 0.18s;
}
.landing .btn-primary-l svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.landing .btn-primary-l:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,217,163,0.34), 0 4px 16px rgba(99,102,241,0.26); }
.landing .btn-outline-d {
  padding: 13px 26px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 600;
  color: rgba(255,255,255,0.68);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); cursor: pointer;
  transition: all 0.15s;
}
.landing .btn-outline-d:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); color: #fff; }
.landing .hero-microcopy {
  position: relative; z-index: 1;
  font-size: 0.76rem; color: rgba(255,255,255,0.2);
  margin-bottom: 56px;
}
.landing .hero-visual {
  position: relative; z-index: 1;
  margin: 0 auto;
  max-width: 980px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  box-shadow:
    0 -8px 40px rgba(0,217,163,0.13),
    0 -2px 0 rgba(0,217,163,0.09),
    0 0 0 1px rgba(255,255,255,0.04),
    0 -20px 80px rgba(99,102,241,0.09);
}

/* ── WEBBLÄSARRAM ────────────────────────────────────────────────────────── */
.landing .chrome-bar {
  background: #111e2e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 9px 13px;
  display: flex; align-items: center; gap: 9px;
}
.landing .chrome-bar.light-chrome { background: #f1f5f9; border-bottom: 1px solid var(--l-border); }
.landing .chrome-dots { display: flex; gap: 5px; }
.landing .chrome-dot { width: 10px; height: 10px; border-radius: 50%; }
.landing .cd-r { background: #ff5f57; }
.landing .cd-y { background: #febc2e; }
.landing .cd-g { background: #28c840; }
.landing .chrome-url {
  flex: 1; border-radius: 5px; padding: 4px 11px;
  font-size: 0.68rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.28);
}
.landing .chrome-url.light-url { background: var(--l-white); border: 1px solid var(--l-border); color: var(--l-muted); }

/* ── BILDPLATSER ─────────────────────────────────────────────────────────
   Skärmdumpen visas HEL. Tidigare fyllde den rutan med object-fit:cover, vilket
   beskar bort vänster- och högerkanten på varje bild (övningsbibliotekets rubrik
   tappade sina första bokstäver, ritverktygets stegpanel försvann helt). Nu styr
   bilden i stället rutans höjd — width:100% + height:auto ger rätt proportion
   utan vare sig beskärning eller tomma band.

   Laddar bilden inte (skärmdumpen är inte inlagd ännu) sätts .is-missing och
   .shot-fallback tar över; den ligger i flödet och ger då rutan sin höjd. */
.landing .img-slot { position: relative; overflow: hidden; }
.landing .img-slot.dark-slot { background: #0a1a28; }
.landing .img-slot.light-slot { background: #f0f4f8; }
.landing .img-slot img { display: block; width: 100%; height: auto; }
.landing .img-slot img.is-missing { display: none; }
/* Staende skarmdump (AI-formularet ar 471x979) skulle annars gora sektionen
   ~1150px hog, med rubriken svavande i ett stort tomrum. Vi smalnar av HELA
   ramen - inte bara bilden - annars blir webblasarramen bredare an sitt
   innehall och ser trasig ut. Bilden visas fortfarande hel. */
.landing .feat-visual:has(.img-slot.portrait) { max-width: 340px; margin: 0 auto; }
.landing .shot-fallback {
  display: none;
  min-height: 400px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 32px; text-align: center;
}
.landing .img-slot.h-short .shot-fallback { min-height: 340px; }
.landing .img-slot img.is-missing ~ .shot-fallback { display: flex; }
.landing .dark-slot .shot-fallback { background: radial-gradient(ellipse at 50% 0%, rgba(0,217,163,0.10) 0%, transparent 62%), #0a1a28; }
.landing .light-slot .shot-fallback { background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.07) 0%, transparent 62%), #f0f4f8; }
.landing .shot-fallback img { width: 46px; height: 46px; opacity: 0.9; }
.landing .shot-fb-title { font-size: 0.92rem; font-weight: 800; letter-spacing: -0.2px; }
.landing .dark-slot .shot-fb-title { color: rgba(255,255,255,0.55); }
.landing .light-slot .shot-fb-title { color: #475569; }
.landing .shot-fb-sub { font-size: 0.74rem; }
.landing .dark-slot .shot-fb-sub { color: rgba(255,255,255,0.22); }
.landing .light-slot .shot-fb-sub { color: #94a3b8; }

/* ── SEKTIONSETIKETT ─────────────────────────────────────────────────────── */
.landing .section-kicker {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.landing .sk-line { width: 18px; height: 2px; border-radius: 1px; background: var(--grad-sig); flex-shrink: 0; }
.landing .sk-grad {
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── PROBLEM ─────────────────────────────────────────────────────────────── */
.landing .problem-section { padding: 64px 48px; }
.landing .problem-inner { max-width: 980px; margin: 0 auto; }
.landing .problem-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900; letter-spacing: -0.9px; line-height: 1.16;
  color: var(--l-text); margin-bottom: 12px;
}
.landing .problem-lead { font-size: 0.98rem; color: var(--l-muted); max-width: 520px; line-height: 1.72; margin-bottom: 44px; }
.landing .pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.landing .pain-card {
  background: var(--l-white); padding: 32px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--l-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.landing .pain-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.landing .pain-icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--grad-sig);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,217,163,0.2), 0 2px 8px rgba(99,102,241,0.12);
}
.landing .pain-icon-wrap svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.landing .pain-title { font-size: 0.92rem; font-weight: 800; color: var(--l-text); margin-bottom: 7px; }
.landing .pain-desc { font-size: 0.83rem; color: var(--l-muted); line-height: 1.65; }

/* ── STATISTIK ───────────────────────────────────────────────────────────── */
.landing .stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.landing .stat-cell {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--grad-main);
  box-shadow: var(--card-shadow-dark);
}
.landing .stat-badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 10px;
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .stat-n {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -2px; line-height: 1; margin-bottom: 8px;
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .stat-value-title {
  font-size: 1.9rem; font-weight: 900; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 10px;
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .stat-l { font-size: 0.85rem; color: rgba(255,255,255,0.36); font-weight: 500; line-height: 1.5; }

/* ── FOMO-BAND ───────────────────────────────────────────────────────────── */
.landing .fomo-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.landing .fomo-item {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: var(--l-white);
  border: 1px solid var(--l-border);
  box-shadow: var(--card-shadow);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.landing .fomo-item:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.landing .fomo-n {
  font-size: 0.88rem; font-weight: 900; letter-spacing: -0.2px;
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .fomo-t { font-size: 0.8rem; color: var(--l-muted); font-weight: 500; line-height: 1.55; }

/* ── FEATURE-SEKTIONER ───────────────────────────────────────────────────── */
.landing .feat {
  max-width: 1040px; margin: 0 auto;
  padding: 64px 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.landing .feat.flip { direction: rtl; }
.landing .feat.flip > * { direction: ltr; }
.landing .feat-text { display: flex; flex-direction: column; align-items: flex-start; }
.landing .feat-h {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 900; letter-spacing: -0.7px; line-height: 1.18;
  color: var(--l-text); margin: 10px 0 12px;
}
.landing .feat-h .accent,
.landing .ai-h .accent {
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .feat-p { font-size: 0.96rem; color: var(--l-muted); line-height: 1.74; margin-bottom: 24px; }
.landing .feat-list { display: flex; flex-direction: column; gap: 10px; }
.landing .feat-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--l-muted); line-height: 1.55; }
.landing .feat-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-sig);
  box-shadow: 0 2px 8px rgba(0,217,163,0.2);
}
.landing .feat-check svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.landing .feat-visual {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--l-border);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.06),
    0 0 0 1px rgba(0,217,163,0.06),
    0 0 30px rgba(0,217,163,0.05),
    0 1px 4px rgba(0,0,0,0.04);
}
.landing .feat-visual.dark-visual {
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,217,163,0.08),
    0 0 40px rgba(0,217,163,0.08),
    0 4px 16px rgba(0,0,0,0.3);
}
.landing .btn-feat {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 22px; align-self: flex-start;
  padding: 10px 20px; border-radius: 9px;
  font-size: 0.84rem; font-weight: 700;
  color: #fff; background: var(--grad-sig);
  border: none; cursor: pointer;
  box-shadow: 0 3px 14px rgba(0,217,163,0.18), 0 1px 6px rgba(99,102,241,0.12);
  transition: all 0.18s;
}
.landing .btn-feat svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.landing .btn-feat:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,217,163,0.3), 0 3px 10px rgba(99,102,241,0.2); }

/* ── AI-SEKTION ──────────────────────────────────────────────────────────── */
.landing .ai-section { padding: 64px 48px; position: relative; overflow: hidden; }
.landing .ai-glow { position: absolute; top: -60px; right: -60px; width: 500px; height: 500px; pointer-events: none; background: radial-gradient(ellipse, rgba(99,102,241,0.18) 0%, transparent 65%); }
.landing .ai-glow-l { position: absolute; bottom: -60px; left: 0; width: 400px; height: 400px; pointer-events: none; background: radial-gradient(ellipse, rgba(0,217,163,0.1) 0%, transparent 65%); }
.landing .ai-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.landing .ai-badge {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.1);
  border-radius: 999px; padding: 4px 12px 4px 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 12px;
  align-self: flex-start;
}
.landing .ai-badge span { background: linear-gradient(90deg,#818cf8,#c4b5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.landing .ai-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #818cf8, #c4b5fd); flex-shrink: 0; }
.landing .ai-h { font-size: clamp(1.6rem,2.6vw,2.1rem); font-weight: 900; letter-spacing: -0.7px; line-height: 1.18; color: #fff; margin-bottom: 12px; }
.landing .ai-p { font-size: 0.96rem; color: rgba(255,255,255,0.38); line-height: 1.74; margin-bottom: 24px; }
.landing .ai-list { display: flex; flex-direction: column; gap: 10px; }
.landing .ai-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: rgba(255,255,255,0.38); line-height: 1.55; }

/* ── RÖSTER FRÅN LEDARNA ─────────────────────────────────────────────────── */
.landing .testimonials { padding: 64px 48px; }
.landing .sec-hd { max-width: 980px; margin: 0 auto 40px; }
.landing .sec-hd h2 { font-size: clamp(1.7rem,2.8vw,2.2rem); font-weight: 900; letter-spacing: -0.8px; line-height: 1.2; margin-top: 8px; }
.landing .test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 980px; margin: 0 auto; }
.landing .test-card {
  background: var(--l-white); border: 1px solid var(--l-border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.landing .test-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-sig);
}
.landing .test-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }
.landing .test-quote { font-size: 0.88rem; color: var(--l-text); line-height: 1.72; flex: 1; margin-bottom: 22px; padding-top: 8px; }
.landing .test-author { display: flex; align-items: center; gap: 10px; }
.landing .test-av { width: 36px; height: 36px; border-radius: 50%; font-size: 0.82rem; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.landing .test-name { font-size: 0.84rem; font-weight: 800; }
.landing .test-role { font-size: 0.73rem; color: var(--l-muted); }

/* ── PRISER (dynamiskt från /api/pricing/plans) ──────────────────────────── */
.landing .pricing-section { padding: 72px 48px; }
.landing .pricing-inner { max-width: 980px; margin: 0 auto; }
.landing .pricing-lead { font-size: 0.98rem; color: var(--l-muted); max-width: 520px; line-height: 1.7; margin-top: 10px; }
.landing .pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 44px; align-items: stretch; }
.landing .pricing-grid.cols-1 { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
.landing .pricing-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.landing .price-card {
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex; flex-direction: column;
  border: 1.5px solid var(--l-border);
  background: var(--l-white);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: landing-fade-up 0.5s ease both;
}
.landing .price-card:nth-child(1) { animation-delay: 0.05s; }
.landing .price-card:nth-child(2) { animation-delay: 0.12s; }
.landing .price-card:nth-child(3) { animation-delay: 0.20s; }
.landing .price-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.09); }
.landing .price-card.featured {
  background: var(--grad-main);
  border-color: rgba(0,217,163,0.18);
  box-shadow: var(--card-shadow-dark), 0 0 0 1px rgba(0,217,163,0.1);
}
.landing .price-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-sig);
  color: #fff; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,217,163,0.3);
}
.landing .price-plan { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--l-muted); margin-bottom: 5px; }
.landing .price-card.featured .price-plan { color: rgba(255,255,255,0.36); }
.landing .price-name { font-size: 1.05rem; font-weight: 900; color: var(--l-text); margin-bottom: 14px; line-height: 1.25; min-height: 2.6em; }
.landing .price-card.featured .price-name { color: #fff; }
.landing .price-pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: #f0f4f8; border-radius: 999px;
  padding: 4px 12px; font-size: 0.75rem; font-weight: 600;
  color: #334155; margin-bottom: 20px;
}
.landing .price-card.featured .price-pill { background: rgba(255,255,255,0.07); color: var(--g-teal); }
.landing .price-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-sig); flex-shrink: 0; }
.landing .price-amount { font-size: 2.4rem; font-weight: 900; letter-spacing: -1.5px; color: var(--l-text); line-height: 1; }
.landing .price-amount.is-from { font-size: 1.7rem; letter-spacing: -0.8px; }
.landing .price-card.featured .price-amount {
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .price-unit { font-size: 0.85rem; font-weight: 600; color: var(--l-muted); }
.landing .price-card.featured .price-unit { color: rgba(255,255,255,0.3); }
.landing .price-mo { font-size: 0.78rem; color: var(--l-muted); margin: 4px 0 18px; }
.landing .price-card.featured .price-mo { color: rgba(255,255,255,0.25); }
.landing .price-divider { height: 1px; background: var(--l-border); margin-bottom: 18px; }
.landing .price-card.featured .price-divider { background: rgba(255,255,255,0.07); }
.landing .price-desc { font-size: 0.82rem; color: var(--l-muted); line-height: 1.6; margin-bottom: 18px; }
.landing .price-card.featured .price-desc { color: rgba(255,255,255,0.3); }
.landing .price-features { display: flex; flex-direction: column; gap: 9px; flex: 1; margin-bottom: 26px; }
.landing .price-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.82rem; color: #334155; line-height: 1.45; }
.landing .price-card.featured .price-features li { color: rgba(255,255,255,0.55); }
.landing .pf-check {
  width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: rgba(0,217,163,0.12);
  display: flex; align-items: center; justify-content: center;
}
.landing .price-card.featured .pf-check { background: rgba(0,217,163,0.15); }
.landing .pf-check svg { width: 9px; height: 9px; fill: none; stroke: var(--g-teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.landing .price-btn {
  display: block; text-align: center;
  padding: 12px 18px; border-radius: 10px;
  font-size: 0.86rem; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.18s;
  margin-top: auto;
}
.landing .price-btn-outline { background: transparent; border: 1.5px solid var(--l-border); color: var(--l-text); }
.landing .price-btn-outline:hover { border-color: #94a3b8; color: var(--l-text); }
.landing .price-card.featured .price-btn-outline { border-color: rgba(255,255,255,0.18); color: #fff; }
.landing .price-btn-primary {
  background: var(--grad-sig);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,217,163,0.22), 0 2px 8px rgba(99,102,241,0.14);
}
.landing .price-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,217,163,0.32), 0 4px 14px rgba(99,102,241,0.22); }
.landing .pricing-transparency {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.82rem; color: var(--l-muted); line-height: 1.6;
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-left: 3px solid var(--g-teal);
  border-radius: 9px; padding: 12px 16px; margin-bottom: 24px; max-width: 560px;
}
.landing .pricing-note { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.landing .pricing-note-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,217,163,0.22);
  border-radius: 999px;
  padding: 6px 16px 6px 10px;
  background: rgba(0,217,163,0.06);
}
.landing .pricing-note-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-sig); flex-shrink: 0;
  animation: landing-dot-pulse 2.4s ease-in-out infinite;
}
.landing .pricing-note-text {
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.01em;
}
.landing .pricing-skeleton { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 44px; }
.landing .pricing-skeleton span {
  display: block; height: 420px; border-radius: var(--radius);
  background: linear-gradient(100deg, #f1f5f9 30%, #e9eef5 50%, #f1f5f9 70%);
  background-size: 200% 100%;
  animation: landing-skeleton 1.3s ease-in-out infinite;
}
@keyframes landing-skeleton { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.landing .pricing-error { margin-top: 40px; text-align: center; font-size: 0.9rem; color: var(--l-muted); }
.landing .pricing-error a { color: #0d9488; font-weight: 700; text-decoration: underline; }

/* ── SLUT-CTA ────────────────────────────────────────────────────────────── */
.landing .cta-final { padding: 88px 48px; text-align: center; position: relative; overflow: hidden; }
.landing .cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(0,217,163,0.11) 0%, rgba(99,102,241,0.08) 40%, transparent 70%);
}
.landing .cta-final h2 {
  position: relative; z-index: 1;
  font-size: clamp(1.9rem,3.8vw,3rem); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.1;
  color: #fff; max-width: 640px; margin: 0 auto 14px;
}
.landing .cta-final h2 span {
  background: var(--grad-ts);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .cta-final p { position: relative; z-index: 1; font-size: 0.96rem; color: rgba(255,255,255,0.34); max-width: 440px; margin: 0 auto 32px; line-height: 1.65; }
.landing .cta-btns { position: relative; z-index: 1; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.landing .cta-meta { position: relative; z-index: 1; font-size: 0.76rem; color: rgba(255,255,255,0.22); margin-top: 14px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.landing .cta-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.18); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.landing .l-footer {
  background: #060e19;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid; grid-template-columns: 180px 1fr auto;
  gap: 36px; align-items: center;
  box-shadow: var(--card-shadow-dark);
}
.landing .f-brand { display: flex; align-items: center; gap: 8px; }
.landing .f-brand-name { font-weight: 800; font-size: 0.92rem; background: var(--grad-ts); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.landing .f-logo { width: 30px; height: 30px; flex-shrink: 0; }
.landing .f-links { display: flex; gap: 22px; flex-wrap: wrap; }
.landing .f-links a { font-size: 0.78rem; color: rgba(255,255,255,0.26); transition: color 0.15s; }
.landing .f-links a:hover { color: var(--g-teal); }
.landing .f-copy { font-size: 0.72rem; color: rgba(255,255,255,0.16); }

/* ── RESPONSIVT ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .landing .l-nav-links { display: none; }
  .landing .l-nav-inner { padding: 0 16px; gap: 12px; }
  .landing .page-wrap { padding: 70px 12px 24px; gap: 10px; }
  .landing .hero { padding: 52px 24px 0; }
  .landing .feat, .landing .ai-inner { grid-template-columns: 1fr; gap: 32px; padding: 52px 24px; }
  .landing .feat.flip { direction: ltr; }
  .landing .problem-section { padding: 52px 24px; }
  .landing .pain-grid { grid-template-columns: 1fr; }
  .landing .stats { grid-template-columns: 1fr; }
  .landing .fomo-band { grid-template-columns: 1fr 1fr; }
  .landing .testimonials, .landing .cta-final, .landing .ai-section { padding: 52px 24px; }
  .landing .test-grid { grid-template-columns: 1fr; }
  .landing .pricing-section { padding: 52px 24px; }
  .landing .pricing-grid, .landing .pricing-grid.cols-2, .landing .pricing-skeleton { grid-template-columns: 1fr; }
  .landing .price-name { min-height: 0; }
  .landing .l-footer { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }
}
@media (max-width: 520px) {
  .landing .fomo-band { grid-template-columns: 1fr; }
  .landing .l-nav-actions .btn-ghost-d { display: none; }
}

/* ── Föreningsfliken: flikad bildkarusell ────────────────────────────────────
   Wrapper-klasserna (card-section, sec-hd, section-kicker, reveal) återanvänds
   från resten av landningssidan. Typsnittet ärvs — Plus Jakarta Sans laddas
   redan i site.css, så sektionen behöver ingen egen fontdeklaration. */
.landing .showcase-wrap { max-width: 980px; margin: 0 auto; }
.landing .sec-hd .sec-lead {
    font-size: .98rem;
    color: var(--l-muted, #64748b);
    max-width: 540px;
    line-height: 1.7;
    margin-top: 10px;
}

.landing .showcase-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}
.landing .stab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 30px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
    white-space: nowrap;
}
.landing .stab:hover { border-color: #00D9A3; color: #0f172a; }
.landing .stab.active {
    background: linear-gradient(135deg, #00D9A3, #6366f1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 217, 163, .3);
}

.landing .showcase-stage { position: relative; }
.landing .showcase-frame {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0, 0, 0, .12), 0 1px 6px rgba(0, 0, 0, .07);
    background: #0b141f;
    height: 440px;
    position: relative;
}

.landing .sslide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .55s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.landing .sslide.active { opacity: 1; pointer-events: auto; }
.landing .sslide img { display: block; max-width: 100%; max-height: 100%; }

/* Liggande skärmdumpar fyller ramen och beskärs nedtill — toppen är innehållet. */
.landing .sslide.landscape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
/* Stående (mobil) visas hel, centrerad mot den mörka ramen. */
.landing .sslide.portrait { background: #0b141f; padding: 16px; }
.landing .sslide.portrait img {
    height: 100%;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.landing .sslide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(9, 18, 29, .95) 50%, transparent);
    color: rgba(255, 255, 255, .88);
    font-size: .81rem;
    line-height: 1.55;
    padding: 40px 22px 18px;
    pointer-events: none;
}
.landing .sslide-caption strong { color: #00D9A3; }

.landing .showcase-progress {
    height: 2px;
    background: rgba(0, 0, 0, .08);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}
.landing .sp-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00D9A3, #6366f1);
    border-radius: 2px;
}
/* Respektera användare som bett om mindre rörelse: ingen autorotation, ingen mätare. */
@media (prefers-reduced-motion: reduce) {
    .landing .sslide { transition: none; }
    .landing .showcase-progress { display: none; }
}

.landing .showcase-also {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.landing .showcase-also-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.landing .showcase-chip {
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

@media (max-width: 640px) {
    .landing .showcase-frame { height: 300px; }
    .landing .sslide-caption { font-size: .76rem; padding: 34px 16px 14px; }
    .landing .stab { font-size: .74rem; padding: 6px 11px; }
}
