/* Home page and the stills page. One section shape: heading, one object, one line, one action. Tokens only. */
.hm-page .t-display-xl { max-width: 22ch; }
.hm-sec { padding-block: var(--space-5xl); scroll-margin-top: var(--space-5xl); }
.hm-deep { background: var(--paper-deep); }
.hm-h2 { max-width: 30ch; margin-bottom: var(--space-4xl); }
.hm-lead { max-width: 36rem; margin-top: var(--space-xl); color: var(--ink-2); }
.hm-note { margin-top: var(--space-xl); color: var(--muted); font-size: var(--t-footnote-size); }
.hm-note a, .hm-lead a { color: var(--ink); }

/* Hero */
.hm-hero { padding-block: var(--space-5xl); }
.hm-hero-copy .hero-title { margin-top: var(--space-md); }
.hm-hero-copy .lede { max-width: 36rem; margin-top: var(--space-xl); }
.hm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xl); margin-top: var(--space-xxl); }
.hm-link { display: inline-flex; align-items: center; min-height: var(--touch-min); color: var(--ink); font-weight: 600; }
.hm-facts { margin-top: var(--space-md); color: var(--muted); font-size: var(--t-footnote-size); }
.hm-stage { position: relative; display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: var(--space-xxl); align-items: end; margin-top: var(--space-4xl); padding: var(--space-xxl); border-radius: var(--radius-panel); background: var(--paper-deep); }
.hm-stage-one { grid-template-columns: minmax(0, 1fr); }
.hm-stage figure, .hm-fig { margin: 0; }
.hm-shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.hm-cap { margin-top: var(--space-sm); color: var(--muted); font-size: var(--t-footnote-size); }
.hm-sticker { position: absolute; top: calc(var(--space-xl) * -1); right: var(--space-xl); width: 4.5rem; height: auto; transform: rotate(8deg); pointer-events: none; }

/* A strip of slides at the 4:5 post ratio */
.hm-strip { display: flex; gap: var(--space-md); padding: 0; margin: 0; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; }
.hm-strip li { flex: 0 0 min(15rem, 62%); scroll-snap-align: start; }
.hm-slide { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); background: var(--paper); }
.hm-slide-tall { aspect-ratio: 9 / 16; }

/* What it makes */
.hm-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xxl); padding: 0; margin: 0; list-style: none; }
.hm-three li { display: flex; flex-direction: column; gap: var(--space-sm); }
.hm-three .hm-media { display: grid; place-items: center; min-height: 26rem; padding: var(--space-xl); border-radius: var(--radius-panel); background: var(--paper-deep); }
.hm-deep .hm-three .hm-media { background: var(--paper); }
.hm-three .hm-media .hm-shot { max-width: 14rem; }
.hm-trio { display: flex; gap: var(--space-xs); width: 100%; }
.hm-trio img { flex: 1 1 0; min-width: 0; }
.hm-three h3 { margin-top: var(--space-xs); }
.hm-three p { color: var(--ink-2); }
.hm-three .hm-size { color: var(--muted); font-size: var(--t-footnote-size); }

/* How it works */
.hm-steps { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xxl); padding: 0; margin: 0; list-style: none; }
.hm-steps li { display: flex; flex-direction: column; gap: var(--space-sm); }
.hm-steps .hm-shot { max-width: 18rem; margin-inline: auto; }
.hm-steps h3 { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-md); }
.hm-steps p { color: var(--ink-2); }
.hm-n { display: grid; flex: none; place-items: center; width: var(--touch-min); height: var(--touch-min); border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); font-size: var(--t-body-size); }

/* Where it runs, after you post */
.hm-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xxl); padding: 0; margin: 0; list-style: none; }
.hm-four h3 { margin-bottom: var(--space-xs); }
.hm-four p { color: var(--ink-2); }
.hm-four a { color: var(--ink); font-weight: 600; }

/* Pricing */
.hm-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); padding: 0; margin: 0; list-style: none; }
.hm-plan { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-xxl); border-radius: var(--radius-card); background: var(--paper-deep); }
.hm-plan.hm-pick { background: var(--paper); box-shadow: inset 0 0 0 var(--border-selected) var(--ink); }
.hm-plan .t-metric small { font-family: var(--sans); font-size: var(--t-footnote-size); font-weight: 400; color: var(--muted); }
.hm-plan ul { flex: 1; margin: 0; padding-left: var(--space-xl); color: var(--ink-2); }
.hm-plan .btn { margin-top: var(--space-md); }
.hm-plan .hm-for { color: var(--muted); font-size: var(--t-footnote-size); }
.hm-fine { margin-top: var(--space-xl); color: var(--muted); font-size: var(--t-footnote-size); }
.hm-fine a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.hm-more { display: flex; flex-wrap: wrap; gap: var(--space-xl); margin-top: var(--space-xxl); }
.hm-more a { color: var(--ink); font-weight: 600; }

/* FAQ */
.hm-faq { display: grid; gap: var(--space-xs); max-width: 48rem; }
.hm-faq details { border-radius: var(--radius-control); background: var(--paper-deep); }
.hm-faq summary { display: flex; align-items: center; min-height: var(--touch-min); padding: var(--space-xs) var(--space-lg); font-weight: 600; cursor: pointer; }
.hm-faq details p { padding: 0 var(--space-lg) var(--space-lg); color: var(--ink-2); }
.hm-close { margin-top: var(--space-4xl); display: grid; gap: var(--space-md); justify-items: start; }

/* Stills page table */
.hm-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.hm-table table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--t-footnote-size); }
.hm-table th, .hm-table td { padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hm-table thead th { color: var(--muted); font-weight: 600; }
.hm-table tbody th { color: var(--ink); font-weight: 600; }
.hm-table tr:last-child > * { border-bottom: 0; }
.hm-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-list { display: grid; gap: var(--space-md); max-width: 36rem; padding-left: var(--space-xl); color: var(--ink-2); }

@media (max-width: 64rem) {
  .hm-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .hm-sec { padding-block: var(--space-4xl); }
  .hm-h2 { margin-bottom: var(--space-xxl); }
  .hm-hero { padding-block: var(--space-xxxl) var(--space-4xl); }
  .hm-stage { grid-template-columns: minmax(0, 1fr); padding: var(--space-md); margin-top: var(--space-xxxl); }
  .hm-stage .hm-shot { max-width: 14rem; margin-inline: auto; }
  .hm-three, .hm-steps, .hm-plans { grid-template-columns: minmax(0, 1fr); }
  .hm-three .hm-media { min-height: 0; }
}
@media (max-width: 36rem) {
  .hm-four { grid-template-columns: minmax(0, 1fr); }
  .hm-cta .btn { width: 100%; }
}
.hm-trio .hm-slide-tall:only-child { max-width: 14rem; margin-inline: auto; }
.hm-stage-one .hm-strip li { flex: 1 0 min(16rem, 70%); }
.hm-trio .hm-slide-tall:only-child { max-height: 22rem; width: auto; }

/* Visual pass: hero beside its output, framed cards, split rows */
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 37rem); gap: var(--space-xxxl); align-items: center; }
.hm-stage-hero { position: relative; display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--space-md); align-items: start; margin: 0; padding: var(--space-xl); border-radius: var(--radius-panel); background: var(--paper-deep); }
.hm-stage-hero .hm-cap { grid-column: 1 / -1; }
.hm-stage-hero .hm-sticker { top: calc(var(--space-xl) * -1); }
.hm-slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.hm-three .hm-media-grid { padding: var(--space-md); min-height: 26rem; }
.hm-media-grid .hm-slides { width: 100%; gap: var(--space-xs); }
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: var(--space-xxxl); align-items: center; }
.hm-split-flip { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
.hm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); padding: 0; margin: 0; list-style: none; }
.hm-cards li { display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--paper); }
.hm-sec:not(.hm-deep) .hm-cards li { background: var(--paper-deep); }
.hm-cards p { color: var(--ink-2); }
.hm-cards a { color: var(--ink); font-weight: 600; }
.hm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.hm-pair .hm-shot, .hm-split .hm-shot { max-width: none; }
@media (max-width: 64rem) {
  .hm-hero-grid, .hm-split, .hm-split-flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-xxl); }
  .hm-split .hm-fig { max-width: 20rem; }
}
@media (max-width: 36rem) {
  .hm-stage-hero { grid-template-columns: minmax(0, 1fr); }
  .hm-stage-hero .hm-shot { max-width: 14rem; margin-inline: auto; }
  .hm-cards { grid-template-columns: minmax(0, 1fr); }
}
.hm-three .hm-media, .hm-three .hm-media-grid { height: 26rem; min-height: 0; }
.hm-media-grid .hm-slide { aspect-ratio: 1; }
.hm-split .hm-cards { align-self: stretch; grid-auto-rows: 1fr; }
.hm-split .hm-shot, .hm-pair .hm-shot { max-width: 16rem; margin-inline: auto; }
.hm-split { grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); }
.hm-split-flip { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); }
.hm-pair { gap: var(--space-xl); }
@media (max-width: 64rem) { .hm-split, .hm-split-flip { grid-template-columns: minmax(0, 1fr); } .hm-split .hm-fig { max-width: 16rem; } }
@media (max-width: 48rem) { .hm-hero { padding-block: var(--space-xxxl) var(--space-4xl); } .hm-three .hm-media, .hm-three .hm-media-grid { height: auto; min-height: 0; } }
.hm-split .hm-shot, .hm-pair .hm-shot { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }

/* Last pass: stacked hero, equal step tiles, wide calendar crop */
.hm-hero { padding-block: var(--space-xxxl) var(--space-4xl); }
.hm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xxl); align-items: start; }
.hm-stage-hero { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); align-items: center; padding: var(--space-lg); }
.hm-slides.hm-slides-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-tile { display: grid; place-items: center; height: 32rem; padding: var(--space-lg); border-radius: var(--radius-panel); background: var(--paper-deep); }
.hm-tile .hm-shot { width: auto; max-width: 100%; max-height: 100%; margin: 0; }
.hm-tile-dark { background: var(--ink); }
.hm-tile-dark .hm-shot { border-color: transparent; }
.hm-split .hm-shot.hm-shot-wide, .hm-pair .hm-shot.hm-shot-wide { aspect-ratio: auto; max-width: none; align-self: end; }
.hm-pair { align-items: end; }
@media (max-width: 48rem) { .hm-stage-hero { grid-template-columns: minmax(0, 1fr); } .hm-stage-hero .hm-shot { max-width: 12rem; } .hm-slides.hm-slides-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-tile { height: 28rem; } }

.hm-tile .hm-shot { width: auto; height: calc(32rem - 2 * var(--space-lg)); max-height: none; object-fit: contain; }
@media (max-width: 48rem) { .hm-tile .hm-shot { height: calc(28rem - 2 * var(--space-lg)); max-width: 100%; } }
.hm-split:not(.hm-split-flip) { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }
.hm-split:not(.hm-split-flip) .hm-fig { max-width: none; align-self: center; }
@media (max-width: 64rem) { .hm-split:not(.hm-split-flip) { grid-template-columns: minmax(0, 1fr); } }

.hm-stage-hero .hm-shot-second { max-width: 12rem; justify-self: start; }
@media (max-width: 48rem) { .hm-stage-hero .hm-shot-second { margin-inline: auto; justify-self: center; } }
