/* Peptaro – webbplatsens stil. Ljus som standard, mörk när systemet är mörkt. Inga typsnitt hämtas utifrån. */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF; --bg-soft: #F5F6FA; --surface: #FFFFFF; --border: #E3E6EF; --text: #141830; --muted: #5B6178;
  --accent: #4A55C9; --accent-2: #7C86F2; --accent-soft: rgba(74, 85, 201, .08); --ink: #141830; --on-ink: #FFFFFF;
  --hero: radial-gradient(1100px 520px at 75% -10%, rgba(124, 134, 242, .22), transparent 60%), radial-gradient(800px 420px at 0% 0%, rgba(31, 143, 138, .10), transparent 60%);
  --shadow: 0 30px 70px rgba(20, 24, 48, .18), 0 8px 20px rgba(20, 24, 48, .08);
  --warn: #B26B00; --ok: #1F8F55;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D17; --bg-soft: #11142A; --surface: #151935; --border: #262B4A; --text: #F4F5FA; --muted: #A3A9C2;
    --accent: #8D96FF; --accent-2: #B3B9FF; --accent-soft: rgba(141, 150, 255, .12); --ink: #F4F5FA; --on-ink: #0B0D17;
    --hero: radial-gradient(1100px 520px at 75% -10%, rgba(124, 134, 242, .28), transparent 60%), radial-gradient(800px 420px at 0% 0%, rgba(31, 143, 138, .14), transparent 60%);
    --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Sidhuvud */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: 24px; flex: 1; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.lang { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.pill small { display: block; font-size: 10px; font-weight: 600; opacity: .75; line-height: 1; }
.pill span { line-height: 1.15; }
@media (max-width: 760px) { .top nav { display: none; } .top .wrap { justify-content: space-between; } }

/* Hjälte */
.hero { background: var(--hero); padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
h1 .accent, h2 .accent { display: block; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.facts { display: flex; gap: 36px; margin-top: 32px; }
.facts div { display: flex; flex-direction: column; }
.facts b { font-size: 34px; letter-spacing: -.02em; line-height: 1; }
.facts span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.hero-phones { position: relative; display: flex; justify-content: center; min-height: 620px; }
.hero-phones .back { position: absolute; transform: translate(-36%, 6%) rotate(-6deg) scale(.9); opacity: .95; }
.hero-phones .front { position: relative; transform: translateX(22%); }
@media (max-width: 900px) { .hero-phones { min-height: 0; } .hero-phones .back { display: none; } .hero-phones .front { transform: none; } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Löpande band */
.band { border-block: 1px solid var(--border); padding: 22px 0; overflow: hidden; background: var(--bg); }
.band p { text-align: center; margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.track { display: flex; gap: 10px; width: max-content; animation: slide 40s linear infinite; }
.track span { border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); white-space: nowrap; background: var(--surface); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 24px; } }

/* Funktionsavsnitt */
.feature { padding: 88px 0; border-bottom: 1px solid var(--border); }
.feature:nth-of-type(even) { background: var(--bg-soft); }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .text { order: 2; }
.feature h2, .section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; }
.feature .text p { color: var(--muted); font-size: 18px; max-width: 30em; }
.bullets { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.bullets li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.feature .art { display: flex; justify-content: center; }
@media (max-width: 860px) { .feature .wrap { grid-template-columns: 1fr; } .feature.flip .text { order: 0; } }

/* Integritet */
.privacy { padding: 96px 0; background: #11142A; color: #F4F5FA; text-align: center; }
.privacy h2 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; margin: 0 0 16px; }
.privacy p { color: #A3A9C2; font-size: 19px; max-width: 34em; margin: 0 auto 32px; }
.privacy ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.privacy li { border: 1px solid #2E3458; border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* Sektioner, kort och artiklar */
.section { padding: 88px 0; }
.section .lead { margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
.card h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card small { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: auto; padding-top: 8px; }
.teaser { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid var(--border); border-radius: 28px; padding: 40px; }
.teaser h2 { margin-top: 0; }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; } }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border-radius: 14px; padding: 14px 22px; font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) { .button { color: #0B0D17; } }
.faq { display: grid; gap: 12px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Artikel- och textsidor */
.page { padding: 48px 0 88px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.page h1 { font-size: clamp(34px, 5vw, 54px); }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; letter-spacing: -.02em; margin: 44px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 18px; }
.prose li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.updated { margin-top: 40px; font-size: 15px; color: var(--muted); }

/* Kalkylator */
.calc { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--surface); margin: 32px 0; box-shadow: 0 1px 0 var(--border); max-width: 980px; }
.calc form { padding: 28px; display: grid; gap: 18px; border-right: 1px solid var(--border); }
.calc label.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.row { display: flex; gap: 8px; }
.calc input[type="text"] { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.calc input[type="text"]:focus, .calc select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc select { font: inherit; font-weight: 600; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.unit { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; width: fit-content; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (prefers-color-scheme: dark) { .seg input:checked + span { color: #0B0D17; } }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.result { padding: 28px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 18px; }
.result .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.big { font-size: 64px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.big small { font-size: 20px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.syringe { width: 100%; height: auto; }
.syringe text { font-size: 9px; fill: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.stats small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats b { font-size: 16px; }
.warning { margin: 0; color: var(--warn); font-weight: 600; }
.note { font-size: 14px; color: var(--muted); max-width: 980px; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } .calc form { border-right: 0; border-bottom: 1px solid var(--border); } }

/* Sidfot och fast rad */
footer { border-top: 1px solid var(--border); padding: 40px 0 120px; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; gap: 12px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }
.disclaimer { max-width: 50em; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.sticky .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.sticky b { font-size: 15px; }
.sticky .button { padding: 10px 18px; }

/* Telefonvyer */
.phone { margin: 0; width: 290px; aspect-ratio: 290 / 600; border-radius: 46px; background: #141830; padding: 9px; box-shadow: var(--shadow); flex: 0 0 auto; }
.m-screen { position: relative; height: 100%; border-radius: 38px; background: #F5F6FA; overflow: hidden; padding: 0 14px; color: #141830; font-size: 11px; line-height: 1.3; }
.m-screen.sheet { background: #F5F6FA; }
.m-status { display: flex; justify-content: space-between; align-items: center; height: 40px; font-weight: 700; font-size: 11px; padding: 0 10px; }
.m-island { width: 78px; height: 22px; border-radius: 12px; background: #141830; }
.m-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; }
.m-head b { font-size: 21px; letter-spacing: -.02em; }
.m-head.small b { font-size: 17px; }
.m-plus, .m-share { width: 26px; height: 26px; border-radius: 50%; background: #4A55C9; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.m-x { width: 24px; height: 24px; border-radius: 50%; background: #ECEEF5; display: grid; place-items: center; }
.m-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #DFE2EC; border-radius: 12px; padding: 9px 10px; margin-bottom: 7px; }
.m-row.done .m-time { color: #5B6178; }
.m-time { min-width: 34px; }
.m-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.m-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.m-text small { color: #5B6178; }
.m-check { color: #1F8F55; font-size: 18px; font-weight: 800; }
.m-btn { width: 24px; height: 24px; border-radius: 50%; background: #ECEEF5; display: grid; place-items: center; font-size: 10px; }
.m-btn.on { background: #4A55C9; color: #fff; font-weight: 800; }
.m-section { text-transform: uppercase; letter-spacing: .06em; color: #5B6178; font-size: 9px; margin: 14px 0 6px; }
.m-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 4px 18px; background: rgba(255, 255, 255, .92); border-top: 1px solid #DFE2EC; }
.m-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8px; color: #8A90A6; }
.m-tabs i { width: 16px; height: 16px; border-radius: 5px; background: #D5D9E6; }
.m-tabs .on { color: #4A55C9; }
.m-tabs .on i { background: #4A55C9; }
.m-label { text-transform: uppercase; letter-spacing: .06em; color: #5B6178; font-size: 8.5px; margin: 10px 0 5px; }
.m-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.m-chips span { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #DFE2EC; background: #fff; border-radius: 999px; padding: 4px 9px; font-weight: 600; font-size: 10px; }
.m-chips span.on { background: #4A55C9; border-color: #4A55C9; color: #fff; }
.m-chips i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); border: 1px solid #fff; }
.m-amount { background: #fff; border: 1px solid #DFE2EC; border-radius: 10px; padding: 6px 10px; font-size: 22px; font-weight: 800; margin-bottom: 5px; }
.m-figs { display: flex; justify-content: center; gap: 10px; }
.m-fig { display: flex; flex-direction: column; align-items: center; font-size: 8.5px; color: #5B6178; }
.m-fig svg { width: 96px; height: auto; }
.m-save { position: absolute; left: 14px; right: 14px; bottom: 18px; background: #4A55C9; color: #fff; border-radius: 12px; text-align: center; padding: 10px; font-weight: 700; font-size: 12px; }
.m-card { background: #fff; border: 1px solid #DFE2EC; border-radius: 16px; padding: 11px; margin-bottom: 9px; }
.m-card-top { display: flex; align-items: center; gap: 9px; }
.m-card-top b { font-size: 13px; }
.m-left { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 6px; }
.m-left b { font-size: 15px; }
.m-left span { color: #5B6178; font-weight: 700; }
.m-card small { color: #5B6178; font-size: 9px; }
.warn { color: #B26B00 !important; }
.m-bar { height: 5px; border-radius: 3px; background: rgba(20, 24, 48, .08); overflow: hidden; margin-bottom: 6px; }
.m-bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 3px; }
.m-month { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.m-week, .m-cal { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.m-week span { color: #5B6178; font-size: 8px; }
.m-cal span { display: flex; flex-direction: column; align-items: center; padding: 2px 0; }
.m-cal b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-weight: 500; font-size: 10px; }
.m-cal .sel b { background: #4A55C9; color: #fff; font-weight: 700; }
.m-cal .future b { color: #9AA0B8; }
.m-cal em { display: flex; gap: 1.5px; height: 4px; }
.m-cal em i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--c); }
.m-cal em i.miss { background: transparent; border: 1px solid #B26B00; }
.m-stats { display: flex; gap: 24px; margin: 8px 0; }
.m-stats div { display: flex; flex-direction: column; }
.m-stats b { font-size: 20px; }
.m-stats small { color: #5B6178; font-size: 9px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section-title { margin-top: 72px; }
