/* Phone fixes for the published site (December 4, 2026). Loaded after every other
   stylesheet by build-published.mjs, so these rules win without !important.
   Measured in Chrome at 320-414 px (3x) and 768 px against the live build. */

/* Touch targets: 44 x 44 pt at least (Apple HIG), everywhere a finger lands. */
.global-brand{min-height:44px}
.site-footer .sf-links a{display:flex;align-items:center;min-height:44px}
.site-footer .sf-links a[href="https://x.com/"]{min-width:44px}
.site-footer .sf-bottom a{display:inline-flex;align-items:center;min-height:44px}
.new-folds .nf-link{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:flex-end}

.site-footer .sf-links a{min-width:44px}
.site-footer .sf-brand a{min-height:44px}
/* The legal pages' "On this page" toggle (27 px tall on a phone). */
.toc summary,details.toc>summary{min-height:44px;box-sizing:border-box;padding-block:12px}

/* Two links side by side that wrap onto two lines on a phone without an indent. */
.new-folds .nf-link{margin-right:22px}

/* Groups of phones (December 4, 2026, second pass). On a phone the desktop
   compositions do not fit, so each group follows what NordVPN, ExpressVPN and
   Cloudways do at 390 px (measured the same day): a swipe row with the next item
   peeking at the edge and dots underneath, or a stack, never a picture dropped.
   The dots and the first-screen centring are in assets/mobile.js. */
.new-folds{--nf-swipe-w:min(240px,60vw)}
.nf-dots{display:none}

@media (max-width:760px){
  /* Hero: the three phones in one swipe row, the conversation phone centred
     first, the other two peeking on either side. */
  .new-folds .nf-hero-screens{left:0;right:0;transform:none;justify-content:flex-start;gap:14px;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;
    padding-inline:calc(50% - var(--nf-swipe-w) / 2)}
  .new-folds .nf-hero-screens::-webkit-scrollbar{display:none}
  .new-folds .nf-hero-screens>.nf-shot{flex:0 0 auto;width:var(--nf-swipe-w);margin-top:0;scroll-snap-align:center;scroll-snap-stop:always}
  .new-folds .nf-hero-stage+.nf-dots{display:flex}
}

@media (min-width:601px) and (max-width:760px){
  /* Wide enough for both phones side by side inside the card, nothing cut. */
  .new-folds .nf-record-primary,.new-folds .nf-thanks-primary{left:5%;width:min(250px,44%)}
  .new-folds .nf-record-secondary,.new-folds .nf-thanks-secondary{right:5%;width:min(230px,41%)}
}

@media (max-width:600px){
  /* "Say it in your own words" and the voice hug picture: both phones in a swipe
     row inside the card. */
  .new-folds :is(.nf-record-stage,.nf-thanks-stage){display:flex;align-items:flex-start;gap:14px;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;
    padding:40px calc(50% - var(--nf-swipe-w) / 2) 0}
  .new-folds :is(.nf-record-stage,.nf-thanks-stage)::-webkit-scrollbar{display:none}
  .new-folds :is(.nf-record-stage,.nf-thanks-stage)>.nf-shot{position:relative;inset:auto;flex:0 0 auto;width:var(--nf-swipe-w);
    margin:0;transform:none;scroll-snap-align:center;scroll-snap-stop:always}
  .new-folds :is(.nf-record-stage,.nf-thanks-stage)+.nf-dots{display:flex}

  /* "Hear how others got through it": the desktop puts the two enlarged details
     beside the phone; here they stack under it with their labels, the way NordVPN
     stacks its side-by-side feature cards. */
  .new-folds .nf-feature .nf-reply-stage{height:auto;padding:32px 20px 26px}
  .new-folds .nf-reply-phone{position:relative;inset:auto;width:min(230px,70%);margin:0 auto}
  .new-folds .nf-reply-details{position:relative;inset:auto;margin-top:26px;pointer-events:auto}
  .new-folds .nf-reply-details .nf-detail{margin-bottom:18px}
  .new-folds .nf-reply-details .nf-detail:last-child{margin-bottom:0}
  .new-folds .nf-reply-details .nf-detail figcaption{font-size:14px;line-height:1.4;color:#3f3a66;margin-top:9px}
}

/* The dots under a swipe row: an 8 px dot inside a 44 px target. */
.nf-dots{justify-content:center;gap:0;margin-top:6px}
.nf-dot{width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center;-webkit-tap-highlight-color:transparent}
.nf-dot::before{content:"";width:8px;height:8px;border-radius:4px;background:#b9cabe;transition:width .2s,background-color .2s}
.nf-dot[aria-current="true"]::before{width:22px;background:#153f2d}
.nf-dot:focus-visible{outline:3px solid #328e64;outline-offset:-6px;border-radius:12px}
@media (prefers-reduced-motion:reduce){.nf-dot::before{transition:none}}

@media (max-width:760px){
  /* The closing "Something on your mind?" card: the phone follows the words
     instead of a fixed 490 px offset, which put it over the button and the
     "Coming soon" line once the words wrapped onto more lines (320-360 px). */
  .new-folds .nf-final-stage{height:auto;padding-bottom:0}
  .new-folds .nf-final-stage .nf-shot{position:relative;top:auto;right:auto;width:min(265px,100%);margin:34px auto -190px}
}

@media (max-width:420px){
  /* The dark ribbon keeps its two designed lines ("You don't have to" /
     "find the perfect words.") instead of leaving "to" alone on a line. */
  .new-folds .nf-ribbon p{font-size:clamp(21px,6.6vw,29px)}
  /* "Explore I Gotchoo" and "See how it works" stay on one line beside their arrow. */
  .new-folds .nf-button{gap:18px;white-space:nowrap}
}

/* The About page's related links under "See how it works". */
.resource-more{margin:18px 0 0;font-size:16px;line-height:1.6;color:#4d6457}
.resource-more a{color:#1f5c3f;text-underline-offset:3px}

/* One allowance for the sticky header (85 px, 75 px up to 760 px) plus a 12 px
   gap, for every in-page link on every page. site-shell.css, reference-folds.css,
   resources.css and styles.css each added their own and the browser summed them
   (a link stopped 105-115 px under the header). assets/site-shell.js then lines
   up the section's first content; this is the no-JavaScript landing. */
html{scroll-padding-top:97px}
html body [id][id]{scroll-margin-top:0}
@media (max-width:760px){html{scroll-padding-top:87px}}
/* site-shell.js moves focus to the section a link lands on (so keyboard and
   VoiceOver users continue there); a whole section is not a control, so no ring. */
[tabindex="-1"]:focus{outline:none}
