/*
  Tokens. A quiet, precise page: cool paper-white ground, near-black ink, and
  one red that only ever means "deviation", as in the app. Shape rule: cards
  and frames 16px outside / 10px inside, buttons and inputs 10px, small chips 6px.
*/
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --sunken: #eef0f1;
  --ink: #0c0e0f;
  --ink-2: #4a5157;
  --ink-3: #7b848b;
  --rule: #e3e6e8;
  --rule-2: #d3d8db;
  --red: #d42a1e;
  --red-soft: #fcebe9;
  --on-ink: #ffffff;
  --brand: #1d5c43;
  --brand-2: #174a36;
  --brand-deep: #0e2a20;
  --brand-soft: #e3efe9;
  --brand-text: #1d5c43;
  --on-brand: #ffffff;
  --shadow:
    0 1px 2px rgb(12 20 26 / 0.05), 0 12px 32px -12px rgb(12 20 26 / 0.16);
  --shadow-lift:
    0 2px 4px rgb(12 20 26 / 0.05), 0 30px 60px -20px rgb(12 20 26 / 0.28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --display:
    "Bricolage Grotesque", "Schibsted Grotesk", ui-sans-serif, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--rule-2) transparent;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      1100px 620px at 88% -8%,
      rgb(29 92 67 / 0.1),
      transparent 62%
    ),
    radial-gradient(
      900px 520px at -6% 4%,
      rgb(29 92 67 / 0.06),
      transparent 60%
    ),
    var(--bg);
  background-repeat: no-repeat;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--red);
}
::selection {
  background: var(--brand);
  color: var(--on-brand);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}
.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-stretch: 96%;
  text-wrap: balance;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.6rem, 4.9vw, 4.2rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--brand-text);
}
p {
  margin: 0;
}
.lead {
  font-size: clamp(1.1rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36ch;
  text-wrap: pretty;
}
.body {
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

/* Buttons: text and a small arrow, nothing boxed inside. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  font: 500 16px / 1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn .arrow {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  transition: transform 200ms var(--ease-out);
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.12) inset,
    var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-2);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--brand-2);
  }
  .btn:hover .arrow {
    transform: translate(2px, -2px);
  }
  .btn-ghost:hover {
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--ink-3);
  }
}

/* Navigation: transparent over the hero, a glass strip once the page scrolls. */
.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 8px 0 14px;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 0 0 1px transparent;
  transition:
    background-color 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 0 0 1px var(--rule),
    0 16px 40px -24px rgb(12 20 26 / 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  justify-self: start;
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  font-size: 14.5px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 9px;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--ink);
    background: var(--surface);
  }
}
.nav .btn {
  justify-self: end;
  min-height: 44px;
  font-size: 14.5px;
  padding: 0 16px;
}
@media (max-width: 960px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 440px) {
  .nav .btn-long {
    display: none;
  }
}

/* Hero: the promise left, the proof right (tablet in front, the printed sheet behind). */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 26px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.proof {
  position: relative;
  padding: 0 0 12% 10%;
}
.paper {
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.paper img {
  width: 100%;
}
.device {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56%;
  padding: 9px;
  border-radius: 22px;
  background: #16191b;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.06) inset,
    var(--shadow-lift);
}
.device img {
  border-radius: 14px;
  width: 100%;
}
.js .hero .device {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease-out) 250ms,
    transform 700ms var(--ease-out) 250ms;
}
.js .hero .paper {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 700ms var(--ease-out) 80ms,
    transform 700ms var(--ease-out) 80ms;
}
.js .hero.in .device,
.js .hero.in .paper {
  opacity: 1;
  transform: none;
}
.proof-cap {
  position: absolute;
  right: 0;
  bottom: -2.2em;
  font-size: 13px;
  color: var(--ink-3);
}
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .proof {
    margin-top: 8px;
    padding: 0;
  }
  .device {
    position: relative;
    width: 74%;
    margin: -16% auto 0;
  }
  .js .hero .device {
    transform: translateY(28px);
  }
  .js .hero.in .device {
    transform: none;
  }
  .proof-cap {
    position: static;
    margin-top: 12px;
    text-align: center;
  }
}

/* Sections */
.section {
  padding: clamp(88px, 11vw, 150px) 0;
}
.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 720px;
}

/* From one record to the signed sheet. */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.sheet-stick {
  position: sticky;
  top: 100px;
}
.frame {
  padding: 7px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  box-shadow: 0 0 0 1px var(--rule);
}
.sheet {
  position: relative;
  background: #fff;
  color: #121414;
  border-radius: 10px;
  padding: clamp(14px, 2vw, 24px);
  box-shadow: var(--shadow);
  font-size: 12px;
  overflow: hidden;
}
.sheet-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border: 1px solid #1d2022;
}
.sheet-head > div {
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.3;
}
.sheet-head > div + div {
  border-left: 1px solid #1d2022;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: clamp(10px, 1.1vw, 13px);
  text-align: center;
  letter-spacing: -0.01em;
}
.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: clamp(9px, 0.95vw, 12px);
  table-layout: fixed;
}
.sheet th,
.sheet td {
  border: 1px solid #25292b;
  padding: 3px 4px;
  text-align: center;
  height: clamp(16px, 1.9vw, 23px);
}
.sheet th {
  background: #eff1f2;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(9px, 0.9vw, 11px);
}
.sheet td {
  color: #c3c9cc;
  transition: color 320ms var(--ease-out);
}
.sheet td.w {
  color: #121414;
}
.sheet td.bad {
  color: #d42a1e;
  font-weight: 600;
}
.sheet td.fix {
  text-align: left;
  font-family: var(--sans);
  font-size: clamp(8px, 0.85vw, 11px);
}
.sheet-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 14px;
  font-size: 11px;
  gap: 16px;
}
.sign {
  width: 44%;
  border-bottom: 1px solid #1d2022;
  height: 28px;
  position: relative;
}
.sign svg {
  position: absolute;
  left: 12%;
  bottom: 2px;
  width: 70%;
  height: 34px;
  stroke: #1c3f94;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 900ms var(--ease-in-out);
}
.sheet.signed .sign svg {
  stroke-dashoffset: 0;
}
.stamp {
  position: absolute;
  right: 8%;
  bottom: 20%;
  border: 2px solid #d42a1e;
  color: #d42a1e;
  border-radius: 6px;
  padding: 7px 12px;
  font: 600 clamp(12px, 1.4vw, 16px) / 1 var(--mono);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: rotate(-6deg) scale(1.1);
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}
.sheet.closed .stamp {
  opacity: 0.92;
  transform: rotate(-6deg) scale(1);
}
.stages {
  display: none;
}
.steps {
  display: grid;
  gap: 24px;
  padding-bottom: 140px;
}
.step {
  min-height: 380px;
  display: grid;
  align-content: center;
  gap: 12px;
  opacity: 0.35;
  transition: opacity 300ms var(--ease-out);
}
.step.on {
  opacity: 1;
}
.step h3 {
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  letter-spacing: -0.03em;
}
.step-mark {
  font: 500 13px var(--mono);
  color: var(--brand-text);
}
.peek {
  margin-top: 10px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--rule),
    var(--shadow);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  max-width: 420px;
  font-size: 14.5px;
}
.peek-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.peek b {
  font-weight: 600;
}
.peek .muted {
  color: var(--ink-3);
  font-size: 13px;
}
.peek .val {
  font: 600 20px var(--mono);
}
.peek .val.bad {
  color: var(--red);
}
.peek .pill {
  font: 500 12.5px var(--sans);
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-text);
  white-space: nowrap;
}
.peek .pill.bad {
  background: var(--red-soft);
  color: var(--red);
}
.peek .choice {
  padding: 9px 12px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1.5px var(--brand);
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: center;
}
.peek .choice svg {
  width: 16px;
  height: 16px;
  fill: var(--brand-text);
}
.peek .fake-btn {
  justify-self: start;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}
.no-js .step,
.reduced .step {
  opacity: 1;
}
@media (max-width: 920px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sheet-stick {
    position: static;
  }
  .steps {
    padding-bottom: 0;
    gap: 14px;
  }
  .step {
    min-height: 0;
    padding: 22px 20px;
    background: var(--surface);
    border-radius: 16px;
    opacity: 1;
    box-shadow: 0 0 0 1px var(--rule);
  }
  .peek {
    max-width: none;
    box-shadow: 0 0 0 1px var(--rule);
  }
  .stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
  }
  .stages li {
    position: relative;
    padding-top: 10px;
    font: 500 12px var(--sans);
    color: var(--ink-3);
    text-align: center;
    transition: color 240ms var(--ease-out);
  }
  .stages li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--rule-2);
    transform-origin: left;
  }
  .stages li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 900ms var(--ease-out);
  }
  .stages li.on {
    color: var(--brand-text);
  }
  .stages li.on::after {
    transform: scaleX(1);
  }
}

/* Roles */
.roles-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--sunken);
  margin-bottom: 36px;
}
.role-tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--ink-2);
  font: 500 15px var(--sans);
  letter-spacing: -0.01em;
  transition:
    transform 160ms var(--ease-out),
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}
.role-tab:active {
  transform: scale(0.97);
}
.role-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    0 1px 2px rgb(12 20 26 / 0.08),
    0 0 0 1px var(--rule);
}
@media (hover: hover) and (pointer: fine) {
  .role-tab[aria-selected="false"]:hover {
    color: var(--ink);
  }
}
.role-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.role-copy {
  display: grid;
  gap: 22px;
  transition: opacity 200ms var(--ease-out);
}
.role-copy.swap {
  opacity: 0;
}
.role-copy h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: var(--ink-2);
}
.ticks .icon {
  margin-top: 5px;
  color: var(--brand-text);
}
.shot-inner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 1400 / 900;
}
.shot-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition:
    opacity 240ms var(--ease-out),
    filter 240ms var(--ease-out);
}
.shot-inner img.swap {
  opacity: 0;
  filter: blur(2px);
}
.cap {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
}
@media (max-width: 920px) {
  .role-panel {
    grid-template-columns: 1fr;
  }
}

/* Small firm, big firm */
.split2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.setup {
  background: var(--surface);
  border-radius: 16px;
  padding: clamp(24px, 3.4vw, 44px);
  display: grid;
  gap: 20px;
  align-content: start;
  box-shadow: 0 0 0 1px var(--rule);
}
.setup h3 {
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  letter-spacing: -0.03em;
}
.setup-visual {
  border-radius: 12px;
  background: var(--sunken);
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 196px;
}
.desk-row {
  display: grid;
  grid-template-columns: 50px 1fr 84px 84px;
  align-items: center;
  gap: 8px;
  font: 500 12.5px var(--mono);
  color: var(--ink-2);
}
.desk-row b {
  font: 500 13.5px var(--sans);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.desk-row .dc {
  white-space: nowrap;
  height: 30px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule-2);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.desk-row .dc.focus {
  box-shadow: inset 0 0 0 2px var(--brand);
}
.tree {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tree-plant {
  display: grid;
  gap: 6px;
  align-content: start;
}
.tree-plant b {
  font: 600 13px var(--sans);
  letter-spacing: -0.01em;
  padding: 7px 10px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 7px;
}
.tree-plant span {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 500 12.5px var(--sans);
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.tree-plant span svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: none;
}
.pilot {
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 15.5px;
}
.pilot b {
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 820px) {
  .split2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .tree {
    grid-template-columns: 1fr 1fr;
  }
  .tree-plant:last-child {
    display: none;
  }
  .desk-row {
    grid-template-columns: 42px 1fr 64px 64px;
  }
}

/* Inspection bento: four cells, four materials. */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.cell {
  border-radius: 16px;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 14px;
  align-content: start;
  position: relative;
  overflow: hidden;
}
.cell h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  letter-spacing: -0.03em;
}
.cell p {
  opacity: 0.82;
  max-width: 46ch;
}
.c-trace {
  grid-column: span 7;
  grid-row: span 2;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
}
.c-check {
  grid-column: span 5;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
}
.c-pack {
  grid-column: span 5;
  background: var(--sunken);
}
.c-dates {
  grid-column: span 12;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .c-trace,
  .c-check,
  .c-pack,
  .c-dates {
    grid-column: span 12;
    grid-row: auto;
  }
  .c-dates {
    grid-template-columns: 1fr;
  }
}
.lot-input {
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  border: 0;
  padding: 0 16px;
  background: var(--sunken);
  color: var(--ink);
  font: 500 17px var(--mono);
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px var(--rule-2);
}
.lot-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.lot-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lot-chip {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  background: var(--sunken);
  color: var(--ink-2);
  font: 500 13px var(--mono);
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    color 160ms ease;
}
.lot-chip:active {
  transform: scale(0.97);
}
.lot-chip[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}
.chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.chain-col {
  display: grid;
  gap: 8px;
  align-content: start;
}
.chain-col > b {
  font: 500 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.chain-item {
  background: var(--sunken);
  color: var(--ink);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.3;
  transition:
    opacity 240ms var(--ease-out),
    box-shadow 240ms ease,
    background-color 240ms ease;
}
.chain-item small {
  display: block;
  font: 400 11.5px var(--mono);
  color: var(--ink-3);
  margin-top: 3px;
}
.chain-item.hit {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.chain-item.dim {
  opacity: 0.38;
}
.chain-empty {
  color: var(--ink-3);
  font-size: 15px;
}
.fine {
  font-size: 12.5px;
  color: var(--ink-3);
}
@media (max-width: 560px) {
  .chain {
    grid-template-columns: 1fr;
  }
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.checklist li {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--sunken);
  font-size: 15px;
}
.checklist .n {
  font: 500 13px var(--mono);
}
.checklist .bad {
  color: var(--red);
}
.pack {
  position: relative;
  height: 170px;
  margin-top: 4px;
}
.pack img {
  position: absolute;
  width: 78%;
  border-radius: 4px;
  box-shadow: var(--shadow);
  background: #fff;
}
.pack .p1 {
  left: 0;
  bottom: 0;
}
.pack .p2 {
  right: 0;
  top: 0;
  width: 62%;
}
.dates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.dates li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--sunken);
}
.dates li span {
  color: var(--ink-2);
  font-size: 14px;
}
.dates .when {
  font: 500 13.5px var(--mono);
  white-space: nowrap;
  color: var(--ink);
}
.dates .soon {
  color: var(--red);
}

/* For consultants: a tinted band, the one place the brand colour fills a surface before the close. */
.consult {
  background: var(--brand-soft);
  border-radius: 24px;
  padding: clamp(32px, 6vw, 72px);
}
.consult-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 14px var(--sans);
  color: var(--brand-text);
  margin-bottom: 18px;
}
.consult-kicker svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.statement {
  font-family: var(--display);
  font-stretch: 96%;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 24ch;
  text-wrap: balance;
  color: var(--ink);
}
.statement span {
  color: var(--brand-text);
}
.consult-facts {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.consult-facts > div {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 0 0 1px var(--rule);
  display: grid;
  gap: 6px;
  align-content: start;
}
.consult-facts .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.consult-facts .ic svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.consult-facts b {
  font-weight: 600;
  letter-spacing: -0.015em;
}
.consult-facts span {
  color: var(--ink-2);
  font-size: 15px;
}
@media (max-width: 820px) {
  .consult-facts {
    grid-template-columns: 1fr;
  }
}

/* What it never does: six small cards, each a promise. */
.never {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.never li {
  background: var(--surface);
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: 0 0 0 1px var(--rule);
  display: grid;
  gap: 10px;
  align-content: start;
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}
.never .x {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.never .x svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.never b {
  display: block;
  font-family: var(--display);
  font-stretch: 96%;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  line-height: 1.2;
}
.never span {
  color: var(--ink-2);
  font-size: 15px;
}
@media (hover: hover) and (pointer: fine) {
  .never li:hover {
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px var(--rule-2),
      var(--shadow);
  }
}
@media (max-width: 900px) {
  .never {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .never {
    grid-template-columns: 1fr;
  }
}

/* Close */
.close {
  padding: clamp(40px, 6vw, 80px) 0 clamp(88px, 10vw, 140px);
}
.close-card {
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 20px;
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 32px;
  align-items: end;
}
.close-card h2 {
  color: var(--on-brand);
}
.close-card p {
  color: rgb(255 255 255 / 0.78);
  margin-top: 16px;
  max-width: 44ch;
}
.close-card .btn {
  background: #fff;
  color: #0e2a20;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}
@media (hover: hover) and (pointer: fine) {
  .close-card .btn:hover {
    background: #eef5f1;
  }
}
@media (max-width: 820px) {
  .close-card {
    grid-template-columns: 1fr;
  }
}
footer {
  padding: 0 0 48px;
  font-size: 14px;
  color: var(--ink-3);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

/* Video: the real flow, recorded from the demo firm. */
.video-wrap {
  max-width: 980px;
  margin: 0 auto;
}
.video-frame {
  padding: 8px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  box-shadow: 0 0 0 1px var(--rule);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 1180 / 960;
}
.video-cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.video-toggle {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--brand-text);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Questions */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq details {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--display);
  font-stretch: 96%;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .plus {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  transition: transform 200ms var(--ease-out);
}
.faq summary .plus svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.faq details[open] summary .plus {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 22px 22px;
  color: var(--ink-2);
  max-width: 66ch;
}
.faq summary:focus-visible {
  outline-offset: -2px;
  border-radius: 14px;
}
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover .plus {
    background: var(--brand);
    color: #fff;
  }
}

/* Contact form inside the closing block */
.close-card {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}
.form {
  background: #fff;
  color: #0e1a15;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.form .full {
  grid-column: 1 / -1;
}
.field {
  display: grid;
  gap: 6px;
}
.field label,
.field legend {
  font: 500 14px var(--sans);
  color: #33413a;
  padding: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 0;
  padding: 10px 12px;
  font: 400 16px var(--sans);
  color: #0e1a15;
  background: #f3f6f4;
  box-shadow: inset 0 0 0 1px #d4ddd8;
  transition: box-shadow 150ms ease;
}
.field textarea {
  min-height: 88px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6b7a73;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
  background: #fff;
}
.field .err {
  font-size: 13px;
  color: #b3261b;
  min-height: 0;
}
.field.bad input,
.field.bad select {
  box-shadow: inset 0 0 0 2px #d42a1e;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  color: #33413a;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
.close-card .form .btn-primary {
  justify-self: start;
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .close-card .form .btn-primary:hover {
    background: var(--brand-2);
  }
}
.form-note {
  font-size: 13px;
  color: #56655e;
  align-self: center;
}
.form-done {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 8px 0;
}
.form-done b {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
@media (max-width: 900px) {
  .close-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .form {
    grid-template-columns: 1fr;
  }
}

/* Reveal on scroll: visible by default, animated only with JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 640ms var(--ease-out),
    transform 640ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .hero .device,
  .js .hero .paper {
    transform: none;
    transition: opacity 300ms ease;
  }
  .btn:active,
  .role-tab:active,
  .lot-chip:active {
    transform: none;
  }
  .sign svg {
    transition: none;
  }
  .stamp {
    transform: rotate(-6deg);
    transition: opacity 200ms ease;
  }
  .shot-inner img {
    transition: opacity 200ms ease;
    filter: none !important;
  }
}
