/* Phones and tablets (owner 2026-11-07). Loaded last. Rules: nothing widens the page, tables become cards or a one-column picker, every section has its own band. */
:root { --m-mint: #e6f6f0; --m-sky: #e9f0fb; --m-sand: #fbf4e4; --m-line: rgb(15 27 45 / .09); --m-ink: #0f1b2d; --m-brand: #0a7f69; }

/* ---------- plan / comparison pickers (built by mobile.js) ---------- */
.mx-pick { display: none; }

@media (max-width: 820px) {
  html, body { overflow-x: clip; max-width: 100%; }
  img, svg, video, canvas, iframe { max-width: 100%; }
  main { overflow-x: clip; }
  .main-container, .container { padding-inline: 16px; }

  /* ---- every section is its own band: white, mint, sky, repeat; a hairline and a soft round edge between them ---- */
  main > section, main .h10 > section { position: relative; border-top: 1px solid var(--m-line); }
  main > section.x-sec:nth-of-type(3n+1), main > section.d-sec:nth-of-type(3n+1), main .h10 > section.h10-sec:nth-of-type(3n+1) { background-color: rgb(255 255 255 / .92) !important; }
  main > section.x-sec:nth-of-type(3n+2), main > section.d-sec:nth-of-type(3n+2), main .h10 > section.h10-sec:nth-of-type(3n+2) { background-color: var(--m-mint) !important; }
  main > section.x-sec:nth-of-type(3n), main > section.d-sec:nth-of-type(3n), main .h10 > section.h10-sec:nth-of-type(3n) { background-color: var(--m-sky) !important; }
  main > section.x-sec.alt, main .h10 > section.is-tint { background-color: var(--m-sand) !important; }
  main > section.x-sec, main > section.d-sec, main .h10 > section.h10-sec { padding-block: 44px; border-radius: 26px 26px 0 0; margin-top: -14px; }
  main > section.x-phero, main .h10 > section.h10-hero { margin-top: 0; border-radius: 0; }
  /* the small teal tick that sat on every section edge is now a clear divider handle */
  main > section.x-sec::before, main .h10 > section.h10-sec::before { content: ""; position: absolute; top: 10px; inset-inline: 0; margin-inline: auto; width: 44px; height: 4px; border-radius: 4px; background: rgb(10 127 105 / .35); }

  /* ---- headings and copy that fit a phone ---- */
  .x-sec-head { margin-bottom: 26px; }
  .x-sec-head h2, .h10 h2 { font-size: clamp(1.45rem, 6.4vw, 1.9rem); line-height: 1.35; text-wrap: balance; }
  .x-phero h1, .h10-hero h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 1.3; text-wrap: balance; }
  p, li { overflow-wrap: anywhere; }

  /* ---- grids go to one or two columns ---- */
  .x-grid, .x-cards, .x-card-grid { grid-template-columns: 1fr !important; }
  .x-grid.cols-2, .x-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .x-card, .x-tile { min-width: 0; }
  .x-cta-sec { border-radius: 26px 26px 0 0; margin-top: -14px; }

  /* ---- tables ---- */
  .x-tbl-wrap, .tbl-wrap, .h10-vs2-w, .h10-mx-w { overflow: visible !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  table { max-width: 100%; }

  /* short tables (rates, status lists): every row is a card */
  table.tbl-cards { display: block; width: 100%; border: 0; }
  table.tbl-cards thead { display: none; }
  table.tbl-cards tbody { display: grid; gap: 10px; }
  table.tbl-cards tr { display: grid; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--m-line); border-radius: 16px; box-shadow: 0 6px 18px rgb(15 27 45 / .05); }
  table.tbl-cards td { display: block; padding: 4px 0; border: 0 !important; text-align: start; min-width: 0; }
  table.tbl-cards td::before { content: attr(data-label); display: block; color: #5a6a7e; font-size: .8rem; font-weight: 600; margin-bottom: 1px; }
  table.tbl-cards td, table.tbl-cards td > * { min-width: 0; overflow-wrap: anywhere; }
  table.tbl-cards td:first-child { display: block; font-weight: 700; font-size: 1.02rem; padding-bottom: 6px; border-bottom: 1px dashed var(--m-line) !important; }
  table.tbl-cards td:first-child::before { display: none; }

  /* wide matrices (plans x features, us x competitors): pick a column, see only it */
  .mx-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
  .mx-pick button { height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--m-line); background: #fff; color: var(--m-ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
  .mx-pick button[aria-pressed="true"] { background: var(--m-brand); border-color: var(--m-brand); color: #fff; }
  .mx-pick .mx-note { flex-basis: 100%; font-size: .8rem; color: #5a6a7e; }
  table[data-col] { width: 100%; table-layout: fixed; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--m-line); }
  table[data-col] :is(th, td) { display: none; padding: 10px 12px; font-size: .92rem; vertical-align: top; word-break: break-word; }
  table[data-col] :is(th, td):first-child, table[data-col] td[colspan], table[data-col] th[colspan] { display: table-cell; }
  table[data-col] td[colspan] { width: auto; }
  table[data-col="2"] :is(th, td):nth-child(2), table[data-col="3"] :is(th, td):nth-child(3), table[data-col="4"] :is(th, td):nth-child(4), table[data-col="5"] :is(th, td):nth-child(5),
  table[data-col="6"] :is(th, td):nth-child(6), table[data-col="7"] :is(th, td):nth-child(7), table[data-col="8"] :is(th, td):nth-child(8), table[data-col="9"] :is(th, td):nth-child(9),
  table[data-col="10"] :is(th, td):nth-child(10), table[data-fix="2"] :is(th, td):nth-child(2) { display: table-cell; }
  table[data-col] :is(th, td):first-child { width: 46%; }

  /* ---- rails that are really tab strips stay swipeable but show a hint of the next item ---- */
  .h10-rail, .st-chs, .st-scs { scroll-snap-type: x proximity; padding-inline-end: 24px; }
}

@media (max-width: 420px) {
  .main-container, .container { padding-inline: 14px; }
  .pill, .hx-btn, .h10-btn { min-height: 44px; }
  .x-grid.cols-2, .x-grid.is-compact { grid-template-columns: 1fr !important; }
}

/* tablets: two columns where there were three or four, no hover-only content */
@media (min-width: 821px) and (max-width: 1100px) {
  .x-grid, .x-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main > section.x-sec { padding-block: 64px; }
}
@media (hover: none) { .x-card:hover, .x-tile:hover { transform: none; } }

@media (max-width: 820px) {
  small, bdi, code { font-size: max(12.5px, .85em); }
  .sc-st, .h10-st, .h10-pb, .d-sample { font-size: 12px !important; }
}
