:root {
  --bg: #fbfaf7;
  --bg-soft: #f1f5f2;
  --fg: #142019;
  --muted: #56635c;
  --card: #fff;
  --border: #e1e5e0;
  --accent: #14523f;
  --accent-2: #1f7a5e;
  --accent-soft: #e3f1ea;
  --accent-fg: #fff;
  --ok: #1f7a5e;
  --shadow: 0 1px 2px rgba(20, 32, 25, 0.05), 0 12px 32px rgba(20, 32, 25, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101512;
    --bg-soft: #151d19;
    --fg: #e9eeeb;
    --muted: #9ba8a1;
    --card: #182019;
    --border: #2a352f;
    --accent: #5cc39f;
    --accent-2: #7fd3b4;
    --accent-soft: #1d3329;
    --accent-fg: #0c1410;
    --ok: #7fd3b4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--accent-2); }
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 24px; height: 24px; border-radius: 7px; background:
  linear-gradient(var(--accent-fg), var(--accent-fg)) 5px 5px / 6px 14px no-repeat,
  linear-gradient(#7fd3b4, #7fd3b4) 13px 5px / 6px 6px no-repeat,
  linear-gradient(var(--accent-fg), var(--accent-fg)) 13px 13px / 6px 6px no-repeat,
  var(--accent); }
.top-nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.top-nav a:not(.button) { color: var(--muted); text-decoration: none; }
.top-nav a:not(.button):hover { color: var(--fg); }
@media (max-width: 40rem) { .top-nav a:not(.button) { display: none; } .top-nav a[href="/app/"] { display: inline; } }

/* Buttons */
.button {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  background: var(--accent); color: var(--accent-fg); font-weight: 650; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); transition: transform 0.1s ease, background 0.15s ease;
}
.button:hover { background: var(--accent-2); }
.button:active { transform: translateY(1px); }
.button.small { padding: 8px 14px; font-size: 0.9rem; }
.button.ghost { background: var(--card); color: var(--fg); border: 1px solid var(--border); box-shadow: none; }
.button.ghost:hover { border-color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(60rem 24rem at 50% -4rem, var(--accent-soft), transparent 70%); }
.eyebrow { display: inline-block; margin: 0 0 20px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.hero h1 { max-width: 46rem; margin: 0 auto 20px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 span { color: var(--accent-2); }
.lead { max-width: 38rem; margin: 0 auto 32px; color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Product frame */
.frame { margin: 8px auto 0; max-width: 52rem; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.frame-bar p { margin: 0 0 0 10px; color: var(--muted); font-size: 0.85rem; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 28px; }
@media (max-width: 40rem) { .compare { grid-template-columns: 1fr; padding: 20px; } .arrow { transform: rotate(90deg); justify-self: center; } }
.col-title { margin: 0 0 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.col-title.accent { color: var(--accent-2); }
.compare table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th { padding: 6px 0; text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.compare td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.num, .compare th.num { text-align: right; font-variant-numeric: tabular-nums; }
.col-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }
.col-note.ok { color: var(--ok); font-weight: 600; }
.arrow { color: var(--muted); font-size: 1.5rem; }

/* Sections */
.section { padding: 72px 16px 0; }
.section h2 { margin: 0 0 24px; font-size: 1.75rem; letter-spacing: -0.025em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 750; }
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; max-width: 46rem; }
.checks li { position: relative; padding-left: 36px; color: var(--muted); }
.checks li strong { color: var(--fg); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background:
  linear-gradient(45deg, transparent 45%, var(--accent) 45% 60%, transparent 60%) 7px 9px / 5px 5px no-repeat,
  linear-gradient(-45deg, transparent 42%, var(--accent) 42% 56%, transparent 56%) 9px 5px / 8px 10px no-repeat,
  var(--accent-soft); }
.price-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.price-card h2 { margin-bottom: 8px; }
.price { margin: 0 0 6px; font-size: 1.25rem; }
.price strong { font-size: 2rem; letter-spacing: -0.03em; }
.price-card .muted { margin: 0; max-width: 32rem; }
.faq { margin: 0; max-width: 46rem; }
.faq dt { margin-top: 20px; font-weight: 650; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

/* Footer */
footer { margin-top: 96px; padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; text-align: center; }
footer p { margin: 0 0 8px; }
footer a { color: var(--muted); }

/* Legal pages (villkor, integritet, bitrade) */
.legal { max-width: 46rem; margin: 0 auto; padding: 48px 16px 0; }
.legal .brand { margin: 0 0 24px; }
.legal .brand a { color: var(--fg); font-weight: 750; text-decoration: none; }
.legal h1 { font-size: 2rem; letter-spacing: -0.03em; line-height: 1.15; }
.legal h2 { font-size: 1.15rem; margin-top: 2rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
