/* vitium.no. Colours come from the app icon: night navy behind a lime-to-cyan check. */
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --night: #070b14;
  --night-2: #17202f;
  --paper: #f3f5f8;
  --white: #ffffff;
  --ink: #0f1722;
  --slate: #536070;
  --line: #dce2e9;
  --lime: #a3e635;
  --cyan: #22d3ee;
  --link: #0e6f86;
  --check: linear-gradient(45deg, var(--lime), var(--cyan));
  --wrap: 68rem;
  --text: 40rem;
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--white); padding: 0.5rem 0.9rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.55rem; }
.top nav { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.top nav a { color: inherit; text-decoration: none; opacity: 0.78; }
.top nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero: the one dark, branded part of the page */
.hero { background: radial-gradient(120% 90% at 70% 0%, var(--night-2), var(--night) 70%); color: #e8edf3; padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(2rem, 6vw, 4.5rem); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 780; letter-spacing: -0.035em; color: var(--white); }
.hero .lead { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: #b9c3cf; max-width: 33rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 2.2rem; }
.store { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1.25rem 0.75rem 1rem; border-radius: 0.8rem; background: var(--white); color: var(--night); font-weight: 650; line-height: 1.2; }
.store svg { width: 1.4rem; height: 1.4rem; }
.store small { display: block; font-weight: 450; font-size: 0.8rem; color: var(--slate); }
.hero .actions a { color: #d8e0ea; }
.hero :focus-visible, .page-top :focus-visible, .foot :focus-visible { outline-color: var(--cyan); }
h1:focus { outline: none; }

/* A case as it looks in the app. The check draws itself once, when the page loads. */
.case { background: #0d1421; border: 1px solid #243045; border-radius: 1.4rem; padding: 1.5rem 1.5rem 1.3rem; box-shadow: 0 30px 80px -30px #000; }
.case h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; color: var(--white); }
.case > p { color: #8794a5; font-size: 0.9rem; margin-top: 0.15rem; }
.case ol { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.case li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0.75rem; align-items: start; padding-block: 0.8rem; border-top: 1px solid #1e2a3c; }
.case li span { font-size: 0.95rem; line-height: 1.4; color: #dbe3ec; }
.case li span em { display: block; font-style: normal; color: #8794a5; font-size: 0.85rem; margin-top: 0.15rem; }
.case time { font-size: 0.8rem; color: #8794a5; padding-top: 0.15rem; white-space: nowrap; }
.dot { width: 0.7rem; height: 0.7rem; margin: 0.38rem 0 0 0.45rem; border-radius: 50%; background: #3a4a62; }
.case li.done { border-top-color: #2a3a50; }
.case li.done span { color: var(--white); font-weight: 650; }
.tick { width: 1.6rem; height: 1.6rem; }
.tick path { stroke-dasharray: 100; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .case li { animation: rise 0.5s cubic-bezier(.2,.7,.2,1) both; }
  .case li:nth-child(1) { animation-delay: 0.25s; }
  .case li:nth-child(2) { animation-delay: 0.65s; }
  .case li:nth-child(3) { animation-delay: 1.05s; }
  .case li:nth-child(4) { animation-delay: 1.45s; }
  .case li.done { animation-delay: 1.95s; }
  .tick path { stroke-dashoffset: 100; animation: draw 0.7s 2.25s cubic-bezier(.6,0,.2,1) forwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Light sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--line); }
.head { max-width: var(--text); }
.head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
.head p { margin-top: 0.9rem; color: var(--slate); font-size: 1.125rem; }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem; margin: 3rem 0 0; padding: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 700; font-size: 0.95rem; margin-bottom: 1.1rem; }
.steps h3 { font-size: 1.2rem; font-weight: 700; }
.steps p { margin-top: 0.5rem; color: var(--slate); font-size: 1rem; }

.rights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3rem; border-top: 2px solid var(--ink); }
.rights div { padding: 1.4rem 1.6rem 0 0; }
.rights div + div { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.rights strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 780; letter-spacing: -0.04em; line-height: 1; }
.rights p { margin-top: 0.7rem; color: var(--slate); font-size: 1rem; }
.note { margin-top: 2rem; color: var(--slate); font-size: 0.9rem; max-width: var(--text); }

.price { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.price dl { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 1.1rem; padding: 0.4rem 1.6rem; }
.price dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.05rem; }
.price dl div + div { border-top: 1px solid var(--line); }
.price dt { color: var(--slate); }
.price dd { margin: 0; font-weight: 700; text-align: right; }

.faq { max-width: 46rem; margin-top: 2.4rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; font-weight: 650; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--slate); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 1.3rem; color: var(--slate); max-width: var(--text); }

/* Footer */
.foot { background: var(--night); color: #9aa6b5; font-size: 0.95rem; padding-block: 2.6rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.foot a { color: #dbe3ec; }

/* Text pages: privacy, terms, help */
.page-top { background: var(--night); color: #e8edf3; }
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) 5rem; }
.doc .wrap > * { max-width: var(--text); }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 780; letter-spacing: -0.03em; }
.doc h1 + p { color: var(--slate); margin-top: 0.6rem; }
.doc h2 { font-size: 1.35rem; font-weight: 720; margin-top: 2.6rem; }
.doc p, .doc ul, .doc .table { margin-top: 0.9rem; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.4rem; }
.doc .table { max-width: 52rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--white); }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; }
.doc th { font-weight: 700; border-bottom: 1px solid var(--line); }
.doc tr + tr td { border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .hero-grid, .price { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .rights { grid-template-columns: 1fr; }
  .rights div, .rights div + div { padding: 1.3rem 0; border-left: 0; }
  .rights div + div { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
}
