/* Kenaz Labs. Kenaz = the torch rune: amber light in a night-ink room. Shares Natta's palette.
   Layout: one reading column (max 46rem); sections stack; no JavaScript. Always dark, like the app (Stian's choice, 10 Nov 2026). */
@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #0B0F1E;
  --surface: #151A2D;
  --line: #262D45;
  --fg: #ECEEF6;
  --muted: #A3ABC4;
  --faint: #8790AB;
  --torch: #E9B870;
  --torch-ink: #1A1405;
  --torch-soft: #2A2616;
  --glow: rgba(233, 184, 112, 0.13);
  --bar: #5A6380;
  --ok: #8FD3B0;
  --beta: #C9B8F0;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .btn, .faq summary { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
}
body {
  margin: 0;
  background: var(--bg);
  /* Torchlight: one soft amber glow behind the top of the page. */
  background-image: radial-gradient(60rem 26rem at 50% -8rem, var(--glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--font);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-wrap: break-word;
}
a { color: var(--torch); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--torch); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 46rem; margin: 0 auto; }

.skip { position: absolute; left: 16px; top: -4rem; z-index: 10; background: var(--torch); color: var(--torch-ink); font-weight: 700; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; outline-color: var(--fg); }

.site-head { padding-block: 22px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.86rem; padding-block: 6px; }
.brand svg { width: 26px; height: 26px; flex: none; color: var(--torch); }
.site-head nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 0.95rem; }
.site-head nav a { color: var(--muted); text-decoration: none; padding-block: 6px; }
.site-head nav a:hover { color: var(--fg); }
.site-head nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--torch); }

nav.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }

main { display: flex; flex-direction: column; gap: 64px; padding-block: 20px 80px; }
section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.lede { font-size: 1.22rem; color: var(--muted); max-width: 38rem; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--torch); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* Hero rune: the torch. */
.rune { width: 96px; height: 96px; color: var(--torch); filter: drop-shadow(0 0 22px color-mix(in srgb, var(--torch) 45%, transparent)); }
.hero { gap: 20px; padding-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); color: var(--fg); background: var(--surface); }
.btn:hover { border-color: var(--torch); }
.btn.primary { background: var(--torch); border-color: var(--torch); color: var(--torch-ink); }
.btn.primary:hover { filter: brightness(1.08); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card a.more { font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--torch-soft); color: var(--torch); width: fit-content; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* App card on the front page: screenshot beside the text when there is room. */
.app-card { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
.app-card img { display: block; width: 150px; height: auto; border-radius: 14px; border: 1px solid var(--line); justify-self: center; }
.app-card > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 600px) { .app-card { grid-template-columns: 170px 1fr; } .app-card img { width: 170px; } }

.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.grid3 .card { padding: 18px; gap: 6px; }
.grid3 p { color: var(--muted); font-size: 0.97rem; }

/* Key facts: label / value pairs. */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.facts.two { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.facts > div { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd small { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 14px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--torch-soft); color: var(--torch); font-weight: 800; }
.steps li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 4px; }
.steps li strong { font-weight: 700; }
.steps li span { color: var(--muted); }

/* Battery comparison, drawn to scale: 0–10 percentage points per hour. The number is text, the bar is decoration. */
.bars { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: baseline; }
.bars .val { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars .good .val { color: var(--torch); }
.bar-track { grid-column: 1 / -1; height: 14px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--bar); }
.good .bar-fill { background: var(--torch); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; padding: 12px 14px 0; color: var(--muted); font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.st { font-weight: 700; white-space: nowrap; }
.st.ok { color: var(--ok); }
.st.beta { color: var(--beta); }
.st.part { color: var(--torch); }
.st.none { color: var(--muted); }
/* Narrow screens: each table row becomes a small card, so nothing scrolls sideways. */
@media (max-width: 640px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; }
  table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack tbody th, table.stack td { padding: 0; border: 0; }
  table.stack td { color: var(--muted); }
  table.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--fg); }
}

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 14px; list-style-position: outside; }
.faq summary:hover { color: var(--torch); }
.faq summary:focus-visible { outline: 2px solid var(--torch); outline-offset: 2px; border-radius: 6px; }
.faq details > div { padding-bottom: 16px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.faq details[open] summary { color: var(--torch); }

/* Screenshot strip: scrolls sideways inside itself, never the page. On wide screens all four sit in a row. */
.shots { list-style: none; margin: 0; padding: 4px 0 12px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.shots li { flex: 0 0 auto; scroll-snap-align: start; }
.shots img { display: block; width: min(72vw, 270px); height: auto; border-radius: 18px; border: 1px solid var(--line); }
@media (min-width: 900px) {
  .shots { --w: min(100vw - 80px, 68rem); width: var(--w); margin-inline: calc((100% - var(--w)) / 2); display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 0; }
  .shots img { width: 100%; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.prose { display: flex; flex-direction: column; gap: 14px; max-width: 40rem; }
.prose h2 { margin-top: 22px; font-size: 1.35rem; scroll-margin-top: 16px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 6px; }
.prose address { font-style: normal; }
.prose .table-wrap { margin-block: 4px; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--torch); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.byline { color: var(--faint); font-size: 0.92rem; }

.contact { font-family: var(--mono); font-size: 0.97em; color: var(--fg); }
a.contact { text-decoration-color: var(--torch); }

.site-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--faint); font-size: 0.88rem; }
.site-foot .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-foot a { color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.site-foot nav a { padding-block: 4px; }

@media print {
  body { background: #fff; color: #000; }
  .site-head nav, .skip, .shots, .actions { display: none; }
  .faq details > div { display: block; }
}
