/* Self-hosted fonts (no request to Google; GDPR). Latin subsets cover Swedish åäö. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/Inter-Variable.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); }

:root {
  --bg: #f4f1ea;
  --bg-2: #ece8de;
  --surface: #ffffff;
  --ink: #141a17;
  --muted: #5c655f;
  --line: #e0dbcf;
  --brand: #0e4a33;
  --brand-dark: #093524;
  --brand-soft: #dfeee5;
  --accent: #e9a63a;
  --radius: 18px;
  --max: 1100px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--brand); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244,241,234,.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,.06); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 27px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; padding: 15px 26px; border-radius: 999px; border: 0; font-size: 17px; cursor: pointer; line-height: 1.2; transition: background .15s ease, transform .08s ease, box-shadow .15s ease; white-space: nowrap; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 18px rgba(14,74,51,.22); }
.btn:hover { background: var(--brand-dark); box-shadow: 0 8px 24px rgba(14,74,51,.3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { padding: 18px 32px; font-size: 18px; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid #cfc9bb; box-shadow: none; }
.btn-ghost:hover { background: #fff; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(14,74,51,.10), rgba(14,74,51,0)); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand); font-weight: 600; font-size: 13.5px; padding: 7px 13px 7px 10px; border-radius: 99px; margin-bottom: 26px; border: 1px solid var(--line); letter-spacing: .01em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 4px rgba(47,163,107,.18); }
h1 { font-size: clamp(46px, 6.6vw, 80px); line-height: 0.98; margin: 0 0 22px; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 32px; max-width: 29em; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { color: var(--muted); font-size: 14.5px; margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
.cta-note span::before { content: "✓ "; color: #2fa36b; font-weight: 700; }

/* App mock */
.mock-wrap { position: relative; margin-bottom: 36px; }
.mock { background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 30px 70px rgba(20,30,25,.14); overflow: hidden; transform: rotate(-1.2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e3dfd5; display: inline-block; }
.mock-bar i:nth-child(1) { background: #f28b82; } .mock-bar i:nth-child(2) { background: #f6c86a; } .mock-bar i:nth-child(3) { background: #7fd39b; }
.mock-bar span { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock-body { padding: 20px; }
.mock-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mock-title b { font-size: 16px; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.mock-title small { color: var(--muted); font-size: 13px; }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 11px 12px; border: 1px solid #ece9e1; border-radius: 12px; margin-bottom: 8px; font-size: 15px; background: #fff; }
.row .who { font-weight: 600; }
.row .amt { color: var(--muted); font-variant-numeric: tabular-nums; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.tag.run { background: #fdf0d5; color: #8a5a00; }
.tag.run::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #e9a63a; animation: pulse 1.2s infinite; vertical-align: 1px; }
@keyframes pulse { 0%,100% { opacity: .3 } 50% { opacity: 1 } }
.mock-foot { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 600; }
.toast { position: absolute; left: -36px; bottom: -44px; display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; padding: 14px 18px 14px 14px; border-radius: 14px; font-size: 14px; line-height: 1.35; box-shadow: 0 16px 40px rgba(0,0,0,.25); transform: rotate(1deg); }
.toast b { font-weight: 600; }
.toast-ic { width: 30px; height: 30px; border-radius: 50%; background: #2fa36b; display: grid; place-items: center; font-weight: 800; flex: none; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.band { background: var(--surface); }
h2 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.05; margin: 0 0 16px; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0 0 44px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(20,30,25,.06); border: 1px solid rgba(0,0,0,.04); }
.band .card { background: var(--bg); box-shadow: none; border: 1px solid var(--line); }
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.step { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--brand); margin-bottom: 18px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }

/* Portals strip */
.learns { margin: 40px 0 0; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 14px 14px 0; color: var(--ink); font-size: 17px; max-width: 46em; }

/* ---------- Download section ---------- */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl .card .btn { margin-top: 18px; width: 100%; justify-content: center; }
.dl .card.soon { opacity: .8; }
.dl .meta { font-size: 14px; color: var(--muted); margin-top: 6px; }
.help { margin-top: 44px; }
.help h3 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
details { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p, details ol { color: var(--muted); margin: 10px 0 0; }
details ol { padding-left: 22px; }

/* ---------- Offer ---------- */
.offer { background: var(--brand); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; position: relative; overflow: hidden; box-shadow: 0 30px 70px rgba(14,74,51,.25); }
.offer::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(233,166,58,.35), rgba(233,166,58,0)); }
.offer > * { position: relative; }
.offer h2 { color: #fff; }
.offer h2 em { color: #f3cf8a; }
.offer p { color: #cfe4d8; font-size: 18px; }
.offer .btn { background: var(--accent); color: #1d1405; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.offer .btn:hover { background: #f2b24b; }
.offer ul { margin: 20px 0 0; padding: 0; list-style: none; }
.offer li { padding: 9px 0 9px 30px; position: relative; color: #e8f3ed; }
.offer li::before { content: "✓"; position: absolute; left: 0; top: 9px; color: var(--accent); font-weight: 800; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Legal page ---------- */
.legal { max-width: 760px; padding: 64px 24px 90px; }
.legal h1 { font-size: 54px; }
.legal h2 { font-size: 30px; margin-top: 44px; }
.legal p, .legal li { color: #2c3039; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal .meta { color: var(--muted); font-size: 15px; }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; background: var(--ink); color: #f2f2f2; border-radius: 16px; padding: 18px 20px; z-index: 50; box-shadow: 0 10px 40px rgba(0,0,0,.28); font-size: 15px; }
.consent p { margin: 0 0 12px; }
.consent a { color: #a9e2c4; }
.consent .row { display: flex; gap: 10px; padding: 0; border: 0; background: none; margin: 0; }
.consent button { flex: 1; padding: 11px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.consent .yes { background: #fff; color: var(--ink); }
.consent .no { background: transparent; color: #f2f2f2; border: 1px solid #666; }

@media (max-width: 880px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero .wrap, .offer, .grid3, .grid2, .dl { grid-template-columns: 1fr; }
  .offer { padding: 34px 28px; }
  .nav a:not(.btn) { display: none; }
  h1 { font-size: clamp(44px, 12vw, 60px); }
  .lead { font-size: 18px; }
  .btn-lg { width: 100%; justify-content: center; }
  .cta-row .btn-ghost { width: 100%; justify-content: center; }
  .mock { transform: none; }
  .toast { position: static; transform: none; margin-top: 14px; }
}
