/* homeinspectapp.com — the app's own look: system type, system blue, white
   (Jay, 2026-10-20: no black backgrounds), no outside fonts or scripts (the
   privacy policy's promise).
   Layout: one column of wide, rounded panels; the drawings the app makes
   float on them as paper sheets. */
:root {
  --blue: #007aff;
  --blue-ink: #0066d6;
  --btn: #1d1d1f;
  --btn-fg: #f5f5f7;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --panel: linear-gradient(160deg, #e6f0ff 0%, #f2f6ff 50%, #dce9ff 100%);
  --blue-deep: linear-gradient(160deg, #0a63d6 0%, #007aff 55%, #2b8dff 100%);
  --band: #f3f7ff;
  --card: #f5f5f7;
  --card-on-2: #ffffff;
  --paper: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --bar: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 60px rgba(20, 30, 50, 0.14), 0 2px 8px rgba(20, 30, 50, 0.06);
  --shadow-soft: 0 10px 30px rgba(20, 30, 50, 0.08);
  --radius: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; } }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* The bar on top */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 0.875rem; }
.bar nav a { color: var(--fg-2); white-space: nowrap; }
@media (hover: hover) { .bar nav a:hover { text-decoration: none; color: var(--fg); } .bar nav .pill:hover { color: #fff; } }
.bar nav .pill { background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; }
@media (max-width: 760px) { .bar nav .more { display: none; } }

/* Sections */
section { padding-block: clamp(40px, 7vw, 88px); scroll-margin-top: 64px; }
section.alt { background: var(--band); }
.alt .step, .alt .tool, .alt .card, .alt .price { background: var(--card-on-2); }
.head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.eyebrow { color: var(--blue-ink); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.lead { color: var(--fg-2); font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.45; margin-top: 18px; font-weight: 400; }

/* The opening */
.hero { padding-block: clamp(48px, 8vw, 96px) 0; text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto; }
.hero .lead { max-width: 620px; margin: 22px auto 0; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1; }
.btn.dark { background: var(--blue); color: #fff; }
.btn.light { background: var(--card); color: var(--fg); }
@media (hover: hover) { .btn.dark:hover { text-decoration: none; opacity: 0.9; } .btn.light:hover { text-decoration: none; background: var(--line); } }
.btn.soon { border: 1px solid rgba(0, 122, 255, 0.35); color: var(--blue-ink); cursor: default; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The board: the panel the sheets float on */
.board { position: relative; margin-top: clamp(40px, 6vw, 72px); background: var(--panel); border-radius: var(--radius); padding: clamp(24px, 5vw, 64px); min-height: 200px; }
.sheet { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(14px, 2.5vw, 28px); }
.sheet img { width: 100%; height: auto; }
.board .main { max-width: 780px; margin: 0 auto; }
.board .float { position: absolute; width: 26%; max-width: 300px; padding: 14px; border-radius: 14px; }
.board .float.left { left: 2.5%; bottom: 5%; transform: rotate(-3deg); }
.board .float.right { right: 1%; top: 4%; transform: rotate(2.5deg); }
@media (max-width: 760px) { .board .float { display: none; } }

/* The facts strip */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 40px; color: var(--fg-2); font-size: 0.9375rem; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .facts { display: grid; grid-template-columns: 1fr 1fr; text-align: left; gap: 10px 16px; } .facts span { align-items: flex-start; } }

/* The four tools, as cards with their drawings */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr 1fr; gap: 10px; } .tool { padding: 12px 12px 14px; border-radius: 16px; } .tool h3 { font-size: 1rem; } .tool p { font-size: 0.8125rem; } .tool .sheet { padding: 8px; } }
.tool { background: var(--card); border-radius: 24px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--fg); }
@media (hover: hover) { .tool:hover { text-decoration: none; } }
.tool .sheet { padding: 12px; border-radius: 14px; box-shadow: var(--shadow-soft); margin-bottom: 10px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tool .sheet img { max-height: 100%; width: auto; max-width: 100%; }
.tool h3 { font-size: 1.25rem; }
.tool p { color: var(--fg-2); font-size: 0.9375rem; }
.tool .go { color: var(--blue-ink); font-weight: 600; font-size: 0.9375rem; margin-top: 4px; }

/* The steps, like the app's How to Use pages: compact, three to a row on a
   desk, two on a phone (Jay, 2026-10-20: "too much to scroll down … stack
   more in each row"); the tips fold under each card. */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.step { background: var(--card); border-radius: 20px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.step .n { color: var(--blue-ink); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.step h3 { font-size: 1.0625rem; margin: 0; }
.step .pic { margin: 4px 0; width: 100%; }
.step .pic video { width: 100%; border-radius: 12px; background: var(--card); aspect-ratio: 380 / 290; box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.08); }
.step .pic.tall video { aspect-ratio: 380 / 370; }
.step .lead { font-size: 0.875rem; line-height: 1.4; margin-top: 0; color: var(--fg); font-weight: 500; }
.more { margin-top: 2px; }
.more summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; font-size: 0.8125rem; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.more[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.tips { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tips li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8125rem; line-height: 1.4; color: var(--fg-2); }
.tips li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.45em; border-radius: 50%; background: var(--blue); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step { padding: 12px 12px 10px; border-radius: 16px; gap: 4px; }
  .step h3 { font-size: 0.9375rem; }
  .step .lead { font-size: 0.8125rem; }
  .step .pic video { border-radius: 10px; }
}

/* A chapter's own drawing beside its words */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 48px; }
.split .head { text-align: left; margin: 0; }
.split .sheet { padding: clamp(16px, 2.5vw, 28px); }
.split .step { margin: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; } .split .head { text-align: center; } .split .sheet img { max-height: 220px; width: auto; max-width: 100%; margin: 0 auto; } }

/* Three cards across */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); padding: 30px 28px 32px; min-width: 0; }
.card svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(0, 122, 255, 0.1); fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-2); font-size: 1rem; }

/* The panel: one PDF, its sheets fanned */
.ink { background: var(--panel); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); overflow: hidden; margin-bottom: 44px; }
.ink .head { margin-bottom: 36px; }
.fan { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); align-items: end; }
.fan .sheet { padding: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.fan .sheet:nth-child(2) { transform: translateY(-14px); }
@media (max-width: 760px) { .fan { grid-template-columns: 1fr 1fr; } .fan .sheet:nth-child(3) { display: none; } .fan .sheet:nth-child(2) { transform: none; } }
.ink .pages { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 28px; color: var(--fg-2); font-size: 0.9375rem; }
.ink .pages b { color: var(--fg); font-weight: 600; }

/* The price: the app's blue */
.price { max-width: 560px; margin: 0 auto; text-align: center; background: var(--blue-deep); color: #fff; border-radius: var(--radius); padding: 44px 28px; box-shadow: var(--shadow); }
.price .eyebrow { color: rgba(255, 255, 255, 0.8); }
.price .big { font-size: clamp(2.75rem, 7vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price .big small { font-size: 0.4em; color: rgba(255, 255, 255, 0.8); font-weight: 500; letter-spacing: -0.01em; }
.price p { color: rgba(255, 255, 255, 0.88); margin-top: 14px; }
.price .btn.soon { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.price .soon { display: inline-block; margin-top: 22px; padding: 11px 20px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 0.9375rem; }

/* Pages of words: support, privacy, terms */
.article { max-width: 680px; margin: 0 auto; padding-block: 56px 80px; }
.article h1 { font-size: clamp(2.25rem, 6vw, 3rem); }
.article .updated { color: var(--fg-2); margin: 10px 0 36px; }
.article h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 40px 0 10px; }
.article p, .article li { font-size: 1.0625rem; line-height: 1.6; }
.article p + p { margin-top: 14px; }
.article ul { padding-left: 22px; margin: 10px 0; }
.article li + li { margin-top: 8px; }
.draft { background: rgba(255, 159, 10, 0.14); border: 1px solid rgba(255, 159, 10, 0.5); border-radius: 14px; padding: 12px 16px; margin: 0 0 28px; }
mark { background: rgba(255, 214, 10, 0.55); color: inherit; padding: 0 3px; border-radius: 3px; }

/* The 3D models, on the app's blue */
.models { background: var(--blue-deep); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.models .head { margin-bottom: 28px; }
.models h2 { color: #fff; }
.models .lead { color: rgba(255, 255, 255, 0.85); }
.models .eyebrow { color: rgba(255, 255, 255, 0.8); }
.models .row { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(12px, 2vw, 24px); align-items: stretch; }
.models .sheet { padding: 14px; border-radius: 16px; display: flex; align-items: center; justify-content: center; height: 100%; }
.models .sheet img { width: 100%; height: auto; }
.models .stack { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.models figure { display: flex; flex-direction: column; min-width: 0; }
.models figure .sheet { flex: 1; }
.models figcaption { color: rgba(255, 255, 255, 0.85); font-size: 0.9375rem; margin-top: 10px; text-align: center; }
@media (max-width: 760px) { .models .row { grid-template-columns: 1fr; } }

/* The foot */
footer { border-top: 1px solid var(--line); padding-block: 28px 44px; color: var(--fg-2); font-size: 0.8125rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--fg-2); }
@media (hover: hover) { footer a:hover { color: var(--blue); } }

/* Gentle motion: blocks rise as they come up, only with scripts on and
   motion allowed; everything is in place without either. */
@media (prefers-reduced-motion: no-preference) {
  html.js .rise { opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
  html.js .rise.in { opacity: 1; transform: none; }
}
@media print { html.js .rise { opacity: 1; transform: none; } }

/* The page for a wrong address */
.lost { text-align: center; padding-block: 96px; }
.lost p { color: var(--fg-2); margin: 14px 0 28px; }
