/* SL Scanner — site styles
   Layout concept: the scan frame. Corner brackets from the app icon frame the
   key moments, and the page reads left-to-right like a scan: phone → PC. */

:root {
  /* Color — navy ink from the app icon, bracket blue as the one accent */
  --ink:        #13203A;   /* headings, strong text */
  --text:       #2B3954;   /* body text */
  --muted:      #5E6B83;   /* secondary text */
  --bg:         #F3F5F9;   /* page — a cool paper white, biased toward the navy */
  --surface:    #FFFFFF;   /* panels */
  --line:       #DCE2EC;   /* hairlines */
  --accent:     #2F7BE0;   /* bracket blue — links, frame, focus */
  --accent-ink: #FFFFFF;   /* text on accent */
  --navy:       #1A2744;   /* the app icon's ground; used for the hero device art */
  --navy-2:     #22335A;
  --on-navy:    #E3EAF6;
  --ok:         #1F8A55;   /* "Sent" */
  --warn:       #B4472E;   /* "Failed" */

  /* Type */
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.25rem;
  --step-2:  1.6rem;
  --step-3:  clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --step-4:  clamp(2.4rem, 1.5rem + 3.8vw, 3.9rem);

  --radius: 14px;
  --wrap: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF2FA; --text: #C9D3E6; --muted: #93A0B8;
    --bg: #0D1525; --surface: #142038; --line: #24334F;
    --accent: #6AA8F0; --accent-ink: #0D1525;
    --navy: #0A1120; --navy-2: #182640; --on-navy: #E3EAF6;
    --ok: #4CC38A; --warn: #F08A70;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #EEF2FA; --text: #C9D3E6; --muted: #93A0B8;
  --bg: #0D1525; --surface: #142038; --line: #24334F;
  --accent: #6AA8F0; --accent-ink: #0D1525;
  --navy: #0A1120; --navy-2: #182640; --on-navy: #E3EAF6;
  --ok: #4CC38A; --warn: #F08A70;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 21; background: var(--bg);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.pill {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; white-space: nowrap;
}
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .site-header .wrap { gap: 12px; }
}

/* ── Scan-frame corners (the page's signature) ─────── */
.frame { position: relative; }
.frame::before, .frame::after,
.frame > .c3, .frame > .c4 {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: var(--accent); border-style: solid; border-width: 0;
}
.frame::before { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.frame::after  { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.frame > .c3   { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.frame > .c4   { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-block: 64px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 .frame { display: inline-block; padding: 2px 12px; margin-left: -12px; }
.lede { font-size: var(--step-1); color: var(--text); max-width: 34rem; line-height: 1.5; }
.availability { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: var(--step--1); }
.availability span { display: inline-flex; align-items: center; gap: 8px; }
.availability span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) {
  .hero { padding-block: 40px 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Notify form ────────────────────────────────────── */
.notify { display: grid; gap: 10px; max-width: 30rem; }
.notify label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify input[type="email"] {
  flex: 1 1 14rem; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}
.notify input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn {
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px;
  padding: 12px 20px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.notify .note { font-size: var(--step--1); color: var(--muted); min-height: 1.5em; }
.notify .note.ok { color: var(--ok); font-weight: 600; }
.notify .note.err { color: var(--warn); }

/* ── Device art (phone → PC), drawn in HTML/CSS ─────── */
.art { position: relative; min-width: 0; }
.art-stage {
  position: relative; display: grid; grid-template-columns: auto minmax(28px, 1fr) minmax(0, 300px); align-items: center; gap: 0;
  padding: 28px; border-radius: 22px;
  background:
    radial-gradient(120% 90% at 20% 10%, var(--navy-2), transparent 60%),
    var(--navy);
  color: var(--on-navy);
  box-shadow: 0 30px 60px -30px rgba(13, 21, 37, 0.55);
  overflow: hidden;
}
.phone {
  position: relative; z-index: 2;
  width: 168px; aspect-ratio: 9 / 19; max-width: 100%;
  border-radius: 30px; padding: 9px;
  background: #0B1222; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.6);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #3A4A63, #263247 60%, #1C2638);
  display: grid; place-items: center;
}
.cam-card {
  width: 74%; aspect-ratio: 1.585; border-radius: 6px;
  background: linear-gradient(135deg, #F7F9FC, #DCE4EF);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  display: grid; grid-template-columns: 34% 1fr; gap: 6px; padding: 8px;
  transform: rotate(-2deg);
}
.cam-card .photo { background: #B9C4D4; border-radius: 3px; }
.cam-card .lines { display: grid; gap: 5px; align-content: center; }
.cam-card .lines i { display: block; height: 5px; border-radius: 3px; background: #C4CEDC; }
.cam-card .lines i:nth-child(1) { width: 90%; background: #8C9AB0; }
.cam-card .lines i:nth-child(2) { width: 70%; }
.cam-card .lines i:nth-child(3) { width: 80%; }
.cam-frame {
  position: absolute; left: 9%; right: 9%; top: 50%; aspect-ratio: 1.585; transform: translateY(-50%);
}
.cam-frame.frame::before, .cam-frame.frame::after, .cam-frame > .c3, .cam-frame > .c4 { width: 14px; height: 14px; border-color: #FFFFFF; }
.cam-level {
  position: absolute; left: 50%; top: 16%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; color: #CFF5DF; background: rgba(15, 80, 50, 0.6);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.cam-shutter {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35);
}
.cam-bolt {
  position: absolute; right: 9%; top: 6%; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.45); display: grid; place-items: center;
}
.cam-bolt svg { width: 11px; height: 11px; fill: #F5C542; }

.link-path { position: relative; height: 2px; margin-inline: 10px; min-width: 24px; }
.link-path::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(227,234,246,0.5) 0 8px, transparent 8px 14px);
}
.packet {
  position: absolute; top: 50%; left: 0; width: 26px; aspect-ratio: 1.585; border-radius: 3px;
  background: #F2F5FA; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--accent), 0 6px 14px rgba(0,0,0,0.4);
  animation: travel 3.6s cubic-bezier(.55,.05,.35,1) infinite;
}
@keyframes travel {
  0%, 12%  { left: 0%;   opacity: 0; }
  20%      { opacity: 1; }
  70%      { left: 100%; opacity: 1; }
  78%,100% { left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .packet { animation: none; left: 50%; opacity: 1; } }

.pc {
  position: relative; z-index: 1; min-width: 0;
  background: #F5F7FB; color: #1A2744; border-radius: 10px; overflow: hidden;
  box-shadow: 0 22px 44px -16px rgba(0,0,0,0.55);
  font-size: 12px;
}
.pc-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #1A1A1A; color: #FFFFFF; }
.pc-bar b { font-family: var(--display); font-size: 12px; }
.pc-bar .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #4CAF50; }
.pc-sub { padding: 6px 10px; background: #2A2A2A; color: #AAAAAA; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-files { list-style: none; margin: 0; padding: 6px 0; }
.pc-files li {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  padding: 6px 10px; border-bottom: 1px solid #E4E9F1;
  font-family: var(--mono); font-size: 10.5px; color: #2B3954;
}
.pc-files li:last-child { border-bottom: 0; }
.pc-files li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pc-files .new { background: #EAF2FD; }
.tag { font-family: var(--body); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.tag.jpg { background: #E2ECFA; color: #1D5DB5; }
.tag.pdf { background: #FBE6E0; color: #A33A22; }
.art-caption { margin-top: 12px; font-size: var(--step--1); color: var(--muted); text-align: right; }
@media (max-width: 520px) {
  .art-stage { padding: 18px 14px; }
  .phone { width: 112px; border-radius: 22px; padding: 6px; }
  .phone-screen { border-radius: 17px; }
  .link-path { margin-inline: 6px; min-width: 16px; }
  .pc-sub { display: none; }
  .pc-files li { font-size: 9px; padding: 5px 8px; }
}

/* ── Sections ───────────────────────────────────────── */
.section { padding-block: 72px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: 40px; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 640px) { .section { padding-block: 52px; } }

/* How it works — a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 26px 28px 8px 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before {
  content: "Step " counter(step);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--text); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--text); font-size: 0.98rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

/* Spec strip — the frame sizes are real standards */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.spec-copy { display: grid; gap: 16px; min-width: 0; }
.spec-copy h2 { font-size: var(--step-3); font-weight: 800; }
.spec-copy p { max-width: 34rem; }
.spec-figs { display: flex; gap: 28px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.spec-fig { display: grid; gap: 10px; justify-items: center; }
.spec-fig .shape { position: relative; background: var(--surface); border: 1px dashed var(--line); }
.spec-fig .card { width: 171px; aspect-ratio: 85.6 / 54; }
.spec-fig .letter { width: 140px; aspect-ratio: 8.5 / 11; }
.spec-fig .shape.frame::before, .spec-fig .shape.frame::after,
.spec-fig .shape > .c3, .spec-fig .shape > .c4 { width: 16px; height: 16px; }
.spec-fig figcaption { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-align: center; line-height: 1.4; }
.spec-fig figcaption b { color: var(--ink); font-weight: 600; display: block; font-family: var(--body); font-size: 0.95rem; }
@media (max-width: 820px) { .spec { grid-template-columns: 1fr; } }

/* Requirements */
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.req { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--ink); min-width: 0; }
.req dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.req dd { margin: 0; color: var(--ink); font-weight: 600; }
.req dd small { display: block; font-weight: 400; color: var(--text); font-size: 0.95rem; margin-top: 4px; }
@media (max-width: 760px) { .reqs { grid-template-columns: 1fr; } }

/* Closing CTA */
.cta { background: var(--navy); color: var(--on-navy); }
.cta .wrap { padding-block: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #FFFFFF; font-size: var(--step-3); font-weight: 800; }
.cta p { color: var(--on-navy); opacity: 0.85; margin-top: 12px; }
.cta .notify label { color: #FFFFFF; }
.cta .notify .note { color: #B9C6DC; }
.cta .notify .note.ok { color: #7FE0AE; }
.cta .notify .note.err { color: #FFB4A2; }
.cta .notify input[type="email"] { background: #FFFFFF; color: #13203A; border-color: transparent; }
.cta .btn { background: #FFFFFF; color: #13203A; }
@media (max-width: 820px) { .cta .wrap { grid-template-columns: 1fr; padding-block: 48px; } }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; font-size: var(--step--1); color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Document pages (support, privacy) ──────────────── */
.doc-hero { padding-block: 56px 32px; border-bottom: 1px solid var(--line); }
.doc-hero .wrap { display: grid; gap: 14px; }
.doc-hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
.doc-hero p { color: var(--muted); font-size: var(--step-1); max-width: 40rem; }
.doc { padding-block: 40px 80px; }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 4px; font-size: 0.95rem; }
.toc b { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.toc a { color: var(--text); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--accent); }
.prose { max-width: 44rem; display: grid; gap: 18px; min-width: 0; }
.prose h2 { font-size: var(--step-2); font-weight: 800; margin-top: 28px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 0.9em; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose .updated { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 8px; }
.callout b { color: var(--ink); }
.contact-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.contact-line code { font-family: var(--mono); font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; user-select: all; }
.btn-ghost { font: inherit; font-size: 0.9rem; cursor: pointer; background: transparent; color: var(--accent); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.btn-ghost:hover { border-color: var(--accent); }

details.faq { border-bottom: 1px solid var(--line); padding-block: 4px; }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; font-weight: 600; color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 0 16px; display: grid; gap: 10px; }
@media (max-width: 860px) {
  .doc .wrap { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; grid-auto-flow: row; }
}
