/* Riverbound site in the app's Lamplight style: deep water, cream pages, lamp amber.
   Dark only, like Lamplight's dark-first theme. Colors match the design canvas. */
:root {
  color-scheme: dark;
  --night: #0F1C21; --current: #172A31; --raised: #1E343C; --ripple: #2A434C; --rule: #22383F;
  --page: #F2EADB; --muted: #A7B5B2; --lamp: #E9B45C; --lamp-hover: #F0C277; --lamp-ink: #1A1408;
  --reed: #86C2AD; --coral: #E39A7B; --you-bubble: #3A3122;
  --radius: 18px; --max: 1080px; --gutter: 24px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--page); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--lamp); color: var(--lamp-ink); font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nav .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.navlinks { display: flex; flex-wrap: wrap; gap: 2px; }
.navlinks a { padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.navlinks a:hover { color: var(--page); background: var(--current); }
.navlinks a[aria-current="page"] { color: var(--lamp); }

/* Type */
.eyebrow, .label { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lamp); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { margin: 0 0 20px; font-size: clamp(42px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -.02em; }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.015em; }
h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.lead { max-width: 560px; margin: 0 0 28px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); }
.intro { max-width: 640px; margin: 0 0 32px; font-size: 18px; color: var(--muted); }

/* Buttons and chips */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--lamp); border-radius: 999px; background: var(--lamp); color: var(--lamp-ink); font: 600 16px/1 var(--sans); text-decoration: none; transition: transform .2s, background-color .2s; }
.btn:hover { background: var(--lamp-hover); transform: translateY(-1px); }
.btn.ghost { border-color: var(--ripple); background: transparent; color: var(--page); }
.btn.ghost:hover { background: var(--current); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--current); color: var(--muted); font-size: 13px; font-weight: 500; }
.chips li.status { display: inline-flex; align-items: center; gap: 8px; color: var(--lamp); }
.chips li.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 em { display: block; }
.hero-art { justify-self: center; width: 100%; max-width: 440px; height: auto; }

/* Sections */
section { padding: 80px 0; }
/* In-page links land below the sticky header instead of under it. */
section[id] { scroll-margin-top: 48px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 24px; border-radius: var(--radius); background: var(--current); }
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--raised); color: var(--lamp); }
.icon svg { width: 22px; height: 22px; }

/* Buddy read spotlight */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.points { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 12px; color: var(--muted); }
.points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--lamp); }
.points strong { color: var(--page); font-weight: 600; }

/* Example buddy read card, drawn like the app's "Where you are" */
.demo { justify-self: center; width: 100%; max-width: 420px; padding: 24px; border-radius: 24px; background: var(--current); }
.demo h3 { margin-bottom: 14px; }
.track { position: relative; height: 44px; border-radius: 22px; background: var(--night); }
.track .read { position: absolute; left: 18px; top: 20px; width: calc(46% - 18px); height: 4px; background: radial-gradient(circle, var(--lamp) 1.8px, transparent 2.2px) 0 0 / 8px 4px repeat-x; }
.reader { position: absolute; top: 7px; width: 30px; height: 30px; margin-left: -15px; border: 2px solid var(--current); border-radius: 50%; color: var(--night); font: 600 13px/26px var(--sans); text-align: center; }
.reader.j { left: 31%; background: var(--reed); }
.reader.m { left: 62%; background: var(--coral); }
.reader.you { left: 46%; top: 5px; width: 34px; height: 34px; margin-left: -17px; border-width: 3px; background: var(--lamp); color: var(--lamp-ink); font-weight: 700; line-height: 28px; }
.names { position: relative; height: 40px; margin-top: 8px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.names span { position: absolute; width: 52px; margin-left: -26px; text-align: center; }
.names .j { left: 31%; } .names .m { left: 62%; }
.names .you { left: 46%; color: var(--page); font-weight: 600; }
.place { margin: 10px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.bubble { max-width: 85%; margin-bottom: 8px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--raised); font-size: 15px; line-height: 1.4; }
.bubble small { display: block; font-size: 12px; color: var(--muted); }
.bubble.you { margin-left: auto; border-radius: 16px 16px 4px 16px; background: var(--you-bubble); }
.bubble.you small { color: var(--lamp); }
.locked { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.locked svg { width: 16px; height: 16px; flex: none; }

/* Spotlights after the first sit closer together; on wide screens every other demo swaps sides. */
.spotlight + .spotlight { padding-top: 24px; }
.split.flip > .demo { order: -1; }
.demo-label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lamp); }
.demo .meta { margin: 0 0 16px; font-size: 15px; color: var(--muted); }

/* Example club card, drawn like the app's Next meeting card and member vote */
.rsvp { display: flex; gap: 8px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.rsvp span { flex: 1; padding: 9px 4px; border: 1.5px solid var(--ripple); border-radius: 999px; font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; }
.rsvp .on { border-color: var(--lamp); background: var(--lamp); color: var(--lamp-ink); }
.votes { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.votes li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--raised); }
.votes .rank { width: 14px; font-family: var(--serif); font-size: 18px; color: var(--muted); }
.votes .title { flex: 1; min-width: 0; line-height: 1.3; }
.votes strong { display: block; font-weight: 600; font-size: 15px; }
.votes small { font-size: 13px; color: var(--muted); }
.votes svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.votes .voted svg, .votes .voted .rank { color: var(--lamp); }

/* Example scanner, drawn like the app's camera with its guide box */
.viewfinder { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; padding: 18px 16px 14px; border-radius: 18px; background: radial-gradient(circle at 50% 40%, var(--ripple), var(--night) 75%); }
.viewfinder .frame { width: 82%; max-width: 280px; height: auto; }
.cam-tools { display: flex; gap: 10px; }
.cam-tools span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--night) 75%, transparent); color: var(--page); }
.cam-tools svg { width: 17px; height: 17px; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--you-bubble); font-size: 14px; line-height: 1.35; }
.toast .undo { flex: none; color: var(--lamp); font-weight: 600; }
.scanned { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.scanned li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.3; }
.scanned strong { font-weight: 600; }
.scanned small { display: block; font-size: 13px; color: var(--muted); }
.cover { flex: none; width: 30px; height: 44px; border-radius: 3px 5px 5px 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--night) 35%, transparent) 4px, transparent 4px), var(--c); }
.btn.wide { width: 100%; justify-content: center; pointer-events: none; }

/* Coming soon note */
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; padding: 16px 18px; border-radius: 16px; background: var(--current); }
.soon p { flex: 1 1 220px; margin: 0; font-size: 16px; color: var(--muted); }
.soon strong { color: var(--page); font-weight: 600; }
.soon .status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--raised); color: var(--lamp); font-size: 13px; font-weight: 500; }
.soon .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); }

/* Privacy */
.note { max-width: 720px; margin: 24px 0 0; color: var(--muted); }
.audience { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--reed); }

/* Support band */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 80px; padding: 36px; border-radius: 24px; background: var(--current); }
.cta h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 32px); }
.cta p { margin: 0; color: var(--muted); }

/* Support and legal pages */
.container.doc { max-width: 808px; padding-top: 56px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(38px, 5.5vw, 54px); }
.doc h2 { margin: 40px 0 10px; font-size: 27px; }
.doc h3 { margin: 26px 0 6px; font-size: 20px; }
.doc p, .doc li { color: var(--page); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--lamp); }
.doc a { color: var(--lamp); text-underline-offset: 3px; }
.updated { margin: 0 0 8px; color: var(--muted); font-size: 15px; }

/* Footer */
footer { padding: 0 0 48px; color: var(--muted); font-size: 14px; }
/* The rule is drawn inside the gutters so it lines up with the content above. */
footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 28px; background: linear-gradient(var(--rule), var(--rule)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
footer .brand { color: var(--page); font-size: 19px; }
footer .brand svg { width: 28px; height: 28px; }
.footlinks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--page); }

@media (max-width: 860px) {
  .hero .container, .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip > .demo { order: 0; }
  .hero-art { max-width: 340px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 40px; }
  section { padding: 56px 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 24px; margin-bottom: 56px; }
  .demo { padding: 20px 16px; }

  /* Header stays one short row: logo left, links right */
  .nav .container { flex-wrap: nowrap; min-height: 60px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand svg { width: 30px; height: 30px; }
  .navlinks { flex-wrap: nowrap; }
  .navlinks a { padding: 8px; font-size: 14px; }

  /* Hero: smaller sailboat, less empty space before "What it does" */
  .hero { padding: 32px 0 0; }
  .hero .container { gap: 8px; }
  .hero-art { max-width: 200px; }

  /* Feature cards: icon beside the title instead of above it, so the list is shorter */
  .grid { gap: 12px; }
  .card:has(> .icon) { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 18px; }
  .card > .icon { grid-row: span 2; width: 40px; height: 40px; margin: 2px 0 0; }
  .card > .icon svg { width: 20px; height: 20px; }
  .card h3 { margin-bottom: 4px; font-size: 19px; }
}
@media (max-width: 480px) {
  /* Not enough room for three header links; Privacy and Terms stay in the footer */
  .navlinks a[href="privacy.html"], .navlinks a[href="terms.html"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
