:root {
  --paper: #FDF3E1; --paper-2: #FBEBD0; --desk: #EFE0C8; --card: #FFFBF3;
  --ink: #3B291F; --ink-soft: #6E5A4C; --line: rgba(59, 41, 31, .14);
  --butter: #FFD966; --mint: #A8E0C2; --sky: #A8D6F5; --rose: #FFB8C7; --peach: #FFCCA3;
  --red: #E5534B; --blue: #1E63D6; --green: #2E9940; --teal: #26B8C9;
  --radius: 28px 22px 30px 24px / 24px 30px 22px 28px;
  --shadow: 5px 6px 0 rgba(59, 41, 31, .10);
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 17px/1.65 var(--font);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(59,41,31,.05) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #164ba3; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 750; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 750; color: var(--red); margin: 0 0 .7em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.squiggle { display: block; width: min(220px, 70%); height: 14px; margin-top: .25em; }
.hl { position: relative; display: inline-block; }
.hl .squiggle { position: absolute; left: 0; right: 0; bottom: -.28em; width: 100%; margin: 0; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 15px; height: 15px; flex: none; vertical-align: -2px; }

/* Sidhuvud */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(253, 243, 225, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.brand img { border-radius: 11px; box-shadow: 0 2px 6px rgba(59,41,31,.2); }
.nav { display: flex; gap: 4px; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: .95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: rgba(255, 217, 102, .45); }
.nav a[aria-current="page"] { background: var(--butter); }

/* Språkväljare (fungerar utan skript) */
.lang { position: relative; flex: none; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 750; font-size: .88rem; letter-spacing: .04em; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 18px; height: 18px; }
.lang summary:hover, .lang[open] summary { background: var(--butter); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 170px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
.lang li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 650; }
.lang li a:hover { background: rgba(255, 217, 102, .45); }
.lang li a[aria-current="page"] { background: var(--butter); }

/* Knappar */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font: 750 1rem var(--font); text-decoration: none; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 18px 14px 20px 15px / 15px 20px 14px 18px; box-shadow: 4px 5px 0 rgba(59,41,31,.14); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-1px, -2px); box-shadow: 6px 8px 0 rgba(59,41,31,.14); color: var(--ink); }
.btn-primary { background: var(--butter); }
.btn-ghost { background: var(--card); }
.btn-soon { cursor: default; opacity: .9; }
.btn-soon:hover { transform: none; box-shadow: 4px 5px 0 rgba(59,41,31,.14); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; font-weight: 650; font-size: .92rem; }
.trust .icon { color: var(--green); width: 19px; height: 19px; }
.hero-media { position: relative; min-height: 560px; }
.hero-media .phone { position: absolute; width: min(270px, 46%); }
.hero-back { left: 4%; top: 30px; transform: rotate(-7deg); }
.hero-front { right: 6%; top: 0; transform: rotate(5deg); z-index: 2; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; }
.blob-1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(168,214,245,.9), rgba(168,214,245,0) 70%); right: -40px; bottom: -20px; }
.blob-2 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,217,102,.8), rgba(255,217,102,0) 70%); left: -30px; top: -20px; }

/* Telefonram */
.phone { margin: 0; background: #1E1A17; padding: 9px; border-radius: 46px; box-shadow: 0 0 0 2.5px var(--ink), 0 28px 50px -18px rgba(59,41,31,.55); position: relative; z-index: 1; }
.phone img { display: block; width: 100%; border-radius: 37px; aspect-ratio: 660 / 1434; object-fit: cover; background: var(--paper); }

/* Siffror */
.stats-band { background: var(--ink); color: var(--paper); padding: 26px 0; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; padding: 0; margin-block: 0; text-align: center; }
.stats li { flex: 1 1 140px; max-width: 220px; }
.stats strong { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; color: var(--butter); }
.stats span { font-size: .95rem; opacity: .9; }

/* Sektioner */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head .squiggle { margin-inline: auto; }
.section-head .lead { margin-inline: auto; }

/* Funktioner */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px); margin-bottom: 32px; border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-flip .feature-text { order: 2; }
.feature-butter { background: #FFF1C4; }
.feature-sky { background: #DDEFFC; }
.feature-sky2 { background: linear-gradient(160deg, #DFF3FB, #BFE2F6); }
.feature-peach { background: #FFE5D1; }
.feature-rose { background: #FFE1E8; }
.feature-lavender { background: #ECE7FB; }
.feature-text p { margin: 0 0 1em; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 32px; font-weight: 650; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; border: 2px solid var(--ink); }
.feature-media { display: flex; justify-content: center; gap: 22px; }
.feature-media .phone { width: min(270px, 70%); }
.feature-media.two .phone { width: min(240px, 47%); }
.tilt-a { transform: rotate(-3deg); }
.tilt-b { transform: rotate(3deg) translateY(28px); }

/* Föräldrar */
.section-parents { background: linear-gradient(180deg, rgba(168,224,194,.35), rgba(168,224,194,0)); }
.cards { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.card h3 { font-size: 1.18rem; margin-top: 14px; }
.card p { margin: 0; color: var(--ink-soft); }
.card-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--mint); border: 2px solid var(--ink); color: var(--ink); }
.card:nth-child(2) .card-icon { background: var(--butter); }
.card:nth-child(3) .card-icon { background: var(--sky); }
.card:nth-child(4) .card-icon { background: var(--rose); }
.card:nth-child(5) .card-icon { background: var(--peach); }

/* Vanliga frågor */
.faq { display: grid; gap: 14px; }
.faq-item { background: var(--card); border: 2.5px solid var(--ink); border-radius: 20px 16px 22px 17px / 17px 22px 16px 20px; box-shadow: 4px 5px 0 rgba(59,41,31,.08); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 750; font-size: 1.08rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--butter); border: 2px solid var(--ink); font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item > div { padding: 0 22px 18px; color: var(--ink-soft); }
.faq-item p { margin: 0 0 .7em; }

/* Uppmaning */
.cta { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: clamp(26px, 4vw, 40px); background: var(--butter); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.cta img { border-radius: 22px; box-shadow: 0 4px 10px rgba(59,41,31,.25); }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.cta p { margin: .3em 0 0; }
.cta .btn { background: var(--card); }

/* Policysidor */
.doc-hero { padding: clamp(40px, 6vw, 70px) 0 32px; }
.doc-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.updated { color: var(--ink-soft); font-weight: 650; }
.publisher { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 22px 0 0; padding: 18px 22px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 20px 16px 22px 17px / 17px 22px 16px 20px; box-shadow: 4px 5px 0 rgba(59,41,31,.08); width: fit-content; max-width: 100%; }
.publisher dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.publisher dd { margin: 0; font-weight: 750; }
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding-bottom: 90px; }
.doc-layout.single { grid-template-columns: 1fr; }
.toc { position: sticky; top: 92px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 18px 14px; font-size: .93rem; }
.toc-title { margin: 0 0 8px; font-weight: 800; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.doc { max-width: 720px; min-width: 0; }
.doc-section { padding-top: 10px; margin-bottom: 26px; scroll-margin-top: 90px; }
.doc-section h2 { font-size: 1.55rem; padding-bottom: 8px; border-bottom: 2px dashed var(--line); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 8px 0; }
.confirm { display: block; background: #FFF4B8; border: 2px dashed #B8860B; border-radius: 12px; padding: 10px 14px; margin: 10px 0; list-style: none; }
.doc ul .confirm { margin-left: -1.2em; }
.confirm-label { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #7A5600; margin-bottom: 4px; }
.doc-actions { margin-top: 30px; }

/* Sidfot */
.site-footer { background: var(--ink); color: var(--paper); padding: 54px 0 28px; }
.site-footer .muted { color: rgba(253,243,225,.72); }
.site-footer a { color: var(--paper); }
.brand-footer { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--butter); margin: 6px 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(253,243,225,.18); margin-top: 36px; padding-top: 20px; font-size: .9rem; }

/* Mindre skärmar */
@media (max-width: 960px) {
  /* Sidhuvudet på två rader: logga och språkväljare överst, menyn under (får plats på alla språk) */
  .site-header { position: static; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 10px 0 8px; }
  .header-inner .brand { grid-area: 1 / 1; justify-self: start; }
  .lang { grid-area: 1 / 2; justify-self: end; }
  .nav { grid-area: 2 / 1 / 3 / -1; flex-wrap: wrap; overflow: visible; gap: 2px 4px; margin-inline: -8px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 0; height: clamp(420px, 95vw, 600px); max-width: 560px; width: 100%; margin: 10px auto 0; }
  .feature, .feature-flip { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .nav a { padding: 5px 9px; font-size: .88rem; }
  .doc-hero h1 { hyphens: auto; -webkit-hyphens: auto; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .stats { row-gap: 22px; }
  .stats li { flex-basis: 40%; }
  .cards { grid-template-columns: 1fr; }
  .feature { padding: 24px 20px 30px; }
  .feature-media.two { gap: 12px; }
  .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta .btn { width: 100%; justify-content: center; word-break: break-all; }
  .footer-grid { grid-template-columns: 1fr; }
  .publisher { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
