/* Glansværk Bilpleje — demo site made by Webdrift. Fictional business. */

@font-face {
  font-family: "Fira Sans XC";
  src: url("fonts/fira-sans-extra-condensed-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans XC";
  src: url("fonts/fira-sans-extra-condensed-cyrillic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Fira Sans XC";
  src: url("fonts/fira-sans-extra-condensed-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans XC";
  src: url("fonts/fira-sans-extra-condensed-cyrillic-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-cyrillic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-cyrillic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ground: #13161a;
  --panel: #1b1f24;
  --raise: #252a31;
  --line: #363d46;
  --control: #717a85;
  --ink: #eef1ef;
  --mute: #a7afb7;
  --wax: #f3c63f;
  --wax-deep: #d9a91c;
  --wax-ink: #1b1602;
  --slip: #efece3;
  --slip-ink: #1a1d20;
  --slip-mute: #5b6068;
  --slip-line: #cfc9ba;
  --bad: #ff9a8a;

  --display: "Fira Sans XC", "Arial Narrow", sans-serif;
  --body: "Fira Sans", system-ui, sans-serif;
  --shell: min(1180px, 100% - 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: 48px; /* room for the fixed demo strip */
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--wax); color: var(--wax-ink); }
html { scrollbar-color: var(--line) var(--ground); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 0.95; letter-spacing: -0.005em; text-wrap: balance; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wax); outline-offset: 3px; border-radius: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Demo strip — always on screen, says whose example this is */
.demo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px -10px rgba(0, 0, 0, 0.6);
  background: var(--wax); color: var(--wax-ink);
  font-size: 14.5px; line-height: 1.3;
}
.demo .shell { display: flex; align-items: center; gap: 14px; min-height: 44px; padding-block: 6px; }
.demo p { flex: 1; }
.demo b { font-weight: 700; }
.demo .short { display: none; }
.demo a {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 36px; padding: 4px 14px; border-radius: 99px;
  background: var(--wax-ink); color: var(--wax);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.demo a:hover { background: #3a3008; }
.demo a:focus-visible { outline-color: var(--wax-ink); }
.demo svg { width: 14px; height: 14px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .shell { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.mark strong { font: 800 30px/1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.mark span { font-size: 14px; color: var(--mute); letter-spacing: 0.04em; }
.top nav { display: flex; gap: 26px; font-size: 16px; }
.top nav a { text-decoration: none; color: var(--mute); padding-block: 10px; transition: color 0.2s; }
.top nav a:hover { color: var(--ink); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; font-size: 14px; font-weight: 700; }
.langs a { text-decoration: none; padding: 11px 13px; line-height: 16px; border-radius: 99px; color: var(--mute); }
.langs a[aria-current] { background: var(--ink); color: var(--ground); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--wax); color: var(--wax-ink);
  font: 800 21px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 1px 0 #fff6 inset, 0 10px 24px -12px #000c;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #ffd95c; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: 18px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--raise); }
.btn[disabled] { background: var(--raise); color: #9aa3ab; cursor: not-allowed; box-shadow: none; }

/* Hero — a lacquered panel under workshop light tubes */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero .shell { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 6vw, 84px); }
.lak { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.lak .tubes { transform-origin: 70% 40%; animation: sweep 1.8s var(--ease) both; }
@keyframes sweep { from { transform: translate3d(-9%, -3%, 0) skewX(-4deg); opacity: 0.25; } }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 6rem); font-weight: 800; text-transform: uppercase; max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--wax); }
.hero .lead { margin-top: 22px; max-width: 46ch; font-size: clamp(18px, 2.1vw, 21px); color: #d3d8dc; }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero .acts span { color: var(--mute); font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 46px 0 0; padding: 18px 0 0; border-top: 1px solid #ffffff26; list-style: none; font-size: 16px; color: #d3d8dc; }
.facts b { font-weight: 700; color: var(--ink); }

section { padding-block: clamp(64px, 9vw, 112px); }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.head h2 { font-size: clamp(2.6rem, 6.4vw, 4.2rem); text-transform: uppercase; }
.head p { max-width: 58ch; color: var(--mute); }

/* Price list — rows, not cards */
.prices {
  list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto auto; column-gap: 32px;
}
.prices li {
  display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; row-gap: 12px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.prices .kr { justify-self: end; }
.prices h3 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.prices .time { display: block; margin-top: 8px; font: 400 15px/1.3 var(--body); color: var(--mute); letter-spacing: 0; }
.prices p { color: #c6ccd1; font-size: 16px; }
.prices .kr { font: 700 clamp(2rem, 3.4vw, 2.6rem)/1 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices .kr small { font: 400 15px/1 var(--body); color: var(--mute); margin-right: 6px; }
.note { margin-top: 20px; color: var(--mute); font-size: 15.5px; max-width: 70ch; }

/* Booking */
.book { background: var(--panel); border-block: 1px solid var(--line); }
.bookgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { display: flex; gap: 6px; margin: 0 0 30px; padding: 0; list-style: none; }
.steps li { flex: 1; padding-top: 12px; border-top: 3px solid var(--line); font-size: 14.5px; color: var(--mute); transition: border-color 0.3s, color 0.3s; }
.steps li b { display: block; font: 700 22px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 4px; }
.steps li.on { border-color: var(--wax); color: var(--ink); }
.steps li.done { border-color: var(--wax-deep); color: #cfd4d8; }
.minisum { display: none; margin: -12px 0 24px; color: var(--mute); }
.minisum b { color: var(--ink); font: 700 24px/1 var(--display); margin-left: 6px; font-variant-numeric: tabular-nums; }
.pane[hidden] { display: none; }
.pane { animation: pane 0.45s var(--ease); }
@keyframes pane { from { opacity: 0; transform: translateX(14px); } }
.pane h3 { font-size: clamp(2rem, 4vw, 2.7rem); text-transform: uppercase; margin-bottom: 20px; }
.pane h3:focus { outline: none; }
.pane h4 { margin: 28px 0 12px; font: 700 16px/1.2 var(--body); color: var(--mute); }

.opts { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--control); border-radius: 6px; background: var(--ground);
  transition: border-color 0.2s, background 0.2s;
}
.opt span b { font-weight: 700; }
.opt span i { font-style: normal; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt:hover span { border-color: #a3acb5; }
.opt input:checked + span { border-color: var(--wax); background: #2a2512; box-shadow: inset 0 0 0 1px var(--wax); }
.opt input:checked + span i { color: var(--wax); }
.opt input:focus-visible + span { outline: 2px solid var(--wax); outline-offset: 3px; }

.days, .slots { display: grid; gap: 8px; }
.days { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
.slots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.chip {
  min-height: 52px; padding: 8px 6px; border: 1px solid var(--control); border-radius: 6px; background: var(--ground); cursor: pointer;
  font-variant-numeric: tabular-nums; text-align: center; line-height: 1.2;
  transition: border-color 0.2s, background 0.2s;
}
.chip small { display: block; font-size: 13.5px; color: var(--mute); text-transform: capitalize; }
.chip:hover:not([disabled]) { border-color: #a3acb5; }
.chip[aria-pressed="true"] { border-color: var(--wax); background: var(--wax); color: var(--wax-ink); font-weight: 700; }
.chip[aria-pressed="true"] small { color: #4a3c06; }
.chip[disabled] { color: #6f7780; background: transparent; border-color: var(--line); border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.empty { color: var(--mute); padding: 14px 0; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 15.5px; font-weight: 600; }
.field label i { font-style: normal; font-weight: 400; color: var(--mute); }
.field input {
  width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--control); border-radius: 6px; background: var(--ground);
  caret-color: var(--wax); transition: border-color 0.2s;
}
.field input::placeholder { color: #8d959d; }
.field input:hover { border-color: #a3acb5; }
.field input:focus { outline: 2px solid var(--wax); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 14.5px; min-height: 1.2em; }
.privacy { margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 6px; color: var(--mute); font-size: 15px; }
.nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.done-mark { width: 54px; height: 54px; margin-bottom: 20px; color: var(--wax); }
.done p { max-width: 52ch; color: #cfd4d8; }
.done p + p { margin-top: 12px; }
.done strong { color: var(--ink); }

/* Work slip — the order as the workshop would print it */
.slip {
  position: sticky; top: 24px;
  background: var(--slip); color: var(--slip-ink);
  padding: 26px 24px 30px; border-radius: 3px;
  box-shadow: 0 30px 50px -28px #000, 0 2px 0 #fff inset;
  transform: rotate(0.6deg);
  --mask: radial-gradient(circle at 7px 100%, #0000 5px, #000 5.5px) -7px 0 / 14px 100%;
  -webkit-mask: var(--mask); mask: var(--mask);
}
.slip h3 { font-size: 30px; text-transform: uppercase; letter-spacing: 0.02em; }
.slip .no { margin-top: 4px; font-size: 14px; color: var(--slip-mute); font-variant-numeric: tabular-nums; }
.slip dl { margin: 18px 0 0; }
.slip dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--slip-line); font-size: 16px; }
.slip dt { color: var(--slip-mute); flex: none; }
.slip dd { margin: 0; text-align: right; font-weight: 600; }
.slip dd.blank { font-weight: 400; font-style: italic; color: var(--slip-mute); }
.slip .sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--slip-ink); }
.slip .sum span { font-weight: 700; }
.slip .sum b { font: 800 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.slip .fine { margin-top: 12px; font-size: 13.5px; color: var(--slip-mute); }

/* How it goes */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.flow li { counter-increment: s; padding: 26px 28px 0 0; }
.flow li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.flow li::before { content: counter(s); display: block; font: 800 64px/0.9 var(--display); color: var(--wax); margin-bottom: 14px; }
.flow h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 10px; }
.flow p { color: #c6ccd1; font-size: 16.5px; max-width: 34ch; }

/* Hours */
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: #d3d8dc; }
.hours tr.shut td { color: var(--mute); }
.pitch { padding: 28px; border-radius: 6px; background: var(--raise); }
.pitch h3 { font-size: 34px; text-transform: uppercase; margin-bottom: 12px; }
.pitch p { color: #cfd4d8; margin-bottom: 22px; max-width: 44ch; }

footer { border-top: 1px solid var(--line); padding-block: 34px 44px; color: var(--mute); font-size: 15.5px; }
footer .shell { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; }
footer p { max-width: 62ch; }
footer a { color: var(--ink); }

@media (max-width: 900px) {
  .top nav { display: none; }
  .bookgrid { grid-template-columns: 1fr; }
  .slip { position: static; transform: none; order: 2; }
  .minisum { display: block; }
  .prices { grid-template-columns: 1fr auto; column-gap: 16px; }
  .prices p { grid-column: 1 / -1; grid-row: 2; }
  .prices .btn { grid-column: 1 / -1; justify-self: start; }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li + li { padding: 22px 0; border-left: 0; }
  .flow li + li { border-top: 1px solid var(--line); }
  .where { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { padding-bottom: 56px; }
  body { font-size: 16.5px; }
  :root { --shell: calc(100% - 32px); }
  .demo .shell { gap: 10px; }
  .demo .long { display: none; }
  .demo .short { display: inline; }
  .demo a { min-height: 44px; }
  .mark span { display: none; }
  .top .shell { gap: 12px; min-height: 64px; }
  .top .btn { display: none; }
  .fields { grid-template-columns: 1fr; }
  .steps li span { display: none; }
  .hero .acts .btn { width: 100%; }
  .nav .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lak .tubes, .pane { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
