/* _phone.css, 2026-10-17. Phone-only polish shared by every public page
   (Jesse: "optimize mobile so it looks clean", then "keep enhancing").
   Nothing here applies above 768px, so desktop is untouched. Found by a
   headless audit of 39 pages at 375px: headings ending on a lone word, and
   tap targets under 40px. Tap areas grow with an invisible ::after, so the
   controls keep their measured look. */
.sb-cap{display:none}
@media (max-width:768px){
  /* headings: even lines, no single word left on the last one */
  h1,h2,h3,h4,.h3-lg{text-wrap:balance}

  /* nav: logo (30px), Try free (36px) and menu (36px) answer a 44px finger */
  #nav .brand,#nav .nav-burger,#nav .nav-right .btn-black{position:relative}
  #nav .brand::after{content:"";position:absolute;inset:-7px -4px}
  #nav .nav-burger::after,#nav .nav-right .btn-black::after{content:"";position:absolute;inset:-4px -2px}

  /* text links with an arrow ("Explore automation", "Back to the blog") */
  .vh-link,.ixh-link{padding-top:10px;padding-bottom:10px}
  .fx-link,.ix-more,.post-back,.abh-link,.wn-more{position:relative}
  .fx-link::after,.ix-more::after,.post-back::after,.abh-link::after,.wn-more::after{content:"";position:absolute;inset:-10px -4px}

  /* guide jump chips (35px) and the home film transcript toggle (33px) */
  .g-jump a{padding-top:10px;padding-bottom:10px}
  .how-transcript summary{padding-top:12px;padding-bottom:12px}

  /* FAQ rows, filter toggles, segmented switches */
  .faq-q{min-height:44px}
  .fcell-btn,.mp-seg{min-height:40px}

  /* section rhythm: feature pages stacked 48 + 80 + 48 = 176px of air
     between sections on a phone; 40 + 56 + 40 reads tighter, still airy */
  .bands{row-gap:56px}
  .int-feat{padding-top:40px;padding-bottom:40px}

  /* calculator fields */
  .calc-amt input,.calc-amt select{min-height:40px}
  .calc-check input[type=checkbox]{width:22px;height:22px}

  /* 2026-11-10 mobile sweep, 183 pages at 360/390/430 (Jesse: "a lot of
     clients come through it"). */
  /* footer links were 21px tall boxes on a 28px pitch: thumbs hit the wrong
     one. Each becomes a 37px row, the list gap closes so rows stay even. */
  footer.ft .ft-group ul{gap:0}
  footer.ft .ft-group li a{padding:8px 0}
  /* Instagram and App Store icons are 31px: grow the tap area, not the look */
  footer.ft .ft-social a{position:relative}
  footer.ft .ft-social a::after{content:"";position:absolute;inset:-6px}
  /* iOS Safari zooms the page when a field under 16px gets focus */
  #postSearch{font-size:16px}
  /* checkout: the SSL / Stripe / cancel card shrank to its text (210px)
     beside full-width cards; it now spans the column like its neighbours */
  .fnl-card.is-trust{align-self:stretch;width:auto}

  /* 2026-11-11 mobile QC (runs/site-qc-mobile-2026-11-11). */

  /* Status bar. The menu pill floats 24px down, so in iOS Safari headings
     scrolled through the gap and ran into the clock and Dynamic Island.
     Safari tints the status bar from a real fixed element at the top edge
     (a pseudo-element is ignored), so every page carries <div class="sb-cap">
     right after <body> (scripts/mobile_qc_batch.py). It takes the page's own
     background colour. */
  .sb-cap{display:block;position:fixed;top:0;left:0;right:0;height:24px;z-index:89;pointer-events:none;background-color:inherit}

  /* Hyphenated words in headings stay whole ("follow-up", "flat-fee").
     scripts/nowrap_headings.py wraps them in .nw. */
  .nw{white-space:nowrap}

  /* Comparison tables (.cmp-scroll, 48 pages). On a phone they kept a
     560 to 640px minimum and cut the key column mid-word with no hint that
     they scroll. Tables of up to 4 columns now fit the screen and wrap. */
  .cmp-scroll:not(:has(tr > :nth-child(5))){overflow-x:visible}
  .cmp-scroll:not(:has(tr > :nth-child(5))) .cmp{min-width:0 !important;width:100%;table-layout:auto;font-size:13px;line-height:18px;letter-spacing:0}
  .cmp-scroll:not(:has(tr > :nth-child(5))) .cmp col{width:auto !important}
  .cmp-scroll:not(:has(tr > :nth-child(5))) .cmp th,
  .cmp-scroll:not(:has(tr > :nth-child(5))) .cmp td{padding:12px 7px;height:auto;overflow-wrap:normal;hyphens:manual}
  /* spacer rows (.cmp-gap, .cmp-end) kept full cell padding: a 100px hole */
  .cmp-scroll .cmp tr:is(.cmp-gap,.cmp-end) td{padding:0;height:0}
  .cmp-scroll:not(:has(tr > :nth-child(5))) .cmp th:first-child,
  .cmp-scroll:not(:has(tr > :nth-child(5))) .cmp td:first-child{padding-left:4px}
  .cmp-scroll:not(:has(tr > :nth-child(5))) .cmp thead th{font-size:14px;line-height:19px;letter-spacing:0}
  .cmp-scroll .cmp .cmp-th-name{font-size:18px;line-height:22px;letter-spacing:-.2px}
  .cmp-scroll .cmp .cmp-th-price{font-size:13px;line-height:18px}
  .cmp-scroll .cmp code{white-space:normal;overflow-wrap:normal;font-size:12px}
  /* pills and chips inside cells wrap instead of spilling out of their shape */
  .cmp-scroll .cmp td span[class]{white-space:normal;height:auto}
  /* Wider tables (/compare, /alternatives) still scroll, but the feature
     column stays put and the card says it swipes. */
  .cmp-scroll:has(tr > :nth-child(5)) .cmp col:first-child{width:128px !important}
  .cmp-scroll:has(tr > :nth-child(5)) .cmp th:first-child,
  .cmp-scroll:has(tr > :nth-child(5)) .cmp td:first-child{position:sticky;left:0;z-index:2;background:#fff;box-shadow:8px 0 10px -8px rgba(3,3,2,.18)}
  .cmp-card:has(.cmp-scroll tr > :nth-child(5)){position:relative}
  .cmp-card:has(.cmp-scroll tr > :nth-child(5))::after{content:"Swipe to see every CRM \2192";position:absolute;left:0;right:0;bottom:12px;text-align:center;font-size:13px;line-height:18px;color:rgba(3,3,2,.55);pointer-events:none}
}
