/* ───────────────────────────────────────────────────────────────────────────
   Honest Fix — homeowner app
   Design system ported verbatim from honest-fix-rivvet-call-framework.html
   (iron-dark surfaces, navy #1A3A6E + green #5BB849, Unbounded / IBM Plex Sans /
   JetBrains Mono). Product register: trust and clarity first.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  /* Honest Fix brand — approved direction: Blue + Green (Caleb 2026-06-23).
     Clarity Blue leads identity, Honest Green carries action, House Navy is ink
     on a clean light canvas. Token names kept; values re-anchored to the kit. */
  color-scheme: light;

  /* Surfaces — light canvas + white cards */
  --iron: #F5F8FC;  --iron-2: #EEF3FA;  --steel: #FFFFFF;
  --carbon: #F4F7FB; --graphite: #E9F0F8;
  --edge: #D8E0EA;  --edge-dim: #E7EDF3;

  /* Ink — House Navy ink stack on light ground */
  --white: #132238; --paper: #1E2B3F;
  --ghost: #3F5066; --ghost-mute: #56687F; --ghost-faint: #718097;

  /* Brand — Clarity Blue accent/diagnosis, Honest Green action, navy anchor */
  --mint: #2F6FED; --mint-deep: #1D4ED8; --signal: #2F6FED; --warn: #F59E0B;
  --hfgreen: #0C7A52; --hfgreen-deep: #0A6646;
  --hfnavy: #132238; --hfnavy-deep: #0B1626;

  /* Severity scale (low → emergency) — kit state colors */
  --sev-low: #1F9D6B;
  --sev-medium: #F59E0B;
  --sev-high: #EA580C;
  --sev-emergency: #DC2626;
  --sev-uncertain: #64748B;

  /* Type — kit: Unbounded display / Public Sans body / JetBrains Mono */
  --font-display: 'Unbounded', sans-serif;
  --font-sans: 'Public Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-xl: 26px;

  /* Shadows — soft on light ground */
  --sh-card: 0 18px 50px rgb(19 34 56 / 0.10);
  --sh-green: 0 10px 26px -8px rgba(12,122,82,0.28);
  --sh-pop: 0 24px 60px -20px rgb(19 34 56 / 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  /* z-scale */
  --z-bar: 20; --z-sheet: 40; --z-toast: 60;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font-sans);
  color: var(--paper);
  background: var(--iron);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--hfgreen); color: var(--iron); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 4px; }

/* ── Stage: desktop surround + centered phone; mobile full-bleed ───────────── */
.stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  background:
    linear-gradient(rgba(19,34,56,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,34,56,0.035) 1px, transparent 1px),
    linear-gradient(180deg, #F8FBFE 0%, var(--iron) 100%);
  background-size: 64px 64px, 64px 64px, auto;
}

.surround { display: none; }

/* ── Device ───────────────────────────────────────────────────────────────── */
.device {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: var(--iron);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

@media (min-width: 760px) {
  .stage {
    grid-template-columns: minmax(280px, 420px) auto;
    gap: clamp(32px, 6vw, 96px);
    padding: 40px;
  }
  .surround {
    display: block;
    max-width: 420px;
    align-self: center;
  }
  .device {
    width: 408px;
    height: min(880px, 92dvh);
    border-radius: var(--r-xl);
    border: 1px solid rgba(19,34,56,0.10);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.7),
      0 40px 80px -28px rgba(19,34,56,0.22),
      0 24px 60px -30px rgba(12,122,82,0.16);
    padding: 10px;
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF3FA 100%);
  }
  .device__inner {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(19,34,56,0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--iron);
  }
}
.device__inner { display: flex; flex-direction: column; min-height: 0; flex: 1; position: relative; }

/* ── Add-to-Home-Screen hint ──────────────────────────────────────────────── */
.a2hs {
  position: absolute;
  left: 10px; right: 10px; bottom: 12px;
  z-index: 60;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px 11px 11px;
  background: #FFFFFF;
  border: 1px solid var(--edge, #D8E0EA);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(19,34,56,0.05), 0 18px 38px -14px rgba(19,34,56,0.30);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .34s cubic-bezier(0.22,1,0.36,1), opacity .34s cubic-bezier(0.22,1,0.36,1);
}
.a2hs.is-in { transform: translateY(0); opacity: 1; }
.a2hs__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(19,34,56,0.18); }
.a2hs__icon img { display: block; width: 38px; height: 38px; }
.a2hs__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.a2hs__t { font-weight: 700; font-size: 13.5px; color: var(--hfnavy, #132238); line-height: 1.25; }
.a2hs__s { font-size: 12px; color: var(--ghost, #475569); line-height: 1.35; }
.a2hs__s b { color: var(--hfnavy, #132238); font-weight: 600; }
.a2hs__s svg { vertical-align: -3px; color: var(--mint, #2F6FED); }
.a2hs__cta {
  flex: none; appearance: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 13px;
  color: #fff; background: var(--hfgreen, #0C7A52);
  border: none; border-radius: 999px; padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(12,122,82,0.18);
  transition: background .15s ease, transform .15s ease;
}
.a2hs__cta:hover { background: var(--hfgreen-deep, #0A6646); }
/* While the install hint is up, pad the scroll area so it never overlaps the last item. */
.device__inner.has-a2hs #view { padding-bottom: 104px; }
.a2hs__cta:active { transform: scale(0.97); }
.a2hs__x {
  flex: none; appearance: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ghost-mute, #64748B); background: transparent; border: none;
}
.a2hs__x:hover { background: var(--graphite, #E9F0F8); color: var(--hfnavy, #132238); }
@media (prefers-reduced-motion: reduce) {
  .a2hs { transition: opacity .2s ease; transform: none; }
}

/* ── Surround content (desktop only) ──────────────────────────────────────── */
.surround__mark {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  letter-spacing: 0; display: flex; align-items: center; gap: 8px;
}
.surround__mark b { color: var(--hfgreen); }
.surround h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 44px; line-height: 1.04; letter-spacing: 0;
  margin: 28px 0 18px; text-wrap: balance;
}
.surround p { color: var(--ghost); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.surround__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.surround__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--paper); font-size: 14.5px; }
.surround__points svg { flex: 0 0 auto; margin-top: 2px; color: var(--hfgreen); }
.surround__demo {
  margin-top: 30px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ghost-mute);
  display: inline-flex; align-items: center; gap: 8px;
}
.surround__demo::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* ── App bar ──────────────────────────────────────────────────────────────── */
.appbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; min-height: 56px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19,34,56,0.08);
  position: relative; z-index: var(--z-bar);
}
.appbar__back {
  appearance: none; border: 1px solid rgba(19,34,56,0.12);
  background: rgba(19,34,56,0.03); color: var(--paper);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; transition: background var(--dur) var(--ease), opacity var(--dur);
}
.appbar__back:hover { background: rgba(19,34,56,0.06); }
.appbar__back[hidden] { display: none; }
.appbar__mark {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: 0; display: flex; align-items: center; gap: 6px;
}
.appbar__mark b { color: var(--hfgreen); }
.appbar__spacer { flex: 1; }
.appbar__tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ghost-mute);
  border: 1px solid rgba(19,34,56,0.12); border-radius: 6px; padding: 4px 7px;
}
.appbar__tag--button {
  appearance: none; cursor: pointer; min-height: 32px;
  background: rgba(47,111,237,0.07); color: var(--mint);
  border-color: rgba(47,111,237,0.28);
}
.appbar__tag--button:hover { background: rgba(47,111,237,0.12); border-color: rgba(47,111,237,0.45); }
.appbar__acct {
  appearance: none; border: 1px solid rgba(19,34,56,0.12);
  background: rgba(19,34,56,0.03); color: var(--ghost);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur), border-color var(--dur);
}
.appbar__acct:hover { background: rgba(47,111,237,0.08); border-color: rgba(47,111,237,0.3); color: var(--mint); }

/* ── View / scroll area ───────────────────────────────────────────────────── */
.view {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px 18px calc(30px + env(safe-area-inset-bottom));
}
/* Task app: a quick crossfade conveys the screen changed without making a
   stressed homeowner watch content slide in on every tap. */
.screen { animation: screenIn 200ms var(--ease) both; }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }

/* Tap feedback: cards have a hover lift but on touch (no hover) a press-in gives
   tactile confirmation. Quick + subtle; the global reduced-motion guard above
   already collapses the timing. */
.tile:active, .sample:active, .path:active, .maint:active, .unlock:active,
.sharecard:active, button.pro:active, .histcard:active, .passup:active,
.memberstrip:active, .ministrip:active, .phonecta:active, .syscard__del:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 90ms;
}

/* ── Typography helpers ───────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--hfgreen-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--hfgreen); box-shadow: 0 0 10px var(--hfgreen); }
h1.title, h2.title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0;
  line-height: 1.12; margin: 10px 0 8px; text-wrap: balance;
}
h1.title { font-size: 27px; line-height: 1.09; }
h2.title { font-size: 20px; line-height: 1.16; }
/* Headings take programmatic focus on route change (SPA orientation); they're
   tabindex=-1 and never user-focusable, so suppress the input-style ring there. */
h1.title:focus, h2.title:focus { outline: none; }
.lede { color: var(--ghost); font-size: 14.5px; line-height: 1.55; margin: 0 0 4px; max-width: 48ch; }
.mono-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ghost-mute); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  appearance: none; cursor: pointer; font-family: var(--font-sans);
  font-size: 15px; font-weight: 600; border-radius: 12px;
  padding: 14px 18px; width: 100%; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur), opacity var(--dur);
}
.btn:active { transform: translateY(1px) scale(0.997); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary {
  color: var(--iron);
  background: linear-gradient(180deg, var(--hfgreen) 0%, var(--hfgreen-deep) 100%);
  box-shadow: var(--sh-green);
}
.btn--primary:hover:not(:disabled) { box-shadow: 0 10px 30px -6px rgba(31,157,107,0.6); }
.btn--ghost { color: var(--paper); background: rgba(19,34,56,0.05); border-color: rgba(19,34,56,0.12); }
.btn--ghost:hover:not(:disabled) { background: rgba(19,34,56,0.09); border-color: rgba(19,34,56,0.2); }
.btn--quiet { width: auto; background: none; border: none; color: var(--ghost); font-weight: 500; padding: 10px 12px; min-height: 44px; }
.btn--quiet:hover { color: var(--paper); }
.btn-row { display: grid; gap: 10px; margin-top: 16px; }

/* ── Cards / surfaces ─────────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid rgba(19,34,56,0.10);
  border-radius: var(--r); padding: 16px;
}
.tile {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #ffffff; border: 1px solid rgba(19,34,56,0.10);
  border-radius: var(--r); padding: 16px; cursor: pointer; color: var(--paper);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur);
}
.tile:hover { background: rgba(19,34,56,0.07); border-color: rgba(19,34,56,0.18); transform: translateY(-2px); }
.tile__icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(31,157,107,0.18), rgba(47,111,237,0.22));
  border: 1px solid rgba(31,157,107,0.28); color: var(--hfgreen);
}
.tile__body { flex: 1; min-width: 0; }
.tile__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0; }
.tile__sub { display: block; color: var(--ghost); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.tile__chev { color: var(--ghost-mute); flex: 0 0 auto; }
/* minmax(0,1fr): without it, a grid item's default min-width:auto lets a
   nowrap child (e.g. a long history title) blow the column past the device. */
.stack { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }

/* ── Trust strip ──────────────────────────────────────────────────────────── */
.trust { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.trust span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--ghost); border: 1px solid rgba(19,34,56,0.10);
  border-radius: 999px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 6px;
}
.trust svg { color: var(--hfgreen); }

/* ── Chips ────────────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; cursor: pointer; font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--paper); background: #ffffff;
  border: 1px solid rgba(19,34,56,0.14); border-radius: 999px; padding: 8px 14px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.chip:hover { background: rgba(19,34,56,0.08); }
.chip[aria-pressed="true"] { background: rgba(31,157,107,0.16); border-color: rgba(31,157,107,0.5); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--hfgreen); }

/* ── Dropzone / sample photos ─────────────────────────────────────────────── */
.dropzone {
  border: 1.5px dashed rgba(31,157,107,0.4); border-radius: var(--r-lg);
  background: rgba(31,157,107,0.05); padding: 30px 18px; text-align: center; cursor: pointer;
  transition: background var(--dur), border-color var(--dur);
}
.dropzone:hover { background: rgba(31,157,107,0.09); border-color: rgba(31,157,107,0.6); }
.dropzone__icon { color: var(--hfgreen); margin-bottom: 10px; }
.dropzone__title { font-weight: 600; font-size: 15px; }
.dropzone__sub { color: var(--ghost); font-size: 12.5px; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.dropzone__sub svg { width: 13px; height: 13px; color: var(--hfgreen); flex: 0 0 auto; }
.preview {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid rgba(19,34,56,0.1); aspect-ratio: 4 / 3; background: var(--steel);
}
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview__clear {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 8px;
  background: rgba(19,34,56,0.62); border: 1px solid rgba(255,255,255,0.45); color: #fff;
  cursor: pointer; display: grid; place-items: center;
}

.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sample {
  position: relative; appearance: none; cursor: pointer; border: 1px solid rgba(19,34,56,0.1);
  border-radius: var(--r-sm); overflow: hidden; background: var(--steel); padding: 0; text-align: left;
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.sample:hover { transform: translateY(-2px); border-color: rgba(31,157,107,0.5); }
.sample__img { aspect-ratio: 1; display: grid; place-items: center; color: rgba(19,34,56,0.85); }
.sample__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; color: var(--ghost); padding: 6px 7px; text-transform: uppercase; }
.sample__tag {
  position: absolute; top: 6px; right: 6px;
  font-family: var(--font-mono); font-size: 8px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 5px; border-radius: 5px; color: var(--iron);
}
.sample__tag[data-tag="DIY"] { background: var(--hfgreen); }
.sample__tag[data-tag="Pro"] { background: var(--signal); }
.sample__tag[data-tag="Urgent"] { background: var(--sev-emergency); color: #fff; }
.s-plumbing { background: linear-gradient(155deg, #DDE8FF, #F5F8FC); }
.s-electrical { background: linear-gradient(155deg, #FEF3C7, #F5F8FC); }
.s-landscaping { background: linear-gradient(155deg, #DCF1E6, #F5F8FC); }
.s-hvac { background: linear-gradient(155deg, #FFE3D6, #F5F8FC); }
.s-doors { background: linear-gradient(155deg, #E7EAF2, #F5F8FC); }
.s-drywall { background: linear-gradient(155deg, #ECE6DC, #F5F8FC); }

/* Signed-in account identity block */
.acctid { margin: 6px 0 14px; padding: 16px 15px; border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--steel); box-shadow: var(--sh-card); }
.acctid__row { display: flex; gap: 11px; align-items: center; }
.acctid__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--iron-2); color: var(--hfgreen-deep); flex: 0 0 auto; }
.acctid__icon svg { width: 20px; height: 20px; }
.acctid__who { display: flex; flex-direction: column; min-width: 0; }
.acctid__email { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acctid__sub { color: var(--ghost-mute); font-size: 12px; }
.acctid .field { margin-top: 12px; }
.acctid .btn-row { margin-top: 10px; }

/* Sign-in: 6-digit code field + alternatives */
.codeinput {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700;
  letter-spacing: 0.42em; text-align: center; text-indent: 0.42em;
  padding: 15px 12px;
}
.signin-alt { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; }
.signin-alt__dot { color: var(--ghost-faint); }

/* ── Field ────────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ghost); }
.field input, .field textarea, .field select {
  font-family: var(--font-sans); font-size: 15px; color: var(--white);
  background: rgba(19,34,56,0.05); border: 1px solid rgba(19,34,56,0.12);
  border-radius: 10px; padding: 12px 13px; width: 100%;
  transition: border-color var(--dur), background var(--dur);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ghost-mute); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(31,157,107,0.6); background: rgba(19,34,56,0.07); outline: none; }
/* Keyboard focus keeps the visible mint ring (WCAG 2.4.7); pointer focus gets the border recolor only. */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.field textarea { resize: vertical; min-height: 72px; }

/* ── Analyzing ────────────────────────────────────────────────────────────── */
/* Vertically centered: an anxious wait shouldn't sit in the top third over a
   sea of empty space. */
.analyze { text-align: center; padding: 24px 6px; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.analyze__photo {
  width: 150px; height: 150px; margin: 8px auto 22px; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid rgba(19,34,56,0.1); position: relative; background: var(--steel);
}
.analyze__photo img { width: 100%; height: 100%; object-fit: cover; }
.analyze__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(31,157,107,0.55), transparent);
  height: 40%; animation: scan 1.6s var(--ease) infinite;
}
@keyframes scan { 0% { transform: translateY(-110%); } 100% { transform: translateY(260%); } }
.analyze__steps { display: grid; gap: 10px; max-width: 260px; margin: 0 auto; text-align: left; }
.analyze__step { display: flex; align-items: center; gap: 10px; color: var(--ghost); font-size: 13.5px; opacity: 0.4; transition: opacity 300ms var(--ease), color 300ms; }
.analyze__step.is-on { opacity: 1; color: var(--paper); }
/* Pending = hollow gray · active = spinner · done = filled green check */
.analyze__step .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--edge); flex: 0 0 auto; display: grid; place-items: center; color: #fff; transition: border-color 250ms var(--ease), background 250ms var(--ease); }
.analyze__step.is-active .dot { border-color: transparent; }
.analyze__step.is-done .dot { border-color: var(--hfgreen); background: var(--hfgreen); }
.analyze__step.is-done .dot svg { width: 11px; height: 11px; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(19,34,56,0.18); border-top-color: var(--hfgreen); border-radius: 50%; animation: spin 0.7s linear infinite; }
.analyze__note { display: flex; gap: 8px; align-items: flex-start; max-width: 300px; margin: 24px auto 0; text-align: left; color: var(--ghost-mute); font-size: 12.5px; line-height: 1.5; }
.analyze__note svg { color: var(--hfgreen); flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Diagnosis result ─────────────────────────────────────────────────────── */
.result__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.sev {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  border: 1px solid currentColor; display: inline-flex; align-items: center; gap: 7px;
}
.sev::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sev[data-sev="low"] { color: var(--sev-low); }
.sev[data-sev="medium"] { color: var(--sev-medium); }
.sev[data-sev="high"] { color: var(--sev-high); }
.sev[data-sev="emergency"] { color: var(--sev-emergency); }
.sev[data-sev="uncertain"] { color: var(--sev-uncertain); }
.badge-live {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint); border: 1px solid rgba(47,111,237,0.4); border-radius: 6px; padding: 3px 7px;
  display: inline-flex; align-items: center; gap: 5px;
}
.badge-live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.badge-sample { color: var(--ghost-mute); border-color: rgba(19,34,56,0.14); }
.badge-sample::before { background: var(--ghost-mute); box-shadow: none; }

.priceband {
  margin: 14px 0; padding: 16px; border-radius: var(--r);
  background: linear-gradient(160deg, rgba(31,157,107,0.12), rgba(47,111,237,0.14));
  border: 1px solid rgba(31,157,107,0.28);
}
.priceband__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hfgreen); }
.priceband__range { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: 0; margin-top: 4px; }
.priceband__sub { color: var(--ghost); font-size: 12px; margin-top: 2px; }
/* On high/emergency, price is not the next decision — let the band step back so the
   safety block + recommended pro path own the hierarchy (the green band stays for low/medium). */
.priceband[data-sev="high"], .priceband[data-sev="emergency"] { background: rgba(19,34,56,0.04); border-color: rgba(19,34,56,0.10); }
.priceband[data-sev="high"] .priceband__label, .priceband[data-sev="emergency"] .priceband__label { color: var(--ghost-mute); }

.safety {
  display: flex; gap: 11px; padding: 14px; border-radius: var(--r); margin: 14px 0;
  background: #FEF2F2; border: 1px solid rgba(220,38,38,0.24);
}
.safety svg { color: var(--sev-emergency); flex: 0 0 auto; margin-top: 1px; }
.safety__body strong { display: block; font-size: 14px; margin-bottom: 4px; color: #7F1D1D; }
.safety__body ul { margin: 0; padding-left: 18px; color: #7F1D1D; font-size: 13px; line-height: 1.5; }

.meta-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--ghost); font-size: 12.5px; }
.conf { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(19,34,56,0.12); }
.disclaimer { color: var(--ghost-mute); font-size: 11.5px; line-height: 1.5; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(19,34,56,0.06); }

.paths { display: grid; gap: 10px; margin-top: 16px; }
.path {
  width: 100%; text-align: left; cursor: pointer; color: var(--paper);
  background: #ffffff; border: 1px solid rgba(19,34,56,0.10);
  border-radius: var(--r); padding: 15px; display: flex; gap: 12px; align-items: center;
  transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur);
}
.path:hover { transform: translateY(-2px); background: rgba(19,34,56,0.07); border-color: rgba(19,34,56,0.18); }
.path--primary { background: linear-gradient(160deg, rgba(31,157,107,0.16), rgba(31,157,107,0.06)); border-color: rgba(31,157,107,0.45); }
/* When severity is high, the recommended pro path carries the severity color, not green —
   so the page's accent matches the urgency at a glance, not just the small badge. */
.path--primary[data-sev="high"] { border-color: rgba(255,138,76,0.55); }
.path--primary[data-sev="emergency"] { border-color: rgba(255,82,71,0.6); }
.path__icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(31,157,107,0.14); border: 1px solid rgba(31,157,107,0.3); color: var(--hfgreen); }
.path__t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.path__s { display: block; color: var(--ghost); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.path span:not(.path__icon) { min-width: 0; }

/* ── Steps (DIY) ──────────────────────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 15px; margin: 14px 0 0; }
.steps li { list-style: none; display: flex; gap: 11px; align-items: flex-start; }
.steps li::before {
  counter-increment: s; content: counter(s); flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--hfgreen-deep);
  background: #E5F6EE; border: 1px solid rgba(12,122,82,0.26);
}
.steps li span { font-size: 14px; line-height: 1.5; color: var(--paper); padding-top: 2px; }
.kv { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0; }
.kv div span { display: block; }
.kv .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ghost-mute); }
.kv .v { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 2px; }

/* ── Pro card ─────────────────────────────────────────────────────────────── */
.pro {
  display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: var(--r);
  background: #ffffff; border: 1px solid rgba(19,34,56,0.10); margin-bottom: 10px;
}
button.pro { width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--paper); transition: border-color var(--dur), background var(--dur); }
button.pro:hover { background: rgba(19,34,56,0.07); }
.pro.is-selected { border-color: rgba(31,157,107,0.55); box-shadow: inset 0 0 0 1px rgba(31,157,107,0.4); }
.pro__sel { display: none; align-items: center; gap: 5px; margin-top: 5px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hfgreen); }
.pro.is-selected .pro__sel { display: inline-flex; }
.pro__avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--iron);
  background: linear-gradient(160deg, var(--hfgreen), var(--mint-deep));
}
.pro__name { display: block; font-weight: 600; font-size: 15px; }
.pro__meta { color: var(--ghost); font-size: 12px; margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.pro__price { margin-left: auto; text-align: right; }
.pro__price .v { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.pro__price .k { font-family: var(--font-mono); font-size: 9px; color: var(--ghost-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.tag-verified { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hfgreen); display: inline-flex; align-items: center; gap: 4px; }

.sendbox {
  margin: 14px 0 2px; padding: 14px 15px;
  background: rgba(47,111,237,0.05);
  border: 1px solid rgba(47,111,237,0.18);
  border-radius: var(--r);
}
.sendbox__t {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0; color: var(--paper);
}
.sendbox ul { margin: 9px 0 0; padding-left: 19px; display: grid; gap: 6px; }
.sendbox li { color: var(--ghost); font-size: 12.5px; line-height: 1.45; }

/* ── Paywall ──────────────────────────────────────────────────────────────── */
.paywall { text-align: center; padding: 8px 4px; }
.paywall__price { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: 0; }
.paywall__price small { font-size: 18px; color: var(--ghost); font-weight: 500; }
.paywall__list { list-style: none; padding: 0; margin: 18px auto; max-width: 280px; text-align: left; display: grid; gap: 10px; }
.paywall__list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--paper); }
.paywall__list svg { color: var(--hfgreen); flex: 0 0 auto; margin-top: 2px; }

/* ── Plans (unlock once vs Homeowner pass) ────────────────────────────────── */
.plans { display: grid; gap: 14px; margin: 16px 0 18px; }
.plan {
  text-align: left; border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: var(--steel); padding: 18px; position: relative; box-shadow: var(--sh-card);
}
.plan--featured { border-color: var(--hfgreen); box-shadow: 0 0 0 1px var(--hfgreen), var(--sh-green); }
.plan__badge {
  position: absolute; top: -10px; right: 16px; background: var(--hfgreen); color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.plan__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan__tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ghost-mute); }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: 0; color: var(--white); white-space: nowrap; }
.plan__price small { font-size: 15px; font-weight: 600; color: var(--ghost); letter-spacing: 0; }
.plan__detail { margin: 8px 0 14px; color: var(--ghost); font-size: 13.5px; line-height: 1.5; }
.plan__list { list-style: none; padding: 0; margin: 12px 0 14px; display: grid; gap: 8px; }
.plan__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--paper); }
.plan__list svg { color: var(--hfgreen); flex: 0 0 auto; margin-top: 2px; }
.plan__cta { width: 100%; }
.plans--single { max-width: 420px; margin-inline: auto; }

.locked { filter: blur(6px); user-select: none; pointer-events: none; opacity: 0.7; }

/* ── Homeowner-pass upsell (soft cross-sell card) ─────────────────────────── */
.passup {
  width: 100%; text-align: left; cursor: pointer; margin-top: 16px;
  display: flex; align-items: center; gap: 13px; padding: 14px 15px;
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(47,111,237,0.05), rgba(12,122,82,0.05)), var(--steel);
  box-shadow: var(--sh-card);
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.passup:hover { transform: translateY(-1px); border-color: var(--mint); box-shadow: var(--sh-pop); }
.passup__icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(150deg, var(--mint), var(--hfgreen)); box-shadow: var(--sh-green);
}
.passup__icon svg { width: 20px; height: 20px; }
.passup__body { flex: 1; min-width: 0; }
.passup__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; letter-spacing: 0; color: var(--white); }
.passup__s { display: block; margin-top: 3px; color: var(--ghost); font-size: 12.5px; line-height: 1.4; }
.passup__cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--mint);
}
.passup__cta svg { width: 14px; height: 14px; }

/* ── Active-member strip ──────────────────────────────────────────────────── */
.memberstrip {
  width: 100%; text-align: left; cursor: pointer; margin-top: 16px;
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1px solid rgba(12,122,82,0.30); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(12,122,82,0.07), rgba(12,122,82,0.03)), var(--steel);
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.memberstrip:hover { transform: translateY(-1px); border-color: var(--hfgreen); }
.memberstrip__icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--hfgreen); color: #fff;
}
.memberstrip__icon svg { width: 18px; height: 18px; }
.memberstrip__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.memberstrip__t { font-weight: 700; font-size: 14px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memberstrip__s { font-size: 12px; color: var(--hfgreen-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memberstrip__manage {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--hfgreen-deep);
}
.memberstrip__manage svg { width: 14px; height: 14px; }

/* ── DIY gate (free preview → Homeowner pass) ─────────────────────────────── */
/* DIY acknowledgement gate (consent before showing the walkthrough) */
.diy-ack {
  margin: 6px 0 4px; padding: 18px 17px;
  border: 1px solid rgba(47,111,237,0.28); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(47,111,237,0.07), transparent 70%),
    var(--steel);
  box-shadow: var(--sh-card);
}
.diy-ack__t {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; color: var(--paper);
}
.diy-ack__s { margin: 8px 0 0; color: var(--ghost); font-size: 13px; line-height: 1.5; }
.diy-ack__s strong { color: var(--paper); font-weight: 700; }
.diy-ack__check {
  display: flex; gap: 11px; align-items: flex-start; margin: 14px 0;
  padding: 12px 13px; border: 1px solid var(--edge); border-radius: var(--r);
  background: var(--iron-2); cursor: pointer;
}
.diy-ack__check input {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: var(--hfgreen); cursor: pointer;
}
.diy-ack__check span { color: var(--paper); font-size: 13px; line-height: 1.45; font-weight: 600; }
.diy-ack__cta { width: 100%; margin-bottom: 8px; }
.diy-ack .btn--ghost { width: 100%; }

/* Persistent reminder shown above the steps once acknowledged */
.diy-recnote {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 4px 0 14px; padding: 10px 12px;
  border: 1px solid rgba(245,158,11,0.30); border-radius: var(--r);
  background: rgba(245,158,11,0.07);
  color: var(--ghost); font-size: 12px; line-height: 1.4;
}
.diy-recnote svg { flex: 0 0 auto; margin-top: 1px; color: var(--warn); width: 15px; height: 15px; }

.diy-gate {
  margin: 4px 0 8px; padding: 20px 18px; text-align: center;
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(47,111,237,0.06), transparent 70%),
    linear-gradient(180deg, rgba(12,122,82,0.04), transparent), var(--steel);
  box-shadow: var(--sh-card);
}
.diy-gate__lock {
  width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 12px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(150deg, var(--mint), var(--hfgreen)); box-shadow: var(--sh-green);
}
.diy-gate__lock svg { width: 22px; height: 22px; }
.diy-gate__t { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0; color: var(--white); }
.diy-gate__s { margin: 6px auto 16px; max-width: 38ch; color: var(--ghost); font-size: 13px; line-height: 1.5; }
.diy-gate__cta { width: 100%; max-width: 320px; }
.diy-gate .linkbtn { margin: 12px auto 0; }

/* ── Homeowner-pass member card (manage state) ────────────────────────────── */
.pass-member {
  border: 1px solid rgba(12,122,82,0.28); border-radius: var(--r-lg); background: var(--steel);
  box-shadow: 0 0 0 1px rgba(12,122,82,0.10), var(--sh-card); padding: 18px; margin: 14px 0 18px;
}
.pass-member__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pass-member__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--hfgreen); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.pass-member__badge svg { width: 13px; height: 13px; }
.pass-member__price { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: 0; color: var(--white); }
.pass-member__price small { font-size: 14px; font-weight: 600; color: var(--ghost); }
.pass-member__rows { margin: 16px 0; display: grid; gap: 1px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge-dim); }
.pass-member__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; background: var(--carbon); }
.pass-member__rows .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ghost-mute); }
.pass-member__rows .v { font-size: 13.5px; font-weight: 600; color: var(--paper); }
.pass-member__feats { display: grid; gap: 9px; }
.pass-member__feats > span { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--paper); line-height: 1.45; }
.pass-member__feats svg { color: var(--hfgreen); flex: 0 0 auto; margin-top: 2px; width: 16px; height: 16px; }

/* ── Verdict (quote audit) ────────────────────────────────────────────────── */
.verdict {
  text-align: center; padding: 18px; border-radius: var(--r-lg); margin: 6px 0 16px;
  border: 1px solid currentColor;
}
.verdict[data-v="fair"] { color: var(--sev-low); background: rgba(31,157,107,0.08); }
.verdict[data-v="high"], .verdict[data-v="very_high"] { color: var(--sev-high); background: rgba(255,138,76,0.08); }
.verdict[data-v="uncertain"] { color: var(--sev-uncertain); background: #ffffff; }
.verdict__big { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: 0; }
.verdict__sub { color: var(--paper); font-size: 13.5px; margin-top: 6px; opacity: 0.9; }

/* ── Confirm / success ────────────────────────────────────────────────────── */
.confirm { text-align: center; padding: 22px 8px; }
.confirm__check {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: rgba(31,157,107,0.14); border: 1px solid rgba(31,157,107,0.4); color: var(--hfgreen);
  animation: pop 380ms var(--ease) both;
}
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.recap { text-align: left; margin: 16px 0; }
.recap div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(19,34,56,0.06); font-size: 13.5px; }
.recap div:last-child { border-bottom: none; }
.recap .k { color: var(--ghost); }
.recap .v { color: var(--paper); font-weight: 500; text-align: right; }

/* ── Lifecycle nudge ──────────────────────────────────────────────────────── */
.nudge {
  margin-top: 16px; padding: 14px; border-radius: var(--r); display: flex; gap: 11px; align-items: center;
  background: linear-gradient(160deg, rgba(47,111,237,0.3), rgba(31,157,107,0.08)); border: 1px solid rgba(19,34,56,0.1);
}
.nudge svg { color: var(--mint); flex: 0 0 auto; }
.nudge p { margin: 0; font-size: 13px; color: var(--paper); line-height: 1.45; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast-host { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; z-index: var(--z-toast); pointer-events: none; padding: 0 18px; }
.toast {
  background: rgba(13,19,33,0.96); border: 1px solid rgba(255,255,255,0.12); color: #fff;
  font-size: 13px; padding: 11px 15px; border-radius: 12px; box-shadow: var(--sh-pop);
  animation: toastIn 240ms var(--ease) both; max-width: 100%;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.section-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ghost); margin: 22px 0 10px; }
.divider { height: 1px; background: rgba(19,34,56,0.07); margin: 18px 0; border: none; }
.center { text-align: center; }

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .analyze__photo::after { display: none; }
  .sheet { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Depth pass (2026-06-04): QR handoff · DIY depth · audit · history · maint
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Small link button (Clear, Try a sample) ──────────────────────────────── */
.linkbtn {
  appearance: none; cursor: pointer; background: none; border: none; padding: 4px 2px; min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px; color: var(--ghost);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color var(--dur);
}
.linkbtn:hover { color: var(--paper); }
.linkbtn svg { color: var(--ghost-mute); }
.linkbtn:hover svg { color: var(--hfgreen); }
.linkbtn--inline { margin-top: -6px; }

/* ── Desktop "use your phone" CTA + or-rule ───────────────────────────────── */
.phonecta {
  width: 100%; text-align: left; cursor: pointer; color: var(--paper); margin-top: 16px;
  display: flex; gap: 13px; align-items: center; padding: 15px;
  background: linear-gradient(160deg, rgba(47,111,237,0.12), rgba(47,111,237,0.18));
  border: 1px solid rgba(47,111,237,0.32); border-radius: var(--r);
  transition: transform var(--dur) var(--ease), border-color var(--dur), background var(--dur);
}
.phonecta:hover { transform: translateY(-2px); border-color: rgba(47,111,237,0.55); }
.phonecta__icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(47,111,237,0.14); border: 1px solid rgba(47,111,237,0.3); color: var(--mint);
}
.phonecta__body { flex: 1; min-width: 0; }
.phonecta__t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.phonecta__s { display: block; color: var(--ghost); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.phonecta .tile__chev, .phonecta > svg:last-child { color: var(--ghost-mute); flex: 0 0 auto; }
.or-rule {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  color: var(--ghost-mute); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.or-rule::before, .or-rule::after { content: ''; flex: 1; height: 1px; background: rgba(19,34,56,0.08); }

/* ── QR sheet (modal over the device) ─────────────────────────────────────── */
.sheet-backdrop {
  position: absolute; inset: 0; z-index: var(--z-sheet);
  background: rgba(3,6,14,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; padding: 14px;
}
@media (min-width: 760px) { .sheet-backdrop { align-items: center; } }
.sheet {
  position: relative; width: 100%; max-width: 360px;
  background: linear-gradient(180deg, var(--carbon), var(--steel));
  border: 1px solid rgba(19,34,56,0.12); border-radius: var(--r-lg);
  box-shadow: var(--sh-pop); padding: 22px 20px 20px; animation: sheetIn 280ms var(--ease) both;
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
.sheet__close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  background: rgba(19,34,56,0.05); border: 1px solid rgba(19,34,56,0.12); color: var(--ghost);
  display: grid; place-items: center; transition: background var(--dur), color var(--dur);
}
.sheet__close:hover { background: rgba(19,34,56,0.1); color: var(--paper); }
.qr-card {
  background: #fff; border-radius: var(--r); padding: 16px; margin: 16px auto 10px; width: 200px; height: 200px;
  display: grid; place-items: center;
}
.qr-card svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.qr-card svg rect { fill: #fff; }          /* keep the quiet-zone background white */
.qr-card svg path { fill: #0A1020; }       /* dark-navy modules: high contrast, scannable */
.qr-loading { color: var(--iron); }
.qr-loading .spinner { border-color: rgba(10,16,32,0.2); border-top-color: var(--hfnavy); }
.qr-fail { color: var(--iron); font-size: 12px; text-align: center; padding: 0 10px; }
.qr-note { color: var(--ghost); font-size: 12.5px; text-align: center; margin: 0 0 6px; line-height: 1.5; }
.qr-note--ok { color: var(--mint); }

/* ── History (recent reads) ───────────────────────────────────────────────── */
.histcard {
  width: 100%; text-align: left; cursor: pointer; color: var(--paper);
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: #ffffff; border: 1px solid rgba(19,34,56,0.08); border-radius: var(--r);
  transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur);
}
.histcard:hover { transform: translateY(-1px); background: rgba(19,34,56,0.06); border-color: rgba(19,34,56,0.16); }
.histcard__thumb {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; color: rgba(19,34,56,0.85);
  background: var(--steel); border: 1px solid rgba(19,34,56,0.08);
}
.histcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.histcard__thumb.is-audit { color: var(--signal); background: rgba(0,200,255,0.08); }
.histcard__body { flex: 1; min-width: 0; }
.histcard__title { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.histcard__meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.histcard__meta .sev { font-size: 9.5px; padding: 3px 7px; }
.histcard__tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); border: 1px solid rgba(0,200,255,0.3); border-radius: 999px; padding: 3px 8px; }
.histcard__time { font-family: var(--font-mono); font-size: 10px; color: var(--ghost-mute); }

/* ── Maintenance / mini-strip ─────────────────────────────────────────────── */
.ministrip {
  width: 100%; text-align: left; cursor: pointer; color: var(--paper); margin-top: 18px;
  display: flex; gap: 12px; align-items: center; padding: 14px;
  background: #ffffff; border: 1px dashed rgba(19,34,56,0.18); border-radius: var(--r);
  transition: background var(--dur), border-color var(--dur);
}
.ministrip:hover { background: rgba(19,34,56,0.06); border-color: rgba(31,157,107,0.4); }
.ministrip__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(31,157,107,0.12); border: 1px solid rgba(31,157,107,0.28); color: var(--hfgreen); }
.ministrip__body { flex: 1; min-width: 0; }
.ministrip__t { display: block; font-weight: 600; font-size: 14px; }
.ministrip__s { display: block; color: var(--ghost); font-size: 12px; margin-top: 2px; line-height: 1.4; }
.maint {
  width: 100%; text-align: left; cursor: pointer; color: var(--paper);
  display: flex; gap: 12px; align-items: center; padding: 14px;
  background: #ffffff; border: 1px solid rgba(19,34,56,0.10); border-radius: var(--r);
  transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur);
}
.maint:hover { transform: translateY(-2px); background: rgba(19,34,56,0.07); border-color: rgba(19,34,56,0.18); }
.maint__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(31,157,107,0.18), rgba(47,111,237,0.22)); border: 1px solid rgba(31,157,107,0.28); color: var(--hfgreen); }
.maint__body { flex: 1; min-width: 0; }
.maint__t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.maint__s { display: block; color: var(--ghost); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }

/* ── DIY depth ────────────────────────────────────────────────────────────── */
.diy-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.diy-meta__cell { display: flex; gap: 9px; align-items: center; min-width: 0; padding: 12px; background: #ffffff; border: 1px solid rgba(19,34,56,0.12); border-radius: var(--r-sm); }
.diy-meta__cell > span:last-child { min-width: 0; }
.diy-meta__icon { flex: 0 0 auto; color: var(--hfgreen-deep); display: grid; place-items: center; }
.diy-meta__icon svg { width: 17px; height: 17px; }
.diy-meta__k { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ghost); white-space: nowrap; }
.diy-meta__v { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.2; margin-top: 2px; color: var(--paper); }
.diy-save {
  margin: 16px 0 18px; padding: 14px 15px; border-radius: var(--r);
  background: #EAF8F2;
  border: 1px solid rgba(12,122,82,0.22);
}
.diy-save__big { font-family: var(--font-sans); font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--paper); }
.diy-save__sub { color: var(--ghost); font-size: 12.5px; margin-top: 4px; line-height: 1.45; }
.toolrow { display: flex; flex-wrap: wrap; gap: 9px; }
.toolchip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 13px; border-radius: 999px; background: #ffffff; border: 1px solid rgba(19,34,56,0.14); font-size: 13px; font-weight: 500; color: var(--paper); }
.toolchip svg { color: var(--ghost); width: 16px; height: 16px; }

.steps--diy li { align-items: stretch; }
.step__body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding-top: 0; }
.step__text { font-size: 14.5px; line-height: 1.55; color: var(--paper); }
.step__tip, .step__caution { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; border-radius: 8px; padding: 9px 11px; }
.step__tip { background: #EAF8F2; border: 1px solid rgba(12,122,82,0.24); color: #244D43; }
.step__tip svg { color: var(--hfgreen-deep); flex: 0 0 auto; margin-top: 2px; width: 16px; height: 16px; }
.step__caution { background: #FFF7E8; border: 1px solid rgba(245,158,11,0.28); color: #5F3F09; }
.step__caution svg { color: #A86608; flex: 0 0 auto; margin-top: 2px; width: 16px; height: 16px; }
.step__stuck {
  align-self: flex-start; appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px;
  background: none; border: none; padding: 2px 0; color: var(--ghost);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--dur);
}
.step__stuck:hover { color: var(--hfgreen); }

/* ── Parts list (buy-links) ───────────────────────────────────────────────── */
.parts { display: grid; gap: 10px; }
.part { padding: 13px 14px; background: #ffffff; border: 1px solid rgba(19,34,56,0.10); border-radius: var(--r); }
.part__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.part__name { font-weight: 600; font-size: 14px; }
.part__qty { font-family: var(--font-mono); font-size: 11px; color: var(--ghost-mute); }
.part__price { font-family: var(--font-mono); font-size: 12px; color: var(--hfgreen); white-space: nowrap; }
.part__links { display: flex; gap: 8px; margin-top: 10px; }
.part__link {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 8px;
  background: rgba(19,34,56,0.05); border: 1px solid rgba(19,34,56,0.12); color: var(--paper);
  font-size: 12.5px; font-weight: 500; text-decoration: none; transition: background var(--dur), border-color var(--dur);
}
.part__link:hover { background: rgba(31,157,107,0.12); border-color: rgba(31,157,107,0.4); }
.part__link svg { color: var(--ghost-mute); }

/* ── Secondary issues (We also noticed) ───────────────────────────────────── */
.secondary { display: grid; gap: 10px; }
.secondary__item { display: flex; gap: 11px; align-items: flex-start; padding: 13px; background: #ffffff; border: 1px solid rgba(19,34,56,0.08); border-radius: var(--r); }
.secondary__item .sev { flex: 0 0 auto; margin-top: 1px; }
.secondary__body { min-width: 0; }
.secondary__issue { font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.secondary__why { color: var(--ghost-mute); font-size: 12px; margin-top: 3px; line-height: 1.45; }

/* ── Quote audit: compare + line items + unlock ───────────────────────────── */
.compare {
  display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; padding: 14px 16px;
  background: #ffffff; border: 1px solid rgba(19,34,56,0.10); border-radius: var(--r);
}
.compare__col { flex: 1; min-width: 0; }
.compare__k { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ghost-mute); }
.compare__v { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0; margin-top: 3px; white-space: nowrap; }
.compare__v--fair { color: var(--hfgreen); }
.compare__arrow { color: var(--ghost-faint); flex: 0 0 auto; }
.compare__arrow svg { display: block; }

.audit-lines { display: grid; gap: 10px; }
.audit-line { padding: 13px 14px; background: #ffffff; border: 1px solid rgba(19,34,56,0.09); border-radius: var(--r); }
/* The overcharged lines are the whole point of the audit — tint them so they
   read at a glance. Fair/unknown stay neutral; the tag carries the rest. */
.audit-line[data-assess="high"] { background: #FDF4EC; border-color: rgba(234,88,12,0.30); }
.audit-line__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.audit-line__desc { font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.audit-line__quoted { font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; }
.audit-line__meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.audit-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; }
.audit-tag--high { color: var(--sev-high); }
.audit-tag--fair { color: var(--sev-low); }
.audit-tag--unknown { color: var(--ghost-mute); }
.audit-line__fair { font-family: var(--font-mono); font-size: 11px; color: var(--ghost); }
.audit-line__note { color: var(--ghost-mute); font-size: 12px; margin-top: 8px; line-height: 1.5; }

.askbox {
  margin: 12px 0 16px; padding: 14px 15px;
  background: #ffffff; border: 1px solid rgba(234,88,12,0.22);
  border-radius: var(--r); box-shadow: 0 10px 24px -20px rgba(19,34,56,0.28);
}
.askbox__t {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0; color: var(--paper);
}
.askbox ul { margin: 9px 0 0; padding-left: 19px; display: grid; gap: 6px; }
.askbox li { color: var(--ghost); font-size: 12.5px; line-height: 1.45; }

.audit-lines--locked { position: relative; padding-bottom: 18px; -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent); mask-image: linear-gradient(180deg, #000 66%, transparent); }
.audit-line--ghost {
  height: 56px; border-style: solid; border-color: var(--edge);
  background:
    linear-gradient(rgba(19,34,56,0.07) 0 0) no-repeat 14px 18px / 46% 11px,
    linear-gradient(rgba(19,34,56,0.05) 0 0) no-repeat 14px 35px / 28% 9px,
    #ffffff;
}
.audit-lines--locked .audit-line:first-child { filter: none; opacity: 1; }
.unlock {
  width: 100%; text-align: left; cursor: pointer; color: var(--paper); margin-top: -16px; position: relative; z-index: 1;
  display: flex; gap: 12px; align-items: center; padding: 15px;
  background: linear-gradient(160deg, rgba(31,157,107,0.18), rgba(47,111,237,0.2));
  border: 1px solid rgba(31,157,107,0.45); border-radius: var(--r); box-shadow: var(--sh-pop);
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.unlock:hover { transform: translateY(-2px); border-color: rgba(31,157,107,0.7); }
.unlock__icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(31,157,107,0.16); border: 1px solid rgba(31,157,107,0.32); color: var(--hfgreen); }
.unlock__body { flex: 1; min-width: 0; }
.unlock__t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.unlock__s { display: block; color: var(--ghost); font-size: 12px; margin-top: 2px; line-height: 1.4; }

.analyze__photo--doc { display: grid; place-items: center; color: var(--signal); background: rgba(0,200,255,0.07); }
.analyze__photo--doc svg { width: 56px; height: 56px; }

/* ── Share card (referral nudge) ──────────────────────────────────────────── */
.sharecard {
  width: 100%; text-align: left; cursor: pointer; color: var(--paper); margin-top: 14px;
  display: flex; gap: 12px; align-items: center; padding: 14px;
  background: rgba(19,34,56,0.04); border: 1px solid rgba(19,34,56,0.1); border-radius: var(--r);
  transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur);
}
.sharecard:hover { transform: translateY(-2px); background: rgba(19,34,56,0.07); border-color: rgba(47,111,237,0.4); }
.sharecard__icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(47,111,237,0.12); border: 1px solid rgba(47,111,237,0.3); color: var(--mint); }
.sharecard__body { flex: 1; min-width: 0; }
.sharecard__t { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.sharecard__s { display: block; color: var(--ghost); font-size: 12px; margin-top: 3px; line-height: 1.4; }

/* ── My home: profile fields + tracked systems ────────────────────────────── */
.hp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.emptybox {
  display: flex; gap: 13px; align-items: flex-start; padding: 18px;
  border: 1px dashed var(--edge); border-radius: var(--r-lg); background: var(--carbon);
}
.emptybox > svg { color: var(--hfgreen); flex: 0 0 auto; opacity: 0.85; }
.emptybox__body { min-width: 0; }
.emptybox__body strong { display: block; font-size: 14px; color: var(--white); }
.emptybox__body span { display: block; color: var(--ghost); font-size: 12.5px; line-height: 1.5; margin-top: 3px; }

.syscards { display: grid; gap: 10px; }
.syscard {
  display: flex; gap: 12px; align-items: center; padding: 12px 13px;
  background: var(--steel); border: 1px solid var(--edge); border-radius: var(--r);
}
.syscard__icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--graphite); color: var(--hfnavy);
}
.syscard__icon svg { width: 21px; height: 21px; }
.syscard__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.syscard__name { font-weight: 600; font-size: 14px; color: var(--white); }
.syscard__status { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--ghost-mute); }
/* The age signal — money lives in the equipment, so flag what's aging. */
.syscard[data-tone="good"] .syscard__icon { background: rgba(31,157,107,0.12); color: var(--hfgreen-deep); }
.syscard[data-tone="good"] .syscard__status { color: var(--hfgreen-deep); }
.syscard[data-tone="warn"] .syscard__icon { background: rgba(245,158,11,0.16); color: var(--warn); }
.syscard[data-tone="warn"] .syscard__status { color: #8A5A12; }  /* darker amber — 10.5px text needs AA 4.5:1 on white */
.syscard[data-tone="high"] .syscard__icon { background: rgba(234,88,12,0.14); color: var(--sev-high); }
.syscard[data-tone="high"] .syscard__status { color: #C2410C; }  /* darker orange — same reason */
.syscard__del {
  appearance: none; cursor: pointer; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px;
  background: none; border: 1px solid transparent; color: var(--ghost-faint);
  display: grid; place-items: center; transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.syscard__del:hover { background: rgba(220,38,38,0.08); color: var(--sev-emergency); border-color: rgba(220,38,38,0.25); }
.syscard__del svg { width: 17px; height: 17px; }

.addsys { display: flex; gap: 8px; align-items: stretch; }
.addsys__type { flex: 1; min-width: 0; }
.addsys__year { width: 86px; flex: 0 0 auto; }
.addsys__type, .addsys__year {
  font-family: var(--font-sans); font-size: 14.5px; color: var(--white);
  background: rgba(19,34,56,0.05); border: 1px solid rgba(19,34,56,0.12);
  border-radius: 10px; padding: 11px 12px; height: 46px;
}
.addsys__type:focus-visible, .addsys__year:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.addsys__add { width: auto; flex: 0 0 auto; padding-inline: 18px; min-height: 46px; }

/* ── Seasonal checklist: current season first ─────────────────────────────── */
.season-head { display: flex; align-items: center; gap: 9px; margin: 20px 0 10px; }
.season-head__s { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ghost-mute); }
.season-head--now .season-head__s { color: var(--hfgreen-deep); }
.season-head__now {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--hfgreen); padding: 3px 8px; border-radius: 999px;
}
.maint--now { border-color: rgba(12,122,82,0.32); background: linear-gradient(180deg, rgba(12,122,82,0.05), transparent), var(--steel); }
.maint--now .maint__icon { background: rgba(12,122,82,0.14); border-color: rgba(12,122,82,0.32); color: var(--hfgreen-deep); }
