/* eco3 – hemsidan för 3.0. Samma formspråk som kundpanelen (eco3-server/server/static/panel.html):
   grafit med en grön ton som grund, guld (3:an i loggan) för det man trycker på, det som är valt och resultatet,
   grönt bara där det betyder något: vinst, positivt value, CLV-linjen och att boten kör. */
/* Typsnitten ligger på sajten (inga anrop till Google). Inter 400–700 och Space Grotesk 700, bara tecknen i "eco3". */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/space-grotesk-700-logo.woff2") format("woff2"); }
:root {
  --brand: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --logo: "Space Grotesk", var(--brand);
  --bg: #070b0a; --bg-deep: #060908; --panel: #15161a; --panel2: #18191d; --panel3: #26272c; --input: #0a0e0d;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.12);
  --text: #e6e2da; --strong: #f6f2ea; --muted: #aaa49a; --dim: #928d84;
  --gold: #c8a35a; --gold-soft: #e0c58c; --gold-deep: #9a7a3c; --gold-tint: rgba(200,163,90,.07); --gold-sel: rgba(200,163,90,.14);
  --gold-line: rgba(200,163,90,.35); --warn-text: #e8d7b0;
  --mint: #5fdca5; --mint-soft: #8ceac0; --mint-deep: #2f8a63; --mint-tint: rgba(95,220,165,.1); --mint-sel: rgba(95,220,165,.16); --mint-line: rgba(95,220,165,.32);
  --pos: #5fdca5; --neg: #ef6b65; --neg-line: rgba(239,107,101,.38); --warn: #f09a3e;
  --kambi: #5aa9ff; --bet365: #ffdf1b; --betsson: #ff6f3c; --svenskaspel: #e0313b;
  --radius: 16px; --radius-sm: 10px;
  --edge: inset 0 1px 0 rgba(255,255,255,.08);
  --card-bg: linear-gradient(180deg, rgba(21,29,26,.94), rgba(14,20,18,.94));
  --card-border: rgba(160,255,210,.085);
  --hair: linear-gradient(90deg, transparent, rgba(95,220,165,.35) 25%, rgba(200,163,90,.28) 50%, rgba(95,220,165,.35) 75%, transparent);
  --wrap: 1100px; --hdr-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); scrollbar-color: var(--panel3) var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--text); font: 16px/1.6 var(--brand); -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01"; letter-spacing: -.006em; background: var(--bg); }
/* Två svaga gröna glöd i hörnen ger ytan djup (som panelen) */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 420px at 0% 0%, rgba(95,220,165,.09), transparent 70%),
    radial-gradient(520px 380px at 100% 100%, rgba(95,220,165,.06), transparent 70%),
    radial-gradient(800px 300px at 50% -80px, rgba(95,220,165,.07), transparent 70%); }
/* Duken är lika hög som den största fönsterhöjden (100lvh), så att den inte tar slut när adressfältet fälls in */
#spiral-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }
::selection { background: var(--mint-sel); color: var(--strong); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
a:hover { color: var(--strong); text-decoration-color: var(--gold); }
p { margin: 0 0 1em; }
strong, b { color: var(--strong); font-weight: 600; }
code { font: 500 .92em/1.4 var(--brand); color: var(--strong); background: rgba(255,255,255,.06); border: 1px solid var(--line);
  padding: .05em .4em; border-radius: 6px; overflow-wrap: anywhere; }
kbd { font: 600 .85em var(--brand); color: var(--strong); padding: .1em .45em; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--panel3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--strong); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.num, .tab-num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); } .pos { color: var(--pos); } .neg { color: var(--neg); } .muted { color: var(--muted); }

/* ---------- Ordmärket ---------- */
.logo { font: 700 26px/1 var(--logo); letter-spacing: -.03em; color: var(--strong); display: inline-flex; align-items: baseline; text-decoration: none;
  text-shadow: 0 0 24px rgba(95,220,165,.18); }
.logo b { color: var(--gold); font-weight: 700; }
.logo:hover { color: var(--strong); }

/* ---------- Knappar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text); font: 500 15px/1.2 var(--brand);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: var(--strong); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(120deg, #59e3a7, #7deebb); border-color: transparent; color: #04140d; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.4); }
.btn.primary:hover { background: linear-gradient(120deg, #6be9b3, #95f2c8); color: #04140d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 4px var(--mint-tint), 0 6px 18px -6px rgba(89,227,167,.45); }
.btn.gold { border-color: var(--gold-line); color: var(--gold-soft); background: var(--gold-tint); }
.btn.gold:hover { background: var(--gold-sel); border-color: var(--gold); color: var(--strong); }
.btn.lg { min-height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; flex: none; }
button.lnk { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
button.lnk:hover { color: var(--strong); }

/* ---------- Sidhuvudet: en lugn rad, guld–grön hårlinje under ---------- */
.hdr { position: sticky; top: 0; z-index: 50; }
/* Blur på en egen yta: backdrop-filter på .hdr skulle göra den till ram för mobilmenyn (position: fixed) */
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6,10,9,.78); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); }
.hdr-row { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500;
  text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav a:hover { color: var(--strong); background: rgba(255,255,255,.04); }
.nav a[aria-current="true"] { color: var(--gold-soft); background: rgba(200,163,90,.1); box-shadow: inset 0 0 0 1px rgba(200,163,90,.22); }
.hdr-cta { display: flex; align-items: center; gap: 10px; }
.hdr-cta .btn { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-left: auto; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03); color: var(--text); font: 500 14px var(--brand); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; } .menu-btn[aria-expanded="true"] .bars { display: none; }

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .hdr-cta { display: none; }
  .nav { position: fixed; left: 0; right: 0; top: var(--hdr-h); margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: #070b0a; border-bottom: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
    max-height: calc(100vh - var(--hdr-h)); max-height: calc(100dvh - var(--hdr-h)); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: flex; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 100vmax rgba(4,7,6,.6); }
  .nav a { height: 48px; padding: 0 14px; font-size: 16px; }
  .nav .nav-extra { display: flex; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav .nav-extra .btn { flex: 1; }
}
@media (min-width: 1021px) { .nav .nav-extra { display: none; } }

/* ---------- Sektioner ---------- */
main { display: block; }
.section { padding: 112px 0 0; }
.section:last-of-type { padding-bottom: 40px; }
.sec-head { max-width: 680px; margin-bottom: 40px; }
h1, h2, h3, h4 { color: var(--strong); margin: 0; text-wrap: balance; }
h2 { font: 600 clamp(28px, 3.4vw, 38px)/1.15 var(--brand); letter-spacing: -.028em; margin-bottom: 14px; }
h3 { font: 600 19px/1.3 var(--brand); letter-spacing: -.015em; }
h4 { font: 600 16px/1.35 var(--brand); letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 17.5px; line-height: 1.6; max-width: 62ch; margin: 0; text-wrap: pretty; }

/* ---------- Kort (panelens) ---------- */
.card { position: relative; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--edge), 0 1px 0 rgba(0,0,0,.6), 0 20px 40px -28px rgba(0,0,0,.7); padding: 32px 36px; }
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(95,220,165,.45) 25%, rgba(200,163,90,.3) 50%, rgba(95,220,165,.45) 75%, transparent); }
.card.glow { background: radial-gradient(70% 55% at 0% 0%, rgba(200,163,90,.14), transparent 70%), radial-gradient(40% 40% at 100% 0%, rgba(200,163,90,.05), transparent 70%), var(--card-bg); }
.card-title { font: 600 18px/1.3 var(--brand); letter-spacing: -.01em; color: var(--strong); margin: 0; }
.card-sub { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }

/* Nyckeltal: huvudsiffran i guld, övriga med hårlinjer emellan */
.k { color: var(--dim); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.big { font-size: 56px; font-weight: 500; line-height: 1.02; letter-spacing: -.035em; color: var(--gold); font-variant-numeric: tabular-nums; margin-top: 6px; }
.big .u, .v .u { font-size: .42em; color: var(--dim); font-weight: 500; letter-spacing: 0; margin-left: .2em; }
.v { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--strong); font-variant-numeric: tabular-nums; margin-top: 3px; }
.v .u { font-size: .6em; color: var(--muted); }
.v.pos, .v .pos { color: var(--pos); } .v.neg { color: var(--neg); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 22px 0 6px; }
.tile { padding: 0 20px; border-left: 1px solid var(--line); min-width: 0; }
.tile:first-child { padding-left: 0; border-left: 0; }
.tile .sub { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: center; }
.hero h1 { font: 600 clamp(36px, 4.6vw, 56px)/1.06 var(--brand); letter-spacing: -.04em; margin-bottom: 22px; }
.hero h1 span { display: block; }
.hero .lead { font-size: 18px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 0; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.facts li { padding: 0 16px; border-left: 1px solid var(--line-strong); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { color: var(--text); font-weight: 600; }
.hero-card { margin: 0; padding: 28px 30px 22px; }
.hero-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero-card .period { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hero-card .hero-k { margin-top: 18px; }
.hero-card .big { margin-top: 2px; }
.hero-card .k { color: var(--muted); }
.hero-legend { margin: 0 0 4px; font-size: 13px; }
.hero-legend .it { gap: 8px; }
#hero-chart { min-height: 176px; }
.hero-card .row2 { display: flex; gap: 28px; margin: 12px 0 14px; flex-wrap: wrap; }
.hero-card .row2 > div { min-width: 0; }
.hero-card .row2 > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.hero-note { margin: 12px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.hero-note a { color: var(--muted); }

/* ---------- Så funkar det ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow > li { position: relative; padding: 28px 28px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.flow .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold-soft); font-size: 14px; font-weight: 600; margin-bottom: 18px; background: var(--gold-tint); }
.flow h3 { margin-bottom: 8px; }
.flow p { color: var(--muted); font-size: 15px; margin: 0; }
.flow p + p { margin-top: 10px; }
.flow .where { display: block; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--dim); }
/* Pilen mellan korten: en tunn linje som visar att stegen hänger ihop */
.flow > li:not(:last-child)::after { content: ""; position: absolute; top: 43px; right: -21px; width: 22px; height: 2px; z-index: 1;
  background: rgba(200,163,90,.45); }
/* Bolagen, grupperade per oddsplattform som i panelen */
.bolag { margin-top: 20px; }
.bolag h3 { margin-bottom: 18px; }
.bgroups { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .8fr) minmax(0, 1.6fr); gap: 22px 36px; }
.pc-kambi { --pc: var(--kambi); } .pc-bet365 { --pc: var(--bet365); } .pc-betsson { --pc: var(--betsson); }
.chips li.ss { --bedge: var(--svenskaspel); }
.inactive { color: var(--dim); font-size: 13px; margin: 10px 0 0; }
.bghead { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.bghead::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--pc) 70%, var(--muted)); }
.bghead span { color: var(--dim); font-weight: 500; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { position: relative; padding: 5px 12px 5px 14px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid var(--line);
  font-size: 14px; color: var(--strong); line-height: 1.4; }
.chips li::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: var(--bedge, var(--pc)); opacity: .85; }
.note { color: var(--dim); font-size: 13.5px; margin: 16px 0 0; line-height: 1.55; }

/* ---------- Resultat ---------- */
.tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-deep);
  overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 500 14px var(--brand);
  cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--gold-soft); background: var(--panel3);
  box-shadow: 0 1px 3px rgba(0,0,0,.6), inset 0 0 0 1px rgba(200,163,90,.28), inset 0 1px 0 rgba(255,255,255,.08); }
.tabs button:focus-visible { outline-offset: -2px; }
.sub-lead { margin-top: 12px; font-size: 16px; }
.res-card { margin-top: 18px; }
.res-card .tiles { grid-template-columns: 1.35fr; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 0 24px; }
.tile[hidden] { display: none; }
.res-card .tile:first-child .v { font-size: 56px; color: var(--gold); letter-spacing: -.03em; line-height: 1.1; }
.res-card .tile:first-child .v .u { font-size: .45em; color: var(--dim); }
.res-status { min-height: 1.5em; color: var(--muted); font-size: 14px; }
.res-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.res-foot p { margin: 0; color: var(--dim); font-size: 13.5px; max-width: 70ch; }
.state { padding: 40px 0; text-align: center; color: var(--muted); }
.state .btn { margin-top: 14px; }

/* Grafen: samma som i Discord och panelen. Resultat guld med en yta som tonar mot nollan, CLV profit grön streckad. */
.chart { position: relative; }
#res-chart { min-height: 390px; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 14px; margin-bottom: 8px; min-height: 22px; }
.chart-legend .it { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.chart-legend .it b { color: var(--strong); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-legend .sw { display: inline-block; width: 18px; height: 0; border-top: 2.25px solid var(--gold); }
.chart-legend .sw.dash { border-top: 2px dashed var(--pos); }
.chart-legend .when { margin-left: auto; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.chart svg { display: block; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: crosshair; border-radius: 6px; }
.chart svg:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.chart svg text { font: 11px var(--brand); fill: var(--dim); font-variant-numeric: tabular-nums; }
.chart .line-p { filter: drop-shadow(0 0 6px rgba(200,163,90,.35)); }
.chart .tip rect { fill: #18191d; stroke: rgba(255,255,255,.18); }
.chart .tip text { font-size: 12px; } .chart .tip .d { fill: var(--muted); } .chart .tip .p { fill: var(--gold); font-weight: 600; } .chart .tip .p.n { fill: var(--neg); } .chart .tip .e { fill: var(--pos); font-weight: 600; }
.chart.anim .line-p, .chart.anim .line-e, .chart.anim .area { animation: draw 1.1s cubic-bezier(.3,.6,.2,1) both; }
.chart.anim .end { animation: appear .3s ease-out .9s both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.chart-hint { color: var(--dim); font-size: 12.5px; margin: 6px 0 0; }

details.more { margin-top: 0; }
details.more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; color: var(--text); font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s, margin .15s; }
details.more[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
details.more > summary:hover { color: var(--strong); }
.tbl-wrap { overflow-x: auto; margin-top: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
table.data th { text-align: left; color: var(--dim); font-weight: 500; font-size: 13px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data .r { text-align: right; }
table.data tr:last-child td { border-bottom: 0; }

/* Vad kan man räkna med: en rad per medlem, kronor per 30 dagar */

/* ---------- Tutorial ---------- */
.guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.rail { position: sticky; top: calc(var(--hdr-h) + 20px); padding: 22px 22px 18px; }
.rail .prog-top { margin: 0; color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rail .prog-top b { color: var(--gold-soft); font-weight: 600; }
.rail-toggle { display: none; }
.meter { height: 6px; margin: 12px 0 18px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft)); transition: width .4s cubic-bezier(.3,.7,.2,1); }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail a { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px 4px 6px; margin: 0 -10px 0 -6px;
  border-radius: 8px; color: var(--muted); font-size: 14px; text-decoration: none; line-height: 1.3; }
.rail a:hover { background: rgba(255,255,255,.04); color: var(--strong); }
.rail a .sn.pre { border: 0; }
.rail a .sn.pre::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.rail a .sn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--muted); }
.rail a .cnt { color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rail a.done .sn { background: var(--gold); border-color: var(--gold); color: #1a1306; }
.rail a.done .cnt { color: var(--gold-soft); }
.rail a[aria-current="true"] { color: var(--gold-soft); background: rgba(200,163,90,.08); }
.rail a[aria-current="true"] .sn { border-color: var(--gold-line); color: var(--gold-soft); }
.rail a.done[aria-current="true"] .sn { color: #1a1306; border-color: var(--gold); }
.rail .reset { line-height: 1.4; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.rail .reset button.lnk { font-size: 13px; min-height: 32px; }

.stage { padding: 30px 32px 14px; margin-bottom: 20px; }
.stage-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.stage-head .sn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--gold-line); background: var(--gold-tint); color: var(--gold-soft); font-size: 17px; font-weight: 600; }
.stage.done .stage-head .sn { background: var(--gold); border-color: var(--gold); color: #1a1306; }
.stage-head h3 { font-size: 22px; letter-spacing: -.02em; }
.stage-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.stage-head .meta { display: flex; flex-wrap: wrap; color: var(--dim); font-size: 13px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stage-head .meta > span + span { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.stage.done .stage-count { color: var(--gold-soft); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
/* Kryssrutan ligger bredvid <summary>, inte i den */
.check { display: flex; align-items: center; justify-content: center; align-self: start; width: 44px; height: 48px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28);
  background: transparent; cursor: pointer; position: relative; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.check input:hover { border-color: var(--muted); }
.check input::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 5px; height: 9px; border: solid #1a1306; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(.4); opacity: 0; transition: transform .18s cubic-bezier(.3,.7,.2,1.4), opacity .12s; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.step details > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 13px 0; min-height: 48px; cursor: pointer; list-style: none; }
.step details > summary::-webkit-details-marker { display: none; }
.step .no { color: var(--dim); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 2.2em; }
.step .t { color: var(--strong); font-size: 16.5px; font-weight: 500; letter-spacing: -.01em; }
.step .chev { align-self: center; width: 8px; height: 8px; margin-right: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s; }
.step details[open] > summary .chev { transform: rotate(-135deg) translate(-2px, -2px); }
.step details > summary:hover .t { color: #fff; }
.step.is-done .t { color: var(--muted); }
.step.is-done .no { color: var(--gold-soft); }
.step.is-next > details > summary .t { color: #fff; }
.step.is-next { box-shadow: inset 2px 0 0 var(--gold); }
.step.info .check i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.step .next-row { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.step .next-row .btn { min-height: 42px; }
.skip-note { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; }
.stage-shot { margin: 0 0 18px; }
.prep { padding: 30px 32px; margin-bottom: 20px; }
.prep h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.prep-lead { color: var(--muted); font-size: 15px; max-width: 70ch; }
.prep-list { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px 24px; margin: 18px 0; font-size: 15px; }
.prep-list dt { color: var(--strong); font-weight: 600; }
.prep-list dd { margin: 0; color: var(--text); }
.prep-time { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.box.first { margin-top: 0; margin-bottom: 16px; }
.step .body { padding: 2px 0 26px 0; max-width: 74ch; }
.step .body > p { color: var(--text); }
.step .body ol, .step .body ul { margin: 0 0 16px; padding-left: 1.3em; }
.step .body li { margin-bottom: 6px; padding-left: 4px; }
.step .body li::marker { color: var(--dim); font-variant-numeric: tabular-nums; }
.step .why { color: var(--muted); font-size: 15px; }
.box { margin: 16px 0 0; padding: 14px 16px 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.02); position: relative; font-size: 15px; }
.box::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--muted); }
.box h4 { font-size: 14.5px; margin-bottom: 4px; }
.box p { margin: 0; color: var(--text); } .box p + p { margin-top: 6px; }
.box ul { margin: 6px 0 0 !important; } .box li { margin-bottom: 4px !important; }
.box.ok { border-color: rgba(95,220,165,.22); background: rgba(95,220,165,.045); }
.box.ok::before { background: var(--mint); }
.box.ok h4 { color: var(--mint-soft); }
.box.warn { border-color: var(--gold-line); background: color-mix(in srgb, var(--panel) 92%, var(--gold)); }
.box.warn::before { background: var(--gold); }
.box.warn h4 { color: var(--gold-soft); } .box.warn p { color: var(--warn-text); }
.box.trouble::before { background: var(--muted); }
.box.trouble h4 { color: var(--text); }
.box.trouble dl { margin: 6px 0 0; }
.box.trouble dt { color: var(--strong); font-weight: 500; margin-top: 10px; }
.box.trouble dt:first-child { margin-top: 0; }
.box.trouble dd { margin: 2px 0 0; color: var(--muted); }
.shot { margin: 18px 0 0; }
.shot a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: #0d0f0f; text-decoration: none; }
.shot a:hover { border-color: rgba(255,255,255,.24); }
.shot img { width: 100%; }
.shot figcaption { color: var(--dim); font-size: 13px; margin-top: 8px; line-height: 1.5; }
.shot figcaption b { color: var(--muted); font-weight: 600; }
.shot.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot.pair figcaption { grid-column: 1 / -1; margin-top: 0; }
.shot.narrow { max-width: 460px; }
.shot.mobile { max-width: 280px; }
.shot.mobile a { border-radius: 22px; }
.labels { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 4px 0 16px; font-size: 15px; }
.labels dt { color: var(--strong); font-weight: 600; }
.labels dd { margin: 0; color: var(--muted); }
.legend-list { list-style: none !important; padding: 0 !important; }
.legend-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.legend-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); transform: translateY(-1px); }
.legend-list i.g { background: var(--gold); } .legend-list i.o { background: var(--gold-soft); } .legend-list i.r { background: var(--neg); } .legend-list i.m { background: var(--mint); }
.guide-done { padding: 30px 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 30px; align-items: center; }
.guide-done h3 { margin-bottom: 6px; }
.guide-done p { margin: 0; color: var(--muted); }
.tbl-mini { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 4px 0 16px; }
.tbl-mini th { text-align: left; font-weight: 500; color: var(--dim); font-size: 13px; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }
.tbl-mini td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl-mini tr:last-child td { border-bottom: 0; }

/* ---------- Pris ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.price { display: flex; flex-direction: column; }
.price .amount { font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--strong); margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.price .amount .u { font-size: 17px; color: var(--muted); letter-spacing: 0; margin-left: 6px; font-weight: 500; }
.price .terms { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 6px; height: 11px; border: solid var(--gold-soft); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks.plain li::before { border: 0; width: 7px; height: 7px; top: .6em; left: 4px; border-radius: 50%; background: var(--dim); transform: none; }
.price .btn { align-self: flex-start; margin-top: 4px; }
.price .ticks { margin-bottom: 22px; }
.reassure { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
.proof { color: var(--muted); font-size: 14px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.proof b { font-weight: 600; }
.after-h { margin-bottom: 18px; }
.after { counter-reset: a; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.after li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 15px; color: var(--muted); }
.after li b { display: block; color: var(--strong); font-weight: 600; }
.after li::before { counter-increment: a; content: counter(a); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 600; }
.needs { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.needs h3 { font-size: 16px; margin-bottom: 12px; }

/* ---------- Risker ---------- */
.risks { padding: 6px 40px 10px; }
.risk { display: grid; grid-template-columns: 220px minmax(0, 72ch); gap: 8px 40px; padding: 24px 0 22px; border-top: 1px solid var(--line); }
.risk:first-child { border-top: 0; }
.risks h3 { margin-bottom: 4px; }
.risks p { color: var(--muted); font-size: 15.5px; }
.risks p:last-child { margin-bottom: 0; }
.disclaimer { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--gold-line); color: var(--warn-text); font-size: 15px;
  background: color-mix(in srgb, var(--panel) 92%, var(--gold)); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; min-height: 56px; cursor: pointer; list-style: none;
  color: var(--strong); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: #fff; }
.faq .a { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }
.faq .a p:last-child { margin-bottom: 0; }
.closing { margin-top: 56px; padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; }
.closing h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 6px; }
.closing p { margin: 0; color: var(--muted); }
.closing-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sidfot ---------- */
.foot { margin-top: 88px; position: relative; padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot .logo { font-size: 24px; margin-bottom: 12px; }
.foot p { margin: 0; max-width: 34ch; }
.foot-title { color: var(--strong); font-weight: 600; font-size: 14px; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--strong); }
.legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.legal p { max-width: none; }
.age { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 12.5px; }

/* ---------- Responsivt ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 40px; }
  .guide { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { max-width: none; }
  .flow { gap: 14px; }
  .flow > li { padding: 22px 20px; }
  .price-grid { grid-template-columns: 1fr; }
  .bgroups { grid-template-columns: 1fr 1fr; }
  .bgroups > .pc-kambi { grid-column: 1 / -1; }
  .risk { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  /* Steg och punkter hamnar under den klistrade raden med stegen, inte bakom den */
  .guide .stage, .guide .step, .guide .prep { scroll-margin-top: 76px; }
  /* Nyckeltalen: resultatet på en egen rad, resten i rader om två */
  .res-card .tiles { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .res-card .tile { padding: 0 0 0 16px; border-left: 1px solid var(--line); }
  .res-card .tile:first-child { grid-column: 1 / -1; padding: 0 0 14px; border-left: 0; border-bottom: 1px solid var(--line); }
  .res-card .tile:nth-child(2) { padding-left: 0; border-left: 0; }
  .res-card .tile.l { padding-left: 0; border-left: 0; }
  /* Under 960 px blir panelen en smal rad som följer med under sidhuvudet. Ett tryck fäller ut delarna. */
  .rail { position: sticky; top: var(--hdr-h); z-index: 20; padding: 10px 16px 12px; border-radius: 0 0 12px 12px; margin: 0 -8px;
    background: linear-gradient(180deg, rgba(14,20,18,.98), rgba(12,17,15,.98)); }
  .rail-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0;
    border: 0; background: none; color: var(--text); font: 500 14.5px/1.3 var(--brand); text-align: left; cursor: pointer; }
  .rail-toggle .rt-part { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--strong); }
  .rail-toggle .rt-count { color: var(--gold-soft); font-variant-numeric: tabular-nums; font-size: 13.5px; }
  .rail-toggle .chev { width: 8px; height: 8px; margin: -4px 4px 0; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .18s; }
  .rail-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 4px; }
  .rail .prog-top { display: none; }
  .rail .meter { margin: 6px 0 0; height: 4px; }
  .rail ol, .rail .reset { display: none; }
  .rail.open ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin-top: 12px; max-height: 60vh; overflow-y: auto; }
  .rail.open .reset { display: flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 821px) and (max-width: 960px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; }
  .flow > li:not(:last-child)::after { top: auto; bottom: -15px; left: 34px; right: auto; width: 2px; height: 16px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .section { padding-top: 80px; }
  .sec-head { margin-bottom: 28px; }
  .hero { padding-top: 40px; }
  .hero .lead { font-size: 17px; }
  .card { padding: 24px 20px; }
  .card::before { left: 16px; right: 16px; }
  .hero-card { padding: 22px 20px 18px; }
  .big { font-size: 44px; }
  .flow > li { padding: 22px 20px; }
  .stage { padding: 22px 18px 6px; }
  .stage-head h3 { font-size: 19px; }
  .stage-head .sn { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
  .step { grid-template-columns: 38px minmax(0, 1fr); column-gap: 4px; }
  .check { justify-content: flex-start; padding-top: 12px; }
  .step .body { padding-bottom: 22px; }
  .shot.pair { grid-template-columns: 1fr; }
  .rail.open ol { grid-template-columns: 1fr; }
  .rail { margin: 0 -4px; }
  .prep { padding: 24px 20px; }
  .prep-list { grid-template-columns: 1fr; gap: 2px; }
  .prep-list dd { margin-bottom: 10px; }
  .bgroups { grid-template-columns: 1fr; }
  .risks { padding: 4px 20px 8px; }
  .closing { padding: 26px 20px; }
  .foot ul a { min-height: 44px; }
  #hero-chart { min-height: 170px; }
  #res-chart { min-height: 326px; }
  .res-card .tile:first-child .v { font-size: 40px; }
  .chart-legend .when { order: -1; flex-basis: 100%; margin-left: 0; }
  .tabs { width: 100%; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); }
  .tabs button { height: 44px; padding: 0 4px; }
  .tabs .pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .guide-done { grid-template-columns: 1fr; padding: 24px 20px; }
  .step .body { margin-left: -42px; }
  .step.is-next { box-shadow: inset 2px 0 0 var(--gold); }
  .faq summary { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .labels { grid-template-columns: 1fr; gap: 0; }
  .labels dd { margin-bottom: 8px; }
  .hero-card .row2 > div + div { padding-left: 20px; }
  .hero-card .row2 { gap: 20px; }
}
@media (max-width: 520px) {
  .facts { gap: 6px 20px; }
  .facts li, .facts li:first-child { padding: 0; border: 0; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 34px; }
  .tile { padding: 0 12px; }
  .res-card .tile .v { font-size: 19px; }
  .res-card .tile:first-child .v { font-size: 34px; }
  .tbl-mini { font-size: 13.5px; }
  .tbl-mini td, .tbl-mini th { padding-right: 8px; }
  .tbl-mini td { hyphens: auto; overflow-wrap: anywhere; }
  .big { font-size: 40px; }
  .btn.lg { padding: 0 20px; }
}

.chart.no-legend .chart-legend { display: none; }
.chart svg:focus:not(:focus-visible) { outline: none; }
@media (max-width: 520px) { table.data th:nth-child(2), table.data td:nth-child(2) { display: none; } }
