/*
  Gemensam stilmall för undersidorna /pris/, /sa-funkar-det/ och /om/. Samma färger, typsnitt, knappar, sidhuvud och
  sidfot som startsidan (site/index.html har sin stil inline, så att första skärmen ritas utan en extra hämtning).
  Ändras en färg eller knapp på startsidan: ändra här också.
*/
/* Sora (OFL, licensen i fonts/Sora-OFL.txt), från vår egen server. Adresserna från roten: filen läses från alla undersidor. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/sora-latin-wght-normal.woff2") format("woff2"); }
:root {
  --bg: #F6F5F2;
  --bg-2: #EFEDE8;
  --card: #FFFFFF;
  --ink: #141414;
  --ink-2: #3D3B38;
  --muted: #6E6A63;
  --line: #E4E1DA;
  --accent: #E8452C;
  --accent-soft: #FDE9E3;
  --ok: #1F9D55;
  --ok-soft: #E3F5EA;
  --radius: 28px;
  --shadow: 0 1px 1px rgba(20,20,20,.04), 0 8px 24px -12px rgba(20,20,20,.18), 0 30px 60px -30px rgba(20,20,20,.18);
  --font: "Sora", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; font-weight: 650; color: var(--ink); text-wrap: balance; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 14px; }
.lead { color: var(--ink-2); font-size: 18px; margin: 0; max-width: 52ch; }
p { margin: 0 0 14px; }
.u { text-decoration: underline; text-decoration-color: #c9c4bb; text-underline-offset: 3px; }
.u:hover { text-decoration-color: var(--ink); }

/* Knappar: samma som startsidan */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.btn-dark { color: #fff; background: linear-gradient(180deg, #3a3a3a 0%, #111 55%, #000 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.3), 0 10px 22px -10px rgba(0,0,0,.6); }
.btn-light { color: var(--ink); background: linear-gradient(180deg, #fff, #f3f2ef); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line), 0 6px 14px -10px rgba(0,0,0,.25); }
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14.5px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sidhuvud */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246,245,242,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.logo svg { width: 30px; height: 30px; display: block; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--ink-2); }
.nav a.link { padding: 12px 0; }
.nav a.link:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }

/* Telefonbredd: länkarna i sidhuvudet ryms inte, så de ligger i en meny som öppnas utan JavaScript (details). */
.navmenu { display: none; position: relative; margin: 0; background: none; box-shadow: none; border-radius: 0; }
.navmenu summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.navmenu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.navmenu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.navpanel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 210px; display: grid; padding: 6px; background: #fff; border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.navpanel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px; color: var(--ink); }
.navpanel a:hover, .navpanel a[aria-current="page"] { background: var(--bg); }
.navpanel a[aria-current="page"] { font-weight: 600; }

/* Brödsmulor och sidans topp */
.crumbs { margin: -12px 0 10px; padding: 0; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b9b4ac; }
.crumbs a { display: inline-block; padding: 12px 0; text-decoration: underline; text-decoration-color: #c9c4bb; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.page-head { position: relative; padding: 48px 0 56px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -30% -10% auto 45%; height: 140%; background: radial-gradient(closest-side, rgba(232,69,44,.09), transparent 70%), radial-gradient(40% 40% at 70% 60%, rgba(255,190,120,.14), transparent 70%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; margin-bottom: 20px; max-width: 18ch; }
.page-head .lead { margin-bottom: 28px; }

/* Avsnitt */
section.block { padding: 72px 0; }
section.block + section.block { padding-top: 24px; }
.sec-head { margin-bottom: 32px; }
.sec-head h2, h2.sec { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; margin-bottom: 12px; }
.sec-head .lead { font-size: 17px; }

/* Kort */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.panel h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.panel p, .panel li { color: var(--ink-2); }
.panel p:last-child { margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Bocklista */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.ticks.plus li::before { background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 5v8M5 9h8' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.dark .ticks li { color: #d6d1c9; }
.dark .ticks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Priskortet */
.dark { background: linear-gradient(160deg, #1d1d1d 0%, #0e0e0e 60%); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: #bdb8b0; }
.lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.dark .lbl { color: #a8a39b; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 18px; }
.price-line .v { font-size: clamp(52px, 7vw, 80px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.price-line small { color: #a8a39b; font-size: 15px; }
.first-order { margin: 0 0 26px; padding: 14px 16px; border-radius: 16px; background: #1f1f1f; box-shadow: inset 0 0 0 1px #2a2a2a; font-size: 15px; line-height: 1.45; }
.first-order b { display: block; color: #fff; font-weight: 600; text-wrap: balance; }
.first-order span { display: block; margin-top: 4px; color: #bdb8b0; font-size: 14px; }

/* Tidslinje och numrerade steg */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 0; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 26px 52px; color: var(--ink-2); }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.timeline li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* Tabell för räkneexemplet */
.calc-table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.calc-table th, .calc-table td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--ink-2); vertical-align: top; }
.calc-table td { text-align: right; white-space: nowrap; padding-left: 16px; color: var(--ink); }
.calc-table tr.sum th, .calc-table tr.sum td { font-weight: 650; color: var(--ink); border-top: 2px solid var(--ink); font-size: 17px; }
/* Hoppet från startsidan (#avgifter) ska landa under det fasta sidhuvudet. */
#avgifter { scroll-margin-top: 88px; }
.calc-table caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.fine { font-size: 14px; color: var(--muted); }

/* Frågor */
details { background: var(--card); border-radius: 20px; margin-bottom: 10px; box-shadow: 0 1px 0 var(--line); }
summary { list-style: none; cursor: pointer; min-height: 56px; padding: 18px 26px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 26px 22px; color: var(--ink-2); max-width: 64ch; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 20px; }

/* Steg med skärmbild (Så funkar det) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.stepcard { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; overflow: hidden; }
.stepcard .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.stepcard h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin-bottom: 12px; }
.stepcard p { color: var(--ink-2); max-width: 56ch; }
.who-does { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; }
.who-does li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; color: var(--ink-2); }
.who-does b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.who-does li.us b { color: #B5361F; }
.stepcard .note { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--bg); font-size: 14.5px; color: var(--ink-2); }
.shots { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.phone { width: min(260px, 100%); border-radius: 30px; border: 7px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.phone img { border-radius: 23px; width: 100%; }
.shots .phone { width: min(230px, 48%); }
.screen { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line); background: #fff; }
.screen.tablet { border: 8px solid #0f0f0f; border-radius: 22px; background: #0f0f0f; }
.screen.tablet img { border-radius: 12px; }
.stepcard.wide { grid-template-columns: 1fr; }
.stepcard.wide .txt { display: grid; grid-template-columns: 1.05fr 1fr; gap: 12px 40px; }

/* Avslutning */
.final { text-align: center; padding: 96px 0 110px; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; max-width: 160%; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(232,69,44,.12), transparent); pointer-events: none; }
.final h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; margin-bottom: 16px; position: relative; }
.final .lead { margin: 0 auto 28px; position: relative; }
.final .actions { justify-content: center; position: relative; }

/* Sidfot: samma som startsidan, med länkarna till undersidorna */
footer { border-top: 1px solid var(--line); padding: 16px 0 32px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 0 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
footer nav a { display: inline-block; padding: 12px 0; }
footer nav a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .grid2, .grid3, .stepcard, .stepcard.wide .txt { grid-template-columns: 1fr; }
  .stepcard { gap: 28px; padding: 30px; }
}
@media (max-width: 760px) {
  .nav .link { display: none; }
  .nav { gap: 8px; }
  .navmenu { display: block; }
}
@media (max-width: 420px) {
  .nav .btn .arr { display: none; }
  .nav .btn-sm { padding: 0 14px; }
  .navmenu summary { padding: 0 12px; }
  .logo { font-size: 20px; }
}
/* Under 360 px ryms inte ordet bredvid Meny och Boka demo: bara märket (länken har aria-label). */
@media (max-width: 359px) {
  .logo { font-size: 0; gap: 0; }
}
@media (max-width: 640px) {
  .page-head { padding: 28px 0 40px; }
  section.block { padding: 52px 0; }
  .panel, .dark { padding: 26px 22px; }
  .stepcard { padding: 26px 20px; border-radius: 24px; }
  .shots { gap: 12px; }
  .shots .phone { border-width: 5px; border-radius: 24px; }
  .shots .phone img { border-radius: 19px; }
  .screen.tablet { border-width: 5px; border-radius: 16px; }
  .who-does li { grid-template-columns: 1fr; gap: 2px; }
  summary { padding: 16px 20px; }
  details p { padding: 0 20px 20px; }
  .final { padding: 72px 0 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
