/* klirrio.se – Klirrios grafiska profil: midnattsblå text, klarteal för handlingar, mint och sand som accenter.
   Inter (SIL Open Font License, assets/fonts/LICENSE-OFL-Inter.txt) för all text. Inga externa resurser, inga kakor. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #0b1f3b;
  --navy-2: #13294a;
  --teal: #00c2a1;
  --teal-hover: #00ad8f;
  --teal-ink: #007a66;
  --mint: #e8f7f3;
  --mint-line: #bfe9de;
  --sand: #f4d9a8;
  --sand-soft: #fbf1df;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --ink: #0b1f3b;
  --ink-2: #2b3b55;
  --muted: #5a6b82;
  --line: #e4e9f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 59, 0.05), 0 8px 24px rgba(11, 31, 59, 0.06);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 760; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 730; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- sidhuvud ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.top .logo img { height: 30px; width: auto; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 520; font-size: 0.95rem; }
.top nav a:hover { color: var(--teal-ink); }
.top nav a[aria-current="page"] { color: var(--teal-ink); }
.top .menu-toggle { display: none; }

/* ---------- knappar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 640; font-size: 0.98rem; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn.primary { background: var(--teal); border-color: var(--teal); }
.btn.primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); color: #fff; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- hjälte ---------- */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--mint) 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero .lead { font-size: 1.22rem; color: var(--ink-2); max-width: 36em; }
.pill { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--mint-line); color: var(--teal-ink); font-weight: 620; font-size: 0.85rem; border-radius: 999px; padding: 5px 14px; margin-bottom: 20px; }
.pill b { background: var(--sand); color: var(--navy); border-radius: 999px; padding: 0 8px; font-size: 0.75rem; letter-spacing: 0.04em; }
.fine { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

/* Illustration av inkorgen: ren HTML, inga skärmdumpar med riktiga data */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.mock-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; font-size: 0.92rem; }
.mock-row .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: var(--teal-ink); display: grid; place-items: center; font-weight: 700; }
.mock-row .amt { font-variant-numeric: tabular-nums; font-weight: 640; }
.mock-row .sub { display: block; color: var(--muted); font-size: 0.8rem; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 650; border-radius: 999px; padding: 2px 9px; background: var(--mint); color: var(--teal-ink); }
.tag.sand { background: var(--sand-soft); color: #8a5a00; }
.mock-ai { margin-top: 14px; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 0.88rem; }
.mock-ai span { color: var(--teal); font-weight: 650; }

/* ---------- sektioner ---------- */
section { padding: 84px 0; }
section[id] { scroll-margin-top: 68px; }
section.alt { background: var(--bg-2); }
section.dark { background: var(--navy); color: #fff; }
section.dark .muted, section.dark p { color: #c8d3e2; }
section.dark a { color: var(--teal); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--teal-ink); margin-bottom: 10px; }
section.dark .eyebrow { color: var(--teal); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--teal-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
section.dark .card { background: var(--navy-2); border-color: #23395c; box-shadow: none; }
.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--navy); font-size: 0.9rem; margin-right: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin: 0 0 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
section.dark .checks li::before { background-color: #1d3a5e; }
.note { background: var(--sand-soft); border: 1px solid #f0d9ad; border-radius: var(--radius); padding: 22px 24px; }
.note h3 { margin-bottom: 8px; }

/* ---------- priser ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); position: relative; }
.plan.popular { border: 2px solid var(--teal); }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--sand); color: var(--navy); font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 0.92rem; min-height: 3em; }
.price { font-size: 2.6rem; font-weight: 780; letter-spacing: -0.03em; margin: 12px 0 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.vat { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.plan .checks { margin: 18px 0 24px; font-size: 0.95rem; flex: 1; }
.plan .founder { display: inline-block; align-self: flex-start; background: var(--sand-soft); color: #8a5a00; border: 1px solid #f0d9ad; border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; font-weight: 640; }
.founder-note { background: var(--sand-soft); border: 1px solid #f0d9ad; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; text-align: center; color: var(--ink-2); }
.plan .btn { width: 100%; }
.extras { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.extras .card { padding: 22px; }
.extras strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }

/* ---------- frågor ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 640; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---------- juridiska sidor ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc h3 { font-size: 1.05rem; margin-top: 1.4em; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.draft { background: var(--sand-soft); border: 1px solid #f0d9ad; border-radius: 12px; padding: 14px 18px; font-size: 0.95rem; margin-bottom: 28px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1em 0; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }

/* ---------- sidfot ---------- */
footer { background: var(--navy); color: #c8d3e2; padding: 56px 0 40px; font-size: 0.92rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer img { height: 28px; width: auto; margin-bottom: 14px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: var(--teal); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 0.95rem; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid #23395c; padding-top: 20px; margin-top: 8px; font-size: 0.85rem; }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .grid3, .plans, .extras { grid-template-columns: minmax(0, 1fr); }
  .plans { gap: 28px; }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .doc { padding: 40px 16px 64px; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 52px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .top .wrap { gap: 12px; }
  .top .menu-toggle { display: inline-flex; margin-left: auto; }
  .top nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .top nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .top nav .btn { margin-top: 12px; }
  .top.open nav { display: flex; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
