/* Signrix marketing page. One file, no build step.
   Shape rule: controls and badges 12px, surfaces 20px, devices keep their own radii.
   Layers: nav 10, skip link 20. Screen glass 3 inside photos. */

@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

:root {
  --accent: #bc4832;
  --accent-hover: #a33e2a;
  --accent-ink: #9c3523;
  --accent-soft: #f7e6e0;
  --canvas: #fbf6f2;
  --sheet: #ffffff;
  --ink: #1f1b18;
  --muted: #57514b;
  --soft: #6f6861;
  --line: #ebe3dc;
  --tile: #f6f0eb;
  --well: #ede6df;
  --edge: #d9d0c7;
  --bezel: #191614;
  --shadow: 0 1px 2px rgb(60 40 30 / 0.06), 0 12px 32px -12px rgb(60 40 30 / 0.18);
  --field-line: #9a918a;
  --err: #b42318;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-ctl: 12px;
  --r-surface: 20px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #c4513a;
    --accent-hover: #d0604a;
    --accent-ink: #f0937d;
    --accent-soft: #3a221c;
    --canvas: #171412;
    --sheet: #1f1b18;
    --ink: #f3ece6;
    --muted: #c2b8af;
    --soft: #a89e95;
    --line: #322b26;
    --tile: #221d1a;
    --well: #2a2420;
    --edge: #463d36;
    --bezel: #0b0a09;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
                      --field-line: #7d736b;
    --err: #ff9b8a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; }
[hidden] { display: none !important; }

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

* { scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 999px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: var(--r-ctl);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 1.4rem + 5.4vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-sm { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); line-height: 0.98; }
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h3 { font-family: var(--body); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.body { color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.fine { color: var(--soft); font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-ctl);
  cursor: pointer;
  font-weight: 600; font-size: 1.05rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-quiet { color: var(--ink); border: 1px solid var(--edge); background: transparent; }
.btn-quiet:hover { background: var(--well); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.98rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.15rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 6px; }
.brand .mark { width: 34px; height: auto; fill: var(--accent); }
.brand .word { font-family: var(--body); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.01em; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); background: var(--well); }

/* ---------- TVs ---------- */
.tv {
  background: var(--bezel);
  border-radius: 14px;
  padding: 1.1%;
  box-shadow: var(--shadow);
}
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #0d0d0e; }
.tv-flat { border-radius: 10px; padding: 1.4%; }
.tv-flat .tv-screen { border-radius: 3px; }

/* ---------- Slides (the TV look, drawn in container units) ---------- */
.slide {
  --b: #e5ad62; --bg: #1d2b24;
  container-type: inline-size;
  position: absolute; inset: 0;
  background: var(--bg);
  color: #fff;
  font-family: var(--body);
  overflow: hidden;
}
.slide::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 7cqi, rgb(255 255 255 / 0.028) 7cqi 7.6cqi);
}
.slide em { font-style: normal; color: var(--b); }
.s-logo { position: absolute; left: 4cqi; top: 3.6cqi; height: 7cqi; width: 20cqi; }
.s-clock {
  position: absolute; right: 3.4cqi; top: 3.4cqi;
  font-family: var(--display); font-weight: 700; font-size: 2.4cqi; line-height: 1;
  padding: 0.7cqi 1.1cqi; border-radius: 0.8cqi; background: rgb(0 0 0 / 0.35);
}
.s-body {
  position: absolute; left: 8cqi; right: 30cqi; top: 50%; transform: translateY(-46%);
}
.s-body.s-full { right: 8cqi; top: 16.5cqi; transform: none; }
.s-center .s-body { left: 12cqi; right: 12cqi; text-align: center; }
.s-top { font-weight: 600; font-size: 2.3cqi; color: var(--b); margin-bottom: 0.8cqi; }
.s-head { font-family: var(--display); font-weight: 700; font-size: 5.4cqi; line-height: 0.98; text-wrap: balance; }
.s-head.s-xl { font-size: 7.6cqi; }
.s-bar { display: block; width: 8cqi; height: 0.55cqi; background: var(--b); margin: 2.2cqi 0 1.8cqi; }
.s-sub { font-family: var(--display); font-weight: 600; font-size: 3.4cqi; line-height: 1.1; }
.s-text { font-weight: 500; font-size: 2cqi; color: rgb(255 255 255 / 0.78); margin-top: 0.8cqi; }
.s-small { font-weight: 500; font-size: 1.7cqi; color: rgb(255 255 255 / 0.62); margin-top: 2.2cqi; }
.s-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqi; margin-top: 2.6cqi; }
.s-list { margin-top: 2.4cqi; }
.s-cols .s-list { margin-top: 0; }
.s-group { font-family: var(--display); font-weight: 600; font-size: 2.3cqi; color: var(--b); margin-bottom: 0.4cqi; }
.s-row {
  display: flex; align-items: baseline; gap: 1.2cqi;
  padding: 0.85cqi 0; border-bottom: 0.12cqi solid rgb(255 255 255 / 0.14);
  font-size: 2.15cqi; font-weight: 600; line-height: 1.3;
}
.s-row:last-child { border-bottom: 0; }
.s-row span { flex: 1 1 auto; }
.s-row small { display: block; font-size: 1.5cqi; line-height: 1.25; font-weight: 500; color: rgb(255 255 255 / 0.66); }
.s-row i { flex: 1 1 auto; border-bottom: 0.18cqi dotted rgb(255 255 255 / 0.3); transform: translateY(-0.5cqi); }
.s-cols .s-row span { flex: 0 1 auto; }
.s-row b { font-family: var(--display); font-weight: 700; font-size: 2.6cqi; color: var(--b); white-space: nowrap; }
.s-center .s-head { font-size: 6.2cqi; }

/* Stacked slides crossfade like the player does. */
.stack > .slide { opacity: 0; transition: opacity .8s ease; }
.stack > .slide.on { opacity: 1; }

/* ---------- Phone (the owner app, drawn in container units) ---------- */
.phone {
  container-type: inline-size;
  background: var(--bezel);
  border-radius: 15% / 7.2%;
  padding: 3.4%;
  box-shadow: var(--shadow);
}
.phone-in {
  position: relative;
  aspect-ratio: 9 / 18.6;
  background: #fbf6f2;
  border-radius: 10cqi;
  overflow: hidden;
  color: #1f1b18;
  font-family: var(--ui);
  font-size: 5cqi;
  line-height: 1.35;
}
.ph-status { display: flex; justify-content: space-between; padding: 4.5cqi 8cqi 2cqi; font-weight: 600; font-size: 4.6cqi; }

.ph-send { display: flex; flex-direction: column; }
.ph-send .ph-head { padding: 0 6cqi; }
.ph-stage { flex: 1 1 auto; display: grid; align-content: start; gap: 5cqi; padding: 5cqi 6cqi 0; }
.ph-stage .ph-wall { margin-top: 0; }
.ph-stage .ph-wall .slide { position: relative; inset: auto; aspect-ratio: 16 / 9; border-radius: 2cqi; }
.ph-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 3cqi; overflow: hidden; box-shadow: 0 2cqi 6cqi -2cqi rgb(40 25 15 / 0.35); }
.ph-btn {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  height: 13cqi; margin: 0 6cqi 7cqi; border-radius: 3.5cqi;
  background: #bc4832; color: #fff; font-weight: 600; font-size: 5.2cqi;
  transition: transform .15s var(--ease), background-color .2s;
}
.ph-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 1.6cqi; transition: opacity .25s; }
.ph-btn .ic.sm { width: 5cqi; height: 5cqi; stroke-width: 2.4; }
.ph-btn .t-sending, .ph-btn .t-after { opacity: 0; }
.ph-progress { position: absolute; left: 0; bottom: 0; height: 1cqi; width: 100%; background: rgb(255 255 255 / 0.55); transform: scaleX(0); transform-origin: left; }

/* Hero story states: before, sending, after. */
.hero-photos[data-state="sending"] .ph-btn { transform: scale(0.97); background: #a33e2a; }
.hero-photos[data-state="sending"] .t-before,
.hero-photos[data-state="after"] .t-before { opacity: 0; }
.hero-photos[data-state="sending"] .t-sending { opacity: 1; }
.hero-photos[data-state="sending"] .ph-progress { transform: scaleX(1); transition: transform 1.1s linear; }
.hero-photos[data-state="after"] .t-after { opacity: 1; }
.hero-photos[data-state="after"] .ph-btn { background: #8a2f1f; }

/* Owner home in the phone */
.ph-home { padding: 1cqi 5cqi; }
.ph-head { display: flex; align-items: center; gap: 2.6cqi; font-weight: 600; font-size: 6cqi; margin-top: 1cqi; }
.ph-head .mark { width: 9cqi; fill: #bc4832; }
.ring { display: inline-block; width: 3.2cqi; height: 3.2cqi; border-radius: 50%; border: 0.9cqi solid #6f6861; flex: none; }
.ph-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqi; margin-top: 5cqi; }
.ph-tile .slide { position: relative; aspect-ratio: 16 / 9; border-radius: 2.4cqi; inset: auto; }
.ph-add {
  position: absolute; left: 5cqi; right: 5cqi; bottom: 5cqi; height: 12cqi;
  display: flex; align-items: center; justify-content: center; gap: 2cqi;
  border-radius: 3.5cqi; background: #bc4832; color: #fff; font-weight: 600; font-size: 5cqi;
}
.ph-add span { font-size: 6.4cqi; font-weight: 400; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 52px) 0 clamp(40px, 5vw, 64px); }
.hero .display { max-width: 1000px; font-size: clamp(2.6rem, 1.3rem + 4vw, 5rem); }
.hero-side { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; margin-top: 22px; }
.lede { font-size: 1.22rem; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photos {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(28px, 3.4vw, 44px);
}
.hero-foot, .gallery-foot { display: flex; justify-content: flex-end; margin-top: 10px; min-height: 40px; }

.pause {
  display: none; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: var(--muted); font-weight: 500; font-size: 0.95rem;
}
.js .pause { display: inline-flex; }
.pause:hover { color: var(--ink); background: var(--well); }

/* ---------- Photos with a live screen laid over them ---------- */
.scene { position: relative; min-width: 0; }
.scene-in, .scene-crop {
  position: relative; aspect-ratio: var(--ar);
  overflow: hidden; border-radius: var(--r-surface); background: var(--well);
}
.scene-crop > .scene-in {
  position: absolute; border-radius: 0;
  width: calc(var(--z) * 100%);
  left: calc((1 - var(--z)) * var(--fx) * 100%);
  top: calc((1 - var(--z)) * var(--fy) * 100%);
}
.scene-in > picture, .scene-in > picture > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.scene-in > picture > img { object-fit: cover; }
.scene figcaption { margin-top: 12px; color: var(--muted); font-size: 0.98rem; }
.scene figcaption b { color: var(--ink); font-weight: 600; margin-right: 4px; }

.screen {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h);
  overflow: hidden; border-radius: 2px; background: #0d0d0e;
  box-shadow: 0 0 1.6vw 0.2vw rgb(255 238 220 / 0.12);
}
.screen > .stack, .screen > .slide { position: absolute; inset: 0; }
.screen .slide { filter: saturate(0.94) brightness(0.96); }
/* Glass: a soft diagonal reflection and darker edges, so it reads as lit glass, not a sticker. */
.screen::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(118deg, rgb(255 255 255 / 0.11) 0%, rgb(255 255 255 / 0.04) 30%, transparent 31%, transparent 100%),
    radial-gradient(140% 120% at 50% 45%, transparent 62%, rgb(0 0 0 / 0.22) 100%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.55);
}
.screen-phone {
  container-type: inline-size;
  border-radius: 12% / 5.6%;
  background: #fbf6f2;
  box-shadow: none;
}
.screen-phone::after { border-radius: inherit; }
.screen-phone .phone-in { aspect-ratio: auto; height: 100%; border-radius: 0; }

/* ---------- Slides with photos ---------- */
.s-ph { position: absolute; overflow: hidden; background: rgb(255 255 255 / 0.06); }
.s-ph picture, .s-ph img { display: block; width: 100%; height: 100%; }
.s-ph img { object-fit: cover; }

/* Photo and words */
.s-pw .s-ph { top: 0; right: 0; bottom: 0; width: 45cqi; }
.s-pw .s-body { right: 51cqi; }
/* Words on photo */
.s-wop .s-ph { inset: 0; }
.s-wop .s-ph::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 40%, transparent 78%),
    linear-gradient(180deg, rgb(0 0 0 / 0.4), transparent 26%);
}
.s-wop .s-body { right: 42cqi; }
/* Framed photo */
.s-framed .s-ph {
  right: 10cqi; top: 50%; width: 31cqi; height: 37cqi; transform: translateY(-46%);
  border-radius: 0.6cqi; overflow: visible; background: none;
  box-shadow: -1.8cqi 1.8cqi 0 var(--b);
}
.s-framed .s-ph img { border-radius: 0.6cqi; }
.s-framed .s-body { right: 48cqi; }
/* Two photos */
.s-two .s-ph { top: 0; bottom: 0; width: 21.6cqi; }
.s-two .s-ph:nth-of-type(1) { right: 22.4cqi; }
.s-two .s-ph:nth-of-type(2) { right: 0; }
.s-two .s-body { right: 49cqi; }
/* Photo, with a caption block */
.s-photo .s-ph { inset: 0; }
.s-cap {
  position: absolute; left: 4cqi; bottom: 4.4cqi; max-width: 62cqi;
  padding: 2.4cqi 3.4cqi 2.8cqi; border-radius: 0.8cqi; background: var(--bg);
}
.s-cap .s-top { font-size: 2.6cqi; }
.s-cap .s-head { font-size: 5.6cqi; }
/* Tall, for portrait screens: everything is sized against a narrow width. */
.s-tall .s-ph { left: 0; right: 0; top: 0; height: 47%; }
.s-tall .s-body { left: 9cqi; right: 9cqi; top: 52%; transform: none; }
.s-tall-words .s-body { top: 24%; }
.s-tall .s-top { font-size: 5.4cqi; margin-bottom: 1.6cqi; }
.s-tall .s-head { font-size: 14cqi; line-height: 0.96; }
.s-tall .s-bar { width: 16cqi; height: 1.2cqi; margin: 5cqi 0 4cqi; }
.s-tall .s-sub { font-size: 7.4cqi; }
.s-tall .s-logo { top: auto; bottom: 7cqi; left: 9cqi; width: 46cqi; height: 16cqi; }
.s-big .s-row { font-size: 3cqi; padding: 1.3cqi 0; }
.s-big .s-row b { font-size: 3.6cqi; }

/* ---------- Facts ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid > div { padding: 28px 28px 30px 0; }
.facts-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 1.1rem; }
.facts dd { color: var(--muted); margin-top: 4px; font-size: 1rem; }

/* ---------- In use ---------- */
.in-use { padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.sec-head { max-width: 760px; }
.sec-head .body { margin-top: 16px; }
.gallery-top {
  display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px); margin-top: 48px; align-items: start;
}
.gallery-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px); margin-top: 28px;
}

/* ---------- How it works ---------- */
.how { padding: clamp(72px, 9vw, 128px) 0; background: var(--tile); }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.how-visual { display: flex; justify-content: center; }
.phone-how { width: min(340px, 100%); }
.how-copy .body { margin-top: 18px; font-size: 1.22rem; }

/* ---------- Layouts ---------- */
.layouts { padding: clamp(72px, 9vw, 128px) 0; }
.examples {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px;
  margin-top: 48px; align-items: end;
}
.example figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Offline demo ---------- */
.offline { padding: clamp(72px, 9vw, 128px) 0; background: var(--tile); }
.demo {
  margin-top: 48px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.4vw, 44px);
}
.demo-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.demo-place { font-weight: 600; font-size: 1.05rem; }
.net {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: var(--r-ctl);
  background: var(--tile); color: var(--muted);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.net b { color: var(--ink); font-weight: 600; transition: color .3s var(--ease); }
.demo[data-internet="off"] .net { background: var(--ink); color: var(--canvas); }
.demo[data-internet="off"] .net b { color: var(--canvas); }
.demo-screens {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px);
  margin-top: 28px;
}
.scr figcaption { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.98rem; }
.scr .ring { width: 11px; height: 11px; border-width: 2px; border-color: var(--soft); }
.scr-name { font-weight: 600; }
.scr-state { color: var(--muted); margin-left: auto; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl);
  border: 1px solid var(--edge); background: var(--sheet); cursor: pointer; font-weight: 600;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s;
}
.toggle:hover { background: var(--well); }
.demo[data-internet="off"] [data-toggle="internet"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.toggle:disabled { cursor: default; color: var(--muted); background: var(--tile); border-color: transparent; }
.demo-note { color: var(--muted); flex: 1 1 320px; min-height: 3.1em; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 6vw, 96px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.12rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { color: var(--muted); transition: transform .25s var(--ease); }
.faq-list details[open] summary .ic { transform: rotate(180deg); }
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list details p { padding: 0 4px 22px; color: var(--muted); max-width: 62ch; }

/* ---------- Book a demo ---------- */
.book { padding: clamp(72px, 9vw, 128px) 0; background: var(--accent-soft); }
.book-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.book-copy { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 20px; }
.book .display { max-width: 9em; }
.book-copy .body { color: var(--ink); opacity: 0.85; max-width: 44ch; }
.contact-text { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; }
.book-panel {
  background: var(--sheet); border-radius: var(--r-surface); box-shadow: var(--shadow);
  padding: clamp(20px, 3.2vw, 44px);
}
.form { display: grid; gap: 18px; scroll-margin-top: 96px; }
.wz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.wz-count { color: var(--muted); font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.wz-back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 0 10px 0 4px; margin-left: -4px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: var(--accent-ink); font-weight: 600;
}
.wz-back:hover { background: var(--well); }
.wz-back:disabled { visibility: hidden; }
.wz-bar { height: 4px; border-radius: 99px; background: var(--well); overflow: hidden; }
.wz-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0.25); transform-origin: left; transition: transform .45s var(--ease); }
/* Every step shares one cell, so the panel keeps the height of the tallest and nothing below it moves. */
.wz-steps { display: grid; margin-top: 10px; }
.wz-step { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.js .wz-step { visibility: hidden; opacity: 0; transform: translateX(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.js .wz-step.on { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.wz-q { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.05; border-radius: 6px; }
.wz-q:focus { outline: none; }
.wz-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wz-opts { display: grid; gap: 10px; }
.wz-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 58px; padding: 0 18px; text-align: left; cursor: pointer;
  border: 1px solid var(--field-line); border-radius: var(--r-ctl); background: var(--sheet);
  font-weight: 600; font-size: 1.1rem;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s;
}
.wz-opt:hover { background: var(--tile); }
.wz-opt .ic { color: var(--accent-ink); stroke-width: 2.2; opacity: 0; transition: opacity .15s; }
.wz-opt[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.wz-opt[aria-pressed="true"] .ic { opacity: 1; }
html:not(.js) .book-panel { display: none; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.f-wide { grid-column: 1 / -1; }
/* Spam trap: people never see it, bots fill it in. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label { font-weight: 600; font-size: 1rem; }
.opt { font-weight: 400; color: var(--soft); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--field-line); border-radius: var(--r-ctl);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: none; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--soft); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.f-err { color: var(--err); font-size: 0.95rem; font-weight: 500; }
.f-err:empty { display: none; }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.f-note { color: var(--muted); font-size: 0.95rem; max-width: 36ch; }
.f-fail { color: var(--err); font-weight: 500; }
.f-fail a { color: inherit; font-weight: 600; }
.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.f-done { display: grid; gap: 14px; border-radius: var(--r-ctl); }
.f-done:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.f-done > div { display: grid; gap: 12px; }
.f-done p { color: var(--muted); max-width: 52ch; }
.f-done p b { color: var(--ink); font-weight: 600; word-break: break-word; }
.f-done-title { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.05; }
.f-copy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.f-back {
  justify-self: start; margin-top: 8px; padding: 8px 0; border: 0; background: none; cursor: pointer;
  color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--soft); font-size: 0.95rem; }
.foot .brand { color: var(--ink); }
.foot .brand .mark { width: 28px; }
.foot .brand .word { font-size: 1.15rem; }
.foot p:last-child { margin-left: auto; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .examples .reveal:nth-child(2) { transition-delay: .08s; }
  .examples .reveal:nth-child(3) { transition-delay: .16s; }
  .stack > .slide.on .s-body > *, .stack > .slide.on .s-cap > * { animation: rise .7s var(--ease) both; }
  .stack > .slide.on .s-body > *:nth-child(2) { animation-delay: .12s; }
  .stack > .slide.on .s-body > *:nth-child(3) { animation-delay: .22s; }
  .stack > .slide.on .s-body > *:nth-child(n+4) { animation-delay: .3s; }
  .stack:not(.played) > .slide.on .s-body > * { animation: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.6cqi); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .pause { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 9px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .examples { grid-template-columns: 1fr 1fr; }
  .examples .example:first-child { grid-column: 1 / -1; }
  .faq-grid, .book-grid { grid-template-columns: 1fr; }
  .book-copy { position: static; }
}

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav-in { justify-content: space-between; }
  .how-grid { grid-template-columns: 1fr; }
  .how-visual { order: 2; }
}

@media (max-width: 699px) {
  .hero-photos { grid-template-columns: 1fr; gap: 0; }
  .scene-phone { width: 42%; justify-self: end; margin: -36% 4% 0 0; }
  .scene-phone .scene-in { box-shadow: 0 0 0 4px var(--canvas); }
  .gallery-top, .gallery-row { grid-template-columns: 1fr; }
  .gallery-top > .scene:nth-child(2) { width: min(100%, 420px); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .lede { font-size: 1.12rem; }
  .ctas { width: 100%; }
  .ctas .btn { flex: 1 1 auto; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid > div, .facts-grid > div + div { padding: 20px 0; border-left: 0; }
  .facts-grid > div + div { border-top: 1px solid var(--line); }
  .examples { grid-template-columns: 1fr; }
  .demo-screens { grid-template-columns: 1fr; gap: 24px; }
  .toggles, .toggle { width: 100%; }
  .f-grid { grid-template-columns: 1fr; }
  .f-actions .btn { width: 100%; }
  .foot p:last-child { margin-left: 0; }
}

/* The latte photo has the cup left of centre; keep the whole cup in narrow photo panels. */
.slide img[src*="slide-latte"] { object-position: 18% 50%; }
