/* DOCA landing — static layer (Phase C). Motion arrives later, after audit and polish.
   Light-first: white and warm off-white grounds, navy ink and structure, DOCA gold only on the action
   and the active marker. No gradients, no shadows at rest, no hairlines: surfaces part by a tone step. */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/schibsted-grotesk-latin.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colour roles (the DOCA product's own navy and gold ramps) */
  --bg: #ffffff;
  --surface: #f3f3f1;
  --surface-2: #e8e8e4;
  --ink: #071a31;
  --muted: #4e5866;
  --navy: #0b294a;
  --navy-ink: #ffffff;
  --navy-muted: #c9d8e4;
  --gold: #f3be36;
  --gold-press: #e6ad1f;

  /* Type */
  --font-display: 'Schibsted Grotesk', 'Geist', system-ui, sans-serif;
  --font-text: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  --step-head: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem);
  --step-display: clamp(2rem, 0.9rem + 3.6vw, 4.5rem);

  /* Space */
  --margin: clamp(20px, 2.6vw, 40px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 7vw + 48px, 200px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
html.lang-pending body { visibility: hidden; animation: lang-fallback 0s linear 1.2s forwards; }
@keyframes lang-fallback { to { visibility: visible; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: none; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--ink); }

.skip {
  position: absolute; left: var(--margin); top: -100px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* One frame: equal outer margins everywhere. */
.frame { padding-inline: var(--margin); }
.frame-left { padding-left: var(--margin); }
.section { padding-top: var(--section); }

/* Type roles */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-display);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
:lang(en) .display { font-size: calc(var(--step-display) * 0.86); }
.head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-head);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead { font-size: var(--step-lead); line-height: 1.45; color: var(--ink); text-wrap: pretty; }

/* Actions: one shape — near-square, flat gold, navy text. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius);
  font: 600 var(--step-body)/1 var(--font-text);
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; text-decoration-color: var(--gold);
}

/* Screens: the real captures, square corners, never shrunk below legibility. */
.shot { height: auto; }
.stage { background: var(--surface); overflow: hidden; }

/* ---------------------------------------------------------------- Bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
}
.bar__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.mark img { width: 36px; height: 36px; }
.mark__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; }
.bar__nav { display: flex; gap: 28px; }
.bar__nav a { text-decoration: none; font-weight: 500; font-size: var(--step-small); }
.bar__end { display: flex; align-items: center; gap: 20px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-size: var(--step-small); font-weight: 500; text-decoration: none; }
.bar__cta { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.bar__cta-short { display: none; }

/* ---------------------------------------------------------------- Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100svh - 76px);
  max-height: 960px;
}
.hero__copy {
  padding-top: clamp(48px, 17vh, 184px);
  padding-bottom: 64px;
  padding-right: clamp(24px, 3vw, 56px);
  display: flex; flex-direction: column; gap: 28px;
}
.hero__copy .display { max-width: none; }
.hero__lede { max-width: 38ch; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.hero__stage {
  background: var(--surface);
  overflow: hidden;
  padding: clamp(32px, 4vw, 56px) 0 0 clamp(32px, 4vw, 56px);
}
.hero__stage .shot { width: 1284px; }

/* ---------------------------------------------------------------- Route (sites) */
.route__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; }
.route__head .head { grid-column: 1 / span 7; }
.route__lede { grid-column: 1 / span 6; color: var(--muted); }
.route__stops {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px;
}
.route__stops li { display: flex; align-items: center; gap: 8px; }
.route__stops li + li::before { content: '→'; color: var(--muted); }
.route__stops a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--surface); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: var(--step-small);
}

.stop { margin-top: clamp(96px, 7vw, 144px); }
.stop__text {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px;
  align-items: start; margin-bottom: 40px;
}
.stop__text .stop__title { grid-column: 1 / span 6; }
.stop__text p { grid-column: 8 / span 5; color: var(--muted); max-width: 40ch; padding-top: 6px; }
.stop__text .stop__closing { grid-column: 8 / span 5; color: var(--ink); padding-top: 0; }
.stop--device { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); align-items: center; }
.stop--device .stop__text { padding-right: var(--margin); display: flex; flex-direction: column; gap: 16px; margin-bottom: 0; max-width: 32rem; }
.stop--device .stop__text p { color: var(--muted); padding-top: 0; }
.stop__name {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: var(--step-small); color: var(--muted);
}
.stop__name::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.stop__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.375rem); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.stop__closing { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.3; }
.stop__stage { margin-left: var(--margin); padding: 48px 0 0 48px; height: clamp(440px, 40vw, 600px); }
.stop__stage .shot--true { width: 1266px; }
.stage--short { height: clamp(380px, 38vw, 560px); }
.stage--device { height: auto; margin-left: 0; padding: 56px 48px; display: flex; justify-content: center; }
.stage--device .shot { width: 360px; }

/* ---------------------------------------------------------------- Handheld (the navy field) */
.handheld {
  margin-top: var(--section);
  background: var(--navy);
  color: var(--navy-ink);
  padding-block: clamp(88px, 8vw, 160px);
}
.handheld__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 4vw, 72px); align-items: start; }
.handheld__lede { color: var(--navy-muted); margin-top: 24px; max-width: 34ch; }
.notes { display: grid; gap: 28px; margin-top: 48px; }
.notes dt { font-weight: 600; font-size: var(--step-body); }
.notes dd { color: var(--navy-muted); margin-top: 6px; max-width: 36ch; }
.handheld__run { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); align-items: start; }
.device { display: flex; flex-direction: column; gap: 14px; }
.device .shot { width: 100%; max-width: 360px; background: #fff; }
.device figcaption { font-size: var(--step-small); color: var(--navy-muted); font-weight: 500; }
.device--lifted { margin-top: -48px; }

/* ---------------------------------------------------------------- Mid action */
.mid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding-block: clamp(72px, 6vw, 112px);
}
.mid__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 24ch; }

/* ---------------------------------------------------------------- IoT */
.iot { padding-top: clamp(48px, 4vw, 96px); }
.iot__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 40px; }
.iot__lede { color: var(--muted); margin-top: 20px; max-width: 46ch; }
.tabs { display: inline-flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: var(--radius); }
.tab {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 600 var(--step-small)/1 var(--font-text); cursor: pointer;
}
.tab[aria-selected='true'] { background: var(--ink); color: #fff; }
.plate { background: var(--surface); overflow: hidden; padding: 40px 0 0 40px; height: clamp(440px, 40vw, 600px); }
.plate__panel .shot { width: 1274px; }
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin-top: 40px; }
.chain li { display: flex; flex-direction: column; gap: 8px; }
.chain h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.chain li + li h3::before { content: '→'; color: var(--muted); font-weight: 400; }
.chain p { color: var(--muted); line-height: 1.5; }
.iot__note { margin-top: 40px; color: var(--muted); max-width: 70ch; }

/* ---------------------------------------------------------------- Control mosaic */
.control__head { display: grid; gap: 20px; max-width: 46rem; margin-bottom: 48px; }
.control__head .lead { color: var(--muted); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.tile {
  grid-column: span 3;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
  overflow: hidden;
}
.tile h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; }
.tile p { color: var(--muted); line-height: 1.5; max-width: 38ch; }
.tile__text { display: flex; flex-direction: column; gap: 10px; }
.tile__shot { margin: 28px -28px -28px 0; overflow: hidden; }
.tile--counts { grid-column: span 8; min-height: 0; }
.tile--counts .shot { width: 1266px; }
.tile--receipts { grid-column: span 4; }
.tile--serials { grid-column: span 12; flex-direction: row; gap: 48px; min-height: 0; padding-bottom: 0; }
.tile--serials .tile__text { flex: 0 0 min(30%, 340px); padding-bottom: 28px; }
.tile--serials .tile__shot { margin: 0 -28px 0 0; height: 400px; }
.tile--serials .shot { width: 1136px; }
@media (min-width: 1101px) {
  .tile--serials .tile__shot { height: auto; margin: 0 0 0 0; }
  .tile--serials .shot { width: 100%; }
}

/* ---------------------------------------------------------------- Close */
.close {
  padding-block: var(--section) clamp(72px, 6vw, 120px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end;
}
.close__title { grid-column: 1 / span 7; }
.close__end { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.close__text { color: var(--muted); max-width: 40ch; }

/* ---------------------------------------------------------------- Footer board */
.board {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px;
  padding-bottom: var(--margin);
}
.board > * { border-radius: var(--radius); }
.board__cta {
  grid-column: span 5; grid-row: span 2;
  background: var(--gold); color: var(--ink); text-decoration: none;
  padding: 32px; min-height: 320px;
  display: flex; flex-direction: column; gap: 8px; position: relative;
}
.board__cta-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; max-width: 11ch; }
.board__cta-body { font-weight: 600; margin-top: 8px; }
.board__arrow { position: absolute; right: 32px; bottom: 32px; width: 56px; height: 56px; }
.board__logo {
  grid-column: span 3; background: var(--surface); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 220px;
}
.board__logo img { width: 112px; height: 112px; mix-blend-mode: multiply; }
.board__logo p { color: var(--muted); }
.board__contact { grid-column: span 4; background: var(--surface); padding: 28px; }
.board__label { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); margin-bottom: 16px; }
.board__contact dl { display: grid; gap: 12px; }
.board__contact dt { font-size: var(--step-small); color: var(--muted); }
.board__contact dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -11px; font-weight: 600; text-decoration: none; }
.board__company { grid-column: span 3; background: var(--navy); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 92px; gap: 8px; }
.board__company-name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); }
.board__company p:last-child { color: var(--navy-muted); }
.board__nav { grid-column: span 4; background: var(--surface); padding: 20px 28px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 24px; }
.board__nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; font-size: var(--step-small); }
.board__legal { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); padding: 16px 0 8px; }

/* Hover only where a pointer can hover. */
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--gold-press); }
  .link:hover { text-decoration-color: var(--ink); }
  .bar__nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--gold); }
  .lang:hover { text-decoration: underline; text-underline-offset: 6px; }
  .route__stops a:hover { background: var(--surface-2); }
  .tab:hover:not([aria-selected='true']) { background: var(--surface-2); }
  .board__cta:hover { background: var(--gold-press); }
  .board__contact dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .board__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* ================================================================ Tablet */
@media (max-width: 1100px) {
  .bar__nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero__copy { padding-top: clamp(48px, 7vh, 88px); }
  .hero__stage { height: 520px; margin-left: var(--margin); }
  .stop__text .stop__title, .stop__text p, .stop__text .stop__closing { grid-column: 1 / -1; }
  .stop__text p { padding-top: 0; }
  .stop--device { grid-template-columns: 1fr; row-gap: 32px; }
  .stage--device { margin-left: var(--margin); }
  .handheld__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .tile { grid-column: span 6; }
  .tile--counts, .tile--receipts, .tile--serials { grid-column: span 12; }
  .tile--serials { flex-direction: column; gap: 0; }
  .tile--serials .tile__text { flex: none; }
  .board__cta { grid-column: span 12; grid-row: auto; min-height: 220px; }
  .close__title, .close__end { grid-column: 1 / -1; }
  .board__logo, .board__company { grid-column: span 6; }
  .board__contact, .board__nav { grid-column: span 6; }
}

/* ================================================================ Phone */
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .bar__inner { height: 64px; gap: 16px; }
  .mark img { width: 32px; height: 32px; }
  .bar__end { gap: 14px; }
  .bar__cta-long { display: none; }
  .bar__cta-short { display: inline; }
  .hero__copy { padding-top: 40px; padding-bottom: 40px; gap: 20px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link { align-self: flex-start; }
  .hero__stage { height: 360px; padding: 24px 0 0 24px; margin-left: 0; }
  .route__head .head, .route__lede { grid-column: 1 / -1; }
  .route__stops li + li::before { content: none; }
  .stop { margin-top: 80px; }
  .stop__text { margin-bottom: 24px; }
  .stop__stage { margin-left: var(--margin); padding: 24px 0 0 24px; height: 380px; }
  .stage--short { height: 360px; }
  .stage--device { padding: 32px 24px; margin-inline: var(--margin); }
  .stage--device .shot { width: min(300px, 100%); }
  .handheld__run {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin);
    scrollbar-width: none; scroll-padding-inline: var(--margin);
  }
  .handheld__run::-webkit-scrollbar { display: none; }
  .device { flex: 0 0 78vw; scroll-snap-align: start; }
  .device--lifted { margin-top: 0; }
  .mid .btn { width: 100%; }
  .iot__head { margin-bottom: 28px; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
  .plate { padding: 24px 0 0 24px; height: 380px; margin-inline: calc(var(--margin) * -1); }
  .chain { grid-template-columns: 1fr; }
  .chain li + li h3::before { content: '↓'; }
  .tile, .tile--counts, .tile--receipts { grid-column: 1 / -1; min-height: 0; padding: 24px; }
  .tile__shot { margin: 24px -24px -24px 0; }
  .tile--serials .tile__shot { margin: 24px -24px 0 0; height: 320px; }
  .close .btn { width: 100%; }
  .close__end { align-items: stretch; }
  .close__title { font-size: 1.75rem; }
  :lang(en) .close__title { font-size: 1.5rem; }
  .board > * { grid-column: 1 / -1 !important; }
  .board__cta { min-height: 200px; padding: 24px; }
  .board__arrow { right: 24px; bottom: 24px; width: 44px; height: 44px; }
  .notes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 1100px) { .hero .display { font-size: clamp(2rem, 7vw, 4.5rem); } :lang(en) .hero .display { font-size: clamp(1.875rem, 6vw, 4rem); } }

@media (max-width: 640px) { .stage .shot--true { transform: translateX(calc(var(--focus-x, 0px) * -1)); } }
