/* Kokbo – hemsida */
:root {
  --brand: #b4432a;
  --brand-dark: #8f3420;
  --brand-soft: #f6e4de;
  --bg: #f6f3ef;
  --card: #ffffff;
  --ink: #23201d;
  --muted: #6b645d;
  --line: #e4ddd5;
  --serif: Georgia, "Cambria", "Noto Serif", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(60, 30, 15, .16), 0 3px 10px rgba(60, 30, 15, .08);
}
* { 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; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5.4vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------------------------------------------------------------- sidhuvud */
.top { position: sticky; top: 0; z-index: 5; background: rgba(246, 243, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 24px var(--serif); }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; }
.top nav a:hover { color: var(--brand); }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px; font: 600 16px var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: background .15s, transform .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.btn[aria-disabled="true"] { opacity: .75; pointer-events: none; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero .note { font-size: 14px; color: var(--muted); }
.stage { position: relative; margin: 54px auto 0; max-width: 1080px; padding-bottom: 40px; }
.stage .desktop { border-radius: 12px; box-shadow: var(--shadow); border: 1px solid rgba(0, 0, 0, .08); }
.stage .phone { position: absolute; right: -10px; bottom: 0; width: 23%; }
.phone { border: 9px solid #1d1b19; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: #1d1b19; }
.phone img { border-radius: 25px; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 26px 0 8px; color: var(--muted); font-size: 15.5px; }
.pills span { display: inline-flex; align-items: center; gap: 8px; }
.pills svg { width: 18px; height: 18px; color: var(--brand); }

/* ---------------------------------------------------------------- funktioner */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head p { color: var(--muted); font-size: 19px; }
.eyebrow { display: inline-block; font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; padding: 34px 0; }
.feature.flip { grid-template-columns: 1.35fr 1fr; }
.feature.flip .text { order: 2; }
.feature .shot { border-radius: 12px; box-shadow: var(--shadow); border: 1px solid rgba(0, 0, 0, .08); }
.feature ul { padding: 0; margin: 14px 0 0; list-style: none; }
.feature li { position: relative; padding-left: 28px; margin: 0 0 9px; }
.feature li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pages img { border-radius: 4px; box-shadow: 0 10px 28px rgba(60, 30, 15, .18); }
.devices { display: grid; grid-template-columns: 2.6fr 1fr 1fr; gap: 22px; align-items: center; }
.devices .tablet { border: 10px solid #1d1b19; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }

.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.band .card { background: var(--bg); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------------------------------------------------------------- integritet */
.privacy-box { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 10px; }
.privacy-box .card h3 { display: flex; align-items: center; gap: 10px; }
.privacy-box code { background: var(--brand-soft); color: var(--brand-dark); padding: 1px 6px; border-radius: 5px; font-size: 14px; }

/* ---------------------------------------------------------------- nedladdning */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.downloads .card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.downloads .card .ic { margin: 0 auto 8px; width: 56px; height: 56px; }
.downloads .card .ic svg { width: 30px; height: 30px; }
.downloads .card .btn { margin-top: 12px; }
.downloads small { color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- frågor */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* ---------------------------------------------------------------- sidfot */
footer { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------------------------------------------------------------- textsidor (integritet, villkor) */
.doc { padding: 56px 0 70px; }
.doc h1 { font-size: clamp(34px, 4.5vw, 46px); }
.doc h2 { font-size: 26px; margin-top: 1.6em; }
.doc h3 { font-size: 19px; margin-top: 1.3em; font-family: var(--sans); }
.doc .updated { color: var(--muted); margin-bottom: 2em; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 18px 22px; margin: 0 0 2em; }
.doc table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--card); }

/* ---------------------------------------------------------------- mindre skärmar */
@media (max-width: 900px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip .text { order: 0; }
  .grid3, .downloads, .privacy-box { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr 1fr; }
  .devices .tablet { grid-column: 1 / -1; }
  .stage .phone { width: 30%; right: 0; }
  section { padding: 50px 0; }
}
@media (max-width: 520px) {
  .pages { grid-template-columns: 1fr 1fr; }
  .pages img:last-child { display: none; }
  footer nav { margin-left: 0; }
}
