/* =========================================================
   Sexpert.World — statisk presentationssajt
   Mörkt, sensuellt tema med rosa/lila accent.
   ========================================================= */

:root {
  --bg: #140912;
  --bg-alt: #1c0d19;
  --surface: #241221;
  --surface-border: #3a2136;
  --text: #f4e9f1;
  --text-dim: #c2a9bc;
  --pink: #ff2e88;
  --purple: #a34bff;
  --grad: linear-gradient(120deg, var(--pink), var(--purple));
  --radius: 18px;
  --container: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Typografi ---------- */

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

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

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0.9em;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Knappar ---------- */

.btn {
  display: inline-block;
  padding: 0.85em 1.9em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-sm { padding: 0.55em 1.3em; font-size: 0.9rem; }
.btn-lg { padding: 1em 2.4em; font-size: 1.1rem; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 46, 136, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255, 46, 136, 0.5); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--pink); color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 9, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: flex; align-items: center; }
.logo img { width: auto; height: 44px; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a:hover { color: #fff; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -30% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 420px at 30% 20%, rgba(255, 46, 136, 0.22), transparent 70%),
    radial-gradient(700px 460px at 75% 30%, rgba(163, 75, 255, 0.20), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-logo {
  width: min(420px, 70vw);
  height: auto;
  margin-bottom: 1.8rem;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 1.4em;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 1.4rem auto 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-invite {
  max-width: 560px;
  margin: 0 auto 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-badges {
  list-style: none;
  display: flex;
  gap: 10px 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ---------- Sektioner ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Kort & grid ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 46, 136, 0.45); }
.card p { color: var(--text-dim); font-size: 0.97rem; }

.center .card-ico { margin-left: auto; margin-right: auto; }

.card-ico {
  font-size: 1.7rem;
  margin-bottom: 14px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 46, 136, 0.12);
  border: 1px solid rgba(255, 46, 136, 0.25);
}

/* ---------- Features (obboxad lista) ---------- */

.feature-grid { gap: 40px 44px; margin-top: 2.8rem; }

.feature {
  position: relative;
  padding-top: 18px;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  margin-bottom: 0.45em;
}
.feature-ico { font-size: 1.3rem; }
.feature p { color: var(--text-dim); font-size: 0.97rem; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 2.5rem 0 3rem;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.steps p { color: var(--text-dim); font-size: 0.97rem; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ---------- Priser ---------- */

.pricing { max-width: 820px; margin: 0 auto; align-items: stretch; }

.price-card { display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; align-self: flex-start; }

.price-featured {
  border-color: rgba(255, 46, 136, 0.6);
  box-shadow: 0 10px 40px rgba(255, 46, 136, 0.15);
  position: relative;
}

.price-tag {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}

.price {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0.2em 0 0.8em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.checklist {
  list-style: none;
  margin-bottom: 1.6rem;
  color: var(--text-dim);
}
.checklist li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 0.55em;
  font-size: 0.97rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 1.3rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ---------- Slut-CTA ---------- */

.cta-final {
  background:
    radial-gradient(500px 300px at 50% 0%, rgba(255, 46, 136, 0.15), transparent 70%),
    var(--bg-alt);
}
.cta-final .btn { margin-top: 1.5rem; }

.outro-logo {
  width: min(300px, 60vw);
  height: auto;
  margin-top: 1.2rem;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5));
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-logo { width: 160px; height: auto; margin-bottom: 0.8rem; }
.site-footer a { color: var(--pink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner p { margin-bottom: 0.3em; }

/* ---------- Scroll-scrubbad sekvens (Apple-stil) ---------- */

.scrolly {
  position: relative;
  height: 420vh;
  background: #000;
}

.scrolly-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.scrolly-fallback,
.scrolly-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scrolly-fallback { object-fit: cover; }
.scrolly-canvas { display: block; }

/* Mörk ton i över- och underkant så texten alltid går att läsa. */
.scrolly-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 30%,
                    transparent 70%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.scrolly-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}

.scrolly-caption p {
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 900px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* drop-shadow följer de urklippta bokstäverna — text-shadow gör det inte */
  filter: drop-shadow(0 4px 26px rgba(0, 0, 0, 0.85));
}

/* Reducerad rörelse: ingen fastnålning, bara stillbild + slutbudskap. */
.scrolly-static { height: 100vh; }

/* ---------- Scroll-reveal ----------
   Aktiveras bara när JS lagt .js-reveal på <html>, så innehållet
   aldrig döljs utan JavaScript eller vid reducerad rörelse. */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}
