/* Posto's own additions to the public pages (#78): /welcome and /about. Linked after the
   template's styles/landing.css through `app.landing.stylesheets` (config/services/public_pages.yaml).
   Like landing.css, not one colour is declared here: every value is a theme token, so light and
   dark follow. Every selector carries the `pp-` prefix and the file sits in the `components`
   layer, so a utility class still wins over it. */

@layer components {
  .pp-net {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in oklab, var(--color-primary) 14%, transparent);
    color: var(--color-primary);
  }

  .pp-net-lg {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .pp-nets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
  }

  @media (max-width: 980px) {
    .pp-nets {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 520px) {
    .pp-nets {
      grid-template-columns: 1fr;
    }
  }

  .pp-nets-item {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 24px;
    border-radius: 20px;
    background: var(--color-base-100);
    box-shadow: var(--shadow-paper);
  }

  /* Icon or step number and the card's title on one row, the text below (#234, #275). */
  .pp-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .pp-card-head > :first-child {
    flex: none;
  }

  .pp-nets-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .pp-nets-text {
    color: var(--text-secondary);
    font-size: 15px;
  }

  .pp-card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in oklab, var(--color-primary) 14%, transparent);
    color: var(--color-primary);
  }

  .pp-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  @media (max-width: 760px) {
    .pp-two {
      grid-template-columns: 1fr;
      gap: 32px;
    }
  }

  .pp-h3 {
    margin-bottom: 20px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }

  .pp-list-no {
    background: color-mix(in oklab, var(--color-base-content) 8%, transparent);
  }

  .pp-list-no::after {
    content: "×";
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    transform: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
  }

  .pp-access {
    display: grid;
    gap: 12px;
    margin-top: 40px;
  }

  .pp-access-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 16px 24px;
    align-items: start;
    padding: 20px 24px;
    border-radius: 20px;
    background: var(--color-base-100);
    box-shadow: var(--shadow-paper);
  }

  @media (max-width: 860px) {
    .pp-access-row {
      grid-template-columns: 1fr;
    }
  }

  .pp-access-net {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .pp-access-name {
    font-size: 18px;
    font-weight: 800;
  }

  .pp-access-grants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pp-code {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--color-base-200);
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .pp-access-why {
    color: var(--text-secondary);
    font-size: 15px;
  }

  .pp-access-foot {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 15px;
  }

  .pp-contact {
    display: grid;
    gap: 24px;
    justify-items: start;
  }

  .pp-mail {
    gap: 10px;
    padding-inline: 20px;
    background: var(--color-base-100);
    box-shadow: var(--shadow-paper);
    font-weight: 700;
  }

  .pp-mail::after {
    content: none;
  }

  /* /about/compare (#488, docs/mockups/compare.html): the comparison tables, the score cards and the verdict cards. */
  .pp-sec-h {
    max-width: 760px;
    margin-bottom: 28px;
  }

  .pp-vh {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }

  .pp-logo {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: contain;
  }

  .pp-logo-buffer {
    color: var(--color-base-content);
  }

  .pp-logo-socialbee path:first-child {
    fill: var(--color-base-content);
  }

  .pp-logo-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-base-content);
    color: var(--color-base-100);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  /* Score cards */
  .pp-score {
    padding-bottom: clamp(40px, 6vw, 64px);
  }

  .pp-score-grid,
  .pp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  @media (max-width: 860px) {
    .pp-score-grid,
    .pp-cards {
      grid-template-columns: 1fr;
    }
  }

  .pp-sc {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 22px 24px;
    border-radius: 24px;
    background: var(--color-base-100);
    box-shadow: var(--shadow-paper);
    text-decoration: none;
  }

  .pp-sc h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    letter-spacing: -0.01em;
  }

  .pp-sc-icon,
  .pp-vcard-icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
  }

  .pp-sc p {
    color: var(--text-muted);
    font-size: 14px;
  }

  .pp-bars {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pp-bar {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
  }

  .pp-bar .pp-logo {
    width: 14px;
    height: 14px;
    border-radius: 4px;
  }

  .pp-bar i {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: var(--color-base-300);
    overflow: hidden;
  }

  .pp-bar i::before {
    content: "";
    display: block;
    width: var(--v);
    height: 100%;
    border-radius: 999px;
    background: var(--text-muted);
  }

  .pp-bar b {
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

  .pp-bar-us {
    color: var(--color-base-content);
    font-weight: 700;
  }

  .pp-bar-us i::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-brand-gradient-end));
  }

  /* Legend and footnote */
  .pp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 14px;
  }

  .pp-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .pp-legend .pp-mk {
    width: 30px;
    height: 28px;
  }

  .pp-legend .pp-bg-request {
    right: -16px;
    left: auto;
  }

  .pp-footnote {
    max-width: 72ch;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 13px;
  }

  /* Tables */
  /* `position` makes the wrapper the containing block of the absolutely placed screen-reader text in the cells. */
  .pp-tbl-wrap {
    position: relative;
    overflow: auto;
    border-radius: 24px;
    background: var(--color-base-100);
    box-shadow: var(--shadow-paper);
    scrollbar-width: thin;
  }

  /* A landing card on an alt section shares its background and reads as bare text (#554). */
  .lp-sec-alt .lp-card {
    background: var(--color-base-200);
  }

  .lp-sec-alt .pp-tbl-wrap {
    background: var(--color-base-200);
    box-shadow: none;
  }

  /* The jump links and score cards target the table; the margin keeps it below the sticky header and tab bar (#665). */
  .pp-cmp {
    scroll-margin-top: calc(132px + env(safe-area-inset-top, 0px));
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
  }

  .pp-cmp th,
  .pp-cmp td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--color-base-300);
    vertical-align: middle;
  }

  .pp-cmp thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-block: 16px;
    background: var(--color-base-100);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }

  .lp-sec-alt .pp-cmp thead th {
    background: var(--color-base-200);
  }

  .pp-cmp thead th.pp-feat {
    text-align: left;
  }

  .pp-cmp thead th.pp-us {
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 800;
  }

  .pp-cmp tbody th[scope="row"] {
    min-width: 260px;
    max-width: 440px;
    color: var(--color-base-content);
    font-weight: 500;
    text-align: left;
  }

  .pp-cmp tr.pp-grp th {
    padding: 12px;
    background: var(--color-base-200);
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
  }

  .lp-sec-alt .pp-cmp tr.pp-grp th {
    background: var(--color-base-300);
  }

  .pp-cmp tbody td {
    width: 88px;
    text-align: center;
  }

  .pp-cmp tbody td:nth-child(2),
  .pp-cmp tfoot td:nth-child(2) {
    background: color-mix(in oklab, var(--color-primary) 7%, transparent);
  }

  .pp-cmp td:last-child {
    padding-right: 22px;
  }

  .pp-mk {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 34px;
    height: 30px;
    border-radius: 9px;
    font-size: 18px;
  }

  .pp-mk-icon {
    width: 1em;
    height: 1em;
  }

  .pp-c-y .pp-mk {
    background: color-mix(in oklab, var(--color-success) 13%, transparent);
    color: var(--color-success);
  }

  .pp-c-p .pp-mk {
    background: color-mix(in oklab, var(--color-warning) 15%, transparent);
    color: var(--color-warning);
  }

  .pp-c-n .pp-mk,
  .pp-c-nd .pp-mk {
    color: var(--text-muted);
  }

  .pp-nd {
    font-size: 15px;
  }

  .pp-bg {
    position: absolute;
    top: -7px;
    right: -9px;
    padding: 3px 4px;
    border-radius: 6px;
    background: var(--color-base-content);
    color: var(--color-base-100);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
  }

  .pp-bg-paid {
    background: var(--color-warning);
    color: var(--color-warning-content);
  }

  .pp-bg-request {
    right: auto;
    left: -14px;
    background: var(--color-primary);
    color: var(--color-primary-content);
  }

  .pp-bg-note {
    background: var(--color-base-300);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-style: italic;
  }

  .pp-cmp tfoot th,
  .pp-cmp tfoot td {
    padding-block: 16px;
    border-top: 2px solid var(--color-base-300);
    border-bottom: 0;
  }

  .pp-cmp tfoot th {
    font-weight: 700;
    text-align: left;
  }

  .pp-cmp tfoot th small,
  .pp-cmp tbody th small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
  }

  .pp-pct {
    text-align: center;
  }

  .pp-pct b {
    display: block;
    color: var(--text-secondary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .pp-pct:nth-child(2) b {
    color: var(--color-primary);
    font-size: 26px;
  }

  .pp-pct small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
  }

  /* On a phone only the Feature column stays put while the rest scrolls (#554): with Posto pinned
     too, the two took most of a 390px screen and the other columns showed as a cut-off sliver. */
  @media (max-width: 760px) {
    .pp-cmp {
      min-width: 0;
    }

    .pp-cmp th,
    .pp-cmp td {
      padding-inline: 8px;
    }

    .pp-cmp tbody th[scope="row"],
    .pp-cmp tfoot th,
    .pp-cmp thead th.pp-feat {
      position: sticky;
      left: 0;
      z-index: 3;
      box-sizing: border-box;
      width: 148px;
      min-width: 148px;
      max-width: 148px;
      background: var(--color-base-100);
      box-shadow: 1px 0 0 var(--color-base-300);
      font-size: 13px;
    }

    .lp-sec-alt .pp-cmp tbody th[scope="row"],
    .lp-sec-alt .pp-cmp tfoot th,
    .lp-sec-alt .pp-cmp thead th.pp-feat {
      background: var(--color-base-200);
    }

    .pp-cmp tr.pp-grp th {
      position: static;
    }

    .pp-cmp tr.pp-grp th span {
      position: sticky;
      left: 12px;
      display: inline-block;
    }
  }

  /* Verdict cards */
  .pp-vcard {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 24px;
    border-radius: 22px;
    background: var(--color-base-200);
  }

  .pp-vcard h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    letter-spacing: -0.015em;
  }

  .pp-vcard p {
    color: var(--text-secondary);
    font-size: 15px;
  }

  .pp-vcard ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 15px;
  }

  .pp-vcard li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: start;
  }

  .pp-li-icon {
    width: 14px;
    height: 14px;
    margin-top: 4px;
  }

  .pp-vcard-only .pp-li-icon {
    color: var(--color-success);
  }

  .pp-vcard-gap .pp-li-icon {
    color: var(--text-muted);
  }

  .pp-vcard-src .pp-li-icon {
    color: var(--color-info);
  }

  /* Audience pages on /for/{segment} (#602, #607): templates/landing/app/for/. A narrow reading
     column on the landing's tokens; every section after the first has a hairline above it. */
  .pp-seg-w {
    max-width: 1080px;
    margin-inline: auto;
  }

  .pp-seg-hero {
    padding-block: clamp(32px, 6vw, 72px) clamp(32px, 5vw, 56px);
  }

  .pp-seg-hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
  }

  .pp-seg-title {
    margin-top: 14px;
    font-size: clamp(2.2rem, 5.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .pp-seg-lead {
    max-width: 36ch;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: clamp(18px, 2vw, 20px);
  }

  .pp-seg-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
  }

  .pp-seg-cta .lp-btn {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .pp-seg-phone {
    justify-self: center;
    width: 100%;
    max-width: 340px;
    margin: 0;
  }

  .pp-seg-phone img {
    width: 100%;
    height: auto;
    border: 8px solid var(--color-base-content);
    border-radius: 28px;
    box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--color-primary) 60%, transparent);
  }

  /* A screenshot in both themes: the light copy is shown unless the theme is dark, in either of the
     two ways the theme becomes dark (see app.css, the passkey provider icons). */
  .pp-th-light {
    display: block;
  }

  .pp-th-dark {
    display: none;
  }

  [data-theme="dark"] .pp-th-light {
    display: none;
  }

  [data-theme="dark"] .pp-th-dark {
    display: block;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .pp-th-light {
      display: none;
    }

    :root:not([data-theme]) .pp-th-dark {
      display: block;
    }
  }

  .pp-seg-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: clamp(32px, 5vw, 48px);
  }

  .pp-seg-strip-label {
    margin-inline-end: 6px;
    color: var(--text-muted);
    font: 500 13px/1 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .pp-seg-strip-list {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pp-seg-net {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--color-base-100);
    box-shadow: inset 0 0 0 1px var(--lp-line);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
  }

  .pp-seg-sec {
    padding-block: clamp(48px, 7vw, 80px);
    border-top: 1px solid var(--lp-line);
  }

  .pp-seg-head {
    display: grid;
    gap: 12px;
    max-width: 640px;
    margin-bottom: 32px;
  }

  .pp-seg-head-flush {
    margin-bottom: 0;
  }

  .pp-seg-h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .pp-seg-h3 {
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .pp-seg-muted {
    color: var(--text-secondary);
  }

  /* Icon, then the item's lines in the second column. */
  .pp-seg-pains,
  .pp-seg-features {
    display: grid;
    gap: 28px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pp-seg-pains {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .pp-seg-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-seg-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 6px;
    align-items: start;
    align-content: start;
  }

  .pp-seg-item > .pp-card-icon {
    grid-row: 1 / span 3;
  }

  .pp-seg-item > :not(.pp-card-icon) {
    grid-column: 2;
  }

  .pp-seg-was {
    color: var(--text-muted);
    font: 400 13.5px/1.4 var(--font-mono);
    text-decoration: line-through;
  }

  .pp-seg-week {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--color-base-100);
    box-shadow: var(--shadow-paper);
    list-style: none;
  }

  .pp-seg-day {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 20px;
    border-inline-end: 1px solid var(--lp-line);
  }

  .pp-seg-day:last-child {
    border-inline-end: 0;
  }

  .pp-seg-when {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font: 500 12.5px/1.2 var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .pp-seg-shot {
    margin: 0 0 28px;
  }

  .pp-seg-shot img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow:
      inset 0 0 0 1px var(--lp-line),
      0 24px 50px -32px color-mix(in oklab, var(--color-primary) 50%, transparent);
  }

  .pp-seg-shot figcaption {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 15px;
  }

  .pp-seg-report {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
  }

  .pp-seg-sheet {
    padding: 22px;
    border-radius: 18px;
    background: var(--color-base-100);
    box-shadow: var(--shadow-paper);
    font-variant-numeric: tabular-nums;
  }

  .pp-seg-sheet-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
  }

  .pp-seg-meta {
    color: var(--text-muted);
    font: 400 12.5px/1.3 var(--font-mono);
  }

  .pp-seg-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }

  .pp-seg-kpi-v {
    font: 700 1.4rem/1.1 var(--font-sans);
  }

  .pp-seg-kpi-l {
    color: var(--text-muted);
    font: 400 12.5px/1.3 var(--font-mono);
  }

  .pp-seg-chart {
    margin-top: 18px;
  }

  .pp-seg-chart-t {
    margin-bottom: 8px;
    color: var(--text-muted);
    font: 500 12px/1.2 var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .pp-seg-chart svg {
    display: block;
    width: 100%;
    height: auto;
  }

  .pp-seg-chart text {
    fill: var(--text-muted);
    font: 400 10px var(--font-mono);
  }

  .pp-seg-chart .pp-seg-val {
    fill: var(--color-base-content);
    font-weight: 500;
  }

  .pp-seg-grid {
    stroke: var(--lp-line);
  }

  .pp-seg-grid-dash {
    stroke-dasharray: 3 3;
  }

  .pp-seg-bar {
    fill: color-mix(in oklab, var(--color-primary) 55%, transparent);
  }

  .pp-seg-bar-peak {
    fill: var(--color-primary);
  }

  .pp-seg-hb {
    display: grid;
    grid-template-columns: minmax(64px, 84px) minmax(0, 1fr) minmax(36px, auto);
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    font-size: 13.5px;
  }

  .pp-seg-track {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 5px;
    background: color-mix(in oklab, var(--color-base-content) 8%, transparent);
  }

  .pp-seg-fill {
    display: block;
    width: var(--pp-v);
    height: 100%;
    border-radius: 5px;
    background: var(--color-primary);
  }

  .pp-seg-hb-v {
    font: 500 13px/1 var(--font-mono);
    text-align: end;
  }

  .pp-seg-summary {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: color-mix(in oklab, var(--color-primary) 12%, transparent);
    font-size: 15px;
  }

  .pp-seg-sheet-foot {
    margin-top: 14px;
  }

  /* The by-request part of a card (#602 LD-11): the badge on its own line over the sentence. */
  .pp-seg-ai {
    display: grid;
    gap: 6px;
    justify-items: start;
  }

  .pp-seg-lead + .pp-seg-ai {
    margin-top: 16px;
  }

  .pp-seg-hero-shot {
    justify-self: center;
    width: 100%;
    max-width: 520px;
    margin: 0;
  }

  .pp-seg-hero-shot img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow:
      inset 0 0 0 1px var(--lp-line),
      0 30px 60px -30px color-mix(in oklab, var(--color-primary) 60%, transparent);
  }

  .pp-seg-line {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2.5;
  }

  .pp-seg-line-dim {
    stroke-dasharray: 5 4;
    stroke-width: 2;
    opacity: 0.6;
  }

  .pp-seg-dot {
    fill: var(--color-primary);
  }

  .pp-seg-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
  }

  .pp-seg-swatch {
    display: inline-block;
    width: 18px;
    height: 0;
    margin-inline-end: 6px;
    border-top: 2px solid var(--color-primary);
    vertical-align: middle;
  }

  .pp-seg-swatch-dim {
    border-top-style: dashed;
    opacity: 0.6;
  }

  .pp-seg-vs-wrap {
    overflow-x: auto;
  }

  .pp-seg-vs {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: var(--color-base-100);
    font-size: 15px;
  }

  .pp-seg-vs th,
  .pp-seg-vs td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--lp-line);
    text-align: start;
    vertical-align: top;
  }

  .pp-seg-vs thead th {
    color: var(--text-muted);
    font: 500 12px/1.2 var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .pp-seg-vs tbody th {
    font-weight: 500;
  }

  .pp-seg-vs tbody tr:last-child > * {
    border-bottom: 0;
  }

  .pp-seg-vs-yes {
    color: var(--color-success);
    font-weight: 600;
  }

  .pp-seg-vs-no {
    color: var(--text-muted);
  }

  .pp-seg-faq {
    margin-inline: 0;
    margin-top: 0;
  }

  /* The sample request in the hero of /for/indie (#620): a code block on the theme's tokens. */
  .pp-seg-code {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--color-base-100);
    box-shadow:
      inset 0 0 0 1px var(--lp-line),
      0 30px 60px -30px color-mix(in oklab, var(--color-primary) 60%, transparent);
  }

  .pp-seg-code-bar {
    padding: 10px 16px;
    border-bottom: 1px solid var(--lp-line);
    color: var(--text-muted);
    font: 500 12.5px/1.2 var(--font-mono);
  }

  .pp-seg-code-body {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font: 400 13px/1.6 var(--font-mono);
    tab-size: 2;
  }

  .pp-code-c {
    color: var(--text-muted);
  }

  .pp-code-k {
    color: var(--color-primary);
  }

  /* The /welcome block `for-whom` (#602 LD-8, layout B): two wide cards over three, six columns of a row;
     tablet: the first two take the whole row, the rest go two by two; phone: one column. */
  .pp-forwhom {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
  }

  .pp-forwhom > li {
    display: flex;
    grid-column: span 2;
  }

  .pp-forwhom > li:nth-child(-n + 2) {
    grid-column: span 3;
  }

  .pp-forwhom-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 24px;
    border-radius: 24px;
    background: var(--color-base-100);
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s;
  }

  .pp-forwhom-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-paper);
  }

  .pp-forwhom-card:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
  }

  .pp-forwhom-card .lp-card-title {
    line-height: 1.2;
  }

  .pp-forwhom-text {
    color: var(--text-secondary);
    font-size: 15px;
  }

  .pp-forwhom-more {
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 600;
  }

  @media (prefers-reduced-motion: reduce) {
    .pp-forwhom-card {
      transition: none;
    }

    .pp-forwhom-card:hover {
      transform: none;
    }
  }

  .pp-about-for {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 40px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
  }

  .pp-about-for-text {
    color: var(--text-secondary);
  }

  @media (max-width: 980px) {
    .pp-forwhom > li,
    .pp-forwhom > li:nth-child(-n + 2) {
      grid-column: span 3;
    }

    .pp-forwhom > li:nth-child(-n + 2) {
      grid-column: span 6;
    }
  }

  @media (max-width: 860px) {
    .pp-about-for {
      grid-template-columns: minmax(0, 1fr);
    }

    .pp-seg-hero-row,
    .pp-seg-report {
      grid-template-columns: minmax(0, 1fr);
    }

    .pp-seg-pains,
    .pp-seg-features {
      grid-template-columns: minmax(0, 1fr);
    }

    .pp-seg-week {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-seg-day:nth-child(2n) {
      border-inline-end: 0;
    }

    .pp-seg-day:nth-child(-n + 2) {
      border-block-end: 1px solid var(--lp-line);
    }
  }

  @media (max-width: 620px) {
    .pp-forwhom > li,
    .pp-forwhom > li:nth-child(-n + 2) {
      grid-column: span 6;
    }
  }

  @media (max-width: 640px) {
    .pp-seg-strip-label {
      flex-basis: 100%;
    }
  }

  @media (max-width: 480px) {
    .pp-seg-week {
      grid-template-columns: 1fr;
    }

    .pp-seg-day {
      border-inline-end: 0;
    }

    .pp-seg-day:not(:last-child) {
      border-block-end: 1px solid var(--lp-line);
    }

    .pp-seg-sheet {
      padding: 16px;
    }
  }

  /* The network pages on /networks and /networks/{network} (#904): templates/landing/app/network/. They reuse the audience pages'
     layout (pp-seg-*) and the landing's cards (pp-nets-item, pp-card-head); what is new is the breadcrumb, the network badge,
     the grouped feature list, the passport and the tags of the hub's cards. */
  .pp-net-crumbs {
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
  }

  .pp-net-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pp-net-crumbs li:not(:last-child)::after {
    content: "›";
    margin-inline-start: 8px;
  }

  .pp-net-crumbs a:hover {
    color: var(--color-primary);
  }

  .pp-net-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 14px/1 var(--font-mono);
    letter-spacing: 0.04em;
  }

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

  .pp-net-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 48px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pp-net-group > .pp-card-head {
    margin-bottom: 14px;
  }

  .pp-net-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pp-net-list > li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .pp-net-list > li > :first-child {
    margin-top: 3px;
    color: var(--color-primary);
  }

  .pp-net-sub {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
  }

  .pp-net-passport {
    display: grid;
    margin: 0;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: var(--color-base-100);
  }

  .pp-net-passport > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 4px 24px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--lp-line);
  }

  .pp-net-passport > div:last-child {
    border-bottom: 0;
  }

  .pp-net-passport dt {
    color: var(--text-secondary);
  }

  .pp-net-passport dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .pp-net-passport dd small {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
  }

  .pp-seg-net a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
  }

  .pp-seg-net a:hover {
    color: var(--color-primary);
  }

  .pp-net-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pp-net-tags li {
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--color-primary) 10%, transparent);
    color: var(--text-secondary);
    font-size: 13px;
  }

  .pp-net-more {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
  }

  .pp-net-more:hover {
    text-decoration: underline;
  }

  @media (max-width: 860px) {
    .pp-net-cards,
    .pp-net-groups {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-width: 560px) {
    .pp-net-passport > div {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}
