/* SpriteRelay static site styles. See ../README.md for ownership and editing guidance. */
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 50px;
      border: 2px solid var(--line);
      border-radius: var(--radius);
      padding: 0 18px;
      background: var(--paper-2);
      color: var(--ink);
      font-family: "Space Mono", monospace;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
    }

    .button:hover {
      transform: translate(2px, 2px);
      box-shadow: 2px 2px 0 var(--ink);
    }

    .button.primary {
      background: var(--ink);
      color: var(--paper-2);
    }

    .button.primary:hover {
      background: var(--blue);
    }

    .button.small {
      min-height: 44px;
      padding-inline: 12px;
      font-size: 0.68rem;
      box-shadow: none;
    }

    .support-line {
      margin: 0;
      color: var(--muted);
      font-family: "Space Mono", monospace;
      font-size: 0.84rem;
    }

    .card {
      border: 2px solid currentColor;
      border-radius: var(--radius);
      padding: clamp(20px, 2.4vw, 30px);
      background: var(--paper-2);
      color: var(--ink);
      min-height: 100%;
    }

    .dark .card {
      background: var(--ink);
      color: var(--paper-2);
    }

    .card.shadow {
      box-shadow: var(--shadow-sm);
    }

    .card h3 {
      margin-bottom: 12px;
      font-size: clamp(1.25rem, 2vw, 1.75rem);
      font-weight: 900;
      letter-spacing: -0.035em;
      line-height: 1;
      text-transform: uppercase;
    }

    .card p {
      margin-bottom: 16px;
      color: var(--muted);
      line-height: 1.5;
    }

    .dark .card p,
    .dark .card li {
      color: rgba(255, 255, 255, 0.72);
    }

    .icon-line {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 22px;
      font-family: "Space Mono", monospace;
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .icon-line .material-symbols-outlined {
      font-size: 2rem;
    }

    .number {
      display: inline-grid;
      place-items: center;
      width: 38px;
      height: 38px;
      margin-bottom: 20px;
      border: 2px solid currentColor;
      border-radius: 999px;
      font-family: "Space Mono", monospace;
      font-size: 0.82rem;
      font-weight: 700;
    }

    .tool-table {
      width: 100%;
      border-collapse: collapse;
      border: 2px solid var(--line);
      background: var(--paper-2);
    }

    .tool-table th,
    .tool-table td {
      border: 2px solid var(--line);
      padding: 14px 16px;
      vertical-align: top;
      text-align: left;
    }

    .tool-table th {
      background: var(--ink);
      color: var(--paper-2);
      font-family: "Space Mono", monospace;
      font-size: 0.72rem;
      text-transform: uppercase;
    }

    .tool-table td:first-child {
      font-family: "Space Mono", monospace;
      font-size: 0.88rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .tool-table td {
      color: #202020;
      line-height: 1.45;
    }

    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      border: 2px solid var(--line);
      background: var(--paper-2);
    }

    .comparison-table th,
    .comparison-table td {
      border: 2px solid var(--line);
      padding: 14px;
      text-align: left;
      vertical-align: top;
    }

    .comparison-table th {
      background: var(--ink);
      color: var(--paper-2);
      font-family: "Space Mono", monospace;
      font-size: 0.72rem;
      text-transform: uppercase;
    }

    .comparison-table td:first-child {
      font-family: "Space Mono", monospace;
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .legal a {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .value-flag {
      display: inline-flex;
      align-self: flex-start;
      border: 2px solid currentColor;
      border-radius: 999px;
      padding: 6px 10px;
      font-family: "Space Mono", monospace;
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .media-shell {
      position: relative;
      margin: 0;
      border: 2px solid currentColor;
      border-radius: var(--radius);
      background: var(--paper-2);
      color: var(--ink);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }

    /* The 16:9 box belongs to the frame, not to the media. Putting the ratio on
       the image and then `object-fit: cover` silently centre-cropped anything that
       was not exactly 16:9 — a poster, a capture at another ratio, a still. The
       frame holds the shape; the media fits inside it and is never cut. Use
       `.media-shell.is-fill` to opt a genuinely 16:9 asset back into bleeding. */
    .media-frame {
      position: relative;
      aspect-ratio: 16 / 9;
      overflow: hidden;
    }

    .media-shell img,
    .media-shell video {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      /* Transparent, so the letterbox is whatever ground the frame already sits
         on — paper on a light section, ink on a dark one. The old value referenced
         --surface-muted, which is defined nowhere, so a stray #f8fafc always won. */
      background: transparent;
    }

    .media-shell.is-fill img,
    .media-shell.is-fill video { object-fit: cover; }

    .media-shell figcaption {
      border-top: 2px solid currentColor;
      padding: 14px 16px;
      font-family: "Space Mono", monospace;
      font-size: 0.72rem;
      font-weight: 700;
      line-height: 1.45;
      text-transform: uppercase;
    }

    /* On a dark section the shell used to hard-reset to white paper with a black
       border, so a black card contained a white box containing black artwork.
       Invert the frame instead, and let the badge invert with it. */
    section.dark .media-shell {
      background: #10161a;
      color: var(--paper-2);
      border-color: var(--paper-2);
    }

    section.dark .media-shell figcaption { border-top-color: rgba(255, 255, 255, .3); }

    section.dark .media-badge {
      background: var(--ink);
      color: var(--paper-2);
      border-color: var(--paper-2);
      box-shadow: none;
    }

    .media-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 2;
      max-width: calc(100% - 24px);
      box-shadow: 0 1px 0 rgba(5, 5, 5, .25);
      border: 2px solid var(--ink);
      border-radius: 999px;
      padding: 6px 10px;
      background: var(--paper-2);
      color: var(--ink);
      font-family: "Space Mono", monospace;
      font-size: 0.62rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .faq-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(12px, 2vw, 22px);
      align-items: start;
    }

    .faq-column {
      display: grid;
      gap: 12px;
      align-content: start;
    }

    .faq-list details {
      border: 2px solid var(--line);
      border-radius: var(--radius);
      background: var(--paper-2);
      box-shadow: var(--shadow-sm);
    }

    .faq-list summary {
      cursor: pointer;
      min-height: 60px;
      padding: 16px 52px 16px 18px;
      font-size: 1.05rem;
      font-weight: 900;
      line-height: 1.25;
      text-transform: uppercase;
    }

    .faq-list details p {
      margin: 0;
      border-top: 2px solid var(--line);
      padding: 18px;
      color: var(--muted);
      line-height: 1.55;
    }

    @media (max-width: 720px) {

      .tool-table,
      .comparison-table {
        display: block;
        border: 0;
        background: transparent;
      }

      .tool-table thead,
      .comparison-table thead {
        position: absolute;
        left: 0;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
      }

      .tool-table tbody,
      .tool-table tr,
      .tool-table td,
      .comparison-table tbody,
      .comparison-table tr,
      .comparison-table td {
        display: block;
        width: 100%;
      }

      .tool-table tr,
      .comparison-table tr {
        margin-bottom: 12px;
        border: 2px solid var(--line);
        border-radius: var(--radius);
        background: var(--paper-2);
        overflow: hidden;
      }

      .tool-table td,
      .comparison-table td {
        display: grid;
        grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr);
        gap: 12px;
        border: 0;
        border-bottom: 1px solid var(--soft-line);
        padding: 12px;
        white-space: normal;
      }

      .tool-table td:last-child,
      .comparison-table td:last-child {
        border-bottom: 0;
      }

      .tool-table td::before,
      .comparison-table td::before {
        content: attr(data-label);
        font-family: "Space Mono", monospace;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
      }

      .faq-list {
        grid-template-columns: 1fr;
      }

      .faq-column {
        gap: 8px;
      }

      .faq-list summary {
        min-height: 56px;
        padding: 14px 42px 14px 14px;
        font-size: 0.95rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {

      .button {
        transition: none;
      }
    }
