/* ==========================================================
   Roundtrip Cybersäkerhet – gemensam stil för alla sidor
   Ändra färger och typsnitt i :root nedan.
   ========================================================== */

@font-face { font-family: "Inter"; src: url("assets/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  /* Färger hämtade ur logotypens varianter */
  --bg:        #0c1015;
  --bg-2:      #11171e;
  --surface:   #161e27;
  --surface-2: #1b2530;
  --line:      rgba(150, 207, 214, 0.13);
  --line-2:    rgba(150, 207, 214, 0.28);
  --text:      #e6eaeb;   /* ljusgrå logovariant */
  --muted:     #9aa9b5;
  --teal:      #96cfd6;   /* turkos logovariant */
  --teal-ink:  #0c1015;
  --steel:     #6486a3;   /* stålblå logovariant */
  --slate:     #4e6e80;   /* skifferblå logovariant */
  --bronze:    #c98a4b;
  --silver:    #c3ccd4;
  --gold:      #e0b84c;

  /* Semantiska färger (byts i ljust läge) */
  --accent:     #96cfd6;
  --btn-bg:     #96cfd6;
  --btn-ink:    #0c1015;
  --btn-hover:  #b2dfe4;
  --header-bg:  rgba(12, 16, 21, 0.86);
  --menu-bg:    rgba(12, 16, 21, 0.97);
  --glass:      rgba(12, 16, 21, 0.78);
  --inset:      rgba(12, 16, 21, 0.4);
  --chip-bg:    rgba(22, 30, 39, 0.6);
  --tint:       rgba(150, 207, 214, 0.08);
  --grid:       rgba(150, 207, 214, 0.05);
  --glow:       rgba(100, 134, 163, 0.22);
  --featured-top: #1a2631;
  --img-shadow: drop-shadow(0 30px 60px rgba(0,0,0,.55));

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --wrap: 1160px;
  color-scheme: dark;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}


/* ---------- Ljust läge ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #f4f6f8;
  --bg-2:      #eaeef1;
  --surface:   #ffffff;
  --surface-2: #f4f6f8;
  --line:      rgba(33, 36, 41, 0.10);
  --line-2:    rgba(33, 36, 41, 0.20);
  --text:      #1b2128;
  --muted:     #55636f;
  --steel:     #4e6e80;
  --accent:    #256873;
  --btn-bg:    #256873;
  --btn-ink:   #ffffff;
  --btn-hover: #1d5760;
  --header-bg: rgba(244, 246, 248, 0.88);
  --menu-bg:   rgba(244, 246, 248, 0.98);
  --glass:     rgba(255, 255, 255, 0.85);
  --inset:     #f4f6f8;
  --chip-bg:   rgba(255, 255, 255, 0.7);
  --tint:      rgba(37, 104, 115, 0.08);
  --grid:      rgba(78, 110, 128, 0.07);
  --glow:      rgba(150, 207, 214, 0.35);
  --featured-top: #eef6f7;
  --img-shadow: drop-shadow(0 24px 40px rgba(33,36,41,.22));
  --silver:    #9aa6b1;
}
.on-light { display: none !important; }
:root[data-theme="light"] .on-light { display: block !important; }
:root[data-theme="light"] .on-dark { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header / meny ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled, .header.is-open {
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.sym { width: 34px; height: auto; }
.brand img.word { width: 138px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--tint); }
.nav a.is-active { color: var(--accent); }
.nav .nav-portal { display: inline-flex; align-items: center; gap: 6px; }
.nav .nav-portal .icon { width: 16px; height: 16px; }
.nav .btn { margin-left: 10px; color: var(--btn-ink); border-radius: 999px; padding: 10px 18px; }
.nav .btn:hover { color: var(--btn-ink); background: var(--btn-hover); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.header.is-open .menu-toggle span { background: transparent; }
.header.is-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.header.is-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink);
  border: 1px solid var(--btn-bg); transition: background .15s, transform .15s, border-color .15s; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); transform: translateY(-1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--tint); border-color: var(--accent); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 15px;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* ---------- Generella sektioner ---------- */
.section { padding: 112px 0; position: relative; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 72px) 0 96px; min-height: min(100vh, 900px);
  display: flex; align-items: center;
  background:
    radial-gradient(900px 520px at 78% 30%, var(--glow), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(150,207,214,.08), transparent 60%),
    var(--bg);
}
.hero::before { /* rutnät som i paketbladet */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -0.035em; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin-top: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 1; }
.hero-visual img { width: 100%; height: auto; filter: var(--img-shadow); }
.hero-visual::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(150,207,214,.20), transparent 70%); filter: blur(30px);
}
.focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; max-width: 720px; }
.focus-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--chip-bg); font-size: 15px; font-weight: 500; }
.focus-item .icon { color: var(--accent); }

/* ---------- Paket ---------- */
.licensing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.lic { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lic h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -0.01em; }
.lic h3 .icon { color: var(--accent); }
.lic p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.tier.featured { border-color: rgba(150,207,214,.55); box-shadow: 0 0 0 1px rgba(150,207,214,.25), 0 24px 60px -20px rgba(150,207,214,.25); background: linear-gradient(180deg, var(--featured-top), var(--surface)); }
.tier-badge { position: absolute; top: -12px; right: 24px; background: var(--btn-bg); color: var(--btn-ink); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.tier-name { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.bronze { background: var(--bronze); } .dot.silver { background: var(--silver); } .dot.gold { background: var(--gold); }
.tier-sub { color: var(--muted); font-size: 15px; margin-top: 8px; min-height: 48px; }
.tier ul { list-style: none; margin: 24px 0 28px; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 18px; flex: 1; }
.tier li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.tier li .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--tint); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.tier li .ic .icon { width: 18px; height: 18px; }
.tier li strong { display: block; font-weight: 600; font-size: 15.5px; }
.tier li span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.tier .includes { font-size: 13px; font-weight: 600; color: var(--steel); text-transform: uppercase; letter-spacing: .12em; margin-top: 22px; }
.footnote { color: var(--muted); font-size: 13.5px; margin-top: 24px; max-width: 820px; }

.check {
  margin-top: 72px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 32px 36px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(110deg, rgba(100,134,163,.22), rgba(150,207,214,.06) 60%, transparent), var(--surface);
}
.check-ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.check-ic .icon { width: 30px; height: 30px; }
.check h3 { font-size: 24px; }
.check p { color: var(--muted); margin-top: 6px; }

/* ---------- Specialisttjänster ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); border: 1px solid var(--line); color: var(--accent); margin-bottom: 22px; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 10px; flex: 1; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; }
.card .tags span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--tint); }

.resilience {
  margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2);
}
.resilience h3 { font-size: 28px; }
.resilience p { color: var(--muted); margin-top: 12px; }
.resilience ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.resilience li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.resilience li .icon { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }

/* ---------- Arbetssätt ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step-num { font-size: 15px; font-weight: 700; color: var(--btn-ink); background: var(--btn-bg); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 49px; right: -21px; width: 22px; height: 1px; background: var(--line-2);
}

/* ---------- Om ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.portrait { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 593 / 611; background: var(--surface); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; padding: 14px 16px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.portrait figcaption strong { display: block; font-size: 17px; }
.portrait figcaption span { color: var(--muted); font-size: 14px; }
.about h2 { font-size: clamp(30px, 4vw, 44px); }
.about .bio { color: var(--muted); font-size: 17.5px; margin-top: 20px; display: grid; gap: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.fact { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.fact strong { display: block; color: var(--accent); font-size: 15px; }
.fact span { color: var(--muted); font-size: 14px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact-card { padding: 36px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(100,134,163,.22), transparent 55%), var(--surface); display: flex; flex-direction: column; }
.contact-card h3 { font-size: 26px; }
.contact-card > p { color: var(--muted); margin-top: 10px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--inset); text-decoration: none; font-weight: 500; transition: border-color .15s; }
.contact-list a:hover { border-color: var(--accent); }
.contact-list .icon { color: var(--accent); }
.contact-list small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.contact-card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.prep { padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.prep h3 { font-size: 22px; }
.prep > p { color: var(--muted); margin-top: 8px; }
.prep ol { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; counter-reset: q; }
.prep li { counter-increment: q; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.prep li::before { content: counter(q, decimal-leading-zero); font-weight: 700; color: var(--accent); font-size: 15px; padding-top: 1px; }
.prep li strong { display: block; font-weight: 600; }
.prep li span { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-brand img { width: 180px; height: auto; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-links h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Portal (under konstruktion) ---------- */
.portal-page { min-height: 100vh; display: flex; flex-direction: column; }
.portal-main {
  flex: 1; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 64px) 20px 80px; position: relative; overflow: hidden;
  background: radial-gradient(700px 480px at 50% 35%, var(--glow), transparent 65%), var(--bg);
}
.portal-main::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%);
}
.portal-box { position: relative; max-width: 620px; }
.portal-spin { width: 168px; height: auto; margin: 0 auto 36px; animation: spin 14s linear infinite; filter: var(--img-shadow); }
@keyframes spin { to { transform: rotate(360deg); } }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(224,184,76,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(224,184,76,0); } 100% { box-shadow: 0 0 0 0 rgba(224,184,76,0); } }
.portal-box h1 { font-size: clamp(36px, 6vw, 56px); margin-top: 22px; }
.portal-box p { color: var(--muted); font-size: 18px; margin-top: 18px; }
.portal-box .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.portal-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.portal-list span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.portal-list .icon { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Scroll-animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivt ---------- */
@media (max-width: 1040px) {
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .tier { padding: 26px 22px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 24px; background: var(--menu-bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .header.is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: 10px; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 48px); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: 180px; justify-self: start; }
  .focus, .licensing, .facts, .tiers { grid-template-columns: 1fr; }
  .tier-sub { min-height: 0; }
  .about, .contact, .resilience { grid-template-columns: 1fr; }
  .about { gap: 36px; }
  .portrait { max-width: 420px; }
  .check { grid-template-columns: 1fr; text-align: left; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tiers, .cards, .steps { grid-template-columns: 1fr; }
  .brand img.word { width: 116px; }
  .resilience, .contact-card, .prep, .check { padding: 26px 22px; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.portrait { margin: 0; }
.resilience .link-arrow { margin-top: 22px; }
.portal-page .footer { padding: 24px 0; }
.portal-page .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.resilience.single { grid-template-columns: 1fr; max-width: none; }
.resilience.single p { max-width: 760px; }
.card p + .link-arrow { margin-top: 22px; }
a.focus-item { text-decoration: none; transition: border-color .15s, background .15s; }
a.focus-item:hover { border-color: var(--accent); background: rgba(150,207,214,.06); }
.section-head .aside-link { font-size: 16px; margin-top: 14px; }
.section-head .aside-link a { color: var(--accent); font-weight: 600; }
#konsult .check { margin-top: 20px; }

/* ---------- Knapp för ljust/mörkt läge ---------- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
  transition: background .15s, border-color .15s, color .15s;
}
.theme-toggle:hover { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-anim, .theme-anim * { transition: background-color .3s ease, border-color .3s ease, color .3s ease !important; }
@media (max-width: 900px) { .header-actions { margin-left: auto; } .header .wrap { gap: 12px; } }
.header .wrap { justify-content: flex-start; }
.brand { margin-right: auto; }
.header-actions { margin-left: -8px; }
@media (max-width: 900px) { .header-actions { margin-left: auto; } }
.copy-status { color: var(--muted); font-size: 14px; margin-top: 12px; min-height: 1.2em; }
button.btn { font-family: inherit; }
/* Menyknappen ska behålla sin textfärg även när den är markerad som aktiv */
.nav a.btn.is-active, .nav a.btn:focus, .nav a.btn:visited { color: var(--btn-ink); }
.nav a.btn.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
