/*! © 2015–2026 YourWeb (yourweb.se). All rights reserved. Proprietary – see LICENSE.md */
/* Free tools section (/verktyg/). The shared stylesheet of the hub and every tool page.
   Styles that only one tool uses live next to that tool: /verktyg/<tool>/tool.css.
   Load order on a page: this file, the tool's own file (if it has one), then /header.css.

   Contents
   01 Tokens and base        05 Hub (header card, bento, method)   09 Result blocks
   02 Chrome (skip, footer)  06 Tool page skeleton                 10 Motion
   03 Layout and type        07 Forms, buttons, chips              11 Print
   04 Tool tabs              08 Status, feedback, notices                                   */

/* ───────────────────────── 01 Tokens and base ───────────────────────── */

@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-variable.woff2?v=20260719-3") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand tokens, same names and values as the home page (styles.css). */
  --ink-950: #03101c;
  --ink-900: #04121f;
  --ink-850: #071b2d;
  --ink-800: #0a2740;
  --ink-700: #12344f;
  --blue-700: #00436f;
  --blue-600: #006aa7;
  --blue-300: #66b8e8;
  --yellow-500: #fec400;
  --yellow-300: #ffe27a;
  --paper-100: #fffdf6;
  --paper-200: #f7f2e7;
  --paper-300: #ede5d2;
  --text-on-dark: #f5f1e6;
  --text-muted-dark: rgba(226, 238, 248, 0.72);
  --border-dark: rgba(255, 255, 255, 0.16);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --page-gutter: clamp(1rem, 4vw, 3.25rem);
  --content-max: 82rem;
  --header-height: 5.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Section tokens. Text colours are solid so contrast does not depend on what is behind. */
  --text: #f5f1e6;
  --text-soft: #c9d6e1;
  --text-dim: #9bb0c1;
  --surface: #081b2c;
  --surface-raised: #0c2338;
  --surface-sunken: #031526;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --ok: #5ed6a0;
  --ok-rgb: 94 214 160;
  --warn: #ffb454;
  --warn-rgb: 255 180 84;
  --bad: #ff8073;
  --bad-rgb: 255 128 115;
  --info: #8fc3ea;
  --info-rgb: 143 195 234;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* The accent of the current context. Each tool sets its own (.tool--t1 … .tool--t6). */
  --accent: var(--yellow-500);
  --accent-rgb: 254 196 0;
}

.tool--t1 { --accent: #fec400; --accent-rgb: 254 196 0; }
.tool--t2 { --accent: #6cbcee; --accent-rgb: 108 188 238; }
.tool--t3 { --accent: #5ed6a0; --accent-rgb: 94 214 160; }
.tool--t4 { --accent: #ff9670; --accent-rgb: 255 150 112; }
.tool--t5 { --accent: #b6a5ff; --accent-rgb: 182 165 255; }
.tool--t6 { --accent: #f1e8d2; --accent-rgb: 241 232 210; }
.tool--t7 { --accent: #ff93c4; --accent-rgb: 255 147 196; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Whatever is scrolled or focused into view stops below the fixed header (on phones /header.css
   sets the top value) and above the chat button, which is fixed in the lower right corner. */
html {
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--ink-950);
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  scroll-padding-bottom: 7.75rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The same condition as the compact chat button in /scripts/support.js. */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {
  html {
    scroll-padding-bottom: calc(3.5rem + max(0.75rem, env(safe-area-inset-bottom, 0px)));
  }
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background: var(--ink-900);
  color: var(--text);
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Figures line up with capitals in scores, prices and counters. */
main {
  position: relative;
  font-variant-numeric: lining-nums;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

em,
i,
b,
strong {
  font-style: normal;
}

strong,
b {
  font-weight: 800;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--yellow-500);
  color: var(--ink-900);
}

:focus-visible {
  border-radius: 0.3rem;
  outline: 3px solid var(--yellow-500);
  outline-offset: 3px;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ───────────────────────── 02 Chrome ───────────────────────── */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--paper-100);
  color: var(--ink-900);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Footer: the home page footer, same markup and measures. */
.site-footer {
  padding:
    clamp(4rem, 7vw, 6.5rem)
    max(var(--page-gutter), env(safe-area-inset-right), calc((100vw - var(--content-max)) / 2 + var(--page-gutter)))
    2rem
    max(var(--page-gutter), env(safe-area-inset-left), calc((100vw - var(--content-max)) / 2 + var(--page-gutter)));
  border-top: 1px solid var(--line);
  background: var(--ink-950);
  font-weight: 400;
  line-height: 1.5;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.25fr 1.35fr 0.7fr 0.9fr;
  gap: 3rem;
}

.site-footer__main > div > img {
  width: 12.5rem;
  height: auto;
}

.site-footer__main > div > p {
  max-width: 24rem;
  margin-top: 1rem;
  color: rgba(226, 238, 248, 0.62);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.62rem;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem 1.4rem;
}

.site-footer nav strong {
  margin-bottom: 0.35rem;
  color: var(--yellow-500);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer nav a,
.site-footer nav span {
  width: fit-content;
  color: rgba(226, 238, 248, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: #fff;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(226, 238, 248, 0.6);
  font-size: 0.72rem;
}

@media (max-width: 68rem) {
  .site-footer__main {
    grid-template-columns: 1fr 1.2fr 0.7fr;
  }

  .site-footer__main > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 46rem) {
  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1.5rem;
  }

  .site-footer__main > div,
  .footer-services {
    grid-column: 1 / -1;
  }

  .site-footer nav a,
  .site-footer nav span {
    padding-block: 0.2rem;
  }

  .site-footer__legal {
    flex-direction: column;
    margin-top: 2.75rem;
  }
}

/* ───────────────────────── 03 Layout and type ───────────────────────── */

.shell {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding-right: max(var(--page-gutter), env(safe-area-inset-right));
  padding-left: max(var(--page-gutter), env(safe-area-inset-left));
}

.shell--narrow {
  max-width: calc(52rem + 2 * var(--page-gutter));
}

/* The first block of every page: clears the fixed header and carries the page glow. */
.top {
  position: relative;
  padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
  isolation: isolate;
}

.top::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 44rem;
  background:
    radial-gradient(52rem 28rem at 88% -6%, rgba(0, 106, 167, 0.34), transparent 62%),
    radial-gradient(36rem 24rem at 4% 2%, rgb(var(--accent-rgb) / 0.09), transparent 64%);
  content: "";
  pointer-events: none;
}

.top::after {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 30rem;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

@media (min-width: 46.01rem) {
  .top {
    padding-top: calc(var(--header-height) + 1.25rem);
  }
}

.crumbs ol {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
  scrollbar-width: none;
  white-space: nowrap;
}

.crumbs ol::-webkit-scrollbar {
  display: none;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.crumbs li + li::before {
  width: 0.36rem;
  height: 0.36rem;
  margin: 0 0.6rem 0 0.4rem;
  border-top: 1.5px solid rgba(255, 255, 255, 0.36);
  border-right: 1.5px solid rgba(255, 255, 255, 0.36);
  content: "";
  transform: rotate(45deg);
}

.crumbs a {
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
}

.crumbs a,
.crumbs [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-dim);
  text-decoration: none;
}

.crumbs a:hover {
  color: #fff;
}

.crumbs [aria-current="page"] {
  color: var(--text);
}

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  flex: none;
  width: 1.75rem;
  height: 2px;
  margin-top: calc(0.65em - 1px);
  background: currentColor;
  content: "";
}

.eyebrow--plain::before {
  content: none;
}

.accent {
  color: var(--accent);
}

.lead {
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.section {
  padding-block: clamp(3.25rem, 7vw, 6rem);
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3.25rem);
}

.section--line {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.section-head p:not(.eyebrow) {
  color: var(--text-soft);
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016)),
    var(--surface);
}

/* ───────────────────────── 04 Tool tabs ───────────────────────── */

/* The same row on all seven pages. Phones: a native horizontal scroller. */
.tool-tabs {
  margin-inline: calc(-1 * max(var(--page-gutter), env(safe-area-inset-left)));
}

.tool-tabs__list {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.25rem 2.75rem 0.25rem max(var(--page-gutter), env(safe-area-inset-left));
  overflow-x: auto;
  list-style: none;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--page-gutter);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.75rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 2.75rem), transparent);
}

.tool-tabs__list::-webkit-scrollbar {
  display: none;
}

.tool-tabs__list > li {
  flex: none;
  scroll-snap-align: start;
}

.tool-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.9rem 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tool-tab .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
}

.tool-tab__no {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tool-tab:hover {
  border-color: rgb(var(--accent-rgb) / 0.6);
  background: rgb(var(--accent-rgb) / 0.08);
  color: #fff;
}

.tool-tab[aria-current="page"] {
  border-color: transparent;
  background: var(--paper-100);
  color: var(--ink-900);
}

.tool-tab[aria-current="page"] .icon,
.tool-tab[aria-current="page"] .tool-tab__no {
  color: var(--ink-800);
}

/* Mouse and trackpad widths: every tab is visible. Two tidy rows of four, then one row. */
@media (min-width: 64rem) {
  .tool-tabs {
    margin-inline: 0;
  }

  .tool-tabs__list {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 0.4rem;
    padding: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tool-tab {
    width: 100%;
  }
}

@media (min-width: 80rem) {
  .tool-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .tool-tab {
    gap: 0.4rem;
    width: auto;
    padding: 0 0.62rem 0 0.5rem;
    font-size: 0.8rem;
  }

  .tool-tab .icon {
    width: 1rem;
    height: 1rem;
  }
}

@media (min-width: 88rem) {
  .tool-tabs__list {
    gap: 0.35rem;
  }

  .tool-tab {
    gap: 0.45rem;
    padding: 0 0.8rem 0 0.65rem;
    font-size: 0.86rem;
  }

  .tool-tab .icon {
    width: 1.1rem;
    height: 1.1rem;
  }
}

/* ───────────────────────── 05 Hub ───────────────────────── */

.hub-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: clamp(1.25rem, 3.2vw, 2.75rem);
  overflow: hidden;
}

.hub-head::after {
  position: absolute;
  top: clamp(-9rem, -8vw, -4rem);
  right: clamp(-8rem, -6vw, -3rem);
  z-index: 0;
  width: clamp(14rem, 26vw, 24rem);
  aspect-ratio: 1;
  border: clamp(2rem, 5vw, 4.5rem) solid rgba(254, 196, 0, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hub-head > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hub-head__intro {
  display: grid;
  gap: 1rem;
}

.hub-head h1 {
  max-width: 17ch;
  font-size: clamp(2.05rem, 6vw, 4.1rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hub-head .lead {
  max-width: 38rem;
}

.hub-head__cta {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  justify-items: start;
}

.hub-head__cta p {
  max-width: 22rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.hub-head__tabs {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

/* Inside the card the scroller bleeds to the card edge, not the page edge. */
.hub-head .tool-tabs {
  margin-inline: calc(-1 * clamp(1.25rem, 3.2vw, 2.75rem));
}

.hub-head .tool-tabs__list {
  padding-left: clamp(1.25rem, 3.2vw, 2.75rem);
  scroll-padding-inline: clamp(1.25rem, 3.2vw, 2.75rem);
}

@media (min-width: 56rem) {
  .hub-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 3rem;
  }

  .hub-head__cta {
    padding-bottom: 0.35rem;
  }

  .hub-head__tabs {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .hub-head .tool-tabs {
    margin-inline: 0;
  }

  .hub-head .tool-tabs__list {
    padding-left: 0;
  }
}

@media (min-width: 80rem) {
  .hub-head .tool-tab {
    padding: 0 0.5rem 0 0.4rem;
    font-size: 0.78rem;
  }
}

@media (min-width: 88rem) {
  .hub-head .tool-tab {
    padding: 0 0.7rem 0 0.55rem;
    font-size: 0.84rem;
  }
}

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color 200ms ease, transform 260ms var(--ease-out);
}

.tool-card:hover,
.tool-card:focus-within {
  border-color: rgb(var(--accent-rgb) / 0.55);
}

.art {
  position: relative;
  display: grid;
  place-items: center;
  height: 9.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(22rem 12rem at 50% 118%, rgb(var(--accent-rgb) / 0.2), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.4px) 0 0 / 18px 18px,
    var(--surface-sunken);
  color: var(--accent);
}

.art svg {
  width: 100%;
  height: 100%;
}

/* Illustration parts. Lines keep their weight at every size. */
.art svg * {
  vector-effect: non-scaling-stroke;
}

.a-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.a-thin {
  fill: none;
  stroke: rgba(255, 255, 255, 0.38);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.a-dash {
  stroke-dasharray: 3 6;
}

.a-fill {
  fill: currentColor;
}

.a-soft {
  fill: rgb(var(--accent-rgb) / 0.16);
}

.a-pane {
  fill: rgba(8, 27, 44, 0.92);
}

.a-ghost {
  fill: rgba(255, 255, 255, 0.17);
}

.a-ghost-2 {
  fill: rgba(255, 255, 255, 0.085);
}

.tool-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.25rem 1.25rem 0.75rem;
}

.tool-card__title {
  font-size: clamp(1.32rem, 2.1vw, 1.72rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.tool-card__text {
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.55;
}

.tool-card__go {
  display: block;
  margin-top: auto;
  padding-block: 0.8rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

/* The whole card is the link; its text says what the tool does. */
.tool-card__go::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
}

.tool-card__go:focus-visible {
  outline: none;
}

.tool-card:has(.tool-card__go:focus-visible) {
  outline: 3px solid var(--yellow-500);
  outline-offset: 3px;
}

.tool-card__go .icon {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.45rem;
  color: var(--accent);
  vertical-align: -0.2em;
  transition: transform 220ms var(--ease-out);
}

.tool-card:hover .tool-card__go .icon {
  transform: translateX(4px);
}

.tool-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.tool-card__tags li {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 40rem) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }

  .bento > .tool-card--feature,
  .bento > .method {
    grid-column: 1 / -1;
  }

  .tool-card--feature .art {
    height: 13rem;
  }

  .art {
    height: 10rem;
  }

  .tool-card__body {
    padding: 1.5rem 1.5rem 0.9rem;
  }
}

/* Wide screens: one feature card, then two, then four. */
@media (min-width: 64rem) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .bento > .tool-card {
    grid-column: span 6;
  }

  .bento > .tool-card--feature {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .tool-card--feature .art {
    flex: 0 0 58%;
    height: auto;
    min-height: 20rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .tool-card--feature .tool-card__body {
    justify-content: center;
    gap: 0.9rem;
    padding: 2.25rem 2.5rem;
  }

  .tool-card--feature .tool-card__title {
    font-size: clamp(1.9rem, 2.7vw, 2.5rem);
  }

  .tool-card--feature .tool-card__text {
    font-size: 1.05rem;
  }

  .tool-card--feature .tool-card__go {
    margin-top: 0;
  }

  .tool-card--half .art {
    height: 12.5rem;
  }

  .tool-card:hover {
    transform: translateY(-3px);
  }
}

@media (min-width: 78rem) {
  .bento > .tool-card--quarter {
    grid-column: span 3;
  }

  .tool-card--quarter .tool-card__title {
    font-size: 1.32rem;
  }

  .tool-card--quarter .tool-card__text {
    font-size: 0.93rem;
  }
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.25rem, 3.2vw, 2.5rem);
}

.method__text {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.method__text h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.method__text p:not(.eyebrow) {
  max-width: 44rem;
  color: var(--text-soft);
}

.method__art {
  height: 6.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.stats > div {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0.75rem 0 0;
}

.stats > div + div {
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
}

.stats dt {
  order: 2;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.stats dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stats dd.accent {
  color: var(--accent);
}

.method__note {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.method__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}

@media (min-width: 64rem) {
  .method {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: 3.5rem;
    align-items: start;
  }

  .method__side {
    gap: 1.5rem;
  }
}

.next {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 0.85rem;
  padding: clamp(1.25rem, 3.2vw, 2.5rem);
}

.next__head {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.next__head h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.next__head p:not(.eyebrow) {
  max-width: 30rem;
  color: var(--text-soft);
}

/* A tidy index of fixed-price offers: name, price, arrow. Used on the hub and on every tool. */
.offer-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.offer-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.15rem 0.75rem;
  min-height: 3.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.offer-list--numbered a {
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
}

.offer-list__no {
  grid-row: span 2;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.offer-list__name {
  font-weight: 800;
  line-height: 1.3;
}

.offer-list__price {
  grid-row: 2;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
}

.offer-list--numbered .offer-list__price {
  grid-column: 2;
}

.offer-list .icon {
  grid-row: 1 / span 2;
  grid-column: -2;
  color: var(--accent);
  transition: transform 220ms var(--ease-out);
}

.offer-list a:hover .offer-list__name {
  color: var(--accent);
}

.offer-list a:hover .icon {
  transform: translateX(4px);
}

@media (min-width: 46rem) {
  .offer-list a {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .offer-list--numbered a {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto auto;
  }

  .offer-list__no {
    grid-row: auto;
  }

  .offer-list__price,
  .offer-list--numbered .offer-list__price {
    grid-row: auto;
    grid-column: auto;
    font-size: 0.92rem;
    text-align: right;
    white-space: nowrap;
  }

  .offer-list .icon {
    grid-row: auto;
    grid-column: auto;
  }
}

/* The same list as a block on a tool page. */
.offers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(1.25rem, 3.2vw, 2.25rem);
}

.offers__head {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.offers__head h2,
.offers__head h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.offers__head p:not(.eyebrow) {
  max-width: 32rem;
  color: var(--text-soft);
  font-size: 0.97rem;
}

@media (min-width: 64rem) {
  .offers {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: 3.5rem;
  }
}

@media (min-width: 40rem) {
  .next {
    margin-top: 1rem;
  }
}

@media (min-width: 64rem) {
  .next {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: 3.5rem;
  }
}

.hub-end {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* ───────────────────────── 06 Tool page skeleton ───────────────────────── */

.tool-top .tool-tabs {
  margin-top: 0.4rem;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.35rem 2.25rem;
}

.tool-hero__copy {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-width: 0;
}

.tool-hero h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 5.4vw, 3.7rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.tool-hero .lead {
  max-width: 40rem;
}

.tool-panel {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  border-color: rgb(var(--accent-rgb) / 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.tool-hero__side {
  display: none;
}

.assure {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
}

.assure li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.assure .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  color: var(--accent);
}

.parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.parts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.25;
}

.parts .icon {
  color: var(--accent);
}

@media (min-width: 40rem) {
  .tool-panel {
    padding: 1.35rem;
  }

  .assure {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 64rem) {
  .tool-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
    gap: 3.5rem;
    padding-block: 2.25rem 3rem;
  }

  .tool-hero__copy {
    gap: 1.1rem;
  }

  .tool-hero__side {
    display: grid;
    gap: 1rem;
    align-content: start;
  }

  .tool-hero__side .art {
    height: 15.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }

  .tool-panel {
    padding: 1.5rem;
  }
}

/* "Så fungerar det" */
.steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  counter-increment: step;
}

.steps > li::before {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  content: counter(step, decimal-leading-zero);
}

.steps h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.steps p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.limits {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.limits h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.limits ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  list-style: none;
}

.limits li {
  position: relative;
  padding-left: 1.15rem;
}

.limits li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

@media (min-width: 48rem) {
  .limits ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

/* Long-form copy */
.prose {
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.7;
}

.prose h2 {
  margin-top: 1.4rem;
  color: var(--text);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 0.6rem;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.25rem;
}

.prose li::marker {
  color: var(--accent);
  font-weight: 800;
}

/* Inline code in running text: record names, file names, values. A block of code is .code (08). */
main code:where(:not(.code)) {
  padding: 0.1em 0.4em;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--surface-sunken);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 500;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose a,
.text-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(var(--accent-rgb) / 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.prose a:hover,
.text-link:hover {
  color: var(--accent);
}

.prose strong {
  color: var(--text);
}

/* FAQ */
.faq {
  max-width: 52rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.9rem 0;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  font-weight: 800;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  content: "+";
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > :not(summary) {
  max-width: 44rem;
  margin: -0.15rem 0 1.25rem;
  color: var(--text-soft);
}

/* Previous / next tool */
.pager {
  display: grid;
  gap: 0.85rem;
}

.pager__link {
  display: grid;
  gap: 0.3rem;
  min-height: 5.25rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: border-color 180ms ease;
}

.pager__link:hover {
  border-color: rgb(var(--accent-rgb) / 0.6);
}

.pager__dir {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pager__dir .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.pager__name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pager__name small {
  margin-right: 0.15rem;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.pager__link--next {
  text-align: right;
}

.pager__link--next .pager__dir {
  justify-content: flex-end;
}

@media (min-width: 40rem) {
  .pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Closing chat band: the brand's yellow, as on the service pages. */
.chat-cta {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--yellow-500);
  color: var(--ink-950);
}

.chat-cta h2 {
  max-width: 22ch;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: -0.045em;
}

.chat-cta p {
  max-width: 40rem;
  margin-top: 0.75rem;
  font-weight: 600;
}

@media (min-width: 48rem) {
  .chat-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }
}

.page-end {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* ───────────────────────── 07 Forms, buttons, chips ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--yellow-500);
  color: var(--ink-950);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 200ms var(--ease-out);
}

.btn:hover {
  background: var(--yellow-300);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.btn--dark {
  background: var(--ink-950);
  color: #fff;
}

.btn--dark:hover {
  background: var(--ink-800);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.field__label {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

.field__hint {
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* 16px or larger, so iOS does not zoom the page on focus. */
.input {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 0.95rem;
  background: var(--surface-sunken);
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input::placeholder {
  color: #7f95a7;
  font-weight: 500;
  opacity: 1;
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.input:focus-visible {
  border-color: var(--yellow-500);
  border-radius: 0.95rem;
  outline: none;
  box-shadow: 0 0 0 3px rgba(254, 196, 0, 0.28);
}

.input[aria-invalid="true"] {
  border-color: var(--bad);
}

textarea.input {
  min-height: 6.5rem;
  resize: vertical;
}

.input--mono {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--bad);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.field__error .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
}

.form-row {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 34rem) {
  .form-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.chip[aria-pressed="true"],
.chip[aria-checked="true"] {
  border-color: var(--paper-100);
  background: var(--paper-100);
  color: var(--ink-900);
}

.chip__count {
  min-width: 1.5rem;
  padding: 0.14rem 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.chip[aria-pressed="true"] .chip__count,
.chip[aria-checked="true"] .chip__count {
  background: rgba(4, 18, 31, 0.12);
}

.chip[disabled] {
  cursor: default;
  opacity: 0.45;
}

/* ───────────────────────── 08 Status, feedback, notices ───────────────────────── */

.st--pass { --st: var(--ok); --st-rgb: var(--ok-rgb); }
.st--warn { --st: var(--warn); --st-rgb: var(--warn-rgb); }
.st--fail { --st: var(--bad); --st-rgb: var(--bad-rgb); }
.st--info { --st: var(--info); --st-rgb: var(--info-rgb); }

.st-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgb(var(--st-rgb) / 0.16);
  color: var(--st);
}

.st-icon .icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.4;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgb(var(--st-rgb, 255 255 255) / 0.5);
  border-radius: var(--radius-pill);
  background: rgb(var(--st-rgb, 255 255 255) / 0.1);
  color: var(--st, var(--text));
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.badge .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2.1;
}

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(var(--st-rgb, 143 195 234) / 0.5);
  border-radius: var(--radius-md);
  background: rgb(var(--st-rgb, 143 195 234) / 0.09);
}

/* Programmatic focus lands here. The root's scroll padding keeps it clear of the header and the
   chat button (see 01); this only adds a little air. */
.notice {
  scroll-margin: 0.75rem 0 1rem;
}

.notice[tabindex="-1"]:focus {
  outline: none;
}

.notice > .st-icon,
.notice > .icon {
  grid-row: span 3;
  color: var(--st, var(--info));
}

.notice__title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

.notice__text {
  grid-column: 2;
  color: var(--text-soft);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.notice__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

/* Waiting: a real elapsed clock, never a made-up percentage. */
.wait {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.9rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgb(var(--accent-rgb) / 0.4);
  border-radius: var(--radius-md);
  background: rgb(var(--accent-rgb) / 0.07);
}

.wait__spinner {
  width: 1.6rem;
  height: 1.6rem;
  border: 3px solid rgb(var(--accent-rgb) / 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
}

.wait__title {
  font-weight: 800;
  line-height: 1.3;
}

.wait__clock {
  min-width: 4.2ch;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}

.wait__text {
  grid-column: 2 / -1;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.wait__cancel {
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: 0.4rem;
}

.copy-btn[data-copied="true"] {
  border-color: var(--ok);
  color: var(--ok);
}

.code {
  display: block;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

.needs-js {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text-soft);
}

/* ───────────────────────── 09 Result blocks ───────────────────────── */

.result {
  padding-block: 0.5rem clamp(2rem, 5vw, 4rem);
}

.result__stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}

.result__stack > * {
  min-width: 0;
}

/* Headings that receive focus when a result arrives are landing points, not controls. */
main h2[tabindex="-1"]:focus,
main h3[tabindex="-1"]:focus {
  outline: none;
}

.result-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "ring titles"
    "body body"
    "actions actions";
  align-items: center;
  gap: 1.1rem 1.15rem;
  padding: clamp(1.15rem, 3vw, 2.25rem);
  border-color: rgb(var(--accent-rgb) / 0.3);
}

.result-head > .ring {
  grid-area: ring;
}

.result-head__titles {
  display: grid;
  grid-area: titles;
  gap: 0.6rem;
  min-width: 0;
}

.result-head__title {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  letter-spacing: -0.04em;
}

.result-head__body {
  display: grid;
  grid-area: body;
  gap: 0.8rem;
  min-width: 0;
}

.result-head__verdict {
  max-width: 40rem;
  color: var(--text-soft);
}

.result-head__target {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.result-head__host {
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.result-head__meta {
  color: var(--text-dim);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.result-head__actions {
  grid-area: actions;
}

.result-head__actions .btn {
  padding-inline: 0.9rem;
}

@media (min-width: 46rem) {
  .result-head {
    grid-template-areas:
      "ring titles"
      "ring body"
      "ring actions";
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
  }

  .result-head > .ring {
    align-self: center;
  }

  .result-head__actions .btn {
    padding-inline: 1.05rem;
  }
}

@media (min-width: 68rem) {
  .result-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "ring titles actions"
      "ring body actions";
  }

  .result-head__actions {
    flex-direction: column;
    align-self: center;
  }

  .result-head__actions .btn {
    justify-content: flex-start;
  }
}

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 6.75rem;
  height: 6.75rem;
}

.ring__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring__track,
.ring__arc {
  fill: none;
  stroke-width: 9;
}

.ring__track {
  stroke: rgba(255, 255, 255, 0.1);
}

.ring__arc {
  stroke: var(--st);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease-out);
}

.ring__label {
  position: relative;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  text-align: center;
}

.ring__grade {
  color: var(--st);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.ring__score {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.ring__score b {
  color: var(--text);
  font-size: 0.86rem;
}

@media (min-width: 46rem) {
  .ring {
    width: 10rem;
    height: 10rem;
  }

  .ring__grade {
    font-size: 3.4rem;
  }

  .ring__score {
    font-size: 0.82rem;
  }

  .ring__score b {
    font-size: 1.05rem;
  }
}

.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  margin: 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  list-style: none;
}

.tally li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tally b {
  color: var(--text);
}

.tally .st-icon {
  width: 1.4rem;
  height: 1.4rem;
}

.tally .st-icon .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.block-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.block-head h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  outline-offset: 6px;
}

.block-head p:not(.eyebrow) {
  max-width: 44rem;
  color: var(--text-soft);
}

/* Category scores */
.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.55rem;
  height: 100%;
  min-height: 9rem;
  padding: 0.95rem;
  text-decoration: none;
  transition: border-color 180ms ease;
}

.cat:hover {
  border-color: rgb(var(--st-rgb) / 0.7);
}

.cat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cat__top .icon {
  color: var(--text-dim);
}

.cat__score {
  color: var(--st);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cat__score small {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.cat__label {
  align-self: end;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.bar {
  height: 0.4rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
}

.bar > span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--st);
}

.cat__counts {
  display: flex;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
}

.cat__counts span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--st);
}

@media (min-width: 46rem) {
  .cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .cat {
    padding: 1.15rem;
  }
}

@media (min-width: 76rem) {
  .cats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* "Börja här" */
.prio {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prio__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem 0.9rem;
  align-content: start;
  padding: 1.15rem;
}

.prio__no {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--yellow-500);
  color: var(--ink-950);
  font-weight: 800;
}

.prio__main {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.prio__title {
  padding-top: 0.3rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prio__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 700;
}

.prio__detail {
  color: var(--text-soft);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.prio__fix {
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--yellow-500);
  border-radius: 0 0.6rem 0.6rem 0;
  background: rgba(254, 196, 0, 0.07);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

@media (min-width: 64rem) {
  .prio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* All checks */
.filters {
  display: flex;
  gap: 0.5rem;
  margin: 0 calc(-1 * max(var(--page-gutter), env(safe-area-inset-left))) 1.25rem;
  padding: 0.2rem max(var(--page-gutter), env(safe-area-inset-left));
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters .chip {
  flex: none;
}

@media (min-width: 46rem) {
  .filters {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

.groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 64rem) {
  .groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

.group {
  display: grid;
  gap: 0.55rem;
  scroll-margin-top: 0.75rem;
}

.group__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.25rem;
}

.group__head .icon {
  color: var(--accent);
}

.group__head h4 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.group__score {
  margin-left: auto;
  color: var(--st);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.check {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}

.check summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.1rem 0.75rem;
  min-height: 3.5rem;
  padding: 0.65rem 0.85rem;
  list-style: none;
  cursor: pointer;
}

.check summary::-webkit-details-marker {
  display: none;
}

.check summary:focus-visible {
  border-radius: 0.9rem;
  outline-offset: -3px;
}

.check__title {
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.check__value {
  grid-row: 2;
  grid-column: 2;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check__chev {
  grid-row: 1 / span 2;
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--text-dim);
  transition: transform 200ms var(--ease-out);
}

.check[open] .check__chev {
  transform: rotate(180deg);
}

.check__body {
  display: grid;
  gap: 0.6rem;
  padding: 0.1rem 0.95rem 1rem 3.35rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.check__fix {
  color: var(--text);
}

.check--plain summary {
  cursor: default;
}

.check--plain .check__chev {
  visibility: hidden;
}

@media (min-width: 46rem) {
  .check summary {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .check__value {
    grid-row: 1;
    grid-column: 3;
    max-width: 16rem;
    text-align: right;
  }

  .check__chev {
    grid-row: 1;
    grid-column: 4;
  }
}

.empty {
  padding: 1.1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text-soft);
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.fact {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
  padding: 1.2rem;
}

.fact h4 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.fact h4 .icon {
  color: var(--accent);
}

.kv {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.kv > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.kv dt {
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kv dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.kv dd small {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
}

.kv .is-missing {
  color: var(--text-dim);
  font-weight: 600;
}

.kv--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* A neutral search result: no logo, no brand colours of any search engine. */
.snippet {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  background: #fff;
  color: #3c4043;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.snippet__site {
  color: #202124;
  font-size: 0.8rem;
}

.snippet__title {
  color: #1a0dab;
  font-size: 1.15rem;
  line-height: 1.3;
}

.snippet__text.is-missing {
  color: #70757a;
}

.kv-title {
  margin-bottom: 0.5rem;
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.redirects {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.redirects li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  font-family: var(--mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.redirects b {
  color: var(--accent);
  font-family: "Raleway", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

/* Wide screens: the long card on the left, the two short ones stacked beside it. */
@media (min-width: 60rem) {
  .facts {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }

  .facts > .fact:first-child {
    grid-row: span 2;
  }
}

.result-foot {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.result-foot p {
  max-width: 46rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (min-width: 52rem) {
  .result-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
  }
}

/* ───────────────────────── 10 Motion ───────────────────────── */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes art-scan {
  0%, 8% { transform: translateY(0); opacity: 0; }
  16% { opacity: 1; }
  84% { opacity: 1; }
  92%, 100% { transform: translateY(104px); opacity: 0; }
}

@keyframes art-travel {
  0%, 6% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  94%, 100% { transform: translateX(var(--travel, 200px)); opacity: 0; }
}

@keyframes art-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes art-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes art-toggle {
  0%, 30% { transform: translateX(0); }
  45%, 85% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}

@keyframes art-grow {
  0%, 30% { transform: scaleX(0.55); }
  45%, 85% { transform: scaleX(1); }
  100% { transform: scaleX(0.55); }
}

@keyframes art-tick {
  0%, 12% { opacity: 0; transform: scale(0.6); }
  22%, 88% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.6); }
}

@media (prefers-reduced-motion: no-preference) {
  .wait__spinner {
    animation: spin 0.9s linear infinite;
  }

  .m-scan { animation: art-scan 6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .m-travel { animation: art-travel 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .m-pulse { animation: art-pulse 3.6s ease-in-out infinite; }
  .m-blink { animation: art-blink 1.2s steps(1) infinite; }
  .m-toggle { animation: art-toggle 6s var(--ease-out) infinite; }
  .m-grow { animation: art-grow 6s var(--ease-out) infinite; transform-box: fill-box; transform-origin: left center; }
  .m-tick { animation: art-tick 7s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
  .m-grow.o-right { transform-origin: right center; }
  .d-1 { animation-delay: 0.6s; }
  .d-2 { animation-delay: 1.2s; }
  .d-3 { animation-delay: 1.8s; }
  .d-4 { animation-delay: 2.4s; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  /* Without motion the spinner would look frozen: show a steady ring instead. */
  .wait__spinner {
    border-color: var(--accent);
  }
}

/* ───────────────────────── 11 Print ───────────────────────── */

.print-only {
  display: none;
}

@media print {
  @page {
    margin: 15mm 14mm;
  }

  /* The same components on paper: the tokens flip to dark ink on white. */
  :root,
  body,
  [class*="tool--t"] {
    --text: #000;
    --text-soft: #1c1c1c;
    --text-dim: #444;
    --surface: #fff;
    --surface-raised: #fff;
    --surface-sunken: #fff;
    --line: #bdbdbd;
    --line-strong: #8a8a8a;
    --accent: #111;
    --accent-rgb: 17 17 17;
    --ok: #0b6b3c;
    --ok-rgb: 11 107 60;
    --warn: #8a5600;
    --warn-rgb: 138 86 0;
    --bad: #a3271c;
    --bad-rgb: 163 39 28;
    --info: #1d4f7a;
    --info-rgb: 29 79 122;
    --yellow-500: #111;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  body {
    font-size: 10.5pt;
    line-height: 1.45;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  .site-header,
  .mobile-menu,
  .site-footer,
  .skip-link,
  .sprite,
  .crumbs,
  .tool-tabs,
  .tool-hero__side,
  .art,
  .pager,
  .chat-cta,
  .actions,
  .filters,
  .wait,
  .btn,
  .result-foot,
  .check__chev,
  .js-only[data-site-feedback],
  .yw-support-button,
  .yw-support-consent,
  .yw-support-welcome,
  .yw-support-revoke,
  .yw-support-error,
  .yc-banner,
  .yc-backdrop,
  .yc-withdraw,
  .yw-callback {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .top {
    padding-top: 0;
  }

  .top::before,
  .top::after,
  .hub-head::after {
    content: none;
  }

  .shell {
    max-width: none;
    padding-inline: 0;
  }

  .section,
  .result {
    padding-block: 6mm;
  }

  .card,
  .check,
  .steps > li,
  .limits,
  .notice,
  .prio__fix {
    border-color: var(--line) !important;
    background: #fff !important;
    color: #000 !important;
  }

  .card,
  .check,
  .prio__item,
  .steps > li,
  .cat,
  .fact,
  .faq details {
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4 {
    break-after: avoid;
  }

  a {
    color: #000;
  }

  .prio__no {
    border: 1.5px solid #000;
    background: #fff;
    color: #000;
  }

  .st-icon {
    border: 1px solid currentColor;
    background: #fff;
  }

  .ring__track {
    stroke: #d9d9d9;
  }

  .bar {
    border: 1px solid var(--line);
    background: #fff;
  }

  .snippet {
    border: 1px solid var(--line);
  }

  .cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prio,
  .groups,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  /* With a report on the page, the paper holds the report and nothing else. */
  body:has(#resultat.result:not([hidden])) main > :not(.result) {
    display: none !important;
  }
}
