/*
  Layout: categories on the left, one list in the middle, one clear action.
  One accent, used only for what you can press or have chosen. Prices carry the attention.
*/

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f1217;
  --s1: #151a21;
  --s2: #1c222c;
  --line: #262e39;
  --line2: #394453;
  --tx: #f2f5f9;
  --tx2: #a9b4c4;
  --tx3: #8692a4;
  --ac: #ffc46b;
  --ac-ink: #241600;
  --disp: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--tx);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}

body.cart-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
}

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
main:focus { outline: 0; }

svg.lucide {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 1.75;
  flex: none;
  display: block;
}

/* Hidden from the eye, still read aloud */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ac);
  color: var(--ac-ink);
  font-weight: 700;
}

.skip:focus { top: 12px; }

/* Header */
.hd {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 28px;
  background: #0f1217f2;
  border-bottom: 1px solid var(--line);
}

.brand {
  font: 600 1.22rem/1.2 var(--disp);
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 208px;
  flex: none;
}

.find {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 460px;
}

.find .fi {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--tx3);
  pointer-events: none;
  display: flex;
}

.find input {
  width: 100%;
  height: 44px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px 0 42px;
  -webkit-appearance: none;
  appearance: none;
}

.find input::placeholder { color: var(--tx3); opacity: 1; }
.find input:focus { border-color: var(--line2); outline: 0; background: var(--s2); }
.find input:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.find input:disabled { opacity: 0.5; }

.cartb {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.cartb:hover { border-color: var(--line2); background: var(--s1); }
.cartb:disabled { opacity: 0.5; cursor: default; }
.cartb em { font-style: normal; color: var(--ac); font-variant-numeric: tabular-nums; }

/* Frame */
.fr {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  max-width: 1360px;
  margin: 0 auto;
}

.mn { min-width: 0; }

.nav {
  position: sticky;
  top: 72px;
  align-self: start;
  padding: 24px 0 24px 16px;
  display: grid;
  gap: 2px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--tx2);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav small {
  margin-left: auto;
  color: var(--tx3);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.nav a:hover { color: var(--tx); background: var(--s1); }
.nav a[aria-current] { background: var(--s2); color: var(--tx); font-weight: 600; }
.nav a[aria-current] .ni { color: var(--ac); }
.nav .ni { display: flex; }

main { padding: 36px 28px 72px 36px; }

.stale {
  margin: 24px 28px 0 36px;
  padding: 12px 16px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--s1);
  color: var(--tx);
  font-size: 0.95rem;
}

.nojs { padding: 36px; }

.foot {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--tx2);
  font-size: 0.92rem;
  display: grid;
  gap: 6px;
}

.foot a, .hint a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover, .hint a:hover { color: var(--ac); }

/* Home */
.hero h1 {
  font: 600 clamp(2.3rem, 5vw, 3.7rem)/1.02 var(--disp);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 b { color: var(--ac); font-weight: 600; }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  padding: 0;
  margin-top: 18px;
  color: var(--tx2);
  font-size: 1.06rem;
}

.steps li { display: flex; gap: 10px; align-items: center; }

.steps span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--s2);
  color: var(--tx);
  font-size: 0.84rem;
  font-weight: 600;
}

.feat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.fc {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 22px;
  background: radial-gradient(120% 120% at 0 0, #ffffff0f, #0000 60%), var(--s1);
  transition: border-color 0.18s, transform 0.18s;
}

.fc:hover { border-color: var(--line2); transform: translateY(-2px); }
.fc .who { display: flex; align-items: center; gap: 12px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.fc .who small { display: block; color: var(--tx2); font-weight: 400; font-size: 0.9rem; }
.fc .pr { font-size: 3.6rem; letter-spacing: -0.045em; }

.pr {
  font: 600 1.12rem/1 var(--disp);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pr sup {
  font-size: 0.55em;
  vertical-align: 0.62em;
  line-height: 0;
  color: var(--tx2);
  margin-right: 0.06em;
  font-weight: 500;
}

/* Icon tiles */
.ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--s2);
  color: var(--tx);
  font-size: 1.08rem;
  flex: none;
}

.ic.lg { position: relative; overflow: hidden; background: #fff; }
.ic.lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic.lg.site img { width: 64%; height: 64%; object-fit: contain; }

.ic.lg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff24;
}

/* Lists */
.sec { margin-top: 48px; }

.sec-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.sec h2 { font: 600 1.35rem/1.2 var(--disp); letter-spacing: -0.02em; }

.all { color: var(--tx2); font-weight: 600; font-size: 0.95rem; padding: 6px 0; white-space: nowrap; }
.all:hover { color: var(--ac); }

.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.sv {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px 13px 13px;
  border-radius: 16px;
  background: var(--s1);
  border: 1px solid #0000;
  transition: background 0.15s, border-color 0.15s;
}

.sv:hover { background: var(--s2); border-color: var(--line2); }
.sv b { display: block; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.sv small { color: var(--tx2); font-size: 0.89rem; overflow-wrap: anywhere; }
.sv .frm { text-align: right; }
.sv .frm small { display: block; font-size: 0.78rem; color: var(--tx3); line-height: 1.2; }

.pg h1 {
  font: 600 clamp(1.8rem, 3.4vw, 2.5rem)/1.08 var(--disp);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.pg > p, .sub { color: var(--tx2); margin-top: 6px; }
.pg { margin-bottom: 24px; }
.pg .go { width: auto; padding: 0 28px; margin-top: 18px; }
.none { color: var(--tx2); padding: 12px 0; }

.cr {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--tx3);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.cr a { color: var(--tx2); padding: 4px 0; }
.cr a:hover { color: var(--tx); text-decoration: underline; text-underline-offset: 4px; }

/* Service page */
.sg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 24px;
  align-items: start;
}

.svh { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.svh .pg { margin: 0; min-width: 0; }
.svh .sub { max-width: 62ch; margin-top: 4px; overflow-wrap: anywhere; }
.svh .ic { width: 60px; height: 60px; border-radius: 16px; font-size: 1.45rem; }

.plans {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
  padding: 0;
}

.pl {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.12s;
}

.pl + .pl { border-top: 1px solid var(--line); }
.pl:hover, .pl.on { background: var(--s2); }
.pl input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pl b { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pl small { display: block; color: var(--tx2); font-size: 0.9rem; }
.pl .pr { font-size: 1.4rem; }

.rd {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  display: grid;
  place-items: center;
}

.pl.on .rd { border-color: var(--ac); }

.pl.on .rd::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ac);
}

.pl input:focus-visible + .rd { outline: 2px solid var(--ac); outline-offset: 2px; }

.buy {
  position: sticky;
  top: 92px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 116px);
  max-height: calc(100dvh - 116px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) #0000;
  min-width: 0;
}

.buy > .pr { font-size: 3.4rem; letter-spacing: -0.045em; }
.buy h2 { font: 600 1.12rem/1.3 var(--body); overflow-wrap: anywhere; }
.buy h2 small { display: block; color: var(--tx2); font-weight: 400; font-size: 0.95rem; }

.fx { display: grid; gap: 12px; list-style: none; padding: 0; }

.fx li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.97rem;
}

.fx svg { color: var(--tx3); margin-top: 0.2em; }
.fx li > span { overflow-wrap: anywhere; }

/* The warranty bar, drawn the same in both engines */
.fx progress {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: var(--line);
  color: var(--tx2);
}

.fx progress::-webkit-progress-bar { background: var(--line); border-radius: 9px; }
.fx progress::-webkit-progress-value { background: var(--tx2); border-radius: 9px; }
.fx progress::-moz-progress-bar { background: var(--tx2); border-radius: 9px; }

.go {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  background: var(--ac);
  color: var(--ac-ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  transition: filter 0.15s;
}

.go:hover { filter: brightness(1.07); }

.ds { color: var(--tx2); font-size: 0.97rem; border-top: 1px solid var(--line); padding-top: 18px; }
.ds h3 { color: var(--tx); font: 600 1.05rem/1.3 var(--body); margin: 2px 0 8px; }

.nt { list-style: none; padding: 0; display: grid; gap: 10px; }
.nt li { position: relative; padding-left: 18px; overflow-wrap: anywhere; }

.nt li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tx3);
}

.fine { color: var(--tx3); font-size: 0.86rem; max-width: 66ch; margin-top: 26px; }

.mb { display: none; }

/* Cart */
dialog.cart {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  width: min(430px, 100%);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  background: var(--s1);
  color: var(--tx);
  overflow: hidden;
}

dialog.cart[open] { animation: slide-in 0.22s cubic-bezier(0.2, 0.8, 0.3, 1); }
dialog.cart::backdrop { background: #05070ab8; }

@keyframes slide-in { from { transform: translateX(32px); opacity: 0.4; } }

.dr {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.dr header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.dr h2 { font: 600 1.3rem/1 var(--disp); letter-spacing: -0.02em; }

.cl {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--tx2);
}

.cl:hover { background: var(--s2); color: var(--tx); }

.cs { overflow-y: auto; padding: 4px 24px; }
.cs .none { padding: 18px 0; }

.nts {
  list-style: none;
  padding: 12px 14px;
  margin: 16px 0 4px;
  display: grid;
  gap: 8px;
  background: var(--s2);
  border: 1px solid var(--line2);
  border-radius: 12px;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.ls { list-style: none; padding: 0; }

.ls li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.ls li > span:nth-child(2) { overflow-wrap: anywhere; }
.ls li .qt { grid-column: 2; }
.ls b { font-weight: 600; }
.ls small { display: block; color: var(--tx2); font-size: 0.91rem; }
.ls .pr { text-align: right; }

.qt {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line2);
  border-radius: 11px;
  width: fit-content;
}

.qt button { width: 38px; height: 36px; display: grid; place-items: center; color: var(--tx2); }
.qt button:hover { color: var(--tx); }
.qt span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.ft {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.tt { display: flex; justify-content: space-between; align-items: baseline; color: var(--tx2); }
.tt .pr { font-size: 2.2rem; color: var(--tx); }
.ft .go { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hint { color: var(--tx2); font-size: 0.92rem; text-align: center; }
.hint.ok { color: var(--tx); font-weight: 600; }
.ft .hint + .hint { margin-top: -6px; }

.pv summary { cursor: pointer; color: var(--tx2); font-size: 0.92rem; padding: 7px 0; display: list-item; list-style-position: inside; }

.pv pre {
  margin-top: 8px;
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  font: 0.82rem/1.55 ui-monospace, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 190px;
  overflow-y: auto;
}

/* Toast */
.toast {
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: fit-content;
  bottom: 26px;
  z-index: 60;
  background: var(--tx);
  color: #10141a;
  border-radius: 14px;
  padding: 12px 14px 12px 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
  box-shadow: 0 18px 40px #000a;
  max-width: calc(100% - 32px);
}

.toast span { min-width: 0; overflow-wrap: anywhere; }
.toast button { background: #10141a; color: #fff; border-radius: 9px; padding: 8px 12px; min-height: 36px; white-space: nowrap; }

@media (max-width: 1020px) {
  .sg { grid-template-columns: minmax(0, 1fr); }
  .buy { position: static; max-height: none; }
}

@media (max-width: 760px) {
  .hd { flex-wrap: wrap; height: auto; gap: 12px; padding: 12px 16px; position: static; }
  .brand { width: auto; flex: 1; min-width: 0; }
  .find { order: 3; flex-basis: 100%; max-width: none; }
  .cartb { margin-left: 0; min-height: 42px; padding: 0 13px; }

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

  .nav {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .nav a { white-space: nowrap; border: 1px solid var(--line); min-height: 40px; padding: 0 14px 0 12px; gap: 8px; }
  .nav small { display: none; }
  .nav a[aria-current] { border-color: var(--line2); }

  .stale { margin: 16px 16px 0; }
  .nojs { padding: 20px 16px; }
  .foot { padding: 20px 16px 34px; }
  main { padding: 26px 16px 40px; }

  .feat { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 24px; }
  .fc { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 15px 16px; border-radius: 16px; gap: 12px; }
  .fc .pr { font-size: 2.1rem; }
  .list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sec { margin-top: 38px; }
  .steps { flex-direction: column; }
  .svh .ic { width: 52px; height: 52px; }
  .pl { padding: 15px 16px; gap: 12px; }
  .buy { padding: 20px; }
  .buy > .pr, .buy > .go { display: none; }

  .mb {
    position: sticky;
    bottom: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--s1);
    border-top: 1px solid var(--line);
    margin: 24px -16px -40px;
  }

  .mb .pr { font-size: 1.8rem; }
  .mb .go { min-height: 50px; flex: 1; }

  dialog.cart { border-left: 0; }
  .toast { bottom: 84px; }
}

/* A short screen: the whole cart scrolls rather than squeezing the list */
@media (max-height: 560px) {
  dialog.cart { overflow-y: auto; }
  .dr { height: auto; display: block; }
  .cs { overflow: visible; }
}

/* With the preview open the list would be squeezed, so on a short screen the whole cart scrolls */
@media (max-height: 760px) {
  dialog.cart:has(details[open]) { overflow-y: auto; }
  dialog.cart:has(details[open]) .dr { height: auto; display: block; }
  dialog.cart:has(details[open]) .cs { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (scripting: none) {
  .boot { display: none; }
}
