/* FundRaze site — colors match the app icon (cream, navy, stop-sign red). */
:root {
  --bg: #fbf7ee;
  --bg-soft: #f3ecdd;
  --card: #ffffff;
  --text: #1f2e4d;
  --muted: #5b6478;
  --accent: #e0242f;
  --accent-ink: #ffffff;
  --line: #e4dccb;
  --bubble: #e9e9eb;
  --bubble-text: #1c1c1e;
  --radius: 18px;
  --max: 980px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161f;
    --bg-soft: #1a2030;
    --card: #1e2536;
    --text: #f2ede2;
    --muted: #a9b1c2;
    --accent: #ff4b55;
    --line: #2c3548;
    --bubble: #2c2c2e;
    --bubble-text: #f2f2f7;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 40px 0 56px; }
.hero .icon { width: 128px; height: 128px; border-radius: 29px; margin: 0 auto 26px; box-shadow: 0 14px 40px rgba(31, 46, 77, 0.18); }
.hero h1 {
  font-family: ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif;
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero h1 .strike { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 0.09em; }
.hero p.lede { font-size: clamp(18px, 2.6vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 30px; }

/* App Store placeholder button. Replace with Apple's official badge + link when the app is live. */
.store-button {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 12px 22px; min-height: 54px;
  border: 1px solid #a6a6a6;
}
.store-button .small { display: block; font-size: 11px; line-height: 1.1; opacity: 0.85; }
.store-button .big { display: block; font-size: 20px; font-weight: 600; line-height: 1.15; }
.store-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-soft); }
h2 {
  font-family: ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif;
  font-size: clamp(28px, 4.5vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px;
}
.section-intro { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

/* Fake text bubbles */
.bubbles { display: grid; gap: 12px; max-width: 560px; }
.bubble {
  background: var(--bubble); color: var(--bubble-text);
  padding: 11px 15px; border-radius: 20px 20px 20px 6px; width: fit-content; max-width: 100%;
  font-size: 16px; line-height: 1.4; position: relative;
}
.bubble::after {
  content: "→ Junk"; display: block; font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 4px;
}
.punchline { margin-top: 26px; font-weight: 600; font-size: 18px; }

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Privacy promise */
.promise { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 760px; }
.promise p { margin: 0 0 10px; }
.promise p:last-child { margin: 0; color: var(--muted); }

/* About */
.about { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .about { grid-template-columns: 1.1fr 1fr; } }
.about img { border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.about p { margin: 0 0 14px; }
.about .sig { color: var(--muted); }

/* Contact */
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600;
}
.pill:hover { border-color: var(--accent); }
.pill svg { width: 18px; height: 18px; }

/* Footer */
.site-footer { padding: 30px 0 46px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer nav { display: flex; gap: 16px; }

/* Legal pages */
.legal { max-width: 760px; padding: 20px 20px 60px; }
.legal h1 { font-family: ui-rounded, -apple-system, system-ui, sans-serif; font-size: clamp(30px, 5vw, 42px); margin: 10px 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal .tldr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.legal .caps { text-transform: uppercase; font-size: 15px; letter-spacing: 0.01em; }

a:focus-visible, .store-button:focus-visible, .pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Small phones: keep the header on one line */
.nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .nav { gap: 14px; font-size: 15px; }
  .nav .hide-sm { display: none; }
}
.legal .tldr p { margin: 0; }
