/* Landing of the decision matrix app. Visual system "Kaalukoda": limestone page, peat ink, one cranberry
   accent, matrix cells as the motif and a dark peat band for the verdicts. Fonts are self-hosted
   (SIL OFL, see /assets/fonts). */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Red Hat Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Red Hat Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --stone: #f3f2ef;
  --grid: #e4e1dc;
  --card: #ffffff;
  --peat: #2a2220;
  --peat-soft: #4a403c;
  --soft: #5e5552;
  --line: #dcd7d2;
  --cranberry: #a3213f;
  --cranberry-dark: #7e1530;
  --cranberry-light: #e0577a;
  --cranberry-tint: #f6dee4;
  --moss: #4c6b22;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--stone); color: var(--peat); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cranberry-dark); text-underline-offset: 3px; }
a:hover { color: var(--cranberry); }
:focus-visible { outline: 3px solid var(--cranberry); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: manual; }
p, li, dd, td, th, summary { overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--peat); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--stone); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--peat); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.2px; }
.nav { list-style: none; display: flex; gap: 4px 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--peat); text-decoration: none; font-weight: 500; display: inline-block; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cranberry); }

/* Hero */
.hero { background-image: linear-gradient(var(--grid) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--grid) 1.5px, transparent 1.5px); background-size: 64px 64px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: start; }
.hero-copy { padding: 72px 0 64px; }
.kicker { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cranberry-dark); margin: 0 0 14px; }
h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -1.2px; margin: 0 0 22px; }
h1 span { display: block; }
.accent { color: var(--cranberry); }
.lead { font-size: 19px; color: var(--soft); margin: 0 0 28px; max-width: 620px; }
.hero-actions { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.text-link { font-weight: 700; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.facts li { font-family: var(--mono); font-weight: 500; font-size: 14px; background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 3px; }
.hero-shot { align-self: stretch; display: flex; justify-content: center; }

/* Screens */
.shot { margin: 0; }
.shot img { width: 100%; background: var(--card); }
.shot.hang { width: 100%; max-width: 380px; position: relative; }
.shot.hang img { border: 7px solid var(--peat); border-top: 0; border-radius: 0 0 26px 26px; box-shadow: 16px 16px 0 var(--cranberry); max-height: 640px; object-fit: cover; object-position: top; aspect-ratio: 480 / 820; }
.shot.framed { max-width: 340px; width: 100%; justify-self: center; }
.shot.framed img { border: 6px solid var(--peat); border-radius: 22px; box-shadow: 12px 12px 0 var(--cranberry-tint); }

/* Play button */
.play { display: inline-flex; align-items: center; gap: 12px; background: var(--peat); color: #fff; text-decoration: none; padding: 12px 20px 12px 16px; border-radius: 6px; min-height: 56px; }
.play:hover { background: var(--cranberry-dark); color: #fff; }
.play-soon { background: var(--card); color: var(--peat); border: 1.5px dashed var(--peat-soft); cursor: default; }
.play-cells { display: inline-flex; gap: 3px; }
.play-cells i { display: block; width: 8px; height: 8px; border-radius: 1px; background: var(--cranberry-light); }
.play-cells i:nth-child(2) { opacity: 0.7; }
.play-cells i:nth-child(3) { opacity: 0.4; }
.play-soon .play-cells i { background: var(--cranberry); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 13px; opacity: 0.85; }
.play-big { font-weight: 800; font-size: 18px; }

/* Sections */
.section-title { font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.6px; margin: 0 0 16px; }
.section-lead { color: var(--soft); max-width: 680px; margin: 0 0 28px; }

.steps { padding: 72px 0; }
.step-row { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1.5px solid var(--peat); background: var(--card); }
.step { padding: 20px 18px 22px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step-n { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 13px; color: #fff; background: var(--cranberry); padding: 2px 7px; border-radius: 2px; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.step p { margin: 0; color: var(--soft); font-size: 15.5px; }

.features { padding: 24px 0 72px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }
.feature.flip .shot { order: 1; }
.feature-label { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cranberry-dark); display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.cell { width: 9px; height: 9px; background: var(--cranberry); border-radius: 1px; display: inline-block; }
.feature h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.4px; margin: 0 0 12px; }
.feature p { color: var(--soft); margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; background: var(--peat); border-radius: 1px; box-shadow: 3px 3px 0 var(--cranberry-light); }

.formula { background: var(--peat); color: var(--stone); padding: 72px 0; }
.formula-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.formula h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; margin: 0 0 14px; }
.formula .lead { color: #cfc7c2; }
.formula-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--peat-soft); }
.formula-list div { padding: 16px 0; border-bottom: 1px solid var(--peat-soft); display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 16px; }
.formula-list dt { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--cranberry-light); }
.formula-list dd { margin: 0; }

.templates { padding: 72px 0 40px; }
.matrix-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1.5px solid var(--peat); }
.matrix-table th, .matrix-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix-table thead th { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); background: var(--stone); border-bottom: 1.5px solid var(--peat); }
.matrix-table tbody th { font-weight: 800; width: 34%; }
.matrix-table td { color: var(--soft); }

.private { padding: 40px 0 72px; }
.private-grid { list-style: none; padding: 0; margin: 24px 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.private-grid li { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--moss); padding: 18px; border-radius: 3px; }
.private-grid h3 { margin: 0 0 4px; font-size: 18px; }
.private-grid p { margin: 0; color: var(--soft); font-size: 15.5px; }

.closing { background: var(--cranberry-tint); border-top: 1px solid var(--line); padding: 56px 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.closing h2 { font-weight: 800; font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; }
.closing p { margin: 0; }

/* Text pages */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(32px, 4.6vw, 48px); }
.strip { height: 9px; margin: 0 0 24px; background-image: linear-gradient(90deg, var(--cranberry) 9px, transparent 9px), linear-gradient(90deg, var(--line) 9px, transparent 9px); background-size: 9px 9px, 15px 9px; background-repeat: no-repeat, repeat-x; background-position: 0 0, 15px 0; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p { margin: 0 0 12px; }
.small { font-size: 14px; color: var(--soft); }
.guide { list-style: none; padding: 0; margin: 8px 0 48px; display: grid; gap: 0; border-top: 1.5px solid var(--peat); }
.guide li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide-n { font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--cranberry); }
.guide h2 { font-size: 20px; margin: 0 0 4px; }
.guide p { margin: 0; color: var(--soft); }
.faq { display: grid; gap: 8px; margin-bottom: 40px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 48px; }
.faq details p { margin: 0 0 14px; color: var(--soft); }

/* Footer */
.foot { background: var(--peat); color: var(--stone); padding: 36px 0; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 8px; }
.foot-name { margin: 0; font-weight: 800; }
.foot-small { margin: 0; font-size: 14px; color: #cfc7c2; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.foot-links a { color: var(--stone); display: inline-block; padding: 6px 0; }
.foot-links a:hover { color: var(--cranberry-light); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { padding: 48px 0 36px; }
  .hero-shot { padding-bottom: 0; }
  .shot.hang img { max-height: 520px; }
  .step-row { grid-template-columns: minmax(0, 1fr); }
  .step { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; }
  .step:first-child { border-top: 0; }
  .step-n { grid-row: span 2; align-self: start; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 44px 0; }
  .feature.flip .feature-text { order: 1; }
  .feature.flip .shot { order: 2; }
  .formula-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .private-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1, h2, h3 { hyphens: auto; }
  .wrap { padding: 0 16px; }
  .brand span { font-size: 16px; }
  .nav { gap: 2px 16px; }
  .lead { font-size: 17px; }
  .formula-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .private-grid { grid-template-columns: minmax(0, 1fr); }
  .matrix-table thead { display: none; }
  .matrix-table, .matrix-table tbody, .matrix-table tr, .matrix-table th, .matrix-table td { display: block; width: 100%; }
  .matrix-table tbody th { width: 100%; padding: 12px 12px 2px; border-bottom: 0; }
  .matrix-table td { padding: 0 12px 12px; }
  .shot.hang img { box-shadow: 10px 10px 0 var(--cranberry); }
  .guide li { grid-template-columns: 40px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
