/* ============================================================
   Inspeck — landing page
   Design language: a design-tool canvas. Graph-paper grid,
   measurement-pink overlays, selection handles, mono numerals.
   ============================================================ */

:root {
  --paper: #fbfbf9;
  --surface: #ffffff;
  --ink: #17171c;
  --muted: #66666f;
  --faint: #9a9aa2;
  --line: #e7e6e0;
  --red: #ff3d8a;
  --red-ink: #e0186f;
  --red-soft: rgba(255, 61, 138, 0.07);
  --blue: #2d6bff;
  --blue-soft: rgba(45, 107, 255, 0.08);
  --green: #0fae74;
  --grid-c: rgba(23, 23, 28, 0.04);
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --disp: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --rad: 14px;
  --shadow-1: 0 1px 2px rgba(23, 23, 28, 0.05), 0 4px 16px rgba(23, 23, 28, 0.05);
  --shadow-2: 0 2px 6px rgba(23, 23, 28, 0.07), 0 16px 40px rgba(23, 23, 28, 0.09);
  --ruler: 22px;
  --maxw: 1240px;   /* content container width */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px);
  background-size: 28px 28px;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Branded pointer — "Gradient pop" pink arrow. Desktop only (touch keeps native);
   links/buttons keep the system hand, inputs keep the text caret. */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 30 30'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ff5ba0'/><stop offset='1' stop-color='%23e0186f'/></linearGradient><filter id='s' x='-50%25' y='-50%25' width='200%25' height='200%25'><feDropShadow dx='0' dy='1.4' stdDeviation='1.4' flood-color='%23e0186f' flood-opacity='0.4'/></filter></defs><path d='M5.5 3.5 L5.5 22.5 L10.8 17.6 L14.2 24.2 L17.4 22.7 L14 16.2 L20.6 15.8 Z' fill='url(%23g)' stroke='%23ffffff' stroke-width='1.6' stroke-linejoin='round' filter='url(%23s)'/></svg>") 5 3,auto !important;
  }
  a, button, [role="button"], summary, label[for], .ie-replay {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 30 30'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ff8cc0'/><stop offset='1' stop-color='%23ff2d80'/></linearGradient><filter id='s' x='-80%25' y='-80%25' width='260%25' height='260%25'><feDropShadow dx='0' dy='1' stdDeviation='2.6' flood-color='%23ff3d8a' flood-opacity='0.6'/></filter></defs><path d='M5.5 3.5 L5.5 22.5 L10.8 17.6 L14.2 24.2 L17.4 22.7 L14 16.2 L20.6 15.8 Z' fill='url(%23g)' stroke='%23ffffff' stroke-width='1.7' stroke-linejoin='round' filter='url(%23s)'/></svg>") 5 3,pointer !important;
  }
  body:active,
  a:active, button:active, [role="button"]:active, summary:active, label[for]:active, .ie-replay:active {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 30 30'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23e0186f'/><stop offset='1' stop-color='%23b3105a'/></linearGradient><filter id='s' x='-50%25' y='-50%25' width='200%25' height='200%25'><feDropShadow dx='0' dy='0.5' stdDeviation='0.6' flood-color='%238a0f48' flood-opacity='0.5'/></filter></defs><path d='M5.5 3.5 L5.5 22.5 L10.8 17.6 L14.2 24.2 L17.4 22.7 L14 16.2 L20.6 15.8 Z' transform='translate(0.825 0.525) scale(0.85)' fill='url(%23g)' stroke='%23ffffff' stroke-width='1.4' stroke-linejoin='round' filter='url(%23s)'/></svg>") 5 3,auto !important;
  }
  input, textarea, [contenteditable="true"] { cursor: text; }
}

::selection { background: var(--red); color: #fff; }

kbd {
  font-family: var(--mono);
  font-size: 0.72em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--muted);
  white-space: nowrap;
}

h1, h2, h3 { font-family: var(--disp); line-height: 1.05; letter-spacing: -0.02em; }

a { color: inherit; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- selection-handles hover (the "selected in a design tool" look) ---------- */
.sel { position: relative; }
.sel::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed transparent;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  background:
    linear-gradient(var(--blue), var(--blue)) top left / 6px 6px no-repeat,
    linear-gradient(var(--blue), var(--blue)) top right / 6px 6px no-repeat,
    linear-gradient(var(--blue), var(--blue)) bottom left / 6px 6px no-repeat,
    linear-gradient(var(--blue), var(--blue)) bottom right / 6px 6px no-repeat;
}
.sel:hover::after, .sel:focus-visible::after {
  opacity: 1;
  transform: scale(1);
  border-color: var(--blue);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 28, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23, 23, 28, 0.22); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 12px; }
.cross-ico { width: 17px; height: 17px; color: var(--red); flex: none; }
.btn.measuring-on { border-color: var(--red); color: var(--red-ink); background: var(--red-soft); }

/* ---------- rulers ---------- */
.ruler {
  position: fixed;
  z-index: 950;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ruler-x {
  top: 0; left: var(--ruler); right: 0; height: var(--ruler);
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg,
    var(--faint) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 100px);
  background-size: 100% 5px, 100% 9px;
  background-position: 0 100%, 0 100%;
  background-repeat: repeat-x;
}
.ruler-y {
  top: var(--ruler); left: 0; bottom: 0; width: var(--ruler);
  border-right: 1px solid var(--line);
  background-image: repeating-linear-gradient(180deg,
    var(--faint) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(180deg, var(--muted) 0 1px, transparent 1px 100px);
  background-size: 5px 100%, 9px 100%;
  background-position: 100% 0, 100% 0;
  background-repeat: repeat-y;
}
.ruler-corner {
  position: fixed; top: 0; left: 0; width: var(--ruler); height: var(--ruler);
  z-index: 951;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rx-mark, .ry-mark {
  position: absolute;
  background: var(--red);
  opacity: 0.85;
}
.rx-mark { top: 0; bottom: 0; width: 1px; left: 0; }
.ry-mark { left: 0; right: 0; height: 1px; top: 0; }

/* ---------- 8pt grid overlay ---------- */
#gridlay {
  position: fixed; inset: 0; z-index: 940; pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 107, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 107, 255, 0.12) 1px, transparent 1px);
  background-size: 8px 8px;
  animation: gridin 0.25s ease;
}
@keyframes gridin { from { opacity: 0; } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: min(1060px, calc(100% - 64px));
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 12px 10px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
  font-family: var(--disp);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mk { color: var(--red); flex-shrink: 0; }
.logo-mk line { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); transform-box: fill-box; transform-origin: center; }
/* on hover the dimension line "measures" — caps spread, the beam stretches to meet them */
.logo:hover .lm-cap-l { transform: translateX(-1.6px); }
.logo:hover .lm-cap-r { transform: translateX(1.6px); }
.logo:hover .lm-beam-line { transform: scaleX(1.3); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(23, 23, 28, 0.05); }
.nav-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 158px 32px 30px;
  text-align: center;
}
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--red-ink);
  background: var(--red-soft);
  border: 1px solid rgba(255, 61, 138, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
}
.hero-h1 {
  font-size: clamp(46px, 7.4vw, 88px);
  font-weight: 700;
  margin-bottom: 58px;
}
.measured {
  position: relative;
  display: inline-block;
  padding: 0.02em 0.14em;
  margin-top: 0.12em;
  border: 1.5px solid transparent;
  transition: border-color 0.5s ease 0.4s;
  color: var(--red-ink);
}
.measured.on { border-color: var(--red); }
.measured::after {
  content: "";
  position: absolute; inset: -5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease 0.7s;
  background:
    linear-gradient(var(--red), var(--red)) top left / 8px 8px no-repeat,
    linear-gradient(var(--red), var(--red)) top right / 8px 8px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom left / 8px 8px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom right / 8px 8px no-repeat;
}
.measured.on::after { opacity: 1; }

/* dimension lines around the hero selection */
.dim { position: absolute; pointer-events: none; font-style: normal; }
.dim-top {
  left: -1.5px; right: -1.5px; bottom: -36px; height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.6s;
}
.dim-top::before, .dim-top::after {
  content: ""; position: absolute; top: -5px; width: 1.5px; height: 12px; background: var(--red);
}
.dim-top::before { left: 0; } .dim-top::after { right: 0; }
.dim-right {
  top: -1.5px; bottom: -1.5px; right: -40px; width: 1.5px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.8s;
}
.dim-right::before, .dim-right::after {
  content: ""; position: absolute; left: -5px; height: 1.5px; width: 12px; background: var(--red);
}
.dim-right::before { top: 0; } .dim-right::after { bottom: 0; }
.measured.on .dim-top { transform: scaleX(1); }
.measured.on .dim-right { transform: scaleY(1); }
.dlabel {
  position: absolute;
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  padding: 3px 9px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease 1s;
  line-height: 1.5;
}
.measured.on .dlabel { opacity: 1; }
.dim-top .dlabel { left: 50%; top: 0; transform: translate(-50%, -50%); }
.dim-right .dlabel { top: 50%; left: 0; transform: translate(-50%, -50%) rotate(0deg); }

.hero-sub {
  max-width: 580px;
  margin: 0 auto 34px;
  font-size: 18px;
  color: var(--muted);
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- fake-browser auto demo ---------- */
.browser {
  max-width: 880px;
  margin: 64px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  text-align: left;
}
.b-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f4;
}
.b-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #e2e1db; }
.b-bar > i:nth-child(1) { background: #ff5f57; }
.b-bar > i:nth-child(2) { background: #febc2e; }
.b-bar > i:nth-child(3) { background: #28c840; }
.b-url {
  margin-left: 12px;
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 12px;
}
.b-ext {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(255, 61, 138, 0.25);
  font-size: 15px;
  animation: extpulse 3s ease infinite;
}
@keyframes extpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 138, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(255, 61, 138, 0); }
}
.b-body { position: relative; padding: 22px 28px 30px; min-height: 300px; }
.b-nav { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.b-logo { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #6e8bff, #b46eff); }
.b-link { width: 44px; height: 8px; border-radius: 4px; background: #ececea; }
.b-cta {
  margin-left: auto;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 8px; padding: 6px 12px; color: var(--muted);
}
.b-hero { display: flex; gap: 36px; align-items: flex-start; padding-top: 26px; }
.b-copy { flex: 1; min-width: 0; }
.b-kicker { width: 70px; height: 8px; border-radius: 4px; background: #ffd9e0; margin-bottom: 14px; }
.b-h { width: 82%; height: 18px; border-radius: 6px; background: #e9e9e6; margin-bottom: 10px; }
.b-p { width: 92%; height: 9px; border-radius: 4px; background: #f0f0ed; margin-bottom: 8px; }
.b-p.short { width: 60%; margin-bottom: 18px; }
.b-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 9px;
  padding: 11px 18px;
}
.b-card {
  width: 230px; flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.b-img { height: 92px; border-radius: 8px; background: linear-gradient(135deg, #ffe2b8, #ffb8c9); margin-bottom: 10px; }
.b-line { height: 9px; border-radius: 4px; background: #ececea; margin-bottom: 7px; }
.b-line.short { width: 55%; }

/* overlay layer for the scripted demo */
.ad-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 5; }
.ad-box {
  position: absolute; left: 0; top: 0;
  border: 1.5px solid var(--red);
  background: var(--red-soft);
  border-radius: 4px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.ad-size {
  position: absolute;
  top: -26px; left: -1.5px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  background: var(--red); color: #fff;
  padding: 2px 8px; border-radius: 5px;
  white-space: nowrap;
}
.ad-gap {
  position: absolute;
  height: 1.5px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ad-gap::before, .ad-gap::after {
  content: ""; position: absolute; top: -5px; width: 1.5px; height: 12px; background: var(--blue);
}
.ad-gap::before { left: 0; } .ad-gap::after { right: 0; }
/* vertical variant — measures the spacing above an element */
.ad-gap.vert { height: auto; width: 1.5px; }
.ad-gap.vert::before { top: 0; bottom: auto; left: -5px; right: auto; width: 12px; height: 1.5px; }
.ad-gap.vert::after { top: auto; bottom: 0; left: -5px; right: auto; width: 12px; height: 1.5px; }
.ad-gap.vert .ad-gaplabel { left: calc(100% + 9px); top: 50%; transform: translate(0, -50%); }
.ad-gaplabel {
  position: absolute; left: 50%; top: -13px; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  background: var(--blue); color: #fff;
  padding: 2px 8px; border-radius: 5px;
  white-space: nowrap;
}
.ad-pop {
  position: absolute;
  width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-2);
  padding: 11px 13px;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.ad-pop.show { opacity: 1; transform: none; }
.ad-pop-t {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--red-ink);
  padding-bottom: 7px; margin-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.ad-row { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; padding: 2.5px 0; }
.ad-row span { color: var(--faint); font-family: var(--mono); }
.ad-row b { font-weight: 500; font-family: var(--mono); display: inline-flex; align-items: center; gap: 5px; }
.sw {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.15);
  vertical-align: -1px;
}
.ad-pin {
  position: absolute;
  width: 22px; height: 22px;
  background: var(--red);
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 4px;
  box-shadow: var(--shadow-1);
  display: grid; place-items: center;
  color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
}
.ad-pin.show { opacity: 1; transform: scale(1); }
.ad-note {
  position: absolute;
  left: 26px; top: -4px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  border-radius: 8px; border-bottom-left-radius: 2px;
  padding: 6px 10px;
  white-space: nowrap;
}
.ad-cursor {
  position: absolute; left: 0; top: 0;
  margin: -13px 0 0 -13px;
  transition: transform 0.7s cubic-bezier(0.45, 0.05, 0.25, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.ad-click {
  position: absolute; inset: -4px;
  border: 2px solid var(--red);
  border-radius: 50%;
  opacity: 0;
}
.ad-click.go { animation: adclick 0.45s ease; }
@keyframes adclick {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* --- audit-grade inspect panel + handoff beats --- */
.ad-pop { width: 212px; }
.ad-pop-caret {
  position: absolute; left: 20px; width: 10px; height: 10px;
  background: var(--surface); border: 1px solid var(--line);
  transform: rotate(45deg); z-index: 1;
}
.ad-pop.flip-down .ad-pop-caret { top: -6px; bottom: auto; border-bottom: 0; border-right: 0; }
.ad-pop.flip-up   .ad-pop-caret { bottom: -6px; top: auto; border-top: 0; border-left: 0; }
.ad-pop.flip-side .ad-pop-caret { display: none; }
.ad-chip {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 5px;
}
.ad-chip.ok { color: var(--green); background: rgba(15, 174, 116, 0.12); }
/* rows fill in like the panel is computing (children: caret, title, then 5 rows) */
.ad-row { opacity: 0; transform: translateX(-4px); transition: opacity 0.22s ease, transform 0.22s ease; }
.ad-pop.show .ad-row { opacity: 1; transform: none; }
.ad-pop.show .ad-row:nth-child(4) { transition-delay: 0.05s; }
.ad-pop.show .ad-row:nth-child(5) { transition-delay: 0.10s; }
.ad-pop.show .ad-row:nth-child(6) { transition-delay: 0.15s; }
.ad-pop.show .ad-row:nth-child(7) { transition-delay: 0.20s; }
/* spec-copied chip — the handoff payoff */
.ad-spec {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  color: #fff; background: var(--green);
  padding: 5px 11px; border-radius: 7px; box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(6px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 6;
}
.ad-spec.show { opacity: 1; transform: none; }
.ad-spec-ic {
  display: grid; place-items: center; width: 14px; height: 14px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.22); font-size: 9px;
}
/* screenshot-capture flash across the frame */
.ad-flash {
  position: absolute; inset: 0; z-index: 7;
  background: #fff; opacity: 0; pointer-events: none;
}
.ad-flash.go { animation: adflash 0.5s ease; }
@keyframes adflash { 0% { opacity: 0; } 22% { opacity: 0.7; } 100% { opacity: 0; } }
/* focus glow that follows the cursor's attention */
.ad-focus {
  position: absolute; left: 0; top: 0; border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(255, 61, 138, 0.14);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.4s, height 0.4s;
  z-index: 4;
}
.ad-focus.show { opacity: 1; }

/* ---------- ticker ---------- */
.ticker {
  margin: 84px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track {
  display: inline-flex;
  padding: 12px 0;
  animation: tick 50s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.ticker i { color: var(--red); font-style: normal; padding: 0 2px; opacity: .85; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 200px 32px 0;
}
.sec-narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: 16px;
}
.sec h2 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  margin-bottom: 18px;
}
.sec-sub { max-width: 540px; color: var(--muted); font-size: 17px; margin-bottom: 8px; }

/* ---------- how-it-works: "catch every off-pixel" QA strip ---------- */
.flow { margin-top: 62px; position: relative; padding-top: 42px; }
/* No separate graph-paper backdrop here: a second grid sat out of phase with
   the body's 28px grid and seamed at the mask edges. Let the page grid show
   through instead — it's the same grid, perfectly aligned everywhere. */
.flow-rail, .flow-beats { position: relative; z-index: 1; }

/* the rail — a measurement ruler with ticks + a pink fill that grows */
.flow-rail {
  position: absolute; top: 182px; left: 6%; right: 6%; height: 3px;
  background: var(--line); border-radius: 2px;
}
.flow-rail::before {
  content: ""; position: absolute; inset: 0; border-radius: 2px;
  background: var(--red);
  transform-origin: left; transform: scaleX(var(--p, 0));
  transition: transform 0.5s cubic-bezier(0.45, 0.05, 0.25, 1);
}
.flow-rail::after { /* ruler ticks */
  content: ""; position: absolute; left: 0; right: 0; top: -2.5px; height: 7px;
  background-image: linear-gradient(90deg, var(--line) 1.5px, transparent 1.5px);
  background-size: 19px 7px; opacity: 0.85;
}
/* the playhead — an inspect crosshair scanning the rail */
.flow-dot {
  position: absolute; top: 50%; left: 0; z-index: 2;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  color: var(--red); display: grid; place-items: center;
  border-radius: 50%; background: var(--surface);
  box-shadow: 0 0 0 5px var(--red-soft), var(--shadow-1);
  transition: left 0.5s cubic-bezier(0.45, 0.05, 0.25, 1);
}
.flow-dot svg { display: block; }
.flow-dot::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0; pointer-events: none;
}
.flow-dot.ping::before { animation: dotping 0.65s ease; }
@keyframes dotping { from { opacity: 0.55; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }

.flow-beats {
  list-style: none; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.beat {
  position: relative; padding-top: 172px; text-align: center;
  opacity: 0.4; transition: opacity 0.35s ease;
}
.beat.lit { opacity: 1; }
.beat-gfx {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%) scale(1.5);
  transform-origin: 50% 50%;
  width: 152px; height: 104px; display: grid; place-items: center;
}
.beat-no {
  display: inline-block;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  color: var(--faint); padding: 3px 9px; border-radius: 6px;
  transition: color 0.35s ease, background 0.35s ease;
}
.beat.lit .beat-no { color: var(--red-ink); background: var(--red-soft); }
.flow-beats h3 { font-size: 19px; margin: 12px 0 5px; }
.flow-beats p { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* 01 hover — measure element A's size, then the gap across to element B */
.gfx-measure .mz-a, .gfx-measure .mz-b {
  position: absolute; top: 50%; width: 46px; height: 42px; margin-top: -21px;
  border-radius: 7px; background: linear-gradient(180deg, #fff, #faf7f8); border: 1px solid var(--line);
}
.gfx-measure .mz-a { left: 50%; margin-left: -58px; }
.gfx-measure .mz-b { left: 50%; margin-left: 12px; }
/* red size-frame hugging element A */
.gfx-measure .mz-frame {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 48px;
  margin: -24px 0 0 -61px; border: 1.5px solid var(--red);
  border-radius: 8px; background: var(--red-soft); clip-path: inset(0 100% 0 0);
}
.gfx-measure .mz-badge {
  position: absolute; left: 50%; top: 50%; margin: -45px 0 0 -56px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: #fff; background: var(--red); padding: 1px 6px; border-radius: 4px;
  opacity: 0; transform: translateY(4px);
}
.gfx-measure .mz-badge b { font-weight: 600; }
/* blue spacing rule across the gap between A and B */
.gfx-measure .mz-gap {
  position: absolute; left: 50%; top: 50%; margin: -1px 0 0 -12px;
  width: 24px; height: 1.5px; background: var(--blue); opacity: 0;
}
.gfx-measure .mz-gap::before, .gfx-measure .mz-gap::after {
  content: ""; position: absolute; top: -5px; width: 1.5px; height: 11px; background: var(--blue);
}
.gfx-measure .mz-gap::before { left: 0; } .gfx-measure .mz-gap::after { right: 0; }
.gfx-measure .mz-gap i {
  position: absolute; left: 50%; top: -12px; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 9px; font-weight: 600; font-style: normal;
  color: #fff; background: var(--blue); padding: 0 5px; border-radius: 3px;
}
.beat.lit .gfx-measure .mz-frame { animation: mzdraw 0.5s ease both; }
.beat.lit .gfx-measure .mz-badge { animation: mzpop 0.4s ease 0.28s both; }
.beat.lit .gfx-measure .mz-gap { animation: mzpop 0.4s ease 0.82s both; }
@keyframes mzdraw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mzpop { to { opacity: 1; transform: translate(0, 0); } }

/* 02 inspect — panel springs open with selector, type, color + contrast chip */
.gfx-inspect .iz-panel {
  position: relative; width: 108px; padding: 11px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 7px; align-items: flex-start;
  transform: scale(0.55); opacity: 0; transform-origin: center;
}
.gfx-inspect .iz-panel i { height: 6px; border-radius: 3px; background: #ececea; display: block; }
.gfx-inspect .iz-sel { width: 60%; background: var(--red-soft); }
.gfx-inspect .iz-row { width: 86%; }
.gfx-inspect .iz-color { display: inline-flex; align-items: center; gap: 6px; }
.gfx-inspect .iz-color b {
  width: 12px; height: 12px; border-radius: 3px; display: block;
  background: linear-gradient(135deg, #6e8bff, #b46eff); border: 1px solid rgba(0, 0, 0, 0.1);
}
.gfx-inspect .iz-color::after { content: ""; display: block; width: 40px; height: 6px; border-radius: 3px; background: #ececea; }
.gfx-inspect .iz-chip {
  font-family: var(--mono); font-size: 8.5px; font-weight: 600;
  color: var(--green); background: rgba(15, 174, 116, 0.12);
  padding: 1px 5px; border-radius: 4px;
}
.gfx-inspect .iz-panel > * { opacity: 0; transform: translateX(-5px); }
.beat.lit .gfx-inspect .iz-panel { animation: izpop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.beat.lit .gfx-inspect .iz-panel > * { animation: izrow 0.3s ease both; }
.beat.lit .gfx-inspect .iz-sel { animation-delay: 0.22s; }
.beat.lit .gfx-inspect .iz-row { animation-delay: 0.3s; }
.beat.lit .gfx-inspect .iz-color { animation-delay: 0.38s; }
.beat.lit .gfx-inspect .iz-chip { animation-delay: 0.46s; }
@keyframes izpop { to { transform: scale(1); opacity: 1; } }
@keyframes izrow { to { opacity: 1; transform: none; } }

/* 03 fix — drag the radius slider; the selected element re-rounds live (USP) */
.gfx-edit .ed-el {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 42px;
  margin: -42px 0 0 -34px; border-radius: 2px;
  background: var(--surface); border: 1.5px solid var(--red);
  box-shadow: 0 0 0 3px var(--red-soft), var(--shadow-1);
  opacity: 0; transform: scale(0.85);
}
.ed-ctrl {
  position: absolute; left: 50%; top: 50%; margin: 20px 0 0 -58px;
  width: 116px; display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(5px);
}
.ed-label { font-family: var(--mono); font-size: 9px; color: var(--muted); font-style: normal; }
.ed-slider { position: relative; flex: 1; height: 14px; display: flex; align-items: center; }
.ed-track { width: 100%; height: 3px; border-radius: 3px; background: var(--line); }
.ed-fill { position: absolute; left: 0; height: 3px; width: 6%; border-radius: 3px; background: var(--red); }
.ed-thumb {
  position: absolute; left: 6%; top: 50%; width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red); box-shadow: var(--shadow-1);
}
.ed-tip {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  margin-bottom: 4px;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 8px; font-weight: 600;
  padding: 1px 5px; border-radius: 4px; white-space: nowrap;
}
.beat.lit .gfx-edit .ed-el { animation: eddel 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.beat.lit .ed-ctrl { animation: edctrl 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both; }
@keyframes eddel { to { opacity: 1; transform: none; } }
@keyframes edctrl { to { opacity: 1; transform: none; } }

/* 04 capture — annotated screenshot: note pin + flash + "Saved" */
.gfx-capture .cp-shot {
  position: relative; width: 94px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(8px) scale(0.95);
}
.gfx-capture .cp-img { display: block; height: 38px; border-radius: 5px; background: linear-gradient(135deg, #ffe2b8, #ffb8c9); margin-bottom: 6px; }
.gfx-capture .cp-l { display: block; height: 5px; border-radius: 3px; background: #ececea; margin-bottom: 4px; }
.gfx-capture .cp-l.short { width: 58%; margin-bottom: 0; }
.gfx-capture .cp-pin {
  position: absolute; left: 50%; top: 50%; margin: -36px 0 0 26px;
  width: 23px; height: 23px; background: var(--red); border: 2px solid #fff;
  border-radius: 50% 50% 50% 4px; box-shadow: var(--shadow-1);
  display: grid; place-items: center; opacity: 0; transform: translateY(-14px) scale(0.4);
}
.gfx-capture .cp-pin b { color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.gfx-capture .cp-flash {
  position: absolute; left: 50%; top: 50%; width: 116px; height: 92px;
  margin: -46px 0 0 -58px; border-radius: 11px; background: #fff; opacity: 0; pointer-events: none;
}
.gfx-capture .cp-saved {
  position: absolute; left: 50%; top: 50%; margin: 32px 0 0 -30px;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: #fff; background: var(--green); padding: 3px 8px; border-radius: 6px; box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(6px) scale(0.9);
}
.gfx-capture .cp-saved svg { color: #fff; }
.beat.lit .gfx-capture .cp-shot { animation: cprise 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.beat.lit .gfx-capture .cp-pin { animation: cppin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.26s both; }
.beat.lit .gfx-capture .cp-flash { animation: cpflash 0.55s ease 0.52s both; }
.beat.lit .gfx-capture .cp-saved { animation: cprise 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.74s both; }
@keyframes cprise { to { opacity: 1; transform: none; } }
@keyframes cppin { to { opacity: 1; transform: none; } }
@keyframes cpflash { 0% { opacity: 0; } 28% { opacity: 0.62; } 100% { opacity: 0; } }

/* ---------- feature grid ---------- */
.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}
.fcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.fcard:hover { border-color: #d8d7d0; box-shadow: var(--shadow-1); }
.fcard header { margin-bottom: 18px; }
.f-no {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.fcard h3 { font-size: 22px; margin: 8px 0 7px; }
.fcard header p { font-size: 14.5px; color: var(--muted); }
.fcard header p em { font-style: normal; color: var(--red-ink); font-weight: 600; }

.stage {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background-color: #fcfcfb;
  background-image: radial-gradient(rgba(23, 23, 28, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  min-height: 230px;
  overflow: hidden;
}
.stage-hint {
  position: absolute;
  right: 10px; bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  pointer-events: none;
}

/* --- F·01 hover measure --- */
.m-stage { cursor: crosshair; }
.m-items {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 26px;
  align-items: center;
  justify-items: center;
}
.m-el { transition: transform 0.15s ease; }
.m-btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 10px;
  padding: 12px 20px;
  cursor: crosshair;
}
.m-chiprow { display: flex; gap: 8px; }
.chip {
  font-size: 12px; font-weight: 500;
  background: var(--blue-soft); color: var(--blue);
  border-radius: 100px; padding: 5px 12px;
}
.m-media {
  width: 120px; height: 74px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b8e6ff, #b89cff);
}
.m-text { width: 150px; }
.m-text b { display: block; height: 11px; border-radius: 4px; background: #dcdcd8; margin-bottom: 8px; }
.m-text u { display: block; height: 7px; border-radius: 3px; background: #ececea; margin-bottom: 6px; text-decoration: none; }
.m-text u.short { width: 65%; }
.s-box {
  position: absolute; left: 0; top: 0;
  border: 1.5px solid var(--red);
  background: var(--red-soft);
  border-radius: 4px;
  pointer-events: none;
  transition: all 0.14s ease-out;
  z-index: 3;
}
.s-size {
  position: absolute;
  top: -25px; left: -1.5px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  background: var(--red); color: #fff;
  padding: 2px 8px; border-radius: 5px;
  white-space: nowrap;
}
.s-box.below .s-size { top: auto; bottom: -25px; }

/* --- F·02 spacing / drag --- */
.sp-stage { min-height: 220px; }
.sp-card {
  position: absolute;
  top: 50%;
  width: 128px; height: 112px;
  margin-top: -56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  padding: 12px;
  overflow: hidden;
}
.sp-a { left: 76px; }
.sp-b { left: 228px; }
.spc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.spc-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.spc-ico svg { width: 16px; height: 16px; }
.spc-ico-a { background: linear-gradient(135deg, #34d399, #0fae74); }
.spc-ico-b { background: linear-gradient(135deg, #6aa8ff, #2d6bff); }
.spc-trend { font: 600 10px var(--mono); padding: 2px 6px; border-radius: 999px; }
.spc-trend.up { color: var(--green); background: rgba(15, 174, 116, 0.12); }
.spc-label { font-size: 11px; color: var(--muted); margin-bottom: 3px; width: fit-content; }
.spc-value { font-family: var(--disp); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); width: fit-content; }
.sp-gap {
  position: absolute;
  top: 50%; height: 1.5px;
  background: var(--red);
  pointer-events: none;
}
.sp-gap::before, .sp-gap::after {
  content: ""; position: absolute; top: -5px; width: 1.5px; height: 12px; background: var(--red);
}
.sp-gap::before { left: 0; } .sp-gap::after { right: 0; }
.sp-label {
  position: absolute;
  left: 50%; top: -26px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: var(--red); color: #fff;
  border-radius: 6px; padding: 2px 9px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.sp-label.ok { background: var(--green); }
.sp-label.pop { animation: poplabel 0.25s ease; }
@keyframes poplabel {
  40% { transform: translateX(-50%) scale(1.18); }
}

/* --- F·01 measure: hover-size (red) + drag-spacing (blue) on one stage --- */
.ms-stage { cursor: crosshair; }
.ms-stage .sp-gap,
.ms-stage .sp-gap::before,
.ms-stage .sp-gap::after { background: var(--blue); }
.ms-stage .sp-label { background: var(--blue); }
.ms-stage .sp-label.ok { background: var(--green); }

/* --- F·04 capture: notes mock + an in-stage Capture button --- */
.cap-fab {
  position: absolute; right: 14px; bottom: 13px; z-index: 6;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 10px;
  padding: 9px 15px 9px 13px;
  font: 600 13px var(--sans);
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.cap-fab svg { width: 15px; height: 15px; fill: var(--red); }
.cap-fab:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(23, 23, 28, 0.22); }
.cap-fab:active { transform: translateY(0); }
/* captured screenshots tuck into the bottom-left as little polaroids */
.cap-tray {
  position: absolute; left: 14px; bottom: 12px; z-index: 5;
  display: flex; gap: 8px;
  pointer-events: none;
}
.cap-tray .polaroid { width: 74px; padding: 4px 4px 3px; transition: opacity 0.34s ease, transform 0.34s ease; }
.cap-tray .polaroid.cap-leaving { opacity: 0; transform: scale(0.9) translateY(8px); }
.cap-tray .polaroid .ph { height: 40px; }
.cap-tray .polaroid figcaption { font-size: 8px; padding-top: 2px; }

/* --- F·03 inspect --- */
.in-stage { cursor: crosshair; display: flex; align-items: center; justify-content: center; }
.in-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  padding: 18px 20px;
}
.in-ava {
  width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #ffb86e, #ff6e9c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.in-ava svg { width: 100%; height: 100%; display: block; }
.in-id h5 { font-family: var(--disp); font-size: 16px; letter-spacing: -0.01em; }
.in-id p { font-size: 13px; color: var(--muted); }
.in-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  background: var(--blue); color: #fff;
  border: 0; border-radius: 9px;
  padding: 9px 16px;
  margin-left: 8px;
  cursor: crosshair;
}
[data-i].i-hot { outline: 1.5px solid var(--red); outline-offset: 2px; border-radius: 4px; }
/* the real extension inspect panel — dark glass */
.in-pop {
  position: absolute;
  z-index: 4;
  width: 158px;
  background: linear-gradient(180deg, rgba(32, 32, 39, 0.97), rgba(20, 20, 27, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 8px 10px;
  pointer-events: none;
  color: #f2f2f6;
  backdrop-filter: blur(8px);
  animation: popin 0.18s cubic-bezier(0.3, 0.7, 0.2, 1);
}
@keyframes popin { from { opacity: 0; transform: translateY(6px) scale(0.97); } }
.ip-head { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.ip-av {
  width: 16px; height: 16px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 5px;
  color: #fff; font: 700 7.5px var(--mono);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}
.ip-av-control { background: linear-gradient(135deg, #ff4d6e, #e2164a); }
.ip-av-text { background: linear-gradient(135deg, #4d8dff, #2e5fe8); }
.ip-av-media { background: linear-gradient(135deg, #2ed3a0, #0fa37a); }
.ip-sel { flex: 1; min-width: 0; font: 600 11px var(--mono); color: #ff7faf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-chip { flex-shrink: 0; font: 600 8.5px var(--mono); border-radius: 999px; padding: 2px 6px; letter-spacing: 0.02em; }
.ip-chip.ok { color: #4ade80; background: rgba(74, 222, 128, 0.15); }
.ip-chip.warn { color: #fbbf24; background: rgba(251, 191, 36, 0.15); }
.in-pop .r { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; padding: 2px 0; }
.in-pop .r span { color: rgba(255, 255, 255, 0.45); }
.in-pop .r b { font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 4px; max-width: 102px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-pop .sw { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }

/* --- F·03 edit, styled as the real inspect panel (reuses .ip2-* chrome) --- */
.ed-stage { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px; min-height: 260px; }
/* the "page" — a fixed-size frame so editing the button never resizes it */
.ed-preview {
  flex: none; width: 168px; height: 92px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; box-shadow: var(--shadow-1);
}
/* the selected element — a real button */
.ed-el {
  border: 0; cursor: default;
  background: var(--ink); color: #fff;
  font: 600 18px var(--sans);
  padding: 8px 15px; border-radius: 10px;
  white-space: nowrap;
  outline: 1.5px solid var(--red); outline-offset: 3px;
  transition: font-size 0.17s ease, border-radius 0.17s ease;
}
.ed-panel {
  flex: none; width: 192px;
  background: linear-gradient(180deg, rgba(48, 47, 58, 0.98), rgba(22, 22, 30, 0.98));
  border-radius: 14px; color: #f7f5ff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  padding-bottom: 9px; overflow: hidden;
}
.ed-body { padding: 0 12px; }
.ed-body .ip2-sec-label { margin: 9px 0 8px; }
.ed-frow { display: flex; align-items: center; gap: 9px; padding: 4px 0; }
.ed-flabel { width: 58px; flex-shrink: 0; font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.ed-range { position: relative; flex: 1; height: 16px; display: flex; align-items: center; }
.ed-range::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.ed-range-fill { position: absolute; left: 0; height: 4px; border-radius: 4px; background: var(--red); }
.ed-range-thumb { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); pointer-events: none; }
.ed-range-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ed-range-val { flex-shrink: 0; font-family: var(--mono); font-size: 11px; color: #fff; display: flex; align-items: baseline; gap: 1px; min-width: 32px; justify-content: flex-end; }
.ed-range-val u { color: rgba(255, 255, 255, 0.4); text-decoration: none; font-size: 9px; }
.ed-choice { display: flex; flex: 1; gap: 3px; background: rgba(0, 0, 0, 0.2); border-radius: 7px; padding: 3px; }
.ed-ch { flex: 1; font: 600 10.5px var(--mono); color: rgba(255, 255, 255, 0.6); background: transparent; border: 0; border-radius: 5px; padding: 4px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.ed-ch.on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.ed-sw-row { display: flex; flex: 1; gap: 6px; }
.ed-sw { width: 19px; height: 19px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.2); background: var(--c); cursor: pointer; transition: transform 0.12s ease; }
.ed-sw:hover { transform: scale(1.1); }
.ed-sw.on { box-shadow: 0 0 0 2px rgba(22, 22, 30, 0.98), 0 0 0 4px var(--c); }

/* --- F·05 notes --- */
.notes-stage { cursor: copy; min-height: 260px; }
.notes-stage .stage-hint { right: 13px; left: auto; top: 12px; bottom: auto; transform: none; }
.n-mock {
  position: absolute;
  left: 22px; top: 18px;
  width: 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  padding: 14px;
  pointer-events: none;
}
.nm-cover { height: 42px; border-radius: 9px; background: linear-gradient(120deg, #bfe3ff, #e9cdff); margin-bottom: 9px; }
.nm-title { font-family: var(--disp); font-weight: 700; font-size: 15px; line-height: 1.15; color: var(--ink); margin-bottom: 2px; }
.nm-sub { font-size: 12px; line-height: 1.15; color: var(--faint); margin-bottom: 10px; }
.nm-btn {
  display: inline-block; border: 0;
  height: 28px; padding: 0 15px;
  border-radius: 8px;
  background: var(--ink); color: #fff;
  font: 600 12px var(--sans);
  cursor: default;
}
/* sticky notes — text shown upfront, like the extension */
.lnote {
  position: absolute;
  display: flex; align-items: flex-start; gap: 6px;
  max-width: 172px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 7px 9px;
  box-shadow: var(--shadow-2);
  font-size: 11.5px; line-height: 1.4; color: var(--ink);
  cursor: grab;
  z-index: 4;
  animation: notepop 0.3s cubic-bezier(0.34, 1.5, 0.64, 1);
}
@keyframes notepop { from { opacity: 0; transform: scale(0.9); } }
.lnote-num {
  flex-shrink: 0; margin-top: 1px;
  width: 15px; height: 15px;
  border-radius: 50% 50% 50% 3px;
  background: var(--red); color: #fff;
  font: 600 9px var(--mono);
  display: grid; place-items: center;
}
.lnote-text { min-width: 0; }
.ln-del {
  position: absolute; top: -8px; right: -8px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted); cursor: pointer;
  font-size: 13px; line-height: 1; font-weight: 600;
  box-shadow: var(--shadow-1);
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.13s ease, transform 0.13s ease, color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.lnote:hover .ln-del { opacity: 1; transform: none; }
.ln-del:hover { color: #fff; background: var(--red); border-color: var(--red); }
/* the dot marks the exact spot; the bubble floats free */
.lnote-dot {
  position: absolute;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--red); border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-1);
  z-index: 3;
  animation: notepop 0.3s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.note-edit {
  position: absolute;
  z-index: 5;
}
.note-edit input {
  font-family: var(--sans); font-size: 12px;
  border: 1.5px solid var(--red);
  border-radius: 9px;
  padding: 7px 11px;
  width: 180px;
  outline: none;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

/* --- F·06 screenshot --- */
.shot-stage { min-height: 250px; }
.shot-mock {
  position: absolute;
  left: 26px; top: 50%;
  transform: translateY(-50%);
}
.sm-card {
  width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  padding: 11px;
}
.sm-cover { height: 78px; border-radius: 8px; background: linear-gradient(135deg, #6ee7d8, #6e8bff); margin-bottom: 9px; }
.sm-line { height: 8px; border-radius: 4px; background: #ececea; margin-bottom: 6px; }
.sm-line.short { width: 55%; margin-bottom: 10px; }
.sm-btn {
  display: inline-block;
  font-size: 11.5px; font-weight: 600;
  background: var(--ink); color: #fff;
  border-radius: 7px;
  padding: 6px 14px;
}
.deco-box {
  position: absolute;
  inset: -7px -7px auto -7px;
  height: calc(100% + 14px);
  border: 1.5px solid var(--red);
  border-radius: 6px;
  background: transparent;
  pointer-events: none;
}
.deco-box span {
  position: absolute; top: -24px; left: -1.5px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: var(--red); color: #fff;
  border-radius: 5px; padding: 1px 7px;
}
.deco-gap {
  position: absolute;
  left: calc(100% + 7px);
  top: 50%;
  width: 36px; height: 1.5px;
  background: var(--blue);
  pointer-events: none;
}
.deco-gap span {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  background: var(--blue); color: #fff;
  border-radius: 5px; padding: 1px 6px;
}
#shot-btn { position: absolute; right: 18px; top: 18px; }
.shot-flash {
  position: absolute; inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}
.shot-flash.go { animation: flash 0.5s ease; }
@keyframes flash { 12% { opacity: 0.95; } 100% { opacity: 0; } }
.shot-tray {
  position: absolute;
  right: 16px; bottom: 14px;
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
}
.polaroid {
  width: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-2);
  padding: 5px 5px 4px;
  animation: polin 0.5s cubic-bezier(0.34, 1.45, 0.64, 1);
  rotate: var(--rot, -3deg);
}
@keyframes polin {
  from { transform: translateY(-50px) scale(1.6); opacity: 0; }
}
.polaroid .ph {
  height: 58px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #fcfcfb;
}
.polaroid .ph > div { transform-origin: top left; position: absolute; }
.polaroid figcaption {
  font-family: var(--mono); font-size: 9px; color: var(--faint);
  text-align: center; padding-top: 3px;
}

/* ---------- spec block ---------- */
.spec {
  max-width: 640px;
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.spec-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f4;
}
.spec-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #e2e1db; }
.spec-bar span {
  margin-left: 8px; flex: 1;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
/* format tabs, seated in the window chrome */
.spec-tabs { display: flex; gap: 3px; margin-left: 10px; flex: 1; }
.spec-tab {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  padding: 4px 11px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.spec-tab:hover { color: var(--ink); }
.spec-tab.on {
  color: var(--red-ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}
.copy-btn {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.copy-btn:hover { color: var(--ink); border-color: var(--ink); }
.copy-btn.done { color: var(--green); border-color: var(--green); }
.spec pre {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2.05;
  padding: 22px 26px;
  overflow-x: auto;
}
/* one pane visible at a time, gentle entrance on switch */
.spec-pane { display: none; }
.spec-pane.on { display: block; animation: spec-in 0.26s ease both; }
@keyframes spec-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
.spec .k { color: var(--faint); }
.spec .v { color: var(--ink); font-weight: 500; }
.spec .a { color: var(--red-ink); font-weight: 600; }
.spec .ok { color: var(--green); font-weight: 600; }
.spec .sw { width: 12px; height: 12px; }
/* CSS pane syntax */
.spec .cm  { color: var(--faint); font-style: italic; }
.spec .sel { color: var(--red-ink); font-weight: 600; }
.spec .pr  { color: var(--muted); }
/* Changes pane — unified diff */
.spec .dm  { color: var(--red-ink); font-weight: 700; }
.spec .dp  { color: var(--green); font-weight: 700; }
.spec .del { color: var(--red-ink); text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: 0.72; }
.spec .add { color: var(--green); font-weight: 600; }
/* destinations caption */
.spec-dest {
  margin-top: 18px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.01em;
}
.spec-dest .arr { color: var(--red-ink); font-weight: 700; margin-right: 4px; }

/* ---------- 03 · the inspect-panel showcase ---------- */
/* one page surface holding the element + its floating panel */
.ipx {
  margin-top: 48px; position: relative;
  border: 1px solid var(--line); border-radius: 20px;
  background-color: #fcfcfb;
  background-image: radial-gradient(rgba(23, 23, 28, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: var(--shadow-1);
  padding: 46px 40px; overflow: hidden;
}
.ipx-scene { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ipx-stage { position: relative; flex-shrink: 0; }
.ipx-el {
  position: relative; z-index: 1; width: 280px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; box-shadow: var(--shadow-2); padding: 28px;
  transition: background 0.3s ease;
}
.ipx-el-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: #fff; background: var(--red); padding: 2px 9px; border-radius: 6px; margin-bottom: 14px;
}
.ipx-el h4 { font-family: var(--disp); font-size: 22px; margin-bottom: 8px; }
.ipx-el p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.ipx-el-cta {
  display: inline-block; font-size: 13px; font-weight: 600;
  background: var(--ink); color: #fff; border-radius: 9px; padding: 9px 18px;
}
.ipx-sel {
  position: absolute; inset: -8px; border: 1.5px solid var(--red); border-radius: 8px;
  pointer-events: none; transition: inset 0.4s cubic-bezier(0.3, 0.7, 0.2, 1);
  animation: ipx-selpulse 2.6s ease-in-out infinite;
}
@keyframes ipx-selpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 138, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(255, 61, 138, 0); }
}
/* corner brackets — measurement crop marks on the selection */
.ipx-cn { position: absolute; width: 9px; height: 9px; border: 2px solid var(--red); }
.ipx-cn.tl { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 3px; }
.ipx-cn.tr { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 3px; }
.ipx-cn.bl { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 3px; }
.ipx-cn.br { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 3px; }
.ipx-sel-tag {
  position: absolute; left: -1.5px; top: -23px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: #fff; background: var(--red); padding: 1px 7px; border-radius: 5px; white-space: nowrap;
}
.ipx-sel-size {
  position: absolute; right: -1.5px; bottom: -23px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: #fff; background: var(--red); padding: 1px 7px; border-radius: 5px; white-space: nowrap;
}
.ipx-callout {
  position: absolute; left: 22px; bottom: 18px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 11px; box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(5px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.ipx-callout.show { opacity: 1; transform: none; }
.ipx-callout b { color: var(--red-ink); }

/* the inspect panel — faithful dark glass, floating right beside the element */
.ip2 {
  position: relative; flex-shrink: 0; width: 338px;
  background: linear-gradient(180deg, rgba(48, 47, 58, 0.98), rgba(22, 22, 30, 0.98));
  border-radius: 16px; color: #f7f5ff; font-size: 11px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  padding-bottom: 6px; overflow: hidden;
}
/* the live wire — the panel plugged into the element */
.ipx-wire { flex-shrink: 0; align-self: center; width: 60px; display: flex; align-items: center; gap: 4px; }
.ipx-wire-node {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0;
  animation: ipx-nodepulse 1.5s ease-in-out infinite;
}
.ipx-wire-line {
  position: relative; flex: 1; height: 2px; border-radius: 2px;
  background-image: linear-gradient(90deg, var(--red) 45%, transparent 45%);
  background-size: 9px 2px;
  animation: ipx-wireflow 0.55s linear infinite;
}
.ipx-wire-line::after {
  content: ""; position: absolute; top: 50%; margin-top: -3px; left: 0;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 9px 1px rgba(255, 61, 138, 0.7);
  animation: ipx-wiredot 1.5s ease-in-out infinite;
}
@keyframes ipx-wireflow { to { background-position: -9px 0; } }
@keyframes ipx-wiredot { 0% { left: 100%; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes ipx-nodepulse { 0%, 100% { box-shadow: 0 0 0 2px var(--red-soft); } 50% { box-shadow: 0 0 0 5px rgba(255, 61, 138, 0); } }
.ip2-bar { position: relative; display: flex; align-items: center; padding: 9px 12px 7px; }
.ip2-grip { width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.ip2-kicker {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.6);
}
.ip2-x {
  margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 6px; border: 0; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7);
}
.ip2-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ip2-summary { display: flex; align-items: center; gap: 10px; padding: 4px 12px 11px; }
.ip2-av { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 61, 138, 0.18); color: var(--red); }
.ip2-av svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ip2-head { flex: 1; min-width: 0; }
.ip2-name { font-family: var(--disp); font-size: 14px; font-weight: 600; color: #fff; }
.ip2-sub { font-family: var(--mono); font-size: 10.5px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip2-walk { display: flex; gap: 3px; }
.ip2-walkbtn {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ip2-walkbtn.on { background: var(--red); border-color: var(--red); color: #fff; }
.ip2-walkbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ip2-metrics { display: flex; margin: 0 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 9px; overflow: hidden; background: rgba(0, 0, 0, 0.18); }
.ip2-metrics span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; }
.ip2-metrics span + span { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.ip2-metrics b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: #fff; }
.ip2-metrics small { font-size: 8.5px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.05em; }
.ip2-a11y { display: flex; gap: 6px; padding: 10px 12px 4px; }
.ip2-chip { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.ip2-chip.ok { color: #6ee7b0; background: rgba(15, 174, 116, 0.18); }
.ip2-chip.warn { color: #ffb27a; background: rgba(255, 150, 60, 0.18); }
.ip2-tabs { display: flex; gap: 3px; margin: 8px 12px 0; background: rgba(0, 0, 0, 0.2); border-radius: 9px; padding: 3px; }
.ip2-tab { flex: 1; font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.6); background: transparent; border: 0; border-radius: 7px; padding: 6px; cursor: pointer; transition: all 0.15s ease; }
.ip2-tab.on { color: #fff; background: rgba(255, 255, 255, 0.13); }
.ip2-pane { display: none; padding: 4px 12px 0; }
.ip2-pane.on { display: block; animation: ip2fade 0.25s ease; }
@keyframes ip2fade { from { opacity: 0; transform: translateY(3px); } }
.ip2-sec { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ip2-sec:last-child { border-bottom: 0; }
.ip2-sec-label { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 8px; }
.ip2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ip2-field { display: flex; flex-direction: column; gap: 3px; }
.ip2-field.ip2-wide { grid-column: 1 / -1; }
.ip2-field > span { font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.ip2-input { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.5px; font-style: normal; color: #fff; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; padding: 5px 9px; }
.ip2-input u { color: rgba(255, 255, 255, 0.4); text-decoration: none; }
.ip2-input em { font-style: normal; }
.ip2-input.ip2-choice::after { content: "▾"; margin-left: auto; color: rgba(255, 255, 255, 0.5); }
.ip2-sw { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.25); background: #fff; }
.ip2-rangefield { flex-direction: row; align-items: center; gap: 9px; }
.ip2-rangefield > span { flex-shrink: 0; }
.ip2-range { position: relative; flex: 1; height: 16px; display: flex; align-items: center; }
.ip2-range::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.ip2-range-fill { position: absolute; left: 0; height: 4px; border-radius: 4px; background: var(--red); width: 8%; }
.ip2-range-thumb { position: absolute; left: 8%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.ip2-range-val { flex-shrink: 0; font-family: var(--mono); font-size: 11.5px; font-style: normal; color: #fff; display: flex; align-items: baseline; gap: 1px; min-width: 30px; justify-content: flex-end; }
.ip2-range-val u { color: rgba(255, 255, 255, 0.4); text-decoration: none; font-size: 9px; }
.ip2-css { position: relative; font-family: var(--mono); font-size: 11.5px; line-height: 1.65; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 9px 11px; min-height: 62px; color: #f7f5ff; white-space: pre-wrap; word-break: break-word; }
.ip2-css .pp { color: #9db4ff; }
.ip2-css .vv { color: #ffd479; }
.ip2-caret { display: inline-block; width: 1.5px; height: 13px; background: var(--red); vertical-align: -2px; margin-left: 1px; animation: ip2blink 1s steps(1) infinite; }
@keyframes ip2blink { 50% { opacity: 0; } }
.ip2-ac { margin-top: 4px; background: rgba(30, 30, 40, 0.98); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; padding: 4px; box-shadow: var(--shadow-2); font-family: var(--mono); font-size: 11px; }
.ip2-ac div { padding: 4px 8px; border-radius: 5px; color: rgba(255, 255, 255, 0.7); }
.ip2-ac div.sel { background: var(--red); color: #fff; }
.ip2-note { font-size: 9.5px; color: rgba(255, 255, 255, 0.4); margin-top: 6px; }
.ip2-changes { margin-top: 10px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 8px 10px; }
.ip2-changes-title { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 5px; }
.ip2-changes-body { font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.ip2-changes-body .ch { color: #6ee7b0; }
.ip2-actions { padding: 10px 12px 4px; }
.ip2-actions button { width: 100%; font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; padding: 8px; }
@media (max-width: 880px) {
  .ipx { padding: 40px 22px; }
  .ipx-scene { flex-direction: column; gap: 44px; }
  .ip2 { width: 100%; max-width: 338px; }
  .ip2::before { display: none; }
}

/* ---------- 03 · live inspect & edit (the hero demo) ---------- */
@media (max-width: 1080px) { .sec { padding-top: 136px; } }

.ie-demo { margin-top: 24px; --ie-eo: cubic-bezier(.23, 1, .32, 1); }
.ie-frame { position: relative; width: 100%; }
.ie-stage {
  position: absolute; left: 50%; top: 0; width: 1000px; height: 520px;
  transform: translateX(-50%) scale(var(--ie-s, 1)); transform-origin: top center;
  border-radius: 22px;
  background: transparent;
}
.ie-glow { position: absolute; border-radius: 50%; filter: blur(64px); z-index: 0; pointer-events: none; }
.ie-glow.g1 { width: 440px; height: 440px; left: -90px; top: -70px; background: radial-gradient(circle, rgba(255,61,138,.10), transparent 70%); animation: ie-drift1 26s ease-in-out infinite alternate; }
.ie-glow.g2 { width: 500px; height: 500px; right: -110px; bottom: -90px; background: radial-gradient(circle, rgba(123,92,255,.05), transparent 70%); animation: ie-drift2 31s ease-in-out infinite alternate; }
.ie-glow.g3 { width: 360px; height: 360px; left: 42%; top: 30%; background: radial-gradient(circle, rgba(255,61,138,.04), transparent 70%); animation: ie-drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes ie-drift1 { to { transform: translate(70px, 46px) scale(1.16); } }
@keyframes ie-drift2 { to { transform: translate(-56px, -34px) scale(1.12); } }

/* the page element: a pricing card */
.ie-card { position: absolute; z-index: 2; left: 74px; top: 50%; transform: translateY(-50%); width: 362px; background: var(--surface);
  border-radius: 4px; padding: 22px; box-shadow: 0 1px 0 rgba(23,23,28,.04), 0 30px 60px -28px rgba(23,23,28,.5);
  font-family: var(--sans); will-change: padding, border-radius; }
.ie-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.ie-card-tag { font: 700 10px/1 var(--mono); letter-spacing: .14em; color: var(--red-ink); background: rgba(255,61,138,.12); padding: 6px 10px; border-radius: 7px; }
.ie-card-badge { font: 600 10.5px/1 var(--sans); color: var(--muted); background: #f1f0eb; padding: 6px 11px; border-radius: 20px; }
.ie-card-h { font-family: var(--disp); font-weight: 700; font-size: 21px; line-height: 1.08; margin: 0 0 8px; color: var(--ink); letter-spacing: -.015em; }
.ie-card-price { display: flex; align-items: baseline; gap: 5px; margin: 0 0 13px; }
.ie-card-price b { font-family: var(--disp); font-weight: 700; font-size: 30px; color: var(--ink); letter-spacing: -.02em; }
.ie-card-price span { font-size: 13px; color: var(--faint); font-weight: 500; }
.ie-card-p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.ie-card-feats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ie-card-feats li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.ie-card-feats svg { width: 17px; height: 17px; flex: none; }
.ie-card-cta { display: block; text-align: center; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; padding: 12px; border-radius: 10px; }

.ie-sel { position: absolute; z-index: 24; left: 0; top: 0; width: 10px; height: 10px; pointer-events: none; opacity: 0; border: 1.5px solid var(--red); border-radius: 5px; }
.ie-sel.show { opacity: 1; }
.ie-sel-tag { position: absolute; left: -1.5px; top: -23px; font: 600 11px/1 var(--mono); white-space: nowrap; background: var(--red); color: #fff; padding: 5px 8px; border-radius: 6px 6px 6px 0; }
.ie-sel-size { position: absolute; right: -1.5px; top: -23px; font: 600 10.5px/1 var(--mono); white-space: nowrap; background: var(--ink); color: #fff; padding: 5px 7px; border-radius: 6px 6px 0 6px; }
.ie-sel i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--red); border-radius: 50%; }
.ie-sel .tl { left: -4px; top: -4px; } .ie-sel .tr { right: -4px; top: -4px; } .ie-sel .bl { left: -4px; bottom: -4px; } .ie-sel .br { right: -4px; bottom: -4px; }

.ie-hud { position: absolute; z-index: 23; pointer-events: none; opacity: 0; font: 600 11px/1 var(--mono); color: #fff; background: var(--red); padding: 6px 9px; border-radius: 8px; transform: translateY(4px); }

.ie-wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 22; opacity: 0; }
.ie-wire path { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .55; animation: ie-wire-flow .5s linear infinite; }
.ie-wire circle { fill: var(--red); animation: ie-wire-dot 1.6s ease-in-out infinite; }
@keyframes ie-wire-flow { to { stroke-dashoffset: -7; } }
@keyframes ie-wire-dot { 0%, 100% { opacity: .9; } 50% { opacity: .4; } }

.ie-panel { position: absolute; left: 560px; top: 50%; transform: translateY(-50%); width: 346px; z-index: 30; border-radius: 16px; color: #f7f5ff; font-family: var(--sans);
  background: linear-gradient(180deg, rgba(48,47,58,.93), rgba(20,20,28,.92));
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12) inset, 0 1px 0 rgba(255,255,255,.1) inset;
  opacity: 0; transform-origin: 18% 100%; overflow: hidden; }
.ie-p-bar { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ie-p-grip { width: 26px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.22); }
.ie-p-kick { font: 700 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: rgba(247,245,255,.62); }
.ie-p-x { margin-left: auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; color: rgba(255,255,255,.4); }
.ie-p-x svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.ie-p-sum { display: flex; align-items: center; gap: 11px; padding: 13px 14px 12px; }
.ie-p-av { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(255,61,138,.16); color: var(--red); }
.ie-p-av svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.ie-p-id { min-width: 0; flex: 1; }
.ie-p-name { font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; }
.ie-p-sub { font: 500 11.5px/1.3 var(--mono); color: rgba(247,245,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-p-walk { display: flex; gap: 5px; }
.ie-p-wb { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); transition: background .15s, color .15s; }
.ie-p-wb svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }
.ie-p-wb.hit { background: var(--red); color: #fff; }
.ie-p-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 0 14px 12px; }
.ie-p-metrics span { background: rgba(255,255,255,.05); border-radius: 9px; padding: 8px 6px; text-align: center; }
.ie-p-metrics b { display: block; font: 600 14px/1 var(--mono); }
.ie-p-metrics small { display: block; margin-top: 3px; font: 600 8.5px/1 var(--mono); letter-spacing: .1em; color: rgba(247,245,255,.4); }
.ie-p-chiprow { padding: 0 14px 12px; }
.ie-p-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--mono); padding: 6px 9px; border-radius: 20px; background: rgba(46,204,140,.14); color: #46e0a0; }
.ie-p-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ie-p-tabs { display: flex; gap: 5px; padding: 0 14px 12px; }
.ie-p-tab { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 9px; border-radius: 9px; color: rgba(247,245,255,.55); background: rgba(255,255,255,.05); transition: background .15s, color .15s; }
.ie-p-tab.on { background: rgba(255,255,255,.14); color: #fff; }
.ie-p-pane { padding: 0 14px 14px; }
.ie-p-sec { margin-bottom: 14px; }
.ie-p-sec-l { font: 700 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(247,245,255,.4); margin-bottom: 10px; }
.ie-p-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-bottom: 10px; }
.ie-p-field > span { font-size: 12px; color: rgba(247,245,255,.62); }
.ie-p-val { display: inline-flex; align-items: center; gap: 3px; background: rgba(0,0,0,.26); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 8px 11px; min-width: 78px; justify-content: flex-end; transition: border-color .15s, box-shadow .15s; }
.ie-p-val b { font: 600 13px/1 var(--mono); }
.ie-p-val u { font: 600 9px/1 var(--mono); text-decoration: none; color: rgba(247,245,255,.42); }
.ie-p-val.lit { border-color: rgba(255,61,138,.6); box-shadow: 0 0 0 3px rgba(255,61,138,.14); }
.ie-p-rangewrap { grid-column: 1/-1; display: flex; align-items: center; gap: 12px; }
.ie-p-rangewrap > span { font-size: 12px; color: rgba(247,245,255,.62); white-space: nowrap; }
.ie-p-range { position: relative; flex: 1; height: 5px; border-radius: 5px; background: rgba(255,255,255,.13); }
.ie-p-range-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 5px; background: var(--red); width: 8%; }
.ie-p-range-thumb { position: absolute; top: 50%; left: 8%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.ie-p-range.lit .ie-p-range-thumb { box-shadow: 0 0 0 5px rgba(255,61,138,.18), 0 1px 4px rgba(0,0,0,.4); }
.ie-p-ta { width: 100%; min-height: 54px; resize: none; background: rgba(0,0,0,.26); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: #fff; font: 500 13px/1.45 var(--sans); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.ie-p-ta.lit { border-color: rgba(255,61,138,.6); box-shadow: 0 0 0 3px rgba(255,61,138,.14); }
.ie-p-note { font-size: 10px; color: rgba(247,245,255,.4); margin: 8px 1px 0; }
.ie-p-btns { display: flex; gap: 7px; margin-top: 9px; }
.ie-p-btns button { flex: 1; font-size: 11.5px; font-weight: 600; color: #f7f5ff; padding: 9px; border-radius: 8px; background: rgba(255,255,255,.07); border: 0; font-family: var(--sans); }
.ie-p-css { background: rgba(0,0,0,.3); border: 1px solid transparent; border-radius: 9px; padding: 11px 12px; font: 500 11.5px/1.65 var(--mono); color: #cfcce0; min-height: 64px; white-space: pre-wrap; word-break: break-word; transition: border-color .15s, box-shadow .15s; }
.ie-p-css.lit { border-color: rgba(255,61,138,.45); box-shadow: 0 0 0 3px rgba(255,61,138,.12); }
.ie-p-css .tok-p { color: #ff85b6; } .ie-p-css .tok-v { color: #9ad8ff; } .ie-p-css .tok-f { color: #c7b6ff; }
.ie-p-caret { display: inline-block; width: 1.5px; height: 13px; background: var(--red); vertical-align: -2px; margin-left: 1px; animation: ie-bl 1s steps(1) infinite; }
@keyframes ie-bl { 50% { opacity: 0; } }
.ie-p-changes { margin-top: 11px; font-size: 10.5px; color: rgba(247,245,255,.5); display: flex; align-items: center; gap: 6px; }
.ie-p-changes b { font: 600 10px/1 var(--mono); background: rgba(255,61,138,.16); color: #ff9ec4; padding: 3px 6px; border-radius: 5px; }

.ie-cursor { position: absolute; left: 0; top: 0; width: 25px; height: 25px; z-index: 60; pointer-events: none; will-change: transform; }
.ie-cursor-in { width: 100%; height: 100%; transform-origin: 5px 4px; transition: transform .14s var(--ie-eo); }
.ie-cursor.press .ie-cursor-in { transform: scale(.8) translate(1px, 1.5px); }
.ie-cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 5px rgba(0,0,0,.32)); }
.ie-ripple { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid var(--red); background: rgba(255,61,138,.12); z-index: 59; pointer-events: none; transform: scale(.45); opacity: .85; }
.ie-ripple.go { transition: transform .5s var(--ie-eo), opacity .5s var(--ie-eo); transform: scale(2); opacity: 0; }

.ie-replay { position: absolute; right: 14px; bottom: 12px; z-index: 70; width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; opacity: 0; transition: opacity .3s, color .15s ease, border-color .15s ease; }
.ie-replay svg { width: 15px; height: 15px; display: block; }
.ie-replay:hover { color: var(--red-ink); border-color: var(--red); }
.ie-stage:hover .ie-replay { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ie-glow, .ie-cap::before, .ie-wire path, .ie-wire circle { animation: none !important; }
  .ie-cursor, .ie-ripple { display: none !important; }
}
@media (max-width: 560px) {
  .ipx-el { width: 100%; max-width: 280px; }
}

/* ---------- who ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.who-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.who-card svg { width: 26px; height: 26px; color: var(--red); margin-bottom: 16px; }
.who-card h3 { font-size: 17px; margin-bottom: 8px; }
.who-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- faq ---------- */
.faq { margin-top: 40px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: 0;
  font-family: var(--disp);
  font-size: 18px; font-weight: 500;
  text-align: left;
  color: var(--ink);
  padding: 22px 4px;
  cursor: pointer;
}
.faq-q:hover { color: var(--red-ink); }
.faq-x {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.faq-x::after { transform: rotate(90deg); }
.faq-item.open .faq-x::after { transform: rotate(0deg); }
.faq-item.open .faq-x::before { transform: rotate(180deg); }
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.faq-body > div { overflow: hidden; }
.faq-body p { color: var(--muted); font-size: 15px; padding: 0 4px 22px; max-width: 600px; }
.faq-item.open .faq-body { grid-template-rows: 1fr; }

/* ---------- final CTA ---------- */
.cta-final {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 188px 32px 150px;
}
.cta-final h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  margin-bottom: 20px;
}
.cta-final .accent {
  color: var(--red-ink);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 9px;
  text-decoration-color: rgba(255, 61, 138, 0.5);
}
.cta-final > p { color: var(--muted); font-size: 18px; margin-bottom: 34px; }
.cta-final > .cta-small {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- buy me a coffee ---------- */
.coffee-sec { padding-top: 64px; padding-bottom: 116px; }
.coffee { max-width: 820px; margin: 0 auto; }
.coffee-card {
  position: relative;
  padding: 40px 44px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-2);
  text-align: center;
  overflow: hidden;
}
/* solid surface with a soft pink ambient glow from the top (on-theme accent) */
.coffee-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(130% 80% at 50% -18%, var(--red-soft) 0%, transparent 60%);
}
.coffee-card > * { position: relative; z-index: 1; }
.coffee-head {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; margin-bottom: 22px;
}
.coffee-headings { text-align: left; }
.coffee-head .eyebrow { margin-bottom: 7px; text-transform: none; letter-spacing: 0.05em; }
.coffee-head h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.16; }
.coffee-art { position: relative; width: 76px; height: 76px; flex: none; }
.coffee-cup { width: 76px; height: 76px; overflow: visible; }
.cup-steam path {
  transform-box: fill-box; transform-origin: bottom center;
  opacity: 0; animation: coffee-steam 3s ease-in-out infinite;
}
.cup-steam path:nth-child(1) { animation-delay: 0s; }
.cup-steam path:nth-child(2) { animation-delay: 1s; }
.cup-steam path:nth-child(3) { animation-delay: 2s; }
@keyframes coffee-steam {
  0%   { opacity: 0; transform: translateY(4px) scaleY(0.6); }
  25%  { opacity: 0.7; }
  60%  { opacity: 0.45; }
  100% { opacity: 0; transform: translateY(-7px) scaleY(1.3); }
}
.coffee-sub { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0 auto 26px; max-width: 440px; }
.btn-cup { flex: none; }
/* phones: stack the cup above the heading so nothing gets cramped */
@media (max-width: 560px) {
  .coffee-card { padding: 32px 22px 34px; border-radius: 20px; }
  .coffee-head { flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .coffee-headings { text-align: center; }
  .coffee-head h2 { font-size: 24px; }
  .coffee-art, .coffee-cup { width: 64px; height: 64px; }
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo.small { font-size: 15px; }
.foot-note { color: var(--faint); font-size: 13px; margin-left: auto; }
.foot-by {
  color: var(--red-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(224, 24, 111, 0.4);
  transition: text-decoration-color .15s ease;
}
.foot-by:hover { text-decoration-color: var(--red-ink); }
.foot-heart { width: 12px; height: 12px; fill: var(--red); vertical-align: -2px; margin: 0 1px; transform-origin: center; animation: foot-beat 3s ease-in-out infinite; }
@keyframes foot-beat {
  0%, 60%, 100% { transform: scale(1); }
  20% { transform: scale(1.12); }
  33% { transform: scale(1.05); }
  46% { transform: scale(1.09); }
}
.foot-egg {
  margin-left: auto;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- page-wide measure mode ---------- */
body.measuring, body.measuring * { cursor: crosshair !important; }
body.measuring { user-select: none; -webkit-user-select: none; }
#mm { position: fixed; inset: 0; z-index: 990; pointer-events: none; }
.mm-cross { position: fixed; background: rgba(255, 61, 138, 0.5); }
.mm-cx { top: 0; bottom: 0; width: 1px; }
.mm-cy { left: 0; right: 0; height: 1px; }
.mm-coords {
  position: fixed;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--red-ink);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid rgba(255, 61, 138, 0.35);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}
.mm-box {
  position: fixed;
  left: 0; top: 0;
  border: 1.5px solid var(--red);
  background: var(--red-soft);
  border-radius: 2px;
}
.mm-box.mm-lock { border-color: var(--blue); background: var(--blue-soft); border-style: solid; }
.mm-size {
  position: absolute;
  top: -26px; left: -1.5px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: var(--red); color: #fff;
  padding: 2px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.mm-box.low .mm-size { top: 3px; left: 3px; }
.mm-lock .mm-size { background: var(--blue); }
.mm-gap { position: fixed; background: var(--red); }
.mm-gh { height: 1.5px; }
.mm-gv { width: 1.5px; }
.mm-gh::before, .mm-gh::after { content: ""; position: absolute; top: -5px; width: 1.5px; height: 12px; background: inherit; }
.mm-gh::before { left: 0; } .mm-gh::after { right: 0; }
.mm-gv::before, .mm-gv::after { content: ""; position: absolute; left: -5px; height: 1.5px; width: 12px; background: inherit; }
.mm-gv::before { top: 0; } .mm-gv::after { bottom: 0; }
.mm-gap span {
  position: absolute;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  background: var(--red); color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.mm-gh span { left: 50%; top: -13px; transform: translate(-50%, -50%); }
.mm-gv span { top: 50%; left: 13px; transform: translateY(-50%); }
/* compact inspect chip — live tag · font · colour next to the hover box */
.mm-chip {
  position: fixed; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 9px;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mm-chip-tag { color: var(--red-ink); }
.mm-chip-mut { color: var(--muted); font-weight: 500; }
.mm-chip-sep { color: var(--faint); }
.mm-chip-sw { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.15); display: inline-block; flex: none; }
.mm-chip-hex { letter-spacing: 0.02em; }

/* ---------- toasts ---------- */
#toast-wrap {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 500;
  background: var(--ink); color: #fff;
  border-radius: 100px;
  padding: 10px 20px;
  box-shadow: var(--shadow-2);
  animation: toastin 0.35s cubic-bezier(0.34, 1.45, 0.64, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.toast.bye { opacity: 0; transform: translateY(8px); }
.toast kbd { background: rgba(255, 255, 255, 0.14); border-color: transparent; color: #fff; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(0.95); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .flow-beats { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .flow-rail { display: none; }
  .beat { opacity: 1; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --ruler: 0px; }
  .ruler, .ruler-corner { display: none; }
  .nav { width: calc(100% - 24px); top: 10px; gap: 14px; padding-left: 14px; }
  .hero { padding-top: 120px; }
  .dim-right { right: -24px; }
  .dim-top { bottom: -28px; }
  .fgrid { grid-template-columns: 1fr; }
  .b-hero { flex-direction: column; }
  .b-card { width: 100%; }
  .foot-egg { margin-left: 0; }
}
@media (max-width: 560px) {
  .flow-beats { grid-template-columns: 1fr; gap: 26px; }
  .who-grid { grid-template-columns: 1fr; }
  .sec { padding-top: 104px; }
  .hero-h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .dim-right { display: none; }
}
@media (pointer: coarse) {
  #try-btn, .kbd-hint, .foot-egg, [data-measure] { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .foot-heart { animation: none; }
  .b-ext { animation: none; }
  .beat { opacity: 1; }
  .flow-dot { left: 100%; }
  .flow-rail::before { transform: scaleX(1); }
  .gfx-measure .mz-frame { clip-path: inset(0 0 0 0); }
  .gfx-measure .mz-badge, .gfx-measure .mz-gap { opacity: 1; transform: none; }
  .gfx-inspect .iz-panel, .gfx-inspect .iz-panel > * { opacity: 1; transform: none; }
  .gfx-edit .ed-el, .ed-ctrl { opacity: 1; transform: none; }
  .gfx-edit .ed-el { border-radius: 14px; }
  .gfx-capture .cp-shot, .gfx-capture .cp-pin, .gfx-capture .cp-saved { opacity: 1; transform: none; }
  .gfx-capture .cp-flash { display: none; }
  .cup-steam path { animation: none !important; opacity: 0.55; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 03 · live-CSS autocomplete dropdown + supporting caption */
.ie-ac { position: absolute; z-index: 45; min-width: 154px; padding: 5px; border-radius: 9px; display: none;
  background: rgba(26, 26, 36, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1) inset; }
.ie-ac-item { font: 500 11.5px/1 var(--mono); color: rgba(247,245,255,.6); padding: 7px 9px; border-radius: 6px; white-space: nowrap; }
.ie-ac-item .mt { color: #fff; }
.ie-ac-item.sel { background: rgba(255,61,138,.22); color: #fff; }
.ie-cap { position: absolute; z-index: 28; left: 50%; top: 30px; padding-left: 30px; white-space: nowrap;
  font: 700 31px/1.12 var(--disp); letter-spacing: -.022em; color: var(--ink); pointer-events: none;
  text-shadow: 0 1px 1px rgba(248,246,240,.9);
  opacity: 0; transform: translateX(-50%) translateY(-8px); transition: opacity .34s var(--ie-eo), transform .34s var(--ie-eo); }
.ie-cap.in { opacity: 1; transform: translateX(-50%) translateY(0); }
.ie-cap::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--red); animation: ie-cap-pulse 2s ease-in-out infinite; }
@keyframes ie-cap-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,61,138,.5); } 65% { box-shadow: 0 0 0 10px rgba(255,61,138,0); } }
.ie-cap b { color: var(--red-ink); font-weight: 700; }
.ie-cap .k { color: var(--red-ink); font-weight: 700; }

/* floating contextual notes — pop up next to the change being made */
.ie-note { position: absolute; z-index: 50; left: 0; top: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 11px;
  background: #3c3c49; border: 1px solid rgba(255,255,255,.15); border-radius: 11px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.4);
  font: 600 14px/1 var(--sans); letter-spacing: -.01em; color: #f2f2f6; white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(.93); transform-origin: 50% 135%;
  transition: opacity .26s var(--ie-eo), transform .34s var(--ie-eo); }
.ie-note.in { opacity: 1; transform: translateY(0) scale(1); }
.ie-note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 3px rgba(255,61,138,.16); }
.ie-note b { color: #ff9ec4; font-weight: 700; }
.ie-note::after { content: ''; position: absolute; left: var(--caret, 50%); bottom: -4px; margin-left: -5px; width: 10px; height: 10px;
  background: #3c3c49; border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); transform: rotate(45deg); border-bottom-right-radius: 2px; }
/* side mode — note floats to the left of the control, caret points right at it */
.ie-note.side { transform-origin: 108% 50%; transform: scale(.9); }
.ie-note.side.in { transform: scale(1); }
.ie-note.side::after { left: auto; margin-left: 0; bottom: auto; right: -4px; top: var(--caret-y, 50%); margin-top: -5px;
  border-bottom: 0; border-top: 1px solid rgba(255,255,255,.15); border-top-right-radius: 2px; border-bottom-right-radius: 0; }
