@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f6f1e7; --bg2: #efe7d8; --card: #fffdf8; --ink: #221c16; --ink2: #6b5f52; --line: #e3d8c5;
  --brass: #a8834b; --brass2: #c9a46a; --brass-soft: #f1e5cc;
  --good: #3f7d4e; --good-soft: #e2efe3; --warn: #b26a1f; --warn-soft: #f8e9d4; --mute: #7b7266; --mute-soft: #ece6dc;
  --bad: #a3392f; --shadow: 0 1px 2px rgba(60,40,20,.06), 0 8px 24px rgba(60,40,20,.08);
  --r: 18px; --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1612; --bg2: #241d17; --card: #2a221b; --ink: #f2e9dc; --ink2: #b6a895; --line: #3a3027;
    --brass: #d2ad73; --brass2: #e1c08b; --brass-soft: #3a2f22;
    --good: #7cc08b; --good-soft: #213428; --warn: #e3a35b; --warn-soft: #3a2a18; --mute: #a59a8b; --mute-soft: #2f2821;
    --bad: #e58a7f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
body { min-height: 100dvh; overflow-x: hidden; }
#view { max-width: 600px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 120px); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 28px; line-height: 1.15; } h2 { font-size: 20px; } h3 { font-size: 17px; }
a { color: var(--brass); }
p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.muted { color: var(--ink2); } .small { font-size: 13.5px; } .tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; } .spread { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.center { min-height: 80dvh; display: grid; place-content: center; text-align: center; max-width: 340px; margin: 0 auto; }
.center-text { text-align: center; margin-top: 14px; }
.logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); margin: 0 auto; }
.sp { width: 42px; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .07em; }
.eyebrow.pad { margin: 24px 2px 10px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.mute { background: var(--mute-soft); color: var(--mute); }
.chip.brass { background: var(--brass-soft); color: var(--brass); }
.tdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--mute); }
.tdot.good { background: var(--good); } .tdot.brass { background: var(--brass); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 14px;
  font-weight: 600; background: var(--ink); color: var(--bg); text-decoration: none; transition: transform .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.link { color: var(--brass); font-weight: 600; font-size: 13.5px; padding: 6px 4px; }

/* camera dock: 2 taps to a scan */
.dock { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 18px;
  padding: 14px 16px calc(env(safe-area-inset-bottom) + 18px); background: linear-gradient(to top, var(--bg) 60%, transparent); z-index: 5; }
.fab { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 30px 0 24px; border-radius: 999px; font-weight: 700; font-size: 17px;
  color: #1b1612; background: linear-gradient(135deg, #e7c98f, var(--brass)); box-shadow: 0 10px 30px rgba(168,131,75,.45); }
.fab svg { width: 26px; height: 26px; }
.fab:active { transform: scale(.96); }
.fab-sm { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fab-sm svg { width: 22px; height: 22px; }
.fab-sm.ghost { visibility: hidden; }

/* finds */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.find { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.find .ph { aspect-ratio: 1; background: var(--bg2) center/cover no-repeat; }
.find .meta { padding: 9px 11px 11px; }
.find .t { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.find .p { font-size: 13px; color: var(--ink2); margin-top: 3px; }
.fav { width: 32px; height: 32px; }
.find .fav { position: absolute; top: 8px; right: 8px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,14,10,.45); backdrop-filter: blur(6px); color: #fff; }
.find .fav svg { width: 17px; height: 17px; }
.fav.on, .icon-btn.on { color: #ff6b6b; }
.empty { text-align: center; padding: 48px 12px; }
.empty svg { width: 64px; height: 64px; color: var(--brass2); margin-bottom: 10px; }
.empty p { margin-top: 8px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card + .card, .card + .fold, .fold + .foot { margin-top: 12px; }
.card.flat { box-shadow: none; padding: 4px 14px; border-radius: 14px; margin-top: 8px; }
.card.flat p + p { margin-top: 8px; } .card.flat p { padding: 8px 0; }
.err { border-color: var(--bad); }

/* scanning */
.scan-stage { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: #000 center/cover no-repeat; box-shadow: var(--shadow); }
.scan-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.4)); }
.scanline { position: absolute; left: 0; right: 0; height: 80px; top: -80px; z-index: 2; animation: sweep 2.2s ease-in-out infinite alternate;
  background: linear-gradient(to bottom, transparent, rgba(225,192,139,.35) 70%, rgba(255,228,180,.95) 98%, transparent); }
@keyframes sweep { to { top: 100%; } }
.corners span { position: absolute; width: 30px; height: 30px; border: 3px solid #f3e2bf; z-index: 3; opacity: .9; }
.corners span:nth-child(1) { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.corners span:nth-child(2) { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.corners span:nth-child(3) { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.corners span:nth-child(4) { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.early { margin-top: 14px; } .early h2 { margin-top: 8px; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; color: var(--ink2); font-size: 15px; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active .dot { border-color: var(--brass); border-top-color: transparent; animation: spin .9s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--good); border-color: var(--good); color: #fff; }
.steps .dot svg { width: 12px; height: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* report */
.report-hero { position: relative; margin: -14px -16px 0; }
.report-hero .img { height: 42vh; max-height: 380px; background: var(--bg2) center/cover no-repeat; }
.report-hero .shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 30%, transparent 60%, var(--bg) 100%); }
.report-hero .bar { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 12px; right: 12px; display: flex; justify-content: space-between; }
.report-hero .bar .icon-btn { background: rgba(20,14,10,.45); border: 0; color: #fff; backdrop-filter: blur(8px); }
.report-hero .bar .icon-btn.on { color: #ff6b6b; }
.thumbs { display: flex; gap: 8px; position: absolute; bottom: 44px; left: 16px; }
.thumbs button { width: 42px; height: 42px; border-radius: 10px; background: center/cover; border: 2px solid rgba(255,255,255,.7); }
.thumbs button.on { border-color: var(--brass2); }
.title-block { position: relative; margin: -26px 0 14px; }
.title-block p { margin-top: 4px; }
.price .big { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin-top: 8px; }
.price .big.sm { font-size: 24px; }
.price .sub { color: var(--ink2); font-size: 13.5px; margin-top: 2px; }
.price .summary { margin-top: 12px; }
.kv { margin-top: 10px; }
.kv div { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv span { color: var(--ink2); }
.band { position: relative; height: 30px; margin: 14px 6px 0; }
.band .axis { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: var(--line); }
.band .range { position: absolute; top: 8px; height: 14px; border-radius: 10px; background: linear-gradient(90deg, var(--brass2), var(--brass)); opacity: .85; }
.band .pt { position: absolute; top: 7px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink2); border: 3px solid var(--card); }
.band .pt.cited { background: var(--good); }
.reasons { margin: 10px 0 0; padding: 0; list-style: none; }
.reasons li { position: relative; padding: 4px 0 4px 18px; color: var(--ink2); font-size: 14.5px; }
.reasons li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass2); }
.check { display: flex; gap: 12px; padding: 9px 0 3px; align-items: flex-start; font-size: 14.5px; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); margin: 0; display: grid; place-items: center; }
.check input:checked { background: var(--good); border-color: var(--good); }
.check input:checked::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 700; }
.check input:checked + span { color: var(--ink2); text-decoration: line-through; }
.fold details { border-top: 1px solid var(--line); }
.fold details:last-child { border-bottom: 1px solid var(--line); }
.fold summary { display: flex; align-items: center; gap: 8px; padding: 14px 4px; font-weight: 600; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary .muted { font-weight: 400; font-size: 13.5px; margin-left: auto; }
.fold summary svg { width: 18px; height: 18px; color: var(--ink2); transition: transform .2s; }
.fold summary:not(:has(.muted)) svg { margin-left: auto; }
.fold details[open] summary svg { transform: rotate(90deg); }
.fold details > :not(summary) { margin-bottom: 14px; }
.comp { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.comp:first-child { border-top: 0; }
.comp .amt { flex: none; text-align: right; min-width: 70px; }
.comp .amt b { display: block; }
.comp .ttl { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comp .sub { font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.ok { color: var(--good); font-style: normal; font-weight: 700; }
.foot { margin: 16px 2px 0; }

/* inputs */
textarea, input[type=text] { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; outline: none; }
textarea:focus, input:focus { border-color: var(--brass2); box-shadow: 0 0 0 3px var(--brass-soft); }
textarea { min-height: 90px; resize: vertical; }

/* me / admin */
.invite { background: var(--brass-soft); border-radius: 14px; padding: 12px; }
.invite .row { margin-top: 8px; }
.invite input { font-size: 13px; }
.urow { display: flex; align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.urow.off { opacity: .5; }

#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 116px); transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 14px; pointer-events: none; transition: all .25s; z-index: 20; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* report: Curio-style header facts + designer card */
.lead { font-size: 16px; color: var(--ink2); margin-top: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.facts div { background: var(--card); padding: 10px 12px; }
.facts span { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.facts b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.3; margin-top: 2px; }
.design p { margin-top: 8px; font-size: 14.5px; }
.pairs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kv b { text-align: right; font-weight: 500; max-width: 65%; }

/* landing page */
.land-hero { padding: 18px 0 8px; }
.land-hero h1 { font-size: 32px; line-height: 1.12; }
.land-hero p { margin: 12px 0 18px; font-size: 16.5px; }
.steps3 { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.steps3 li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.steps3 b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass); font-size: 14px; }
.steps3 span { font-size: 14.5px; color: var(--ink2); }
.steps3 strong { display: block; color: var(--ink); }
.sample .sample-t { font-family: var(--serif); font-size: 18px; }
.sample .big { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-top: 10px; }
.sample .row { margin-top: 10px; flex-wrap: wrap; }
.facts.mini { margin: 10px 0 0; }
select { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; }
input[type=email] { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; outline: none; }
.legal { display: flex; gap: 18px; justify-content: center; margin: 26px 0 0; font-size: 13.5px; }
.legal a { color: var(--ink2); }
#access { scroll-margin-top: 16px; }

/* legal pages */
.legal-page h2 { margin: 24px 0 8px; font-size: 19px; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--ink); }
.legal-page p + p { margin-top: 10px; }
.legal-page ul { padding-left: 20px; }

/* offline screen */
.offline-screen { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px 16px; text-align: center; max-width: 420px; margin: 0 auto; }
.offline-screen img { border-radius: 18px; }
.offline-screen h1 { margin: 0; font-family: var(--serif); }

/* live report: the first answer is on screen, the rest is still arriving */
.refine { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--ink2); }
.refine .bar { position: relative; flex: 0 0 64px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.refine .bar i { position: absolute; inset: 0; width: 40%; border-radius: 4px; background: var(--brass, #c9a46a);
  animation: refine 1.1s ease-in-out infinite; }
@keyframes refine { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.shimmer { background: linear-gradient(90deg, var(--ink2) 0%, var(--ink) 50%, var(--ink2) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .refine .bar i, .shimmer { animation: none; } .shimmer { color: var(--ink2); background: none; } }

/* link button in the dock, link screen */
a.fab-sm { color: inherit; text-decoration: none; }
#linkIn { width: 100%; font-size: 16px; }
