/* Native reading layouts for the secondary marketing sections.
   The original canvases remain live; text and controls leave the desktop artboard. */
@media (max-width: 900px) {
  :is(#mind, #gasps, #crux, #picked, #app, #together) {
    position: relative !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    box-sizing: border-box;
    zoom: 1;
    padding: 64px 32px !important;
    overflow: hidden;
    scroll-margin-top: 76px;
    isolation: isolate;
  }
  :is(#mind, #gasps, #picked, #together) > :is(h2, p) {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    z-index: 1;
  }
  :is(#mind, #gasps, #picked, #together) > .sx-label {
    font-size: 11px !important;
    line-height: 1.5;
    letter-spacing: .07em;
    margin-bottom: 26px !important;
  }
  :is(#mind, #gasps, #picked, #together) > h2 {
    font-size: clamp(44px, 7.5vw, 68px) !important;
    line-height: .99 !important;
    letter-spacing: -.055em !important;
    max-width: 760px;
    text-wrap: balance;
  }

  /* The interference field is framed as artwork behind native-size copy. */
  #mind { min-height: 840px; }
  #mind > canvas {
    left: calc(50% - 810px) !important;
    top: 230px !important;
    width: 1100px !important;
    height: 687.5px !important;
    max-width: none;
    clip-path: inset(170px 0 0 0);
    pointer-events: none;
    z-index: 0;
  }
  #mind > p.sx-rise {
    margin-top: 24px !important;
    max-width: 380px;
    font-size: 18px !important;
    line-height: 1.5 !important;
  }
  #mind > p:last-child {
    margin-top: 350px !important;
    max-width: 580px;
    font-size: 30px !important;
    line-height: 1.2 !important;
    text-wrap: balance;
    text-shadow: 0 2px 18px #050506;
  }

  /* Five live foundations become a readable two-column set. */
  #gasps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
  #gasps > :is(h2, p) { grid-column: 1 / -1; }
  #gasps > .sx-label { margin-bottom: 0 !important; }
  #gasps > h2 + p {
    font-size: 17px !important;
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 10px !important;
  }
  #gasps > .sx-gt {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0;
    overflow: hidden;
    touch-action: manipulation;
  }
  #gasps > .sx-gt:last-of-type {
    grid-column: 1 / -1;
    width: calc((100% - 24px) / 2) !important;
    justify-self: center;
  }
  #gasps .sx-gt > canvas {
    width: 100% !important;
    height: 360px !important;
    object-fit: contain;
  }
  #gasps .sx-mh { min-height: 32px; font-size: 11px; }
  #gasps .sx-gcap { max-width: calc(100% - 20px); font-size: 10px; }
  #gasps .sx-gtx { height: auto; min-height: 144px; padding: 17px 14px 12px; }
  #gasps .sx-gtn { font-size: 25px; }
  #gasps .sx-gtd { font-size: 15px; min-height: 40px; }
  #gasps .sx-gtx:has(> .sx-gtd:only-child) { display: flex; align-items: center; min-height: 80px; padding: 18px 16px; }
  #gasps .sx-gtx > .sx-gtd:only-child { min-height: 0; margin: 0; font-size: 18px; line-height: 1.4; color: #111113; }
  #gasps .sx-gtw { height: auto; min-height: 42px; line-height: 1.4; padding-top: 10px; }
  #gasps .sx-gtw > .sx-mn { flex: none; }
  #gasps > p.mono { font-size: 10px !important; line-height: 1.6; }
  #gasps > p.mono:last-child { margin-top: -12px !important; }

  /* The iframe itself and its contents both respond to the viewport. */
  #crux { padding: 0 !important; }
  #crux > iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: calc(1380px + (100vw - 64px) * .694444);
    min-height: 1100px;
    border: 0;
  }

  /* The source bank is a live illustration; the two practice lists stay native size. */
  #picked { display: flex; flex-direction: column; align-items: stretch; }
  #picked > .sx-label { order: 0; }
  #picked > h2 { order: 1; }
  #picked > div:first-of-type {
    order: 2;
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px !important;
    margin-top: 28px;
    max-width: 720px;
    text-align: left !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  #picked > canvas {
    order: 3;
    position: relative !important;
    inset: auto !important;
    display: block;
    width: 100% !important;
    height: clamp(250px, 43vw, 380px) !important;
    object-fit: cover;
    object-position: left 74%;
    margin: 22px 0 0;
    z-index: 0 !important;
  }
  #picked > div.mono {
    order: 4;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    padding-bottom: 22px;
    border-bottom: 1px solid #DFE0E5;
  }
  #picked > div.mono > span {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    font-size: 10px !important;
    line-height: 1.5;
    letter-spacing: .02em !important;
  }
  #picked > div.mono > span:nth-child(-n + 5) { display: none; }
  #picked > .sx-mod {
    order: 5;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 720px;
    margin: 28px auto 0;
  }
  #picked .sx-mh { min-height: 34px; font-size: 11px; }
  #picked .sx-row {
    padding-left: 0 !important;
    min-height: 58px;
    height: auto;
    padding-block: 12px;
    font-size: 17px;
    line-height: 1.4;
  }
  #picked .sx-row > span:first-child { min-width: 0; }
  #picked .sx-row > span:last-child { flex: none; gap: 10px !important; }

  /* Readable phone previews, optionally grouped in a swipeable native-size gallery. */
  #app { display: flex; flex-wrap: wrap; gap: 36px 24px; }
  #app > div:first-child:not(.sx-app-previews) {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    flex: 0 0 100%;
  }
  #app > div:first-child > h2 {
    font-size: clamp(46px, 8vw, 72px) !important;
    line-height: .99 !important;
    letter-spacing: -.055em !important;
  }
  #app > div:first-child > p {
    margin: 24px 0 0 !important;
    max-width: 520px !important;
    text-align: left !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
  }
  #app > .sx-bob,
  #app > .sx-app-previews > .sx-bob {
    position: relative !important;
    inset: auto !important;
    width: calc((100% - 24px) / 2) !important;
    max-width: 390px;
    min-width: 0;
    margin-inline: auto;
    animation: none !important;
  }
  #app .sx-bob > div:first-child {
    width: 100% !important;
    height: auto !important;
    min-height: 780px;
    box-sizing: border-box;
  }
  #app .sx-bob > div:first-child > div:first-child {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 780px;
    box-sizing: border-box;
  }
  #app .sx-bob canvas[style*="width: 390px"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 390 / 480;
  }
  #app .sx-bob > p { font-size: 11px !important; margin-top: 20px !important; }
  #app > .sx-app-previews {
    flex: 0 0 calc(100% + 8px);
    min-width: 0;
    max-width: calc(100% + 8px);
    display: flex;
    gap: 26px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 8px 24px 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    scrollbar-color: #AAAAB2 #161619;
  }
  #app > .sx-app-previews > .sx-bob {
    flex: 0 0 min(340px, calc(100vw - 72px));
    width: min(340px, calc(100vw - 72px)) !important;
    margin: 0;
    scroll-snap-align: start;
  }

  /* Community examples are complete posts, with natural-height copy and touch controls. */
  #together {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
  #together > :is(p, h2, a) { grid-column: 1 / -1; }
  #together > .sx-label { margin-bottom: 0 !important; }
  #together > h2 { max-width: 720px; }
  #together > h2 + p { font-size: 19px !important; line-height: 1.5 !important; max-width: 620px; }
  #together > a {
    position: relative !important;
    inset: auto !important;
    justify-self: start;
    display: inline-flex;
    min-height: 48px;
    height: auto !important;
    padding: 12px 18px;
    margin: 4px 0 8px;
    font-size: 15px;
    line-height: 1.4;
  }
  #together > article {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
  }
  #together > article:last-of-type { grid-column: 1 / -1; width: calc((100% - 24px) / 2) !important; justify-self: center; }
  #together .sx-mh { min-height: 32px; }
  #together .sx-au { min-width: 0; align-items: flex-start; }
  #together .sx-av { flex: none; }
  #together .sx-tx { font-size: 17px; line-height: 1.5; }
  #together .sx-rc { font-size: 12px; line-height: 1.5; }
  #together canvas {
    width: 0 !important;
    min-width: 0;
    flex: 1 1 auto;
    height: 44px !important;
  }
  #together [aria-label="Encourage Grace"] { flex-wrap: wrap; gap: 7px !important; margin-top: 12px !important; }
  #together .sx-chp { min-height: 44px; }
}

@media (max-width: 560px) {
  :is(#mind, #gasps, #picked, #app, #together) { padding: 48px 22px !important; }
  :is(#mind, #gasps, #picked, #together) > h2 { font-size: clamp(38px, 10.6vw, 52px) !important; }
  #mind { min-height: 800px; }
  #mind > canvas { top: 220px !important; left: calc(50% - 736px) !important; width: 1000px !important; height: 625px !important; }
  #mind > p.sx-rise { font-size: 17px !important; max-width: 290px; }
  #mind > p:last-child { margin-top: 320px !important; font-size: 27px !important; }
  #gasps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #gasps > h2 + p { font-size: 15px !important; }
  #gasps > .sx-gt,
  #gasps > .sx-gt:last-of-type {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    width: 100% !important;
    grid-column: auto;
  }
  #gasps .sx-gt > .sx-mh { grid-column: 1 / -1; }
  #gasps .sx-gt > canvas { width: 104px !important; height: 176px !important; object-fit: contain; grid-row: 2; grid-column: 1; }
  #gasps .sx-gcap { display: none; }
  #gasps .sx-gcap[style*="color: #F6F6F7"] { display: block; top: 38px !important; left: 6px; max-width: 96px; font-size: 9px; }
  #gasps .sx-gtx { grid-row: 2; grid-column: 2; min-height: 176px; padding: 17px 13px 10px; }
  #gasps .sx-gtn { font-size: 23px; }
  #gasps .sx-gtd { font-size: 14px; min-height: 36px; }
  #gasps .sx-gtw { font-size: 12px; margin-top: 10px; gap: 6px; }
  #gasps .sx-gtw .sx-mn { font-size: 10px; }
  #gasps > p.mono { font-size: 9px !important; }
  #crux > iframe { height: calc(1380px + (100vw - 44px) * .694444); }
  #picked > div:first-of-type { gap: 18px !important; font-size: 14px !important; margin-top: 24px; }
  #picked > canvas { height: 250px !important; }
  #picked > div.mono > span { font-size: 8px !important; letter-spacing: 0 !important; }
  #picked .sx-row { font-size: 15px; }
  #picked .sx-row .sx-mn { font-size: 11px; }
  #picked .sx-row > span:last-child { gap: 7px !important; }
  #app > div:first-child > h2 { font-size: clamp(42px, 11vw, 60px) !important; }
  #app > div:first-child > p { font-size: 17px !important; }
  #app > .sx-bob { width: 100% !important; }
  #app .sx-bob > div:first-child,
  #app .sx-bob > div:first-child > div:first-child { min-height: 780px; }
  #together { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  #together > h2 + p { font-size: 17px !important; }
  #together > article:last-of-type { grid-column: auto; width: 100% !important; }
  #together > a { width: 100%; justify-content: center; box-sizing: border-box; }
}
@media(max-width:900px){#app .sx-bob canvas[style*="width: 350px"]{width:100%!important;height:auto!important;aspect-ratio:350/200}#app .sx-bob svg[width="322"]{width:100%;height:auto}}
