/* ============================================================
   FlowPerch marketing site — matches the app's design tokens.
   Only two font families; only one script (Google Fonts).
   No frameworks: the whole site is < 30 KB gzipped so it loads
   quickly on any device.
   ============================================================ */

:root {
  --primary: #FF8A5B;
  --primary-soft: #FFE4D4;
  --primary-ink: #FFFFFF;
  --bg: #FBF3E7;
  --bg-deep: #F3E6D2;
  --surface: #FFFFFF;
  --surface-soft: #FFF8EE;
  --ink: #3B2F26;
  --ink-soft: #8A7A6B;
  --line: #EFE1CC;

  --income-ink: #2F7D4D;
  --expense-ink: #C2483B;
  --invest-ink: #2C5F94;
  --lent-ink: #A4631A;
  --borrow-ink: #6B4C9E;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 100px;

  --shadow-tinted:
    0 10px 24px -12px rgba(255, 138, 91, 0.35),
    0 4px 10px -4px rgba(59, 47, 38, 0.06);
  --shadow-card:
    0 2px 6px -2px rgba(59, 47, 38, 0.08),
    0 8px 20px -8px rgba(59, 47, 38, 0.06);

  --gradient-primary: linear-gradient(135deg, #FF8A5B 0%, #FF6E3C 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(34px, 5.5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 6px; }

p { margin: 0; color: var(--ink-soft); font-weight: 700; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Layout ---------------------------------------------------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 48px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

/* Nav ------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 243, 231, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700; font-size: 18px; color: var(--ink);
}
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links {
  display: flex; align-items: center; gap: 18px; margin-left: auto;
}
.nav-links a { color: var(--ink); font-size: 13px; font-weight: 800; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta {
  background: var(--gradient-primary);
  color: white !important;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow-tinted);
}
.nav-cta:hover { text-decoration: none; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Hero ------------------------------------------------------ */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero .trial-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 12.5px; color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 14px; }
.hero p.lead {
  max-width: 640px; margin: 0 auto 26px;
  font-size: 17px; color: var(--ink-soft);
}
.hero-cta {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.hero-note { font-size: 13px; color: var(--ink-soft); }

.store-button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--ink); color: white !important;
  border-radius: var(--radius-pill);
  font-weight: 800; font-size: 14px;
  transition: transform 0.15s;
}
.store-button:hover { transform: translateY(-1px); text-decoration: none; }
.store-button.google { background: #01875f; }
.store-button svg { width: 20px; height: 20px; }

/* "Coming soon" pills — same silhouette as the store buttons so the
   layout does not jump, but muted and non-interactive so it reads as
   unavailable rather than as a link you clicked and nothing happened. */
.store-button.coming-soon {
  background: transparent;
  color: var(--ink-soft) !important;
  border: 1.5px dashed var(--line);
  cursor: default;
}
.store-button.coming-soon:hover { transform: none; }

.platform-card .status.coming {
  background: var(--surface-soft);
  color: var(--lent-ink);
}

/* Phone mockups -------------------------------------------- */

.phones {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 50px; padding: 0 20px;
}
.phone {
  width: 260px; max-width: 40vw;
  border-radius: 32px; overflow: hidden;
  background: var(--ink); padding: 6px;
  box-shadow:
    0 30px 60px -20px rgba(59, 47, 38, 0.25),
    0 12px 24px -12px rgba(255, 138, 91, 0.15);
  transform: translateY(0) rotate(-2deg);
}
.phone:nth-child(2) { transform: translateY(-24px) rotate(2deg); }
.phone img { border-radius: 26px; width: 100%; }

@media (max-width: 640px) {
  .phones { gap: 12px; }
  .phone { width: 44vw; padding: 4px; border-radius: 24px; }
  .phone img { border-radius: 20px; }
}

/* Feature grid --------------------------------------------- */

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s;
}
.card:hover { transform: translateY(-2px); }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.card.income  .icon { background: #E1F3E4; }
.card.expense .icon { background: #FBE3E1; }
.card.invest  .icon { background: #DEEBFA; }
.card.lent    .icon { background: #FCEAD4; }
.card.borrow  .icon { background: #ECE2F8; }
.card.cash    .icon { background: #E8EEF2; }
.card.premium-pill h3::after {
  content: 'Premium';
  display: inline-block; margin-left: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 10.5px; font-weight: 800;
  color: var(--primary); background: var(--primary-soft);
  padding: 2px 7px; border-radius: var(--radius-pill);
  vertical-align: middle;
}
.card p { font-size: 14px; line-height: 1.55; }

/* Steps ---------------------------------------------------- */

.steps {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.step {
  position: relative; padding: 20px 20px 20px 60px;
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 14px; }

/* Platform ------------------------------------------------- */

.platforms {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.platform-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.platform-card .emoji { font-size: 40px; margin-bottom: 10px; }
.platform-card h3 { font-size: 22px; margin-bottom: 6px; }
.platform-card .status {
  display: inline-block; margin: 8px 0 14px;
  font-size: 12px; font-weight: 800;
  background: #E1F3E4; color: var(--income-ink);
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.platform-card p { font-size: 14px; margin-bottom: 14px; }

/* Premium blocks ------------------------------------------ */

.premium-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.premium-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.premium-card h3 { font-size: 17px; margin-bottom: 4px; }
.premium-card .lead-line {
  color: var(--ink-soft); font-size: 13.5px; margin-bottom: 12px;
}
.premium-card ul { margin: 0; padding: 0; list-style: none; }
.premium-card li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  font-size: 13.5px; color: var(--ink);
}
.premium-card li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 800;
}

/* Pricing -------------------------------------------------- */

.pricing-card {
  max-width: 480px; margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--primary-soft);
  text-align: center;
}
.pricing-card .trial {
  display: inline-block; padding: 6px 12px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 800; margin-bottom: 18px;
}
.pricing-card .price {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 44px; color: var(--ink); line-height: 1;
}
.pricing-card .price .cents { font-size: 22px; opacity: 0.7; }
.pricing-card .price-note {
  font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 20px;
}
.pricing-card ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  text-align: left;
}
.pricing-card li {
  position: relative; padding: 8px 0 8px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: '✓'; position: absolute; left: 4px;
  color: var(--primary); font-weight: 800;
}
.pricing-card .primary-cta {
  display: inline-block;
  background: var(--gradient-primary);
  color: white !important;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-tinted);
}
.pricing-card .primary-cta:hover { text-decoration: none; }
.pricing-card .fine-print {
  margin-top: 16px; font-size: 12px; color: var(--ink-soft);
  line-height: 1.55;
}

/* Final CTA ------------------------------------------------ */

.final-cta {
  background: var(--gradient-primary);
  color: white; text-align: center;
  border-radius: var(--radius-lg);
  padding: 48px 22px;
  margin: 32px 0;
  box-shadow: var(--shadow-tinted);
}
.final-cta h2 { color: white; margin-bottom: 12px; }
.final-cta p { color: rgba(255, 255, 255, 0.9); margin-bottom: 22px; }

/* Footer --------------------------------------------------- */

footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  text-align: center;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 16px; color: var(--ink);
  margin-bottom: 8px;
}
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin: 14px 0 12px;
  font-size: 13px;
}
.footer-links a { color: var(--ink-soft); }
.footer-copy { font-size: 12px; color: var(--ink-soft); }

/* Legal pages (privacy, terms) ---------------------------- */

.legal {
  max-width: 780px; margin: 0 auto;
  padding: 40px 22px 80px;
}
.legal h1 { font-size: 36px; margin-bottom: 10px; }
.legal .updated { color: var(--ink-soft); font-size: 13px; margin-bottom: 32px; }
.legal h2 {
  font-size: 20px; margin-top: 32px; margin-bottom: 10px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal p, .legal li {
  color: var(--ink); font-size: 15px;
  line-height: 1.65; margin: 0 0 12px;
}
.legal ul { padding-left: 22px; }
.legal a { text-decoration: underline; }
.legal .back {
  display: inline-block; margin-bottom: 24px;
  color: var(--primary); font-size: 13px; font-weight: 800;
}
