/* lvstrexpenses.se — one stylesheet, no build step.
   Tokens → base → components → sections → motion → preferences. */

:root {
  /* Brand: lime is a SURFACE colour (dark text on it, 8.6:1). For text and
     links the same hue is deepened to #3F7A00 (5.3:1 on white). Never lime
     text on white — 2.2:1. */
  --lime: #74C301;
  --lime-ink: #3F7A00;
  --ink: #111111;
  --ink-2: #4B5240;
  --paper: #FFFFFF;
  --soft: #EEF3E3;
  --line: rgba(17, 17, 17, 0.1);
  --glow: rgba(116, 195, 1, 0.28);
  --shadow: 0 30px 60px -20px rgba(17, 17, 17, 0.35);
  --radius: 20px;
  --nav-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F2F4EC;
    --ink-2: #B9C0AE;
    --paper: #0F120C;
    --soft: #171C12;
    --line: rgba(242, 244, 236, 0.12);
    --lime-ink: #9BE03A;
    --glow: rgba(116, 195, 1, 0.22);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.5; }
.muted { color: var(--ink-2); }
.mark { color: var(--lime-ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: clamp(56px, 9vw, 112px) 0; }
.soft { background: var(--soft); }
.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--lime-ink); margin-bottom: 14px;
}
:focus-visible { outline: 3px solid var(--lime-ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 650; font-size: 1.02rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 120ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--lime); color: #111; }
.btn-primary:hover { background: #83D21A; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.nav::after {
  /* scroll edge: a soft fade instead of a hairline */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 55%, transparent), transparent);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 20px; max-width: 12ch; }
.hero .lead { max-width: 46ch; margin-bottom: 28px; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-row .link { color: var(--ink); font-weight: 550; text-decoration: none; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 12px;
  border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 0.875rem; font-weight: 550;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-wrap::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); filter: blur(18px);
}
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 552 / 1200; border-radius: 44px;
  padding: 10px; background: #0b0b0b; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,0.08);
  transform: rotate(-3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone-sm { width: min(240px, 60vw); transform: none; }

/* ---------- trust strip ---------- */
.trust { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 550; color: var(--ink-2); font-size: 0.95rem; }
.trust svg { width: 20px; height: 20px; color: var(--lime-ink); flex: none; }

/* ---------- features ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .phone-wrap { order: -1; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.feature p { color: var(--ink-2); font-size: 1.08rem; max-width: 48ch; }
.feature .chip {
  display: inline-block; margin-top: 10px; padding: 6px 10px; border-radius: 8px;
  background: var(--lime); color: #111; font-weight: 650; font-size: 0.85rem; font-variant-numeric: tabular-nums;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.step { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: #111; font-size: 1.15rem; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); }

/* ---------- privacy ---------- */
.privacy .wrap { max-width: 760px; text-align: center; }
.privacy p { font-size: 1.15rem; color: var(--ink-2); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.plan { position: relative; padding: 30px; border-radius: var(--radius); background: var(--paper); border: 1.5px solid var(--line); }
.plan.pro { border-color: var(--lime); }
.plan .tag { position: absolute; top: -14px; right: 22px; padding: 5px 11px; border-radius: 999px; background: var(--lime); color: #111; font-weight: 700; font-size: 0.8rem; }
.plan h3 { margin-bottom: 6px; }
.price { font-size: 2.2rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: var(--ink-2); }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--lime-ink); font-weight: 700; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 28px auto 0; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--lime-ink); transition: transform 180ms ease-out; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

/* ---------- footer ---------- */
footer { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* ---------- article pages (integritet, support) ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.article h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.article h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.article h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 12px 0 20px; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.article th { font-weight: 650; }
.article li { margin-bottom: 6px; }
.meta { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 28px; }
.lang { display: flex; gap: 14px; font-size: 0.9rem; margin-bottom: 24px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 420ms ease-out, transform 420ms ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- preferences & responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, summary::after { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); }
  .nav::after { display: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(17,17,17,0.35); --ink-2: #2E3328; }
  .btn-ghost { border-color: var(--ink); }
}
@media (max-width: 860px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; }
  .feature.flip .phone-wrap { order: 0; }
  .hero h1 { max-width: none; }
  .phone { transform: none; }
  .steps, .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .cta-row .btn { width: 100%; justify-content: center; }
}
