/* ============================================================
   Homebuilder Review — shared stylesheet
   staas.fund/hbr/
============================================================ */

:root {
  --paper:        oklch(96.5% 0.012 78);
  --paper-2:      oklch(93.5% 0.018 78);
  --paper-3:      oklch(89% 0.022 78);
  --ink:          oklch(22% 0.025 245);
  --ink-2:        oklch(36% 0.022 245);
  --ink-3:        oklch(54% 0.018 245);
  --rule:         oklch(78% 0.022 75);
  --rule-2:       oklch(85% 0.018 75);
  --blueprint:    oklch(36% 0.09 232);
  --blueprint-2:  oklch(62% 0.07 232);
  --rust:         oklch(58% 0.155 40);
  --rust-2:       oklch(72% 0.10 40);
  --rust-wash:    oklch(91% 0.04 40);
  --moss:         oklch(46% 0.07 145);
  --moss-wash:    oklch(91% 0.035 145);

  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans:    "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --s--1: clamp(0.78rem, 0.73rem + 0.20vw, 0.88rem);
  --s-0:  clamp(0.98rem, 0.92rem + 0.30vw, 1.10rem);
  --s-1:  clamp(1.25rem, 1.13rem + 0.55vw, 1.5rem);
  --s-2:  clamp(1.56rem, 1.36rem + 0.95vw, 2rem);
  --s-3:  clamp(2.05rem, 1.65rem + 1.95vw, 3rem);
  --s-4:  clamp(2.7rem, 2rem + 3.4vw, 4.6rem);
  --s-5:  clamp(3.4rem, 2.2rem + 5.8vw, 6.8rem);

  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --max:    1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s-0);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, oklch(99% 0.01 78) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, oklch(94% 0.02 78) 0%, transparent 50%);
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1;
}

::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--s-5); font-weight: 300; letter-spacing: -0.035em; }
h2 { font-size: var(--s-4); font-weight: 400; letter-spacing: -0.028em; }
h3 { font-size: var(--s-2); font-weight: 500; letter-spacing: -0.018em; }
h4 { font-size: var(--s-1); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }

em, .italic { font-style: italic; font-family: var(--display); font-weight: 300; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { position: relative; z-index: 2; }
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 1.4em; height: 1px; background: var(--ink-3); display: inline-block;
}
.eyebrow.bp { color: var(--blueprint); }
.eyebrow.bp::before { background: var(--blueprint); }
.eyebrow.rust { color: var(--rust); }
.eyebrow.rust::before { background: var(--rust); }

.stamp {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blueprint);
  border: 1px solid var(--blueprint);
  padding: 0.35em 0.65em 0.3em;
  display: inline-block;
  border-radius: 1px;
  align-self: flex-start;
}

/* ===== NAV ===== */
nav.top {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  background: oklch(96.5% 0.012 78 / 0.82);
  border-bottom: 1px solid var(--rule-2);
}
nav.top .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.0rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand img {
  width: 56px; height: 56px;
  object-fit: contain;
  display: block;
  margin-left: -10px; /* compensate logo whitespace */
  margin-right: -6px;
}
.brand .wordmark { display: flex; flex-direction: column; gap: 2px; }
.brand .wordmark small {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
nav.top ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.7rem;
  justify-content: center;
}
nav.top ul a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
nav.top ul a:hover { color: var(--ink); }
nav.top .cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
}
nav.top .cta:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

/* CTA cluster — groups the rust primary with secondary outlined pills */
nav.top .cta-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* Ghost variant — secondary pills (Market brief, For builders, etc.) */
nav.top .cta-ghost {
  color: var(--ink-2);
  border-color: var(--rule);
  background: var(--paper);
  padding-inline: 0.85rem;
}
nav.top .cta-ghost .cta-tag {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--rust);
  letter-spacing: -0.01em;
}
nav.top .cta-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}
nav.top .cta-ghost:hover .cta-tag { color: var(--rust); }

@media (max-width: 1120px) {
  nav.top .cta-ghost .cta-tag { display: none; }
  nav.top .cta-ghost { padding-inline: 0.85rem; }
}
@media (max-width: 820px) {
  nav.top ul { display: none; }
  nav.top .inner { grid-template-columns: auto 1fr; }
  .brand .wordmark small { display: none; }
  nav.top .cta-cluster { gap: 0.4rem; }
  nav.top .cta-ghost {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
  }
}
@media (max-width: 640px) {
  /* On the smallest screens, hide the secondary pills — keep the primary CTA only */
  nav.top .cta-ghost { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding: clamp(2.5rem, 3vw + 2rem, 6rem) 0 clamp(3rem, 4vw, 6rem);
  position: relative;
}
.hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
}

.hero h1 .yr { display: block; font-style: italic; font-weight: 300; color: var(--ink-2); }
.hero h1 .after { display: block; font-weight: 600; }
.hero .lede {
  margin-top: 1.6rem;
  max-width: 36ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.55;
}
.hero .lede em { color: var(--ink); }

.hero .meta {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: auto auto;
  gap: 1.2rem 2.4rem;
  align-items: start;
  width: fit-content;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}
.hero .meta dt {
  grid-column: 1;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink-3);
  align-self: center;
}
.hero .meta dd {
  margin: 0; grid-column: 2;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
}

.hero .actions { margin-top: 2.4rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); background: oklch(14% 0.03 245); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(2px); }
.btn.rust { background: var(--rust); border-color: var(--rust); }
.btn.rust:hover { background: oklch(50% 0.16 40); border-color: oklch(50% 0.16 40); }

/* HERO PHOTO + ANNOTATIONS */
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo .photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 50% 60%;
  filter: contrast(0.97) saturate(0.92);
}
.hero-photo .photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(96.5% 0.012 78 / 0) 60%, oklch(96.5% 0.012 78 / 0.45) 100%),
    linear-gradient(90deg, oklch(96.5% 0.012 78 / 0.15) 0%, oklch(96.5% 0.012 78 / 0) 35%);
}
.hero-photo .corner {
  position: absolute; width: 14px; height: 14px;
  border: 1.5px solid var(--paper);
  z-index: 3;
  mix-blend-mode: difference;
}
.hero-photo .corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.hero-photo .corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.hero-photo .corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.hero-photo .corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.hero-photo svg.annotations {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
}
.hero-photo .platefooter {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid var(--ink);
  padding-top: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  z-index: 3;
  background: oklch(96.5% 0.012 78 / 0.65);
  padding-inline: 0.55rem;
  padding-bottom: 0.35rem;
  backdrop-filter: blur(2px);
}

/* ===== SECTIONS ===== */
section { padding: clamp(4rem, 6vw + 1rem, 8rem) 0; position: relative; }
section + section { border-top: 1px solid var(--rule-2); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }
.sec-head .left { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.sec-head .left .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--ink-3);
}
.sec-head h2 { max-width: 18ch; }
.sec-head .right {
  max-width: 48ch;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.55;
  padding-bottom: 0.45rem;
}

/* ===== THESIS BAND ===== */
.thesis {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.thesis * { color: inherit; }
.thesis::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(96% 0.012 78 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(96% 0.012 78 / 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.thesis .container { position: relative; z-index: 1; }
.thesis blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--s-3);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.thesis blockquote em {
  font-style: normal;
  font-weight: 500;
  color: var(--paper);
}
.thesis .footer {
  margin-top: clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid oklch(96% 0.012 78 / 0.18);
  padding-top: 2rem;
}
@media (max-width: 760px) { .thesis .footer { grid-template-columns: repeat(2, 1fr); } }
.thesis .stat { display: flex; flex-direction: column; gap: 0.6rem; }
.thesis .stat .n {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
}
.thesis .stat .n sub {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: oklch(96% 0.012 78 / 0.55);
  margin-left: 0.4em;
  vertical-align: baseline;
}
.thesis .stat .lbl {
  font-size: 0.78rem;
  line-height: 1.4;
  color: oklch(96% 0.012 78 / 0.7);
  max-width: 22ch;
}

/* ===== HOW IT WORKS ===== */
.how .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) { .how .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .how .steps { grid-template-columns: 1fr; } }
.step {
  padding: 2rem 1.8rem 2.4rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 1.2rem;
  min-height: 22rem;
}
.step:last-child { border-right: none; }
@media (max-width: 900px) {
  .step:nth-child(2n) { border-right: none; }
  .step { border-right: 1px solid var(--rule); }
}
@media (max-width: 520px) { .step { border-right: none; } }
.step .n {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blueprint);
}
.step h4 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; max-width: 14ch; }
.step p { color: var(--ink-2); font-size: 0.93rem; }
.step .ill {
  margin-top: auto;
  aspect-ratio: 1.4 / 1;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.step .ill svg { width: 100%; height: 100%; }

/* ===== MOBILE UPLOAD DEMO ===== */
.mobile-demo {
  background:
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

/* Tighten the gap when two phone-mockup sections sit back-to-back.
   Without this, the default 8rem top + 8rem bottom = a giant empty paper band. */
.mobile-demo + .live { padding-top: clamp(2rem, 3vw, 3.5rem); }
.mobile-demo:has(+ .live) { padding-bottom: clamp(2rem, 3vw, 3.5rem); }
.mobile-demo .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .mobile-demo .grid { grid-template-columns: 1fr; } }
.mobile-demo h3 { max-width: 14ch; }
.mobile-demo p { color: var(--ink-2); margin-top: 1.2rem; max-width: 44ch; font-size: 1.05rem; line-height: 1.6; }
.mobile-demo p em { color: var(--ink); font-family: var(--display); font-style: italic; font-weight: 400; }
.mobile-demo .legend {
  margin-top: 1.6rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.3rem;
}
.mobile-demo .legend li {
  list-style: none;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.mobile-demo .legend .step-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--rust);
  font-size: 1.1rem;
}
.mobile-demo .legend li.active .step-num { font-weight: 500; color: var(--ink); }
.mobile-demo .legend li.active { color: var(--ink); }

/* Phone frame */
.phone-wrap {
  display: flex; justify-content: center;
  align-items: center;
}
.phone {
  width: clamp(260px, 32vw, 320px);
  aspect-ratio: 9 / 19;
  background: oklch(14% 0.02 245);
  border-radius: 38px;
  padding: 12px;
  box-shadow:
    0 1px 0 oklch(40% 0.02 245),
    0 30px 60px -20px oklch(20% 0.02 245 / 0.35),
    0 60px 120px -40px oklch(20% 0.02 245 / 0.2);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: oklch(10% 0.02 245);
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.scene {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
}
.scene.active { opacity: 1; }

/* Scene 1: viewfinder */
.scene-camera {
  background:
    radial-gradient(circle at center, oklch(40% 0.02 245) 0%, oklch(18% 0.02 245) 100%);
}
.scene-camera .vf {
  position: absolute; inset: 60px 24px 100px;
  border: 1.5px solid oklch(96% 0.012 78 / 0.5);
  display: grid;
  place-items: center;
}
.scene-camera .vf::before, .scene-camera .vf::after {
  content: ""; position: absolute;
  background: oklch(96% 0.012 78 / 0.8);
}
.scene-camera .vf::before { width: 24px; height: 1.5px; }
.scene-camera .vf::after { width: 1.5px; height: 24px; }
.scene-camera .vf-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  filter: contrast(0.85) saturate(0.7);
}
.scene-camera .cap-label {
  position: absolute;
  bottom: 56px; left: 0; right: 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: oklch(96% 0.012 78 / 0.85);
}
.scene-camera .shutter {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid oklch(96% 0.012 78);
  background: oklch(96% 0.012 78 / 0.15);
}
.scene-camera .shutter::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%; background: oklch(96% 0.012 78);
}

/* Scene 2: uploading */
.scene-upload {
  background: var(--paper);
  padding: 60px 22px 22px;
}
.scene-upload .preview {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--rule);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.scene-upload .preview::after {
  content: "";
  position: absolute; inset: 0;
  background: oklch(96.5% 0.012 78 / 0.3);
}
.scene-upload .progress-row {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--ink-2);
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
}
.scene-upload .track {
  height: 4px; background: var(--paper-3); border-radius: 2px;
  position: relative; overflow: hidden;
}
.scene-upload .track .bar {
  position: absolute; inset: 0 auto 0 0;
  background: var(--rust);
  width: 0;
  animation: progress 1.4s 0.2s ease-out forwards;
}
@keyframes progress { to { width: 100%; } }

/* Scene 3: analyzing */
.scene-analyze {
  background: var(--paper);
  padding: 60px 22px 22px;
  display: flex; flex-direction: column; align-items: center;
}
.scene-analyze .preview {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--rule);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.scene-analyze .scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust), transparent);
  box-shadow: 0 0 18px var(--rust);
  animation: scan 1.5s ease-in-out infinite;
}
@keyframes scan {
  0%   { top: 0; opacity: 0.6; }
  50%  { top: 100%; opacity: 1; }
  100% { top: 0; opacity: 0.6; }
}
.scene-analyze .status {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.scene-analyze .dots {
  display: inline-block;
  width: 1.4em;
  text-align: left;
}
.scene-analyze .dots::after {
  content: "";
  animation: dots 1.4s steps(4) infinite;
}
@keyframes dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}
.scene-analyze .substatus { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }

/* Scene 4: result */
.scene-result {
  background: var(--paper);
  padding: 60px 22px 22px;
}
.scene-result .preview {
  width: 100%;
  aspect-ratio: 4/4;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.scene-result .bbox {
  position: absolute;
  top: 18%; left: 38%; width: 22%; height: 60%;
  border: 1.5px solid var(--rust);
  border-style: dashed;
}
.scene-result .verdict-pill {
  background: var(--rust);
  color: var(--paper);
  padding: 0.55rem 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}
.scene-result h5 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.scene-result .conf {
  font-size: 0.72rem; color: var(--ink-3);
  margin-bottom: 12px;
}
.scene-result .conf strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.scene-result .file-row {
  display: flex; gap: 6px; margin-top: 8px;
}
.scene-result .file-row button {
  flex: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.scene-result .file-row button.ghost {
  background: transparent; color: var(--ink);
}

/* ===== FLOORPLAN ===== */
.floorplan-section { background: var(--paper-2); }
.floor-frame {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
}
@media (max-width: 900px) { .floor-frame { grid-template-columns: 1fr; } }
.floor-svg-wrap {
  position: relative;
  border-right: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: radial-gradient(ellipse at top left, oklch(94% 0.02 78) 0%, var(--paper) 60%);
}
@media (max-width: 900px) {
  .floor-svg-wrap { border-right: none; border-bottom: 1px solid var(--rule); }
}
.floor-svg-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(50% 0.05 230 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(50% 0.05 230 / 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.floor-svg-wrap .label {
  position: absolute;
  bottom: 1.4rem; left: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.floor-svg-wrap .label-right {
  position: absolute;
  bottom: 1.4rem; right: 1.5rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
  font-size: 0.85rem;
}
.floor-svg-wrap svg {
  width: 100%; height: auto; display: block;
  position: relative; z-index: 1;
}
.room { cursor: pointer; transition: opacity 0.2s ease; }
.room rect, .room polygon, .room path {
  fill: oklch(94% 0.02 78);
  stroke: var(--ink);
  stroke-width: 2.5;
  transition: fill 0.25s ease;
}
.room .room-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  fill: var(--ink);
  text-transform: uppercase;
  pointer-events: none;
}
.room .room-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  fill: var(--ink-3);
  pointer-events: none;
}
.room .dot {
  fill: var(--rust);
  stroke: var(--paper);
  stroke-width: 2;
}
.room .dot-count {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  fill: var(--paper);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.room:hover rect, .room:hover polygon, .room:hover path { fill: var(--rust-wash); }
.room.active rect, .room.active polygon, .room.active path { fill: var(--rust-wash); }

.floor-side {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.floor-side h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.018em;
}
.floor-side .sub {
  color: var(--ink-3);
  font-size: 0.88rem;
  font-style: italic;
  font-family: var(--display);
  font-weight: 300;
}
.issues-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.issue {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}
.issue .tag {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.3em 0.55em;
  border-radius: 1px;
  line-height: 1;
}
.issue .tag.normal { background: var(--moss-wash); color: var(--moss); }
.issue .tag.watch  { background: oklch(93% 0.045 80); color: oklch(40% 0.1 70); }
.issue .tag.claim  { background: var(--rust-wash); color: var(--rust); }
.issue .desc { font-size: 0.92rem; }
.issue .desc small { display: block; color: var(--ink-3); font-size: 0.78rem; margin-top: 2px; }
.issue .date { font-size: 0.78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ===== CLASSIFY (photo + analysis) ===== */
.classify .card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
@media (max-width: 820px) { .classify .card { grid-template-columns: 1fr; } }
.classify .photo {
  background: var(--paper-2);
  border-right: 1px solid var(--rule);
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
@media (max-width: 820px) { .classify .photo { border-right: none; border-bottom: 1px solid var(--rule); } }
.classify .photo .img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 50% 40%;
  filter: contrast(0.95) saturate(0.92);
}
.classify .photo svg.overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.classify .photo .badge {
  position: absolute; top: 1.2rem; left: 1.2rem;
  background: var(--ink); color: var(--paper);
  padding: 0.4rem 0.7rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  z-index: 2;
}
.classify .photo .stamp-r {
  position: absolute; bottom: 1.2rem; right: 1.2rem;
  font-family: var(--display); font-style: italic; font-weight: 300;
  color: var(--paper); font-size: 0.78rem;
  background: oklch(20% 0.02 245 / 0.65);
  padding: 0.2rem 0.5rem;
  z-index: 2;
}
.classify .analysis {
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.classify .verdict {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-family: var(--display); font-size: 1.6rem; font-weight: 500;
  letter-spacing: -0.02em;
}
.classify .verdict .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--moss);
  transform: translateY(-3px);
}
.classify .verdict.claim .dot { background: var(--rust); }
.classify .verdict.claim { color: var(--rust); }
.classify .conf { font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.04em; }
.classify .conf strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.classify .rows { display: flex; flex-direction: column; border-top: 1px solid var(--rule); margin-top: 0.5rem; }
.classify .row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1rem; padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
}
.classify .row .k { color: var(--ink-3); }
.classify .row .v { font-weight: 600; }
.classify .draft {
  margin-top: auto;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-2);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  position: relative;
}
.classify .draft::before {
  content: "Draft warranty language";
  position: absolute; top: -0.5rem; left: 0.8rem;
  background: var(--paper);
  padding: 0 0.5rem;
  font-family: var(--sans); font-style: normal;
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-3);
}
.classify .switcher { margin-top: 1.6rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.switch-btn {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.switch-btn:hover { border-color: var(--ink); color: var(--ink); }
.switch-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===== TIME-SERIES ===== */
.timeseries-section { background: var(--paper-2); }
.ts-frame {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.ts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 720px) { .ts-grid { grid-template-columns: 1fr; } }
.ts-panel { display: flex; flex-direction: column; gap: 0.9rem; }
.ts-panel .img {
  aspect-ratio: 1.1 / 1;
  background-size: cover;
  background-position: 50% 25%;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  filter: contrast(0.97) saturate(0.9);
}
.ts-panel .img svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.ts-panel .img .stamp-tl {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--paper);
  padding: 0.3rem 0.55rem;
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.ts-panel .img .stamp-br {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  font-family: var(--display); font-weight: 300; font-style: italic;
  color: var(--ink);
  font-size: 0.78rem;
  background: oklch(96.5% 0.012 78 / 0.9);
  padding: 0.15rem 0.4rem;
}
.ts-panel h4 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.ts-panel p { font-size: 0.88rem; color: var(--ink-2); }
.ts-panel .measure {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem; font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ts-panel .measure .bar { height: 4px; background: var(--rule); position: relative; width: 80px; }
.ts-panel .measure .bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  background: var(--rust);
  width: var(--w, 30%);
}
.ts-frame .footer {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.ts-frame .footer .verdict {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.15rem; color: var(--ink-2);
  max-width: 50ch;
}
.ts-frame .footer .verdict em {
  color: var(--rust); font-style: normal; font-weight: 600;
}

/* ===== ACCOUNTABILITY ===== */
.accountability .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .accountability .grid { grid-template-columns: 1fr; } }
.accountability .copy h3 { max-width: 16ch; }
.accountability .copy p {
  margin-top: 1.2rem; color: var(--ink-2);
  max-width: 44ch;
  font-size: 1.02rem; line-height: 1.6;
}
.accountability .copy p em { color: var(--ink); font-family: var(--display); font-weight: 500; font-style: italic; }

.builder-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 2rem;
  position: relative;
  box-shadow: 6px 6px 0 var(--paper-3);
}
.builder-card .head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}
.builder-card .name {
  font-family: var(--display);
  font-weight: 500; font-size: 1.45rem;
  letter-spacing: -0.018em;
}
.builder-card .name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 0.4rem;
}
.builder-card .score {
  font-family: var(--display);
  font-weight: 300;
  font-size: 3rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.builder-card .score sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-left: 0.05em;
}
.builder-card .bars { display: flex; flex-direction: column; gap: 0.95rem; }
.builder-card .bar-row {
  display: grid;
  grid-template-columns: 8rem 1fr 3rem;
  gap: 1rem; align-items: center;
  font-size: 0.85rem;
}
.builder-card .bar-row .k { color: var(--ink-2); font-weight: 500; }
.builder-card .bar-row .track { height: 6px; background: var(--paper-3); position: relative; }
.builder-card .bar-row .fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.builder-card .bar-row.warn .fill { background: var(--rust); }
.builder-card .bar-row.ok .fill { background: var(--moss); }
.builder-card .bar-row .v {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.builder-card .footnote {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ===== FOUNDER ===== */
.founder {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(5rem, 7vw, 8rem);
  position: relative;
  overflow: hidden;
}
.founder::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url(images/lifestyle.webp);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(0.4) contrast(1.1);
}
.founder * { color: inherit; }
.founder .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
  position: relative; z-index: 1;
}
@media (max-width: 820px) { .founder .container { grid-template-columns: 1fr; } }
.founder .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: oklch(96% 0.012 78 / 0.6);
}
.founder h2 {
  color: var(--paper);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.025em;
  margin-top: 1.4rem;
}
.founder h2 em { font-style: normal; font-weight: 500; }
.founder .body p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: oklch(96% 0.012 78 / 0.88);
}
.founder .body p + p { margin-top: 1rem; }
.founder .body p em { color: var(--paper); font-style: italic; font-family: var(--display); font-weight: 400; }
.founder .sign {
  margin-top: 2rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  color: oklch(96% 0.012 78 / 0.7);
}

/* ===== CTA ===== */
.cta {
  padding-block: clamp(4rem, 6vw, 7rem);
  text-align: left;
  border-top: 1px solid var(--rule-2);
}
.cta .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}
@media (max-width: 760px) { .cta .grid { grid-template-columns: 1fr; } }
.cta h2 { max-width: 16ch; }
.cta h2 em { font-style: italic; font-weight: 300; color: var(--ink-2); display: block; }
.cta .form { display: flex; flex-direction: column; gap: 1rem; }
.cta .form .row {
  display: flex; gap: 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.2rem;
  background: var(--paper);
}
.cta input[type="email"] {
  flex: 1;
  border: none; background: transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  padding: 0.6rem 0;
}
.cta input[type="email"]::placeholder { color: var(--ink-3); }
.cta .form small {
  font-size: 0.78rem; color: var(--ink-3);
  font-family: var(--display); font-style: italic; font-weight: 300;
}

/* ===== FOOTER ===== */
footer.site {
  background: var(--paper-2);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
footer.site .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) { footer.site .grid { grid-template-columns: 1fr 1fr; } }
footer.site h5 {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--ink); margin: 0 0 1rem;
}
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.88rem; }
footer.site .legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--ink-3);
}
footer.site .net-line {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
  font-size: 0.85rem;
}
footer.site .net-line a { border-bottom: 1px solid var(--rule); }
footer.site .net-line a:hover { color: var(--ink); border-color: var(--ink); }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.anim-stroke {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-stroke.d2 { animation-delay: 0.6s; }
.anim-stroke.d3 { animation-delay: 0.9s; }
.anim-stroke.d4 { animation-delay: 1.2s; }
.anim-fade { opacity: 0; animation: fadein 0.6s 1.4s ease-out forwards; }
.anim-fade.d2 { animation-delay: 1.7s; }
.anim-fade.d3 { animation-delay: 2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .anim-stroke, .anim-fade { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* ===== /inspect/ page extras ===== */
.subnav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.subnav a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem 1.4rem 0.95rem;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.subnav a.active { color: var(--ink); border-bottom-color: var(--rust); }
.subnav a:hover { color: var(--ink); }

/* ============================================================
   §02b — LIVE PWA EMBED
============================================================ */
.live {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.live .grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) {
  .live .grid { grid-template-columns: 1fr; }
}
.live .legend {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.live .legend li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.4rem;
}
.live .legend .step-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--rust);
  font-size: 1.2rem;
  line-height: 1.2;
}

.live-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* iPhone-style frame around the iframe — note the iframe loads the PWA in its
   sub-720px viewport, so the PWA renders fullscreen-mobile inside. */
.phone-shell {
  position: relative;
  width: 390px;
  max-width: 100%;
  border-radius: 44px;
  background: oklch(14% 0.02 245);
  padding: 12px;
  box-shadow:
    0 0 0 1px oklch(40% 0.02 245),
    0 30px 60px -20px oklch(20% 0.02 245 / 0.45),
    0 60px 120px -40px oklch(20% 0.02 245 / 0.25);
  overflow: hidden;
}
.phone-shell::before {
  content: "";
  position: absolute;
  top: 24px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px;
  background: oklch(10% 0.02 245);
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}
.live-phone-iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 780px;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
}
@media (max-width: 480px) {
  .phone-shell { width: min(100%, 360px); padding: 8px; border-radius: 36px; }
  .phone-shell::before { top: 18px; width: 90px; height: 22px; }
  .live-phone-iframe { height: 720px; border-radius: 26px; }
}

/* ============================================================
   COST / COMPARISON
============================================================ */
.cost {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.cost .sec-head { margin-bottom: 2.5rem; }
.cost-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 880px) {
  .cost-cols { grid-template-columns: 1fr; }
}
.cost-col {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cost-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ink-3);
}
.cost-col.danger::before { background: oklch(50% 0.16 25); }
.cost-col.winner {
  border-color: var(--ink);
  background: oklch(98% 0.012 78);
  box-shadow: 0 30px 60px -32px oklch(20% 0.02 245 / 0.18);
}
.cost-col.winner::before { background: var(--rust); }
.cost-col .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cost-col.danger .label { color: oklch(50% 0.16 25); }
.cost-col.winner .label { color: var(--rust); }
.cost-col h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  margin: 0.4rem 0 1rem;
  line-height: 1.15;
}
.cost-col h3 em { font-style: italic; font-weight: 500; }
.cost-price {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0.5rem 0 0.2rem;
}
.cost-col.danger .cost-price { color: oklch(50% 0.16 25); }
.cost-col.winner .cost-price { color: var(--rust); }
.cost-price-sub {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.cost-list {
  list-style: none;
  margin: 1.2rem 0 1.4rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule-2);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.cost-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.5rem;
  align-items: flex-start;
}
.cost-list .mk {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink-3);
  padding-top: 2px;
}
.cost-list li.yes .mk { color: var(--moss); }
.cost-list li.no .mk  { color: oklch(50% 0.16 25); }
.cost-outcome {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-2);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.cost-outcome strong {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  display: block;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}

/* ============================================================
   FAQ
============================================================ */
.faq {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.faq .sec-head { margin-bottom: 1.8rem; }
.faq-list {
  max-width: 70ch;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 0;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 1rem;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--rust);
  line-height: 0.8;
  text-align: center;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  content: "−";
  transform: scale(1.05);
}
.faq-list details[open] summary { color: var(--rust); }
.faq-list .answer {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
}
.faq-list .answer em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   AI PLAYGROUND
============================================================ */
.ai-play {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.ai-play .grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .ai-play .grid { grid-template-columns: 1fr; align-items: flex-start; } }
.ai-play .stamp { display: inline-block; margin-bottom: 1.5rem; }
.ai-play h3 { margin: 0 0 1.25rem; }
.ai-play .grid > .reveal > p { margin: 0 0 2rem; max-width: 38ch; }
.ai-play .legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.ai-play .legend li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}
.ai-play .legend li:first-child { padding-top: 0; border-top: 0; }
.ai-play .legend .step-num {
  color: var(--rust);
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
}

.play-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.play-drop {
  position: relative;
  border: 2px dashed var(--rule);
  border-radius: 14px;
  background: var(--paper);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.play-drop:hover, .play-drop.hover {
  border-color: var(--rust);
  background: oklch(96% 0.012 78);
}
.play-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 4;
}
.play-empty {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: var(--ink-3);
  padding: 1rem;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}
.play-empty p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0;
  color: var(--ink-2);
}
.play-empty small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}
.play-empty .play-sample {
  pointer-events: auto;
  position: relative;
  z-index: 6;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.play-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.play-preview.show { opacity: 1; }
.play-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}
.play-scan.show {
  opacity: 1;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(211, 96, 52, 0.0) 45%,
    rgba(211, 96, 52, 0.45) 50%,
    rgba(211, 96, 52, 0.0) 55%,
    transparent 100%);
  background-size: 100% 50%;
  background-repeat: no-repeat;
  background-position: 0 -50%;
  animation: play-scan-anim 1.6s linear infinite;
}
@keyframes play-scan-anim {
  0%   { background-position: 0 -50%; }
  100% { background-position: 0 150%; }
}

.play-result {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  min-height: 80px;
  position: relative;
}
.play-result:empty::after {
  content: "Verdict will appear here.";
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--ink-3);
}
.play-loading {
  display: flex; align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-2);
}
.play-loading .spin {
  width: 14px; height: 14px;
  border: 2px solid var(--rule);
  border-top-color: var(--rust);
  border-radius: 50%;
  animation: play-spin 0.8s linear infinite;
}
@keyframes play-spin { to { transform: rotate(360deg); } }
.play-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.play-pill.claim  { background: oklch(94% 0.04 40); color: var(--rust); }
.play-pill.watch  { background: oklch(94% 0.05 80); color: oklch(50% 0.12 80); }
.play-pill.normal { background: oklch(94% 0.04 145); color: var(--moss); }
.play-title {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 0.5rem 0 0.8rem;
}
.play-conf {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0.8rem;
}
.play-conf span {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.play-conf strong { color: var(--ink); font-weight: 700; }
.play-conf-bar {
  height: 3px;
  background: var(--paper-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.play-conf-fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--ink);
}
.play-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  margin: 0.4rem 0 0.6rem;
}
.play-rows .k {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-3);
  align-self: center;
}
.play-rows .v {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-align: right;
}
.play-draft {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}
.play-draft summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rust);
  list-style: none;
}
.play-draft summary::-webkit-details-marker { display: none; }
.play-draft summary::before { content: "▸ "; transition: transform 0.2s ease; display: inline-block; }
.play-draft[open] summary::before { content: "▾ "; }
.play-draft p {
  margin: 0.6rem 0 0;
  padding: 0.8rem;
  background: var(--paper-2);
  border-radius: 6px;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.play-replay {
  margin-top: 0.8rem;
  display: flex; align-items: center;
  gap: 12px;
}
.play-replay button {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.play-replay small {
  font-family: var(--display);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-3);
}

/* ============================================================
   GO DEEPER — pre-footer promo for cross-page surfaces
============================================================ */
.go-deeper {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(3.5rem, 5vw, 6rem) 0;
}
.go-deeper .gd-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2rem, 3vw, 3rem);
  max-width: 32ch;
}
.go-deeper .gd-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  line-height: 1;
}

.gd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 1100px) { .gd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .gd-grid { grid-template-columns: 1fr; } }

.gd-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 0.4rem 1.3rem;
  padding: 1.8rem 1.8rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  text-decoration: none;
}
.gd-tile::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rust);
  transform: scaleY(0.6);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.gd-tile:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}
.gd-tile:hover::after { transform: scaleY(1); }

.gd-tile .gd-num {
  grid-row: 1 / span 4;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 2rem + 1.6vw, 3.8rem);
  letter-spacing: -0.03em;
  color: var(--rust);
  line-height: 0.85;
  align-self: start;
}
.gd-tile .gd-eyebrow {
  grid-column: 2;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.gd-tile h3 {
  grid-column: 2;
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.05rem + 1vw, 1.85rem);
  letter-spacing: -0.018em;
  line-height: 1.05;
}
.gd-tile p {
  grid-column: 2;
  margin: 0.4rem 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}
.gd-tile .gd-cta {
  grid-column: 2;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: 0.01em;
}
.gd-tile:hover .gd-cta { color: var(--ink); }
