@layer components {

  /* ─── Page basics ─────────────────────────── */

  /* The layout's footer (© faktura.to) is hidden — the landing page has its own. */
  body.home-body > footer {
    display: none;
  }

  /* The page alternates between the two light surfaces, as the design does:
     a plain section shows the white one through from the body, and each
     full-bleed band paints the canvas edge to edge. The background belongs on
     the body and not on `.home-page`: a band bleeds through a `z-index: -1`
     pseudo-element, which the page's own background would paint over.

     The header is two rows here, so the page reserves both: the layout's
     `padding-block-start` allows for one bar and would leave the hero under
     the pages' row. Anything that clears the header — this padding, a
     section's scroll margin — reads the sum. */
  body.home-body {
    /* The pages' row, and so the height to clear, belongs to the wide
       display: on a phone the burger carries the pages and the bar stands
       alone. The hairline between the rows counts too, or the bar would sit a
       pixel over the hero. */
    --home-pages-block-size: 0px;
    --home-header-block-size: calc(var(--nav-height) + var(--home-pages-block-size));

    @media (width >= 768px) {
      --home-pages-block-size: calc(2.75rem + 1px);
    }

    background: var(--color-surface);
    padding-block-start: var(--home-header-block-size);
  }

  /* Keeps the full-bleed backgrounds from overflowing sideways (without
     affecting the fixed header). Clipped on the root too, so the overflowing
     pseudo-backgrounds can never open a horizontal scroll. */
  html:has(body.home-body),
  body.home-body {
    overflow-x: clip;
  }

  /* Smooth scroll for the menu's anchor links (Features / How it works /
     Pricing). The sections carry `scroll-margin-top` so the fixed header
     doesn't cover them. */
  @media (prefers-reduced-motion: no-preference) {
    html:has(body.home-body) {
      scroll-behavior: smooth;
    }
  }

  .home-page {
    color: var(--color-ink);
    font-size: 1rem;
  }

  /* Purple accent text in headings */
  .home-accent {
    color: var(--color-brand);
  }

  .home-accent--light {
    color: var(--color-brand-inverted);
  }

  .home-check {
    color: var(--color-brand);
    font-weight: 700;
    margin-inline-end: 0.25rem;
  }

  .home-check--light {
    color: var(--color-brand-inverted);
  }

  /* ─── Full-bleed bands ──────────────────────
     The section stays inside the centred `main` (the content does NOT move,
     so nothing gets clipped); an absolute ::before behind it paints the
     full-width background.

     A band names its colour in `--home-bleed-background` and the pseudo-element
     is the only thing that paints it. Setting `background` on the section too
     and reading it here with `inherit` drew the same colour twice, in two
     layers whose edges meet at the section's own box; on a display whose
     device pixels do not line up with that edge the seam showed as a hairline
     down both sides of the band.

     The fallback lives in the `var()` rather than as a declaration on
     `.home-bleed`: a band styled from another file (`home-efaktura.css`,
     `home-faq.css`) sets the variable at the same specificity, and Propshaft
     serves the files in alphabetical order, so a default here would have
     silently won over the two that sort before this one. */

  .home-bleed {
    position: relative;
  }

  .home-bleed::before {
    background: var(--home-bleed-background, transparent);
    content: "";
    inset: 0 calc(50% - 50vw);
    position: absolute;
    z-index: -1;
  }

  .home-bleed__container {
    inline-size: 100%;
    margin-inline: auto;
  }

  /* ─── Swipe rows ────────────────────────────
     A set of equal cards laid side by side for a thumb, where a phone would
     otherwise scroll past a tall stack of them. The row reaches the screen's
     edges so a card's neighbour peeks in and says there is more; the gutter
     comes back as padding, which keeps the first card in line with the words
     above it, and as scroll padding, which keeps it there once snapped. The
     grid a block declares for wider displays is untouched. */

  .home-swipe {
    @media (width < 768px) {
      grid-auto-columns: min(78%, 19rem);
      grid-auto-flow: column;
      margin-inline: calc(-1 * var(--gutter));
      overflow-x: auto;
      overscroll-behavior-inline: contain;
      padding-inline: var(--gutter);
      scroll-padding-inline: var(--gutter);
      scroll-snap-type: x mandatory;
      scrollbar-width: none;

      > * {
        scroll-snap-align: start;
      }
    }
  }

  .home-swipe::-webkit-scrollbar {
    display: none;
  }

  /* ─── Header ──────────────────────────────── */

  /* The bar's own row (`.nav-container`): the logo at the start, the person and
     the sign-up at the end, and on a phone the burger after them. The gap is
     what stands between those groups. */
  .home-header__container {
    gap: 1rem;

    @media (width >= 1024px) {
      gap: 1.5rem;
    }
  }

  /* ─── The pages' row ──────────────────────── */

  /* Ruled off from the row above and a shade quieter, so the two read as
     identity and chrome rather than as one crowded bar. On a phone the row
     scrolls sideways instead of wrapping: six names never fit, and wrapping
     would push the page down by a line. */
  .home-header__pages {
    border-block-start: 1px solid var(--color-glass-edge);
    display: none;

    @media (width >= 768px) {
      display: block;
    }
  }

  /* The row does NOT scroll: a menu hanging off one of these headings is
     positioned out of the row, and a scroll container would clip it away.
     The six headings fit from the tablet width up, which is the narrowest
     width the row is shown at. */
  .home-header__pages .home-header__pages-row {
    block-size: var(--home-pages-block-size);
    gap: 1.5rem;

    @media (width >= 1024px) {
      gap: 2rem;
    }
  }

  /* A page in the row, whether it is a link or the summary that opens a menu:
     both look and behave the same, so the row reads as one set of choices. */
  .home-header__page {
    align-items: center;
    color: var(--color-ink-secondary);
    cursor: pointer;
    display: flex;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.25rem;
    line-height: 1;
    list-style: none;
    text-decoration: none;
    white-space: nowrap;
  }

  .home-header__page::-webkit-details-marker {
    display: none;
  }

  .home-header__page:hover {
    color: var(--color-brand);
  }

  .home-header__page-chevron {
    color: var(--color-ink-faint);
    transition: transform 0.15s ease;
  }

  .home-header__page:hover .home-header__page-chevron {
    color: var(--color-brand);
  }

  /* The menu a heading opens. It hangs off the heading, so the heading is what
     the drop is positioned against. */
  .home-header__page-menu {
    position: relative;
  }

  .home-header__page-menu[open] .home-header__page,
  .home-header__page-menu[open] .home-header__page-chevron {
    color: var(--color-brand);
  }

  .home-header__page-menu[open] .home-header__page-chevron {
    transform: rotate(180deg);
  }

  .home-header__page-drop {
    animation: home-menu-in 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    inset-block-start: calc(100% + 0.5rem);
    inset-inline-start: calc(-1 * 0.5rem);
    min-inline-size: 14rem;
  }

  /* The ways in sit at the end of the upper row. From the tablet width the bar
     names them itself — sign in, the accountant's own way, the sign-up button
     and the gear; on a phone it keeps the button and the burger, and the two
     ways in are the foot of the burger's sheet. The two switches hang under
     the gear from the tablet width and in that same foot below it, so each is
     on the page twice and exactly one of the two is ever shown. */
  .home-header__actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-inline-start: auto;

    @media (width >= 1024px) {
      gap: 1rem;
    }
  }

  /* The gear is the wide bar's own: on a phone its two switches are in the
     sheet instead, so a second way to them would be a second copy. */
  @media (width < 768px) {
    .home-header__settings {
      display: none;
    }
  }

  /* A way in named in the bar: quieter than the button beside it, and on one
     line — the phrase is short, and wrapping it would raise the whole row. */
  .home-header__way {
    color: var(--color-ink-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    @media (width < 768px) {
      display: none;
    }
  }

  .home-header__way:hover {
    color: var(--color-brand);
  }

  /* ─── The phone's two menus ───────────────── */

  /* The burger follows the button rather than claiming the end of the bar for
     itself: the row above already pushes that group right, and a second
     `margin-inline-start: auto` here would split the free space between the
     two and leave the burger in the middle of the bar. */
  .home-header__phone {
    align-items: center;
    display: flex;
    gap: 0.25rem;

    @media (width >= 768px) {
      display: none;
    }
  }

  .home-header__cta {
    font-size: 0.8125rem;
    padding: 0.5625rem 1.25rem;
  }



  /* Both menus are the same button: a `summary` that anchors what it opens. */
  .home-header__menu {
    position: relative;
  }

  .home-header__menu-btn {
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    color: var(--color-brand);
    cursor: pointer;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0.5rem;
  }

  .home-header__menu-btn::-webkit-details-marker {
    display: none;
  }

  /* Under the gear: the two switches side by side in a panel pinned to it, as
     the pages' menus are pinned to their own headings. */
  .home-header__switches {
    align-items: center;
    animation: home-menu-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    display: flex;
    gap: 1rem;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    justify-content: space-between;
    padding: 0.75rem;
  }

  /* The pages: a sheet across the screen under the bar,
     rather than a panel hanging off the button — there are seven rows to
     read, and a thumb has the whole width to reach them. It is `fixed`, like
     the bar it hangs from, so the page behind it can scroll away. */
  .home-header__sheet {
    animation: home-menu-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    inset-block-start: calc(var(--nav-height) + 0.5rem);
    inset-inline: 0.75rem;
    max-block-size: calc(100dvh - var(--nav-height) - 1.5rem);
    overflow-y: auto;
    padding: 0.75rem;
    position: fixed;
  }

  /* A rule under every row of the sheet's own list, so the rows read as a list
     rather than as floating words. The groups' own pages are inside a row, not
     rows themselves, so they keep clear of it. */
  .home-header__sheet > a.home-header__sheet-item,
  .home-header__sheet > details.home-header__sheet-group {
    border-block-end: 1px solid var(--color-border-subtle);
  }

  /* The foot: the switches, then the two ways in the bar has no room to name.
     Side by side where they fit and stacked where they do not — the English
     accountant's way is half again as long as the Slovak one. */
  .home-header__sheet-foot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-block-start: 0.875rem;
  }

  .home-header__sheet-switches {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-inline: 0.375rem;
  }

  .home-header__sheet-ways {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  }

  /* A page of the sheet: the size of a row a thumb aims at, and text rather
     than a link for as long as the page behind it is unwritten. */
  .home-header__sheet-item {
    align-items: center;
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    display: flex;
    font-size: 1rem;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.75rem;
    text-decoration: none;
  }

  .home-header__sheet-item:active {
    background: var(--color-surface-tint);
  }

  /* A heading in the sheet folds its own pages away. The summary is styled as
     any other row of the sheet, so the set reads as one list whichever rows
     happen to be open. */
  .home-header__sheet-group summary.home-header__sheet-item {
    cursor: pointer;
    list-style: none;
  }

  .home-header__sheet-group summary.home-header__sheet-item::-webkit-details-marker {
    display: none;
  }

  .home-header__sheet-group[open] > summary.home-header__sheet-item {
    color: var(--color-brand);
  }

  .home-header__sheet-group[open] > summary .home-header__page-chevron {
    color: var(--color-brand);
    transform: rotate(180deg);
  }

  .home-header__sheet-children {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-block-end: 0.375rem;
  }

  /* A group's own pages, indented under the heading that holds them. The rule
     down the side ties them to it while the group is open. */
  .home-header__sheet-item--child {
    border-inline-start: 2px solid var(--color-border-subtle);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-inline-start: 0.75rem;
    padding-inline-start: 1rem;
  }


  @keyframes home-menu-in {
    from {
      opacity: 0;
      transform: translateY(-6px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* ─── Hero ────────────────────────────────── */

  /* The opening: the words centred over the app itself — the list of
     invoices in a browser window, one invoice open on a phone at its trailing
     corner, two cards floating over them and the brand's glow behind. On a
     phone the window goes and the phone stands alone, cut off by the band's
     foot, the cards overlapping its edges. */
  .home-hero {
    --home-bleed-background: linear-gradient(var(--color-canvas), var(--color-surface));

    display: grid;
    gap: 3rem;
    justify-items: center;
    padding-block: 3rem 0;
    text-align: center;

    /* The phone's foot reaches below the window's; the band ends under it. */
    @media (width >= 768px) {
      gap: 4rem;
      padding-block: 4.5rem 4rem;
    }
  }

  .home-hero__content {
    display: grid;
    justify-items: center;
    max-inline-size: 46rem;
  }

  .home-hero__title {
    font-size: clamp(2.5rem, 5.4vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 1.5rem;
    text-wrap: balance;
  }

  .home-hero__text {
    color: var(--color-ink-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 2rem;
    max-inline-size: 34rem;
  }

  /* On a phone the two calls to action stack full width, the way in first. */
  .home-hero__ctas {
    display: grid;
    gap: 0.75rem;
    inline-size: 100%;

    @media (width >= 480px) {
      display: flex;
      flex-wrap: wrap;
      inline-size: auto;
      justify-content: center;
    }
  }

  .home-hero__cta-demo {
    color: var(--color-ink);
  }

  .home-hero__reassurance {
    color: var(--color-ink-muted);
    font-size: 0.875rem;
    margin: 1.25rem 0 0;
    text-wrap: balance;
  }

  .home-hero__visual {
    --hero-phone-inline-size: 17rem;

    display: grid;
    inline-size: 100%;
    justify-items: center;
    max-block-size: 30rem;
    overflow: clip;
    padding-block-start: 1rem;
    position: relative;

    @media (width >= 768px) {
      --hero-phone-inline-size: 20%;

      max-block-size: none;
      overflow: visible;
      padding-block-start: 0;
    }
  }

  /* The brand's glow, under everything the visual holds. */
  .home-hero__visual::before {
    background: radial-gradient(closest-side, oklch(from var(--color-brand) l c h / 55%), transparent);
    content: "";
    inset: 10% 0 -10%;
    pointer-events: none;
    position: absolute;
    z-index: -1;
  }

  /* The browser window: a bar with three dots and the address, then the
     app's screen. Not drawn on a phone, where it would be too small to read. */
  .home-browser {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lifted);
    display: none;
    inline-size: 88%;
    overflow: hidden;

    @media (width >= 768px) {
      display: block;
    }
  }

  .home-browser__bar {
    align-items: center;
    background: var(--color-surface-tint);
    border-block-end: 1px solid var(--color-border-subtle);
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0.625rem 1rem;
  }

  /* Three dots out of one: the element's own and two shadows beside it. */
  .home-browser__dots {
    background: var(--color-border-strong);
    block-size: 0.625rem;
    border-radius: var(--radius-pill);
    box-shadow: 1rem 0 var(--color-border-strong), 2rem 0 var(--color-border-strong);
    inline-size: 0.625rem;
    margin-inline-end: 2rem;
  }

  .home-browser__address {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-ink-secondary);
    font-size: 0.75rem;
    padding: 0.125rem 0.75rem;
  }

  .home-browser__screen {
    block-size: auto;
    display: block;
    inline-size: 100%;
  }

  /* The phone: the screen in a dark bezel. On a wide display it stands at the
     window's trailing corner, its foot below the window's. */
  .home-hero__phone {
    background: var(--color-surface-inverted);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-lifted);
    inline-size: var(--hero-phone-inline-size);
    padding: 0.5rem;

    @media (width >= 768px) {
      inset-block-end: -2.5rem;
      inset-inline-end: 0;
      position: absolute;
    }
  }

  .home-hero__phone-screen {
    block-size: auto;
    border-radius: var(--radius-2xl);
    display: block;
    inline-size: 100%;
  }

  /* The two floating cards share one look: a white card, a round mark, two
     lines. */
  .home-hero__badge,
  .home-hero__paid {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-popover);
    color: var(--color-ink);
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem 1rem;
    position: absolute;
    text-align: start;
  }

  .home-hero__badge {
    inset-block-start: 6rem;
    inset-inline-end: max(0px, calc(50% - var(--hero-phone-inline-size) / 2 - 3rem));
    text-decoration: none;

    &:hover {
      border-color: var(--color-border-strong);
    }

    @media (width >= 768px) {
      inset-block-start: 22%;
      inset-inline: 0 auto;
    }
  }

  .home-hero__paid {
    inset-block-start: 19rem;
    inset-inline-start: max(0px, calc(50% - var(--hero-phone-inline-size) / 2 - 4rem));

    @media (width >= 768px) {
      inset-block: auto 18%;
      inset-inline-start: 2%;
    }
  }

  .home-hero__badge-icon,
  .home-hero__paid-icon {
    align-items: center;
    block-size: 2.25rem;
    border-radius: var(--radius-pill);
    display: flex;
    flex-shrink: 0;
    inline-size: 2.25rem;
    justify-content: center;
  }

  .home-hero__badge-icon {
    background: var(--color-brand-tint);
    color: var(--color-brand);
  }

  .home-hero__paid-icon {
    background: var(--color-positive-tint);
    color: var(--color-positive);
  }

  .home-hero__badge-copy,
  .home-hero__paid-invoice,
  .home-hero__paid-amount {
    display: grid;
    gap: 0.125rem;
  }

  .home-hero__badge-title {
    font-size: 0.9375rem;
  }

  .home-hero__badge-text,
  .home-hero__paid-client {
    color: var(--color-ink-muted);
    font-size: 0.8125rem;
  }

  .home-hero__paid-number {
    color: var(--color-brand);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
  }

  .home-hero__paid-amount {
    justify-items: end;
    margin-inline-start: 1rem;
  }

  .home-hero__paid-sum {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
  }

  .home-hero__paid-status {
    background: var(--color-positive-tint);
    border-radius: var(--radius-pill);
    color: var(--color-positive);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.0625rem 0.5rem;
  }

  /* ─── Trust strip ─────────────────────────── */

  /* Four plain claims on their own band, the last thing before the page
     starts explaining itself. */
  .home-trust {
    --home-bleed-background: var(--color-canvas);
    --home-trust-gap: 2rem;

    padding-block: 1.75rem;
  }

  /* The window the strip runs inside. On a phone it reaches the screen's own
     edges — the page gutter is cancelled — so a claim enters and leaves at the
     edge rather than popping out of thin air. */
  .home-trust__window {
    margin-inline: calc(-1 * var(--gutter));
    overflow: hidden;

    @media (width >= 768px) {
      margin-inline: 0;
      overflow: visible;
    }
  }

  /* The track: the set and its copy, end to end. Half of it is exactly one
     set, so the loop closes on itself — which is why the spacing between
     claims is the set's own trailing padding rather than a `gap` on the
     track, whose last gap would have no counterpart to balance. */
  .home-trust__row {
    display: flex;

    @media (width < 768px) {
      animation: home-trust-run 30s linear infinite;
      inline-size: max-content;
    }
  }

  .home-trust__set {
    display: flex;
    gap: var(--home-trust-gap);
    padding-inline-start: var(--gutter);
    padding-inline-end: calc(var(--home-trust-gap) - var(--gutter));

    /* Wide enough for all four: the copy goes, and the claims spread across
       the band as the design sets it — four equal columns left the short ones
       adrift in the middle of theirs. */
    @media (width >= 768px) {
      flex: 1 1 auto;
      flex-wrap: wrap;
      gap: 0.875rem var(--home-trust-gap);
      justify-content: space-between;
      padding-inline: 0;
    }
  }

  @media (width >= 768px) {
    .home-trust__set + .home-trust__set {
      display: none;
    }
  }

  @keyframes home-trust-run {
    to {
      transform: translateX(-50%);
    }
  }

  /* With motion turned down the reset stops the strip where it stands, so the
     rest of it has to be reachable by thumb instead. */
  @media (prefers-reduced-motion: reduce) and (width < 768px) {
    .home-trust__window {
      overflow-x: auto;
      scrollbar-width: none;
    }

    .home-trust__window::-webkit-scrollbar {
      display: none;
    }
  }

  .home-trust__item {
    align-items: center;
    display: flex;
    font-size: 0.8125rem;
    font-weight: 700;
    gap: 0.5rem;
    margin: 0;

    /* Between the phone and the desktop the four claims take two lines: left
       to their own widths they broke three and one. */
    @media (480px <= width < 1024px) {
      flex-basis: calc(50% - 1rem);
    }

    /* On the strip a claim is one unbroken line, as wide as its own words. */
    @media (width < 768px) {
      flex-basis: auto;
      white-space: nowrap;
    }
  }

  .home-trust__check {
    color: var(--color-brand);
    flex-shrink: 0;
  }

  /* ─── Shared section headings ─────────────── */

  .home-section {
    padding-block: 4.5rem;
    scroll-margin-block-start: var(--home-header-block-size);

    @media (width >= 768px) {
      padding-block: 6rem;
    }
  }

  .home-bleed {
    scroll-margin-block-start: var(--home-header-block-size);
  }

  .home-section__eyebrow {
    color: var(--color-brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 0.75rem;
    text-align: center;
    text-transform: uppercase;
  }

  .home-section__title {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 auto;
    max-inline-size: 30rem;
    text-align: center;
    text-wrap: balance;
  }

  /* Two sentences across two lines, balanced — at the shared width the second
     sentence wrapped onto a third. */
  .home-section__title--wide {
    max-inline-size: 36rem;
  }

  .home-section__subtitle {
    color: var(--color-ink-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 1.25rem auto 0;
    max-inline-size: 42rem;
    text-align: center;
  }

  /* ─── Who it is for ───────────────────────── */

  .home-audiences {
    padding-block: 4.5rem;

    @media (width >= 768px) {
      padding-block: 6rem;
    }
  }

  .home-audiences__cards {
    display: grid;
    gap: 1.25rem;
    margin-block-start: 3rem;

    @media (width >= 768px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  /* The photograph spans the card's head edge to edge; the words sit under
     it, and the link at the card's foot, level across the row however long
     the text above it runs. */
  .home-audience {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    overflow: hidden;
    padding: 0 0 1.5rem;
    scroll-margin-block-start: calc(var(--home-header-block-size) + 2rem);
  }

  .home-audience__photo {
    aspect-ratio: 37 / 20;
    block-size: auto;
    display: block;
    inline-size: 100%;
    margin-block-end: 1.5rem;
    object-fit: cover;
  }

  .home-audience__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.625rem;
    padding-inline: 1.5rem;
  }

  .home-audience__text {
    color: var(--color-ink-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    padding-inline: 1.5rem;
  }

  .home-audience__link {
    align-items: center;
    align-self: end;
    color: var(--color-brand);
    display: flex;
    font-size: 0.875rem;
    font-weight: 700;
    gap: 0.375rem;
    padding-inline: 1.5rem;
    text-decoration: none;
  }

  .home-audience__link:hover {
    gap: 0.625rem;
  }

  /* ─── For accountants ─────────────────────── */

  /* Two columns from the desktop width, the illustration beside the steps;
     stacked below that, illustration last. */
  .home-accountants {
    --home-bleed-background: var(--color-canvas);

    align-items: center;
    display: grid;
    gap: 3rem;

    @media (width >= 1024px) {
      gap: 4rem;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
  }

  .home-accountants__title {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    text-wrap: balance;
  }

  .home-accountants__text {
    color: var(--color-ink-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 2rem;
  }

  .home-accountants__steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
  }

  .home-accountants__step {
    display: flex;
    gap: 0.875rem;
  }

  .home-accountants__number {
    align-items: center;
    background: var(--color-brand-fill);
    block-size: 1.75rem;
    border-radius: var(--radius-pill);
    color: var(--color-ink-inverted);
    display: flex;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    inline-size: 1.75rem;
    justify-content: center;
  }

  .home-accountants__step-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
  }

  .home-accountants__step-text {
    color: var(--color-ink-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
  }

  .home-accountants__ctas {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .home-accountants__login {
    align-items: center;
    color: var(--color-ink);
    display: flex;
    font-size: 0.9375rem;
    font-weight: 600;
    gap: 0.375rem;
    text-decoration: none;
  }

  .home-accountants__login:hover {
    gap: 0.625rem;
  }

  /* On a phone the photograph follows the words; from the desktop width it
     stands first, framed in a white card. */
  .home-accountants__visual {
    background: var(--color-surface);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-glow);
    order: 1;
    padding: 1.25rem;

    @media (width >= 768px) {
      padding: 2.5rem;
    }

    @media (width >= 1024px) {
      order: 0;
    }
  }

  .home-accountants__photo {
    aspect-ratio: 1;
    block-size: auto;
    border-radius: var(--radius-xl);
    display: block;
    inline-size: 100%;
    object-fit: cover;
  }

  /* ─── Final call to action ────────────────── */

  .home-final {
    padding-block: 4.5rem;

    @media (width >= 768px) {
      padding-block: 6rem;
    }
  }

  /* One card in the brand's own gradient, a lighter glow bleeding in from
     the corner. */
  .home-final__card {
    background: linear-gradient(135deg, var(--color-brand-fill), var(--color-brand-fill-strong));
    border-radius: var(--radius-3xl);
    overflow: hidden;
    padding: 3.5rem 1.5rem;
    position: relative;
    text-align: center;

    @media (width >= 768px) {
      padding: 4.5rem 3rem;
    }
  }

  .home-final__card::after {
    background: radial-gradient(circle, oklch(from var(--color-brand-inverted) l c h / 45%), transparent 70%);
    block-size: 22rem;
    content: "";
    inline-size: 22rem;
    inset-block-end: -11rem;
    inset-inline-end: -6rem;
    pointer-events: none;
    position: absolute;
  }

  .home-final__title,
  .home-final__text,
  .home-final__cta,
  .home-final__note {
    position: relative;
    z-index: 1;
  }

  /* The one button on the brand's surface is the surface itself. */
  .home-final__cta {
    background: var(--color-surface);
    border-color: var(--color-surface);
    color: var(--color-brand);

    &:hover {
      background: var(--color-brand-tint);
    }
  }

  .home-final__title {
    color: var(--color-ink-inverted);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 auto 1rem;
    max-inline-size: 34rem;
    text-wrap: balance;
  }

  .home-final__text {
    color: oklch(from var(--color-ink-inverted) l c h / 85%);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto 2rem;
    max-inline-size: 32rem;
  }

  .home-final__note {
    color: var(--color-ink-inverted-muted);
    font-size: 0.8125rem;
    margin: 1.5rem 0 0;
  }

  /* ─── Footer ──────────────────────────────── */

  .home-footer {
    border-block-start: 1px solid var(--color-border-subtle);
    padding-block: 3rem 2rem;
  }

  .home-footer__top {
    display: grid;
    gap: 2.5rem;

    @media (width >= 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @media (width >= 1024px) {
      grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
      gap: 2rem;
    }
  }

  .home-footer__brand-text {
    color: var(--color-ink-muted);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 1rem 0 0;
    max-inline-size: 18rem;
  }

  .home-footer__column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .home-footer__title {
    color: var(--color-ink);
    font-weight: 700;
    margin: 0;
  }

  .home-footer__link {
    color: var(--color-ink-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    width: fit-content;
  }

  .home-footer__link:hover {
    color: var(--color-brand);
  }

  .home-footer__bottom {
    border-block-start: 1px solid var(--color-border-subtle);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    margin-block-start: 3rem;
    padding-block-start: 1.5rem;
  }

  .home-footer__copyright,
  .home-footer__made {
    color: var(--color-ink-muted);
    font-size: 0.8125rem;
    margin: 0;
  }

  /* ─── Waiting list ──────────────────────────
     Not on the front page any more: the sign-up puts an address on the list
     itself when registration is closed, so the band went. What is left is the
     form `WaitingListSubscriptionsController` renders in its own response
     (`home/_waiting_list`), which is why these rules stay. */

  .home-waitlist {
    --home-bleed-background: var(--color-surface-inverted);

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
    text-align: center;

    @media (width >= 768px) {
      padding: 5rem 0;
    }
  }

  .home-waitlist__title {
    color: var(--color-ink-inverted);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;

    @media (width >= 768px) {
      font-size: 2rem;
    }
  }

  .home-waitlist__text {
    color: var(--color-ink-inverted-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 auto 1.75rem;
    max-inline-size: 440px;
  }

  .home-waitlist__form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 auto 1.5rem;
    max-inline-size: 420px;

    @media (width >= 480px) {
      flex-direction: row;
    }
  }

  .home-waitlist__input {
    background: oklch(from var(--color-ink-inverted) l c h / 8%);
    border-color: oklch(from var(--color-ink-inverted) l c h / 18%);
    border-radius: var(--radius-pill);
    color: var(--color-ink-inverted);
    flex: 1;
    padding: 0.75rem 1.25rem;
  }

  .home-waitlist__input::placeholder {
    color: var(--color-ink-inverted-muted);
  }

  .home-waitlist__input:focus {
    border-color: var(--color-brand);
  }

  .home-waitlist__submit {
    flex-shrink: 0;
    font-size: 0.875rem;
    padding: 0.75rem 1.375rem;
  }

  .home-waitlist__error {
    color: var(--color-negative);
    font-size: 0.8125rem;
    margin: -0.75rem auto 1.5rem;
    max-inline-size: 420px;
  }

  .home-waitlist__thanks {
    align-items: center;
    color: var(--color-ink-inverted-muted);
    display: flex;
    font-size: 0.9375rem;
    gap: 0.625rem;
    justify-content: center;
    line-height: 1.6;
    margin: 0 auto 1.75rem;
    max-inline-size: 460px;
    text-align: start;
  }

  .home-waitlist__thanks-icon {
    align-items: center;
    background: var(--color-brand-fill);
    block-size: 1.5rem;
    border-radius: var(--radius-pill);
    color: var(--color-ink-inverted);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.8125rem;
    inline-size: 1.5rem;
    justify-content: center;
  }
}
