/*
 * /manny, in the homepage's design language.
 *
 * The page used to load page-base.css plus legal-pages.css -- the terms-and-
 * privacy stylesheet -- and then override both from a 21KB inline block whose
 * palette was sampled from a product poster. So the one page announcing the
 * flagship hardware looked like neither the homepage nor its sibling product
 * pages, and its own <h1> was set in Inter while every other headline on the
 * site is Georgia.
 *
 * This sheet owns only what is specific to Manny. Everything shared arrives
 * from home.css, which is deliberately loaded here rather than copied:
 *
 *   - the tokens (--ink, --paper, --mint, --line, --display, --shell)
 *   - the base rules: body colour and background, the Inter @font-face, and
 *     `em` as the lime accent inside a heading
 *   - .section-shell for the page gutter, and .button for the primary CTA
 *
 * Copying those into a fourth palette is what produced the drift in the first
 * place. Loading the same sheet means a brand change on the homepage reaches
 * this page too, and a visitor arriving from the homepage already has it warm
 * in cache.
 *
 * Dark only, like home.css. Every page in site/ hardcodes data-theme="dark" and
 * home.css ships no light variant, so a light palette here would be the only
 * one on the site and would have nothing to switch it on.
 */

/* ---------------------------------------------------------------- shared bits */

/*
 * The eyebrow with its lime dot, matching .eyebrow on the homepage. It is
 * restated rather than reused because home.css scopes that class inside its own
 * sections, so the selector does not reach this markup.
 */
.mny-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mny-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

/*
 * Section headings.
 *
 * These have to be set here in full. home.css scopes every one of its heading
 * rules to its own sections -- `.section-intro h2`, `.life h2`, `.steps h2` and
 * so on -- and ships no bare `h2` rule, so a heading in a section it has never
 * heard of gets the browser default and lands as Inter at 24px. Which is what
 * happened: the hero worked because .mny-hero h1 is declared below, and every
 * h2 under it quietly fell back to the UA stylesheet.
 *
 * A step down from the homepage's clamp(52px, 5.1vw, 78px), so the section
 * headings read as subordinate to the h1 rather than competing with it.
 */
.mny-does h2,
.mny-also h2,
.mny-steps h2,
.mny-glance h2,
.mny-dev h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(38px, 3.8vw, 56px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .94;
}

.mny-intro {
  max-width: 660px;
  margin-bottom: 54px;
}

.mny-intro p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}

/*
 * The secondary action. .button from home.css is the lime primary; this is its
 * quiet counterpart, and it is a <button> rather than a link because it opens
 * the demo dialog.
 */
.mny-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--paper);
  background: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}

.mny-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--paper);
  background: rgba(222, 243, 229, .06);
}

/* A card. The radius and hairline are the homepage's .bento-card values, so the
   two pages round their corners to the same number. */
.mny-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-2);
}

/* ------------------------------------------------------------------ the hero */

.mny-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  column-gap: 64px;
  padding-block: clamp(48px, 7vw, 104px) clamp(56px, 8vw, 120px);
}

.mny-hero h1 {
  margin: 0;
  font-family: var(--display);
  /* The homepage's largest heading step. Georgia at weight 400 needs the tight
     tracking and sub-1 line height or it reads as a body serif set large. */
  font-size: clamp(40px, 5.1vw, 74px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .93;
}

.mny-lede {
  max-width: 46ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.mny-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.mny-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.mny-traits li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.mny-traits svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--mint);
}

/* ----------------------------------------------------------------- the stage */

/*
 * The device photograph with the interface floating over it. The cards are
 * positioned as percentages of the figure so they hold their relationship to
 * the device as it scales, rather than drifting off it at one width.
 */
.mny-stage {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.mny-stage-photo {
  width: 100%;
  height: auto;
  border-radius: 34px;
  /* The photograph is brighter than the page. Seating it on the dark ground
     rather than letting it glare is what makes it read as part of the page. */
  box-shadow: var(--shadow);
  filter: saturate(.94) brightness(.96);
}

.mny-chip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(11, 23, 17, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}

.mny-chip-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mny-chip-value {
  color: var(--paper);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.mny-chip-note {
  color: var(--mint);
  font-size: 12px;
  font-weight: 650;
}

.mny-chip-ask {
  max-width: 232px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

/* Opposite corners, both clear of the device's screen and its speaker grille. */
.mny-chip-1 { top: 7%; left: -6%; }
.mny-chip-2 { bottom: 9%; right: -4%; }

/*
 * The chips lift on a loop so the still photograph has some life. The offset
 * keeps the two from moving as one block, which reads as the whole figure
 * wobbling rather than the cards floating.
 */
@keyframes mny-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.mny-chip-1 { animation: mny-float 7s ease-in-out infinite; }
.mny-chip-2 { animation: mny-float 7s ease-in-out infinite 3.5s; }

/*
 * The listening meter. Decoration for the word beside it, so the bars are
 * aria-hidden in the markup and no count of them means anything.
 */
.mny-chip-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 17px;
  margin-top: 3px;
}

.mny-chip-wave i {
  width: 3px;
  height: 100%;
  border-radius: 999px;
  background: var(--mint);
  transform-origin: bottom;
  animation: mny-wave 1.15s ease-in-out infinite;
}

/* Uneven heights and staggered starts, because five bars moving together is a
   block going up and down rather than a voice. */
.mny-chip-wave i:nth-child(1) { height: 45%; animation-delay: 0ms; }
.mny-chip-wave i:nth-child(2) { height: 78%; animation-delay: 130ms; }
.mny-chip-wave i:nth-child(3) { height: 100%; animation-delay: 260ms; }
.mny-chip-wave i:nth-child(4) { height: 66%; animation-delay: 90ms; }
.mny-chip-wave i:nth-child(5) { height: 38%; animation-delay: 200ms; }

@keyframes mny-wave {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}

/* ------------------------------------------------------- what Manny does (9) */

.mny-does { padding-block: clamp(56px, 7vw, 104px); }

.mny-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mny-grid > li {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-2);
  transition: border-color .3s, background .3s, transform .3s;
}

.mny-grid > li:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-3);
}

/*
 * One card carries the lime fill so the grid has a focal point rather than nine
 * identical tiles. Its text goes to the dark ink, because --paper on lime is
 * about 1.3:1 and unreadable.
 */
.mny-grid > li.is-lit {
  border-color: var(--mint);
  background: var(--mint);
}

.mny-grid > li.is-lit:hover { background: var(--mint-bright); }
.mny-grid > li.is-lit h3,
.mny-grid > li.is-lit p { color: #07110d; }
.mny-grid > li.is-lit .mny-ico {
  color: #07110d;
  border-color: rgba(7, 17, 13, .28);
  background: rgba(7, 17, 13, .1);
}

.mny-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--mint);
  background: rgba(167, 243, 91, .08);
}

.mny-ico svg { width: 20px; height: 20px; }

.mny-grid h3,
.mny-also h3 {
  margin: 4px 0 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.mny-grid p,
.mny-also p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* --------------------------------------------------------- not only money (3) */

.mny-also {
  padding-block: clamp(40px, 5vw, 72px);
}

.mny-also-in {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr);
  align-items: start;
  gap: 44px;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 34px;
  /* A flat tint rather than another bordered card, so this band reads as an
     aside to the nine above it and not as a tenth feature. */
  background: var(--surface);
}

.mny-also-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mny-also-list > li {
  display: grid;
  align-content: start;
  gap: 10px;
}

/* ------------------------------------------------------------- how it works */

.mny-steps { padding-block: clamp(56px, 7vw, 100px); }

.mny-steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mny-step;
}

.mny-steps-list > li {
  position: relative;
  padding: 32px 30px 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-2);
  counter-increment: mny-step;
}

/*
 * The number is generated from the counter, so the markup carries no "01" for a
 * screen reader to read out before every step heading.
 */
.mny-steps-list > li::before {
  content: counter(mny-step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--mint);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}

.mny-steps-list h3 {
  margin: 0 0 8px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
}

.mny-steps-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------ your money at a glance */

.mny-glance { padding-block: clamp(48px, 6vw, 92px); }

.mny-glance-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mny-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-2);
}

.mny-panel h3 {
  margin: 0 0 22px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}

.mny-panel-wide { grid-column: 1 / -1; }

/* The balance figure. Set in the display face, because it is the one number on
   the page doing headline work. */
.mny-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.mny-balance b {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.mny-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--mint);
  background: rgba(167, 243, 91, .1);
  font-size: 12.5px;
  font-weight: 700;
}

.mny-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.mny-split > div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-3);
}

.mny-split span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mny-split b {
  display: block;
  margin-top: 7px;
  color: var(--paper);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.02em;
}

/*
 * Categories as bars rather than the donut this page used to draw with a conic
 * gradient. Six slices of a dark donut are hard to tell apart and the figure
 * needed a legend beside it to be read at all; a bar carries its own label and
 * value on the same line, and the length is the comparison.
 */
.mny-cats {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mny-cats > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
}

.mny-cat-name {
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.mny-cat-figures {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.mny-cat-figures b {
  color: var(--paper);
  font-weight: 750;
}

.mny-bar {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  /* The track, so a short bar still shows the full width it is a share of. */
  background: rgba(222, 243, 229, .09);
}

.mny-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

/* Descending share, so the lime does not read as six equal-weight categories. */
.mny-cats > li:nth-child(2) .mny-bar > i { background: rgba(167, 243, 91, .82); }
.mny-cats > li:nth-child(3) .mny-bar > i { background: rgba(167, 243, 91, .66); }
.mny-cats > li:nth-child(4) .mny-bar > i { background: rgba(167, 243, 91, .52); }
.mny-cats > li:nth-child(5) .mny-bar > i { background: rgba(167, 243, 91, .4); }
.mny-cats > li:nth-child(6) .mny-bar > i { background: rgba(167, 243, 91, .3); }

.mny-tx {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mny-tx > li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.mny-tx > li:first-child { border-top: 0; }

.mny-tx-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--paper);
  background: var(--surface-3);
  font-size: 14px;
  font-weight: 750;
}

.mny-tx-who {
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.mny-tx-when {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.mny-tx-amt {
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mny-tx-more {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------------- in development */

.mny-dev { padding-block: clamp(48px, 6vw, 92px); }

.mny-dev-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(34px, 4.4vw, 60px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface-2);
}

.mny-dev h2 { max-width: 20ch; }

.mny-dev-lede {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}

.mny-status {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.mny-status > li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}

.mny-status svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--mint);
}

.mny-dev-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------------------------------------- closing band */

.mny-close {
  padding-block: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--line);
}

.mny-close-line {
  max-width: 20ch;
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .95;
}

.mny-close-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: 44px;
}

.mny-close-pts {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mny-close-pts > li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}

.mny-close-pts svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--mint);
}

/* ------------------------------------------------------------- demo dialog */

.mny-demo {
  width: min(92vw, 900px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  overflow: visible;
}

.mny-demo::backdrop {
  background: rgba(4, 10, 7, .74);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.mny-demo video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 21px;
  background: #000;
  color: var(--paper);
}

/* The fallback text inside <video> shows only where the element is unsupported,
   so it needs a link colour that works on the dark panel. */
.mny-demo video a {
  color: var(--mint);
  font-weight: 700;
}

.mny-demo-close {
  position: absolute;
  top: -15px;
  right: -15px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--paper);
  background: var(--surface-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.mny-demo-close:hover {
  border-color: var(--mint);
  background: var(--surface-3);
}

/* ----------------------------------------------------------------- responsive */

@media (max-width: 1040px) {
  .mny-hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
  }

  /* The chips hang off both edges of the figure at desktop widths. Once the
     figure is full-bleed there is no gutter left for them to hang into, so they
     come inside it. */
  .mny-chip-1 { left: 2%; }
  .mny-chip-2 { right: 2%; }

  .mny-grid,
  .mny-also-list,
  .mny-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mny-also-in,
  .mny-dev-in,
  .mny-close-in { grid-template-columns: minmax(0, 1fr); }

  .mny-close-in { align-items: start; }
  .mny-glance-in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .mny-grid,
  .mny-also-list,
  .mny-steps-list,
  .mny-split { grid-template-columns: minmax(0, 1fr); }

  .mny-actions > .button,
  .mny-actions > .mny-ghost { width: 100%; }

  /* The spoken line is the one that carries the idea, so at phone widths the
     listening meter gives up its space to the photograph. */
  .mny-chip-2 { display: none; }

  .mny-chip { min-width: 116px; padding: 11px 13px; }
  .mny-chip-ask { max-width: 178px; font-size: 12px; }
  .mny-panel { padding: 22px 20px; }
  .mny-demo-close { top: -12px; right: -12px; width: 42px; height: 42px; }
}

/* ------------------------------------------------------------ reduced motion */

/*
 * The floating chips and every hover lift are decoration. Anyone asking for
 * less motion gets the layout with none of it, rather than a slower version.
 */
@media (prefers-reduced-motion: reduce) {
  .mny-chip-1,
  .mny-chip-2 { animation: none; }

  /* The meter stops at full height rather than mid-scale, so "Listening" still
     has a shape beside it instead of five stubs. */
  .mny-chip-wave i { animation: none; transform: scaleY(1); }

  .mny-grid > li,
  .mny-ghost,
  .mny-demo-close { transition: none; }

  .mny-grid > li:hover,
  .mny-ghost:hover { transform: none; }
}
