/* Sirevo Smart Pointer website — design v5 ("product document").
   Paper, ink and one red dot: the product's pointer colour is the only accent on the site, and in
   the photos too (they are shown in monochrome with the live dot drawn on top). Generous whitespace,
   a 12-column rhythm, spec-sheet rows instead of icon cards, numbered annotations on photos.
   Fonts are self-hosted (BIZ UDPGothic, IBM Plex Mono; SIL OFL, subset by tools/fonts/subset-fonts.py).
   CSP: plain CSS only, no inline styles, no external requests. */

@font-face { font-family: "BIZ UDPGothic"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/biz-udpgothic-400.woff2") format("woff2"); }
@font-face { font-family: "BIZ UDPGothic"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/biz-udpgothic-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --paper: #f3f4f1;
  --surface: #ffffff;
  --ink: #121412;
  --ink-2: #3b3f3a;       /* body copy on paper */
  --ink-soft: #5d625b;    /* labels, captions */
  --ink-mute: #7a7f78;    /* notes */
  --rule: #d5d8d1;        /* section rules */
  --rule-2: #c9cdc5;      /* table rows */
  --gray-1: #e3e5df;
  --gray-2: #b9bdb4;
  --gray-3: #2b2e2a;
  --dot: #ff2d2d;         /* the product's pointer colour: the dot, and nothing else */
  --dot-glow: rgba(255, 45, 45, 0.5);
  --ph-bg: #ffe38a;
  --ph-ink: #3d2e00;

  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo,
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 75rem;          /* 1200px content column */
  --wrap-doc: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --sec-y: clamp(3.5rem, 7vw, 5.5rem);
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.9;
  line-break: strict; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
:lang(en) { line-height: 1.7; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
a:hover { color: #000; text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, .slide-h { word-break: auto-phrase; text-wrap: balance; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.mono, .label { font-family: var(--font-mono); letter-spacing: 0.04em; }
.label { font-size: 0.8125rem; color: var(--ink-soft); }

.skip {
  position: absolute; left: 0.5rem; top: -12rem; z-index: 20;
  background: var(--surface); color: var(--ink); padding: 0.5rem 0.75rem; border: 2px solid var(--ink);
}
.skip:focus { top: 0.5rem; }

/* ---------- Wordmark: "Smart Pointer", the i's dot is the pointer ---------- */
.wordmark { font-family: var(--font-body); font-weight: 700; line-height: 1; letter-spacing: -0.015em; white-space: nowrap; }
.wm-i { position: relative; display: inline-block; }
.wm-i::after {
  content: ""; position: absolute; left: 50%; top: -0.02em;
  width: 0.26em; height: 0.26em; margin-left: -0.13em; border-radius: 50%; background: var(--dot);
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: baseline; gap: 0.875rem; color: var(--ink); text-decoration: none; padding: 0.5rem 0; }
.brand:hover { color: var(--ink); }
.brand .wordmark { font-size: 1.375rem; }
.brand-sub { font-size: 0.75rem; color: var(--ink-soft); white-space: nowrap; }
.site-nav ul { display: flex; gap: 0 2.25rem; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.site-nav a { display: inline-block; padding: 0.5rem 0; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.45em; }
.site-nav a[lang] { font-family: var(--font-mono); font-size: 0.8125rem; }
@media (max-width: 52rem) {
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 0.5rem; }
  .brand .wordmark { font-size: 1.1875rem; }
  .site-nav { width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); border-top: 1px solid var(--rule); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: 0 1.5rem; }
}

/* ---------- Type ---------- */
main { display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.4; margin: 0 0 1rem; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); line-height: 1.3; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: 1.125rem; }
p, ul, ol, dl, table, pre, blockquote { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.25rem 0; }
.meta { color: var(--ink-soft); font-size: 0.875rem; }
.lead { font-size: 1.0625rem; color: var(--ink-2); }
small, .small { font-size: 0.875rem; }
strong { font-weight: 700; }
code, kbd {
  font-family: var(--font-mono); font-size: 0.875em; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: 3px; padding: 0.05em 0.4em;
}
kbd { border-bottom-width: 2px; }
.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 0.3em; font-weight: 700; }

.note { background: var(--surface); border-left: 2px solid var(--ink); padding: 0.9rem 1.1rem; margin: 1.25rem 0; }
.note p:last-child { margin-bottom: 0; }
.card { background: var(--surface); border: 1px solid var(--rule); padding: 1.25rem 1.5rem; margin: 1.25rem 0; }
.card > :last-child { margin-bottom: 0; }

/* Tables: ruled rows, no boxes */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule-2); }
thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
caption { text-align: left; padding: 0 0 0.5rem; font-weight: 700; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-weight: 700; font-size: 0.9375rem; line-height: 1.4; text-decoration: none;
  transition: background-color 150ms ease;
}
.button:hover { background: #000; color: var(--paper); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--surface); color: var(--ink); }
.text-link { font-size: 0.9375rem; }
.cta-note { color: var(--ink-soft); font-size: 0.875rem; margin-top: 0.5rem; }

/* ---------- Sections (12-column rhythm: 4 for the heading, 8 for the body) ---------- */
.sec { padding: var(--sec-y) 0; border-top: 1px solid var(--rule); }
.sec-grid { display: grid; gap: 1.5rem; }
.sec-grid > .sec-head h2 { margin: 0; }
.sec-head p { margin: 1rem 0 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.85; }
@media (min-width: 60rem) {
  .sec-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 1.5rem; }
}

/* Spec sheet rows */
.spec { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; font-size: 0.9375rem; line-height: 1.8; }
.spec dt { padding: 1rem 0 0; border-top: 1px solid var(--rule-2); color: var(--ink-soft); font-size: 0.8125rem; }
.spec dd { margin: 0; padding: 0.25rem 0 1rem; }
.spec dd:last-of-type { border-bottom: 1px solid var(--rule-2); }
@media (min-width: 40rem) {
  .spec { grid-template-columns: 12.5rem minmax(0, 1fr); }
  .spec dt, .spec dd { padding: 1rem 0; border-top: 1px solid var(--rule-2); font-size: inherit; }
  .spec dt:last-of-type { border-bottom: 1px solid var(--rule-2); }
}

/* Numbered steps */
.steps4 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: st; }
@media (min-width: 40rem) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps4 { row-gap: 2.25rem; column-gap: 1.5rem; }
.steps4 li { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; border-top: 2px solid var(--ink); padding-top: 1rem; counter-increment: st; }
.steps4 li::before { content: counter(st, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-soft); }
.steps4 strong { font-size: 1.0625rem; line-height: 1.5; }
.steps4 span { font-size: 0.875rem; line-height: 1.8; color: var(--ink-2); }

/* Link cards */
.lcards { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lcard { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: border-color 150ms ease; }
.lcard:hover { border-color: var(--ink); color: var(--ink); }
.lcard strong { font-size: 1.125rem; }
.lcard span { font-size: 0.875rem; line-height: 1.8; color: var(--ink-2); }
.lcard .more { margin-top: 0.5rem; color: var(--ink); text-decoration: underline; text-underline-offset: 0.35em; }

/* ---------- Photos: monochrome, the live dot on top, numbered annotations ---------- */
.photo { position: relative; overflow: hidden; background: var(--gray-3); aspect-ratio: 1600 / 893; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.06) brightness(1.05); }
.photo-hand { aspect-ratio: 1200 / 896; }
.pdot {
  position: absolute; left: var(--x); top: var(--y); width: var(--d, 18px); height: var(--d, 18px);
  translate: -50% -50%; border-radius: 50%; background: var(--dot); z-index: 2;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 calc(var(--d, 18px) + 4px) calc(var(--d, 18px) / 3) var(--dot-glow);
}
/* A marker: a small point on the subject, a hairline leader and a numbered disc */
.mk { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 3; }
.mk::before {
  content: ""; position: absolute; left: 0; top: 0; height: 0; border-top: 1px solid #fff;
  width: hypot(var(--dx), var(--dy)); transform-origin: 0 0; rotate: atan2(var(--dy), var(--dx));
}
.mk::after { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.mk b {
  position: absolute; left: var(--dx); top: var(--dy); translate: -50% -50%;
  width: 1.625rem; height: 1.625rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font: 500 0.75rem/1 var(--font-mono);
}
@media (max-width: 40rem) { .mk b { width: 1.25rem; height: 1.25rem; font-size: 0.625rem; } .pdot { --d: 10px; } }

/* Positions (percent of the photo) */
.ph-stage .pdot { --x: 33.5%; --y: 21.5%; }
.ph-stage .mk-1 { --x: 35.9%; --y: 30.2%; --dx: 4.5rem; --dy: 3rem; }
.ph-stage .mk-2 { --x: 33.5%; --y: 21.5%; --dx: -4.5rem; --dy: -3.5rem; }
.ph-stage .mk-3 { --x: 17%; --y: 52%; --dx: -5rem; --dy: 4rem; }
.ph-hybrid .pdot { --x: 24.3%; --y: 25%; --d: 14px; }
.ph-hybrid .mk-1 { --x: 20%; --y: 45%; --dx: -3.5rem; --dy: 3.5rem; }
.ph-hybrid .mk-2 { --x: 63%; --y: 70%; --dx: -4rem; --dy: 3rem; }
.ph-hand .pdot { --x: 61.1%; --y: 21.4%; --d: 14px; }
@media (max-width: 40rem) {
  .ph-stage .mk-1 { --dx: 2rem; --dy: 1.5rem; } .ph-stage .mk-2 { --dx: -2rem; --dy: -1.25rem; } .ph-stage .mk-3 { --dx: -1.75rem; --dy: 1.75rem; }
  .ph-hybrid .mk-1 { --dx: -1.5rem; --dy: 1.5rem; } .ph-hybrid .mk-2 { --dx: -1.75rem; --dy: 1.25rem; }
}

/* Legend rows under / beside a photo */
.legend { list-style: none; margin: 0; padding: 0; counter-reset: lg; }
.legend li { margin: 0; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.6rem; padding: 0.75rem 0; border-top: 1px solid var(--rule-2); counter-increment: lg; font-size: 0.875rem; line-height: 1.7; }
.legend li:last-child { border-bottom: 1px solid var(--rule-2); }
.legend li::before { content: counter(lg); font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); padding-top: 0.15rem; }
.legend strong { display: block; font-size: 0.9375rem; }
.legend span { color: var(--ink-2); }
.fig-no { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.fig-note { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-mute); }

/* Figure 1: full-bleed photo, the legend panel overlaps its lower edge */
.fig-wide { margin: 2.5rem 0 0; }
.fig-wide > .photo { width: 100%; }
.fig-wide figcaption { position: relative; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: -1.75rem auto 0; padding: 0 var(--gutter); display: flex; justify-content: flex-end; }
.panel { width: min(30.5rem, 100%); margin-left: 1.5rem; background: var(--paper); padding: 1.25rem 0 0 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.panel-head strong { font-size: 1.0625rem; }
.panel-head .fig-no { margin-right: 0.75rem; }
@media (min-width: 60rem) {
  .fig-wide figcaption { margin-top: -9rem; }
  .panel { margin-left: 0; padding: 2rem 2.25rem 2.25rem; }
}

/* Figure 2: text on the left, the photo bleeds off the right edge */
.sec-bleed { padding: var(--sec-y) 0; border-top: 1px solid var(--rule); }
.bleed-grid { display: grid; gap: 1.5rem; }
.bleed-text { display: flex; flex-direction: column; gap: 1rem; padding: 0 var(--gutter); }
.bleed-text h2 { margin: 0; }
.bleed-text p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.85; }
@media (min-width: 60rem) {
  .bleed-grid {
    grid-template-columns: minmax(0, 24.5rem) minmax(0, 1fr); column-gap: 1.5rem; align-items: start;
    padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  }
  .bleed-text { padding: 3rem 0 0; }
}

/* ---------- Stage: the landing page's slide deck ---------- */
.stage { padding: clamp(1.75rem, 4vw, 3rem) 0 0; }
.stage-inner { max-width: calc(70rem + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.stage-status {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem 1rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0 0 1.25rem;
}
.stage-status strong { color: var(--ink); font-weight: 500; }
.stage-meta { display: inline-flex; align-items: center; gap: 1rem; margin-left: auto; }
.stage-count { white-space: nowrap; }
.autoplay {
  font: inherit; font-size: 0.6875rem; color: var(--ink-soft); cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.45rem; background: transparent;
  border: 1px solid var(--rule-2); border-radius: 999px; padding: 0.15rem 0.7rem 0.15rem 0.6rem;
}
.autoplay:hover { color: var(--ink); border-color: var(--ink); }
.autoplay::before { content: ""; width: 0.45rem; height: 0.55rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.autoplay.is-playing::before { clip-path: none; background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66% 100%); }

.deck { margin: 0; padding: 0; container-type: inline-size; }
.slide {
  position: relative; min-width: 0; margin: 0 0 1rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--gray-2);
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(18, 20, 18, 0.35);
  padding: clamp(1.25rem, 5.5%, 4rem) clamp(1.25rem, 6.5%, 4.5rem) calc(clamp(1.25rem, 5.5%, 4rem) + 2.25rem);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-content: center; align-items: center;
}
.slide-text { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.slide-kicker { margin: 0; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.slide-h { margin: 0; font-size: clamp(1.5rem, 4.2cqi, 2.5rem); line-height: 1.35; font-weight: 700; }
.slide-line { margin: 0; font-size: clamp(0.875rem, 1.6cqi, 1rem); line-height: 1.9; color: var(--ink-2); }
.slide-line code { font-size: 0.85em; }
.slide-title h1 { margin: 0; font-size: clamp(1.75rem, 5cqi, 3rem); line-height: 1.3; }
.slide-title .h1-sub { display: block; margin-top: 1.25rem; font-size: clamp(0.9375rem, 1.7cqi, 1.0625rem); font-weight: 400; line-height: 1.9; color: var(--ink-2); }
.slide-brand { margin: 0; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.08em; }
.slide-visual { position: relative; min-width: 0; display: flex; justify-content: center; }
.slide-foot {
  position: absolute; left: clamp(1.25rem, 6.5%, 4.5rem); right: clamp(1.25rem, 6.5%, 4.5rem); bottom: clamp(0.9rem, 3%, 1.5rem);
  display: flex; justify-content: space-between; border-top: 1px solid var(--gray-1); padding-top: 0.75rem;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-mute);
}
@container (min-width: 40rem) {
  .slide-text, .slide-visual { grid-row: 1; }
  .slide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 8%; }
  .slide.slide-title { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}
/* The slide deco SVGs: line drawings in ink and greys */
.deco { display: block; width: 100%; height: auto; overflow: visible; }
.deco text { font-family: var(--font-mono); font-size: 13px; fill: var(--ink); }
.deco .t-soft { fill: var(--ink-soft); font-size: 12px; }
.deco .t-big { font-size: 58px; font-weight: 500; letter-spacing: -0.03em; }
.slide-photo { position: relative; width: 100%; }
.slide-photo .deco { position: absolute; inset: 0; height: 100%; z-index: 3; pointer-events: none; }

/* App mock on the title slide */
.phone { width: min(12.5rem, 100%); aspect-ratio: 200 / 408; padding: 8px; background: #151714; border-radius: 32px; }
.phone-screen { height: 100%; background: #fbfbf9; border-radius: 25px; padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.phone-status { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; line-height: 1.2; }
.phone-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2e9e57; }
.phone-status b { font-weight: 700; }
.phone-status span { margin-left: auto; font-family: var(--font-mono); color: var(--ink-soft); }
.phone-pad { flex: 1; border: 1.5px dashed var(--gray-2); border-radius: 14px; background: #f0f1ee; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.phone-pad i { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.phone-pad i::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.phone-pad span { font-size: 0.625rem; line-height: 1.6; color: var(--ink-soft); text-align: center; }
.phone-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone-keys span { height: 50px; border-radius: 10px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--rule-2); }
.phone-keys span + span { background: var(--ink); color: #fbfbf9; border-color: var(--ink); }

/* Big app buttons (operation slide) and the mini spec (price slide) */
.big-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; max-width: 25rem; }
.big-keys span { aspect-ratio: 19 / 12; border: 1.5px solid var(--ink); border-radius: 18px; display: grid; place-items: center; font-size: clamp(1rem, 2.4cqi, 1.375rem); font-weight: 700; }
.big-keys span + span { background: var(--ink); color: #fbfbf9; }
.mini-spec { width: 100%; font-size: clamp(0.875rem, 1.5cqi, 0.9375rem); }
.mini-spec dt { color: var(--ink-soft); }

/* The pointer: the product dot (red, soft glow, thin white outline) */
.pointer {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  width: clamp(12px, 1.4cqi, 20px); aspect-ratio: 1; border-radius: 50%;
  background: var(--dot); box-shadow: 0 0 0 2px #fff, 0 0 14px 5px var(--dot-glow);
  opacity: 0; transition: opacity 100ms linear; translate: -50% -50%; will-change: transform;
}
.pointer.is-on { opacity: 1; }
.pointer.is-demo { transition: opacity 320ms ease; }
.pointer::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--dot); opacity: 0; }
.pointer.is-ping::after { animation: dot-ping 900ms var(--ease-out); }
@keyframes dot-ping { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }

/* Remote: the app's two buttons */
.remote { display: none; }
.stage-hint { display: none; }
.deck-on .deck { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.deck-on .deck::before { content: ""; grid-area: 1 / 1; aspect-ratio: 16 / 9; }
.deck-on .slide { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; }
.deck-on .slide.is-current { visibility: visible; opacity: 1; cursor: none; }
.deck-ready .slide { transition: opacity 200ms ease, visibility 0s linear 200ms; }
.deck-ready .slide.is-current { transition: opacity 200ms ease; }
@media (max-width: 40rem) { .deck-on .deck::before { aspect-ratio: 3 / 4; } }

.deck-controls { display: none; }
.deck-on .deck-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 1.25rem; }
.deck-rail { display: flex; gap: 6px; flex: 1 1 12rem; max-width: 22.5rem; }
.deck-rail > span { flex: 1; height: 3px; background: var(--rule); overflow: hidden; }
.deck-rail i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 300ms var(--ease-out); }
.deck-rail .is-done i, .deck-rail .is-current i { transform: none; }
.deck-rail.is-auto .is-current i { animation: rail-fill 6s linear both; }
.stage.is-intro .deck-rail.is-auto .is-current i { animation-delay: 0.65s; }
.deck-rail.is-paused .is-current i { animation-play-state: paused; }
@keyframes rail-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.deck-on .remote { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; flex: 0 1 19rem; }
.remote button {
  position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent;
  font: inherit; font-weight: 700; font-size: 1rem; min-height: 3.5rem; padding: 0 1rem; cursor: pointer;
  border-radius: 14px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink);
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 120ms ease;
}
.remote .next { background: var(--ink); color: #fbfbf9; }
.remote button:active:not(:disabled), .remote button.is-pressed { transform: translateY(1px) scale(0.97); transition-duration: 70ms; }
.remote button:disabled { opacity: 0.35; cursor: default; }
.remote button::after {
  content: ""; position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none;
}
.remote button.is-tap::after { animation: tap-ripple 560ms var(--ease-out); }
@keyframes tap-ripple { from { opacity: 0.22; transform: scale(1); } to { opacity: 0; transform: scale(22); } }
.deck-on .stage-hint { display: block; margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--ink-soft); }
@media (max-width: 40rem) { .deck-on .remote { flex-basis: 100%; } .deck-rail { max-width: none; } }

.stage-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; padding: 1.75rem 0 clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.stage-cta .cta-note { margin: 0 0 0 auto; }
@media (max-width: 40rem) { .stage-cta .button { width: 100%; } .stage-cta .cta-note { margin: 0; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: 3rem 0 3.5rem; font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.8; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 1.5rem; } }
.footer-brand { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-brand .wordmark { font-size: 1.125rem; color: var(--ink); margin-bottom: 0.4rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--ink); }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer .tm { font-size: 0.75rem; color: var(--ink-mute); margin-top: 1rem; }

/* ---------- Misc ---------- */
.survey-block { margin-top: 2rem; }
.chooser { padding: 3rem 0; text-align: center; }

/* ==================== How it works page ==================== */
.how-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.how-kicker { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-soft); margin: 0 0 1rem; letter-spacing: 0.04em; }
.how-hero h1 { max-width: 18em; }
.how-lead { color: var(--ink-2); max-width: 40em; margin: 0 0 2.5rem; }
.how-figure { margin: 0; background: var(--surface); border: 1px solid var(--gray-2); padding: clamp(1.25rem, 4vw, 3rem); }
.how-diagram { display: block; width: 100%; height: auto; }
.how-diagram text { font-family: var(--font-mono); font-size: 13px; fill: var(--ink); }
.how-diagram .t-soft { fill: var(--ink-soft); font-size: 12px; }
.how-figure .legend { margin-top: 1.5rem; }
@media (min-width: 48rem) { .how-figure .legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; } .how-figure .legend li:last-child { border-bottom: 0; } .how-figure .legend li { border-bottom: 0; } }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; } }
.two-col h3 { margin: 0 0 0.75rem; font-size: 1.0625rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { margin: 0; padding: 0.85rem 0; border-top: 1px solid var(--rule-2); font-size: 0.9375rem; line-height: 1.7; }
.rows li:last-child { border-bottom: 1px solid var(--rule-2); }
.rows strong { display: block; }
.rows span { display: block; color: var(--ink-2); font-size: 0.875rem; }
.how-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.fig-side { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.dg-part { transform-box: fill-box; transform-origin: 50% 50%; }

/* ==================== Motion ====================
   motion.js puts .motion-ok on <html> before the first paint only when JavaScript runs,
   IntersectionObserver exists and reduced motion is not requested. */
.deck { --sl-x: 1.25rem; }
.deck[data-dir="back"] { --sl-x: -1.25rem; }
.stage { --in-delay: 0ms; }
.stage.is-intro { --in-delay: 500ms; }
.deco .d-bars > *, .deco .d-hopg > * { transform-box: fill-box; transform-origin: 50% 100%; }
.deco .d-hopg > * { transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .stage-status { animation: fade-in 700ms 100ms var(--ease-out) both; }
  .motion-ok .stage .deck { animation: rise-in 900ms var(--ease-out) both; }
  .motion-ok .deck-controls, .motion-ok .stage-cta { animation: rise-in 700ms 700ms var(--ease-out) both; }

  .motion-ok .deck-ready .slide.is-current .slide-text > * { animation: sl-in 800ms var(--ease-out) both; animation-delay: calc(var(--in-delay) + 60ms); }
  .motion-ok .deck-ready .slide.is-current .slide-text > :nth-child(2) { animation-delay: calc(var(--in-delay) + 150ms); }
  .motion-ok .deck-ready .slide.is-current .slide-text > :nth-child(3) { animation-delay: calc(var(--in-delay) + 260ms); }
  .motion-ok .deck-ready .slide.is-current .slide-visual { animation: fade-in 900ms ease both; animation-delay: calc(var(--in-delay) + 200ms); }
  .motion-ok .deck-ready .slide.is-current .d-draw { stroke-dasharray: 1 1; animation: d-draw 1300ms var(--ease-io) both; animation-delay: calc(var(--in-delay) + 300ms); }
  .motion-ok .deck-ready .slide.is-current .d-fade { animation: fade-in 900ms ease both; animation-delay: calc(var(--in-delay) + 500ms); }
  .motion-ok .deck-ready .slide.is-current .d-hopg > * { animation: d-pop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--in-delay) + 200ms); }
  .motion-ok .deck-ready .slide.is-current .d-hopg > :nth-child(2) { animation-delay: calc(var(--in-delay) + 420ms); }
  .motion-ok .deck-ready .slide.is-current .d-hopg > :nth-child(3) { animation-delay: calc(var(--in-delay) + 640ms); }

  /* Scroll reveals */
  .motion-ok [data-reveal=""], .motion-ok [data-reveal="group"] > * {
    opacity: 0; translate: 0 1.5rem; transition: opacity 800ms var(--ease-out), translate 1000ms var(--ease-out);
  }
  .motion-ok [data-reveal=""].is-in, .motion-ok [data-reveal="group"].is-in > * { opacity: 1; translate: none; }
  .motion-ok [data-reveal="group"].is-in > :nth-child(2) { transition-delay: 100ms; }
  .motion-ok [data-reveal="group"].is-in > :nth-child(3) { transition-delay: 200ms; }
  .motion-ok [data-reveal="group"].is-in > :nth-child(4) { transition-delay: 300ms; }
  .motion-ok [data-reveal="group"].is-in > :nth-child(5) { transition-delay: 400ms; }
  /* Photos: the image settles, then the dot and the markers arrive */
  .motion-ok [data-reveal="photo"] img { scale: 1.08; transition: scale 6s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .motion-ok [data-reveal="photo"].is-in img { scale: 1.02; }
  .motion-ok [data-reveal="photo"] .pdot, .motion-ok [data-reveal="photo"] .mk { opacity: 0; transition: opacity 600ms ease; }
  .motion-ok [data-reveal="photo"].is-in .pdot { opacity: 1; transition-delay: 600ms; }
  .motion-ok [data-reveal="photo"].is-in .mk { opacity: 1; transition-delay: 1000ms; }
  .motion-ok [data-reveal="photo"].is-in .mk-2 { transition-delay: 1150ms; }
  .motion-ok [data-reveal="photo"].is-in .mk-3 { transition-delay: 1300ms; }
  .motion-ok [data-reveal="photo"].is-in .pdot { animation: pdot-pulse 2.4s 1.4s ease-in-out 2; }
  /* How diagram parts */
  .motion-ok [data-reveal="diagram"] .dg-part { opacity: 0; translate: 0 10px; transition: opacity 800ms var(--ease-out), translate 1000ms var(--ease-out); }
  .motion-ok [data-reveal="diagram"].is-in .dg-part { opacity: 1; translate: none; }
  .motion-ok [data-reveal="diagram"].is-in .dg-p2 { transition-delay: 250ms; }
  .motion-ok [data-reveal="diagram"].is-in .dg-p3 { transition-delay: 500ms; }
  .motion-ok .how-diagram .flow-dots { animation: dots-flow 1.2s linear infinite; }
  .motion-ok .how-diagram .dg-move { animation: dg-wander 7s ease-in-out infinite; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; translate: 0 14px; } }
@keyframes sl-in { from { opacity: 0; translate: var(--sl-x) 0; } }
@keyframes d-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes d-pop { from { opacity: 0; scale: 0.8; } }
@keyframes pdot-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.35; } }
@keyframes dots-flow { to { stroke-dashoffset: -14; } }
@keyframes dg-wander { 0%, 100% { translate: 0 0; } 25% { translate: -18px -10px; } 50% { translate: -26px 4px; } 75% { translate: -8px -6px; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .deck-ready .slide, .deck-ready .slide.is-current, .pointer, .remote button { transition: none; }
  .remote button.is-tap::after, .pointer.is-ping::after { animation: none; }
}

@media print {
  .site-header nav, .site-footer nav, .skip, .button, .remote, .deck-controls, .stage-hint, .pointer, .mk { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .slide { break-inside: avoid; box-shadow: none; }
  .motion-ok [data-reveal], .motion-ok [data-reveal] > *, .motion-ok .dg-part { opacity: 1 !important; translate: none !important; }
}

/* ---------- Landing specifics ---------- */
.sec-flush { padding-bottom: 0; }
.sec-flush .fig-wide { padding-bottom: var(--sec-y); }
.sec-intro { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.85; max-width: 40em; align-self: end; }
.panel-head { margin: 0; }
.panel-head > span:first-child { display: inline-flex; align-items: baseline; }
.fig-bleed { margin: 0; }
.slide-stack { flex-direction: column; gap: 1.25rem; }
.deco-timer { max-width: 18rem; }
.mini-spec { align-self: stretch; }
@media (min-width: 40rem) { .mini-spec { grid-template-columns: 9rem minmax(0, 1fr); } .mini-spec dt, .mini-spec dd { padding: 0.6rem 0; } }
.spec-meta { margin: 1.25rem 0 0; }
.news { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.news h3 { margin: 0 0 0.5rem; }
.news p { margin: 0 0 0.5rem; color: var(--ink-2); font-size: 0.9375rem; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; }
.fig-no { white-space: nowrap; }
.how-steps-body { display: grid; gap: 2rem; }
@media (min-width: 72rem) { .how-steps-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem; align-items: start; } }
.legend-lg li { font-size: 0.9375rem; padding: 1rem 0; }
.legend-lg strong { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.how-meta { margin: 2rem 0 0; }
.how-actions .button + .button { margin-left: 0; }
