.mobile-introduction, .mobile-outro { display: none; }

@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  .layout-bold .page { padding: 18px 22px max(18px, env(safe-area-inset-bottom)); }
  .layout-bold header { margin-bottom: 24px; }
  .layout-bold .brand { font-size: 21px; }
  .layout-bold .brand img { width: 32px; height: 32px; }
  .layout-bold main { gap: 24px; }
  .desktop-introduction { display: none; }
  .mobile-introduction, .mobile-outro { display: block; }
  .layout-bold .mobile-introduction h1 {
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 1.08;
    margin: 0;
    letter-spacing: -.04em;
  }
  .mobile-introduction p { margin: 10px 0 0; font-size: 16px; line-height: 1.4; }
  .mobile-introduction .download-app { margin-top: 18px; min-height: 48px; padding: 10px 20px; }
  .mobile-outro { text-align: center; }
  .mobile-outro .download-app { margin-top: 0; min-height: 48px; padding: 10px 20px; }
  .mobile-limit { margin: 0; font-size: 14px; line-height: 1.4; color: #646974; }
  .layout-bold .product-demo { width: min(100% - 36px, 300px); }
  .layout-bold .demo-controls { width: calc(100% + 36px); margin-left: -18px; margin-top: 14px; }
  .layout-bold footer { margin-top: 20px; }

  /* A: preserve a little personality, replacing the three paragraphs with one line. */
  .mobile-short .mobile-introduction { text-align: center; }
  .mobile-short .mobile-outro { margin-top: -8px; }

  /* B: the product owns the first screen; download stays within thumb's reach. */
  .mobile-demo .page { padding-bottom: calc(146px + env(safe-area-inset-bottom)); }
  .mobile-demo header { justify-content: center; margin-bottom: 20px; }
  .mobile-demo .mobile-introduction { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-demo .product-demo { width: min(100% - 36px, 300px, max(160px, calc((100svh - 296px - env(safe-area-inset-bottom)) * 720 / 1500))); }
  .mobile-demo .mobile-outro { height: 0; }
  .mobile-demo main { gap: 0; }
  .mobile-demo footer { margin-top: 10px; }
  .mobile-dock {
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 22px max(12px, env(safe-area-inset-bottom));
    background: #fffffff5;
    border-top: 1px solid #eef0f4;
    box-shadow: 0 -8px 28px #18202d08;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .mobile-dock > p:first-child { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
  .mobile-dock .download-app { width: min(100%, 330px); }
  .mobile-dock .mobile-limit { margin-top: 8px; }

  /* C: lead with the idea and offer the full note only when requested. */
  .mobile-details .mobile-introduction { text-align: center; }
  .mobile-details .product-demo { width: min(100% - 36px, 280px); }
  .mobile-about { text-align: left; margin: 16px auto 0; max-width: 350px; }
  .mobile-about summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #646974;
  }
  .mobile-about summary::-webkit-details-marker { display: none; }
  .mobile-about summary::after { content: '+'; font-size: 20px; font-weight: 400; }
  .mobile-about[open] summary::after { content: '−'; }
  .mobile-about summary:focus-visible { outline: 2px solid #244bcc; outline-offset: 3px; border-radius: 8px; }
  .mobile-about-copy { padding: 12px 0 0; font-size: 16px; line-height: 1.55; }
  .mobile-about-copy p { margin: 0 0 14px; }
  .mobile-about-copy strong { color: #244bcc; }
}

/* Three disclosure treatments, sharing the exact headline and full note. */
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  .mobile-inline .mobile-about {
    overflow: hidden;
    border: 1px solid #e9ebf0;
    border-radius: 20px;
    background: #f8f9fb;
  }
  .mobile-inline .mobile-about summary { justify-content: space-between; padding: 14px 18px; color: #292821; }
  .mobile-inline .mobile-about[open] summary { padding-bottom: 6px; }
  .mobile-inline .mobile-about-copy { padding: 12px 18px 8px; }

  .about-dialog {
    color: #292821;
    font-family: var(--font-rounded);
    border: 0;
    padding: 0;
    background: #fff;
    text-align: left;
    box-shadow: 0 -12px 60px #18202d24;
    overscroll-behavior: contain;
  }
  .about-dialog:not([open]) { display: none; }
  .about-dialog[open] { display: flex; flex-direction: column; }
  .about-dialog::backdrop { background: #17203460; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .about-sheet {
    position: fixed;
    inset: auto 0 0;
    width: min(100%, 480px);
    max-width: 100%;
    max-height: 88dvh;
    margin: 0 auto;
    border-radius: 28px 28px 0 0;
  }
  .about-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 8px;
    padding: 20px 22px 10px;
    border-bottom: 1px solid #eef0f4;
  }
  .about-dialog h2 { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.6px; }
  .about-dialog h2:focus { outline: none; }
  .about-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 99px;
    background: #f1f3f6;
    color: #424957;
    font: 600 14px var(--font-rounded);
    cursor: pointer;
  }
  .about-close span { font-size: 22px; font-weight: 400; }
  .about-close:focus-visible { outline: 2px solid #244bcc; outline-offset: 3px; }
  .about-dialog-content {
    min-height: 0;
    overflow-y: auto;
    padding: 14px 24px max(24px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .about-dialog .mobile-about-copy { padding-top: 0; font-size: 18px; line-height: 1.55; }
  .about-dialog .mobile-about-copy p { margin-bottom: 18px; }
  .about-dialog .download-app { width: 100%; margin-top: 6px; }
  .about-reader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
  }
  .about-reader .about-dialog-header { padding-top: max(18px, env(safe-area-inset-top)); }
  .about-reader .about-dialog-content { width: min(100%, 460px); margin: 0 auto; padding-top: 38px; }
  .about-reader .mobile-about-copy { font-size: 20px; line-height: 1.55; }
  .about-reader .mobile-about-copy .lead { font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.6px; margin-bottom: 26px; }
  .about-reader .download-app { margin-top: 18px; }
}
