/* Skissen – built on the Skissen design system (tokens.json, README.md). Components use tokens only. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Tokens */
:root {
  color-scheme: light;
  --canvas: #f5f0e8;
  --canvas-raised: #fdfbf7;
  --sand: #e9e0d3;
  --ink: #1f1b17;
  --ink-muted: #6a6159;
  --hairline: #d8cec0;
  --line-strong: #857b6e;
  --terracotta: #b8451f;
  --on-terracotta: #fff6ef;
  --terracotta-soft: #f2dacd;
  --sage: #8e9c80;
  --on-sage: #1f1b17;
  --sage-soft: #dee4d5;
  --moss: #2f3a2d;
  --on-moss: #f5f0e8;
  --focus-ring: var(--terracotta);
  --danger: #a8352a;
  --shadow-lift: 0 12px 32px -12px rgba(31, 27, 23, .22);

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --content: 1200px;
  --gutter: var(--space-12);
  --section: var(--space-24);
  --ease: ease-out;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #15130f;
    --canvas-raised: #1e1b16;
    --sand: #2a2620;
    --ink: #f3ede4;
    --ink-muted: #a9a094;
    --hairline: #3a332b;
    --line-strong: #7a7267;
    --terracotta: #e07048;
    --on-terracotta: #15130f;
    --terracotta-soft: #3b2419;
    --on-sage: #15130f;
    --sage-soft: #2a3327;
    --moss: #cfd8c6;
    --on-moss: #15130f;
    --danger: #e2695c;
    --shadow-lift: 0 12px 32px -12px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #15130f;
  --canvas-raised: #1e1b16;
  --sand: #2a2620;
  --ink: #f3ede4;
  --ink-muted: #a9a094;
  --hairline: #3a332b;
  --line-strong: #7a7267;
  --terracotta: #e07048;
  --on-terracotta: #15130f;
  --terracotta-soft: #3b2419;
  --on-sage: #15130f;
  --sage-soft: #2a3327;
  --moss: #cfd8c6;
  --on-moss: #15130f;
  --danger: #e2695c;
  --shadow-lift: 0 12px 32px -12px rgba(0, 0, 0, .7);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 25px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 2px var(--canvas); }

.wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-3); top: -60px; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--ink); color: var(--canvas); border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-3); }

/* Type */
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-4); }
.display, .h1, .h2 { font-family: var(--font-display); font-weight: 400; color: var(--ink); text-wrap: balance; }
.display { font-size: 80px; line-height: .95; letter-spacing: -.015em; }
.h1 { font-size: 56px; line-height: 1; letter-spacing: -.01em; }
.h2 { font-size: 36px; line-height: 1.1; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--terracotta); }
.h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.lead { font-size: 19px; line-height: 28px; max-width: 60ch; }
.cap { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); margin-top: var(--space-3); }
.fine { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.fine a { color: inherit; text-underline-offset: 3px; }
.head { max-width: 440px; }
.head .lead, .head > p:not(.eyebrow) { margin-top: var(--space-6); }

/* Knapp */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 600 14px/20px var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), filter .2s var(--ease), text-decoration-color .2s var(--ease);
}
.btn--primary { background: var(--terracotta); color: var(--on-terracotta); }
.btn--primary:hover { filter: brightness(.92); }
.btn--secondary { background: var(--canvas); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--sand); }
.btn--quiet { height: auto; padding: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.btn--quiet:hover { text-decoration-color: var(--terracotta); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-8); }

/* Kort */
.card { background: var(--canvas-raised); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-6); transition: background-color .2s var(--ease); }
.card:hover { background: var(--sand); }
.card .eyebrow { margin-bottom: var(--space-3); }
.card .h3 { margin-bottom: var(--space-2); }
.card p:not(.eyebrow) { max-width: 68ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }

/* Kulorchip */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.kchip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  width: 88px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.kchip .sw { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--c); box-shadow: inset 0 0 0 1px var(--hairline); }
.kchip[aria-pressed="true"] .sw { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.kchip .name { display: block; font: 500 14px/18px var(--font-sans); color: var(--ink); }
.kchip .meta { display: block; font: 500 12px/16px var(--font-sans); color: var(--ink-muted); }
.kchip:hover .meta { color: var(--ink); }
.kchip:focus-visible { outline: none; box-shadow: none; }
.kchip:focus-visible .sw { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.chips .eyebrow { width: 100%; margin-bottom: 0; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: var(--canvas); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.header.is-scrolled { border-bottom-color: var(--hairline); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 76px; }
.lockup { display: block; color: var(--ink); text-decoration: none; }
.lockup svg { width: auto; height: 36px; }
.nav { display: flex; gap: var(--space-8); }
.nav a { font: 600 14px/20px var(--font-sans); text-decoration: none; color: var(--ink); text-underline-offset: 6px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--terracotta); }

/* Hero: copy left, rendering bleeding past the grid on the right */
.hero {
  display: grid;
  grid-template-columns: max(var(--gutter), calc((100% - var(--content)) / 2)) minmax(0, calc(440px + var(--space-16))) minmax(0, 1fr);
  align-items: center;
  padding: clamp(var(--space-12), 7vw, var(--space-32)) 0;
}
.hero-copy { grid-column: 2; grid-row: 1; padding-right: var(--space-16); }
.hero-copy .lead { margin-top: var(--space-6); }
.hero-copy .fine { margin-top: var(--space-4); max-width: 40ch; }
.hero-media { grid-column: 3; grid-row: 1; min-width: 0; }
.hero-media .stack { border-radius: var(--radius-xl) 0 0 var(--radius-xl); aspect-ratio: 16 / 11; }
.hero-pick { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-4) var(--space-8); margin-top: var(--space-6); padding-right: var(--gutter); }
.hero-pick .cap { margin-top: 0; max-width: 32ch; }

.stack { position: relative; overflow: hidden; background: var(--sand); }
.stack picture { position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease); }
.stack picture.is-on { opacity: 1; }
.stack img { width: 100%; height: 100%; object-fit: cover; }

/* Image blocks */
.media picture { border-radius: var(--radius-xl); overflow: hidden; background: var(--sand); aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--flush { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); align-items: center; }
.split--top { align-items: start; }
.section-head { margin-bottom: var(--space-12); }

/* Stats */
.stats { border-bottom: 1px solid var(--hairline); border-top: 1px solid var(--hairline); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: var(--space-8) var(--space-6) var(--space-8) 0; }
.stat + .stat { padding-left: var(--space-6); border-left: 1px solid var(--hairline); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.stat span { display: block; margin-top: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); max-width: 24ch; }

/* Kitchens */
.kok-text .btn { margin-top: var(--space-8); }
.kok-text .fine { margin-top: var(--space-6); max-width: 44ch; }
.fronts { display: grid; grid-template-columns: repeat(9, 1fr); gap: var(--space-2); margin-top: var(--space-12); }
.fronts li { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.fronts img { width: 64%; max-width: 88px; }
.fronts span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); text-align: center; }

/* Before / after */
.ba-text .chips { margin-top: var(--space-8); }
.ba { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-xl); background: var(--sand); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba picture, .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: var(--space-4); padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); background: var(--canvas-raised); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); pointer-events: none; }
.ba-tag--before { left: var(--space-4); }
.ba-tag--after { right: var(--space-4); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--canvas); pointer-events: none; }
.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 64px;
  margin: -32px 0 0 -14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  box-shadow: var(--shadow-lift);
}
.ba-handle span::before { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 24px; margin: -12px 0 0 -2px; border-radius: var(--radius-pill); background: var(--ink); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:has(.ba-range:focus-visible) .ba-handle span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Steps */
.step .shot { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand); margin-bottom: var(--space-6); }
.step .shot img { width: 100%; height: 100%; object-fit: cover; }
.step .eyebrow { color: var(--terracotta); }

/* Light (moss panel) */
.ljus { background: var(--moss); color: var(--on-moss); }
.ljus .eyebrow { color: var(--on-moss); opacity: .78; }
.ljus .h1 { color: var(--on-moss); }
.ljus .h1 em { color: var(--terracotta-soft); }
.ljus .cap { color: var(--on-moss); opacity: .78; }

/* Features */
.cards .ic { width: 24px; height: 24px; margin-bottom: var(--space-4); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Own home (sage-soft panel) */
.egen { background: var(--sage-soft); border-radius: var(--radius-xl); padding: var(--space-12); }
.form { margin-top: var(--space-8); max-width: 520px; }
.form-row { display: flex; gap: var(--space-2); }
.form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--canvas-raised);
  font: 400 16px/24px var(--font-sans);
  color: var(--ink);
}
.form input::placeholder { color: var(--ink-muted); }
.form input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; box-shadow: none; }
.form-msg { min-height: 20px; margin-top: var(--space-3); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.form-msg.is-error { color: var(--danger); }
.form .fine { margin-top: var(--space-2); }
.form.is-done .form-row { display: none; }

.plan-fig .cap { text-align: right; }
.plan { width: 100%; height: auto; overflow: visible; }
.plan-walls line { stroke: var(--ink); stroke-linecap: butt; }
.plan-thin line, .plan-thin path { stroke: var(--ink); stroke-width: 1; fill: none; }
.plan-thin path { stroke-width: .9; }
.plan-labels text { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); text-anchor: middle; }
.plan-labels .plan-area { font-weight: 500; letter-spacing: .02em; text-transform: none; fill: var(--ink-muted); }
.plan-dims line { stroke: var(--ink-muted); stroke-width: .8; }
.plan-dims text { font-family: var(--font-sans); font-size: 11px; font-weight: 500; fill: var(--ink-muted); text-anchor: middle; }

/* FAQ */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { position: relative; padding: var(--space-6) var(--space-12) var(--space-6) 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: var(--space-2); top: 50%; width: 16px; height: 1.75px; margin-top: -1px; border-radius: 1px; background: var(--ink); transition: transform .2s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 var(--space-12) var(--space-6) 0; max-width: 68ch; }
.faq a { text-underline-offset: 3px; }

/* Final CTA */
.final { padding: var(--space-32) 0; }

/* Footer */
.footer { background: var(--moss); color: var(--on-moss); padding: var(--space-16) 0 var(--space-12); }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8) var(--space-12); align-items: start; }
.footer .lockup { color: var(--on-moss); }
.footer-in > div p { margin-top: var(--space-4); }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); }
.footer nav a { font: 600 14px/20px var(--font-sans); color: var(--on-moss); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color .2s var(--ease); }
.footer nav a:hover { text-decoration-color: currentColor; }
.footer .fine { grid-column: 1 / -1; padding-top: var(--space-6); border-top: 1px solid currentColor; color: var(--on-moss); opacity: .78; }

/* Simple pages */
.page { padding-top: var(--space-24); padding-bottom: var(--space-24); }
.prose { max-width: 760px; }
.prose .h2 { margin: var(--space-12) 0 var(--space-3); }
.prose p { max-width: 68ch; }
.prose p + p { margin-top: var(--space-3); }
.prose .lead { margin-top: var(--space-6); }
.prose .fine { margin-top: var(--space-12); }

/* Mobile sticky CTA */
.sticky-cta { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .fronts { grid-template-columns: repeat(5, 1fr); }
  .fronts li:nth-child(n+6) { display: none; }
}
@media (max-width: 999px) {
  :root { --gutter: var(--space-6); --section: var(--space-16); }
  .nav { display: none; }
  .display { font-size: 64px; }
  .h1 { font-size: 48px; }
  .hero { grid-template-columns: 1fr; row-gap: var(--space-8); padding-top: var(--space-8); }
  .hero-copy { grid-column: 1; grid-row: 1; padding: 0 var(--gutter); }
  .hero-media { grid-column: 1; grid-row: 2; padding-left: var(--gutter); }
  .head { max-width: 560px; }
  .split { grid-template-columns: 1fr; gap: var(--space-8); }
  .cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .egen { padding: var(--space-8); }
  .plan-fig { order: -1; }
}
@media (max-width: 700px) {
  :root { --gutter: var(--space-4); }
  .header-in { height: 64px; }
  .lockup svg { height: 30px; }
  .display { font-size: 56px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .lead { font-size: 17px; line-height: 26px; }
  .btn { height: 44px; }
  .hero-media { padding-left: 0; }
  .hero-media .stack { border-radius: 0; aspect-ratio: 4 / 3; }
  .hero-pick { padding: 0 var(--gutter); }
  .chips { gap: var(--space-3); }
  .kchip { width: 76px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: var(--space-4); }
  .stat strong { font-size: 48px; }
  .stat { padding: var(--space-6) var(--space-3) var(--space-6) 0; }
  .stat + .stat { padding-left: var(--space-3); }
  .stat:nth-child(3) { padding-left: 0; }
  .fronts { grid-template-columns: repeat(3, 1fr); }
  .fronts li:nth-child(n+4) { display: none; }
  .media picture, .ba { border-radius: var(--radius-lg); }
  .egen { padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg); }
  .form-row { flex-direction: column; }
  .form input[type="email"] { flex: none; }
  .form .btn { width: 100%; }
  .plan-labels, .plan-dims { display: none; }
  .faq summary { padding-right: var(--space-8); }
  .faq details p { padding-right: 0; }
  .final { padding: var(--space-16) 0; }
  .footer-in { grid-template-columns: 1fr; }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    box-shadow: var(--shadow-lift);
    transform: translateY(110%);
    transition: transform .2s var(--ease);
  }
  .sticky-cta .btn { width: 100%; }
  .sticky-cta.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
