/* Layout glue only: every colour and size comes from the guide's tokens and components. */
body {
  margin: 0;
  min-height: 100vh;
}
.front {
  padding-bottom: var(--space-7);
}

.masthead__strip {
  display: flex;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.brand .mark {
  width: var(--mark-size-sm);
  height: var(--mark-size-sm);
}

.lead__aside {
  padding-top: var(--space-5);
}
.waitlist .field {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
}
.waitlist__row {
  display: flex;
  gap: var(--space-3);
}
.waitlist__row .input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
.waitlist__row .btn {
  flex: none;
  white-space: nowrap;
}
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Author display rules on the row and label would otherwise beat the hidden attribute. */
.waitlist [hidden],
.footer [hidden] {
  display: none;
}
#waitlist-status {
  margin-top: var(--space-3);
}

.section__cols {
  display: grid;
  gap: var(--space-3) var(--layout-lead-gap);
}
.section__text > .prose {
  margin-top: var(--space-3);
}
.prose {
  max-width: 60ch;
  font: var(--type-lead-status-deck-weight)
    var(--type-lead-status-deck-size)/var(--type-lead-status-deck-line) var(--font-sans);
  color: rgb(var(--color-text-muted));
}
.t-lead-status {
  max-width: 26ch;
  text-wrap: balance;
}
.post-note {
  margin-top: var(--space-4);
}

/* Alfred's posts (P4): the section text stays put while the strip of posts scrolls sideways. */
.feed__side {
  min-width: 0;
}
.feed__strip {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
}
.feed__post {
  flex: 0 0 min(400px, 86%);
  scroll-snap-align: start;
  margin-right: var(--space-5);
  padding-right: var(--space-5);
  border-right: 1px solid rgb(var(--color-border));
}
.feed__post:last-child {
  margin-right: 0;
  border-right: 0;
}
.post__deck {
  margin-top: var(--space-2);
  font: var(--type-deck-weight) var(--type-deck-size-compact)/var(--type-deck-line-compact)
    var(--font-serif);
  color: rgb(var(--color-text-muted));
}
.post__chart {
  margin-top: var(--space-4);
  padding-right: 0;
}
.post__chart .chart__plot {
  height: 120px;
}
.post__caption,
.post__figure-label,
.post__news {
  font: var(--type-caption-weight) var(--type-caption-size)/var(--type-caption-line)
    var(--font-sans);
  color: rgb(var(--color-text-muted));
}
.post__caption {
  margin-top: var(--space-1);
}
.post__figure {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.post__figure-value {
  font: var(--type-fact-weight) var(--type-fact-size)/var(--type-fact-line) var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.stocks {
  margin-top: var(--space-4);
  padding: 0;
  list-style: none;
}
.stock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 64px;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
  border-top: 1px solid rgb(var(--color-border));
}
.stock:last-child {
  border-bottom: 1px solid rgb(var(--color-border));
}
.stock__id b {
  font-weight: 600;
}
.stock__id span,
.stock__figures span + span {
  color: rgb(var(--color-text-muted));
}
.stock__figures {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font: var(--type-table-weight) var(--type-table-size)/var(--type-table-line) var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.stock__return.is-up {
  color: rgb(var(--color-success));
}
.stock__return.is-down {
  color: rgb(var(--color-danger));
}
.stock svg {
  display: block;
  width: 64px;
  height: 24px;
  overflow: visible;
}
.post__news {
  margin-top: var(--space-4);
}
.post__news-title {
  font-weight: 600;
}
.post__news ul {
  margin: var(--space-1) 0 0;
  padding: 0;
  list-style: none;
}
.post__news li {
  color: rgb(var(--color-text));
}
.post__news li span {
  color: rgb(var(--color-text-muted));
}

/* App screens (P4b): each card is a bare screen specimen of the app at its own width — the frame is a
   nested .front, so the guide's own width bands compose it — divided from its neighbours by hairlines. */
.feed__strip .screen {
  flex: 0 0 min(560px, 88%);
  scroll-snap-align: start;
  margin-right: var(--space-5);
  padding-right: var(--space-5);
  border-right: 1px solid rgb(var(--color-border));
}
.feed__strip .screen:last-child {
  margin-right: 0;
  border-right: 0;
}
/* The mockup shows controls; none of them is one. */
.screen,
.screen * {
  cursor: default;
}
/* The page's own hero stays the largest text on the page (P1); a screen's hero takes the display step. */
.screen .hero {
  font: var(--type-display-weight) var(--type-display-size)/var(--type-display-line)
    var(--font-sans);
}
.screen .masthead__strip {
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
}
/* A screen is a crop, so its sections close up tighter than the app's full rhythm. */
.screen .section {
  margin-top: var(--space-5);
}
/* The guide's chip is a button in the app; the landing's decorative spans centre their own label. */
.screen .chip {
  display: inline-flex;
  align-items: center;
}
.screen .lead {
  padding-top: var(--space-3);
}
.screen__steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}
.screen__steps li {
  list-style: none;
}
.screen__steps b {
  color: rgb(var(--color-text));
  font-weight: 600;
}
.screen__decision {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.screen__decision b {
  font: var(--type-body-strong-weight) var(--type-body-strong-size)/var(--type-body-strong-line)
    var(--font-sans);
}
.screen__decision span {
  font: var(--type-label-weight) var(--type-label-size)/var(--type-label-line) var(--font-sans);
  font-weight: 400;
  color: rgb(var(--color-text-muted));
}
.screen .notice {
  margin-top: var(--space-5);
}
.screen__group {
  margin-top: var(--space-3);
  font: var(--type-body-strong-weight) var(--type-body-strong-size)/var(--type-body-strong-line)
    var(--font-sans);
}
.screen__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  column-gap: var(--space-3);
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgb(var(--color-border));
  font: var(--type-table-weight) var(--type-table-size)/var(--type-table-line) var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.screen__row > span:last-child {
  text-align: right;
}
.screen__row .muted {
  color: rgb(var(--color-text-muted));
}
.screen__note {
  font: var(--type-caption-weight) var(--type-caption-size)/var(--type-caption-line)
    var(--font-sans);
  color: rgb(var(--color-text-muted));
}
.screen .ibars__plot {
  height: 120px;
}
.screen .ibars__plot svg {
  display: block;
  width: 100%;
  height: 100%;
}
/* The app's bars carry selection with opacity; in the static screen the readout month is the selected one. */
.ibar {
  opacity: 0.4;
}
.ibar.is-selected {
  opacity: 1;
}
.ibar__net {
  fill: rgb(var(--chart-1));
}
.ibar__tax {
  fill: rgb(var(--chart-2));
}
.screen__icon {
  display: grid;
  place-items: center;
}
.screen__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgb(var(--color-text));
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cal__legend {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-2) 0 0;
  font: var(--type-caption-weight) var(--type-caption-size)/var(--type-caption-line)
    var(--font-sans);
  color: rgb(var(--color-text-muted));
}
.legend__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border: 1.5px solid rgb(var(--color-accent));
  border-radius: var(--radius-full);
}
.legend__dot--pay {
  background: rgb(var(--color-accent));
}
.screen__next {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  font: var(--type-body-weight) var(--type-body-size)/var(--type-body-line) var(--font-sans);
  color: rgb(var(--color-text));
}
.screen__caption {
  margin-top: var(--space-3);
  font: var(--type-caption-weight) var(--type-caption-size)/var(--type-caption-line)
    var(--font-sans);
  color: rgb(var(--color-text-muted));
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-section);
  padding-top: var(--space-3);
  border-top: var(--rule-light) solid rgb(var(--color-text));
}
.footer .status-line {
  margin-left: auto;
}
.not-found {
  margin-top: var(--space-5);
}

@container front (min-width: 800px) {
  .section__cols {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .section__cols > .t-lead-status {
    margin: 0;
  }
  .feed__text {
    position: sticky;
    top: var(--space-6);
    align-self: start;
  }
}
@container front (max-width: 639px) {
  .masthead__strip {
    padding-bottom: var(--space-2);
  }
  .waitlist__row {
    flex-wrap: wrap;
  }
  .waitlist__row .input {
    flex-basis: 100%;
  }
  .waitlist__row .btn {
    width: 100%;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .footer .status-line {
    margin-left: 0;
  }
}
