/* ============================================================
   SKAPSJEKK — LANDING
   Editorial Nordic Pantry
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surface */
  --paper: #F4EFE5;
  --paper-warm: #FAF6EC;
  --paper-deep: #ECE5D5;
  --paper-edge: #E5DFD0;
  --paper-shadow: rgba(58, 47, 24, 0.08);

  /* Ink */
  --ink: #1A1F1C;
  --ink-soft: #4A504C;
  --ink-mid: #6F716A;
  --ink-faint: #A6A498;
  --ink-rule: #D4CCB8;
  --ink-hairline: #E5DFD0;

  /* Brand */
  --teal: #0F4744;
  --teal-deep: #0A2E2C;
  --teal-soft: #D8E2DE;
  --ochre: #B8893E;
  --ochre-deep: #8B6328;
  --ochre-soft: #EFE0C2;
  --tomato: #B84D3D;
  --moss: #4D7244;

  /* Categories — same as app */
  --cat-meieri: #D9B764;
  --cat-fisk: #486B8A;
  --cat-frukt: #C45F2C;
  --cat-gronnsaker: #4D7244;
  --cat-kjott: #B84D3D;

  /* Urgency */
  --urg-fresh: #5A8050;
  --urg-soon: #C9A040;
  --urg-near: #C77735;
  --urg-critical: #A2392B;

  /* Type */
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spatial */
  --r-sm: 6px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadows */
  --sh-sm: 0 2px 6px rgba(58, 47, 24, 0.06);
  --sh-md: 0 14px 32px rgba(58, 47, 24, 0.10), 0 3px 8px rgba(58, 47, 24, 0.05);
  --sh-lg: 0 30px 60px rgba(20, 15, 10, 0.20), 0 10px 24px rgba(20, 15, 10, 0.10);
  --sh-device: 0 40px 80px rgba(20, 15, 10, 0.22), 0 12px 28px rgba(20, 15, 10, 0.12), 0 2px 4px rgba(20, 15, 10, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1340px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

::selection { background: var(--teal); color: var(--paper-warm); }

/* ---------- Grain & paper texture ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.paper-edge {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, transparent 60%, rgba(58,47,24,0.08) 100%),
    radial-gradient(ellipse 80% 60% at 50% 0%, transparent 60%, rgba(58,47,24,0.06) 100%);
}

/* ---------- Typography helpers ---------- */
.mono { font-family: var(--mono); }
.serif { font-family: var(--display); }

.meta-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-block;
}
.meta-line--soft { color: var(--ink-mid); font-style: italic; text-transform: none; letter-spacing: 0.08em; font-family: var(--display); font-size: 14px; }

.rule { display: inline-block; height: 1px; background: var(--ink); }
.rule--short { width: 36px; vertical-align: middle; margin-right: 12px; opacity: 0.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  isolation: isolate;
}
.btn--primary {
  background: var(--teal);
  color: var(--paper-warm);
  box-shadow: 0 6px 18px rgba(15,71,68,0.25), 0 1px 2px rgba(15,71,68,0.20);
}
.btn--primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,71,68,0.30), 0 2px 4px rgba(15,71,68,0.20);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  border: 1px solid var(--ink-rule);
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper-warm); border-color: var(--ink); }
.btn--small { padding: 9px 16px; font-size: 13px; }
.btn--large { padding: 18px 30px; font-size: 17px; font-weight: 600; }
.btn--xl { padding: 22px 38px; font-size: 19px; font-weight: 600; }
.btn--link {
  padding: 8px 0;
  background: none;
  color: var(--ink-soft);
  border-radius: 0;
  border-bottom: 1px solid var(--ink-rule);
  font-style: italic;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}
.btn--link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Section number stamps ---------- */
.section-num {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  color: var(--ink-mid);
  margin-bottom: 22px;
}
.section-num > span:first-child {
  font-family: var(--display);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  color: var(--teal);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.section-num__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  top: -6px;
}
.section-num--light > span:first-child { color: var(--ochre-deep); }

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--paper-warm);
  padding: 11px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--teal-deep);
}
.ticker__track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-left: 28px;
}
.ticker__track > span:nth-child(odd) { color: var(--ochre-soft); }
.ticker__track > span:nth-child(even) { color: var(--paper-deep); opacity: 0.6; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 229, 0.85);
  border-bottom: 1px solid var(--ink-hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: padding 0.4s var(--ease), background 0.3s var(--ease);
}
.masthead__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.4s var(--ease);
}
.masthead.is-condensed .masthead__inner { padding-top: 10px; padding-bottom: 10px; }
.masthead.is-condensed { background: rgba(244, 239, 229, 0.95); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.wordmark__mark { color: var(--teal); }
.wordmark__text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.wordmark__beta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  background: var(--ochre);
  color: var(--paper-warm);
  padding: 3px 7px;
  border-radius: 4px;
  position: relative;
  top: -1px;
}
.masthead__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.masthead__nav > a:not(.btn) {
  position: relative;
  transition: color 0.2s var(--ease);
}
.masthead__nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.masthead__nav > a:not(.btn):hover { color: var(--ink); }
.masthead__nav > a:not(.btn):hover::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .masthead__nav > a:not(.btn) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 60px var(--gutter) 80px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: auto auto auto auto auto;
  column-gap: 48px;
  row-gap: 28px;
  position: relative;
}
.hero__meta {
  grid-column: 1 / 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
}
.hero__title {
  grid-column: 1 / 2;
  grid-row: 2;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  margin-top: -8px;
}
.hero__title-line { display: block; }
.hero__title-line--italic {
  font-style: italic;
  color: var(--teal);
  margin-left: 0.18em;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  position: relative;
  display: inline-block;
}
.hero__title-line--italic::after {
  content: '';
  position: absolute;
  left: -3%; right: -3%;
  bottom: 8%;
  height: 0.18em;
  background: var(--ochre-soft);
  z-index: -1;
  transform: skewY(-1.2deg);
  border-radius: 4px;
}
.hero__title-line:last-child {
  font-weight: 400;
}
.hero__lede {
  grid-column: 1 / 2;
  grid-row: 3;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32em;
  margin-top: 20px;
}
.hero__lede em {
  font-family: var(--display);
  font-style: italic;
  color: var(--teal);
  font-weight: 500;
}
.hero__cta {
  grid-column: 1 / 2;
  grid-row: 4;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero__marginalia {
  grid-column: 1 / 2;
  grid-row: 5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  max-width: 380px;
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-mid);
  font-size: 15px;
  line-height: 1.5;
}
.marginalia__arrow {
  color: var(--ochre);
  flex-shrink: 0;
  transform: translateY(-4px);
}
.hero__device {
  grid-column: 2 / 3;
  grid-row: 1 / 6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 540px;
}
.hero__footrule {
  grid-column: 1 / -1;
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 28px;
  border-top: 1px dashed var(--ink-rule);
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__device {
    grid-column: 1;
    grid-row: 6;
    min-height: 620px;
    margin-top: 32px;
  }
  .hero__footrule { grid-row: 7; }
}

/* ============================================================
   PHONE DEVICE — shared mockup frame
   ============================================================ */
.device {
  position: relative;
  width: 320px;
  flex-shrink: 0;
  filter: drop-shadow(0 30px 50px rgba(20,15,10,0.20)) drop-shadow(0 6px 12px rgba(20,15,10,0.10));
}
.device__shell {
  position: relative;
  background: linear-gradient(160deg, #2a2826 0%, #1a1816 100%);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 1.5px #3a3633,
    inset 0 2px 4px rgba(255,255,255,0.06),
    inset 0 -2px 4px rgba(0,0,0,0.4);
}
.device__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #0a0807;
  border-radius: 14px;
  z-index: 3;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.device__notch::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1816 0%, #0a0807 70%);
  box-shadow: inset 0 0 1px rgba(80,80,80,0.4);
}
.device__screen {
  position: relative;
  background: var(--paper);
  border-radius: 36px;
  overflow: hidden;
  height: 640px;
  display: flex;
  flex-direction: column;
}
.device__fab {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper-warm);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(15,71,68,0.40), 0 2px 4px rgba(15,71,68,0.20);
  z-index: 4;
}
.device--hero {
  width: 340px;
  transform: rotate(2.5deg) translateY(0);
  transition: transform 0.6s var(--ease);
}
.device--hero:hover { transform: rotate(0deg) translateY(-6px); }

/* ---------- Status bar ---------- */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 6px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}
.status-bar__time { font-variant-numeric: tabular-nums; }
.status-bar__icons { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }

/* ============================================================
   APP UI MINI-SYSTEM (inside mockups)
   ============================================================ */

/* Header */
.ms-header {
  padding: 16px 22px 14px;
  flex-shrink: 0;
}
.ms-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ms-header__greet {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 2px;
}
.ms-header__title {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ms-header--alt { padding-top: 18px; }
.ms-header__title--big {
  font-size: 36px;
  line-height: 0.95;
}
.ms-header__title--big em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}
.ms-header__title-accent { color: var(--ochre); font-style: italic; font-weight: 400; }
.ms-header__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  text-transform: uppercase;
  margin-top: 8px;
}
.ms-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-bottom: 10px;
}
.ms-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-warm);
  color: var(--ink-soft);
  border: 1px solid var(--ink-hairline);
}
.ms-icon-btn--back {
  position: absolute;
  top: 50px;
  left: 16px;
  z-index: 5;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}

.ms-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ms-tabs::-webkit-scrollbar { display: none; }
.ms-tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid var(--ink-hairline);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ms-tab span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mid);
  background: var(--paper-deep);
  padding: 1px 6px;
  border-radius: 999px;
}
.ms-tab--active {
  background: var(--ink);
  color: var(--paper-warm);
  border-color: var(--ink);
}
.ms-tab--active span { background: rgba(255,255,255,0.18); color: var(--paper-warm); }

/* Stats row */
.ms-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 16px;
  flex-shrink: 0;
}
.ms-stat { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.ms-stat__num {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.ms-stat__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.ms-stat__sep {
  width: 1px;
  height: 28px;
  background: var(--ink-hairline);
}

/* Sections + items */
.ms-section {
  padding: 14px 22px 4px;
  flex-shrink: 0;
}
.ms-section__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink-hairline);
}
.ms-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot, var(--teal));
}
.ms-section__title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.ms-section__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mid);
}

.ms-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.ms-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--paper-warm);
  border: 1px solid var(--ink-hairline);
  flex-shrink: 0;
}
.ms-item__icon--meieri { background: rgba(217,183,100,0.14); border-color: rgba(217,183,100,0.35); }
.ms-item__icon--frukt { background: rgba(196,95,44,0.10); border-color: rgba(196,95,44,0.30); }
.ms-item__icon--gronnsaker { background: rgba(77,114,68,0.10); border-color: rgba(77,114,68,0.30); }

.ms-item__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ms-item__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-item__meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}

/* Urgency pills */
.urg {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.urg--fresh { background: rgba(90,128,80,0.12); color: var(--urg-fresh); }
.urg--soon { background: rgba(201,160,64,0.16); color: #8A6B26; }
.urg--near { background: rgba(199,119,53,0.16); color: var(--urg-near); }
.urg--critical { background: var(--urg-critical); color: var(--paper-warm); }

/* Detail screen */
.ms-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ms-detail__hero {
  height: 220px;
  background: var(--bg, var(--cat-meieri));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.ms-detail__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
}
.ms-detail__emoji { font-size: 96px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15)); }
.ms-detail__badge { position: absolute; top: 16px; right: 16px; }
.ms-detail__body {
  flex: 1;
  padding: 22px 22px 24px;
  background: var(--paper);
  margin-top: -18px;
  border-radius: 22px 22px 0 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}
.ms-detail__cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 6px;
}
.ms-detail__name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.05;
}
.ms-detail__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--ink-hairline);
}
.ms-detail__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-hairline);
  font-size: 13px;
}
.ms-detail__row span:first-child {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.ms-detail__row span:last-child {
  font-weight: 500;
  color: var(--ink);
}
.ms-detail__suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ms-detail__suggest-label {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mid);
  margin-right: 4px;
}
.ms-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
}

/* Stack screen (snart slutt) */
.ms-stack {
  padding: 14px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ms-stack__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--paper-warm);
  border-radius: 14px;
  border-left: 4px solid currentColor;
}
.ms-stack__item--critical { color: var(--urg-critical); background: rgba(162,57,43,0.06); }
.ms-stack__item--near { color: var(--urg-near); }
.ms-stack__item--soon { color: var(--urg-soon); }
.ms-stack__item--ok { color: var(--urg-fresh); }
.ms-stack__left { display: flex; flex-direction: column; gap: 2px; }
.ms-stack__day {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: currentColor;
}
.ms-stack__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.ms-stack__act {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Recipes screen */
.ms-recipes {
  padding: 14px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ms-recipe {
  background: var(--paper-warm);
  border: 1px solid var(--ink-hairline);
  border-radius: 16px;
  padding: 14px 16px;
}
.ms-recipe__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 8px;
}
.ms-recipe__match {
  background: var(--teal);
  color: var(--paper-warm);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ms-recipe__match--partial { background: var(--ochre); }
.ms-recipe__name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.2;
}
.ms-recipe__has {
  font-style: italic;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.ms-recipe__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ms-recipe__chips span {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ---------- AI mockup screen ---------- */
.ms-ai-screen {
  background:
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(15,71,68,0.10), transparent 60%),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(184,137,62,0.10), transparent 60%),
    var(--paper);
}
.ms-eyebrow--ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.ai-spark {
  display: inline-grid;
  place-items: center;
  color: var(--ochre);
  animation: aiSpin 5s linear infinite;
}
@keyframes aiSpin {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
}

.ms-ai-card {
  margin: 14px 22px 0;
  background: var(--ink);
  color: var(--paper-warm);
  border-radius: 18px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,71,68,0.18);
}
.ms-ai-card__shimmer {
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(120deg, var(--ochre) 0%, transparent 30%, transparent 70%, var(--teal-soft) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}
.ms-ai-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 8px;
  font-weight: 600;
}
.ms-ai-card__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.15;
  color: var(--paper-warm);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.ms-ai-card__row {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-deep);
  opacity: 0.85;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.ms-ai-card__row strong {
  font-family: var(--display);
  font-size: 14px;
  color: var(--paper-warm);
  font-weight: 500;
  font-style: italic;
  margin-right: 4px;
  letter-spacing: 0;
}
.ms-ai-uses { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ms-ai-uses__label {
  width: 100%;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-soft);
  margin-bottom: 4px;
}
.ms-pill--ai {
  background: rgba(216,226,222,0.14);
  color: var(--paper-warm);
  font-size: 10px;
  padding: 4px 8px;
}
.ms-pill--ai em {
  font-family: var(--display);
  font-style: italic;
  color: var(--ochre);
  font-weight: 400;
  font-size: 10px;
  margin-left: 3px;
}

.ms-ai-actions {
  display: flex;
  gap: 8px;
  padding: 14px 22px 8px;
}
.ms-ai-btn {
  flex: 1;
  padding: 11px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.01em;
}
.ms-ai-btn--primary { background: var(--teal); color: var(--paper-warm); }
.ms-ai-btn--ghost { background: var(--paper-warm); color: var(--ink); border: 1px solid var(--ink-hairline); }

.ms-ai-foot {
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 6px;
  padding: 0 22px 10px;
}

/* ---------- Hero stamps ---------- */
.stamp {
  position: absolute;
  font-family: var(--mono);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}
.stamp--exp {
  top: 50px;
  right: -28px;
  border: 2.5px solid var(--tomato);
  color: var(--tomato);
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(184,77,61,0.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  transform: rotate(8deg);
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 11px;
  opacity: 0.85;
}
.stamp__date {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-style: italic;
}
.stamp__line--small { font-size: 8px; opacity: 0.8; }

.stamp--sticker {
  bottom: 50px;
  left: -38px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: var(--ochre);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  transform: rotate(-12deg);
  box-shadow: 0 10px 22px rgba(184,137,62,0.38);
  font-family: var(--display);
  border: 2px dashed rgba(255,255,255,0.4);
  background-clip: padding-box;
}
.stamp__sticker-text {
  display: block;
  font-size: 30px;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.01em;
}
.stamp__sticker-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.75;
}

@media (max-width: 980px) {
  .stamp--exp { right: 8px; }
  .stamp--sticker { left: 8px; bottom: 40px; }
}

/* ============================================================
   RECEIPT SECTION
   ============================================================ */
.receipt-section {
  padding: 80px var(--gutter) 100px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.receipt-wrap {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 40px;
}
.receipt-section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.receipt-section__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  font-weight: 500;
}

.receipt {
  background: var(--paper-warm);
  width: min(100%, 460px);
  padding: 36px 32px 40px;
  font-family: var(--mono);
  color: var(--ink);
  position: relative;
  box-shadow: var(--sh-md);
  font-size: 13px;
  line-height: 1.7;
  transform: rotate(-1deg);
}
.receipt::before, .receipt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  background-repeat: repeat-x;
  background-size: 16px 12px;
}
.receipt::before {
  top: -12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'><polygon points='0,12 8,0 16,12' fill='%23FAF6EC'/></svg>");
}
.receipt::after {
  bottom: -12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'><polygon points='0,0 8,12 16,0' fill='%23FAF6EC'/></svg>");
}

.receipt__head { text-align: center; }
.receipt__logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.receipt__store { font-size: 11px; letter-spacing: 0.12em; margin-top: 2px; }
.receipt__addr { font-size: 11px; opacity: 0.7; margin-top: 2px; }

.receipt__hr {
  border-top: 1px dashed var(--ink-rule);
  margin: 12px 0;
}
.receipt__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.8;
}

.receipt__list { display: flex; flex-direction: column; gap: 4px; }
.receipt__list li {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
}
.receipt__list li > span:first-child { white-space: nowrap; }
.receipt__list .dots {
  flex: 1;
  border-bottom: 1px dotted var(--ink-rule);
  transform: translateY(-3px);
  min-width: 12px;
}
.receipt__list .check {
  font-family: var(--display);
  color: var(--teal);
  font-size: 16px;
  font-weight: 600;
}

.receipt__totals { display: flex; flex-direction: column; gap: 2px; }
.receipt__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.receipt__row--bold {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--ink-rule);
}

.receipt__foot {
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}
.receipt__foot p { margin: 2px 0; }
.receipt__barcode { margin-top: 14px; color: var(--ink); display: block; width: 100%; }
.receipt__barcode svg { width: 100%; display: block; }
.receipt__org { margin-top: 8px; opacity: 0.6; font-size: 10px; }

/* ============================================================
   MANIFEST
   ============================================================ */
.manifest {
  padding: 100px var(--gutter) 100px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.manifest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 60px;
  align-items: start;
}
.manifest__head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  grid-column: 1;
}
.manifest__strike {
  position: relative;
  font-style: italic;
  color: var(--ink-mid);
}
.manifest__strike::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 55%;
  height: 3px;
  background: var(--tomato);
  transform: skewY(-2deg);
}
.manifest__body {
  grid-column: 2;
  font-family: var(--display);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 38em;
  font-weight: 400;
}
.manifest__body p { font-feature-settings: 'kern' 1, 'liga' 1; }
.dropcap {
  float: left;
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  color: var(--teal);
  font-size: 5em;
  line-height: 0.85;
  padding: 6px 18px 0 0;
  margin-right: 4px;
  font-feature-settings: 'lnum' 1;
}
.manifest__sign {
  font-family: var(--display);
  color: var(--ink-mid);
  font-size: 16px;
}
.manifest__note {
  grid-column: 1;
  margin-top: 30px;
  padding: 18px 22px;
  border: 1px dashed var(--ochre);
  background: var(--ochre-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 380px;
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  border-radius: 4px;
  transform: rotate(-0.6deg);
}
.manifest__note-pin { color: var(--ochre-deep); font-size: 18px; flex-shrink: 0; }

@media (max-width: 880px) {
  .manifest__grid { grid-template-columns: 1fr; gap: 40px; }
  .manifest__body { grid-column: 1; }
  .manifest__note { grid-column: 1; }
}

/* ============================================================
   PARADE — mockup strip
   ============================================================ */
.parade {
  padding: 80px 0 100px;
  background: var(--paper-deep);
  border-top: 1px solid var(--ink-hairline);
  border-bottom: 1px solid var(--ink-hairline);
  position: relative;
  overflow: hidden;
}
.parade::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, transparent 39px, rgba(58,47,24,0.04) 39px, rgba(58,47,24,0.04) 40px);
  pointer-events: none;
}
.parade__head {
  max-width: var(--max);
  margin: 0 auto 60px;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
.parade__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.parade__title em {
  font-style: italic;
  color: var(--teal);
  font-weight: 300;
}
.parade__lede {
  font-family: var(--display);
  font-size: clamp(17px, 1.4vw, 22px);
  color: var(--ink-soft);
  font-style: italic;
  max-width: 30em;
  line-height: 1.5;
}

.parade__strip {
  display: flex;
  gap: 48px;
  padding: 60px var(--gutter) 80px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  position: relative;
  z-index: 1;
  align-items: flex-start;
}
.parade__strip::-webkit-scrollbar { display: none; }

.parade__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 320px;
  margin: 0;
}
.parade__item--a .device { transform: rotate(-3deg); }
.parade__item--b .device { transform: rotate(1.5deg); }
.parade__item--c .device { transform: rotate(-1.5deg); }
.parade__item--d .device { transform: rotate(2.8deg); }

.parade__item .device { transition: transform 0.6s var(--ease); }
.parade__item:hover .device { transform: rotate(0) translateY(-8px); }

.parade__cap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 320px;
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}
.parade__cap-num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 0.9;
  color: var(--teal);
  font-style: normal;
  flex-shrink: 0;
  border-bottom: 2px solid var(--ochre);
  padding: 0 6px 2px;
}

.parade__hint {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin: 0 var(--gutter);
}

/* ============================================================
   FOR DEG SOM
   ============================================================ */
.for-deg {
  padding: 100px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.for-deg__inner { max-width: 900px; margin: 0 auto; }
.for-deg__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 50px;
}
.for-deg__title em {
  font-style: italic;
  color: var(--ochre);
  font-weight: 300;
}
.for-deg__list {
  display: flex;
  flex-direction: column;
}
.for-deg__list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--ink-hairline);
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.for-deg__list li:last-child { border-bottom: 1px solid var(--ink-hairline); }
.for-deg__list li:hover {
  background: var(--paper-warm);
  padding-left: 12px;
}
.for-deg__list li em {
  font-style: italic;
  color: var(--teal);
  font-weight: 500;
}
.for-deg__list .num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ochre-deep);
  font-weight: 500;
}

/* ============================================================
   BIG QUOTE
   ============================================================ */
.quote-section {
  padding: 100px var(--gutter) 120px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.big-quote {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  margin: 0;
  align-items: start;
  position: relative;
}
.big-quote__mark {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.7;
  color: var(--ochre);
  font-weight: 300;
}
.big-quote__mark--open { align-self: start; transform: translateY(-10px); }
.big-quote__mark--close { align-self: end; transform: translateY(20px); color: var(--teal); }
.big-quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.big-quote blockquote em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}
.big-quote figcaption {
  grid-column: 2;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.big-quote__cite {
  color: var(--ink);
  font-weight: 600;
}
.big-quote__role { font-weight: 400; opacity: 0.75; }
.big-quote__cite::before {
  content: '— ';
  color: var(--ochre);
}

@media (max-width: 760px) {
  .big-quote { grid-template-columns: auto 1fr; }
  .big-quote__mark--close { display: none; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 100px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.features__head { margin-bottom: 50px; max-width: 720px; }
.features__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--ink-hairline);
  border: 1px solid var(--ink-hairline);
}

.feat {
  background: var(--paper);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  grid-column: span 2;
  transition: background 0.4s var(--ease);
}
.feat:hover { background: var(--paper-warm); }
.feat--big { grid-column: span 3; padding: 44px 36px 40px; }
.feat--medium { grid-column: span 3; }
.feat--wide { grid-column: span 4; }
.feat--medium-dark { grid-column: span 4; }
.feat--dark {
  background: var(--ink);
  color: var(--paper-warm);
}
.feat--dark:hover { background: var(--teal-deep); }
.feat--dark .feat__num { color: var(--ochre); }
.feat--dark .feat__name { color: var(--paper-warm); }
.feat--dark .feat__desc { color: var(--paper-deep); }

.feat--ai {
  grid-column: span 6;
  padding: 50px 44px 46px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(184,137,62,0.18), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(216,226,222,0.20), transparent 60%),
    linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.feat--ai:hover {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(184,137,62,0.28), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(216,226,222,0.24), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--teal-deep) 100%);
}
.feat--ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1.4px at 20% 30%, var(--ochre-soft), transparent 2px),
    radial-gradient(circle 1px at 70% 60%, var(--ochre-soft), transparent 2px),
    radial-gradient(circle 1.6px at 85% 25%, var(--ochre-soft), transparent 2px),
    radial-gradient(circle 1px at 40% 80%, var(--ochre-soft), transparent 2px),
    radial-gradient(circle 1.2px at 60% 15%, var(--ochre-soft), transparent 2px);
  opacity: 0.5;
  pointer-events: none;
}
.feat--ai .feat__num { color: var(--ochre); }
.feat--ai .feat__name {
  color: var(--paper-warm);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.feat--ai .feat__name-spark {
  display: inline-grid;
  place-items: center;
  color: var(--ochre);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(216,226,222,0.20);
  animation: aiSpin 6s linear infinite;
}
.feat--ai .feat__desc {
  color: var(--paper-deep);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 56em;
}
.feat__tag--ai {
  background: var(--ochre);
  color: var(--ink);
  font-weight: 600;
}

.feat__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ochre-deep);
  font-weight: 600;
}
.feat__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
}
.feat--big .feat__name { font-size: clamp(28px, 3vw, 42px); font-style: italic; font-weight: 400; }
.feat__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.feat__tag {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ochre);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 4px;
}
.feat__tag--ghost {
  background: transparent;
  color: var(--ochre-soft);
  border: 1px solid var(--ochre-soft);
}

@media (max-width: 980px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feat,
  .feat--big,
  .feat--medium,
  .feat--wide,
  .feat--dark,
  .feat--medium-dark,
  .feat--ai { grid-column: span 2; }
  .feat--ai { padding: 36px 28px; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 100px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.pricing__inner { display: flex; flex-direction: column; align-items: center; gap: 36px; }

.pricetag {
  position: relative;
  background: var(--ochre-soft);
  width: min(100%, 380px);
  padding: 60px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border-radius: 6px;
  transform: rotate(-3deg);
  box-shadow: 0 18px 38px rgba(184,137,62,0.25), 0 4px 8px rgba(184,137,62,0.18);
  clip-path: polygon(50% 0%, 100% 14%, 100% 100%, 0% 100%, 0% 14%);
  font-family: var(--display);
}
.pricetag__hole {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ochre-deep), 0 0 0 1px rgba(0,0,0,0.05);
}
.pricetag::before {
  content: '';
  position: absolute;
  top: 35px; left: 50%;
  width: 1px; height: 200px;
  background: linear-gradient(to bottom, var(--ochre-deep) 0%, var(--ochre-deep) 60%, transparent 60%);
  transform-origin: top center;
  transform: translateX(-50%) rotate(8deg);
  z-index: -1;
}
.pricetag__top {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ochre-deep);
  font-weight: 600;
  margin-top: 8px;
}
.pricetag__price {
  font-size: 84px;
  line-height: 1;
  font-weight: 400;
  font-style: italic;
  color: var(--teal);
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}
.pricetag__sub {
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.pricetag__rule {
  width: 60%;
  height: 1px;
  border-bottom: 1px dashed var(--ochre-deep);
  margin: 6px 0 12px;
}
.pricetag__line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.pricing__after {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--ink-soft);
  max-width: 36em;
  line-height: 1.5;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  padding: 120px var(--gutter) 140px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.final::before, .final::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 60px;
  background: var(--ink-rule);
  transform: translateX(-50%);
}
.final::before { top: 0; }
.final::after { bottom: 60px; }

.final__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.final__title-accent {
  font-style: italic;
  color: var(--teal);
  font-weight: 300;
  display: block;
}
.final__lede {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink-soft);
}
.final__tip {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* ============================================================
   COLOPHON FOOTER
   ============================================================ */
.colophon {
  background: var(--ink);
  color: var(--paper-deep);
  padding: 80px var(--gutter) 0;
  position: relative;
}
.colophon__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.colophon__brand { display: flex; flex-direction: column; gap: 6px; }
.colophon__mark {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  color: var(--paper-warm);
  letter-spacing: -0.01em;
}
.colophon__motto {
  font-family: var(--display);
  font-style: italic;
  color: var(--ochre-soft);
  font-size: 18px;
}
.colophon__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 12px;
  font-weight: 600;
}
.colophon__col p, .colophon__col ul {
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper-deep);
}
.colophon__col ul li { margin-bottom: 6px; }
.colophon__col ul li a:hover { color: var(--ochre-soft); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.colophon__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-edge);
  text-transform: uppercase;
  margin-top: 30px;
  opacity: 0.7;
}

.colophon__signoff {
  text-align: center;
  padding: 50px 0 40px;
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(56px, 12vw, 160px);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--teal);
  opacity: 0.30;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 880px) {
  .colophon__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .colophon__brand { grid-column: 1 / -1; }
}

/* ============================================================
   ANIMATIONS — entrance choreography
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero__meta, .hero__title-line, .hero__lede, .hero__cta, .hero__marginalia {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.9s var(--ease) forwards;
  }
  .hero__meta { animation-delay: 0.05s; }
  .hero__title-line:nth-child(1) { animation-delay: 0.18s; }
  .hero__title-line:nth-child(2) { animation-delay: 0.30s; }
  .hero__title-line:nth-child(3) { animation-delay: 0.42s; }
  .hero__lede { animation-delay: 0.60s; }
  .hero__cta { animation-delay: 0.75s; }
  .hero__marginalia { animation-delay: 0.90s; }

  .hero__device {
    opacity: 0;
    animation: deviceIn 1.2s var(--ease) 0.40s forwards;
  }
  .stamp--exp {
    opacity: 0;
    animation: stampIn 0.6s var(--ease-spring) 1.2s forwards;
  }
  .stamp--sticker {
    opacity: 0;
    animation: stampIn 0.6s var(--ease-spring) 1.4s forwards;
  }

  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes deviceIn {
  from { opacity: 0; transform: translateY(40px) rotate(6deg); }
  to { opacity: 1; transform: translateY(0) rotate(2.5deg); }
}
@keyframes stampIn {
  0% { opacity: 0; transform: scale(1.3) rotate(20deg); }
  60% { opacity: 1; transform: scale(0.95) rotate(8deg); }
  100% { opacity: 0.85; transform: scale(1) rotate(8deg); }
}
.stamp--sticker { animation-name: stickerIn; }
@keyframes stickerIn {
  0% { opacity: 0; transform: scale(0.5) rotate(-30deg); }
  60% { opacity: 1; transform: scale(1.06) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(-12deg); }
}

/* ============================================================
   FOCUS / A11Y
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ============================================================
   RESPONSIVE — small adjustments
   ============================================================ */
@media (max-width: 540px) {
  .hero { padding: 40px var(--gutter) 60px; }
  .device { width: 280px; }
  .device--hero { width: 280px; }
  .device__screen { height: 560px; }
  .receipt { padding: 28px 22px 32px; }
  .receipt-section, .manifest, .for-deg, .features, .pricing, .quote-section { padding-top: 70px; padding-bottom: 70px; }
  .final { padding: 80px var(--gutter) 90px; }
  .colophon { padding: 60px var(--gutter) 0; }
  .colophon__signoff { padding: 30px 0 20px; }
}

/* ============================================================
   LEGAL — Personvern / Vilkår
   ============================================================ */
.legal {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px var(--gutter) 120px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.legal__head {
  display: grid;
  gap: 18px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink-hairline);
}
.legal__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal__eyebrow .rule {
  flex: 0 0 36px;
  height: 1px;
  background: var(--ink-rule);
}
.legal__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ink);
}
.legal__title em { font-style: italic; color: var(--ochre-deep); font-weight: 400; }
.legal__lede {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
  font-weight: 300;
}
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.legal__meta strong {
  color: var(--ink);
  font-weight: 500;
  margin-left: 8px;
  letter-spacing: 0.08em;
  text-transform: none;
  font-family: var(--body);
  font-size: 13px;
}

.legal__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px 56px;
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 16px;
  border-right: 1px solid var(--ink-hairline);
}
.legal__toc h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 8px;
  font-weight: 500;
}
.legal__toc a {
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.legal__toc a span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ochre-deep);
  letter-spacing: 0.1em;
}
.legal__toc a:hover { color: var(--ink); border-bottom-color: var(--ink-rule); }

.legal__sections {
  display: flex;
  flex-direction: column;
  gap: 56px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal__section { scroll-margin-top: 100px; }
.legal__section h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 18px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.legal__section h2 > span:first-child {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ochre-deep);
  letter-spacing: 0.1em;
  flex: 0 0 auto;
}
.legal__section h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 10px;
  letter-spacing: -0.005em;
}
.legal__section p { margin: 0 0 14px; }
.legal__section p:last-child { margin-bottom: 0; }
.legal__section ul {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal__section ul li {
  position: relative;
  padding-left: 22px;
}
.legal__section ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ochre);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.4;
}
.legal__section ul li strong {
  color: var(--ink);
  font-weight: 600;
}
.legal__section a {
  color: var(--teal);
  border-bottom: 1px solid var(--teal-soft);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease);
}
.legal__section a:hover { border-bottom-color: var(--teal); }
.legal__section em { color: var(--ink); font-style: italic; }
.legal__callout {
  margin: 20px 0;
  padding: 22px 26px;
  background: var(--paper-warm);
  border-left: 3px solid var(--ochre);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.legal__callout strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 16px;
}
.legal__data-table {
  margin: 16px 0 22px;
  border-top: 1px solid var(--ink-hairline);
}
.legal__data-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-hairline);
  font-size: 15px;
}
.legal__data-row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  font-weight: 500;
  padding-top: 2px;
}
.legal__data-row dd { margin: 0; color: var(--ink-soft); }

.legal__sign {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-hairline);
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-mid);
  font-size: 16px;
}

@media (max-width: 860px) {
  .legal { padding: 56px var(--gutter) 90px; gap: 40px; }
  .legal__body { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc {
    position: static;
    border-right: 0;
    padding-right: 0;
    padding: 16px 18px;
    background: var(--paper-warm);
    border-radius: var(--r);
    border: 1px solid var(--ink-hairline);
  }
  .legal__sections { gap: 44px; }
  .legal__section h2 { flex-direction: column; gap: 4px; }
  .legal__data-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
}
