/* Fairlot look: same colours and fonts as the Grok version. */
:root {
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --ink: #1a1814;
  --muted: #6f675c;
  --line: #e0d8c8;
  --moss: #1f6b4a;
  --moss-deep: #174f37;
  --clay: #c45c26;
  --ask: #f8efe4;
  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --safe-top: max(12px, env(safe-area-inset-top));
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
  --tabs-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.light { background: var(--paper); color: var(--ink); }
p, li, h1, h2, h3, .selectable { -webkit-user-select: text; user-select: text; }
button, select, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .5; cursor: default; }
button:active:not(:disabled) { transform: scale(.97); }
a { color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
h1, h2, h3 { font-weight: inherit; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.screen { min-height: 100dvh; padding: var(--safe-top) 20px var(--safe-bottom); max-width: 640px; margin: 0 auto; }
.with-tabs .screen { padding-bottom: calc(var(--tabs-h) + var(--safe-bottom) + 12px); }
.dark { color: var(--paper); }
.light-screen { color: var(--ink); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.wordmark { font-family: var(--display); font-style: italic; font-size: 24px; }
.bar-title { font-family: var(--display); font-style: italic; font-size: 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 44px; font-size: 14px; }
.back svg, .icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--paper-2); margin-top: 20px; }
.light-screen .eyebrow { color: var(--muted); }
.hero { font-family: var(--display); font-size: 36px; line-height: 1; margin-top: 8px; }
.hero em { display: block; font-style: italic; }
.lede { margin-top: 12px; color: var(--paper-2); font-size: 16px; line-height: 1.6; }
.light-screen .lede { color: var(--muted); }
.fine { font-size: 12px; line-height: 1.6; color: var(--paper-2); }
.light-screen .fine { color: var(--muted); }
.h1 { font-family: var(--display); font-size: 36px; line-height: 1.15; }
.h2 { font-family: var(--display); font-size: 24px; }
.stack > * + * { margin-top: 16px; }

.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--paper); color: var(--ink); }
.chip.ghost { background: transparent; color: var(--paper); border: 1px solid var(--paper-2); }
.chip.moss { background: var(--moss); color: var(--paper); }

.frame { position: relative; height: 176px; border: 2px solid var(--paper-2); border-radius: 24px; margin-top: 20px; }
.frame::before, .frame::after { content: ""; position: absolute; background: var(--paper-2); }
.frame::before { top: 24px; bottom: 24px; left: 50%; width: 1px; }
.frame::after { left: 24px; right: 24px; top: 50%; height: 1px; }
.frame p { position: absolute; left: 24px; right: 24px; bottom: 14px; text-align: center; font-size: 13px; color: var(--paper-2); background: var(--ink); }

.shoot { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.shutter { width: 80px; height: 80px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--paper-2); }
.shutter svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shoot-col { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.btn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.btn.solid { background: var(--paper); color: var(--ink); }
.btn.outline { border: 1px solid var(--paper-2); color: var(--paper); font-weight: 400; }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.moss { background: var(--moss); color: var(--paper); justify-content: center; }
.btn.line { border: 1px solid var(--line); color: var(--ink); justify-content: center; }
.btn.wide { width: 100%; justify-content: center; height: 52px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.selects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.selects label { font-size: 14px; color: var(--paper-2); }
.selects select { display: block; width: 100%; height: 44px; margin-top: 4px; padding: 0 12px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 16px; -webkit-appearance: none; appearance: none; }

.alert { border-radius: 16px; background: var(--ask); color: var(--ink); padding: 12px 16px; font-size: 14px; }
.alert button { text-decoration: underline; font-weight: 500; margin-top: 4px; }

.strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; margin-top: 8px; scrollbar-width: none; }
.strip button { width: 96px; flex-shrink: 0; text-align: left; }
.strip img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.strip span { display: block; margin-top: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Scanning */
.scan-box { position: relative; aspect-ratio: 1; margin-top: 24px; border: 2px solid var(--paper-2); border-radius: 24px; overflow: hidden; }
.scan-box img { width: 100%; height: 100%; object-fit: cover; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--paper); animation: scan 1.8s ease-in-out infinite alternate; top: 8%; }
@keyframes scan { from { top: 8%; } to { top: 88%; } }
@media (prefers-reduced-motion: reduce) { .scan-line { animation: none; top: 45%; } }

/* More photos */
.thumbs { display: flex; gap: 12px; margin-top: 20px; }
.thumbs img, .thumbs .slot { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.thumbs .slot { display: grid; place-items: center; border: 1px solid var(--paper-2); font-size: 12px; color: var(--paper-2); }

/* Light screens (result, recent, plans, account) */
.light-screen .card { background: var(--paper); border-radius: 24px; padding: 16px; box-shadow: 0 0 0 1px #1a181414, 0 1px 2px -1px #1a18140f, 0 12px 32px -16px #1a181447; }
.photo-main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; }
.mini { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; }
.mini img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 14px; }
.pills span { background: var(--paper-2); border-radius: 999px; padding: 8px 12px; }
.price-card { background: var(--moss); color: var(--paper); border-radius: 24px; padding: 24px 20px; box-shadow: 0 12px 32px -16px #1a181447; }
.price-card .label { font-size: 14px; color: var(--paper-2); }
.price-big { font-family: var(--display); font-size: 48px; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.price-range { margin-top: 12px; font-size: 14px; color: var(--paper-2); font-variant-numeric: tabular-nums; }
.basis { display: inline-flex; margin-top: 16px; background: var(--moss-deep); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.market-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.market-name { display: flex; align-items: center; gap: 12px; }
.market-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 18px; }
.market-price { font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.samples li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.samples a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; font-weight: 500; }
.sold { color: var(--moss); }
.asking { color: var(--clay); }
.browse { display: inline-flex; align-items: center; gap: 4px; height: 44px; font-size: 14px; font-weight: 500; color: var(--moss); text-decoration: none; }
.soft { background: var(--paper-2); border-radius: 24px; padding: 16px 20px; font-size: 14px; line-height: 1.6; }
.soft li + li { margin-top: 8px; }
.sources a { color: var(--moss); text-underline-offset: 4px; font-size: 14px; }
.suggest-frame { width: 100%; border: 0; height: 64px; margin-top: 8px; background: transparent; }

.plan-card { background: var(--moss); color: var(--paper); border-radius: 24px; padding: 24px 20px; }
.plan-price { font-family: var(--display); font-size: 52px; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; }
.checks li + li { margin-top: 10px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.plan-options { display: grid; gap: 10px; }
.plan-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px; min-height: 64px; cursor: pointer; }
.plan-option.on { border-color: var(--moss); background: #fff; }
.plan-option:disabled { opacity: 0.6; }
.plan-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); }
.plan-option.on .plan-dot { border: 6px solid var(--moss); }
.plan-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.plan-name { font-weight: 600; font-size: 16px; }
.plan-note { font-size: 13px; color: var(--muted); }
.plan-amount { flex: none; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.plan-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--moss); color: var(--paper); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.legal-links { display: flex; gap: 20px; justify-content: center; font-size: 14px; }
.legal-links a, .legal-links button { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

.list-row { display: flex; gap: 12px; align-items: center; }
.list-row img { width: 80px; height: 80px; border-radius: 16px; object-fit: cover; }
.list-row .grow { flex: 1; min-width: 0; text-align: left; display: flex; gap: 12px; align-items: center; }
.truncate { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.menu { border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px #1a181414; }
.menu > * { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; font-size: 15px; text-decoration: none; text-align: left; }
.menu > * + * { border-top: 1px solid var(--line); }
.meter { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--moss); }

/* Bottom tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around; padding: 6px 12px var(--safe-bottom); background: rgba(26, 24, 20, .96); border-top: 1px solid #ffffff1a; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.light .tabs { background: rgba(243, 239, 230, .96); border-top-color: var(--line); }
.tabs[hidden] { display: none; }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; color: var(--paper-2); }
body.light .tabs button { color: var(--muted); }
.tabs button[aria-current="page"] { color: var(--paper); font-weight: 600; }
body.light .tabs button[aria-current="page"] { color: var(--ink); }
.tabs svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-bottom) + 16px); transform: translateX(-50%); z-index: 20; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 8px 24px #0005; max-width: calc(100% - 40px); text-align: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  .frame { height: 240px; }
  .hero { font-size: 48px; }
}

/* What did you pay? (result screen, only shows numbers once filled in) */
.profit-card { padding: 14px 16px; }
.paid-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; }
.paid-input { width: 120px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--paper-2); color: var(--ink); font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; -webkit-user-select: text; user-select: text; }
.paid-input::placeholder { color: var(--muted); }
.profit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.profit-amount { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.profit-amount.gain { color: var(--moss); }
.profit-amount.loss { color: var(--clay); }
.ship-toggle { margin-left: auto; flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.ship-toggle[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: var(--paper); }
.result-actions { display: flex; gap: 12px; }
.result-actions .btn.wide { flex: 1 1 0; min-width: 0; padding: 0 12px; }

/* 1.4: a solid strip behind the iPhone clock, so the page scrolls under it instead of through it. */
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--ink); z-index: 30; pointer-events: none; }
body.light::before { background: var(--paper); }
/* 1.4: what the free trial costs afterwards, right under the button, in normal-size text. */
.trial-terms { font-size: 14px; line-height: 1.5; text-align: center; color: var(--ink); }

/* 1.5: List it */
.list-markets { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; padding-bottom: 4px; scrollbar-width: none; }
.list-market { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.list-market.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.list-steps { list-style: none; display: grid; gap: 10px; }
.list-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.list-steps b { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--moss); color: var(--paper); font-size: 13px; }
.list-actions { display: grid; gap: 10px; }
.list-actions a.btn { text-decoration: none; }
.list-box { background: var(--paper); border-radius: 20px; padding: 14px; box-shadow: 0 0 0 1px #1a181414, 0 8px 24px -16px #1a181447; }
.list-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.list-head label { font-size: 14px; font-weight: 500; flex: 1; }
.list-copy { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; }
.list-input { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: #fffdf8; resize: vertical; -webkit-user-select: text; user-select: text; }
input.list-input { height: 44px; }
.list-price { display: flex; align-items: center; gap: 8px; }
.list-price span { font-size: 18px; color: var(--muted); }
