:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #1c1c1a;
  --text-2: #4a4a47;
  --muted: #8b8a86;
  --border: #e8e5df;
  --accent: #2a3bd4;
  --accent-hover: #2230b3;
  --accent-bg: #1f2563;
  --accent-text: #a3adff;
  --dark: #1c1c1a;
  --dark-hover: #33332f;
  --banner: #1f1f1e;
  --rail: clamp(0px, 3.8vw, 56px);
  --pad: clamp(20px, 2.2vw, 32px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: "Hanken Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.frame { position: relative; }
.frame::before, .frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--border); z-index: 3; pointer-events: none;
}
.frame::before { left: var(--rail); }
.frame::after { right: var(--rail); background: rgba(255,255,255,0.45); }

/* ---------- Header ---------- */
.header {
  /* stays at the top while scrolling; spans the full width so nothing scrolls through beside it */
  position: sticky; top: 0; z-index: 20;
  /* a little more air above than below, so it doesn't stick to the window edge */
  height: 80px;
  margin: 0;
  padding: 8px calc(var(--rail) + var(--pad)) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* slightly translucent, softly blurred */
  background: rgba(250, 249, 246, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
/* the frame lines around the header (between the rails) */
.header::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: var(--rail); right: var(--rail);
  pointer-events: none;
  border: 1px solid var(--border); border-top: 0;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 40px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 16px; color: var(--text-2);
  transition: color 150ms var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: var(--text); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--text); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.chev { width: 15px; height: 15px; stroke-width: 1.75; color: var(--muted); }

.header__actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.login { font-size: 16px; color: var(--text-2); padding: 10px 0; transition: color 150ms var(--ease); }
.login:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 20px; border-radius: 999px;   /* pill, like Apple's buttons and our capsules */
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background 150ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.985); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-hover); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--lg { height: 40px; padding: 0 16px; font-size: 15px; gap: 8px; }
.btn svg { width: 16px; height: 16px; transition: transform 150ms var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn--lg svg { width: 14px; height: 14px; }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* fills the first screen exactly (header above) */
  min-height: max(560px, calc(100svh - 80px));
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  margin-left: var(--rail);
}
.hero__media {
  position: absolute; inset: 0 0 0 14%;
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block;
}
.hero__media::before {
  /* soft fade into the page background, like a double exposure – ends earlier so more of the room shows */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(250,249,246,0.9) 14%, rgba(250,249,246,0.62) 27%,
    rgba(250,249,246,0.28) 39%, rgba(250,249,246,0.08) 47%, rgba(250,249,246,0) 54%);
}

.hero__content {
  position: relative; z-index: 2;
  padding: 48px calc(var(--pad) * 2 + 4px);
  max-width: none;
}
/* quiet eyebrow with a short dimension-line tick, like an annotation on a drawing */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0; font-size: 15px; font-weight: 500; color: var(--text-2);
}
.eyebrow::before {
  content: ""; width: 28px; height: 9px; flex: none;
  border-left: 1px solid var(--text-2); border-right: 1px solid var(--text-2);
  background: linear-gradient(var(--text-2), var(--text-2)) center / 100% 1px no-repeat;
}
.hero__title {
  margin: 24px 0 30px;
  font-size: clamp(36px, 3.4vw, 50px);
  white-space: nowrap;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero__title .muted { color: var(--muted); }


/* ---------- Overview: device composition ---------- */
.overview {
  position: relative;
  margin: 0 var(--rail);
  padding: clamp(64px, 6vw, 96px) var(--pad) clamp(16px, 1.5vw, 24px);
  border-bottom: 1px solid var(--border);
  /* the frame's right rail is white-ish (for the video); on the light section it needs the grey line */
  border-right: 1px solid var(--border);
  z-index: 4;
}
.overview__title {
  margin: 0 auto;
  max-width: 22em;
  text-align: center;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.overview__title .muted { color: var(--muted); }
/* same lead as the AI section below, so both sections read alike */
.overview__lead { margin: 18px auto 0; max-width: 600px; text-align: center; font-size: 17px; line-height: 1.55; color: var(--text-2); text-wrap: balance; }
@media (max-width: 560px) { .overview__lead { font-size: 15.5px; } }

/* Wide, open area: the devices sit in the middle, the sides stay free for later annotations */
.overview__composition {
  /* one real millimetre on the virtual table – shared by devices and feature annotations */
  --mm: min(1.36px, calc((100vw - 40px) / 430));
  position: relative;
  display: grid; place-items: center;
  margin-top: clamp(32px, 3.6vw, 56px);
  /* very soft light pool on the table, no visible edge */
  background: radial-gradient(ellipse 46% 60% at 50% 52%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%);
}

/*
  Device composition – every size is in real millimetres times --mm.
  iPad Pro 11" (M4): 249.7 × 177.5 × 5.3 mm · iPhone 16 Pro: 71.5 × 149.6 × 8.25 mm.
  The table is 410 × 228 mm; both devices lie flat on it and never overlap.
*/
.devices {
  width: calc(410 * var(--mm));
  height: calc(228 * var(--mm));
  perspective: calc(2400 * var(--mm));
  perspective-origin: 50% 20%;
}
.devices__table {
  position: relative; width: 100%; height: 100%;
  /* camera slightly raised, looking almost straight down */
  transform: rotateX(9deg);
  transform-origin: 50% 60%;
}

.device {
  position: absolute;
  width: calc(var(--w) * var(--mm));
  height: calc(var(--h) * var(--mm));
  left: calc((var(--x) - var(--w) / 2) * var(--mm));
  top: calc((var(--y) - var(--h) / 2) * var(--mm));
  transform: rotate(var(--rot));
  --r: 18;      /* outer corner radius */
  --rim: 0.9;   /* visible metal frame */
  --bezel: 5.5; /* black glass around the display */
  --lift: 1.1;  /* visible side height (thickness seen from the slight camera angle) */
}
.device--ipad {
  --w: 249.7; --h: 177.5; --x: 147; --y: 112; --rot: -5deg;
}
.device--iphone {
  --w: 71.5; --h: 149.6; --x: 351; --y: 120; --rot: 7deg;
  --r: 11.8; --rim: 1.1; --bezel: 1.4; --lift: 1.6;
}

.device__shadow,
.device__edge,
.device__body {
  position: absolute; inset: 0;
  border-radius: calc(var(--r) * var(--mm));
}
/* soft ambient shadow: light from top left, so it falls slightly to the bottom right */
.device__shadow--ambient {
  background: rgba(58, 48, 34, 0.24);
  filter: blur(calc(8 * var(--mm)));
  transform: translate(calc(3 * var(--mm)), calc(7 * var(--mm))) scale(0.98);
}
/* mid-range shadow, bridges contact and ambient */
.device__body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: calc(0.8 * var(--mm)) calc(2.6 * var(--mm)) calc(3.5 * var(--mm)) rgba(30, 24, 16, 0.16);
}
/* tight contact shadow where the device touches the table */
.device__shadow--contact {
  background: rgba(20, 18, 14, 0.42);
  filter: blur(calc(0.9 * var(--mm)));
  transform: translate(calc(0.4 * var(--mm)), calc(1.6 * var(--mm)));
}
/* the near side of the aluminium body, just visible below the top face */
.device__edge {
  background: linear-gradient(90deg, #1b1c1e, #3b3c40 22%, #2a2b2e 60%, #46484c 92%, #202123);
  transform: translateY(calc(var(--lift) * var(--mm)));
}

/* top face: thin dark-aluminium rim around black cover glass */
.device__body {
  padding: calc(var(--rim) * var(--mm));
  background: linear-gradient(135deg, #6a6c71 0%, #34353a 18%, #222327 55%, #2e2f33 82%, #57595e 100%);
}
.device__glass {
  position: relative; width: 100%; height: 100%;
  padding: calc(var(--bezel) * var(--mm));
  border-radius: calc((var(--r) - var(--rim)) * var(--mm));
  background: linear-gradient(160deg, #17181a 0%, #0c0c0d 38%, #070708 100%);
  box-shadow:
    inset calc(0.3 * var(--mm)) calc(0.3 * var(--mm)) 0 rgba(255, 255, 255, 0.09),
    inset calc(-0.3 * var(--mm)) calc(-0.3 * var(--mm)) 0 rgba(0, 0, 0, 0.6);
}
/* faint reflection across the glass, never a glow */
.device__glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 34%, rgba(255, 255, 255, 0) 52%);
}
.device__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc((var(--r) - var(--rim) - var(--bezel)) * var(--mm));
  background: #f3f3f1;
  box-shadow: inset 0 0 0 calc(0.25 * var(--mm)) rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.device--ipad .device__screen { border-radius: calc(11.6 * var(--mm)); }
.device--iphone .device__screen { border-radius: calc(9.4 * var(--mm)); }

/* front camera in the long top bezel (iPad in landscape) */
.device__camera {
  position: absolute; left: 50%; top: calc(2.75 * var(--mm));
  width: calc(1.5 * var(--mm)); height: calc(1.5 * var(--mm));
  margin: calc(-0.75 * var(--mm)) 0 0 calc(-0.75 * var(--mm));
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #2b3140 0%, #101216 55%, #050506 100%);
}
.device__island {
  position: absolute; left: 50%; top: calc(1.8 * var(--mm));
  width: calc(20.9 * var(--mm)); height: calc(6.1 * var(--mm));
  transform: translateX(-50%);
  border-radius: 999px; background: #050505;
}

/* hardware keys, protruding a fraction of a millimetre from the frame */
.device__key {
  position: absolute; background: linear-gradient(90deg, #45474c, #26272a);
  border-radius: calc(0.4 * var(--mm));
}
.device--ipad .device__key--top   { left: calc(-0.5 * var(--mm)); top: calc(17 * var(--mm)); width: calc(0.7 * var(--mm)); height: calc(18 * var(--mm)); }
.device--ipad .device__key--vol-1 { top: calc(-0.5 * var(--mm)); left: calc(20 * var(--mm)); height: calc(0.7 * var(--mm)); width: calc(11 * var(--mm)); }
.device--ipad .device__key--vol-2 { top: calc(-0.5 * var(--mm)); left: calc(34 * var(--mm)); height: calc(0.7 * var(--mm)); width: calc(11 * var(--mm)); }
.device--iphone .device__key { width: calc(0.7 * var(--mm)); }
.device--iphone .device__key--action { left: calc(-0.55 * var(--mm)); top: calc(26 * var(--mm)); height: calc(7 * var(--mm)); }
.device--iphone .device__key--vol-1  { left: calc(-0.55 * var(--mm)); top: calc(40 * var(--mm)); height: calc(12 * var(--mm)); }
.device--iphone .device__key--vol-2  { left: calc(-0.55 * var(--mm)); top: calc(56 * var(--mm)); height: calc(12 * var(--mm)); }
.device--iphone .device__key--side   { right: calc(-0.55 * var(--mm)); top: calc(43 * var(--mm)); height: calc(18 * var(--mm)); }

/* invisible anchor points on a device, used as connector start points */
.device__anchor { position: absolute; width: 0; height: 0; pointer-events: none; }
.device__anchor--side  { left: calc(100% + 7 * var(--mm)); top: 50%; }
.device__anchor--below { left: 50%; top: calc(100% + 6 * var(--mm)); }
.device__anchor--side-left { right: calc(100% + 7 * var(--mm)); top: 50%; }
.device__anchor--above { left: 50%; top: calc(-6 * var(--mm)); }
/* subtle reference while a photo is taken: the phone screen dims for a moment */
.device__screen::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: #000; opacity: 0; transition: opacity 260ms ease-out; pointer-events: none;
}
.device.is-capturing .device__screen::after { opacity: 0.75; transition-duration: 60ms; }
.device__screen::after { z-index: 6; }
.device__island { z-index: 7; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Feature connectors (reusable) ---------- */
.connector {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 1;
}
/* both sides identical: a fine dark line with a solid dot at each end */
.connector__line { fill: none; stroke: rgba(28, 28, 26, 0.34); stroke-width: 1; stroke-linecap: round; }
.connector__start, .connector__end { fill: #1c1c1a; stroke: var(--bg); stroke-width: 2; }
.connector__pulse { fill: var(--accent); opacity: 0; }
.connector:not(.is-ready) { visibility: hidden; }

/* ---------- Feature annotation (reusable shell) ---------- */
/*
  Default styles = the complete, final state (no JS / reduced motion).
  site.js adds .is-live and step classes (s-…); while .is-live, anything whose step
  has not happened yet is hidden. Only opacity/transform/filter change – the block has
  a fixed size from the start, so nothing (e.g. the heading) moves.
*/
.feature {
  --connect: side;
  --feature-w: 300px; --shot-w: 196px;
  position: absolute; z-index: 2;
  width: var(--feature-w);
  /* right of the iPhone: its outer edge sits 189.6 mm right of the table centre */
  left: calc(50% + 189.6 * var(--mm) + 40px);
  top: 50%; transform: translateY(-50%);
  margin: 0;
}
@media (max-width: 1359px) {
  .feature { --feature-w: 262px; --shot-w: 170px; }
  .meta { gap: 10px; font-size: 11.5px; }
}
@media (min-width: 1260px) { .overview__composition { padding-block: 112px; } }

/* heading block, centred over the animation; the camera symbol spans both lines */
.feature__head { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 0 18px; }
.feature__title { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; }
.feature__sub { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.feature__icon { width: 40px; height: 40px; flex: none; stroke-width: 1.2; color: var(--text); }

.feature__stage { position: relative; }

/* the documented entry, everything centred on one axis */
.entry {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.photo-frame {
  position: relative; z-index: 2;
  width: calc(var(--shot-w) + 14px);
  transform-origin: 50% 50%;
  transition: transform 900ms cubic-bezier(0.65, 0, 0.25, 1), box-shadow 600ms var(--ease);
  padding: 7px; border-radius: 18px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(28, 24, 18, 0.05), 0 18px 36px -18px rgba(28, 24, 18, 0.24);
}
.shot {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; border-radius: 12px;
  background: #ecebe6;
}
.shot img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 520ms ease-out, transform 1200ms var(--ease);
}
.shot__finder { position: absolute; inset: 14px; opacity: 0; transition: opacity 300ms ease-out, inset 700ms var(--ease); }
.shot__finder i { position: absolute; width: 13px; height: 13px; border: 0 solid rgba(28, 28, 26, 0.45); }
.shot__finder i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; border-top-left-radius: 3px; }
.shot__finder i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; border-top-right-radius: 3px; }
.shot__finder i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 3px; }
.shot__finder i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; border-bottom-right-radius: 3px; }
/* shutter: a short darkening of the frame only – never a page flash */
.shot__shutter { position: absolute; inset: 0; background: #111; opacity: 0; transition: opacity 320ms ease-out; pointer-events: none; }

/* small, unboxed metadata line under the photo */
.meta {
  position: relative; z-index: 1;
  list-style: none; margin: 12px 0 0; padding: 0;
  transform-origin: 50% 50%;
  transition: transform 850ms cubic-bezier(0.65, 0, 0.25, 1), opacity 300ms var(--ease);
  display: flex; flex-wrap: nowrap; justify-content: center; gap: 14px; width: max-content;
  font-size: 12px; line-height: 1.3; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.meta__item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; transition: opacity 420ms var(--ease), transform 600ms var(--ease); }
.meta__item > svg { width: 13px; height: 13px; stroke-width: 1.7; color: var(--muted); flex: none; }
.meta__ok { color: var(--accent) !important; stroke-width: 2.6 !important; width: 12px !important; height: 12px !important; transition: opacity 300ms var(--ease), transform 400ms var(--ease); }
.meta__arrow { transform: rotate(48deg); transition: transform 1200ms cubic-bezier(0.3, 0, 0.1, 1) 450ms; }
.meta__arrow path { fill: var(--muted); stroke: none; }

/* voice note: a small pill while recording, then the text */
.voice { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: 16px; width: 100%; transform-origin: 50% 50%; transition: transform 850ms cubic-bezier(0.65, 0, 0.25, 1), opacity 300ms var(--ease); }
.voice__pill, .pill {
  display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px;
  height: 36px; padding: 0 14px 0 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(28, 24, 18, 0.05);
  transition: opacity 400ms var(--ease), transform 550ms var(--ease);
}
.voice__mic, .pill__icon {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #f0efeb; color: var(--text-2);
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.voice__mic svg, .pill__icon svg { width: 14px; height: 14px; stroke-width: 1.9; }
.voice__rec, .voice__label { grid-area: 1 / 2; transition: opacity 300ms var(--ease); }
.voice__rec { display: flex; align-items: center; gap: 7px; opacity: 0; }
.voice__wave { display: flex; align-items: center; gap: 2px; width: 84px; height: 16px; }
.voice__wave i {
  flex: 1; height: 100%; border-radius: 1px; background: var(--accent);
  transform: scaleY(var(--h)); transform-origin: center;
}
@keyframes wave-rec {
  from { transform: scaleY(0.2); }
  to   { transform: scaleY(var(--a)); }
}
.voice__time { font-weight: 400; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.voice__label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.voice__text { margin: 10px 0 0; max-width: 100%; text-align: center; text-wrap: balance; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.voice__text span { transition: opacity 380ms ease-out, filter 380ms ease-out; transition-delay: calc(var(--i) * 85ms); }

/* project folder (only used by the animation) */
/* the folder sits exactly where the photo's centre is, so the photo only has to shrink into it */
.feature { --photo-c: calc((var(--shot-w) * 4 / 3 + 16px) / 2); }
.folder {
  position: absolute; left: 50%; top: var(--photo-c);
  width: 120px; height: 95px; margin: -44px 0 0 -60px;
  opacity: 0; pointer-events: none;
  transition: opacity 380ms var(--ease), transform 600ms var(--ease);
}
.folder path { stroke-width: 1; }
.folder--back  { z-index: 1; }
.folder--back path  { fill: #e3e0d9; stroke: #d6d2ca; }
.folder--front { z-index: 3; }
.folder--front path { fill: #f4f2ed; stroke: #d9d5cd; }
.folder__label {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--photo-c) + 60px);
  text-align: center; font-size: 12px; color: var(--muted); opacity: 0; white-space: nowrap;
  transition: opacity 400ms var(--ease);
}

/* saved status: below the entry in the static state, under the folder while animating */
.saved {
  position: absolute; left: 0; right: 0; top: calc(100% + 14px);
  display: flex; justify-content: center; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13px; font-weight: 500;
  transition: opacity 400ms var(--ease), transform 500ms var(--ease);
}
.feature.is-live .saved { top: calc(var(--photo-c) + 86px); }
.saved__check {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  transition: transform 450ms var(--ease);
}
.saved__check svg { width: 14px; height: 14px; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 420ms var(--ease) 150ms; }

.feature__foot { display: flex; justify-content: center; margin-top: 12px; min-height: 26px; }
/* quiet replay link with left-to-right underline */
.feature__replay {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--muted); white-space: nowrap;
  transition: color 180ms var(--ease);
}
.feature__replay span { position: relative; }
.feature__replay span::before,
.feature__replay span::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; }
.feature__replay span::before { width: 100%; background: var(--border); }
.feature__replay span::after { width: 0; background: var(--text); transition: width 200ms var(--ease); }
.feature__replay:hover, .feature__replay:focus-visible { color: var(--text); }
.feature__replay:hover span::after, .feature__replay:focus-visible span::after { width: 100%; }

/* ---------- Sequence states (only while .is-live) ---------- */
.feature.no-tx, .feature.no-tx * { transition: none !important; }
.feature.is-paused .voice__wave i { animation-play-state: paused !important; }
.feature.is-live .feature__stage { transition: opacity 600ms var(--ease); }
.feature.is-live.s-out .feature__stage { opacity: 0; }

/* A – photo, with time, room and direction right away */
.feature.is-live:not(.s-photo) .shot img { opacity: 0; transform: scale(1.06); }
.feature.is-live:not(.s-photo) .shot__finder { opacity: 1; inset: 26px; }
.feature.is-live.s-focus:not(.s-photo) .shot__finder { inset: 14px; }
.feature.is-live.s-shutter .shot__shutter { opacity: 0.6; transition-duration: 60ms; }
.meta__item--date { transition-delay: 150ms; }
.meta__item--room { transition-delay: 300ms; }
.meta__item--dir  { transition-delay: 450ms; }
.feature--photo.is-live:not(.s-photo) .meta__item { opacity: 0; transform: translateY(-4px); transition-delay: 0ms; }
.feature--photo.is-live:not(.s-photo) .meta__arrow { transform: rotate(-40deg); transition-delay: 0ms; }
.feature.is-live:not(.s-ok) .meta__ok { opacity: 0; transform: scale(0.4); }

/* B – voice note, transcribed */
.feature.is-live:not(.s-voice) .voice__pill { opacity: 0; transform: translateY(6px) scale(0.96); }
.feature.is-live.s-voice:not(.s-text) .voice__rec { opacity: 1; }
.feature.is-live:not(.s-text) .voice__label { opacity: 0; }
.feature.is-live:not(.s-text) .voice__text span { opacity: 0; filter: blur(3px); transition-delay: 0ms; }
.feature.is-live:not(.s-rec) .voice__wave i { transform: scaleY(0.14); }
.feature.is-live.s-rec .voice__wave i { animation: wave-rec 520ms ease-in-out var(--d) infinite alternate; }
.feature.is-live.s-rec .voice__mic { background: rgba(42, 59, 212, 0.12); color: var(--accent); }

/* C – filed into the project folder, then saved
   1) the details slide up underneath the photo (distance --file-dy measured by site.js)
      and two sheets fan out behind it: one bundle = photo + all its information
   2) the folder appears behind the bundle, the bundle shrinks into it
   3) the folder front closes, name + confirmation follow */
.photo-frame::before,
.photo-frame::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(28, 24, 18, 0.05);
  opacity: 0; transition: opacity 300ms var(--ease), transform 600ms var(--ease);
}
.feature.is-live.s-gather .meta,
.feature.is-live.s-gather .voice {
  transform: translateY(var(--file-dy, -160px)) scale(0.86);
  opacity: 0;
  transition: transform 650ms cubic-bezier(0.5, 0, 0.2, 1), opacity 260ms var(--ease) 140ms;
}
.feature.is-live.s-bundle .photo-frame::before { opacity: 1; transform: translate(-5px, 5px) rotate(-3.5deg); }
.feature.is-live.s-bundle .photo-frame::after  { opacity: 1; transform: translate(5px, 8px) rotate(2.5deg); }
.feature.is-live:not(.s-file) .folder { transform: scale(0.92); }
.feature.is-live.s-file .folder--back { opacity: 1; }
.feature.is-live.s-sink .photo-frame { transform: translateY(4px) scale(0.3); box-shadow: 0 1px 2px rgba(28, 24, 18, 0.08); }

.feature.is-live.s-close .folder--front { opacity: 1; }
.feature.is-live:not(.s-close) .folder--front { transform: translateY(5px); }
.feature.is-live.s-close .folder__label { opacity: 1; transition-delay: 150ms; }
.feature.is-live:not(.s-saved) .saved { opacity: 0; transform: translateY(6px); }
.feature.is-live:not(.s-saved) .saved__check { transform: scale(0.6); }
.feature.is-live:not(.s-saved) .saved__check svg { stroke-dashoffset: 1; }


@media (max-width: 360px) {
  .feature { --feature-w: 100%; --shot-w: 170px; }
}

/* ---------- Feature 2: Raumakte – the documented history of one room (left of the iPad) ---------- */
/* same shell, white frames, type scale and accent as feature 1 */
.feature--plan {
  --connect: side-left;
  left: auto;
  right: calc(50% + 190.1 * var(--mm) + 40px);
}
.raum { position: relative; }

.raum__crumb {
  display: flex; align-items: center; gap: 4px;
  padding: 0 2px 10px; border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted);
}
.raum__crumb strong { font-weight: 600; color: var(--text); }
.raum__chev { width: 13px; height: 13px; stroke-width: 1.8; }
.raum__tag { margin-left: auto; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* construction states along a thin time line */
.stages {
  position: relative; list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.stage { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; transition: opacity 400ms var(--ease); }
.stage__img {
  position: relative; display: block; margin-bottom: 5px; padding: 2px; border-radius: 8px;
  background: #fff; border: 1px solid var(--border);
  transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.stage__img img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 6px; }
.stage__name { font-size: 11.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage__date { display: inline-grid; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage.is-active .stage__img { border-color: rgba(42, 59, 212, 0.55); box-shadow: 0 0 0 3px rgba(42, 59, 212, 0.08); }
.stages.is-scrubbing .stage:not(.is-active) { opacity: 0.55; }
/* the upcoming state: an empty, dashed frame until it is documented */
.stage--due .stage__img { border-style: dashed; border-color: #cfcbc2; background: #fbfaf8; }
.stage__empty { position: absolute; inset: 2px; display: grid; place-items: center; color: #b6b3ab; border-radius: 6px; transition: opacity 400ms var(--ease); }
.stage__empty svg { width: 16px; height: 16px; stroke-width: 1.6; }
.stage__filled { opacity: 0; transition: opacity 500ms var(--ease); }
.stage__date > span { grid-area: 1 / 1; transition: opacity 300ms var(--ease); }
.stage__due { color: var(--accent); font-weight: 500; }
.stage__ok { opacity: 0; }
.raum.is-complete .stage--due .stage__img { border-style: solid; background: #fff; }
.raum.is-complete .stage--due .stage__empty { opacity: 0; }
.raum.is-complete .stage--due .stage__filled { opacity: 1; }
.raum.is-complete .stage__due { opacity: 0; }
.raum.is-complete .stage__ok { opacity: 1; }

/* what was documented in the selected state */
.spanels { position: relative; margin-top: 14px; }
.spanel {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 300ms var(--ease), transform 420ms var(--ease), visibility 0s linear 420ms;
}
.spanel.is-active {
  position: relative; opacity: 1; visibility: visible; transform: none;
  transition: opacity 480ms var(--ease) 140ms, transform 600ms cubic-bezier(0.2, 0, 0, 1) 140ms, visibility 0s;
}
.spanel__photo {
  margin: 0; padding: 4px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(28, 24, 18, 0.05), 0 16px 32px -18px rgba(28, 24, 18, 0.26);
}
.spanel__photo img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 10px; }
.spanel__text { margin: 10px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.spanel__text strong { font-size: 13.5px; font-weight: 500; color: var(--text); }
.spanel__text span { font-size: 11.5px; color: var(--muted); }
.spanel--due .spanel__text { margin-top: 0; }

/* plans and documents of this state */
.schips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.schip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 7px;
  border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-2); white-space: nowrap;
}
.ficon { position: relative; display: block; width: 14px; height: 17px; }
.ficon svg { width: 14px; height: 17px; fill: #fff; stroke: #c9c5bc; stroke-width: 1.4; }
.ficon b {
  position: absolute; left: -4px; bottom: 1px; padding: 0 2px; border-radius: 2px;
  font-size: 6px; font-weight: 700; line-height: 8px; letter-spacing: 0.02em; color: #fff;
}
.ficon--pdf b { background: #c4473a; }
.ficon--dwg b { background: #3a5fa8; }

/* the open point that belongs to this state */
.spoint { display: inline-grid; margin: 10px 0 0; font-size: 12px; }
.spoint > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; transition: opacity 350ms var(--ease); }
.spoint svg { width: 14px; height: 14px; stroke-width: 1.8; flex: none; }
.spoint__open { color: #9a5a12; }
.spoint__done { color: var(--accent); opacity: 0; }
.raum.is-complete .spoint__open { opacity: 0; }
.raum.is-complete .spoint__done { opacity: 1; }

/* required shots before the room is closed up */
.slots { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.slot__frame {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: #fbfaf8; border: 1px dashed #cfcbc2;
  transition: border-color 400ms var(--ease), background 400ms var(--ease);
}
.slot__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #b6b3ab; transition: opacity 300ms var(--ease); }
.slot__empty svg { width: 18px; height: 18px; stroke-width: 1.5; }
.slot__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 450ms ease-out, transform 900ms var(--ease); }
.slot__tick {
  position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff;
  opacity: 0; transform: scale(0.6); transition: opacity 300ms var(--ease) 250ms, transform 420ms var(--ease) 250ms;
}
.slot__tick svg { width: 11px; height: 11px; stroke-width: 2.8; }
.slot__label { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.is-taken .slot__frame { border-style: solid; border-color: var(--border); background: #fff; }
.slot.is-taken .slot__empty { opacity: 0; }
.slot.is-taken img { opacity: 1; transform: none; }
.slot.is-taken .slot__tick { opacity: 1; transform: none; }
.slot.is-flash .slot__frame::after { content: ""; position: absolute; inset: 0; background: #111; opacity: 0.5; animation: slot-flash 320ms ease-out forwards; }
@keyframes slot-flash { to { opacity: 0; } }

.sstatus { display: grid; margin: 12px 2px 0; font-size: 12px; color: var(--muted); }
.sstatus > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; transition: opacity 350ms var(--ease); }
.sstatus b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sstatus__ok { color: var(--accent); font-weight: 500; opacity: 0; }
.sstatus__ok svg { width: 14px; height: 14px; stroke-width: 2.4; }
.raum.is-complete .sstatus__n { opacity: 0; }
.raum.is-complete .sstatus__ok { opacity: 1; }

/* static (no JS / reduced motion): the documented state with all shots */
.raum:not(.is-live) .slot .slot__frame { border-style: solid; border-color: var(--border); background: #fff; }
.raum:not(.is-live) .slot .slot__empty { opacity: 0; }
.raum:not(.is-live) .slot img { opacity: 1; transform: none; }
.raum:not(.is-live) .slot .slot__tick { opacity: 1; transform: none; }

.raum.no-tx, .raum.no-tx * { transition: none !important; animation: none !important; }
.raum.is-measuring .spanel { position: absolute; }

/* ---------- Floor plan app on the iPad screen (concept demo) ---------- */
.plan-app {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #fbfaf8; color: var(--text);
  font-size: calc(5.4 * var(--mm)); line-height: 1.25;
}
.plan-app__bar {
  flex: none; display: flex; align-items: center; gap: calc(3 * var(--mm));
  height: calc(14 * var(--mm)); padding: 0 calc(8 * var(--mm));
  border-bottom: 1px solid #ecebe6; white-space: nowrap;
}
.plan-app__project { font-weight: 600; }
.plan-app__level { color: var(--muted); }
.plan-app__count { margin-left: auto; color: var(--muted); }
.plan-app__main { flex: 1; min-height: 0; display: grid; grid-template-columns: calc(58 * var(--mm)) minmax(0, 1fr); }

/* folder structure: same two-tone folders as the photo feature, triangles show what is open */
.plan-app__side {
  margin: 0; padding: calc(4 * var(--mm)) calc(2.5 * var(--mm)); list-style: none; overflow: hidden;
  background: #f4f3ef; border-right: 1px solid #ecebe6; font-size: calc(4.6 * var(--mm));
}
.pa-row {
  display: flex; align-items: center; gap: calc(1.6 * var(--mm));
  height: calc(8.6 * var(--mm)); padding: 0 calc(1.6 * var(--mm)) 0 calc(1 * var(--mm) + var(--lvl) * 4.6 * var(--mm));
  border-radius: calc(1.6 * var(--mm)); color: var(--text-2); white-space: nowrap;
}
.pa-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pa-meta { margin-left: auto; padding-left: calc(1.5 * var(--mm)); color: var(--muted); font-size: calc(4 * var(--mm)); }
.pa-tri { flex: none; width: calc(2.6 * var(--mm)); height: calc(2.6 * var(--mm)); display: grid; place-items: center; }
.pa-tri::before { content: ""; border-left: calc(1.5 * var(--mm)) solid #a29e96; border-top: calc(1.05 * var(--mm)) solid transparent; border-bottom: calc(1.05 * var(--mm)) solid transparent; }
.pa-row.is-open .pa-tri { transform: rotate(90deg); }
.pa-tri--none::before { display: none; }
.pa-fold { flex: none; width: calc(4.6 * var(--mm)); height: calc(3.7 * var(--mm)); }
.pa-fold path { stroke-width: 4; }
.pa-fold .b { fill: #d9d4c9; stroke: #b5afa3; }
.pa-fold .f { fill: #efebe3; stroke: #b5afa3; }
.pa-row--project { color: var(--text); font-weight: 600; }
.pa-row--project .pa-fold .b { fill: #c9c3b6; }
.pa-row--file .ficon, .pa-row--file .ficon svg { flex: none; width: calc(3.4 * var(--mm)); height: calc(4.1 * var(--mm)); }
.pa-row--file .ficon svg { stroke-width: 1.6; }
/* at this size the type label would be a blob: a small coloured tab marks PDF / DWG instead */
.pa-row--file .ficon b { left: auto; right: calc(0.2 * var(--mm)); bottom: calc(0.5 * var(--mm)); width: calc(2.2 * var(--mm)); height: calc(1.2 * var(--mm)); padding: 0; font-size: 0; border-radius: 1px; }
.pa-row.is-active { background: #fff; color: var(--text); font-weight: 500; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(28, 24, 18, 0.06); }

/* plan sheet: keeps the drawing's aspect ratio, so pin positions in % stay on the drawing */
.plan-app__canvas { position: relative; min-width: 0; display: grid; align-items: center; padding: calc(3 * var(--mm)); background: #fbfaf8; }
.plan-app__sheet { position: relative; width: 100%; aspect-ratio: 1470 / 1080; }
.plan-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plan-svg * { vector-effect: non-scaling-stroke; }
.pl-floor { fill: #fff; }
.plan-svg__focus { fill: rgba(42, 59, 212, 0.07); stroke: none; transition: opacity 500ms var(--ease); }
.pl-wall-ext { fill: #34332f; }
.pl-wall-int { fill: #5d5b56; }
.pl-wall-part { fill: #9a968e; }
.pl-gap { fill: #fff; }
.pl-fix, .pl-win, .pl-door { fill: none; stroke: #7d7a73; stroke-width: 0.45px; }
.pl-fix { stroke: #a7a39b; }
.pl-win { stroke: #55534e; }
.pl-door { stroke: #55534e; }
.pl-door .pl-arc { stroke: #a7a39b; stroke-dasharray: 2 1.5; }
.pl-stair .pl-cut { stroke: #55534e; }
.pl-dimlines { fill: none; stroke: #8f8b84; stroke-width: 0.4px; }
.pl-sec { fill: #fff; stroke: #55534e; stroke-width: 0.45px; }
.pl-sec path { stroke-dasharray: 6 2 1 2; }
.pl-north circle { fill: none; stroke: #8f8b84; stroke-width: 0.4px; }
.pl-north path { fill: #55534e; }
.plan-svg text { font-family: var(--font); stroke: none; }
.pl-room { fill: var(--text-2); font-size: 34px; font-weight: 600; text-anchor: middle; }
.pl-area { fill: var(--muted); font-size: 24px; text-anchor: middle; }
.pl-dim { fill: #77736c; font-size: 21px; text-anchor: middle; }
.pl-small { fill: #77736c; font-size: 20px; }
.pl-sec-t { text-anchor: middle; font-weight: 600; fill: #55534e; }

/* position marker */
.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 0; height: 0;
}
.pin__dot {
  position: absolute; left: calc(-3.4 * var(--mm)); top: calc(-3.4 * var(--mm));
  width: calc(6.8 * var(--mm)); height: calc(6.8 * var(--mm)); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); border: calc(0.9 * var(--mm)) solid #fff; color: #fff;
  box-shadow: 0 0 0 calc(0.4 * var(--mm)) rgba(42, 59, 212, 0.35), 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: background 400ms var(--ease), color 400ms var(--ease), opacity 300ms var(--ease), transform 450ms var(--ease);
}
.pin__dot svg { display: none; }
/* a single, quiet tap ring – no looping pulse */
.pin__tap {
  position: absolute; left: calc(-6 * var(--mm)); top: calc(-6 * var(--mm));
  width: calc(12 * var(--mm)); height: calc(12 * var(--mm)); border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0;
}
@keyframes pin-tap {
  0%   { opacity: 0.55; transform: scale(0.35); }
  100% { opacity: 0;    transform: scale(1.35); }
}

/* the task, attached to the marker (opens to the left of it) */
.task-pop {
  position: absolute; right: calc(100% - var(--x) + 6.5 * var(--mm)); top: var(--y);
  width: calc(66 * var(--mm)); padding: calc(3.6 * var(--mm)) calc(4.2 * var(--mm));
  transform: translateY(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: calc(3 * var(--mm));
  box-shadow: 0 1px 2px rgba(28, 24, 18, 0.06), 0 6px 14px -8px rgba(28, 24, 18, 0.25);
  display: flex; flex-direction: column; gap: calc(1 * var(--mm));
  transition: opacity 350ms var(--ease), transform 500ms var(--ease);
}
/* short stem to the marker */
.task-pop::after {
  content: ""; position: absolute; left: 100%; top: 50%;
  width: calc(4 * var(--mm)); height: 1px; background: var(--border);
}
.task-pop__title { font-size: calc(6.4 * var(--mm)); font-weight: 600; white-space: nowrap; }
.task-pop__place { color: var(--muted); white-space: nowrap; }
.task-pop__status { display: inline-grid; margin-top: calc(0.8 * var(--mm)); }
.task-pop__status > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: calc(1.4 * var(--mm)); transition: opacity 300ms var(--ease); }
.task-pop__status svg { width: calc(5.4 * var(--mm)); height: calc(5.4 * var(--mm)); stroke-width: 2.2; flex: none; }
.task-pop__open { color: var(--text-2); }
.task-pop__status > .task-pop__done { display: none; }

/* ---------- iPad plan states (unchanged content; on the shared clock) ---------- */
.plan-app.no-tx, .plan-app.no-tx * { transition: none !important; animation: none !important; }
.plan-app.is-live .pin, .plan-app.is-live .task-pop { transition: opacity 600ms var(--ease); }
.plan-app.is-live.s-out .pin, .plan-app.is-live.s-out .task-pop, .plan-app.is-live.s-out .plan-svg__focus { opacity: 0; }
.plan-app.is-live.p-tap .pin__tap { animation: pin-tap 700ms cubic-bezier(0.2, 0, 0, 1) both; }
.plan-app.is-live:not(.p-mark) .pin__dot { opacity: 0; transform: scale(0.4); }
.plan-app.is-live:not(.p-mark) .plan-svg__focus { opacity: 0; }
.plan-app.is-live:not(.p-task) .task-pop { opacity: 0; transform: translate(4px, -50%) scale(0.97); }

/* connector to the iPad turns accent only when the selected room is the one marked on the iPad (Bad) */
.connector .connector__line, .connector .connector__start, .connector .connector__end { transition: stroke 450ms var(--ease), fill 450ms var(--ease); }
/* (no special colour for a linked connector – both sides look the same) */

/* ---------- Narrower screens: features below the devices ---------- */
@media (max-width: 1259px) {
  .meta { gap: 14px; font-size: 12px; }
  .overview__composition {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px; justify-items: center; align-items: start;
  }
  .devices { grid-column: 1 / -1; }
  .feature {
    --connect: below; --feature-w: 300px; --shot-w: 196px;
    position: relative; left: auto; right: auto; top: auto; transform: none; margin-top: 48px;
  }
  .feature--plan  { grid-column: 1; grid-row: 2; }
  .feature--photo { grid-column: 2; grid-row: 2; }
}
@media (max-width: 699px) {
  .overview__composition { grid-template-columns: minmax(0, 1fr); }
  .feature--plan  { --connect: above; grid-column: 1; grid-row: 1; margin: 0 0 40px; }
  .devices        { grid-row: 2; }
  .feature--photo { grid-column: 1; grid-row: 3; }
}

/* ---------- Mobile nav ---------- */
.mobile-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .burger {
    display: inline-grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 8px;
  }
  .burger span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform 200ms var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-nav:not([hidden]) {
    display: flex; flex-direction: column; position: sticky; top: 80px; z-index: 19;
    margin: 0 var(--rail); padding: 8px var(--pad) 16px;
    border-bottom: 1px solid var(--border); background: var(--bg);
  }
  .mobile-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--border); }
  .mobile-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  :root { --rail: 0px; --pad: 20px; }
  .frame::before, .frame::after { display: none; }
  .header { height: 68px; padding-top: 6px; }
  .header::after { border-left: 0; border-right: 0; }
  .mobile-nav:not([hidden]) { top: 68px; }
  .login, .header .btn { display: none; }
  .logo img { height: 30px; }

  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero__media { position: relative; inset: auto; order: 2; height: 300px; }
  .hero__media::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(250,249,246,0) 40%); }
  .hero__content { padding: 36px 20px 8px; }
  .eyebrow { font-size: 14px; }
  .hero__title { font-size: clamp(32px, 9vw, 40px); white-space: normal; margin: 22px 0 28px; }
  .hero__title br { display: none; }
  .hero__title .muted { display: block; }
  .btn--lg { width: 100%; height: 56px; }
  
  .hero { border-bottom: 0; }
  .hero__media { height: 340px; }

  .overview { padding: 48px 20px 56px; border-bottom: 0; border-right: 0; }
  .overview__title { font-size: clamp(28px, 7.6vw, 36px); }
  .overview__title br { display: none; }
  .overview__composition { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- iPhone: Etalier camera (concept demo; follows the photo feature's states) ---------- */
.cam {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: #050506; color: #fff; font-family: var(--font); overflow: hidden;
  font-size: calc(2.6 * var(--mm)); line-height: 1.2;
}
.cam__status { flex: none; display: flex; align-items: center; justify-content: space-between; height: calc(10 * var(--mm)); padding: calc(1.4 * var(--mm)) calc(6.5 * var(--mm)) 0 calc(7.5 * var(--mm)); font-size: calc(3.3 * var(--mm)); font-weight: 600; letter-spacing: -0.01em; }
.cam__sys { display: inline-flex; align-items: center; gap: calc(1.1 * var(--mm)); }
.cam__sig { width: calc(3.6 * var(--mm)); height: calc(2.4 * var(--mm)); background: linear-gradient(90deg, #fff 0 18%, transparent 18% 27%, #fff 27% 45%, transparent 45% 54%, #fff 54% 72%, transparent 72% 82%, #fff 82%); clip-path: polygon(0 75%, 18% 75%, 18% 100%, 0 100%, 0 75%, 27% 50%, 45% 50%, 45% 100%, 27% 100%, 27% 50%, 54% 25%, 72% 25%, 72% 100%, 54% 100%, 54% 25%, 82% 0, 100% 0, 100% 100%, 82% 100%); }
.cam__wifi { width: calc(3.2 * var(--mm)); height: calc(2.4 * var(--mm)); border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(circle at 50% 100%, #fff 0 22%, transparent 23% 38%, #fff 39% 58%, transparent 59% 74%, #fff 75%); clip-path: polygon(50% 100%, 0 0, 100% 0); }
.cam__bat { position: relative; width: calc(5.4 * var(--mm)); height: calc(2.5 * var(--mm)); border-radius: calc(0.7 * var(--mm)); box-shadow: inset 0 0 0 calc(0.25 * var(--mm)) rgba(255, 255, 255, 0.55); }
.cam__bat::before { content: ""; position: absolute; left: calc(0.45 * var(--mm)); top: calc(0.45 * var(--mm)); bottom: calc(0.45 * var(--mm)); width: 70%; border-radius: calc(0.35 * var(--mm)); background: #fff; }
.cam__bat::after { content: ""; position: absolute; right: calc(-0.7 * var(--mm)); top: 35%; width: calc(0.4 * var(--mm)); height: 30%; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.55); }

.cam__top { flex: none; display: flex; justify-content: center; align-items: center; height: calc(8 * var(--mm)); }
.cam__room { display: inline-flex; align-items: center; gap: calc(1.2 * var(--mm)); height: calc(5.4 * var(--mm)); padding: 0 calc(2.2 * var(--mm)); border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: calc(2.5 * var(--mm)); white-space: nowrap; }
.cam__room b { font-weight: 600; }
.cam__room em { font-style: normal; color: rgba(255, 255, 255, 0.6); }
.cam__ok { width: calc(2.8 * var(--mm)); height: calc(2.8 * var(--mm)); fill: none; stroke: #8fa0ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: opacity 300ms var(--ease); }

/* viewfinder: the same spot as in the photo feature */
.cam__view { position: relative; flex: none; height: calc(88 * var(--mm)); overflow: hidden; }
.cam__img { position: absolute; inset: 0; background: #3a3a38 url("assets/feature-photo-kiesnest.jpg") center / cover; transition: transform 900ms cubic-bezier(0.2, 0, 0, 1), filter 400ms var(--ease); }
.cam__grid { position: absolute; inset: 0; opacity: 0.2; background:
  linear-gradient(90deg, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.7) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgba(255,255,255,0.7) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
  linear-gradient(180deg, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.7) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgba(255,255,255,0.7) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)); }
.cam__hud { position: absolute; left: calc(2.4 * var(--mm)); top: calc(2.4 * var(--mm)); display: inline-flex; align-items: center; gap: calc(0.8 * var(--mm)); height: calc(4.6 * var(--mm)); padding: 0 calc(1.6 * var(--mm)); border-radius: 999px; background: rgba(0, 0, 0, 0.45); font-size: calc(2.3 * var(--mm)); font-weight: 600; }
.cam__hud svg { width: calc(2.4 * var(--mm)); height: calc(2.4 * var(--mm)); fill: #fff; transform: rotate(48deg); }
.cam__focus { position: absolute; left: 50%; top: 46%; width: calc(17 * var(--mm)); height: calc(17 * var(--mm)); margin: calc(-8.5 * var(--mm)) 0 0 calc(-8.5 * var(--mm)); border: calc(0.35 * var(--mm)) solid #ffd54a; border-radius: calc(1 * var(--mm)); opacity: 0; transition: opacity 250ms var(--ease), transform 450ms cubic-bezier(0.2, 0, 0, 1); }
/* voice note: a small waveform over the viewfinder */
.cam__rec { position: absolute; left: 50%; bottom: calc(3 * var(--mm)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: calc(0.6 * var(--mm)); height: calc(6 * var(--mm)); padding: 0 calc(2.4 * var(--mm)); border-radius: 999px; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 250ms var(--ease); }
.cam__rec i { width: calc(0.55 * var(--mm)); height: calc(1.4 * var(--mm)); border-radius: 1px; background: #fff; }
.cam__rec i:nth-child(2) { height: calc(2.8 * var(--mm)); } .cam__rec i:nth-child(3) { height: calc(3.6 * var(--mm)); } .cam__rec i:nth-child(4) { height: calc(2.2 * var(--mm)); }
.cam__rec i:nth-child(5) { height: calc(3.2 * var(--mm)); } .cam__rec i:nth-child(6) { height: calc(1.8 * var(--mm)); }
.cam__rec b { margin-left: calc(1 * var(--mm)); font-size: calc(2.4 * var(--mm)); font-weight: 600; font-variant-numeric: tabular-nums; }
.cam__toast { position: absolute; left: 50%; top: calc(3 * var(--mm)); transform: translate(-50%, -4px); display: inline-flex; align-items: center; gap: calc(1 * var(--mm)); height: calc(5.6 * var(--mm)); padding: 0 calc(2.4 * var(--mm)); border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #1c1c1a; font-size: calc(2.4 * var(--mm)); font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 300ms var(--ease), transform 400ms cubic-bezier(0.2, 0, 0, 1); }
.cam__toast svg { width: calc(2.8 * var(--mm)); height: calc(2.8 * var(--mm)); fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.cam__zoom { flex: none; display: flex; justify-content: center; gap: calc(1.6 * var(--mm)); padding-top: calc(3 * var(--mm)); }
.cam__zoom span { width: calc(5.6 * var(--mm)); height: calc(5.6 * var(--mm)); display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: calc(2.1 * var(--mm)); font-weight: 600; }
.cam__zoom span.is-on { color: #ffd54a; background: rgba(255, 255, 255, 0.16); }
.cam__bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: calc(3.6 * var(--mm)) calc(7 * var(--mm)) 0; }
.cam__thumb { width: calc(9 * var(--mm)); height: calc(9 * var(--mm)); border-radius: calc(1.6 * var(--mm)); background: #3a3a38 url("assets/feature-photo-kiesnest.jpg") center / cover; box-shadow: 0 0 0 calc(0.3 * var(--mm)) rgba(255, 255, 255, 0.25); transition: transform 380ms cubic-bezier(0.2, 0, 0, 1), opacity 300ms var(--ease); }
.cam__shutter { width: calc(15.5 * var(--mm)); height: calc(15.5 * var(--mm)); display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 calc(0.9 * var(--mm)) #fff; }
.cam__shutter i { width: calc(12.4 * var(--mm)); height: calc(12.4 * var(--mm)); border-radius: 50%; background: #fff; transition: transform 120ms var(--ease); }
.cam__mic { width: calc(9 * var(--mm)); height: calc(9 * var(--mm)); display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transition: background 250ms var(--ease); }
.cam__mic svg { width: calc(4.4 * var(--mm)); height: calc(4.4 * var(--mm)); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.cam__home { position: absolute; left: 50%; bottom: calc(1.6 * var(--mm)); width: calc(24 * var(--mm)); height: calc(1 * var(--mm)); margin-left: calc(-12 * var(--mm)); border-radius: 999px; background: rgba(255, 255, 255, 0.85); }

/* static (no JS / reduced motion): photo taken, room confirmed, saved */
.cam:not(.is-live) .cam__toast { opacity: 1; transform: translate(-50%, 0); }
/* live states, on the same clock as the photo feature */
.cam.is-live .cam__thumb { opacity: 0; transform: scale(0.6); }
.cam.is-live.s-photo .cam__thumb { opacity: 1; transform: none; }
.cam.is-live:not(.s-ok) .cam__ok { opacity: 0; }
.cam.is-live.s-focus .cam__focus { opacity: 1; transform: scale(0.82); }
.cam.is-live.s-photo .cam__focus { opacity: 0; }
.cam.is-live:not(.s-focus) .cam__img { transform: scale(1.06); }
.device.is-capturing .cam__shutter i { transform: scale(0.86); }
.cam.is-live.s-rec .cam__rec { opacity: 1; }
.cam.is-live.s-rec .cam__mic { background: #e5484d; }
.cam.is-live.s-saved .cam__toast { opacity: 1; transform: translate(-50%, 0); }
.cam.is-live.s-out { opacity: 1; }
