/* Navik Health website — self-hosted fonts, no cookies, no trackers. */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --pine: #0f2e22;      /* ink, headings, product panel */
  --paper: #f5f7f3;     /* page */
  --leaf: #1f7a56;      /* links, focus */
  --haldi: #e3a913;     /* turmeric — the range bar, used once */
  --stone: #56655e;     /* secondary text */
  --line: #d9e0da;      /* rules */
  --panel-text: #e8f0eb;
  --panel-muted: #9fb5aa;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--pine);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--pine); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--pine); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--pine); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--haldi); text-decoration-thickness: 2px; }

/* Home hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 1.5rem;
  max-width: 12.5ch;
  text-wrap: balance;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--pine); max-width: 36rem; margin: 0 0 2rem; }
.availability { margin: 0; color: var(--stone); font-size: 1rem; }
.availability strong { color: var(--pine); font-weight: 500; }

/* Product moment: an example estimate narrowing */
.estimate {
  background: var(--pine);
  color: var(--panel-text);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 24px 60px -30px rgba(15, 46, 34, 0.55);
}
.estimate .dish { font-weight: 700; font-size: 1.2rem; margin: 0 0 0.2rem; }
.estimate .dish-note { color: var(--panel-muted); margin: 0 0 1.4rem; font-size: 0.95rem; }
.q { margin: 0 0 1rem; }
.q-label { font-size: 0.95rem; color: var(--panel-muted); margin: 0 0 0.45rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.chips li { border: 1px solid rgba(232, 240, 235, 0.22); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.92rem; color: var(--panel-text); }
.chips li.on { background: var(--panel-text); color: var(--pine); border-color: var(--panel-text); font-weight: 500; }

.range { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(232, 240, 235, 0.16); }
.range-figure { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 0.8rem; }
.range-figure .kcal { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.range-figure .was { color: var(--panel-muted); font-size: 0.92rem; text-align: right; }
.track { position: relative; height: 12px; border-radius: 999px; background: rgba(232, 240, 235, 0.12); overflow: hidden; }
.band {
  position: absolute; top: 0; bottom: 0;
  left: 33%; right: 32%;            /* final: narrowed range */
  background: var(--haldi);
  border-radius: 999px;
  animation: narrow 1.6s cubic-bezier(.6,.05,.2,1) 0.5s both;
}
@keyframes narrow { from { left: 6%; right: 8%; } to { left: 33%; right: 32%; } }
.track-scale { display: flex; justify-content: space-between; color: var(--panel-muted); font-size: 0.8rem; margin-top: 0.4rem; }
.estimate-caption { color: var(--stone); font-size: 0.88rem; margin: 0.8rem 0.2rem 0; }

/* Home principles */
.principles { border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.principles .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.principles h2 { font-size: 1.3rem; letter-spacing: -0.015em; margin: 0 0 0.6rem; line-height: 1.25; }
.principles p { margin: 0; color: var(--stone); }

.contact-band { border-top: 1px solid var(--line); padding: clamp(2rem, 5vw, 3rem) 0; }
.contact-band p { margin: 0; font-size: 1.15rem; max-width: 46rem; }

/* Document pages (privacy, terms, deletion, support) */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.75rem; }
.doc .updated { color: var(--stone); margin: 0 0 2rem; font-size: 0.97rem; }
.doc .summary { font-family: var(--sans); font-size: 1.15rem; line-height: 1.55; border-left: 4px solid var(--haldi); padding: 0.2rem 0 0.2rem 1.1rem; margin: 0 0 2.5rem; }
.doc h2 { font-size: 1.4rem; letter-spacing: -0.015em; line-height: 1.25; margin: 2.6rem 0 0.8rem; }
.doc h3 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; }
.prose { font-family: var(--serif); font-size: 1.04rem; line-height: 1.72; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { font-weight: 600; }
.prose h2, .prose h3 { font-family: var(--sans); }
.toc { font-family: var(--sans); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.4rem; margin: 0 0 2.5rem; background: #fff; }
.toc p { margin: 0 0 0.5rem; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: 0.97rem; }
.toc li { margin-bottom: 0.3rem; break-inside: avoid; }

.table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.97rem; margin: 0 0 1.4rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.table th { font-weight: 700; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--pine); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; }

.mail { font-family: var(--sans); font-weight: 500; }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; font-family: var(--sans); }
details summary { cursor: pointer; font-weight: 500; font-size: 1.08rem; list-style-position: outside; }
details p { font-family: var(--serif); line-height: 1.7; margin: 0.8rem 0 0; color: var(--pine); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--stone); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--stone); }
.site-footer a:hover { color: var(--pine); }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .principles .wrap { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .band { animation: none; }
}
