/* Spinely website · Night Shelf (Parchment light, Graphite dark), matching the app. */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --bg: #EBE6DE; --surface: #FFFFFF; --sheet: #F7F4EF; --alt: #E6E0D6; --text: #1C1814; --text-2: #5E554C; --muted: #6B6055;
  --line: #E2DBD0; --outline: #CFC6B8; --value: #7A5A17; --on-text: #F7F4EF; --paper: #F7F4EF; --paper-line: #E2DBD0;
  --coral: #f17575; --read: #3FCB6B; --unread: #FF5A4E; --stage: #0D0D0E; --stage-2: #1A1A1C; --stage-line: #2C2C30; --stage-text: #EDEDEE; --stage-muted: #8E8E94;
  --font: "Roboto", -apple-system, "Segoe UI", system-ui, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r-lg: 22px; --r-md: 14px; --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0D0D0E; --surface: #161618; --sheet: #121213; --alt: #232327; --text: #EDEDEE; --text-2: #B9B9BE; --muted: #8E8E94;
  --line: #242427; --outline: #38383C; --value: #A7D89A; --on-text: #0D0D0E; --paper: #F2EEE7; --paper-line: #38383C;
  --stage: #070708; --stage-2: #141416; --stage-line: #2C2C30;
  color-scheme: dark;
} }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--outline); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 8.6vw, 112px); line-height: .94; font-weight: 700; letter-spacing: -0.045em; }
h1 em { font-style: normal; background: linear-gradient(transparent 70%, color-mix(in srgb, var(--coral) 55%, transparent) 70% 92%, transparent 92%); padding-inline: .04em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 20; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar, .foot, main > section, .fine { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.03em; white-space: nowrap; }
.mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; }
.mark i { display: block; width: 5px; border-radius: 1.5px; background: var(--text); }
.mark i:nth-child(1) { height: 22px; } .mark i:nth-child(2) { height: 17px; } .mark i:nth-child(3) { height: 20px; background: var(--coral); } .mark i:nth-child(4) { height: 14px; transform: rotate(12deg); transform-origin: bottom; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--alt); }
.pill-cta { text-decoration: none; background: var(--text); color: var(--on-text); font-size: 15px; font-weight: 500; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--read); box-shadow: 0 0 0 0 color-mix(in srgb, var(--read) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--read) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 34ch; }
.sub { color: var(--text-2); font-size: 18px; max-width: 46ch; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; justify-content: center; margin-inline: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 14px; font-weight: 500; text-decoration: none; transition: background .2s, transform .2s; }
.button.line { border: 1px solid var(--outline); }
.button.line:hover { background: var(--surface); }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 16px; border-radius: 14px; background: var(--text); color: var(--on-text); }
.store svg { width: 26px; height: 26px; }
.store span { display: grid; line-height: 1.1; font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.store small { font-size: 11px; font-weight: 400; opacity: .75; letter-spacing: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.proof li::before { content: ""; display: inline-block; width: 12px; height: 7px; border-left: 2px solid var(--value); border-bottom: 2px solid var(--value); transform: rotate(-45deg) translate(1px, -3px); margin-right: 9px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero-copy { display: grid; gap: 26px; align-content: center; }

/* The live demo stage: always the app's dark "night shelf", whatever the site theme. */
.stage { position: relative; background: var(--stage); border-radius: 30px; padding: 12px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), 0 0 0 1px var(--stage-line); color: var(--stage-text); }
.stage-photo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; background: #111; outline: none; }
.stage-photo:focus-visible { box-shadow: 0 0 0 2px var(--stage-text); }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.82); transition: filter 1.2s; }
.playing .stage-photo img { filter: saturate(.96) brightness(.9); }
.outlines { position: absolute; inset: 0; width: 100%; height: 100%; }
.outlines polygon { fill: transparent; stroke-width: 3.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; cursor: pointer; transition: fill .15s, stroke-width .15s; }
.outlines .sp { stroke: var(--read); }
.outlines .un { stroke: var(--unread); cursor: default; }
.playing .outlines polygon { animation: draw .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 15ms + 250ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.outlines .sp:hover, .outlines .sp.on { fill: color-mix(in srgb, var(--read) 26%, transparent); stroke-width: 4.5; }
.sweep { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--read) 22%, transparent) 70%, color-mix(in srgb, var(--read) 60%, transparent)); border-bottom: 1px solid color-mix(in srgb, var(--read) 80%, transparent); transform: translateY(-110%); pointer-events: none; mix-blend-mode: screen; opacity: 0; }
.playing .sweep { animation: sweep 2.1s cubic-bezier(.45,.05,.4,1) .1s 1 forwards; }
@keyframes sweep { 0% { transform: translateY(-110%); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(480%); opacity: 0; } }
.tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: rgba(13,13,14,.94); color: #EDEDEE; border: 1px solid #3A3A3E; border-radius: 12px; padding: 9px 12px; display: grid; gap: 1px; min-width: 150px; max-width: 240px; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.tip.show { opacity: 1; }
.tip strong { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.tip span { font-size: 12.5px; color: #A9A9AE; }
.stage-panel { position: absolute; left: -36px; bottom: 34px; width: min(300px, 62%); background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); display: grid; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats div { display: grid; gap: 1px; padding-inline: 4px; }
.stats div + div { border-left: 1px solid var(--stage-line); }
.stats small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--stage-muted); }
.stats b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats b.red { color: var(--unread); }
.found { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--stage-line); }
.found li { display: grid; padding: 7px 2px; border-bottom: 1px solid var(--stage-line); animation: rowin .35s ease both; }
.found li:last-child { border-bottom: 0; }
.found b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.found span { font-size: 11.5px; color: var(--stage-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }
.hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--stage-muted); }
.hint .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--read); }

/* Ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; max-width: none !important; padding-inline: 0 !important; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.track span { font-size: 15px; font-weight: 500; color: var(--text-2); border: 1px solid var(--outline); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.block { padding-block: clamp(44px, 6vw, 80px); display: grid; gap: clamp(24px, 3.5vw, 40px); }
.block-head { display: grid; gap: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; align-content: start; }
.steps h3 { display: flex; align-items: center; gap: 10px; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--on-text); display: grid; place-items: center; font-weight: 500; font-size: 14px; }
.step-sketch { height: 190px; display: grid; place-items: center; margin-bottom: 6px; }
.step-sketch img { max-height: 160px; width: auto; }
.steps p { color: var(--text-2); }

.sketch { margin: 0; background: var(--paper); border: 1px solid var(--paper-line); border-radius: var(--r-md); padding: 14px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 18px; align-content: space-between; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.tile:hover { transform: translateY(-3px); border-color: var(--outline); }
.tile-copy { display: grid; gap: 8px; max-width: 42ch; }
.tile-copy p { color: var(--text-2); font-size: 16px; }
.t-value { grid-column: span 4; }
.t-hunt { grid-column: span 2; }
.t-flip { grid-column: span 2; }
.t-close { grid-column: span 2; }
.t-any { grid-column: span 2; }
.t-search { grid-column: span 6; grid-template-columns: 1fr 1fr; align-items: center; align-content: center; gap: 32px; }
.mock { font-size: 14px; }
.stats-mock { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 6px; background: var(--sheet); text-align: center; }
.stats-mock div { display: grid; }
.stats-mock div + div { border-left: 1px solid var(--line); }
.stats-mock small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats-mock b { font-size: 26px; letter-spacing: -0.02em; }
.stats-mock b.money { color: var(--value); }
.stats-mock span { font-size: 12.5px; color: var(--muted); }
.buttons-mock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buttons-mock .b { border: 1px solid var(--outline); border-radius: 12px; text-align: center; padding: 11px 8px; font-weight: 500; }
.buttons-mock .fill { grid-column: span 2; background: var(--text); color: var(--on-text); border-color: var(--text); }
.chips-mock { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-mock span { border: 1px solid var(--outline); border-radius: 999px; padding: 5px 12px; font-weight: 500; }
.row-mock { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--sheet); border-radius: var(--r-md); padding: 12px; }
.row-mock .cover { width: 30px; height: 44px; border-radius: 4px; background: linear-gradient(160deg, #5a7d9a, #2c3e50); flex: none; }
.row-mock div { display: grid; min-width: 0; }
.row-mock b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-mock span { color: var(--muted); font-size: 13px; }
.chart-mock { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 0 2px; }
.chart-mock span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--value) 75%, transparent); transform-origin: bottom; }
.tile:hover .chart-mock span { animation: grow .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d) * 50ms); }
@keyframes grow { from { transform: scaleY(.2); } }
.mock-caption { position: absolute; right: 18px; top: 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile-sketch { justify-self: center; width: 70%; }
.tile-sketch.wide { width: 92%; }
.search-mock { display: grid; gap: 10px; }
.search-mock .field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--outline); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.search-mock .field i { width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 50%; position: relative; }
.search-mock .field i::after { content: ""; position: absolute; width: 6px; height: 2px; background: var(--muted); right: -6px; bottom: -3px; transform: rotate(45deg); }
.search-mock .result { border: 1px solid var(--line); background: var(--sheet); border-radius: 12px; padding: 12px 14px; color: var(--muted); }
.search-mock .result b { color: var(--text); font-weight: 500; margin-right: 6px; }

/* App screens */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.screens figure { margin: 0; display: grid; gap: 14px; justify-items: center; scroll-snap-align: start; }
.screens figcaption { font-weight: 500; color: var(--text-2); }
.phone { margin: 0; width: 100%; max-width: 270px; border-radius: 42px; padding: 9px; background: #0b0b0c; box-shadow: 0 0 0 1px var(--outline), 0 30px 60px -30px rgba(0,0,0,.5); }
.phone img { border-radius: 33px; width: 100%; }

.kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kinds article, .trust article, .plan, .doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; }
.kinds p, .trust p { color: var(--text-2); }
.trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust h2 { font-size: clamp(24px, 2.6vw, 30px); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; gap: 6px; }
.plan.featured { background: var(--text); color: var(--on-text); border-color: var(--text); }
.plan.featured .scans, .plan.featured .per, .plan.featured .price small { color: color-mix(in srgb, var(--on-text) 72%, transparent); }
.badge { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--coral); color: #1C1814; }
.price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 8px; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.scans { color: var(--text-2); }
.per { font-size: 14px; color: var(--muted); }

.faq-list details { border-top: 1px solid var(--line); padding-block: 18px; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details p { color: var(--text-2); margin-top: 10px; max-width: 72ch; }
.faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }

.closing { justify-items: center; text-align: center; padding-bottom: clamp(80px, 10vw, 140px); }
.closing-sketch { width: min(220px, 56vw); }

/* Docs */
.doc { padding-block: clamp(40px, 6vw, 80px); display: grid; gap: 16px; max-width: 860px !important; }
.doc-head { display: grid; gap: 14px; margin-bottom: 12px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); }
.updated { color: var(--muted); font-size: 14px; }
.doc-card h2 { font-size: 21px; letter-spacing: -0.015em; }
.doc-card p, .doc-card li { color: var(--text-2); }
.doc-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.email { font-size: 21px; }
.mono { font-family: var(--mono); user-select: all; }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding-block: 11px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 28px; background: var(--sheet); }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand p, .fine { color: var(--muted); font-size: 14px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols nav { display: grid; gap: 8px; align-content: start; }
.foot-cols h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.foot-cols a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.foot-cols a:hover { color: var(--text); }
.fine { font-size: 12.5px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .stage { max-width: 520px; width: 100%; justify-self: center; }
  .stage-panel { left: 12px; bottom: 12px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-value, .t-search { grid-column: span 2; }
  .t-hunt, .t-flip, .t-close, .t-any { grid-column: span 1; }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .pill-cta { margin-left: auto; }
  .steps, .plans, .trust, .kinds { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .t-value, .t-search, .t-hunt, .t-flip, .t-close, .t-any { grid-column: span 1; }
  .t-search { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .screens { grid-auto-columns: 72%; }
  .stage-panel { position: static; width: 100%; margin-top: 12px; box-shadow: none; }
  .found li:nth-child(n + 4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .outlines polygon { stroke-dashoffset: 0; }
  .track { flex-wrap: wrap; width: auto; justify-content: center; }
  .track span[aria-hidden] { display: none; }
}

/* The "Try it" phone: a small working copy of the app (dark Night Shelf), on the home page. */
.try { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 72px); }
.try-copy { display: grid; gap: 18px; align-content: center; }
.try-copy ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: t; }
.try-copy li { counter-increment: t; display: flex; gap: 12px; align-items: baseline; color: var(--text-2); }
.try-copy li::before { content: counter(t); flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--outline); display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--text); transform: translateY(-2px); }
.try-copy li b { color: var(--text); font-weight: 500; }

.dp { --bg: #0D0D0E; --surface: #1A1A1C; --sheet: #131314; --alt: #26262A; --text: #EDEDEE; --text-2: #B9B9BE; --muted: #8E8E94; --line: #28282B; --outline: #3A3A3E; --green: #A7D89A; --read: #3FCB6B; --red: #FF5A4E;
  width: 340px; max-width: 86vw; aspect-ratio: 340 / 716; border-radius: 52px; padding: 11px; background: #050506; box-shadow: 0 0 0 1px #2a2a2e, 0 0 0 7px #121214, 0 50px 90px -40px rgba(0,0,0,.65); justify-self: center; color: var(--text); font-family: var(--font); user-select: none; -webkit-user-select: none; }
.dp-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.dp-status { flex: none; height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 12.5px; font-weight: 500; position: relative; z-index: 3; }
.dp-island { position: absolute; left: 50%; top: 9px; width: 92px; height: 26px; border-radius: 14px; background: #000; transform: translateX(-50%); }
.dp-body { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; position: relative; }
.dp-body::-webkit-scrollbar { display: none; }
.dp-pad { padding: 4px 14px 90px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dp-pad > * { min-width: 0; }
.dp-photo.small { width: 64%; justify-self: center; }
.dp-top { display: flex; align-items: center; gap: 8px; padding: 6px 14px 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.dp-top .back { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; font-size: 18px; font-weight: 400; }
.dp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; font-weight: 500; font-size: 13px; cursor: pointer; border: 1px solid var(--outline); background: transparent; color: var(--text); font-family: inherit; }
.dp-btn.fill { background: var(--text); color: var(--bg); border-color: var(--text); }
.dp-btn:active { transform: scale(.97); }
.dp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.dp-h { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.dp-h span { font-size: 12px; color: var(--muted); font-weight: 400; }
.dp-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 10px 0; }
.dp-stats div + div { border-left: 1px solid var(--line); }
.dp-stats small { display: block; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dp-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.dp-stats .red { color: var(--red); }
.dp-stats .green { color: var(--green); }
.dp-hint { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; padding: 6px; }
.dp-hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--read); animation: dp-blink 1.6s infinite; }
@keyframes dp-blink { 50% { opacity: .25; } }
.dp-tile { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px; cursor: pointer; }
.dp-tile img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; }
.dp-tile b { display: block; font-size: 13px; }
.dp-tile span { color: var(--muted); font-size: 11.5px; }

/* List rows */
.dp-list { display: grid; }
.dp-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-top: 1px solid var(--line); cursor: pointer; }
.dp-item:first-child { border-top: 0; }
.dp-item:active { background: var(--alt); }
.dp-cover { width: 30px; height: 42px; border-radius: 4px; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: .02em; text-align: center; padding: 2px; overflow: hidden; }
.dp-item b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-item span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-item .chev { color: var(--muted); font-size: 14px; }
.dp-spot { display: inline-block; margin-top: 3px; font-size: 10px; color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 50%, transparent); border-radius: 999px; padding: 1px 7px; }
.dp-search { display: flex; align-items: center; gap: 8px; height: 38px; border: 1px solid var(--outline); border-radius: 10px; padding: 0 10px; }
.dp-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 13px; }
.dp-search input::placeholder { color: var(--muted); }
.dp-search svg { width: 14px; height: 14px; flex: none; }
.dp-found { color: var(--muted); font-size: 11.5px; }

/* Photos with outlines */
.dp-photo { position: relative; border-radius: 12px; overflow: hidden; background: #111; }
.dp-photo img { width: 100%; display: block; }
.dp-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dp-photo polygon { fill: transparent; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dp-photo .sp { stroke: var(--read); }
.dp-photo .un { stroke: var(--red); }
.dp-photo .lit { stroke: #FFE07A; stroke-width: 3.5; fill: rgba(255, 224, 122, .28); }
.dp-photo.dim .sp:not(.lit), .dp-photo.dim .un { stroke-opacity: .28; }
.dp-photo.draw polygon { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dp-draw .5s ease forwards; animation-delay: calc(var(--i) * 13ms); }
@keyframes dp-draw { to { stroke-dashoffset: 0; } }
.dp-sweep { position: absolute; inset: 0 0 auto; height: 24%; background: linear-gradient(180deg, transparent, rgba(63, 203, 107, .25) 70%, rgba(63, 203, 107, .6)); border-bottom: 1px solid var(--read); animation: dp-sweep 1.8s cubic-bezier(.45,.05,.4,1) forwards; mix-blend-mode: screen; }
@keyframes dp-sweep { from { transform: translateY(-110%); } to { transform: translateY(420%); opacity: 0; } }

/* Camera */
.dp-camera { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; z-index: 2; }
.dp-camera[hidden] { display: none; }
.dp-view { position: relative; flex: 1; margin-top: 64px; overflow: hidden; }
.dp-view img { width: 100%; height: 100%; object-fit: cover; }
.dp-guides { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px) 0 33.3% / 100% 1px no-repeat, repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px) 0 66.6% / 100% 1px no-repeat; pointer-events: none; }
.dp-cam-top { position: absolute; top: 44px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; z-index: 3; }
.dp-round { width: 34px; height: 34px; border-radius: 50%; background: rgba(13,13,14,.62); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #EDEDEE; font-size: 15px; cursor: pointer; }
.dp-pill { height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(13,13,14,.62); border: 1px solid rgba(255,255,255,.14); display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 500; color: #EDEDEE; }
.dp-pill.level { color: #34C759; }
.dp-cam-bottom { flex: none; height: 118px; display: flex; align-items: center; justify-content: space-around; }
.dp-shutter { width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; cursor: pointer; }
.dp-shutter i { width: 50px; height: 50px; border-radius: 50%; background: #fff; transition: transform .1s; }
.dp-shutter:active i { transform: scale(.88); }
.dp-shutter.pulse { animation: dp-ring 1.8s infinite; }
@keyframes dp-ring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.dp-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; transition: opacity .2s ease; }
.dp-flash.go { animation: dp-flash .35s ease; }
@keyframes dp-flash { 20% { opacity: .9; } to { opacity: 0; } }

/* Title page */
.dp-hero { display: grid; justify-items: center; padding: 10px 0 4px; }
.dp-bigcover { width: 112px; height: 160px; border-radius: 8px; display: grid; place-items: end center; padding: 12px 10px; font-weight: 700; font-size: 13px; line-height: 1.2; text-align: center; color: rgba(255,255,255,.92); box-shadow: 0 18px 30px -16px rgba(0,0,0,.8); }
.dp-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.dp-by { color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.dp-details { display: grid; }
.dp-details div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12px; }
.dp-details div:first-child { border-top: 0; }
.dp-details dt { color: var(--muted); }
.dp-details dd { margin: 0; text-align: right; }
.dp-toast { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); font-weight: 500; font-size: 12px; padding: 8px 14px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none; z-index: 6; white-space: nowrap; }
.dp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Finds: hunt list */
.dp-add { display: flex; gap: 8px; }
.dp-add .dp-search { flex: 1; }
.dp-add .dp-btn { height: 38px; padding: 0 14px; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--outline); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.dp-chip em { font-style: normal; color: var(--muted); }
.dp-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 14px; }

/* Tab bar (docked, round Scan button in a bump) */
.dp-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; padding-top: 9px; z-index: 4; }
.dp-tab { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; color: var(--muted); cursor: pointer; background: none; border: 0; font-family: inherit; }
.dp-tab svg { width: 20px; height: 20px; }
.dp-tab.on { color: #D2D2D6; font-weight: 500; }
.dp-tab.scan { position: relative; top: -24px; }
.dp-tab.scan span { width: 52px; height: 52px; border-radius: 50%; background: var(--alt); border: 1px solid var(--outline); display: grid; place-items: center; color: var(--text); box-shadow: 0 0 0 6px var(--surface); }
.dp-homebar { position: absolute; bottom: 6px; left: 50%; width: 110px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.55); transform: translateX(-50%); z-index: 5; }
.dp-screen.camera-on .dp-tabs { display: none; }
.dp-fade { animation: dp-fade .25s ease; }
@keyframes dp-fade { from { opacity: 0; transform: translateY(6px); } }
.dp :focus-visible { outline: 2px solid #EDEDEE; outline-offset: 2px; }

@media (max-width: 980px) { .try { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dp *, .dp *::before { animation: none !important; transition: none !important; } .dp-photo.draw polygon { stroke-dashoffset: 0; } }
