/* Custodio Studio product pages v2.0 (24.11.2026): app pages, the Norwegian tools and their documents.
   Studio (/studio/) and the hub (/) keep their own styles. One typeface (the system's), one accent per page
   (set --accent on <body>), hairline rules instead of cards. No shadows, no pills, no eyebrows. */
:root {
  --bg: #ffffff; --fg: #16171a; --muted: #5d616b; --rule: #e2e3e7; --soft: #f6f6f7;
  --accent: #16171a; --accent-ink: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --col: 40rem; --wide: 66rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111214; --fg: #ececee; --muted: #a2a6b0; --rule: #2a2c31; --soft: #1a1b1e; --accent-ink: #111214; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.12; font-weight: 650; letter-spacing: -0.018em; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -0.008em; }
h3 { font-size: 17px; line-height: 1.4; font-weight: 600; }
p + p { margin-top: 0.8em; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 8px; top: -60px; padding: 8px 12px; background: var(--fg); color: var(--bg); z-index: 10; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.col { max-width: var(--col); }

/* Page head: icon, name, two links. */
.head { display: flex; align-items: center; gap: 10px; padding-block: 20px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.head img { width: 28px; height: 28px; border-radius: 7px; }
.head .name { font-weight: 600; text-decoration: none; }
.head .by { color: var(--muted); }
.head nav { margin-left: auto; display: flex; gap: 20px; }
.head nav a { color: var(--muted); text-decoration: none; }
.head nav a:hover { color: var(--fg); }

/* Intro: text beside one phone screen. */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.intro .lede { font-size: 19px; line-height: 1.5; margin-top: 18px; max-width: 34em; }
.status { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.button { display: inline-block; padding: 11px 18px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.status .small { color: var(--muted); }
.facts { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); max-width: 34em; }

/* A phone screenshot: the screen itself, a hairline, no frame or shadow. */
.screen img { border-radius: 22px; border: 1px solid var(--rule); background: var(--soft); }
.screen figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Sections: a rule, a heading on the left, content on the right. */
.part { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px clamp(24px, 5vw, 64px); padding-block: 40px; border-top: 1px solid var(--rule); }
.part > h2 { padding-top: 2px; }
.part .intro-line { color: var(--muted); margin-bottom: 20px; max-width: var(--col); }

/* Rows: term and text, separated by hairlines. Used for features, questions and prices. */
.rows { border-top: 1px solid var(--rule); max-width: 46rem; }
.rows > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.rows dt, .rows h3 { font-weight: 600; }
.rows dd, .rows p { color: var(--fg); }
.rows .muted { color: var(--muted); }

/* Three screens in a row; they scroll sideways on a phone. */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 14rem); gap: 24px; }

/* Numbered steps. */
ol.steps { list-style: none; padding: 0; counter-reset: step; max-width: var(--col); }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 14px 2.2em; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; font-weight: 600; color: var(--accent); }

/* Reading pages. */
.doc { padding-block: clamp(32px, 6vw, 64px); }
.doc h1 { font-size: clamp(28px, 4vw, 36px); }
.doc h2 { margin-top: 40px; margin-bottom: 10px; }
.doc h3 { margin-top: 24px; margin-bottom: 4px; }
.doc p, .doc ul, .doc ol { max-width: var(--col); }
.doc ul, .doc ol { padding-left: 1.3em; margin-top: 0.6em; }
.doc li + li { margin-top: 0.4em; }
.doc p + ul, .doc p + ol, .doc ul + p, .doc ol + p { margin-top: 0.8em; }
.doc .lede, .doc .lead { font-size: 19px; margin-top: 14px; color: var(--muted); max-width: var(--col); }
.doc .note { font-size: 15px; color: var(--muted); margin-top: 12px; }
.doc blockquote { margin: 12px 0 0; padding-left: 16px; border-left: 1px solid var(--rule); color: var(--muted); max-width: var(--col); }
.doc ol.steps { margin-top: 14px; }
.doc table { width: 100%; max-width: 46rem; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.doc th, .doc td { text-align: left; padding: 9px 16px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-weight: 600; }
.wrapx { overflow-x: auto; }
/* A note that must be read first: rules above and below, no box. */
.callout { margin-top: 24px; padding-block: 12px; border-block: 1px solid var(--rule); max-width: var(--col); }
.callout p + p { margin-top: 6px; }

table.plain { border-collapse: collapse; font-size: 16px; margin-top: 12px; }
table.plain th, table.plain td { text-align: left; padding: 9px 20px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain th { font-weight: 600; }
table.plain td.num, table.plain th.num { text-align: right; }

.foot { border-top: 1px solid var(--rule); margin-top: 40px; padding-block: 24px 48px; font-size: 14px; color: var(--muted); }
.foot p + p { margin-top: 4px; }

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .intro .screen { max-width: 260px; }
  .part { grid-template-columns: 1fr; padding-block: 32px; }
  .rows > div { grid-template-columns: 1fr; }
  .screens { grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .screens figure { scroll-snap-align: start; }
  .head nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Questions read down one column; only facts that pair a term with a value use two. */
.rows.qa > div { grid-template-columns: 1fr; gap: 2px; }
.rows > div:last-child { border-bottom: 0; }
table.plain th { width: 13rem; }
table.plain tr:last-child > * { border-bottom: 0; }
.doc h1 + p { margin-top: 14px; }
code { font-family: var(--mono); font-size: 0.9em; }
@media (max-width: 760px) { table.plain th { width: 5rem; } }
