/* The Couple Wallet — one-page site styles
   Palette: spruce (household), saffron (partner one), lagoon (partner two), mist (page) */

:root {
  --ink: #12262a;
  --muted: #44595d;
  --spruce: #17413f;
  --spruce-deep: #0e2b2a;
  --mist: #eef4f1;
  --mist-2: #dfeae5;
  --line: #c9d9d2;
  --white: #ffffff;
  --saffron: #e9a23b;
  --saffron-deep: #9a5f08;
  --lagoon: #2e6e8e;
  --lagoon-light: #6fb3d2;
  --danger: #a3342a;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --wrap: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--lagoon); text-underline-offset: 3px; }
a:hover { color: var(--spruce); }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--spruce); color: var(--mist);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tint { background: var(--mist-2); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font: 600 1rem/1 var(--font-body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.btn--primary { background: var(--saffron); color: var(--spruce-deep); }
.btn--primary:hover { background: #f1b45a; color: var(--spruce-deep); }
.btn--ghost { border-color: rgba(238, 244, 241, 0.55); color: var(--mist); }
.btn--ghost:hover { background: rgba(238, 244, 241, 0.12); color: var(--white); }
.btn--dark { background: var(--spruce); color: var(--mist); }
.btn--dark:hover { background: var(--spruce-deep); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--spruce); text-decoration: none;
}
.brand svg { width: 40px; height: 26px; }
.brand:hover { color: var(--spruce-deep); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--spruce);
  border: 2px solid var(--spruce); border-radius: 999px;
  font: 600 0.95rem var(--font-body); cursor: pointer;
}
.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--mist); border-bottom: 1px solid var(--line);
  padding: 8px 22px 22px;
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--lagoon); }
.nav .btn { margin-top: 10px; color: var(--spruce-deep); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav, .nav.is-open {
    display: block; position: static; background: none; border: 0; padding: 0;
  }
  .nav ul { display: flex; align-items: center; gap: 28px; }
  .nav a { padding: 8px 0; }
  .nav .btn { margin: 0; padding: 10px 20px; min-height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--spruce);
  color: var(--mist);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
}
.hero .wrap { display: grid; gap: 52px; }
.hero h1 { color: var(--white); max-width: 17ch; margin-bottom: 0.4em; }
.hero p.lede { color: #c9ddd6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hook { max-width: 460px; }
.dot-grid {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: clamp(6px, 1.6vw, 12px);
  margin-bottom: 22px;
}
.dot {
  aspect-ratio: 1 / 1; border-radius: 50%;
  background: rgba(238, 244, 241, 0.14);
  transition: background-color .35s ease, transform .35s ease;
}
.dot.is-on-a { background: var(--saffron); }
.dot.is-on-b { background: var(--lagoon-light); }
.hook-figure { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.25; color: var(--white); margin: 0 0 12px; }
.hook-detail { color: #c9ddd6; font-size: 1rem; margin-bottom: 10px; }
.hook-source { font-size: 0.9rem; color: #a9c4bb; margin: 0; }
.hook-source a { color: #d9ece5; }
.hook-source a:hover { color: var(--white); }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 72px; }
}

/* ---------- Research ledger ---------- */
.section-head { max-width: 760px; margin-bottom: 44px; }
.ledger { border-top: 2px solid var(--spruce); }
.ledger-row {
  display: grid; gap: 8px 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.ledger-figure {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1; color: var(--spruce);
}
.ledger-body p { margin-bottom: 0.5em; }
.ledger-body .claim { font-size: 1.15rem; font-weight: 600; }
.ledger-source { font-size: 0.92rem; color: var(--muted); }
.ledger-note { margin-top: 24px; font-size: 0.95rem; color: var(--muted); max-width: 70ch; }
@media (min-width: 760px) {
  .ledger-row { grid-template-columns: 200px 1fr; align-items: start; }
}

/* ---------- Two lenses ---------- */
.lenses { display: grid; gap: 40px; margin-top: 8px; }
.lens h3 { display: flex; align-items: center; gap: 12px; }
.lens-mark { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.lens--money .lens-mark { background: var(--saffron); }
.lens--bond .lens-mark { background: var(--lagoon); }
.lens dl { margin: 0; }
.lens dt { font-weight: 700; margin-top: 18px; }
.lens dd { margin: 4px 0 0; color: var(--muted); }
@media (min-width: 820px) {
  .lenses { grid-template-columns: 1fr 1fr; gap: 0; }
  .lens { padding: 0 44px 0 0; }
  .lens + .lens { padding: 0 0 0 44px; border-left: 1px solid var(--line); }
}

/* ---------- Split tool ---------- */
.tool {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(20px, 4vw, 40px);
  display: grid; gap: 36px;
}
.tool-form { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label, .field .label, legend { font-weight: 600; font-size: 0.98rem; }
.field small { color: var(--muted); font-size: 0.88rem; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 1rem var(--font-body); color: var(--ink);
  background: var(--mist); border: 1.5px solid #8fa8a0; border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317413f' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--saffron); outline-offset: 1px; }

fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--spruce); flex: none; }
.choice span strong { display: block; }
.choice span small { color: var(--muted); }

.tool-result { align-self: start; }
.result-title { font-size: 1.15rem; margin-bottom: 4px; }
.pot-line { color: var(--muted); margin-bottom: 22px; }
.partner-result { margin-bottom: 26px; }
.partner-result h4 { margin: 0 0 8px; font: 700 1.05rem var(--font-body); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; background: var(--mist-2); }
.bar-ours { background: var(--spruce); min-width: 2px; transition: width .35s ease; }
.bar-mine { transition: width .35s ease; flex: 1; }
.partner-result--a .bar-mine { background: var(--saffron); }
.partner-result--b .bar-mine { background: var(--lagoon); }
.bar-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 0.95rem; }
.legend-ours::before, .legend-mine::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline;
}
.legend-ours::before { background: var(--spruce); }
.partner-result--a .legend-mine::before { background: var(--saffron); }
.partner-result--b .legend-mine::before { background: var(--lagoon); }
.tool-alert { color: var(--danger); font-weight: 600; margin: 0 0 16px; min-height: 1.5em; }
.tool-note { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }

@media (min-width: 940px) {
  .tool { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ---------- Check-in ---------- */
.checkin { display: grid; gap: 48px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--spruce); color: var(--mist);
  display: grid; place-items: center;
  font: 700 1rem var(--font-body);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 18px; top: 40px; bottom: 6px;
  width: 2px; background: var(--line);
}
.steps strong { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); }

.starter {
  background: var(--spruce); color: var(--mist);
  border-radius: 22px; padding: clamp(24px, 4vw, 40px);
}
.starter h3 { color: var(--white); }
.starter p.starter-intro { color: #c9ddd6; }
.starter-q {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25; color: var(--white);
  min-height: 5.2em; margin: 22px 0;
}
@media (min-width: 900px) {
  .checkin { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--spruce); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0;
  font-weight: 700; font-size: 1.1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 1.7rem/1 var(--font-body); color: var(--spruce);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 0 22px; margin: 0; max-width: 64ch; }

/* ---------- Join ---------- */
.join { background: var(--spruce); color: var(--mist); }
.join h2 { color: var(--white); }
.join .lede { color: #c9ddd6; }
.join-grid { display: grid; gap: 40px; align-items: start; }
.join-form { background: var(--mist); color: var(--ink); border-radius: 22px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--spruce); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 0; font-weight: 600; }
.form-status.is-ok { color: var(--spruce); }
.form-status.is-error { color: var(--danger); }
@media (min-width: 900px) { .join-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--spruce-deep); color: #b5cfc6; padding: 52px 0 40px; font-size: 0.95rem; }
.site-footer a { color: #d9ece5; }
.site-footer a:hover { color: var(--white); }
.site-footer h2 { font: 700 1rem var(--font-body); color: var(--white); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { margin: 0 0 28px; padding-left: 18px; }
.site-footer li { margin-bottom: 8px; }
.disclaimer { border-top: 1px solid rgba(238, 244, 241, 0.2); padding-top: 22px; max-width: 80ch; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
