/* Shelfcrawler site: the app's style B tokens (app/src/theme.ts), light and dark. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque_700Bold.woff2") format("woff2"), url("fonts/BricolageGrotesque_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_400Regular.woff2") format("woff2"), url("fonts/Inter_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_600SemiBold.woff2") format("woff2"), url("fonts/Inter_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #f6f4f1; --surface: #ffffff; --ink: #141414; --muted: #6f6f6f; --line: #ebe7e2;
  --accent: #d0603a; --accent-ink: #ffffff; --accent-soft: #f8e4db;
  color-scheme: light;
}
/* Light only (Harry, 21 Nov: "i also want the website light themed instead of dark"). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 Inter, system-ui, sans-serif; }
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 8vw, 52px); margin: 8px 0 12px; }
h2 { font-size: 26px; margin: 40px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 4px; }
p, li { max-width: 65ch; }
a { color: var(--accent); text-underline-offset: 3px; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

header.top { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto; padding: 16px 16px 0; }
header.top a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 700; font-size: 20px; }
header.top img { width: 36px; height: 36px; border-radius: 9px; }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 12px; }
.hero .text { flex: 1 1 300px; }
.hero img { width: min(300px, 80vw); height: auto; margin: 0 auto; }
.lead { font-size: 20px; color: var(--muted); margin: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 20px 22px; margin: 16px 0; }
.card h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.pill { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 12px 22px; font-weight: 600; text-decoration: none; }
.pill.soft { background: var(--accent-soft); color: var(--accent); }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin: 6px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.table-wrap { overflow-x: auto; }

footer { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; }

/* Forms (the beta sign-up on the front page, the feedback page). */
textarea, input[type=email] { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
textarea { min-height: 180px; border-radius: 20px; padding: 16px; resize: vertical; line-height: 1.5; }
input[type=email] { border-radius: 999px; padding: 12px 18px; }
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; margin: 18px 0 6px; font-weight: 600; }
label .muted { font-weight: 400; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin-top: 14px; }
label.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
fieldset.phone { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
fieldset.phone legend { font-weight: 600; padding: 0; margin-bottom: 2px; width: 100%; }
fieldset.phone label.check { margin-top: 6px; }
button.pill { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.pill:disabled { opacity: .6; cursor: default; }
.trap { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; } /* the spam trap stays on the page: far off-screen, it let iPhones zoom out (Harry, 21 Nov) */
.err { color: var(--accent); min-height: 1.6em; margin: 10px 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row input[type=email] { flex: 1 1 240px; width: auto; }
.row button.pill { flex: 0 0 auto; padding: 12px 26px; }
.beta { background: var(--accent-soft); border: 0; margin-top: 36px; padding: 26px 24px; }
.beta h2 { margin-top: 0; }

/* ---------------------------------------------------------------------------------------------------------------
   Home page v2 (body.home; plan: shelf-vault/Marketing/Website v2.md). Show the app moving, say less, one ask.
   Phones: headline, phone, a few lines per screen. Desktop: phone and text side by side, alternating.
   The other pages (privacy, feedback, delete account) don't use any of this.
   --------------------------------------------------------------------------------------------------------------- */
body.home { --navy: #1e2840; --cream: #f6f4f1; overflow-x: hidden; }
/* Clip sideways overflow on the page itself: Safari on iPhone ignores body's overflow when deciding how far you can
   zoom out (Harry, 21 Nov: "you can zoom out way too far"). */
html { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html:has(body.home) { scroll-behavior: smooth; } }
.home main { max-width: none; padding: 0; }
.home h1 { font-size: clamp(36px, 9.4vw, 62px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.home h2 { font-size: clamp(32px, 8.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.home h3 { font-size: 22px; margin: 22px 0 6px; }
.home p { margin: 0; }
.home section { padding: 64px 20px; }
.home section > * { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* Header: the logo, and a "Get early access" pill on wide screens. */
.home header.top { justify-content: space-between; max-width: 1080px; padding: 14px 20px 0; }
.home .head-cta { display: none; padding: 9px 18px; font-size: 15px; }
@media (min-width: 760px) { .home .head-cta { display: inline-block; } }

/* The phone frame: one CSS frame for every clip and screenshot, shaped like an iPhone 13 (Harry, 22 Nov: visuals as on
   a standard modern iPhone). Screens are 390x844 pt captures (shelf-vault/Marketing/make-site-media.py). */
.device { width: min(74vw, 300px); margin: 0 auto; padding: 9px; border-radius: 47px; background: #17181a;
  box-shadow: 0 1px 0 1px #2c2d31 inset, 0 30px 60px -20px rgba(70, 40, 20, .35), 0 12px 24px -12px rgba(0, 0, 0, .25); }
.device .screen { position: relative; aspect-ratio: 540 / 1168; border-radius: 38px; overflow: hidden; background: var(--bg); }
.device video, .device img { display: block; width: 100%; height: 100%; object-fit: cover; }
.device.wide { width: 100%; max-width: 940px; border-radius: 30px; padding: 8px; }
.device.wide .screen { aspect-ratio: 900 / 222; border-radius: 22px; }
.home figure { margin: 0; }

/* Hero. Phones: headline, the reveal right under it, then the line and the button. Desktop: text left, phone right. */
.home .hero { display: grid; grid-template-areas: "h" "media" "body"; gap: 28px; padding-top: 28px; padding-bottom: 40px; max-width: 1080px; margin: 0 auto; }
.home .hero > * { margin: 0; max-width: none; }
.home .hero h1 { grid-area: h; }
.home .hero .media { grid-area: media; }
.home .hero .body { grid-area: body; }
.home .lead { font-size: 19px; line-height: 1.55; color: #4c4a47; max-width: 34ch; }
.home .cta { margin-top: 22px; }
.home .cta + .small { margin-top: 10px; }
.pill.big { padding: 15px 28px; font-size: 18px; }

/* How it works: a swipe carousel on phones (scroll-snap), three columns on desktop. */
.home .how h2 { margin-bottom: 26px; }
.home .steps { list-style: none; padding: 4px 20px 18px; margin: 0 -20px; display: flex; gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: none; }
.home .steps::-webkit-scrollbar { display: none; }
.home .steps li { flex: 0 0 76%; max-width: 330px; scroll-snap-align: start; }
.home .steps .device { width: 88%; margin: 0; }
.home .steps p { max-width: 32ch; }
.home .num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 600 16px/1 Inter, system-ui, sans-serif; vertical-align: 3px; }

/* A feature: headline, phone, two lines on phones; side by side on desktop (.flip puts the phone on the left). */
.home .feature { display: grid; grid-template-areas: "h" "media" "body"; gap: 26px; }
.home .feature > * { margin: 0; max-width: none; }
.home .feature h2 { grid-area: h; }
.home .feature .media { grid-area: media; }
.home .feature .body { grid-area: body; max-width: 34ch; }
.home .feature:nth-of-type(even) { background: #efebe6; }

/* Meet Wiggly: his room, big and wide. */
.home .wiggly { text-align: center; padding-bottom: 72px; }
.home .wiggly .body { max-width: 36ch; margin: 18px auto 34px; }

/* Price: a bold navy band. */
.home .price { background: var(--navy); color: var(--cream); text-align: center; padding: 72px 24px; }
.home .price h2 { color: var(--cream); }
.home .price p { margin-top: 14px; font-size: 19px; color: #d9d4cc; max-width: 30ch; }

/* Sign-up: the only form. No bordered card; a soft terracotta panel on desktop. */
.home .beta { background: var(--accent-soft); border: 0; border-radius: 0; margin: 0; padding: 64px 20px; }
.home .beta > * { max-width: 520px; }
.home .beta h2 { margin: 0 auto 12px; }
.home .beta form { margin-top: 6px; }
.home .beta > p.muted { margin-top: 18px; }

.home footer { max-width: 1080px; padding: 36px 20px 48px; }
.home footer p { margin: 0 0 14px; }

/* Sticky "Get early access" bar: phones only, after the hero scrolls away, hidden while the sign-up is on screen. */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 244, 241, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.on { transform: none; }
.sticky-cta .pill { display: block; text-align: center; padding: 12px 22px; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
@media (min-width: 760px) { .sticky-cta { display: none; } }

@media (min-width: 860px) {
  .home section { padding: 104px 40px; }
  .home .hero { grid-template-columns: 1.1fr 1fr; grid-template-areas: "h media" "body media"; align-items: end; column-gap: 56px; row-gap: 26px; padding: 56px 40px 96px; }
  .home .hero h1 { align-self: end; }
  .home .hero .body { align-self: start; }
  .home .hero .device { width: 340px; }
  .home .feature { grid-template-columns: 1fr 1fr; grid-template-areas: "h media" "body media"; column-gap: 72px; row-gap: 20px; max-width: none; }
  .home .feature.flip { grid-template-areas: "media h" "media body"; }
  .home .feature > h2 { align-self: end; justify-self: start; max-width: 13ch; }
  .home .feature > .body { align-self: start; font-size: 19px; }
  .home .feature .device { width: 320px; }
  .home .feature > * { width: 100%; }
  .home .feature { grid-template-columns: minmax(0, 520px) minmax(0, 520px); justify-content: center; }
  .home .how h2 { text-align: center; margin-bottom: 44px; }
  .home .steps { overflow: visible; margin: 0 auto; padding: 0; gap: 40px; justify-content: center; max-width: 1040px; }
  .home .steps li { flex: 1 1 0; max-width: 320px; }
  .home .steps .device { width: 100%; }
  .home .beta { padding: 96px 40px; }
}

/* v2 fixes after the first screenshots. */
.home header.top a.head-cta { color: var(--accent-ink); font: 600 15px/1.2 Inter, system-ui, sans-serif; }
.home .wiggly figure { margin: 0 auto; }
.home .wiggly .art { display: block; width: min(52vw, 230px); height: auto; margin: 0 auto 18px; }
.home .how { padding-bottom: 40px; }
.sticky-cta { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
.sticky-cta .pill { padding: 10px 20px; }
.device { border-radius: 36px; }
.device .screen { border-radius: 27px; }
@media (min-width: 860px) {
  .home .feature { grid-template-columns: minmax(0, 440px) minmax(0, 440px); column-gap: 96px; }
  .home .wiggly .art { width: 260px; }
}
.sticky-cta { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.sticky-cta.on { visibility: visible; transition: transform .25s ease; }

/* The first-500 countdown under the hero button. */
.spots { display: inline-block; margin: 10px 0 0; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.spots strong { color: var(--accent); }
.spots[hidden] { display: none; }
