/* Kvik Digital Passport — shared styles (teaser + landing page) */
/* Kvik brand font (Avenir Next LT Pro): Regular 400, Medium 500, Demi 600, Bold 700 */
@font-face { font-family: "Kvik Avenir Next"; src: url("/assets/fonts/kvik-avenir-next-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Kvik Avenir Next"; src: url("/assets/fonts/kvik-avenir-next-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Kvik Avenir Next"; src: url("/assets/fonts/kvik-avenir-next-demi.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Kvik Avenir Next"; src: url("/assets/fonts/kvik-avenir-next-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --bg: #F6F2ED;
  --surface: #FFFFFF;
  --ink: #1A1918;
  --ink-2: #4A4643;
  --muted: #7A746E;
  --line: #E4DDD5;
  --chip: #EFE9E2;
  --good: #2F6B4F;
  --good-bg: #E6F0EA;
  --bad: #A8321F;
  --bad-bg: #F7E7E3;
  --radius: 4px;
  --max: 1120px;
  --font: "Kvik Avenir Next", "Avenir Next", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Shared bits ---------- */
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 26px; letter-spacing: -0.04em; line-height: 1; text-decoration: none; }
.logo::after { content: ""; width: 0.72em; height: 0.72em; background: currentColor; display: inline-block; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 500; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* Country bar */
.origin-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; }
.origin-bar span { display: block; height: 100%; }
.origin-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.origin-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Teaser (iframe) ---------- */
body.teaser { background: transparent; }
.tz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 20px; }
.tz__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tz__head h2 { font-size: 22px; margin-top: 6px; }
.tz__head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tz__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tz__cell { background: var(--surface); padding: 16px; display: grid; gap: 6px; align-content: start; }
.tz__big { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.tz__big small { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
.tz__label { font-size: 13px; color: var(--ink-2); }
.tz__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tz__chips { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) { .tz__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tz { padding: 18px; } .tz__big { font-size: 26px; } .tz__foot .btn { width: 100%; } }

/* ---------- Landing page ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-head .tag { font-size: 13px; color: var(--muted); }

.hero { padding: 56px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.035em; margin: 10px 0 12px; }
.hero h1 span { font-weight: 400; color: var(--ink-2); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.hero__meta { display: grid; gap: 14px; justify-items: start; }
.hero__visual { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--swatch, #ddd); position: relative; overflow: hidden; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual .stripes { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 3px), rgba(0,0,0,.08) calc(25% - 3px) 25%); }
.variant-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.variant-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14px; }
.variant-switch a[aria-current="page"] { border-color: var(--ink); font-weight: 600; }
.passport-id { font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding-top: 36px; } }

.toc { position: sticky; top: 64px; z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; padding: 14px 12px; font-size: 14px; text-decoration: none; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 40px 0 8px; }
.facts > div { background: var(--surface); padding: 22px; }
.facts .tz__big { font-size: 36px; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

section.block { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
section.block:first-of-type { border-top: 0; }
.block__head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; margin-bottom: 32px; }
.block__head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 8px; }
.block__head p { color: var(--ink-2); font-size: 17px; align-self: end; max-width: 60ch; }
@media (max-width: 820px) { .block__head { grid-template-columns: 1fr; gap: 12px; } section.block { padding: 48px 0; } }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 18px; }
.card p, .card li { color: var(--ink-2); font-size: 15px; }
.card ul, .card ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.warranty { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.warranty .card { background: var(--ink); color: #fff; border-color: var(--ink); min-height: 200px; grid-template-rows: auto 1fr auto; }
.warranty .card p { color: rgba(255,255,255,.75); }
.warranty .years { font-size: 72px; font-weight: 600; letter-spacing: -0.04em; line-height: .9; }
.warranty .card .logo { font-size: 18px; justify-self: end; }
.warranty .card--muted { background: var(--surface); color: var(--ink); border-color: var(--line); }
.warranty .card--muted p { color: var(--ink-2); }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 75ch; }
.note a { color: var(--ink); }

.layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .layers { grid-template-columns: 1fr; } }
.layer-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.layer-table th, .layer-table td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.layer-table th { font-weight: 500; color: var(--muted); width: 34%; padding-right: 12px; }
.layer-table td strong { display: block; font-weight: 600; }
.layer-table td span { color: var(--ink-2); font-size: 14px; }

.origin { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.origin-list { list-style: none; margin: 0; padding: 0; }
.origin-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.origin-list li .bar { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.origin-list li .bar span { display: block; height: 100%; background: var(--ink); }
.origin-big { font-size: clamp(56px, 9vw, 104px); font-weight: 600; letter-spacing: -0.04em; line-height: .9; }
@media (max-width: 820px) { .origin { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 34px !important; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--chip); color: var(--ink); font-size: 12px; font-weight: 600; display: grid; place-items: center; }

.adj-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px 4px 5px; border-radius: 999px; justify-self: start; }
.adj-badge::before { width: 16px; height: 16px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 13px; line-height: 1; letter-spacing: 0; }
.adj-badge--adjust { --c: var(--good); color: var(--good); background: var(--good-bg); }
.adj-badge--adjust::before { content: "+"; }
.adj-badge--disassemble { --c: var(--bad); color: var(--bad); background: var(--bad-bg); }
.adj-badge--disassemble::before { content: "\2212"; }
.card--disassemble { border-color: #EBCFC8; }
.video-link { font-size: 14px; font-weight: 600; }

.cert { grid-template-columns: 64px 1fr; column-gap: 16px; }
.cert__mark { width: 64px; height: 64px; border-radius: var(--radius); background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 11px; text-align: center; padding: 4px; grid-row: span 2; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cert__mark--FSC { background: #2C5B3F; }
.cert__mark--PEFC { background: #3E6F3A; }
.cert__mark--Indoor { background: #4A6B86; }

.climate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.climate .card { min-height: 170px; }
.climate .tz__big { font-size: 48px; }
@media (max-width: 820px) { .climate { grid-template-columns: 1fr; } }

.avoid .card { border-left: 3px solid var(--bad); }
.info .card { border-left: 3px solid var(--line); }

.help { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 16px 0 64px; }
.help h2 { font-size: 28px; }
.help p { color: rgba(255,255,255,.75); margin-top: 6px; }
.help .btn { background: #fff; color: var(--ink); border-color: #fff; }
.help .btn:hover { background: transparent; color: #fff; }
.help .btn--ghost { background: transparent; color: #fff; }
.help .btn--ghost:hover { background: #fff; color: var(--ink); }
.help__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .help { padding: 28px 20px; } }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.state { padding: 80px 16px; text-align: center; color: var(--ink-2); }
.state h1 { font-size: 32px; margin-bottom: 10px; color: var(--ink); }
.state--teaser { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

@media print {
  .site-head, .toc, .help, .variant-switch, .btn { display: none !important; }
  body { background: #fff; }
  section.block { padding: 24px 0; break-inside: avoid; }
  .warranty .card { background: #fff; color: var(--ink); border-color: var(--ink); }
  .warranty .card p { color: var(--ink-2); }
}

/* Language picker + statutory card without a fixed number of years */
.site-head__right { display: flex; align-items: center; gap: 14px; }
.lang-switch select { font: 500 13px/1 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 30px 8px 12px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; max-width: 46vw; }
.lang-switch select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.warranty .years--word { font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 480px) { .site-head .tag { display: none; } }

/* Gallery: one row of equal-height images (each keeps its own proportions); stacked on phones */
.gallery { display: flex; gap: 16px; margin: 16px 0 8px; }
.gallery__item { margin: 0; flex: var(--r, 1.333) 1 0; min-width: 0; aspect-ratio: var(--r, 1.333); max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .gallery { flex-direction: column; } .gallery__item { flex: none; width: 100%; } }
.hero__visual img { position: absolute; inset: 0; }

/* Guide: tools + tip on the side, numbered steps along a line */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px; align-items: start; }
.guide__side { display: grid; gap: 16px; }
.card--tip { background: var(--chip); border-color: var(--chip); }
.guide__steps { list-style: none; margin: 0; padding: 0; counter-reset: gstep; display: grid; }
.guide__steps li { counter-increment: gstep; position: relative; padding: 0 0 26px 58px; min-width: 0; }
.guide__steps li::before { content: counter(gstep); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.guide__steps li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 6px; width: 2px; background: var(--line); }
.guide__steps li:last-child { padding-bottom: 0; }
.guide__steps li:last-child::after { display: none; }
.guide__steps h3 { font-size: 18px; margin-bottom: 4px; }
.guide__steps p { color: var(--ink-2); font-size: 15px; max-width: 62ch; }
@media (max-width: 820px) { .guide { grid-template-columns: 1fr; } }

/* Teaser v2: beige module, warranty as dark cards (as on the landing page), the other figures below */
:root { --beige: #EAE1D3; --beige-line: #DCD0BE; }
.tz--beige { background: var(--beige); border-color: var(--beige-line); }
.tz--beige .chip { background: rgba(255, 255, 255, .75); }
.tz--beige .tz__head .sub { color: var(--ink-2); }
.tz__warranty { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 12px; }
.tz__wcard { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.tz__wyears { font-size: 52px; font-weight: 600; letter-spacing: -0.04em; line-height: .95; margin-bottom: 8px; }
.tz__wtitle { font-size: 15px; font-weight: 600; }
.tz__wcovers { font-size: 13px; color: rgba(255, 255, 255, .72); }
.tz--beige .tz__grid { background: var(--beige-line); border-color: var(--beige-line); }
.tz__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tz__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tz__grid--1 { grid-template-columns: 1fr; }
@media (max-width: 760px) { .tz__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .tz__wyears { font-size: 40px; }
  .tz__wcard { padding: 14px 16px; }
  .tz__grid--3 { grid-template-columns: 1fr; }
  .tz__grid--3 .tz__cell { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; padding: 12px 16px; }
}

/* Kvik logo (image) in the landing page header */
.site-logo { display: inline-flex; align-items: center; line-height: 0; }
.site-logo img { height: 34px; width: auto; display: block; }
@media (max-width: 480px) { .site-logo img { height: 30px; } }

/* Key facts: room for a fifth, text-based figure (durability) */
.facts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
.fact--text { display: grid; align-content: start; gap: 8px; }
.fact__title { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 4px; }
.fact__value { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
  .facts > .fact--text:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Gallery: never taller than --gallery-h, centred when there are only one or two images */
.gallery { --gallery-h: 420px; justify-content: center; }
.gallery__item { max-width: calc(var(--gallery-h) * var(--r, 1.333)); }
@media (max-width: 700px) { .gallery__item { max-width: 100%; } }
