/* MoneyMap Pulse — static marketing site */

:root {
  --primary: #007AFF;
  --primary-light: #4DA3FF;
  --bg-light: #F2F7FF;
  --white: #FFFFFF;
  --text-dark: #102A43;
  --text-secondary: #52616B;
  --border: #D9E8FF;
  --success: #1E9E5A;
  --max-width: 1120px;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(16, 42, 67, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

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

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--white);
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-dark);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--primary);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary);
  text-decoration: none;
}

.header-cta {
  margin-left: auto;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: var(--white);
}

.button-primary:hover {
  background: #0066d6;
  color: var(--white);
}

.button-secondary {
  background: var(--white);
  color: var(--text-secondary);
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.button-disabled {
  background: var(--bg-light);
  color: var(--text-secondary);
  border-color: var(--border);
  cursor: default;
  opacity: 0.85;
}

.button-disabled:hover {
  text-decoration: none;
  color: var(--text-secondary);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
  padding: 56px 0 64px;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text-dark);
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

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

/* Trust banner */
.trust-banner {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  margin: 40px 0;
}

.trust-banner p {
  margin: 0;
  font-weight: 500;
  color: var(--text-dark);
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  text-align: center;
}

.section .section-intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  color: var(--text-dark);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Screenshot grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.screenshot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.screenshot-card .screenshot-placeholder {
  aspect-ratio: 9 / 16;
  max-height: 320px;
  background: linear-gradient(145deg, var(--bg-light) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--bg-light);
}

.screenshot-card .screenshot-caption {
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  margin: 0;
  border-top: 1px solid var(--border);
}

/* Page header (inner pages) */
.page-header {
  background: var(--bg-light);
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-header .lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 640px;
}

/* Content sections */
.content-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.content-section:last-child {
  border-bottom: none;
}

.content-section h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--text-dark);
}

.content-section p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

/* Callout */
.callout {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}

.callout p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* CTA block */
.cta-section {
  text-align: center;
  padding: 56px 0;
  background: var(--bg-light);
}

.cta-section h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
}

/* Contact */
.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.contact-list li {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 24px;
  margin-top: auto;
}

.site-footer a {
  color: var(--primary-light);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h3 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer p,
.site-footer li {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

/* Layout wrapper */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Mobile nav */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .header-cta {
    margin-left: 0;
    width: 100%;
  }

  .header-cta .button {
    width: 100%;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }
}
