/* Landing view for taptoprove.ee. Every rule is scoped to the landing host.
   On nfc.taptoprove.ee index.html disables this file and links styles.css directly.

   The landing also embeds the capture form (#capture) and the sheet card (#hygieen),
   which styles.css draws. styles.css is imported here as layer "app", so every
   unlayered rule below wins over it. Outside the two form sections one zero
   specificity `all: revert` drops whatever styles.css set, so the landing renders
   as if styles.css were absent. Inside them styles.css applies unchanged. */
@layer form-base, app;
@import url('./styles.css') layer(app);

:where(html[data-mode="landing"]),
:where(html[data-mode="landing"]) :where(body, body :not(svg, svg *, #capture *, #hygieen *, #capture, #hygieen)),
:where(html[data-mode="landing"]) :where(body :not(svg, svg *, #capture *, #hygieen *, #capture, #hygieen))::before,
:where(html[data-mode="landing"]) :where(body :not(svg, svg *, #capture *, #hygieen *, #capture, #hygieen))::after { all: revert; }

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('./fonts/barlow_condensed_700_latin_ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('./fonts/barlow_condensed_700_latin.woff2') format('woff2'); 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: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('./fonts/barlow_condensed_800_latin_ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('./fonts/barlow_condensed_800_latin.woff2') format('woff2'); 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: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('./fonts/barlow_400_latin_ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('./fonts/barlow_400_latin.woff2') format('woff2'); 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: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('./fonts/barlow_500_latin_ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('./fonts/barlow_500_latin.woff2') format('woff2'); 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: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('./fonts/barlow_600_latin_ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('./fonts/barlow_600_latin.woff2') format('woff2'); 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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('./fonts/ibm_plex_mono_500_latin_ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('./fonts/ibm_plex_mono_500_latin.woff2') format('woff2'); 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; }

html[data-mode="landing"] {
  --black: #000;
  --white: #fff;
  --red: #e2001a;
  --red-deep: #b80016;
  --red-tint: #fdeced;
  --gray: #5e5e5e;
  --gray-dark: #a3a3a3;
  --surface: #f3f3f3;
  --line: #e4e4e4;
  --line-dark: #2a2a2a;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --page: 1280px;
  --gutter: 40px;
  --icon-nfc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M11 5a10 10 0 0 1 0 14'/%3E%3Cpath d='M15 1.8a14.5 14.5 0 0 1 0 20.4'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  accent-color: var(--black);
  background: var(--white);
}

html[data-mode="landing"] body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 17px/1.55 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--red);
}
html[data-mode="landing"] *,
html[data-mode="landing"] *::before,
html[data-mode="landing"] *::after { box-sizing: border-box; }
html[data-mode="landing"] :not(:where(#capture, #hygieen) *)::selection { background: var(--red); color: var(--white); }
html[data-mode="landing"] [hidden] { display: none !important; }
/* Element resets stay out of the capture form and the sheet card, which styles.css
   draws exactly as on the NFC host. :where() keeps the specificity at (0,1,1). */
html[data-mode="landing"] :where(h1, h2, h3, p, figure, ol, ul):not(:where(#capture, #hygieen) *) { margin: 0; }
html[data-mode="landing"] button:not(:where(#capture, #hygieen) *) { font: inherit; color: inherit; cursor: pointer; }
html[data-mode="landing"] a:not(:where(#capture, #hygieen) *) { color: inherit; }
html[data-mode="landing"] :focus-visible:not(:where(#capture, #hygieen) *) { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
html[data-mode="landing"] .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;
}

/* NFC-only parts stay off the landing host. */
html[data-mode="landing"] #sheetLink,
html[data-mode="landing"] #net,
html[data-mode="landing"] .skip { display: none !important; }

/* Buttons and links. The capture form and sheet card keep their styles.css buttons. */
html[data-mode="landing"] .link-button:not(:where(#capture, #hygieen) *) {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 12px;
  font: 600 17px/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
html[data-mode="landing"] .link-button.primary:not(:where(#capture, #hygieen) *) { background: var(--red); color: var(--white); }
html[data-mode="landing"] .link-button.primary:not(:where(#capture, #hygieen) *):hover { background: var(--red-deep); }
html[data-mode="landing"] .link-button.ghost:not(:where(#capture, #hygieen) *) { background: transparent; color: var(--black); box-shadow: inset 0 0 0 1.5px var(--black); }
html[data-mode="landing"] .link-button.ghost:not(:where(#capture, #hygieen) *):hover { background: var(--black); color: var(--white); }
html[data-mode="landing"] .link-button.small:not(:where(#capture, #hygieen) *) { min-height: 42px; padding: 0 16px; font-size: 15px; }

/* Top bar */
html[data-mode="landing"] .topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
html[data-mode="landing"] .nav-shell {
  display: flex; align-items: center; gap: 32px;
  max-width: var(--page); height: 68px; margin: 0 auto; padding: 0 var(--gutter);
}
html[data-mode="landing"] .nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--black);
  font: 800 23px/1 var(--display);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
html[data-mode="landing"] .nav-brand::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4.5px var(--red);
  margin-right: 4px;
}
html[data-mode="landing"] .nav-links { display: flex; gap: 28px; margin-left: 20px; }
html[data-mode="landing"] .nav-links a {
  color: var(--gray); font: 500 15px/1 var(--sans); text-decoration: none;
  padding: 8px 0; transition: color .15s;
}
html[data-mode="landing"] .nav-links a:hover { color: var(--black); }
html[data-mode="landing"] .nav-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
html[data-mode="landing"] .switch {
  min-width: 44px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--black);
  font: 600 14px/1 var(--sans);
  transition: border-color .15s;
}
html[data-mode="landing"] .switch:hover { border-color: var(--black); }
html[data-mode="landing"] .nav-cta {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  border-radius: 10px; background: var(--black); color: var(--white);
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease);
}
html[data-mode="landing"] .nav-cta:hover { background: var(--red); }

/* Hero: copy on the left, the live tap demo on the right. */
html[data-mode="landing"] .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "copy demo";
  column-gap: 48px;
  align-items: center;
  max-width: var(--page);
  margin: 0 auto;
  padding: 64px var(--gutter) 112px;
}
html[data-mode="landing"] .hero-copy { grid-area: copy; }
html[data-mode="landing"] .hero h1 {
  font: 800 clamp(56px, 6.1vw, 92px)/.9 var(--display);
  letter-spacing: -.012em;
  text-wrap: balance;
  margin-bottom: 28px;
}
html[data-mode="landing"] .hero-note {
  max-width: 36ch;
  color: var(--gray);
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 34px;
}
html[data-mode="landing"] .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
html[data-mode="landing"] .hero-proof {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px;
  color: var(--gray);
  font-size: 15px;
}
html[data-mode="landing"] .hero-proof::before {
  content: ''; flex: none; width: 18px; height: 18px;
  background: var(--red);
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}

html[data-mode="landing"] .demo { grid-area: demo; display: flex; flex-direction: column; align-items: center; }
html[data-mode="landing"] .demo-stage { display: flex; align-items: center; gap: 30px; }
html[data-mode="landing"] .demo-cards { display: flex; flex-direction: column; gap: 16px; }
html[data-mode="landing"] .demo-hint { margin-top: 22px; color: var(--gray); font-size: 15px; text-align: center; }

/* NFC stickers: the physical object the product is built around. */
html[data-mode="landing"] .tag {
  --r: -3deg;
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  width: 144px; height: 144px; padding: 15px;
  border: 0; border-radius: 18px;
  background: var(--black); color: var(--white);
  text-align: left;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
  transform: rotate(var(--r));
  box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
html[data-mode="landing"] .tag:nth-child(2) { --r: 2.5deg; margin-left: 26px; }
html[data-mode="landing"] .tag:nth-child(3) { --r: -1.2deg; }
html[data-mode="landing"] .tag:hover { transform: translateY(-4px) rotate(var(--r)); box-shadow: 0 18px 32px rgba(0, 0, 0, .22); }
html[data-mode="landing"] .tag.is-active { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--red), 0 14px 28px rgba(0, 0, 0, .2); }
html[data-mode="landing"] .tag.dragging { cursor: grabbing; z-index: 10; transition: none; box-shadow: 0 28px 46px rgba(0, 0, 0, .3); }
html[data-mode="landing"] .demo:not(.touched) .tag:first-child { animation: nudge 1.1s var(--ease) 1.6s 2; }
html[data-mode="landing"] .tag.flying { z-index: 10; }
html[data-mode="landing"] .tag-mark { display: inline-flex; align-items: center; gap: 3px; }
html[data-mode="landing"] .tag-mark::before { content: ''; width: 13px; height: 13px; border-radius: 50%; background: var(--red); }
html[data-mode="landing"] .tag-mark::after {
  content: ''; width: 20px; height: 20px; background: var(--white);
  -webkit-mask: var(--icon-nfc) center / contain no-repeat; mask: var(--icon-nfc) center / contain no-repeat;
}
html[data-mode="landing"] .tag-place {
  margin-top: auto;
  font: 800 23px/1 var(--display);
  letter-spacing: .01em;
  text-transform: uppercase;
}
html[data-mode="landing"] .tag-id { margin-top: 6px; color: var(--gray-dark); font: 500 11px/1 var(--mono); }

/* Phone */
html[data-mode="landing"] .phone {
  position: relative;
  flex: none;
  width: 288px; height: 588px; padding: 11px;
  border-radius: 48px;
  background: var(--black);
  box-shadow: 0 34px 64px rgba(0, 0, 0, .22), inset 0 0 0 2px #2b2b2b;
  transition: box-shadow .2s var(--ease);
}
html[data-mode="landing"] .phone::before {
  content: ''; position: absolute; z-index: 3; top: 22px; left: 50%;
  width: 84px; height: 24px; border-radius: 12px;
  background: var(--black); transform: translateX(-50%);
}
html[data-mode="landing"] .phone.drop-target { box-shadow: 0 0 0 4px var(--red), 0 34px 64px rgba(0, 0, 0, .22), inset 0 0 0 2px #2b2b2b; }
html[data-mode="landing"] .phone-screen {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%; padding: 20px 18px 20px;
  overflow: hidden;
  border-radius: 38px;
  background: var(--white);
}
html[data-mode="landing"] .phone-status {
  display: flex; justify-content: space-between; align-items: center;
  height: 22px; padding: 0 8px;
  font: 500 12px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
html[data-mode="landing"] .phone-battery { position: relative; width: 22px; height: 11px; border: 1.5px solid var(--black); border-radius: 3px; }
html[data-mode="landing"] .phone-battery::before { content: ''; position: absolute; inset: 1.5px 6px 1.5px 1.5px; border-radius: 1px; background: var(--black); }
html[data-mode="landing"] .phone-battery::after { content: ''; position: absolute; top: 2.5px; right: -4px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: var(--black); }
html[data-mode="landing"] .ps { flex: 1; display: flex; flex-direction: column; animation: ps-in .28s var(--ease); }
html[data-mode="landing"] .ps-idle,
html[data-mode="landing"] .ps-saved { align-items: center; justify-content: center; text-align: center; }
html[data-mode="landing"] .ps-idle { gap: 24px; }
html[data-mode="landing"] .ps-idle p { max-width: 13ch; font: 600 19px/1.25 var(--sans); }
html[data-mode="landing"] .ps-nfc {
  display: grid; place-items: center;
  width: 116px; height: 116px; border-radius: 50%;
  border: 1.5px solid var(--line);
  box-shadow: 0 0 0 14px var(--surface);
}
html[data-mode="landing"] .ps-nfc::before {
  content: ''; width: 52px; height: 52px; background: var(--black);
  -webkit-mask: var(--icon-nfc) center / contain no-repeat; mask: var(--icon-nfc) center / contain no-repeat;
}
html[data-mode="landing"] .ps-grade { padding-top: 30px; }
html[data-mode="landing"] .ps-label { color: var(--gray); font: 500 14px/1 var(--sans); }
html[data-mode="landing"] .ps-place {
  margin-top: 8px;
  font: 800 44px/.92 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
html[data-mode="landing"] .ps-grades { display: grid; gap: 10px; margin-top: auto; }
html[data-mode="landing"] .ps-grades button {
  display: flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 18px;
  border: 0; border-radius: 16px;
  font: 600 17px/1 var(--sans);
  text-align: left;
  transition: transform .14s var(--ease), filter .14s;
}
html[data-mode="landing"] .ps-grades button b { width: 20px; font: 800 34px/1 var(--display); }
html[data-mode="landing"] .ps-grades button:hover { transform: translateY(-1px); filter: brightness(1.08); }
html[data-mode="landing"] .ps-grades button:active { transform: scale(.98); }
html[data-mode="landing"] .ps-grades [data-grade="3"] { background: var(--black); color: var(--white); }
html[data-mode="landing"] .ps-grades [data-grade="2"] { background: var(--red-tint); color: var(--red-deep); box-shadow: inset 0 0 0 1.5px var(--red); }
html[data-mode="landing"] .ps-grades [data-grade="1"] { background: var(--red); color: var(--white); }
html[data-mode="landing"] .ps-saved { gap: 14px; }
html[data-mode="landing"] .ps-check {
  display: grid; place-items: center;
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--black);
}
html[data-mode="landing"] .ps-check::before {
  content: ''; width: 42px; height: 42px; background: var(--white);
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}
html[data-mode="landing"] .ps-saved strong { font: 800 30px/1 var(--display); }
html[data-mode="landing"] .ps-meta { color: var(--gray); font: 500 12px/1.4 var(--mono); }
html[data-mode="landing"] .phone-ping { position: absolute; top: 44%; left: 50%; pointer-events: none; }
html[data-mode="landing"] .phone-ping::before,
html[data-mode="landing"] .phone-ping::after {
  content: ''; position: absolute; left: -80px; top: -80px;
  width: 160px; height: 160px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0;
}
html[data-mode="landing"] .phone.pinging .phone-ping::before { animation: ping .7s var(--ease); }
html[data-mode="landing"] .phone.pinging .phone-ping::after { animation: ping .7s var(--ease) .14s; }

/* Black band: what it is and the four steps */
html[data-mode="landing"] .band { background: var(--black); color: var(--white); padding: 120px var(--gutter); }
html[data-mode="landing"] .band > section { max-width: calc(var(--page) - 2 * var(--gutter)); margin: 0 auto; }
html[data-mode="landing"] .explainer {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px; align-items: end;
  padding-bottom: 88px;
  border-bottom: 1px solid var(--line-dark);
}
html[data-mode="landing"] .explainer h2 { font: 800 clamp(48px, 5.4vw, 84px)/.92 var(--display); letter-spacing: -.012em; text-wrap: balance; }
html[data-mode="landing"] .explainer p { max-width: 44ch; color: var(--gray-dark); font-size: 20px; line-height: 1.55; }
html[data-mode="landing"] .how { padding-top: 72px; }
html[data-mode="landing"] .how-title { margin-bottom: 40px; font: 800 34px/1 var(--display); }
html[data-mode="landing"] .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 0; list-style: none; }
html[data-mode="landing"] .step {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "num icon" "text text";
  row-gap: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--white);
}
html[data-mode="landing"] .step-num { grid-area: num; color: var(--red); font: 800 76px/.8 var(--display); }
html[data-mode="landing"] .step-icon { grid-area: icon; width: 44px; height: 44px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-mode="landing"] .step p { grid-area: text; max-width: 17ch; font: 500 22px/1.3 var(--sans); }

/* Capture form and sheet card. styles.css draws both; here they only get the page
   frame. In the NFC view they inherit body font, colour and four custom properties
   that landing.css redefines on html, so those are put back to their styles.css
   values. The accent follows the landing red, so the page carries one red.
   The rule sits in a layer below "app", so any styles.css rule wins. */
@layer form-base {
  :where(html[data-mode="landing"]) :where(#capture, #hygieen) {
    --line: #dedbd9;
    --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --accent: var(--red);
    --accent-dark: var(--red-deep);
    --accent-tint: rgba(226, 0, 26, .08);
    color: var(--ink);
    font: 500 18px/1.45 var(--sans);
    caret-color: auto;
  }
}
html[data-mode="landing"] .site > :is(#capture, #hygieen) {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--page) - 2 * var(--gutter)));
  margin: 0 auto;
}
html[data-mode="landing"] .site > #capture { margin-top: 120px; }
html[data-mode="landing"] .site > #hygieen { margin-top: 24px; margin-bottom: 128px; }

/* Benefits */
html[data-mode="landing"] .benefits { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 128px; }
html[data-mode="landing"] .benefits > h2 { margin-bottom: 48px; font: 800 clamp(44px, 4.8vw, 72px)/.92 var(--display); letter-spacing: -.01em; }
html[data-mode="landing"] .benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
html[data-mode="landing"] .benefit { padding-top: 24px; border-top: 2px solid var(--black); }
html[data-mode="landing"] .benefit h3 { margin-bottom: 12px; font: 800 32px/1 var(--display); }
html[data-mode="landing"] .benefit p { max-width: 32ch; color: var(--gray); font-size: 18px; }

/* Try on a phone */
html[data-mode="landing"] .try {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px;
  padding: 112px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  background: var(--black); color: var(--white);
}
html[data-mode="landing"] .try h2 { margin-bottom: 22px; font: 800 clamp(56px, 6.4vw, 100px)/.9 var(--display); letter-spacing: -.012em; }
html[data-mode="landing"] .try p { max-width: 40ch; margin-bottom: 34px; color: var(--gray-dark); font-size: 20px; line-height: 1.5; }
html[data-mode="landing"] .qr { width: 268px; padding: 22px 22px 18px; border-radius: 24px; background: var(--white); color: var(--black); }
html[data-mode="landing"] .qr svg { display: block; width: 100%; height: auto; }
html[data-mode="landing"] .qr figcaption { margin-top: 12px; color: var(--gray); font: 500 12px/1.4 var(--mono); text-align: center; text-wrap: balance; }

/* Footer */
html[data-mode="landing"] .site-footer { background: var(--black); color: var(--white); border-top: 1px solid var(--line-dark); }
html[data-mode="landing"] .footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px;
  max-width: var(--page); margin: 0 auto; padding: 34px var(--gutter) 40px;
}
html[data-mode="landing"] .footer-brand { color: var(--white); font-size: 20px; }
html[data-mode="landing"] .footer-brand::before { box-shadow: 0 0 0 3px var(--black), 0 0 0 4.5px var(--red); }
html[data-mode="landing"] .footer-inner p { flex: 1 1 320px; color: var(--gray-dark); font-size: 14px; }
html[data-mode="landing"] .footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
html[data-mode="landing"] .footer-links a { color: var(--white); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #555; }
html[data-mode="landing"] .footer-links a:hover { text-decoration-color: var(--red); }

@keyframes ps-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes ping { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes nudge { 45% { transform: var(--nudge, translateX(22px)) rotate(0deg); } }

@media (hover: hover) and (pointer: fine) {
  html[data-mode="landing"] .tag { touch-action: none; }
}

@media (max-width: 1100px) {
  html[data-mode="landing"] { --gutter: 32px; }
  html[data-mode="landing"] .nav-links { gap: 20px; margin-left: 4px; }
  html[data-mode="landing"] .hero { column-gap: 32px; }
  html[data-mode="landing"] .tag { width: 124px; height: 124px; padding: 13px; }
  html[data-mode="landing"] .tag-place { font-size: 20px; }
  html[data-mode="landing"] .demo-stage { gap: 22px; }
}

@media (max-width: 960px) {
  html[data-mode="landing"] .nav-links { display: none; }
  html[data-mode="landing"] .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "demo"; padding-top: 48px; }
  html[data-mode="landing"] .hero h1 { font-size: clamp(48px, 9vw, 80px); }
  html[data-mode="landing"] .demo { margin-top: 56px; }
  html[data-mode="landing"] .explainer { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 64px; }
  html[data-mode="landing"] .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  html[data-mode="landing"] .benefit-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  html[data-mode="landing"] .try { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 640px) {
  html[data-mode="landing"] { --gutter: 20px; scroll-padding-top: 76px; }
  html[data-mode="landing"] body { font-size: 16px; }
  html[data-mode="landing"] .nav-shell { gap: 12px; height: 62px; }
  html[data-mode="landing"] .nav-brand { font-size: 20px; }
  html[data-mode="landing"] .nav-cta { padding: 0 14px; font-size: 14px; }
  html[data-mode="landing"] .hero { padding-top: 36px; padding-bottom: 72px; }
  html[data-mode="landing"] .hero h1 { font-size: clamp(42px, 12.4vw, 60px); margin-bottom: 20px; }
  html[data-mode="landing"] .hero-note { font-size: 18px; margin-bottom: 26px; }
  html[data-mode="landing"] .hero-actions .link-button { flex: 1 1 auto; }
  html[data-mode="landing"] .demo-stage { flex-direction: column; gap: 26px; }
  html[data-mode="landing"] .demo-cards { flex-direction: row; gap: 10px; }
  html[data-mode="landing"] .tag { --nudge: translateY(16px); }
  html[data-mode="landing"] .tag { width: 104px; height: 104px; padding: 11px; border-radius: 16px; }
  html[data-mode="landing"] .tag:nth-child(2) { margin-left: 0; }
  html[data-mode="landing"] .tag-place { font-size: 17px; }
  html[data-mode="landing"] .tag-id { font-size: 9px; }
  html[data-mode="landing"] .phone { width: 268px; height: 548px; }
  html[data-mode="landing"] .band { padding: 80px var(--gutter); }
  html[data-mode="landing"] .steps { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  html[data-mode="landing"] .step-num { font-size: 60px; }
  html[data-mode="landing"] .site > #capture { margin-top: 72px; }
  html[data-mode="landing"] .site > #hygieen { margin-bottom: 88px; }
  html[data-mode="landing"] .benefits { padding-bottom: 88px; }
  html[data-mode="landing"] .try { padding: 80px var(--gutter); }
  html[data-mode="landing"] .qr { width: 232px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-mode="landing"] { scroll-behavior: auto; }
  html[data-mode="landing"] *,
  html[data-mode="landing"] *::before,
  html[data-mode="landing"] *::after { animation: none !important; transition: none !important; }
}
