/* ===== Phones only (html.mob is set in <head> when the screen's short side is under 700 px).
   The 2012 page restacked into one column for thumbs; desktop and tablets keep the original 1060 px layout. ===== */
html.mob { -webkit-text-size-adjust: 100%; }
html.mob body { font-size: 15px; line-height: 1.55; }
html.mob #content { width: auto; padding: 0 14px; }
html.mob #content > div { border-radius: 18px; overflow: hidden; }

/* header: logo left, follow-us right */
html.mob #header { width: auto; margin: 14px 0 16px; display: flex; align-items: center; justify-content: space-between; border-radius: 0 !important; overflow: visible !important; }
html.mob #header::after { display: none; }
html.mob .logo { float: none; width: 150px; }
html.mob .logo img { width: 150px; height: auto; display: block; }
html.mob .top-share { float: none; width: auto; border-radius: 12px; }
html.mob .top-share ul { display: flex; align-items: center; gap: 2px; }
html.mob .top-share ul li { float: none; padding: 6px; }
html.mob .top-share ul li h1 { font-size: 18px; line-height: 1; }

/* feature: title, phone, demo buttons, then the words */
html.mob #feature { width: auto; padding: 18px 16px 24px; margin-bottom: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; }
html.mob #feature::after { display: none; }
html.mob #feature .intro-text { display: contents; }
html.mob #feature .intro-text h1 { order: 1; font-size: 46px; line-height: 40px; margin: 0 0 12px; }
html.mob #feature .intro-text h1 span { font-size: 28px; }
html.mob #feature .feature-img { order: 2; margin: 0 0 14px; }
html.mob #feature .feature-img img { width: 170px; height: auto; }
html.mob #feature .intro-text h2 { order: 4; font-size: 23px; line-height: 1.15; margin: 0 0 12px; }
html.mob #feature p { order: 5; text-align: left; margin: 0 0 12px; }

/* video + screenshots stacked; screenshots swipe sideways */
html.mob #previews { display: block; margin-bottom: 16px; border-radius: 0 !important; overflow: visible !important; }
html.mob #previews .ribbon { display: none; }
html.mob #previews .videos, html.mob #previews .images { float: none; width: auto; margin: 0 0 16px; padding: 18px; border-radius: 18px; }
html.mob .video-poster { display: block; position: relative; width: 100%; height: auto; aspect-ratio: 460 / 252; border-radius: 12px; overflow: hidden; }
html.mob .video-poster img { width: 100%; height: 100%; display: block; }
html.mob #previews .images ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html.mob #previews .images ul::after { display: none; }
html.mob #previews .images ul li { float: none; padding: 0 !important; }
html.mob #previews .images ul li img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* testimonials: swipe through the press quotes */
html.mob #quotes { padding: 18px; margin-bottom: 16px; }
html.mob #quotes ul { display: block; }
html.mob #quotes ul::after { display: none; }
html.mob #quotes ul li { float: none; width: auto; padding: 14px 0 !important; display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; align-items: center;
  border-top: 1px solid #eee3e3; }
html.mob #quotes ul li:first-child { border-top: 0; padding-top: 4px !important; }
html.mob #quotes ul li img { grid-row: span 2; width: 96px; height: auto; margin: 0; }
html.mob #quotes ul li p { font-size: 14px; line-height: 1.45; }
html.mob #quotes ul li h3 { font-size: 13px; margin-top: 4px; }
html.mob #quotes p br { display: none; }

/* about: one readable column */
html.mob #science { padding: 18px; margin-bottom: 16px; }
html.mob #science ul li { float: none; width: auto; margin: 0 0 12px; text-align: left; }
html.mob #science p { text-align: left; }

/* footer stacked and centred */
html.mob #footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px; margin-bottom: 24px; }
html.mob #footer .col1, html.mob #footer .col3, html.mob #footer .col2 { flex: none; width: auto; }
html.mob #footer .col3 img { float: none; margin: 0 auto; }

/* swipe hint dots under the two sideways rows */
html.mob .mm-swipe { display: block; text-align: center; font: bold 10px/1 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #b3a9a9; margin-top: 8px; }
html.mob .top-share ul li h1 { white-space: nowrap; }

/* the two Demo buttons: right under the phone, full width, stacked (the 2012 artwork stretched) */
html.mob #feature .intro-text .mm-badges { order: 3; align-self: stretch; flex-direction: column; gap: 10px; margin: 0 0 22px; }
html.mob .mm-badge { width: 100%; height: 75px; }
html.mob .mm-badge .bez { width: 100%; }
html.mob .mm-badge .pan { left: 9px; right: 9px; width: auto; }
html.mob .mm-badge .txt { left: 0; right: 0; text-align: center; }
html.mob .mm-badge .t1, html.mob .mm-badge .t2 { left: 0; right: 0; }
html.mob .mm-badge .t1 { font-size: 25px; top: 6px; }
html.mob .mm-badge .t2 { left: 0; top: 36px; }


/* small phones (iPhone SE and similar) */
@media (max-width: 380px) {
  html.mob .logo, html.mob .logo img { width: 120px; }
  html.mob .top-share ul li h1 { font-size: 15px; }
  html.mob .top-share ul li img { width: 26px; height: auto; }
  html.mob #feature .intro-text h1 { font-size: 38px; line-height: 33px; }
  html.mob #feature .intro-text h1 span { font-size: 24px; }
  html.mob #feature .feature-img img { width: 130px; }
  html.mob .mm-badge { height: 66px; zoom: .9; }
}
