:root {
  color-scheme: light;
  --ink: #211934;
  --muted: #625a73;
  --quiet: #6b617e;
  --night: #19122c;
  --light-text: #f9f6ff;
  --light-muted: #e1d8f0;
  --violet: #592ec2;
  --violet-deep: #482299;
  --lavender: #e2d3ff;
  --paper: #f8f6fc;
  --border: #e5dfef;
  --white: #fff;
  --positive: #14674f;
  font-family: "DM Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.55;
  font-synthesis: none;
  background: var(--white);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.037em; }
ul { padding: 0; }
section[id], .preview[id] { scroll-margin-block: 1.25rem; }

:focus-visible {
  outline: 3px solid #8a58d9;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.shell {
  width: min(74rem, calc(100% - 5rem));
  margin-inline: auto;
  min-width: 0;
}

.skip-link {
  position: fixed;
  inset: .6rem auto auto .6rem;
  z-index: 20;
  padding: .8rem 1rem;
  border-radius: .6rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 1;
  background: var(--night);
  color: var(--light-text);
  border-bottom: 1px solid rgba(233, 217, 255, .16);
}

.header-layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  min-height: 4.65rem;
  gap: 1.4rem;
  padding-block: .7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  text-decoration: none;
  font-size: 1.13rem;
  font-weight: 750;
  letter-spacing: -.035em;
}

.brand img {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .63rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .28rem 1.7rem;
  min-width: 0;
  color: var(--light-muted);
}

.site-nav a {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  text-decoration: none;
  font-size: .94rem;
}

.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: .27em;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .68rem 1.14rem;
  border: 1px solid transparent;
  border-radius: .69rem;
  text-align: center;
  text-decoration: none;
  font-weight: 725;
  line-height: 1.25;
}

.button-outline {
  color: var(--light-text);
  border-color: #72638a;
  background: #2e2247;
}

.button-outline:hover { background: #493764; }

.button-primary {
  background: var(--lavender);
  color: #281745;
  box-shadow: 0 .45rem .95rem rgba(19, 11, 34, .18);
}

.button-primary:hover { background: #f1e8ff; }

.button-text {
  color: #f2e9ff;
  text-decoration: underline;
  text-underline-offset: .28em;
  text-decoration-color: #9482b4;
}

.button-text:hover { text-decoration-color: currentColor; }

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 87% 35%, #4b2b70 0, transparent 53%),
    radial-gradient(ellipse at 56% 110%, #342052 0, transparent 60%),
    var(--night);
  color: var(--light-text);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 4.48rem, #bba8da20 4.48rem, #bba8da20 4.53rem),
    repeating-linear-gradient(0deg, transparent 0, transparent 4.48rem, #bba8da20 4.48rem, #bba8da20 4.53rem);
  content: "";
  mask-image: radial-gradient(ellipse at 85% 50%, #000 0, transparent 67%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.2rem);
  padding-block: clamp(4.4rem, 8.3vw, 7.5rem);
}

.hero h1 {
  font-size: clamp(3rem, 5.55vw, 5.4rem);
  font-weight: 790;
  line-height: .99;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.hero h1 span { color: #d7baff; display: block; }

.hero-copy p {
  max-width: 27rem;
  margin-top: 1.45rem;
  color: var(--light-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .48rem .7rem;
  align-items: center;
  margin-top: 1.8rem;
}

.preview {
  border-radius: 1.25rem;
  border: 1px solid #594571;
  background: #221832;
  padding: .8rem;
  min-width: 0;
  color: var(--ink);
  box-shadow: 0 1.25rem 3.2rem rgba(10, 5, 23, .36);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-width: 0;
  gap: .45rem 1rem;
  color: var(--white);
  padding: 0 .25rem .75rem;
}

.preview-brand {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  font-size: .99rem;
  letter-spacing: -.018em;
}

.preview-brand img { width: 2.1rem; height: 2.1rem; border-radius: .48rem; }
.preview-label { color: #e3d8f3; font-size: .875rem; }

.preview-body {
  padding: .95rem;
  border-radius: .86rem;
  background: #f4f0fb;
  min-width: 0;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem;
  padding: .22rem;
  border-radius: .62rem;
  background: #e9e2f5;
}

.demo-tabs button {
  flex: 1 1 auto;
  min-height: 2.7rem;
  min-width: 0;
  padding: .45rem .48rem;
  border: 1px solid transparent;
  border-radius: .49rem;
  background: transparent;
  color: #514666;
  font-size: .91rem;
  font-weight: 670;
  cursor: pointer;
}

.demo-tabs button:hover { color: var(--violet-deep); background: #f8f4ff; }

.demo-tabs [aria-selected="true"] {
  background: var(--white);
  border-color: #e2d9f0;
  color: var(--violet-deep);
  box-shadow: 0 .13rem .5rem rgba(43, 21, 86, .08);
}

.demo-panel {
  display: grid;
  gap: .65rem;
  align-content: start;
  min-width: 0;
  margin-top: .8rem;
}

.balance-card {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .6rem;
  min-height: 8.25rem;
  padding: 1.05rem 1.08rem;
  border-radius: .76rem;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(117deg, #33205b, #5b30a8);
}

.balance-card span { display: block; color: #eee2ff; font-size: .93rem; }
.balance-card strong {
  display: block;
  margin-top: .28rem;
  font-size: clamp(1.65rem, 3.1vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.balance-bars {
  position: absolute;
  z-index: -1;
  inset: auto .9rem 0 auto;
  display: flex;
  align-items: end;
  gap: .3rem;
  width: 27%;
  height: 80%;
  opacity: .46;
  pointer-events: none;
}

.balance-bars i {
  display: block;
  flex: 1;
  height: 30%;
  border-radius: .23rem .23rem 0 0;
  background: linear-gradient(#d3a9ffba, #b292e92d);
}

.balance-bars i:nth-child(2) { height: 49%; }
.balance-bars i:nth-child(3) { height: 42%; }
.balance-bars i:nth-child(4) { height: 62%; }
.balance-bars i:nth-child(5) { height: 73%; }
.balance-bars i:nth-child(6) { height: 90%; }

.forecast-card {
  padding: .8rem .85rem;
  border: 1px solid #e6deef;
  border-radius: .76rem;
  background: var(--white);
}

.example-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .15rem .55rem;
  padding: .18rem .3rem;
  color: var(--muted);
  font-size: .94rem;
  font-variant-numeric: tabular-nums;
}

.example-line strong { color: var(--ink); white-space: nowrap; }

.example-total {
  margin-top: .54rem;
  padding: .55rem .61rem;
  border-radius: .48rem;
  background: #f1e7ff;
  color: #49218d;
  font-weight: 680;
}

.example-total strong { color: #49218d; }

.example-list-heading, .example-list {
  border: 1px solid #e6deef;
  background: var(--white);
}

.example-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem .6rem;
  padding: .6rem .85rem;
  border-radius: .65rem;
}

.example-list-heading h2 { font-size: 1rem; font-weight: 750; }
.example-list-heading > span { color: var(--muted); font-size: .875rem; }
.example-list { margin: 0; padding: 0 .85rem; border-radius: .65rem; list-style: none; }

.example-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .15rem .5rem;
  padding: .54rem 0;
  font-size: .94rem;
}

.example-list li + li { border-top: 1px solid #eee8f5; }
.example-list li span { display: block; color: var(--muted); font-size: .87rem; }
.example-list li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.incoming { color: var(--positive); }
.payment-total { font-weight: 700; padding-inline: .5rem; }

.section-spacing { padding-block: clamp(3.75rem, 7vw, 6.2rem); }
.features { background: var(--paper); }
.section-intro { max-width: 42rem; margin-bottom: 1.9rem; }
.section-intro h2, .questions h2 {
  font-size: clamp(2.05rem, 3.75vw, 3.45rem);
  font-weight: 770;
  text-wrap: balance;
}

.section-intro p {
  margin-top: .68rem;
  max-width: 37rem;
  font-size: 1.07rem;
  color: var(--muted);
}

.feature-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .92rem;
}

.feature, .price-card {
  min-width: 0;
  padding: clamp(1.12rem, 2.25vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--white);
}

.feature h3, .price-card h3 {
  font-size: 1.32rem;
  font-weight: 750;
}

.feature p {
  margin-top: .58rem;
  color: var(--muted);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.05rem;
  border-radius: .72rem;
  background: #efe7fb;
  color: #5934a2;
}

.feature-icon i { position: relative; display: block; }
.i-entries i { width: 1rem; height: 1.23rem; border: 2px solid currentColor; border-radius: .17rem; }
.i-entries i::before {
  position: absolute;
  inset: .2rem .15rem auto;
  height: 2px;
  background: currentColor;
  box-shadow: 0 .24rem currentColor, 0 .48rem currentColor;
  content: "";
}

.i-payments i { width: 1.17rem; height: 1.04rem; border: 2px solid currentColor; border-radius: .15rem; }
.i-payments i::before {
  position: absolute;
  inset: .23rem 0 auto;
  border-top: 2px solid currentColor;
  content: "";
}

.i-payments i::after {
  position: absolute;
  inset: -.26rem auto auto .16rem;
  width: 2px;
  height: .33rem;
  background: currentColor;
  box-shadow: .44rem 0 currentColor;
  content: "";
}

.i-bank i { width: 1.23rem; height: .78rem; border-bottom: 2px solid currentColor; }
.i-bank i::before {
  position: absolute;
  inset: -.4rem 0 auto;
  height: .47rem;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 80%, 100% 100%, 0 100%, 0 80%);
  content: "";
}

.i-bank i::after {
  position: absolute;
  inset: .2rem auto 0 .19rem;
  width: 2px;
  background: currentColor;
  box-shadow: .36rem 0 currentColor, .72rem 0 currentColor;
  content: "";
}

.household {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 1.7rem;
  margin-top: 1.15rem;
  padding: clamp(1.45rem, 4.2vw, 3.1rem);
  border: 1px solid #ddd0f1;
  border-radius: 1.18rem;
  background: #eee6fb;
  overflow: hidden;
}

.household-copy h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.85rem);
  font-weight: 765;
  text-wrap: balance;
}

.household-copy p { margin-top: .65rem; max-width: 31rem; color: #544661; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  margin-top: .45rem;
  color: var(--violet-deep);
  font-weight: 700;
  text-underline-offset: .25em;
}

.household-art {
  display: grid;
  justify-items: center;
  border-radius: .95rem;
  background: radial-gradient(ellipse at 61% 40%, #4b2d70, var(--night) 75%);
}

.household-art img { width: min(100%, 14.5rem); height: auto; margin: .5rem auto; }
.pricing { background: var(--white); }
.pricing-intro h2 { letter-spacing: -.045em; }
.price-card { background: #faf8fd; }
.price-family { background: #efe7ff; border-color: #ddd0f6; }
.price-family h3 { color: #462487; }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .05rem .45rem;
  margin-top: .6rem;
  color: var(--muted);
}

.price strong {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.055em;
}

.price-card ul { margin: .95rem 0 0; list-style: none; }
.price-card li { position: relative; padding-inline-start: 1.05rem; }
.price-card li + li { margin-top: .35rem; }

.price-card li::before {
  position: absolute;
  inset: .65em auto auto 0;
  width: .43rem;
  height: .43rem;
  border-radius: 50%;
  background: #7651b5;
  content: "";
}

.price-note { margin-top: 1rem; color: var(--quiet); font-size: .91rem; }
.questions { background: #f5f1fb; }
.questions-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1.6rem; }
.accordion { min-width: 0; border-top: 1px solid #ded5eb; }
.accordion details { border-bottom: 1px solid #ded5eb; }

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.05rem;
  gap: .5rem;
  padding: .85rem 0;
  list-style: none;
  font-weight: 715;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  flex: 0 0 1.4rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 550;
  color: var(--violet-deep);
  content: "+";
}

.accordion details[open] summary::after { content: "−"; }
.accordion p { max-width: 33rem; padding: 0 .4rem 1rem 0; color: var(--muted); }

.closing {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2.8rem, 5.2vw, 4.5rem);
  padding: clamp(1.45rem, 3.7vw, 2.8rem);
  border-radius: 1.14rem;
  background: linear-gradient(116deg, #25163e, #432669);
  color: var(--light-text);
}

.closing div { flex: 1 1 18rem; min-width: 0; }
.closing h2 { font-size: clamp(1.7rem, 2.8vw, 2.65rem); text-wrap: balance; }
.closing p { margin-top: .46rem; color: var(--light-muted); }
.site-footer { padding-block: 1.65rem 2rem; }
.footer-layout { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .6rem 1.35rem; }
.footer-brand img { width: 2.15rem; height: 2.15rem; }
.footer-layout nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .95rem; }
.footer-layout nav a { display: inline-flex; min-height: 2rem; align-items: center; color: var(--muted); font-size: .9rem; text-underline-offset: .18em; }
.footer-layout nav a:hover { color: var(--violet-deep); }

@media (max-width: 60rem) {
  .shell { width: min(74rem, calc(100% - 3.2rem)); }
  .hero-layout { gap: 2rem; }
  .hero h1 { font-size: clamp(2.75rem, 6vw, 4.8rem); }
}

@media (max-width: 49rem) {
  .shell { width: min(42rem, calc(100% - 2.1rem)); }
  .header-layout { grid-template-columns: minmax(0, 1fr) max-content; gap: .26rem .65rem; padding-block: .6rem .36rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: .12rem 1rem; }
  .site-nav a { min-height: 2.55rem; }
  .header-layout > .button { grid-column: 2; grid-row: 1; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 1.85rem; padding-block: 3rem 3.1rem; }
  .hero h1 { font-size: clamp(2.65rem, 8vw, 4.5rem); text-wrap: wrap; }
  .hero-copy p { margin-top: .95rem; }
  .hero-actions { margin-top: 1.12rem; }
  .questions-layout { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .feature-grid, .pricing-grid { gap: .65rem; }
  .feature, .price-card { padding: 1rem; }
}

@media (max-width: 38rem) {
  .feature-grid, .pricing-grid, .household { grid-template-columns: minmax(0, 1fr); }
  .household { gap: .85rem; }
  .household-art { min-height: 8.4rem; }
  .household-art img { width: min(100%, 11rem); }
  .section-spacing { padding-block: 2.85rem; }
  .section-intro { margin-bottom: 1.15rem; }
  .preview { padding: .56rem; }
  .preview-body { padding: .65rem; }
  .balance-card { min-height: 6.6rem; padding: .78rem .75rem; }
  .balance-bars { width: 33%; gap: .22rem; }
  .forecast-card { padding: .6rem; }
}

@media (max-width: 25rem) {
  .header-layout { gap: .22rem .45rem; }
  .brand { gap: .39rem; font-size: 1rem; }
  .brand img { width: 1.85rem; height: 1.85rem; }
  .header-layout .button { font-size: .85rem; padding-inline: .66rem; }
  .site-nav { gap: .16rem .75rem; }
  .site-nav a { font-size: .91rem; }
  .demo-tabs button { font-size: .85rem; padding-inline: .32rem; }
  .hero-copy p { font-size: 1.02rem; }
}

