/* home-mobile.css — Mobile pass, Phase 2 (27 Oct): the home page on phones. Loaded last, after
   mobile.css and the page sheets, so every rule here wins on small screens without !important.
   Rules (from the plan): one column, 16px gutter, 44px taps, nothing under 14px, no sideways scroll.

   2.3  Payout feed: on a touch screen the rolling marquee cannot be paused (no hover) and a moving
        13px chip is hard to tap, so under 768px the bar becomes a strip you swipe, chips are 14px
        and 44px tall, and the caption says so.
   2.4  Reviews: the three cards stacked take ~960px of a 390px screen; on phones they sit in one
        row you swipe, each card 84% wide with the next one peeking, so the section is a third as tall.
   2.5  Home FAQ: rows are already 44px+; tighten the gap under the heading and the "+" tap area.
   2.1  Hero: the laptop card's "why" eyebrow stays clear of the chat bubble (bottom-left, fixed). */

@media (max-width: 768px) {
  /* ---- 2.3 payout feed: swipe, do not roll ---- */
  .feed__bar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
  .feed__bar::-webkit-scrollbar {
    display: none;
  }
  .feed__track {
    animation: none;
    will-change: auto;
    padding: 0 12px;
    gap: 8px;
  }
  .feed__chip {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 14px;
    scroll-snap-align: start;
  }
  .feed__cap {
    font-size: 14px;
  }
  /* the second copy of the chips (there for the seamless loop) is dead weight on a strip you swipe */
  .feed__chip--dup {
    display: none;
  }

  /* ---- 2.4 reviews: one swipeable row ---- */
  .reviews__grid {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .reviews__grid::-webkit-scrollbar {
    display: none;
  }
  .review {
    flex: 0 0 84%;
    max-width: 84%;
    scroll-snap-align: start;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .review blockquote {
    font-size: 16px;
    line-height: 1.5;
  }

  /* ---- 2.1 the floating Discord bubble sat on the left edge, over the hero's second button and the
     laptop card's label on 320-390px screens; bottom-right is clear on every page ---- */
  .chat {
    left: auto;
    right: 16px;
  }

  /* ---- 2.5 home FAQ ---- */
  #page-home .hfaq .s-head {
    margin-bottom: 8px;
  }
  #page-home .hfaq summary {
    min-height: 44px;
  }
}

@media (max-width: 400px) {
  .review {
    flex-basis: 88%;
    max-width: 88%;
  }
}

/* phones held sideways / small tablets keep the stacked reviews from mobile.css; nothing here */

/* reduced motion already stops the feed roll (home.css); on touch screens it never rolls */

/* ---- 2.6 (29 Oct, Ali): the "Why options traders pick Strix" card on phones (≤640px) is light ----
   The reference is a white card on the page: the two figures side by side with a hairline between
   them, the three benefits as plain rows with a tinted icon tile and thin dividers, and a pale blue
   price block with a full-width blue button. The dark panel in the laptop (hero-why.css) is untouched
   from 641px up; the eyebrow and the "One fee" tile are not in the reference, so they are hidden here
   (the first benefit row says the same thing). Every rule beats hero-why.css by load order; the two
   !important ones beat mobile.css's phone type scale for .proof__grid. */
@media (max-width: 640px) {
  .laptop--photo {
    width: calc(100% - 8px); /* the stage has 12px sides: a 16px gutter, like the rest of the page */
  }
  .laptop--photo .why {
    gap: 0;
    padding: 18px 16px 16px;
    border-radius: 20px;
    border: 1px solid #e6e8f0;
    background: #fff;
    box-shadow: 0 10px 30px -12px rgba(10, 20, 60, 0.12);
    color: var(--m-ink, #0a0a0c);
  }
  .laptop--photo .why__eyebrow,
  .why .hero__proof .proof__grid > div:nth-child(4) {
    display: none;
  }

  /* figures: two columns, centred, a hairline between them */
  .why .hero__proof {
    padding: 0 0 14px;
    border-bottom: 1px solid #e9ebf2;
  }
  .why .hero__proof .proof__grid,
  .hero__proof .proof__grid:has(> div[hidden]) {
    position: relative;
    grid-template-columns: 1fr 1fr;
    gap: 14px 0;
  }
  .why .hero__proof .proof__grid::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: #e3e6ef;
  }
  .why .hero__proof .proof__grid > div {
    gap: 4px;
    padding: 0 4px;
  }
  .why .hero__proof .proof__grid b {
    font-size: 34px !important;
    line-height: 1.2; /* Inter's glyph box is ~1.2em: no overflow of the line box */
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--m-ink, #0a0a0c);
  }
  .why .hero__proof .proof__grid span {
    font-size: 14px !important;
    color: var(--m-ink-2, #5a5c66);
  }

  /* benefits: plain rows, icon tile on the left, dividers between them */
  .laptop--photo .why__cards {
    gap: 0;
    margin: 0;
  }
  .laptop--photo .why__card {
    gap: 12px;
    padding: 11px 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .laptop--photo .why__card + .why__card {
    border-top: 1px solid #e9ebf2;
  }
  .laptop--photo .why__ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #eef2ff;
    color: var(--blue, #2b2bf5);
  }
  .laptop--photo .why__ico svg {
    width: 20px;
    height: 20px;
  }
  .laptop--photo .why__card h3 {
    margin: 0 0 1px;
    font-size: 16px;
    line-height: 1.25;
    color: var(--m-ink, #0a0a0c);
  }
  .laptop--photo .why__card p {
    font-size: 14.5px;
    line-height: 1.38;
    color: var(--m-ink-2, #5a5c66);
  }

  /* price block: pale blue, "Plans from" above the figure, bolt before the RixTrade line, blue button */
  .laptop--photo .why__bar {
    margin-top: 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: #eef2fb;
    box-shadow: none;
    font-size: 16px;
    color: var(--m-ink, #0a0a0c);
  }
  .laptop--photo .why__from {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 12px;
  }
  .laptop--photo .why__from-lbl {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: #2a2c3a;
  }
  .laptop--photo .why__from b {
    margin: 0;
    font-size: 40px;
    line-height: 1.15; /* room for the baseline-aligned "one-time" (T053 counts overflow) */
    letter-spacing: -0.04em;
    color: var(--m-ink, #0a0a0c);
  }
  .laptop--photo .why__from-unit {
    color: var(--m-ink-2, #5a5c66);
  }
  .laptop--photo .why__rix {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: #3c3f4e;
  }
  .laptop--photo .why__rix::before {
    content: '';
    flex: none;
    width: 18px;
    height: 18px;
    background: var(--blue, #2b2bf5);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h8l-1 8 10-12h-8z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h8l-1 8 10-12h-8z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .laptop--photo .why__tp {
    align-self: flex-start;
    min-height: 44px; /* tap target, T038 */
    margin: -10px 0 -6px;
    color: var(--m-ink-2, #14142c);
    text-decoration-color: #9a9db0;
  }
  .laptop--photo .why__tp:hover {
    color: var(--m-ink, #0a0a0c);
  }
  .laptop--photo .why__btn {
    height: 48px;
    margin-top: 4px;
    background: var(--blue, #2b2bf5);
    color: #fff;
    font-size: 17px;
  }
  .laptop--photo .why__btn:hover {
    box-shadow: 0 8px 20px -6px rgba(43, 43, 245, 0.5);
  }
  .laptop--photo .why__btn:focus-visible,
  .laptop--photo .why__tp:focus-visible {
    outline-color: var(--blue, #2b2bf5);
  }
}
