/* ============================================================================
   OURS — v1
   Tokens and values taken verbatim from the design handoff.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --cream:  #FAF6F0;
  --white:  #FFFFFF;
  --ink:    #1F2A22;
  --body:   #4A4E44;
  --muted:  #6B6F62;
  --faint:  #8B8778;

  --green:       #1E3D2F;
  --green-hover: #16301F;
  --green-tint:  #E8EFE7;
  --green-dim:   #A9BCA9;   /* muted text on dark green */

  --gold:      #C0984E;
  --gold-text: #8A6E33;
  --gold-tint: #FAF4E8;
  --gold-badge-bg:   #F1E8D6;
  --gold-badge-text: #7A6A3E;

  --terra:      #C1704E;
  --terra-text: #9C5535;
  --terra-tint: #FBF1EC;

  --lav:      #9E92BE;
  --lav-text: #6F6390;
  --lav-tint: #F4F1F8;

  --slate:      #7E96B0;
  --slate-text: #5A7089;
  --slate-tint: #F0F3F7;

  --sage-tint: #EEF2EC;
  --sage:      #7E9678;

  --bd-card:   #EDE7DA;
  --bd-sec:    #EFE9DC;
  --bd-input:  #DCD6C8;
  --bd-off:    #D8D2C2;
  --off-row:   #F5F3EE;
  --off-text:  #9A968A;
  --dots-off:  #E3DED4;
  --trust:     #8B8272;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: 28px;

  --shadow-hero: 0 24px 60px rgba(60, 50, 30, .10);
  --shadow-card: 0 10px 30px rgba(60, 50, 30, .06);
  --shadow-btn:  0 8px 24px rgba(30, 61, 47, .25);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.lp-locked { overflow: hidden; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--terra); }
button { font-family: var(--sans); }
input { font-family: var(--sans); outline: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn  { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------------------------------------ primitives -- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 92px; padding-bottom: 96px; }
.band-white { background: var(--white); border-top: 1px solid var(--bd-sec); border-bottom: 1px solid var(--bd-sec); }
.band-green { background: var(--green); color: var(--cream); }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.eyebrow--gold {
  display: inline-block; color: var(--gold-badge-text);
  background: var(--gold-badge-bg); border-radius: 999px; padding: 7px 14px;
}

.h1 {
  margin: 0 0 22px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 5vw, 62px); line-height: 1.05; letter-spacing: -.02em;
  text-wrap: pretty;
}
.h1 em { font-style: italic; color: var(--green); }
.h2 {
  margin: 0 0 18px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.015em;
  text-wrap: pretty;
}
.lede { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.serif-note { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 12px; cursor: pointer;
  font-weight: 600; font-size: 15px; padding: 13px 22px;
  background: var(--green); color: var(--cream);
  transition: background .15s ease;
}
.btn:hover { background: var(--green-hover); }
.btn--hero { border-radius: 14px; padding: 15px 26px; font-size: 16px; box-shadow: var(--shadow-btn); }
.btn--nav { padding: 11px 20px; }
.btn--ghost {
  background: var(--white); color: var(--body); border: 1.5px solid var(--bd-input);
}
.btn--ghost:hover { background: var(--white); border-color: var(--ink); }

.link-underline { text-decoration: underline; font-weight: 600; font-size: 15px; }

/* the mark — three overlapping circles, pure CSS */
.mark { display: flex; align-items: center; }
.mark span { width: 16px; height: 16px; border-radius: 50%; display: block; }
.mark span:nth-child(1) { background: var(--gold); }
.mark span:nth-child(2) { background: var(--terra); margin-left: -6px; }
.mark span:nth-child(3) { background: var(--green); margin-left: -6px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -.015em; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-size: 15px;
}
.avatar--sm { width: 30px; height: 30px; font-size: 13px; }

.pill {
  border-radius: 999px; padding: 5px 11px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.pill--green { background: var(--green-tint); color: var(--green); }
.pill--white { background: var(--white); color: var(--muted); border: 1px solid var(--bd-card); }
.pill--terra { background: var(--terra-tint); color: var(--terra-text); }

/* -------------------------------------------------------------------- nav -- */
.nav {
  max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 15px; font-weight: 600; color: var(--body); }
.nav__links a:hover { color: var(--green); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__login { font-size: 15px; font-weight: 600; color: var(--body); }

/* ------------------------------------------------------------------- hero -- */
.hero {
  max-width: var(--container); margin: 0 auto;
  padding: 48px var(--gutter) 92px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero__left { flex: 1 1 440px; min-width: 300px; }
.hero__lede { margin: 0 0 30px; font-size: 17px; line-height: 1.65; color: var(--body); max-width: 46ch; }
.hero__ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__right { flex: 1 1 420px; min-width: 300px; position: relative; }

.fam-card {
  background: var(--white); border: 1px solid var(--bd-card);
  border-radius: 24px; padding: 22px; box-shadow: var(--shadow-hero);
}
.fam-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.fam-card__title { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.fam-rows { display: flex; flex-direction: column; gap: 8px; }
.fam-row {
  display: flex; align-items: center; gap: 12px;
  border-radius: 14px; padding: 11px 12px;
}
.fam-row__body { min-width: 0; flex: 1; }
.fam-row__name { display: block; font-size: 14.5px; font-weight: 700; }
.fam-row__desc { display: block; font-size: 12.5px; color: var(--muted); }
.fam-connector { width: 1px; height: 14px; background: var(--bd-input); margin: 2px 0 2px 30px; }
.fam-row--ours { background: var(--green); }
.fam-row--ours .fam-row__name { color: var(--cream); }
.fam-row--ours .fam-row__desc { color: var(--green-dim); }
.fam-row--ours .avatar { background: rgba(255, 255, 255, .16); }
.fam-amount {
  font-family: var(--serif); font-weight: 600; font-size: 19px;
  color: var(--cream); font-variant-numeric: tabular-nums;
}
.fam-card__note { margin-top: 14px; text-align: center; }

.notif {
  position: absolute; top: -18px; right: -10px;
  background: var(--white); border: 1px solid var(--bd-card);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 11px; max-width: 260px;
  animation: floaty 5s ease-in-out infinite;
}
.notif__t { font-size: 13.5px; font-weight: 700; }
.notif__s { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------- 3 · one view ---- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split__a { flex: 1 1 380px; min-width: 300px; }
.split__b { flex: 1 1 420px; min-width: 300px; }

.card {
  background: var(--white); border: 1px solid var(--bd-card);
  border-radius: 20px; padding: 20px; box-shadow: var(--shadow-card);
}
.card__label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 14px;
}
.srow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--bd-sec);
  font-size: 14.5px;
}
.srow:last-child { border-bottom: none; }
.srow__v { font-weight: 700; font-variant-numeric: tabular-nums; }
.private-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.private-row .card { flex: 1 1 160px; }
.private__v {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  font-variant-numeric: tabular-nums; margin-bottom: 4px;
}
.private__n { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------- 4 · sharing --- */
.center-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.access-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.access-card {
  background: var(--white); border: 1px solid var(--bd-card);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow-card);
}
.access-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.access-card__name { font-size: 16px; font-weight: 700; }
.access-card__role { font-size: 12.5px; font-weight: 700; }
.access-card__desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 16px; }
.trow {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 12px; transition: background .15s ease;
}
.trow:hover { background: var(--cream); }
.trow__body { flex: 1; min-width: 0; }
.trow__l { display: block; font-size: 14px; font-weight: 700; }
.trow__s { display: block; font-size: 12px; color: var(--muted); }
.switch {
  width: 40px; height: 23px; border-radius: 12px; flex: none;
  position: relative; border: none; cursor: pointer;
  background: var(--bd-input); transition: background .25s ease;
  padding: 0;
}
.switch__knob {
  position: absolute; top: 2px; left: 2px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22); transition: left .25s ease;
}
.switch[aria-checked="true"] .switch__knob { left: 19px; }
/* The switch is specced at 40x23. Keep that visual, but give it a 44px tap
   area so it is not the smallest target on the page on a phone. */
.switch::after { content: ''; position: absolute; inset: -11px -6px; }

/* ------------------------------------------------- 5 · less coordination -- */
.band-green .h2 { color: var(--cream); }
.band-green .lede { color: var(--green-dim); }
.moments {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-top: 44px;
}
.moment {
  background: var(--cream); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.moment__head { display: flex; align-items: center; gap: 12px; }
.moment__t { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.moment__s { font-size: 12.5px; color: var(--muted); }
.moment__amt {
  font-family: var(--serif); font-weight: 600; font-size: 30px;
  font-variant-numeric: tabular-nums;
}
.moment__btn {
  border: none; border-radius: 12px; padding: 13px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--green); color: var(--cream); transition: all .25s ease;
}
.moment__btn:hover { background: var(--green-hover); }
.moment__btn[data-done="true"] {
  background: var(--green-tint); color: var(--green); cursor: default;
}

/* ------------------------------------------------------------ 6 · grows -- */
.parents-panel {
  background: var(--lav-tint); border-radius: 16px; padding: 18px; margin-top: 26px;
}
.parents-panel__l {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lav-text); margin-bottom: 10px;
}
.parents-panel__steps {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 600; color: var(--body);
}
.parents-panel__steps span[aria-hidden] { color: var(--lav-text); }

.stage-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.stage-tab {
  flex: 1; border: 1px solid var(--bd-input); background: var(--white);
  color: var(--body); border-radius: 999px; padding: 10px 8px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s ease;
}
.stage-tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }

.stage-card {
  background: var(--white); border: 1px solid var(--bd-card);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow-card);
  animation: popIn .3s ease both;
}
.stage-card__head { margin-bottom: 16px; }
.stage-card__n { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.stage-card__s { font-size: 13px; color: var(--muted); }
.perm {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border-radius: 12px; padding: 13px 14px; margin-bottom: 8px;
  font-size: 14px;
}
.perm__v { font-weight: 700; }

/* -------------------------------------------------------- 7 · final CTA -- */
.final-panel {
  background: var(--gold-badge-bg); border-radius: 28px;
  padding: 64px 32px; text-align: center;
}
.final-panel .lede { max-width: 44ch; margin: 0 auto 28px; }
.trust-line {
  margin-top: 22px; font-size: 12.5px; color: var(--trust);
}

/* ------------------------------------------------------------- 8 · footer -- */
.footer { border-top: 1px solid var(--bd-sec); }
.footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 30px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
}
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); }
.footer__legal { flex: 1 1 100%; font-size: 12px; color: var(--faint); line-height: 1.5; }

/* ---------------------------------------------------------------- modal --- */
.scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31, 42, 34, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; overflow: auto;
  animation: fadeUp .25s ease both;
}
.scrim[hidden] { display: none; }

.modal {
  background: var(--cream); border-radius: 26px; padding: 32px;
  width: 100%; max-width: 640px; max-height: 90vh; overflow: auto;
  position: relative; animation: popIn .3s ease both;
}
.modal__close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--muted); padding: 6px; line-height: 1;
}
.modal__close:hover { color: var(--ink); }
.progress { display: flex; gap: 6px; margin-bottom: 26px; }
.progress span {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--dots-off); transition: background .3s ease;
}
.progress span.on { background: var(--green); }

.modal__h {
  margin: 0 0 8px; font-family: var(--serif); font-weight: 600;
  font-size: 30px; line-height: 1.15; letter-spacing: -.015em; text-wrap: pretty;
}
.modal__s { margin: 0 0 22px; font-size: 15px; color: var(--muted); line-height: 1.55; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border-radius: 999px; padding: 12px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--bd-input); background: var(--white); color: #33362E;
  transition: all .15s ease;
}
.chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--cream); }

.rows { display: flex; flex-direction: column; gap: 10px; }
.row-opt {
  border-radius: 14px; text-align: left; padding: 14px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--bd-input); background: var(--white); color: #33362E;
  transition: all .15s ease;
}
.row-opt:hover { border-color: var(--green); }
.row-opt[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--cream); }

.map { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.map-row {
  display: flex; align-items: center; gap: 12px;
  border-radius: 14px; padding: 13px 14px;
}
.map-row__n { font-size: 14.5px; font-weight: 700; }
.map-row__s { font-size: 12.5px; }

.modal__actions { display: flex; gap: 10px; margin-top: 26px; }
.modal__actions .btn { flex: 1; padding: 14px 24px; }
.modal__actions .btn[disabled] { opacity: .4; cursor: default; }
.modal__actions .btn--ghost { flex: 0 0 auto; padding: 14px 20px; }

.email-input {
  width: 100%; border: 1.5px solid var(--bd-input); border-radius: 12px;
  padding: 15px 16px; font-size: 16px; background: var(--white); color: var(--ink);
  transition: border-color .15s ease;
}
.email-input:focus { border-color: var(--green); }
.email-error { margin: 10px 0 0; font-size: 13px; color: var(--terra-text); min-height: 1.1em; }
.fine { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }
.is-busy { opacity: .6; pointer-events: none; }

.done-circle {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green-tint);
  color: var(--green); display: grid; place-items: center;
  font-size: 24px; font-weight: 700; margin-bottom: 18px;
}

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 680px) {
  .nav__links, .nav__login { display: none; }
  .nav { justify-content: space-between; }
  .hero { padding: 24px var(--gutter) 56px; gap: 40px; }
  .section { padding-top: 64px; padding-bottom: 68px; }

  /* the floating notification moves below the card rather than over it */
  .notif { position: static; margin-top: 14px; max-width: none; animation: none; }

  .final-panel { padding: 48px 22px; }
  .modal { padding: 24px 20px; }
  .modal__h { font-size: 26px; }
  .btn, .chip, .row-opt, .stage-tab, .moment__btn { min-height: 44px; }
}
