/* =========================================================================
   Reliever website · Reliever Money page · loads after /styles.css,
   /css/mocks.css, /css/solutions.css and /css/pricing.css (FAQ), before
   /css/motion.css. The chapters, index and ink links are the Solutions
   page's (`.sol-*`); this file carries the page head extras, the five
   chapter mocks and the pricing band. Mocks are decorative (aria-hidden)
   and every chapter says the same thing in text.
   ========================================================================= */

/* ------------------------------------------------------------- head -- */
.money-head {
  padding-bottom: clamp(44px, 5vw, 72px);
}
.money-head__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(28px, 3.4vw, 40px) 0 0;
}
.money-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.money-facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper);
}
.money-facts b {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.money-facts span {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 720px) {
  .money-facts {
    grid-template-columns: 1fr;
  }
}
.money-facts__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.money-head__disclosure {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.money-head .btn svg {
  flex: none;
}

/* desktop: an accounts panel fills the right column above the lede. The
   head grid gets a flexible first row so, when the panel is taller than the
   headline, the extra air sits above the eyebrow, not between it and the h1 */
.money-head__art {
  display: none;
}
@media (min-width: 901px) {
  .money-head .page-head__inner {
    grid-template-rows: 1fr auto;
  }
  .money-head .page-head__inner > .eyebrow {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  .money-head .page-head__inner > h1 {
    grid-column: 1;
    grid-row: 2;
  }
  .money-head__aside {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
  }
  .money-head__art {
    display: block;
    margin: 0 0 clamp(36px, 3.6vw, 48px);
    padding-left: 28px;
  }
}
.money-hero {
  position: relative;
  max-width: 400px;
  margin-left: auto;
  padding: 20px 20px 22px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  box-shadow: 0 24px 48px -24px rgba(17, 17, 17, 0.18);
}
.money-hero__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px 16px;
}
.money-hero__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.money-hero__total {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.money-hero__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.money-hero__row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: var(--field);
  border-radius: var(--radius-s);
  font-size: 13px;
}
.money-hero__row b {
  font-weight: 700;
}
.money-hero__name,
.money-hero__toast span:not(.money-hero__toast-ico) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
}
.money-hero__name small,
.money-hero__toast small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.money-hero__dot {
  width: 8px;
  height: 8px;
  background: var(--ink);
}
.money-hero__dot--team {
  background: var(--hairline);
}
/* the incoming fee rides over the panel's lower-left corner */
.money-hero__toast {
  position: absolute;
  left: -28px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 16px 10px 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  box-shadow: 0 16px 32px -16px rgba(17, 17, 17, 0.22);
  font-size: 13px;
}
.money-hero__toast-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: #ffffff;
}
.money-hero__toast-ico svg {
  width: 14px;
  height: 14px;
}
.money-hero__toast b {
  margin-left: 6px;
  font-weight: 700;
  color: var(--good);
}

/* shared mock plumbing */
.money-accts,
.money-pay,
.money-exp,
.money-gl {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.4vw, 28px);
}
.money-accts > *,
.money-pay > *,
.money-exp > *,
.money-gl > * {
  width: 100%;
  max-width: 400px;
}
.money-accts small,
.money-exp small,
.money-gl span {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

/* ---------------------------------------------------- 01 accounts -- */
.money-accts__list,
.money-exp__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.money-accts__row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  font-size: 13px;
}
.money-accts__row b {
  font-weight: 700;
}
.money-accts__name {
  font-weight: 600;
  min-width: 0;
}
.money-accts__dot {
  width: 8px;
  height: 8px;
  background: var(--ink);
}
.money-accts__row--main {
  border-color: var(--ink);
}
.money-accts__row--in .money-accts__dot {
  background: var(--purple);
}
.money-accts__plus {
  color: var(--good);
}

/* ------------------------------------------------------ 03 payments -- */
.money-pay__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
}
.money-pay__card p {
  margin: 0;
}
.money-pay__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.money-pay__to {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}
.money-pay__to b {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.money-pay__rails {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.money-pay__rails li {
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
.money-pay__rails li.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.money-pay__rails li:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.money-pay__rails li.is-on:hover {
  color: #ffffff;
}
.money-pay__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------- 04 expenses -- */
.money-exp__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "what amt" "what pill";
  align-items: center;
  justify-items: end;
  gap: 4px 12px;
  padding: 12px 14px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  font-size: 13px;
}
.money-exp__what {
  grid-area: what;
  justify-self: start;
  font-weight: 600;
  min-width: 0;
}
.money-exp__list b {
  grid-area: amt;
  font-weight: 700;
}
.money-exp__list .sol-pill {
  grid-area: pill;
}

/* ----------------------------------------------------- 05 ledger -- */
.money-gl__flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.money-gl__box {
  margin: 0;
  padding: 14px 16px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  font-size: 13.5px;
}
.money-gl__box b {
  display: block;
  font-weight: 700;
}
.money-gl__arrow {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1;
  color: var(--purple);
}
.money-gl__steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  font-weight: 600;
}
.money-gl__steps li {
  position: relative;
  padding-left: 22px;
}
.money-gl__steps li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 9px;
  height: 5px;
  border-left: 1.75px solid var(--good);
  border-bottom: 1.75px solid var(--good);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------- pricing band -- */
.money-price__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.money-price__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}
.money-price__fine {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .money-price__grid {
    grid-template-columns: 1fr;
  }
}

/* one-line mocks stay readable on small phones */
@media (max-width: 420px) {
  .money-accts__row {
    padding-inline: 10px;
    gap: 8px;
  }
  .money-exp__list li {
    padding-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .money-pay__rails li {
    transition: none;
  }
}
