/* Localpage: landing page (follows the Static QR page)
   Three colors only: ink, paper, and the blue from the app icon. */

:root {
  --paper: #f7f7fc;
  --ink: #1d1d1f;
  --accent: #5566e8;

  --ink-2: rgba(29, 29, 31, 0.62);
  --hair: rgba(29, 29, 31, 0.1);
  --tint: rgba(85, 102, 232, 0.1);
  --shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 24px 50px -22px rgba(50, 60, 160, 0.28);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1018;
    --ink: #f5f5f7;
    --accent: #8da0ff;
    --ink-2: rgba(245, 245, 247, 0.62);
    --hair: rgba(245, 245, 247, 0.12);
    --tint: rgba(141, 160, 255, 0.14);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 620px; }

/* Bar */

.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--hair);
}
.bar-row { height: 52px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; }
.bar-link { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.bar-link:hover { color: var(--ink); }

/* Hero */

.hero { text-align: center; padding-top: 88px; }
.hero-icon { margin: 0 auto 28px; width: 96px; filter: drop-shadow(0 10px 22px rgba(60, 70, 200, 0.28)); }
h1 {
  font: 700 clamp(40px, 7vw, 68px)/1.04 var(--display);
  letter-spacing: -0.035em;
}
.lede { margin: 20px auto 0; max-width: 560px; color: var(--ink-2); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.lede span { display: block; }

.badge {
  display: inline-block; margin-top: 28px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--tint); color: var(--ink);
  font-size: 14px; font-weight: 500;
}

/* Mac windows: real screenshots in a thin outline, corners matching macOS */

.mac {
  border-radius: 1.15% / 1.85%;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair), var(--shadow);
}
.mac img { width: 100%; }
.mac-hero { width: min(980px, 100%); margin: 64px auto 0; }

/* Live window preview (hero). Real text, so it stays sharp at any size. */

.demo { margin: 64px auto 0; width: min(980px, 100%); }
.app {
  --side: #1d2036; --side-ink: #e9ebf6; --side-muted: #8d93b3; --side-sel: rgba(255,255,255,.08); --sel-ink: #8da0ff;
  --page: #141831;
  display: grid; grid-template-columns: 210px 1fr; height: 560px; text-align: left;
  border-radius: 14px; overflow: hidden; background: var(--page);
  box-shadow: 0 0 0 1px var(--hair), var(--shadow);
  font: 13px/1.5 var(--font); letter-spacing: 0;
  transition: background .25s ease;
}
.app[data-chrome="light"] { --side: #ecebf0; --side-ink: #1d1f2e; --side-muted: #5c5f72; --side-sel: rgba(0,0,0,.06); --sel-ink: #3a48c4; }
.app[data-page="log"][data-theme="paper"] { --page: #fbfaf7; }
.app[data-page="log"][data-theme="ink"] { --page: #1e1f22; --side: #27282c; }
.app[data-page="log"][data-theme="ink"] .md { color-scheme: dark; }
.app[data-page="log"][data-theme="mist"] { --page: #f3f1f7; }
.app[data-page="trip"] { --page: #f4f7f5; }

.app-side { background: var(--side); color: var(--side-ink); padding: 14px 10px; display: flex; flex-direction: column; gap: 1px; transition: background .25s, color .25s; }
.app-lights { display: flex; gap: 7px; align-items: center; padding: 2px 6px 16px; }
.app-lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.app-lights i:nth-child(2) { background: #febc2e; }
.app-lights i:nth-child(3) { background: #28c840; }
.app-toggle { margin-left: auto; width: 16px; height: 12px; border: 1.4px solid var(--side-muted); border-radius: 3px; position: relative; }
.app-toggle::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1.4px; background: var(--side-muted); }
.app-group { color: var(--side-muted); font-size: 11px; font-weight: 600; padding: 10px 8px 4px; }
.app-row { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; color: var(--side-ink); }
.app-row svg { width: 14px; height: 14px; fill: none; stroke: var(--side-muted); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.app-row:hover { background: var(--side-sel); }
.app-row.on { background: var(--side-sel); color: var(--sel-ink); }
.app-row.on svg { stroke: var(--sel-ink); }
.app-add { margin-top: auto; color: var(--side-muted); font-size: 12px; padding: 6px 8px; }

.app-main { position: relative; overflow: hidden; }
.app-title { position: absolute; top: 0; left: 0; right: 0; padding: 12px 20px; display: flex; flex-direction: column; line-height: 1.25; z-index: 1; color: #e9ebf6; }
.app[data-chrome="light"] .app-title { color: #1d1f2e; }
.app-title b { font-size: 13px; }
.app-title span { font-size: 11px; opacity: .72; }

.page { display: none; position: absolute; inset: 0; overflow: hidden; padding: 64px 48px 28px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.app[data-page="scan"] .page-scan, .app[data-page="log"] .page-log, .app[data-page="trip"] .page-trip { display: block; }
.page h2 { font: inherit; font-weight: 700; margin: 0 0 8px; letter-spacing: -.02em; }
.page label { display: flex; gap: 9px; align-items: center; padding: 4px 0; cursor: pointer; }
.page input { margin: 0; }

/* Page: an agent's report in its own navy design */
.page-scan { color: #e8ebf5; max-width: 640px; margin: 0 auto; }
.ps-eyebrow { color: #8fa2ff; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.page-scan h2 { font-size: 24px; margin-top: 6px; }
.ps-lede { color: #9aa3c0; margin: 0 0 20px; }
.ps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ps-stats div { background: #1d2340; border: 1px solid #2a3156; border-radius: 10px; padding: 12px 14px; }
.ps-stats b { display: block; font-size: 21px; }
.ps-stats span { color: #9aa3c0; font-size: 11.5px; }
.ps-bars { background: #1d2340; border: 1px solid #2a3156; border-radius: 10px; padding: 14px; }
.ps-bars div { display: grid; grid-template-columns: 120px 1fr 36px; align-items: center; gap: 10px; font-size: 12px; margin: 4px 0; }
.ps-bars i { height: 7px; border-radius: 4px; background: linear-gradient(90deg, #8fa2ff var(--w), #2a3156 var(--w)); }
.ps-bars em { color: #9aa3c0; font-style: normal; text-align: right; }

/* Page: Markdown, drawn in the chosen theme */
.md { --ink: #2b2b2e; --muted: #616162; --accent: #3a6a91; --soft: #eeede9; --line: #e2e0da; color: var(--ink); max-width: 560px; margin: 0 auto; }
.app[data-theme="ink"] .md { --ink: #e6e4df; --muted: #b2b1ae; --accent: #9cc1dc; --soft: #2a2b2f; --line: #34353a; }
.app[data-theme="mist"] .md { --ink: #33313b; --muted: #65636c; --accent: #6a52a3; --soft: #e9e5f1; --line: #dcd7e6; }
.md h2 { font-size: 24px; }
.md h3 { font-size: 15px; margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.md p { color: var(--muted); margin: 0; }
.md input { accent-color: var(--accent); }
.md label:has(input:checked) { color: var(--muted); text-decoration: line-through; }
.md-flow { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; }
.md-flow span { border: 1px solid var(--line); background: var(--soft); border-radius: 6px; padding: 6px 10px; font-size: 12px; }
.md-flow i { flex: 0 0 26px; height: 1.5px; background: var(--muted); position: relative; }
.md-flow i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 6px solid var(--muted); border-right: 0; }
.md pre { margin: 0; background: var(--soft); border-radius: 8px; padding: 12px 14px; font: 12px/1.55 ui-monospace, "SF Mono", Menlo, monospace; }
.md pre b { color: var(--accent); }
.md pre em { color: var(--muted); }

/* Page: a plain saved checklist */
.page-trip { color: #22312b; max-width: 520px; margin: 0 auto; }
.page-trip h2 { font-size: 24px; }
.pt-sub { color: #6b7c74; margin: 0 0 16px; }
.pt-card { background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.pt-h { color: #3f9a7a; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.page-trip input { accent-color: #3f9a7a; }

.themes { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 20px; font-size: 13px; color: var(--ink-2); }
.themes span { margin-right: 6px; }
.themes button { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); }
.themes button:hover { color: var(--ink); }
.themes button[aria-checked="true"] { background: var(--tint); color: var(--ink); font-weight: 500; }
.demo-note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--ink-2); }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; height: 470px; }
  .app-side { display: none; }
  .page { padding: 58px 22px 22px; }
  .ps-stats { grid-template-columns: 1fr 1fr; }
  .ps-stats div:last-child { display: none; }
  .ps-bars div { grid-template-columns: 96px 1fr 30px; }
}

/* Why */

.why { padding-top: 128px; text-align: center; }
h2 { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 18px; }
.why p { color: var(--ink-2); font-size: 19px; }
.why p + p { margin-top: 14px; color: var(--ink); }

/* Shots */

.shots {
  padding-top: 112px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 56px 32px;
}
.shot { grid-column: span 2; }
.shot:nth-child(4) { grid-column: 2 / span 2; }
.shot:nth-child(5) { grid-column: 4 / span 2; }
.shot .mac { width: 100%; margin: 0 auto; }
.shot figcaption { margin: 20px auto 0; max-width: 300px; text-align: center; color: var(--ink-2); font-size: 15px; }
.shot strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 2px; }

.shot-dots { display: none; }

/* Scroll: sections ease in once (only with scripts on, never with reduced motion) */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.shots), .js .shots.reveal .shot {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .js .reveal.in:not(.shots), .js .shots.in .shot { opacity: 1; transform: none; }
  .js .shots .shot:nth-child(2) { transition-delay: .08s; }
  .js .shots .shot:nth-child(3) { transition-delay: .16s; }
  .js .shots .shot:nth-child(4) { transition-delay: .24s; }
  .js .shots .shot:nth-child(5) { transition-delay: .32s; }
}

/* Promises */

.promises {
  margin-top: 128px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.promises > div { padding: 36px 28px; text-align: center; }
.promises > div + div { border-left: 1px solid var(--hair); }
.promises h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.promises p { color: var(--ink-2); font-size: 15px; }

/* Get */

.get {
  padding-top: 112px; padding-bottom: 120px;
  display: flex; align-items: center; justify-content: center; gap: 40px;
}
.get-icon { width: 112px; filter: drop-shadow(0 10px 22px rgba(60, 70, 200, 0.25)); }
.get h2 { margin-bottom: 8px; }
.get p { color: var(--ink-2); }
.get .badge { margin-top: 18px; }

/* Footer */

.foot { border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-2); }
.foot-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Privacy page */

.policy { padding-top: 72px; padding-bottom: 120px; }
.policy h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.policy .updated { color: var(--ink-2); font-size: 14px; margin-bottom: 36px; }
.policy p, .policy li { font-size: 17px; }
.policy p + p, .policy ul + p { margin-top: 18px; }
.policy ul { margin: 18px 0 0; padding-left: 20px; }
.policy li + li { margin-top: 10px; }
.policy li::marker { color: var(--accent); }

/* Phone width */

@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .hero-icon { width: 80px; margin-bottom: 22px; }
  .lede span { display: inline; }
  .why { padding-top: 96px; }

  .shots {
    padding-top: 88px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot, .shot:nth-child(4), .shot:nth-child(5) { grid-column: auto; scroll-snap-align: center; scroll-snap-stop: always; }

  .shot-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
  /* Each dot sits in a 28 point tap area, easy to hit with a thumb. */
  .shot-dots button {
    all: unset; cursor: pointer; min-width: 28px; min-height: 28px;
    display: flex; align-items: center; justify-content: center;
  }
  .shot-dots button::before {
    content: ""; display: block; width: 6px; height: 6px; border-radius: 3px;
    background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .25s ease, background-color .25s ease;
  }
  .shot-dots button[aria-current="true"]::before { width: 18px; background: var(--accent); }
  .shot-dots button:focus-visible::before { outline: 2px solid var(--accent); outline-offset: 3px; }
  .shot figcaption { font-size: 14px; }

  .promises { margin-top: 56px; grid-template-columns: none; border-bottom: 0; }
  .promises > div { padding: 26px 8px; border-bottom: 1px solid var(--hair); }
  .promises > div + div { border-left: 0; }

  .get { padding-top: 80px; padding-bottom: 88px; text-align: center; flex-direction: column; gap: 0; }
  .get-icon { display: none; }

  .foot-row { flex-direction: column-reverse; justify-content: center; padding: 22px 0; }
}
