:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --bg: #faf8f5;
  --accent: #8a3b3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 2.5rem;
}

.signup {
  margin: 0 auto 1.5rem;
  max-width: 420px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

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

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup input[type="email"] {
  flex: 1 1 240px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.signup button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.signup button:disabled {
  opacity: 0.6;
  cursor: default;
}

.signup-message {
  flex-basis: 100%;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
  min-height: 1.25em;
}

.privacy-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2rem;
}

/* Learn pages: left-aligned reading layout. */
.article { max-width: 680px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; line-height: 1.6; }
.article h1 { margin-bottom: .75rem; }
.article h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.article h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.article .lede { margin-bottom: 1.5rem; }
.article a { color: var(--accent); }
.article .crumbs { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.article .disclosure { font-size: .9rem; color: var(--muted); }
.article .resources li, .article .topics li { margin-bottom: .75rem; }
.article .soon { color: var(--muted); }
.article .small { font-size: .9rem; color: var(--muted); }
.article .note { margin-top: 2.5rem; border-top: 1px solid #e4dfd6; padding-top: 1rem; }

/* Brand header, shared by every marketing page. Same blue, gold and coral as the app and the icon. */
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 1.25rem; background: #1d4e9e; border-bottom: 3px solid #ffd23f; }
.site-top .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-top .brand img { display: block; border-radius: 10px; }
.site-top .lockup { display: flex; flex-direction: column; font-family: "Arial Black", Impact, "Helvetica Neue", Arial, sans-serif; font-weight: 900; line-height: 1; }
.site-top .good { color: #ffd23f; font-size: 1.3rem; letter-spacing: .1em; }
.site-top .husband { color: #ff6b78; font-size: .74rem; letter-spacing: .3em; margin-top: 3px; }
.site-top nav a { color: #ffffff; text-decoration: none; font-weight: 600; }
.site-top nav a:hover { color: #ffd23f; }

/* Article furniture: hero illustration, section icons, deposit and withdrawal lists. */
.article .hero-art { margin: 0 0 1.75rem; }
.article .hero-art svg { display: block; width: 100%; height: auto; border-radius: 16px; }
.article .hero-art figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.article h2 { display: flex; align-items: center; gap: .6rem; }
.article .h-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #e6edf8; color: #1d4e9e; }
.article .h-icon svg { width: 22px; height: 22px; }
.article ul.deposits, .article ul.withdrawals { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.article ul.deposits li, .article ul.withdrawals li { position: relative; padding: .55rem 0 .55rem 2.1rem; border-top: 1px solid #ece7de; }
.article ul.deposits li:first-child, .article ul.withdrawals li:first-child { border-top: 0; }
.article ul.deposits li::before, .article ul.withdrawals li::before { content: ""; position: absolute; left: 0; top: .75rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; }
.article ul.deposits li::before { background: #ffd23f; box-shadow: inset 0 0 0 2px #e0b200; }
.article ul.withdrawals li::before { background: #ff6b78; box-shadow: inset 0 0 0 2px #d6455a; }
.article ul.deposits li::after, .article ul.withdrawals li::after { position: absolute; left: .37rem; top: .62rem; font-weight: 900; font-size: .95rem; line-height: 1.3rem; }
.article ul.deposits li::after { content: "+"; color: #5b4300; }
.article ul.withdrawals li::after { content: "\2212"; color: #ffffff; }
.article .callout { background: #f4f7fc; border-left: 4px solid #1d4e9e; border-radius: 8px; padding: .9rem 1.1rem; margin: 1.2rem 0; }
.article .photo-note { display: none; }

/* Photos and book cards on learn pages. */
.article figure.photo { margin: 1.2rem 0 1.4rem; }
.article figure.photo img { display: block; width: 100%; height: 320px; object-fit: cover; border-radius: 14px; }
.article figure.photo.tall img { height: 380px; object-position: 50% 30%; }
.article figure.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.article figure.photo .credit a { color: var(--muted); }
.article ul.books { list-style: none; padding: 0; margin: .5rem 0 1.2rem; }
.article ul.books li.book { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid #ece7de; align-items: flex-start; }
.article ul.books li.book:first-child { border-top: 0; }
.article ul.books img { width: 96px; height: auto; flex: none; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.article ul.books .by { color: var(--muted); font-size: .92rem; }
.article ul.books p { margin: .4rem 0 0; font-size: .95rem; }
