: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: 1.5rem 1.25rem 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;
}

/* The rotating headline: three rows (the problem, what Good Husband does, what you get), each with its own icon tile. The tile stays
   put; only the line beside it slides, clipped by its row. */
.rotator { margin: 0 0 1.5rem; text-align: left; }
.rot-item { display: flex; align-items: center; gap: .9rem; }
.rot-item + .rot-item { margin-top: 1rem; }
.rot-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.rot-ico svg { width: 26px; height: 26px; }
.rot-item-pain .rot-ico { background: #d62839; color: #fff; }
.rot-item-fix .rot-ico { background: #ffd23f; color: #1d4e9e; }
.rot-logo { display: block; border-radius: 14px; object-fit: cover; }
.rot-row { display: grid; overflow: hidden; padding: .08em 0; flex: 1; min-width: 0; }
.rot-line { grid-area: 1 / 1; display: block; will-change: transform; }
.rot-pain .rot-line { font-size: clamp(1.5rem, 5.6vw, 2.3rem); font-weight: 800; line-height: 1.2; color: var(--ink); }
.rot-fix .rot-line { font-size: 1.15rem; line-height: 1.4; color: var(--muted); }
.rot-win .rot-line { font-size: clamp(1.25rem, 4.6vw, 1.5rem); font-weight: 800; line-height: 1.25; color: #1d4e9e; }

/* "Ask to join the beta" on the home page: a husband for himself, or a wife for him. A grid, so labels and fields line up. */
.beta-ask {
  max-width: 460px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid #e4dfd6;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(29, 78, 158, .08);
  text-align: left;
}
.beta-ask h2 { font-size: 1.35rem; margin: 0 0 .4rem; text-align: center; }
.beta-ask .beta-note { margin: 0 0 1.25rem; text-align: center; color: var(--muted); font-size: .95rem; line-height: 1.45; }

.beta-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.beta-grid > * { min-width: 0; }
.beta-his { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.beta-his[hidden] { display: none; }
@media (min-width: 520px) {
  .beta-ask { max-width: 640px; }
  .beta-grid { grid-template-columns: 1fr 1fr; }
  .beta-seg, .beta-his, .beta-check, .beta-submit, .beta-grid .signup-message { grid-column: 1 / -1; }
  .beta-his { grid-template-columns: 1fr 1fr; }
}

/* Husband / wife: two button-style choices sharing one row. */
.beta-seg { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.beta-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.beta-seg label {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .6rem .75rem;
  font-size: 1rem; font-weight: 700; color: #1d4e9e;
  background: #f4f7fc; border: 2px solid #c9d8ee; border-radius: 12px;
  cursor: pointer; text-align: center; line-height: 1.15;
}
.beta-seg label svg { width: 22px; height: 22px; flex: none; }
.beta-seg input:checked + label { background: #1d4e9e; border-color: #1d4e9e; color: #fff; }
.beta-seg input:focus-visible + label { outline: 3px solid #ffd23f; outline-offset: 2px; }

.beta-field { display: grid; grid-template-rows: auto auto; gap: .4rem; }
.beta-field label { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .9rem; font-weight: 700; color: var(--ink); }
.beta-field label svg { width: 18px; height: 18px; flex: none; color: #1d4e9e; }
.beta-field input {
  width: 100%; box-sizing: border-box; min-height: 48px;
  padding: .7rem .9rem; font-size: 1rem; font-family: inherit;
  border: 2px solid #d5d0c6; border-radius: 10px; background: #fff; color: var(--ink);
}
.beta-field input:focus { outline: none; border-color: #1d4e9e; box-shadow: 0 0 0 3px rgba(29, 78, 158, .2); }
.beta-ask .honeypot { width: 1px; }

.beta-submit {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; min-height: 52px; padding: .75rem 1.5rem;
  font-size: 1.05rem; font-weight: 700; font-family: inherit; color: #fff;
  background: #1d4e9e; border: 0; border-bottom: 3px solid #ffd23f; border-radius: 12px; cursor: pointer;
}
.beta-submit svg { width: 20px; height: 20px; flex: none; }
.beta-submit:disabled { opacity: .6; cursor: default; }
.beta-ask .signup-message { text-align: center; margin: 0; }

.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; }
.site-foot { max-width: 44rem; margin: 2.5rem auto 2rem; padding: 0 1rem; text-align: center; }
.site-foot small { font-size: .75rem; color: var(--muted); line-height: 1.4; }
.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; }
.article ol.steps { list-style: none; counter-reset: step; padding: 0; margin: .5rem 0 1rem; }
.article ol.steps li { counter-increment: step; position: relative; padding: .6rem 0 .6rem 2.6rem; border-top: 1px solid #ece7de; }
.article ol.steps li:first-child { border-top: 0; }
.article ol.steps li::before { content: counter(step); position: absolute; left: 0; top: .6rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #1d4e9e; color: #fff; font-weight: 800; text-align: center; line-height: 1.9rem; }

/* 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; }
