/* Hallmark · shape: Feature Stack · genre: editorial · theme: brand · redesign: full
 * paper: oklch(17.5% 0.045 266) · accent: oklch(53.5% 0.245 262) · display: Manrope 800 · body: Manrope 400 · hero: Poster · nav: slab · footer: index columns · signature: the email wall (moving on phones)
 * axes: dark/grotesk-heavy/chromatic-blue · posture: Restrained · contrast: pass · fold: pass · draw: f6e0f0 · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R4 V4 · weakest: E (no client results exist to show; the figures are a benchmark and a scenario, labelled as such) */
/* Hallmark · answered 82: the hero wall is the user's own six designs, not a counting device
 * waive 39b: each design card is one button so the whole card is the hit target; its height is the picture's
 * answered F5: the ticks in the comparison sit in the accent on request of the owner, as in the old design */

/* Hero: Poster. The six designs as one wall behind the head, the head low and left on a scrim. */
.hero { position: relative; isolation: isolate; min-height: calc(94dvh - 72px); display: grid; align-items: end; overflow: clip; background: var(--color-paper); color: var(--color-ink); }
.hero-wall { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); padding-inline: var(--space-md); }
.hero-wall img { width: 100%; height: 118%; object-fit: cover; object-position: top center; border-radius: 0 0 var(--radius-card) var(--radius-card); }
.hero-wall img:nth-child(even) { transform: translateY(-14%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background:
  linear-gradient(to top, var(--color-paper) 8%, color-mix(in oklab, var(--color-paper) 88%, transparent) 38%, color-mix(in oklab, var(--color-paper) 30%, transparent) 72%, transparent 100%),
  linear-gradient(to right, color-mix(in oklab, var(--color-paper) 80%, transparent) 0%, transparent 60%); }
.hero-copy { position: relative; z-index: 3; padding-block: var(--space-3xl) var(--space-3xl); }
.hero h1 { font-size: clamp(2.25rem, 9.4vw, 6.75rem); hyphens: manual; line-height: 0.95; max-width: 16ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); font-size: var(--text-lead); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); }
.hero-more { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-signal); text-underline-offset: 0.3em; }
.hero-more:hover { text-decoration-thickness: 2px; }
.hero-more:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* Shared section rhythm and head blocks. */
main > section { padding-block: var(--section-gap) 0; }
.services { margin-top: var(--section-gap); }
.head-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.head-split h2 { grid-column: 1 / span 7; max-width: 22ch; }
.head-split .lead, .head-split .caption { grid-column: 9 / span 4; color: var(--color-muted); }
.caption { font-size: var(--text-md); max-width: 46ch; }
.lead { color: var(--color-ink-2); }

/* Services: Rows on a light band. */
.services { margin-top: var(--section-gap); padding-block: var(--section-gap-s) !important; background: var(--color-band); color: var(--color-band-ink); }
.services .lead { color: var(--color-band-muted); }
.service-rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-band-rule); }
.service-rows > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-band-rule); }
.service-rows h3 { grid-column: 1 / span 5; font-size: var(--text-title); color: var(--color-band-ink); }
.service-rows > li > div { grid-column: 6 / span 7; display: grid; gap: var(--space-md); }
.service-rows p { color: var(--color-band-ink); max-width: 60ch; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); font-weight: 700; color: var(--color-accent); }

/* Pricing: the offer, with the price set large because it is the offer. */
.pricing-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.pricing-copy { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); }
.pricing-copy p { color: var(--color-ink-2); }
.offer { grid-column: 7 / span 6; display: grid; gap: var(--space-md); padding: var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); }
.offer-label { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.price { display: flex; align-items: baseline; gap: var(--space-sm); font-family: var(--font-display); }
.price .num { font-variant-numeric: tabular-nums; font-size: clamp(4.5rem, 9vw, 8rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.045em; }
.price .per { font-size: var(--text-lg); color: var(--color-muted); }
.commission { font-size: var(--text-lg); color: var(--color-ink-2); }
.commission .num { font-weight: 800; color: var(--color-signal); }
.offer ul { list-style: none; margin: var(--space-xs) 0 var(--space-md); padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.offer li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.offer .btn { justify-self: start; white-space: nowrap; }

/* Closing: the contact. */
/* The last section before the footer always keeps a full gap below it. */
main > section:last-of-type { padding-bottom: var(--section-gap) !important; }

/* Dialogs: the contact brief and the full design. */
#design-dialog { max-width: min(640px, calc(100% - 2 * var(--space-md))); max-height: 90dvh; overflow: auto; background: var(--color-paper-2); }
#design-close { display: block; margin-left: auto; min-height: 44px; padding: 0 var(--space-md); border: 0; background: var(--color-paper-2); color: var(--color-ink); font-weight: 700; cursor: pointer; }
#design-full { width: 100%; height: auto; }

/* Under 60rem everything stacks in reading order. */
@media (max-width: 60rem) {
  .hero { min-height: 88dvh; }
  .hero-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); padding-inline: var(--space-sm); }
  .hero-wall img:nth-child(n+4) { display: none; }
  .head-split h2, .head-split .lead, .head-split .caption { grid-column: 1 / -1; }
  .service-rows h3, .service-rows > li > div { grid-column: 1 / -1; }
  .pricing-copy, .offer { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .hero-actions { gap: var(--space-md); }
  .compare-table th, .compare-table td { padding-right: var(--space-sm); font-size: var(--text-sm); }
  .offer { padding: var(--space-lg); }
}

/* Gallery: the six designs side by side; a rail that scrolls sideways on phones. */
.email-gallery { display: flex; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding: var(--space-xs) var(--gutter) var(--space-md); scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--color-rule) transparent; }
.email-gallery .email-preview { flex: 0 0 clamp(200px, 17vw, 250px); scroll-snap-align: start; }
.email-preview { position: relative; display: block; height: 440px; padding: 0; border: 0; border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; cursor: zoom-in; outline: 1px solid color-mix(in oklab, var(--color-ink) 12%, transparent); outline-offset: -1px; transition: transform var(--dur-short) var(--ease-out); }
.email-preview img { width: 100%; height: auto; }
.email-preview span { position: absolute; inset: auto 0 0 0; z-index: 1; padding: var(--space-2xl) var(--space-md) var(--space-md); background: linear-gradient(to top, var(--color-paper) 25%, transparent); color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; text-align: left; }
.email-preview:hover { transform: translateY(-4px); outline-color: var(--color-signal); }
.email-preview:active { transform: translateY(0); }
.email-preview:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.email-gallery:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.gallery-note { margin-top: var(--space-lg); color: var(--color-muted); }

/* Hero reel: on phones the designs drift upward behind the head, slowly, and stop on request. */
.hero-reel { display: none; }
@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Returns: the two figures, set large. */
.returns-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.returns-grid article { display: grid; align-content: start; gap: var(--space-md); padding: var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); }
.returns-value { display: flex; align-items: baseline; gap: var(--space-xs); font-family: var(--font-display); font-weight: 800; line-height: 0.9; white-space: nowrap; }
.returns-value .num { font-size: clamp(3.5rem, 7.5vw, 7rem); letter-spacing: -0.045em; font-variant-numeric: proportional-nums; color: var(--color-ink); }
.returns-value .unit { font-size: clamp(1.75rem, 3.2vw, 3rem); letter-spacing: -0.02em; color: var(--color-signal); }
.returns-grid h3 { margin-top: var(--space-md); }
.returns-grid p:not(.returns-value) { color: var(--color-muted); max-width: 46ch; }
.returns-grid a { color: var(--color-ink-2); }

/* Compare: the old matrix, in the new system. Upflow's column is the lit one. */
.comparison-matrix { max-width: 960px; }
.comparison-matrix table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.comparison-matrix .feature-col { width: 50%; }
.comparison-matrix th, .comparison-matrix td { padding: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: center; vertical-align: middle; }
.comparison-matrix tbody th { text-align: left; padding-left: 0; font-weight: 700; color: var(--color-ink); }
.comparison-matrix thead th { border-bottom: 0; padding-block: var(--space-lg); font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.comparison-matrix .upflow-cell { background: var(--color-paper-2); }
.comparison-matrix thead .upflow-cell { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.comparison-matrix tbody tr:last-child .upflow-cell { border-radius: 0 0 var(--radius-card) var(--radius-card); }
.comparison-matrix thead img { width: 112px; height: auto; margin-inline: auto; }
.matrix-check { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); }
.matrix-check svg { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.matrix-varies { font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
  .hero-wall { display: none; }
  .hero-reel { display: grid; position: absolute; inset: 0; z-index: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); padding-inline: var(--space-sm); overflow: hidden; }
  .reel-col { overflow: hidden; }
  .reel-track { display: grid; gap: var(--space-sm); animation: reel-up 70s linear infinite; }
  .reel-col:nth-child(2) .reel-track { animation-duration: 90s; animation-direction: reverse; }
  .reel-col:nth-child(3) .reel-track { animation-duration: 80s; }
  .reel-track img { width: 100%; height: auto; border-radius: var(--radius-card); }
  .hero.reel-paused .reel-track { animation-play-state: paused; }
  .email-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-md); padding-bottom: var(--space-md); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .email-gallery .email-preview { flex: 0 0 68%; height: 480px; scroll-snap-align: start; }
  .email-preview:hover { transform: none; }
  .returns-grid { grid-template-columns: minmax(0, 1fr); }
  .comparison-matrix .feature-col { width: 44%; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
}

/* The glass slab floats over the top of the wall, so the designs show through it. */
body.home { --slab-h: 64px; --slab-top: 16px; }
.home .hero { margin-top: calc(-1 * (var(--slab-h) + var(--slab-top))); min-height: 94dvh; }
.home .hero-copy { padding-top: calc(var(--slab-h) + var(--space-3xl)); }
@media (max-width: 40rem) { body.home { --slab-h: 56px; --slab-top: 12px; } }
.comparison-matrix tbody tr:last-child th, .comparison-matrix tbody tr:last-child td { border-bottom: 0; }
.matrix-cross { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); }
.matrix-cross svg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

/* Phones: the moving designs fade in from the navy under the header instead of starting on a hard edge under the status bar. */
@media (max-width: 60rem) {
  .hero-reel { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent calc(var(--slab-h) + var(--slab-top)), var(--mask-solid) calc(var(--slab-h) + var(--slab-top) + 120px)); mask-image: linear-gradient(to bottom, transparent 0, transparent calc(var(--slab-h) + var(--slab-top)), var(--mask-solid) calc(var(--slab-h) + var(--slab-top) + 120px)); }
}
@media (max-width: 60rem) {
  /* Lighter scrim on phones: only the lower part, behind the head and the buttons, goes dark. */
  .hero::after { background: linear-gradient(to top, var(--color-paper) 6%, color-mix(in oklab, var(--color-paper) 88%, transparent) 34%, color-mix(in oklab, var(--color-paper) 55%, transparent) 50%, transparent 66%); }
  .hero-reel { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent calc(var(--slab-h) + var(--slab-top) - 8px), var(--mask-solid) calc(var(--slab-h) + var(--slab-top) + 48px)); mask-image: linear-gradient(to bottom, transparent 0, transparent calc(var(--slab-h) + var(--slab-top) - 8px), var(--mask-solid) calc(var(--slab-h) + var(--slab-top) + 48px)); }
}
@media (max-width: 60rem) {
  /* Phones: the hero fills the whole screen, the head and buttons sit near the bottom edge. */
  .home .hero { min-height: 100svh; }
  .home .hero-copy { padding-bottom: var(--space-xl); }
}

/* Hero reel on every screen: six slow columns on a laptop, three a little quicker on a phone. */
.hero-wall { display: none; }
.hero-reel { display: grid; position: absolute; inset: 0; z-index: 1; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); padding-inline: var(--space-md); overflow: hidden; }
.reel-col { overflow: hidden; }
.reel-track { display: grid; gap: var(--space-md); animation: reel-up 400s linear infinite; }
.reel-col:nth-child(even) .reel-track { animation-direction: reverse; animation-duration: 480s; }
.reel-col:nth-child(3n) .reel-track { animation-duration: 440s; }
.reel-track img { width: 100%; height: auto; border-radius: var(--radius-card); }
.hero.reel-paused .reel-track { animation-play-state: paused; }
@media (max-width: 60rem) {
  .hero-reel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); padding-inline: var(--space-sm); }
  .reel-col:nth-child(n+4) { display: none; }
  .reel-track { gap: var(--space-sm); animation-duration: 140s; }
  .reel-col:nth-child(2) .reel-track { animation-duration: 180s; }
  .reel-col:nth-child(3) .reel-track { animation-duration: 160s; animation-direction: normal; }
}
@media (prefers-reduced-motion: reduce) { .reel-track { animation: none; } }

/* Compare, centred: a two-column verdict reads best as one centred object, not stretched across the page. */
.compare .head-split { display: block; text-align: center; }
.compare .head-split h2 { margin-inline: auto; }
.comparison-matrix { margin-inline: auto; max-width: 880px; }

/* Compare on the light band, like the services: the Upflow column becomes the one navy column. */
main > section.compare { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-band); color: var(--color-band-ink); }
.compare h2 { color: var(--color-band-ink); }
.compare + .pricing { padding-top: var(--section-gap); }
.comparison-matrix th, .comparison-matrix td { border-bottom-color: var(--color-band-rule); }
.comparison-matrix tbody th { color: var(--color-band-ink); }
.comparison-matrix thead th { color: var(--color-band-muted); }
.comparison-matrix .upflow-cell { background: var(--color-paper); }
.matrix-cross { border-color: var(--color-band-rule); color: var(--color-band-muted); }


/* Services: brand first, three navy cards with one big figure each. */
.svc-head { display: grid; justify-items: center; text-align: center; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.svc-head h2 { color: var(--color-band-ink); margin-inline: auto; }
.svc-head .lead { max-width: 44ch; margin-inline: auto; }
.svc-head .lead strong { color: var(--color-band-ink); font-weight: 700; }
.svc-eyebrow { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-accent) 12%, transparent); color: var(--color-accent); font-size: var(--text-sm); font-weight: 800; letter-spacing: 0.02em; }
.svc-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.svc-card { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); transition: transform var(--dur-short) var(--ease-out); }
.svc-card:hover { transform: translateY(-4px); }
.svc-stat { font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 0.08em; font-family: var(--font-display); font-weight: 800; line-height: 0.9; white-space: nowrap; }
.svc-stat .num { font-size: clamp(3.5rem, 6vw, 5.5rem); letter-spacing: -0.045em; color: var(--color-ink); }
.svc-stat .unit { font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -0.02em; color: var(--color-signal); }
.svc-label { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.svc-card h3 { margin-top: var(--space-md); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-title); color: var(--color-ink); }
.svc-body { color: var(--color-ink-2); }
.svc-card .tags { margin-top: var(--space-xs); gap: var(--space-xs); }
.svc-card .tags li { padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-ink) 8%, transparent); color: var(--color-ink-2); }
@media (max-width: 60rem) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc-card { padding: var(--space-lg); } }
@media (prefers-reduced-motion: reduce) { .svc-card:hover { transform: none; } }
.compare .head-split .lead { margin: var(--space-md) auto 0; max-width: 44ch; color: var(--color-band-muted); }
.compare-cta { display: flex; justify-content: center; margin-top: var(--space-2xl); }
.svc-more summary { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px; cursor: pointer; list-style: none; font-size: var(--text-sm); font-weight: 700; color: var(--color-signal); }
.svc-more summary::-webkit-details-marker { display: none; }
.svc-more summary::after { content: "+"; font-size: 1.1em; transition: transform var(--dur-short) var(--ease-out); }
.svc-more[open] summary::after { transform: rotate(45deg); }
.svc-more summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.svc-more ol { margin: var(--space-xs) 0 0; padding: 0; list-style: none; counter-reset: flow; display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.svc-more li { counter-increment: flow; display: flex; gap: var(--space-sm); }
.svc-more li::before { content: counter(flow, decimal-leading-zero); min-width: 2ch; color: var(--color-muted); font-variant-numeric: tabular-nums; }


/* The full-design viewer keeps its own dialog shell; forms use /hm/forms.css. */
#design-dialog { border: 0; padding: 0; width: 100%; border-radius: var(--radius-card); }
#design-dialog::backdrop { background: color-mix(in oklab, var(--color-paper) 80%, transparent); }
#design-close:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Upward reel columns start below the floating header, so the first email reads from its top on load. The strip above stays under the mask. */
.home .reel-col:nth-child(odd) { padding-top: calc(var(--slab-h) + var(--slab-top) + var(--space-2xl)); }
@media (max-width: 60rem) { .home .reel-col:nth-child(odd) { padding-top: calc(var(--slab-h) + var(--slab-top) + var(--space-lg)); } }

/* Closing offer: the free emaildesign, on the light band, three designs fanned beside the action. */
main > section.freebie { margin-top: var(--section-gap); padding-top: var(--section-gap-s); background: var(--color-band); color: var(--color-band-ink); overflow: hidden; }
.freebie-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: center; }
.freebie-copy { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); justify-items: start; }
.freebie h2 { color: var(--color-band-ink); overflow-wrap: break-word; min-width: 0; }
.freebie .lead { color: var(--color-band-muted); max-width: 40ch; }
.freebie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-xs); }
.freebie-note { display: inline-flex; align-items: baseline; gap: var(--space-xs); font-size: var(--text-sm); font-weight: 700; color: var(--color-band-muted); }
.freebie-note span { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.03em; color: var(--color-accent); }
.freebie-fan { grid-column: 7 / span 6; position: relative; height: 440px; }
.freebie-fan img { position: absolute; top: 0; width: 44%; height: 400px; object-fit: cover; object-position: top; border-radius: var(--radius-card); box-shadow: 0 18px 40px var(--color-slab-shadow); }
.freebie-fan img:nth-child(1) { left: 4%; top: 36px; transform: rotate(-7deg); }
.freebie-fan img:nth-child(2) { left: 28%; z-index: 2; transform: rotate(0deg); }
.freebie-fan img:nth-child(3) { left: 52%; top: 36px; transform: rotate(7deg); }
@media (max-width: 60rem) {
  .freebie-copy, .freebie-fan { grid-column: 1 / -1; }
  .freebie-fan { height: 300px; margin-inline: auto; width: min(100%, 420px); }
  .freebie-fan img { height: 270px; }
}
