/* Obsiva landing. Tokens from the app's design system (packages/app_ui) and
   the brand guide: graphite neutrals, one orange accent, Geist. */
:root {
  --bg: #f4f5f6; --surface: #ffffff; --sunken: #ebedef; --line: #e1e4e8; --line-strong: #8b929b;
  --ink: #14171a; --muted: #5a626c;
  --accent: #f76707; --on-accent: #14171a; --accent-ink: #c2410c; --accent-soft: #fff0e6;
  --success: #237a36; --success-soft: #e6f4ea; --danger: #c92a2a;
  --brand-ink: #14171a; --brand-paper: #f2f4f6; --brand-point: #f76707;
  --shadow: 0 1px 2px rgba(16, 20, 24, .06), 0 12px 32px rgba(16, 20, 24, .10);
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 24px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1012; --surface: #17191c; --sunken: #1f2226; --line: #2a2e33; --line-strong: #6a717a;
    --ink: #f2f4f6; --muted: #a1a9b3;
    --accent: #ff7a1a; --accent-ink: #ff8b3d; --accent-soft: #3a1e0b;
    --success: #51cf66; --success-soft: #12301b; --danger: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: var(--r-sm); }

.dot::after {
  content: ""; display: inline-block; width: .3em; height: .26em;
  background: var(--brand-point); margin-left: .07em;
}
.overline {
  font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.logo { color: var(--ink); display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: var(--r-md);
  font: 600 17px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  background: var(--accent); color: var(--on-accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { box-shadow: 0 6px 18px rgba(247, 103, 7, .32); transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: var(--r-sm); }
.btn-sm svg { width: 18px; height: 18px; }
.btn-ghost { background: var(--sunken); color: var(--ink); }
/* Official Google Play badge, as served by Google. The PNGs pad the badge
   differently: en has 41px of transparent margin around a 564x168 badge;
   es-419 fills the width and pads 29px top and bottom (646x192). Negative
   margins crop the padding so --h is the visible badge height. */
.gp { --h: 56px; display: inline-block; line-height: 0; overflow: hidden; border-radius: calc(var(--h) * .12); transition: transform .15s ease; flex: none; }
.gp:hover { transform: translateY(-1px); }
.gp img {
  --ih: 168; --px: 41; --py: 41;
  height: calc(var(--h) * 250 / var(--ih)); width: auto; max-width: none;
  margin: calc(var(--h) * var(--py) / var(--ih) * -1) calc(var(--h) * var(--px) / var(--ih) * -1);
}
.gp img[src*="es-419"] { --ih: 192; --px: 0; --py: 29; }
.gp-sm { --h: 40px; }
.gp-lg { --h: 60px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.top .logo svg { height: 24px; width: 129px; }
@media (max-width: 400px) { .top .logo svg { height: 20px; width: 107px; } .top-in { gap: 12px; } }
.nav { display: none; gap: 4px; flex: 1; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm);
}
.nav a:hover { color: var(--ink); background: var(--sunken); }
.top-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang {
  color: var(--muted); text-decoration: none; font: 600 14px/1 var(--sans);
  min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; border-radius: var(--r-sm);
}
.lang:hover { color: var(--ink); background: var(--sunken); }
@media (min-width: 960px) { .nav { display: flex; } .top-end { margin-left: 0; } }

/* Hero */
.hero { padding-block: 40px 56px; display: grid; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -.04em; }
.lead { font-size: clamp(18px, 2vw, 20px); line-height: 1.55; color: var(--muted); max-width: 54ch; }
.lead strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-note { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; }
.cta-note li { display: inline-flex; align-items: center; gap: 6px; }
.cta-note svg { width: 16px; height: 16px; color: var(--success); }
.ios-note { display: none; font-size: 15px; color: var(--muted); max-width: 48ch; }
.is-ios .ios-note { display: block; }
.qr {
  display: none; align-items: center; gap: 14px; padding: 12px 16px 12px 12px;
  background: var(--surface); border-radius: var(--r-md); font-size: 14px; line-height: 1.4; color: var(--muted);
}
.qr img { width: 76px; height: 76px; background: #fff; padding: 4px; border-radius: 6px; }
.qr strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
@media (min-width: 960px) and (hover: hover) { .qr { display: flex; } }

/* Hero visual: the PDF report is the subject; the phone that made it sits
   in front of its right margin. */
.hero-visual { position: relative; min-height: 640px; }
.hero-visual .page { position: absolute; height: auto; background: #fff; border-radius: 6px; box-shadow: var(--shadow); }
.hero-visual .page-back { width: 62%; left: 26%; top: 4px; transform: rotate(5deg); }
.hero-visual .page-front { width: 74%; left: 0; top: 40px; transform: rotate(-2.5deg); z-index: 1; }
.hero-visual .phone { position: absolute; right: 0; bottom: 0; z-index: 2; transform: scale(.62); transform-origin: bottom right; }
.done-chip {
  position: absolute; z-index: 3; left: 18px; top: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--brand-ink); color: var(--brand-paper); font-size: 14px; font-weight: 600; line-height: 20px;
  box-shadow: var(--shadow);
}
.done-chip svg { width: 18px; height: 18px; color: #51cf66; }
@media (prefers-color-scheme: dark) { .done-chip { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); } }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 64px 88px; }
  .hero-visual { min-height: 660px; }
}
@media (max-width: 560px) {
  .hero-visual { min-height: 450px; }
  .hero-visual .page-front { width: 72%; top: 44px; }
  .hero-visual .page-back { width: 60%; left: 20%; top: 12px; }
  .hero-visual .phone { transform: scale(.46); }
  .done-chip { left: 8px; font-size: 13px; padding: 6px 12px 6px 8px; }
}

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; list-style: none; }
.proof li { background: var(--surface); border-radius: var(--r-md); padding: 18px 20px; display: grid; gap: 4px; }
.proof .ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--sunken); display: grid; place-items: center; margin-bottom: 8px; }
.proof .ico svg { width: 22px; height: 22px; }
.proof strong { font-size: 17px; font-weight: 600; line-height: 1.35; }
.proof span { font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Sections */
.sec { padding-block: 72px; }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.sec-head p { font-size: 19px; line-height: 1.55; color: var(--muted); }
@media (min-width: 960px) { .sec { padding-block: 104px; } }

/* Problem */
.compare { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.compare > div { border-radius: var(--r-lg); padding: 28px; display: grid; gap: 18px; align-content: start; }
.compare .before { background: var(--sunken); }
.compare .after { background: var(--brand-ink); color: var(--brand-paper); }
.compare h3 { font-size: 21px; letter-spacing: -.01em; }
.compare ul { list-style: none; display: grid; gap: 14px; }
.compare li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 17px; line-height: 1.5; }
.compare li svg { width: 22px; height: 22px; margin-top: 2px; }
.compare .before li { color: var(--muted); }
.compare .before li svg { color: var(--line-strong); }
.compare .after li svg { color: var(--brand-point); }

/* Steps: a tab list that drives the phone. The progress bar's animation is
   the timer; site.js advances on animationend. */
.how { display: grid; gap: 32px; align-items: start; }
.how-visual { display: grid; justify-items: center; order: -1; }
.steps { list-style: none; display: grid; gap: 8px; }
.steps li {
  position: relative; overflow: hidden; border-radius: var(--r-md); padding: 18px 22px;
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: center;
  background: var(--surface); transition: background .2s;
}
.steps .n {
  grid-row: span 2; align-self: start; width: 44px; height: 44px; border-radius: 50%; background: var(--sunken);
  display: grid; place-items: center; font: 600 16px/1 var(--mono); transition: background .2s, color .2s;
}
.steps h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; min-height: 44px; display: flex; align-items: center; }
.steps p { color: var(--muted); font-size: 16px; line-height: 1.55; grid-column: 2; }
.steps .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.js .steps li { background: transparent; cursor: pointer; }
.js .steps li:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.js .steps li.on { background: var(--surface); }
.js .steps li.on .n { background: var(--accent); color: var(--on-accent); }
.js .steps li:not(.on) h3 { color: var(--muted); }
.js .steps li:not(.on) p { display: none; }
.js .steps li:not(.on) .n { grid-row: auto; }
.steps h3 button { all: unset; cursor: pointer; }
.steps h3 button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 4px; }
.steps li.on .prog { animation: step-prog var(--step-ms, 6000ms) linear forwards; }
.how.paused .steps li.on .prog { animation-play-state: paused; }
@keyframes step-prog { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .steps .prog { display: none; } }
@media (min-width: 960px) {
  .how { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; }
  .how-visual { order: 0; }
}

/* Report gallery */
.pages {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin-inline: -4px;
  list-style: none; scrollbar-width: thin;
}
.pages li { scroll-snap-align: start; display: grid; gap: 10px; align-content: start; }
.pages img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line), var(--shadow); background: #fff; }
.pages p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.pages p strong { color: var(--ink); font-weight: 600; display: block; }
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 32px; list-style: none; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.facts li strong { color: var(--ink); font-weight: 600; }
.facts svg { width: 22px; height: 22px; color: var(--success); margin-top: 1px; }

/* Feature grid */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; }
.feat { background: var(--surface); border-radius: var(--r-md); padding: 24px; display: grid; gap: 8px; align-content: start; }
.feat .ico { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--sunken); display: grid; place-items: center; margin-bottom: 8px; }
.feat .ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.feat p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Language band */
.band { background: var(--brand-ink); color: var(--brand-paper); border-radius: var(--r-lg); padding: 40px 24px; display: grid; gap: 40px; align-items: center; }
.band .overline { color: #a1a9b3; }
.band h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.band p { color: #c7cdd4; font-size: 18px; line-height: 1.6; }
.band-copy { display: grid; gap: 16px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-xs); background: #3a1e0b; color: #ff8b3d; font-size: 13px; font-weight: 600; letter-spacing: .02em; justify-self: start; }
.terms { background: #17191c; border-radius: var(--r-md); overflow: hidden; }
.terms table { width: 100%; border-collapse: collapse; font-size: 16px; }
.terms th, .terms td { text-align: left; padding: 14px 18px; border-bottom: 1px solid #2a2e33; }
.terms tr:last-child td { border-bottom: 0; }
.terms th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #a1a9b3; }
.terms td:first-child { color: #c7cdd4; }
.terms td:last-child { color: #f2f4f6; font-weight: 600; }
.terms td.arrow { color: #ff8b3d; width: 32px; padding-inline: 0; }
@media (min-width: 960px) { .band { grid-template-columns: 1.1fr .9fr; padding: 64px; gap: 64px; } }

/* Audience */
.who { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; }
.who li { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.who h3 { font-size: 19px; line-height: 1.3; }
.who p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Pricing */
.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.plan { background: var(--surface); border-radius: var(--r-lg); padding: 32px 28px; display: grid; gap: 20px; align-content: start; }
.plan.pro { box-shadow: inset 0 0 0 2px var(--accent); }
.plan h3 { font-size: 26px; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.plan .price { font-size: 17px; color: var(--muted); }
.plan .price strong { font-size: 34px; color: var(--ink); letter-spacing: -.03em; font-weight: 600; margin-right: 6px; }
.plan ul { list-style: none; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; }
.plan li svg { width: 20px; height: 20px; color: var(--success); margin-top: 2px; }
.plan .fine { font-size: 14px; color: var(--muted); line-height: 1.5; }
.plan .btn { justify-self: start; }

/* FAQ */
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: var(--r-md); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-size: 18px; font-weight: 600; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 70ch; }

/* Final CTA */
.final { background: var(--brand-ink); color: var(--brand-paper); border-radius: var(--r-lg); padding: 48px 24px; display: grid; gap: 28px; justify-items: start; }
.final h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; }
.final p { color: #c7cdd4; font-size: 18px; max-width: 52ch; }
.final .qr { background: #1f2226; color: #a1a9b3; }
.final .qr strong { color: #f2f4f6; }
.final .cta-note { color: #a1a9b3; }
.final .cta-note svg { color: #51cf66; }
.final .ios-note { color: #a1a9b3; }
@media (min-width: 960px) { .final { padding: 72px 64px; } }

@media (prefers-color-scheme: dark) {
  .compare .after, .band, .final { background: #17191c; box-shadow: inset 0 0 0 1px #2a2e33; }
  .terms, .final .qr { background: #1f2226; }
}

/* Footer */
.foot { padding-block: 56px 120px; display: grid; gap: 24px; font-size: 15px; color: var(--muted); }
.foot .logo svg { height: 22px; width: 118px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot small { font-size: 13px; line-height: 1.6; }
@media (min-width: 960px) { .foot { padding-bottom: 56px; } }

/* Sticky mobile CTA */
.sticky {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px;
  background: var(--brand-ink); color: var(--brand-paper); border-radius: 18px; box-shadow: var(--shadow);
  transform: translateY(140%); transition: transform .25s ease; visibility: hidden;
}
.sticky.show { transform: none; visibility: visible; }
.sticky > img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sticky > div { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.sticky strong { display: block; font-size: 15px; }
.sticky span { color: #a1a9b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
@media (min-width: 960px) { .sticky { display: none; } }

/* ------------------------------------------------------------------
   Phone mockups: real app screens built with the app's tokens
   (light theme forced so they match the store screenshots).
   ------------------------------------------------------------------ */
.phone {
  --bg: #f4f5f6; --surface: #ffffff; --sunken: #ebedef; --line: #e1e4e8; --line-strong: #8b929b;
  --ink: #14171a; --muted: #5a626c; --accent: #f76707; --accent-ink: #c2410c; --accent-soft: #fff0e6;
  --success: #237a36; --success-soft: #e6f4ea;
  --sev-low: #2f9e44; --sev-medium: #b07d00; --sev-high: #e03131; --sev-critical: #9c1b3e;
  width: min(340px, 100%); border-radius: 44px; padding: 10px; background: #e1e4e8;
  box-shadow: 0 0 0 1px rgba(16, 20, 24, .06), 0 30px 60px -12px rgba(16, 20, 24, .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { .phone { background: #2a2e33; box-shadow: 0 30px 60px -12px rgba(0, 0, 0, .7); } }
.scr {
  background: var(--bg); color: var(--ink); border-radius: 34px; overflow: hidden;
  font-family: var(--sans); font-size: 14px; line-height: 20px; height: 600px; display: flex; flex-direction: column;
  user-select: none;
}
.scr .status { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 4px; font: 500 12px/16px var(--mono); }
.scr .status svg { width: 34px; height: 12px; }
.scr .bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 4px; min-height: 52px; }
.scr .bar .ib { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.scr .bar .ib svg { width: 22px; height: 22px; }
.scr .bar .t { flex: 1; min-width: 0; }
.scr .bar .t b { display: block; white-space: nowrap; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.scr .bar .t > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; line-height: 18px; color: var(--muted); }
.scr .body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; overflow: hidden; }
.scr .meta { white-space: nowrap; display: flex; justify-content: space-between; align-items: center; padding: 0 4px; min-height: 32px; font-size: 13px; color: var(--muted); }
.scr .meta b { color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.scr .meta b svg { width: 17px; height: 17px; }
.scr .obs { display: flex; gap: 10px; padding: 10px; background: var(--surface); border-radius: 14px; }
.scr .th { width: 60px; height: 60px; border-radius: 6px; flex: none; background-color: #c9c3b8; background-position: center; background-size: cover; background-repeat: no-repeat; }
.scr .ob { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.scr .ob .n { font: 500 12px/20px var(--mono); color: var(--muted); margin-right: 6px; }
.scr .ob .tt { font-size: 15px; line-height: 20px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scr .ob .loc { font-size: 12px; line-height: 16px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.scr .ob .loc svg { width: 13px; height: 13px; }
.scr .ft { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 2px; }
.scr .sev { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.scr .m { display: inline-flex; gap: 2px; align-items: flex-end; }
.scr .m i { width: 4px; border-radius: 1.5px; background: var(--line); }
.scr .m i:nth-child(1) { height: 6px; } .scr .m i:nth-child(2) { height: 9px; } .scr .m i:nth-child(3) { height: 12px; } .scr .m i:nth-child(4) { height: 15px; }
.scr .l1 i:nth-child(-n+1) { background: var(--sev-low); }
.scr .l2 i:nth-child(-n+2) { background: var(--sev-medium); }
.scr .l3 i:nth-child(-n+3) { background: var(--sev-high); }
.scr .l4 i:nth-child(-n+4) { background: var(--sev-critical); }
.scr .bdg { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 500; background: var(--sunken); color: var(--muted); }
.scr .bdg svg { width: 12px; height: 12px; }
.scr .bdg.ok { background: var(--success-soft); color: var(--success); }
.scr .cap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 20px 18px; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 20px rgba(16, 20, 24, .08); }
.scr .cap span { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 500; }
.scr .cap span svg { width: 22px; height: 22px; }
.scr .cam { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.scr .cam svg { width: 26px; height: 26px; }
.scr .photos { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; height: 104px; flex: none; }
.scr .photos > div { border-radius: 12px; background-color: #c9c3b8; background-position: center; background-size: cover; background-repeat: no-repeat; }
.scr .photos .side { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; background-color: transparent; }
.scr .photos .side > div { border-radius: 12px; background-color: #c9c3b8; background-position: center; background-size: cover; background-repeat: no-repeat; }
.scr .photos .add { background-color: var(--sunken); display: grid; place-items: center; color: var(--muted); }
.scr .photos .add svg { width: 18px; height: 18px; }
.scr .voice { background: var(--surface); border-radius: 10px; padding: 8px 10px 10px; display: grid; gap: 6px; flex: none; }
.scr .voice .row { display: flex; align-items: center; gap: 10px; }
.scr .voice .play { width: 32px; height: 32px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; flex: none; }
.scr .voice .play svg { width: 14px; height: 14px; }
.scr .wave { flex: 1; height: 18px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 4px); -webkit-mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000 40%, transparent 72%); mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000 40%, transparent 72%); opacity: .9; }
.scr .voice q { font-size: 12px; line-height: 17px; color: var(--muted); padding-left: 42px; quotes: "“" "”"; }
.scr .ai { display: flex; gap: 8px; align-items: flex-start; background: var(--sunken); border-radius: 10px; padding: 9px 10px; font-size: 12px; line-height: 17px; flex: none; }
.scr .ai svg { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 1px; }
.scr .fld { display: grid; gap: 4px; flex: none; }
.scr .fld > span { font-size: 12px; font-weight: 500; }
.scr .fld > div { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 12px; font-size: 13px; line-height: 18px; }
.scr .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scr .chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 600; }
.scr .chip.on { background: var(--accent-soft); border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.ph-crack { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='72' height='72' fill='%23c9c3b8'/%3E%3Crect y='50' width='72' height='22' fill='%23a59d90'/%3E%3Cpath d='M18 0 L26 14 L22 22 L33 34 L30 42 L40 50' fill='none' stroke='%23463f36' stroke-width='1.6'/%3E%3C/svg%3E"); }
.ph-tile { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Crect width='72' height='72' fill='%23d8d4cc'/%3E%3Cpath d='M0 24H72M0 48H72M24 0V72M48 0V72' stroke='%23a8a195' stroke-width='2'/%3E%3Cpath d='M26 26 L46 46' stroke='%23614f3c' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ph-pipe { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Crect width='72' height='72' fill='%23b9bcb8'/%3E%3Crect x='30' width='12' height='72' fill='%23e8e6e1'/%3E%3Cellipse cx='36' cy='52' rx='14' ry='6' fill='%237b6a4d' opacity='.55'/%3E%3C/svg%3E"); }
.ph-rail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Crect width='72' height='72' fill='%23c4c0b8'/%3E%3Cpath d='M0 72 L72 30 V72Z' fill='%23948d82'/%3E%3Cpath d='M6 22 L66 46' stroke='%2333373b' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M16 26V58M32 32V64M48 38V70' stroke='%2333373b' stroke-width='2'/%3E%3C/svg%3E"); }
.ph-door { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Crect width='72' height='72' fill='%23e3ddd2'/%3E%3Crect x='22' y='8' width='30' height='64' fill='%23a87f57'/%3E%3Ccircle cx='46' cy='42' r='2' fill='%23e8e6e1'/%3E%3Crect y='66' width='72' height='6' fill='%23bdb4a6'/%3E%3C/svg%3E"); }

/* Step screens: stacked in one phone, the active one fades in. */
.screens { position: relative; height: 600px; border-radius: 34px; overflow: hidden; }
.screens .scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.screens .scr.on { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.scr.dark { --bg: #000; --surface: #17191c; --sunken: #1f2226; --ink: #f2f4f6; --muted: #a1a9b3; --accent-ink: #ff8b3d; --line-strong: #6a717a; background: #000; color: #f2f4f6; }
.scr .save { color: var(--accent-ink); font-weight: 600; font-size: 15px; padding: 0 8px; }
.scr .anno { position: relative; flex: none; height: 372px; margin-top: 4px; background-size: cover; background-position: center; }
.scr .anno svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scr .anno .mk { fill: none; stroke: #f76707; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.scr .anno .tag rect { fill: #f76707; }
.scr .anno .tag text { fill: #14171a; font: 600 19px var(--sans); }
.scr .tools { padding: 12px 12px 0; display: grid; gap: 10px; }
.scr .seg { display: flex; padding: 4px; gap: 4px; border-radius: 10px; background: var(--sunken); }
.scr .seg span { flex: 1; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.scr .seg span svg { width: 17px; height: 17px; }
.scr .seg .on { background: var(--surface); color: var(--ink); }
.scr .hint { font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; }
.scr .rec { background: var(--surface); border-radius: 14px; padding: 14px; display: grid; gap: 12px; flex: none; }
.scr .rec-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.scr .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e03131; }
.scr .bars { display: flex; align-items: center; justify-content: center; gap: 3px; height: 36px; }
.scr .bars i { flex: none; width: 3px; height: 100%; border-radius: 2px; background: var(--ink); transform: scaleY(.25); transform-origin: center; }
.scr .stop { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; }
.scr .stop svg { width: 18px; height: 18px; }
.scr .say { font-size: 12px; line-height: 17px; color: var(--muted); padding: 0 4px; }
.scr .fld .empty { color: var(--muted); }
.scr .flow { display: flex; align-items: center; gap: 6px; padding: 0 16px 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.scr .flow .ok { color: var(--success); display: inline-flex; align-items: center; gap: 3px; }
.scr .flow .ok svg { width: 13px; height: 13px; stroke-width: 2.25; }
.scr .flow i { width: 14px; height: 1px; background: var(--line-strong); }
.scr .flow b { color: var(--ink); font-weight: 600; }
.scr .sheet-page { display: grid; justify-items: center; gap: 8px; padding: 6px 0 0; flex: 1; min-height: 0; }
.scr .sheet-page img { width: 236px; height: auto; border-radius: 3px; box-shadow: 0 8px 24px rgba(16, 20, 24, .16); background: #fff; }
.scr .sheet-page span { font: 500 12px/16px var(--mono); color: var(--muted); }
.scr .acts { display: grid; gap: 8px; padding: 12px 14px 18px; }
.scr .acts span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; font-size: 14px; font-weight: 600; background: var(--sunken); }
.scr .acts .pri { background: var(--accent); color: #14171a; }
.scr .acts svg { width: 18px; height: 18px; }
.ph-wall-lg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 520' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='390' height='520' fill='%23bfb8ac'/%3E%3Crect y='360' width='390' height='160' fill='%239d9486'/%3E%3Crect y='352' width='390' height='10' fill='%23d6d0c5'/%3E%3Cpath d='M96 0 L132 70 L118 118 L176 186 L160 236 L214 300 L206 352' fill='none' stroke='%233e372f' stroke-width='3'/%3E%3Cpath d='M176 186 L210 196' fill='none' stroke='%233e372f' stroke-width='2'/%3E%3C/svg%3E"); }

/* Motion inside the active screen */
@media (prefers-reduced-motion: no-preference) {
  .scr.on .anno .mk { stroke-dashoffset: 1; animation: draw .9s ease forwards; }
  .scr.on .anno .mk.m2 { animation-delay: 1.1s; }
  .scr.on .anno .mk.m3 { animation-delay: 1.8s; animation-duration: .3s; }
  .scr.on .anno .tag { opacity: 0; animation: pop .3s ease 2.2s forwards; }
  .scr.on .bars i { animation: wave 1.1s ease-in-out infinite alternate; }
  .scr.on .bars i:nth-child(3n) { animation-delay: -.3s; animation-duration: .8s; }
  .scr.on .bars i:nth-child(4n+1) { animation-delay: -.6s; animation-duration: 1.3s; }
  .scr.on .bars i:nth-child(5n+2) { animation-delay: -.9s; animation-duration: .9s; }
  .scr.on .rec-dot { animation: blink 1.2s steps(2, jump-none) infinite; }
  .scr.on .reveal { opacity: 0; animation: rise .45s ease forwards; }
  .scr.on .reveal:nth-of-type(2) { animation-delay: .15s; }
  .scr.on .r1 { animation-delay: .2s; } .scr.on .r2 { animation-delay: .5s; } .scr.on .r3 { animation-delay: .8s; }
  .scr.on .r4 { animation-delay: 1.1s; } .scr.on .r5 { animation-delay: 1.4s; } .scr.on .r6 { animation-delay: 1.7s; }
  .scr.on .sheet-page img { animation: rise .5s ease both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes wave { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.scr .anno .tag { transform-box: fill-box; transform-origin: center; }
