/* MyFinPulse public site. Colours match the app: Colors.xaml. */

:root {
  --emerald-50: #ecfdf5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --green-600: #16a34a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --navy-900: #0f172a;
  --navy-950: #0b1120;
  --sky-700: #0369a1;
  --sky-100: #e0f2fe;
  --page: var(--slate-50);
  --surface: #ffffff;
  --surface-raised: var(--slate-100);
  --border: var(--slate-200);
  --text: var(--navy-900);
  --muted: var(--slate-500);
  --primary: var(--emerald-700);
  --primary-soft: var(--emerald-50);
  --projected: var(--sky-700);
  --projected-soft: var(--sky-100);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: var(--navy-950);
    --surface: #131c2e;
    --surface-raised: #1a2438;
    --border: #26324a;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --primary: var(--emerald-500);
    --primary-soft: #0f2e27;
    --projected: #38bdf8;
    --projected-soft: #0c2a3d;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Open Sans", Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--page);
  color: var(--text);
}

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand svg { display: block; border-radius: 14px; }

nav { display: flex; gap: 18px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
nav a[aria-current="page"], nav a:hover { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 28px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tagline { margin: 0 0 18px; color: var(--primary); font-weight: 700; font-size: 18px; }
.lede { margin: 0 0 24px; color: var(--muted); font-size: 18px; max-width: 38rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981 0%, #047857 65%, #064e3b 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.promises { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.promise {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-shot { margin: 0; }
.hero-shot img {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin-inline: auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-shot figcaption, .shot figcaption {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.shot figcaption { font-weight: 700; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.hero-card {
  background: linear-gradient(135deg, #10b981 0%, #047857 65%, #064e3b 100%);
  color: white;
  border: 0;
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 12px;
}

.hero-card p { margin: 0; }
.overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.amount { margin: 6px 0 10px; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
}
.chip.actual { background: var(--primary-soft); color: var(--primary); }
.chip.projected { background: var(--projected-soft); color: var(--projected); }

.rows { display: grid; gap: 8px; margin-top: 12px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
}
.row span { color: var(--muted); }
.row strong { font-weight: 700; }

.caption { margin: 10px 2px 0; color: var(--muted); font-size: 12px; }

section { padding: 28px 0 8px; }
h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.03em; }
.section-intro { margin: 0 0 18px; color: var(--muted); max-width: 40rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

footer.site {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: inherit; }

.policy { padding: 36px 0 12px; max-width: 760px; }
.policy h1 { font-size: 40px; }
.policy h2 { font-size: 22px; margin-top: 28px; }
.policy p, .policy li { color: var(--text); }
.policy .meta { color: var(--muted); margin-bottom: 8px; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin: 6px 0; }

@media (max-width: 860px) {
  .hero, .grid, .shots { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 32px; gap: 28px; }
}

@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; }
  nav { gap: 12px; }
}

/* Additions: skip link, availability, steps, privacy band, FAQ. */
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.skip:focus { top: 12px; }

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

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--emerald-400) 25%, transparent);
}

.steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step { padding: 20px; }
.step h3 { margin: 12px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.feature { padding: 20px; }

.privacy-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 36px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid var(--border);
}
.privacy-band .section-intro { color: var(--text); opacity: 0.8; }
.never { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.never li {
  position: relative;
  padding: 12px 14px 12px 44px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
}
.never li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 8px;
  margin-top: -6px;
  border-left: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: rotate(-45deg);
}

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.footer-links { display: flex; gap: 18px; }

@media (max-width: 860px) {
  .steps, .privacy-band { grid-template-columns: 1fr; }
  .privacy-band { padding: 24px; }
}

@media (max-width: 560px) {
  nav a[href="/#screens"] { display: none; }
}
