/*
  Bloomscroll marketing site. No build step, no scripts, no web fonts.
  Colors are the app's own tokens (src/theme/tokens.ts), plus the contrast-safe text colors
  Plan 5 Task 1 adds (accent-text, and ink on the coral fill). Coral is a fill, never text.
  Type follows the app's scale (src/theme/typography.ts): the system face, heavy and tight for display.
*/

:root {
  color-scheme: light dark;
  --paper: #FAF7F2;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --ink: #1B1A19;
  --muted: #6B6762;
  --coral: #FF6B4A;
  --on-coral: #1B1A19;
  --coral-text: #B03F1D;
  --blush: #FFE6DE;
  --leaf: #2F7D5B;
  --on-leaf: #FFFFFF;
  --line: #E8E2DA;
  --media: #0F0E0D;
  --on-media: #FFFFFF;
  --on-media-muted: #FFFFFFD9;
  --glass: #FFFFFF2E;
  --water: #CFE6EE;
  --land: #EFE9E1;
  --shadow: 0 1px 2px #1B1A1914, 0 12px 32px #1B1A1914;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --gutter: 16px;
  --measure: 36rem;
  --page: 72rem;
}

@media (min-width: 40rem) {
  :root { --gutter: 32px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121110;
    --surface: #1C1B19;
    --raised: #262523;
    --ink: #F5F1EB;
    --muted: #A39E97;
    --coral: #FF7A5C;
    --on-coral: #1B1A19;
    --coral-text: #FF7A5C;
    --blush: #3B2119;
    --leaf: #4CA57A;
    --on-leaf: #0F0E0D;
    --line: #2F2D2A;
    --water: #16303A;
    --land: #262523;
    --shadow: 0 1px 2px #00000066, 0 12px 32px #00000066;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--font);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--coral-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--coral-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: 700;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font: 800 1.25rem/1 var(--font-display);
  letter-spacing: -0.02em;
}
.brand svg { width: 1.75rem; height: 1.75rem; }

.site-nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--coral-text); }

@media (max-width: 47.99rem) {
  .site-nav { display: none; }
}

/* Buttons */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.store-badge:hover { text-decoration: none; opacity: 0.92; }
.store-badge small { display: block; font-weight: 500; font-size: 0.75rem; opacity: 0.85; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-coral);
  font-weight: 700;
  text-decoration: none;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.5rem 0 4rem;
}

/* The onboarding screen's two soft circles. */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--blush);
}
.hero::before { width: min(34rem, 90vw); aspect-ratio: 1; right: -8rem; top: -12rem; }
.hero::after { width: 14rem; aspect-ratio: 1; left: -7rem; top: 55%; }

.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 60rem) {
  .hero { padding: 4rem 0 6rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.hero h1 {
  margin: 0 0 1.25rem;
  font: 800 clamp(2.75rem, 7.5vw, 5.75rem)/0.98 var(--font-display);
  letter-spacing: -0.035em;
  max-width: 13ch;
}

.lead {
  margin: 0 0 2rem;
  max-width: var(--measure);
  color: var(--muted);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
}

.hero .fine { margin: 0.875rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* Phone mock (decorative; the text next to it says the same thing) */

.phone {
  width: min(20rem, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
  padding: 0.625rem;
  border-radius: 3rem;
  background: var(--ink);
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  .phone { background: #2F2D2A; }
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.4rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.feed-end {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
}
.feed-end .mark { width: 3.5rem; height: 3.5rem; margin-bottom: 0.5rem; }
.feed-end strong { font: 800 1.5rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.feed-end span { color: var(--muted); font-size: 1rem; line-height: 1.4; }
.feed-end .button { margin-top: 0.75rem; font-size: 0.9375rem; }

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0.5rem 0.5rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.6875rem;
  color: var(--muted);
  text-align: center;
}
.tabbar .on { color: var(--coral-text); font-weight: 700; }
.tabbar .plus {
  justify-self: center;
  width: 2.5rem; height: 2.5rem;
  margin-top: -1.25rem;
  border-radius: 50%;
  background: var(--coral);
  color: var(--on-coral);
  font-size: 1.5rem;
  line-height: 2.5rem;
  font-weight: 400;
}

/* Sections */

.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }

.section h2 {
  margin: 0 0 1rem;
  font: 800 clamp(2rem, 4.5vw, 3.25rem)/1.05 var(--font-display);
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.section p { max-width: var(--measure); }

/* Feature rows: text and a mock, alternating on wide screens */

.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature:first-of-type { padding-top: 0; }
.feature:last-of-type { padding-bottom: 0; }
.feature h3 {
  margin: 0 0 0.75rem;
  font: 800 clamp(1.75rem, 3.5vw, 2.5rem)/1.08 var(--font-display);
  letter-spacing: -0.025em;
}
.feature p { margin: 0 0 0.875rem; color: var(--muted); }
.feature p strong { color: var(--ink); font-weight: 600; }

@media (min-width: 52rem) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .feature.flip .copy { order: 2; }
}

.mock {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}

/* Feed card mock */

.card-mock {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 20%, #FF9466 0%, #00000000 55%),
    linear-gradient(170deg, #B03F1D 0%, #3B2119 55%, var(--media) 100%);
  color: var(--on-media);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.625rem;
  box-shadow: var(--shadow);
}
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill.glass { background: var(--glass); color: var(--on-media); }
.pill.leaf { background: #2F7D5B; color: #FFFFFF; }
.bar { height: 0.8rem; border-radius: 999px; background: var(--on-media); opacity: 0.92; }
.bar.w90 { width: 90%; } .bar.w70 { width: 70%; } .bar.w55 { width: 55%; }
.bar.soft { height: 0.55rem; opacity: 0.55; }
.rail {
  position: absolute;
  right: 1rem;
  bottom: 6.5rem;
  display: grid;
  gap: 0.75rem;
}
.rail span {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--glass);
  display: grid;
  place-items: center;
}
.rail svg { width: 1.2rem; height: 1.2rem; }

.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.reactions li {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Map mock */

.map-mock {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--land);
  box-shadow: var(--shadow);
}
.map-mock svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .water { fill: var(--water); }
.map .land { fill: var(--land); }
.map .road { fill: none; stroke: var(--surface); stroke-width: 6; }
.map .road.thin { stroke-width: 3; }
.map .pin path { fill: var(--coral); }
.map .pin circle { fill: var(--paper); }
.map-mock .chips {
  position: absolute;
  top: 1rem; left: 1rem; right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.map-mock .button {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.9375rem;
}

/* Three picks mock */

.picks-mock { display: grid; gap: 0.75rem; }
.answers { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.25rem; }
.pick {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.125rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pick .bar { background: var(--ink); opacity: 0.85; }
.pick .bar.soft { background: var(--muted); opacity: 0.6; }
.solo {
  justify-self: start;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--blush);
  color: var(--coral-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.why {
  margin: 0;
  padding: 0.625rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--blush);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.pick:nth-child(3), .pick:nth-child(4) { margin-inline: 0.75rem; opacity: 0.9; }
.pick:nth-child(4) { margin-inline: 1.5rem; opacity: 0.75; }

/* How it works: a real sequence, so it is numbered */

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: var(--coral);
  color: var(--on-coral);
  font-weight: 800;
}
.steps h3 { margin: 0 0 0.375rem; font: 700 1.25rem/1.25 var(--font-display); }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Privacy promises */

.promises {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
}
.promises li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.875rem;
  align-items: start;
  font-size: 1.1875rem;
}
.promises svg { width: 1.75rem; height: 1.75rem; color: var(--leaf); margin-top: 0.1rem; }
.note { color: var(--muted); font-size: 1rem; }

/* FAQ */

.faq { max-width: 46rem; margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.125rem 2rem 1.125rem 0;
  position: relative;
  list-style: none;
  font-weight: 700;
  font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--coral-text);
  font-size: 1.5rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.25rem; color: var(--muted); }

/* Closing */

.closing { text-align: left; }
.closing h2 { max-width: 20ch; }

/* Plain pages (privacy, terms, support) */

.page { padding: 3rem 0 5rem; }
.page h1 {
  margin: 0 0 1rem;
  font: 800 clamp(2.25rem, 6vw, 3.5rem)/1.05 var(--font-display);
  letter-spacing: -0.03em;
}
.page h2 { margin: 2.5rem 0 0.5rem; font: 700 1.375rem/1.25 var(--font-display); }
.page p, .page li { max-width: var(--measure); }
.page dl { max-width: var(--measure); }
.page dt { font-weight: 700; margin-top: 1.25rem; }
.page dd { margin: 0.25rem 0 0; color: var(--muted); }
.callout {
  max-width: var(--measure);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--blush);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--ink); }
