/* nordkit.se. The app's dark look: black, its blue, and the system font, so
   the site and the pictures of the app read as one thing. No web fonts and
   nothing from another server. */

:root {
  --bg: #000;
  /* The grey-black of every second band. */
  --bg-grey: #141416;
  --surface: #121214;
  --surface-2: #1c1c1f;
  --line: #2a2a2e;
  --text: #f5f5f7;
  --muted: #9a9aa3;
  --blue: #1a8cff;
  --blue-ink: #04121f;
  --radius: 20px;
  --wrap: 1152px;
  --gutter: 20px;

  --c-material: #3b9cff;
  --c-studio: #ff6a3d;
  --c-plan: #22c58b;
  --c-service: #f5b300;
  --c-diary: #a78bfa;
  --c-lod: #5ad1e6;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* clip, not hidden: hidden would make body a scroll container and unstick the header. */
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  padding: 10px 14px; border-radius: 10px; background: var(--blue); color: var(--blue-ink);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ── Header ───────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em; text-decoration: none;
  min-height: 44px;
}
.brand img { border-radius: 9px; }
.brand-small { font-size: 15px; gap: 8px; }
.brand-small img { border-radius: 6px; }

.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-size: 15px; border-radius: 10px;
}
.top-nav a:hover { color: var(--text); }
@media (max-width: 720px) {
  .top-nav { display: none; }
  .top-row .btn { margin-left: auto; }
}

/* ── Buttons ──────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: var(--blue-ink); }
.btn-primary:hover { background: #4aa5ff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgb(255 255 255 / 0.03); }
.btn-ghost:hover { border-color: #46464d; background: rgb(255 255 255 / 0.07); }
.top-row .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
}

/* ── Type ─────────────────────────────────────────── */

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.lead { color: var(--muted); font-size: 19px; max-width: 34em; }

h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 750; }

/* ── Hero ─────────────────────────────────────────── */

.hero {
  position: relative;
  /* The light behind the pictures and the computer's base reach past the
     edges; clip keeps them from making the page scroll sideways. */
  overflow-x: clip;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(55% 40% at 50% 62%, rgb(26 140 255 / 0.20), transparent 70%),
    radial-gradient(30% 30% at 85% 85%, rgb(255 106 61 / 0.10), transparent 70%);
}
.hero-text { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-text h1 { margin-bottom: 22px; }
.hero-text .lead { margin: 0 auto 30px; }
.hero-text .cta-row { justify-content: center; }

/* Studio on a computer, and beside it the phone with today's work. */
.hero-shots {
  position: relative;
  max-width: 1080px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: 0 9% 7% 0;
  isolation: isolate;
}
.hero-shots .phone { position: absolute; right: 0; bottom: 0; width: 25%; }
.hero-shots::before {
  content: ""; position: absolute; inset: -6% -10% -10% -10%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(140 175 230 / 0.30), rgb(26 140 255 / 0.10) 60%, transparent);
  filter: blur(20px);
}

.hero-label {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  background: rgb(18 18 20 / 0.86); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-label-studio { left: 3%; top: -18px; }
.hero-label-today { right: 2%; bottom: -18px; }

.facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  list-style: none; padding: 0; margin: 48px 0 0;
  color: var(--muted); font-size: 15px;
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

@media (max-width: 700px) {
  .hero-shots { padding: 0 12% 14% 0; }
  .hero-shots .phone { width: 33%; }
  .hero-label { font-size: 13px; padding: 6px 12px; }
  .hero-label-studio { left: 2%; top: -16px; }
}

/* ── Devices ────────────────────────────────────────
   The pictures are of a dark app on a dark page, so each stands in a frame
   that reads as the device: a light grey metal edge with a highlight, and a
   black rim round the screen. */

.device {
  --metal: linear-gradient(145deg, #8d9099 0%, #4b4e56 18%, #2e3036 50%, #4b4e56 82%, #9a9da6 100%);
  position: relative;
  margin: 0;
  background: var(--metal);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.22) inset,
    0 1px 0 0 rgb(255 255 255 / 0.35) inset,
    0 40px 90px -24px rgb(0 0 0 / 0.9),
    0 0 0 1px rgb(0 0 0 / 0.6);
}
.device img { width: 100%; background: #000; box-shadow: 0 0 0 3px #000, 0 0 0 4px rgb(255 255 255 / 0.06); }

.device.phone { border-radius: 40px; padding: 7px; }
.device.phone img { border-radius: 33px; }
/* The buttons on the side. */
.device.phone::before, .device.phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #6b6e76;
}
.device.phone::before { left: -3px; top: 18%; height: 7%; box-shadow: 0 calc(100% + 10px) 0 #6b6e76; }
.device.phone::after { right: -3px; top: 24%; height: 11%; }

.device.tablet { border-radius: 26px; padding: 10px; }
.device.tablet img { border-radius: 16px; }

.device.laptop { border-radius: 16px 16px 6px 6px; padding: 10px 10px 14px; margin-bottom: 18px; }
.device.laptop img { border-radius: 8px; }
/* The keyboard half, seen edge on, a little wider than the screen. */
.device.laptop::after {
  content: ""; position: absolute; left: -7%; right: -7%; bottom: -16px; height: 16px;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #b4b7bf 0%, #7d8089 35%, #3c3e44 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 24px 40px -10px rgb(0 0 0 / 0.9);
}
.device.laptop::before {
  content: ""; position: absolute; left: 50%; bottom: -16px; width: 16%; height: 6px; z-index: 1;
  transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #50535a;
}

/* ── Bands ──────────────────────────────────────────
   Every section is a band across the page: black and grey-black in turn,
   with a line in the colour of the service at the top, and its light
   falling down from it. */

.band { position: relative; padding: clamp(64px, 9vw, 120px) 0; scroll-margin-top: 64px; }
.band-dark { --base: #0c0c0e; }
.band-grey { --base: var(--bg-grey); }
.band-dark, .band-grey { background: var(--base); }

/* A band with a picture is lit across the whole band in its colour, from
   where the picture stands: right, left, or under the words. */
.band-lit {
  --gx: 75%; --gy: 50%;
  background:
    radial-gradient(60% 80% at var(--gx) var(--gy), color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, #1c1d22), var(--base));
}
.band-lit-left { --gx: 25%; }
.band-lit-under { --gx: 50%; --gy: 72%; }
@media (max-width: 860px) {
  .band-lit, .band-lit-left { --gx: 50%; --gy: 75%; }
}
.band > .wrap { position: relative; }

.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 25%, var(--accent) 75%, transparent);
}
.band::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220px;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}

.band-blue { --accent: var(--blue); }
.band-material { --accent: var(--c-material); }
.band-studio { --accent: var(--c-studio); }
.band-plan { --accent: var(--c-plan); }
.band-service { --accent: var(--c-service); }
.band-diary { --accent: var(--c-diary); }
.band-lod { --accent: var(--c-lod); }
.band-rainbow { --accent: var(--blue); }
.band-rainbow::before {
  background: linear-gradient(90deg, var(--c-material), var(--c-studio), var(--c-plan), var(--c-service), var(--c-diary), var(--c-lod));
}

/* ── Services ─────────────────────────────────────── */

.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: 14px; }

.service-index { display: flex; flex-wrap: wrap; gap: 10px; }
.service-index a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  text-decoration: none; font-size: 15px; font-weight: 600;
}
.service-index a:hover { border-color: #46464d; }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-material { background: var(--c-material); }
.dot-studio { background: var(--c-studio); }
.dot-plan { background: var(--c-plan); }
.dot-service { background: var(--c-service); }
.dot-diary { background: var(--c-diary); }
.dot-lod { background: var(--c-lod); }

.service {
  display: grid; align-items: center; gap: clamp(32px, 6vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
}
.service-flip { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.service-flip .service-shot { order: -1; }

/* A wide picture goes under the words, the whole width of the column. */
.service-wide { grid-template-columns: minmax(0, 1fr); }
.service-wide .service-text > p:not(.tag) { max-width: 40em; }

.service-text { display: flex; flex-direction: column; gap: 18px; }
.service-text > p:not(.tag) { color: var(--muted); font-size: 18px; }
.service-shot { margin: 0; }
.service-shot .phone { max-width: 320px; margin: 0 auto; }

.tag {
  align-self: flex-start;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.tag-material { color: var(--c-material); }
.tag-studio { color: var(--c-studio); }
.tag-plan { color: var(--c-plan); }
.tag-service { color: var(--c-service); }
.tag-diary { color: var(--c-diary); }
.tag-lod { color: var(--c-lod); }

.points { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 28px; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent, var(--blue)); border-bottom: 2px solid var(--accent, var(--blue));
  transform: rotate(-45deg);
}
.points-cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 32px; }

@media (max-width: 860px) {
  .service, .service-flip { grid-template-columns: minmax(0, 1fr); }
  .service-flip .service-shot { order: 0; }
  .service-shot .phone { max-width: 260px; }
}

/* Lod has no picture: its demo is a simulated phone. Three steps instead. */
.service-plain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lod-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lod-steps li {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
}
.lod-steps b {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgb(90 209 230 / 0.14); color: var(--c-lod); font-size: 16px;
}
@media (max-width: 860px) { .service-plain { grid-template-columns: minmax(0, 1fr); } }

/* ── Roles ────────────────────────────────────────── */

.role-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role {
  padding: 28px; border-radius: var(--radius);
  background: var(--bg-grey); border: 1px solid var(--line);
}
.role h3 { font-size: 22px; margin-bottom: 12px; }
.role p { color: var(--muted); }
@media (max-width: 860px) { .role-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Contact ──────────────────────────────────────── */

.contact-box {
  display: grid; gap: 28px; align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
}
.contact-box h2 { margin-bottom: 14px; }
@media (max-width: 860px) { .contact-box { grid-template-columns: minmax(0, 1fr); } }

/* ── Legal (legal.html) ───────────────────────────── */

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-bottom: 14px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.legal-toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-size: 15px; font-weight: 600;
}
.legal-toc a:hover { border-color: #46464d; }

.legal-doc { padding-top: 48px; margin-top: 48px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.legal-doc h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 8px; }
.legal-doc section { margin-top: 32px; }
.legal-doc h3 {
  font-size: 18px; letter-spacing: -0.01em; margin-bottom: 12px;
  padding-left: 12px; border-left: 2px solid var(--blue);
}
.legal-doc p, .legal-doc li, .legal-doc td { color: #c4c4cc; }
.legal-doc p { margin-top: 12px; }
.legal-doc strong { color: var(--text); }
.legal-doc a { color: var(--blue); text-underline-offset: 3px; }
.legal-doc ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-doc li::marker { color: var(--blue); }

.legal-table { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 14px; }
.legal-table th { color: var(--text); background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.legal-table tr + tr td { border-top: 1px solid rgb(255 255 255 / 0.06); }

/* On a phone a row is a card, each cell under the name of its column. */
@media (max-width: 600px) {
  .legal-table { border: 0; }
  .legal-table thead { display: none; }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 0; }
  .legal-table tr + tr { margin-top: 10px; }
  .legal-table tr + tr td { border-top: 0; }
  .legal-table td { padding: 6px 14px; }
  .legal-table td::before {
    content: attr(data-label); display: block;
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  }
}

/* ── Footer ───────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  color: var(--muted); font-size: 15px;
}
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .made { margin-left: auto; }
@media (max-width: 600px) { .foot .made { margin-left: 0; } }
