/* tripsterdevelopers.com UX layer, 22 Nov 2026 (Pratham: "Do all 7"; backlog in memory project-site-ux-backlog-2026-11-22,
   design study reference-kiwisprout-design-study-2026-11-22). Loaded after style.css on every page. Bright only, no gradients,
   no dark surfaces. Changes presentation only: no text is removed, so rank-locked pages keep every word. */

/* 1. Content is visible at once. Scroll reveals kept the page looking empty until about 6s (Speed Index), so every
      reveal system shows its content immediately. Hover motion elsewhere is untouched. */
.h2v-js .h2v-rv,
.ep-js .ep-head,.ep-js .ep-cards,.ep-js .ep-steps,.ep-js .ep-split,.ep-js .ep-band,.ep-js .ep-faqlist,
.cs2-js .cs2-fig,.cs2-js .cs2-split,.cs2-js .cs2-stats,
.pp-js .pp-rv,.wk-js .wk-row .wk-body>*,.imm-reveal,
.td-animate,.td-animate.td-will-reveal{opacity:1!important;transform:none!important;transition:none!important}

/* 4. Readable text and comfortable taps. Nothing under 13px; buttons and link rows at least 44px tall. */
.h2v-eyebrow,.h2v-results-src,.scf-note,.pr-kicker,.h2v-card dt,.h2v-apps .cat,.h2v figcaption,.h2v-postgrid small,
.td-submenu-desc,.ep-crumb,.h2v-card .sector{font-size:13px!important}
.pr-marks a,.h2v .acts a,.dm-b,.dm-pk,main.h2v .h2v-rows a{min-height:44px;display:inline-flex;align-items:center}
.pr-read,.td-footer-tagline a{display:inline-block;padding-block:10px}
@media (max-width:767px){
  input,select,textarea{font-size:16px!important}          /* stops iPhone zooming into a field */
}

/* 2. Mobile action bar: Get a quote + Call, after the first screen, hidden near the footer. */
.td-mbar{display:none}
@media (max-width:767px){
  .td-mbar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:990;display:flex;gap:8px;
    padding:8px;background:rgba(255,255,255,.96);border:1px solid #E2E8F0;border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.12);
    transform:translateY(140%);transition:transform .28s ease}
  .td-mbar.is-on{transform:none}
  .td-mbar a{flex:1;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;
    font-family:var(--font-heading,Outfit,sans-serif);font-size:15px;font-weight:700;text-decoration:none}
  .td-mbar .q{background:var(--color-red,#DC2626);color:#fff}
  .td-mbar .c{background:#F1F5F9;color:#0F172A;flex:0 0 38%}
  .td-mbar svg{width:18px;height:18px}
  body.td-has-mbar .td-footer{padding-bottom:96px}
}
@media (prefers-reduced-motion:reduce){.td-mbar{transition:none}}

/* 6. Service pages: price, timeline and work, right under the headline. */
.ep-facts{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.ep-facts li{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border-radius:14px;background:#F8FAFC;border:1px solid #EEF2F6;min-width:128px}
.ep-facts li > span{font-size:13px;color:#64748B}
.ep-facts strong{font-family:var(--font-heading,Outfit,sans-serif);font-weight:500;font-size:17px;color:#0F172A}
.ep-facts li.go{justify-content:center;background:transparent;border-color:transparent;padding-inline:4px;min-width:0}
.ep-facts li.go a{font-family:var(--font-heading,Outfit,sans-serif);font-weight:700;font-size:15px;color:var(--color-red,#DC2626);text-decoration:none;min-height:44px;display:flex;align-items:center}
@media (max-width:767px){.ep-facts li{flex:1 1 calc(50% - 10px);min-width:0}.ep-facts li.go{flex:1 1 100%;padding:0}}

/* 5. Homepage: soft colour bands and a calmer rhythm (inspired by the 22 Nov design study; our own palette, taken from
      the Miko app accents and lightened). Tinted sections sit as inset rounded panels; white sections stay between them. */
main.h2v{--tint-mint:#F0FDF4;--tint-warm:#FFF7ED;--tint-lilac:#F5F3FF;--tint-sky:#EFF6FF;--tint-blush:#FDF2F8;--tint-red:#FFF8F6}
main.h2v > section{padding-top:clamp(44px,5.2vw,84px);padding-bottom:clamp(44px,5.2vw,84px)}
main.h2v > section.h2v-hero{padding-top:clamp(40px,6vw,96px);padding-bottom:clamp(24px,3vw,40px)}
main.h2v > .h2v-build,main.h2v > .h2v-work,main.h2v > .h2v-apps,main.h2v > .h2v-reviews,main.h2v > .h2v-regionsec,main.h2v > .h2v-paths{
  margin:0 clamp(8px,1.2vw,18px) clamp(8px,1.2vw,18px);border-radius:clamp(20px,2vw,28px);border-top:0!important}
main.h2v > .h2v-build{background:var(--tint-mint)}
main.h2v > .h2v-work{background:var(--tint-warm)}
main.h2v > .h2v-apps{background:var(--tint-lilac)}
main.h2v > .h2v-reviews{background:var(--tint-sky)}
main.h2v > .h2v-regionsec{background:var(--tint-blush)}
main.h2v > .h2v-paths{background:var(--tint-red)}
main.h2v .h2v-rows li{padding-top:clamp(18px,2vw,28px);padding-bottom:clamp(18px,2vw,28px)}
@media (min-width:1024px){
  main.h2v .h2v-grid{grid-template-columns:repeat(3,minmax(0,1fr))}       /* 6 case studies in 2 rows, not 3 */
  main.h2v .h2v-grid a:nth-child(n){grid-column:auto}
}

/* Phones: long stacks become swipe rows (brand guide 5.1 "long lists become swipe rows"). */
@media (max-width:767px){
  main.h2v .h2v-grid,main.h2v .h2v-postgrid,main.h2v .h2v-pathgrid,main.h2v .h2v-offices,main.h2v .h2v-reggrid,main.h2v .h2v-rows{
    display:flex!important;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;
    margin-right:calc(-1 * var(--pad,20px));padding-right:var(--pad,20px);padding-bottom:6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  main.h2v .h2v-grid::-webkit-scrollbar,main.h2v .h2v-postgrid::-webkit-scrollbar,main.h2v .h2v-pathgrid::-webkit-scrollbar,
  main.h2v .h2v-offices::-webkit-scrollbar,main.h2v .h2v-reggrid::-webkit-scrollbar,main.h2v .h2v-rows::-webkit-scrollbar{display:none}
  main.h2v .h2v-grid > *,main.h2v .h2v-postgrid > *,main.h2v .h2v-pathgrid > *,main.h2v .h2v-offices > *,main.h2v .h2v-reggrid > *,main.h2v .h2v-rows > li{
    flex:0 0 82%;scroll-snap-align:start;min-width:0}
  main.h2v .h2v-rows > li{display:block!important;background:#fff;border:0!important;border-radius:18px;padding:20px!important}
  main.h2v .h2v-rows > li > *{display:block}
  main.h2v .h2v-postgrid > a,main.h2v .h2v-pathgrid > *,main.h2v .h2v-reggrid > *{background:#fff;border-radius:18px;padding:18px!important;border:0!important}
  main.h2v .h2v-rows{margin-top:24px}
}

/* 3. Contact page on phones: the form comes straight after the section heading; contact cards and rating follow it. */
@media (max-width:767px){
  body.page-contact .ep-in:has(> .ep-raw #enquiry){display:flex;flex-direction:column}
  body.page-contact .ep-in:has(> .ep-raw #enquiry) > .ep-head{order:0}
  body.page-contact .ep-in:has(> .ep-raw #enquiry) > .ep-raw:has(#enquiry){order:1;margin-top:8px}
  body.page-contact .ep-in:has(> .ep-raw #enquiry) > .ep-cards{order:2;margin-top:28px}
  body.page-contact .ep-in:has(> .ep-raw #enquiry) > .ep-raw:not(:has(#enquiry)){order:3}
}
@media (max-width:767px){
  body.page-contact #td-contact-form .form-row{row-gap:0}                       /* one even gap between every field */
  body.page-contact .ep-next{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;scrollbar-width:none;
    margin-right:-20px;padding-right:20px}
  body.page-contact .ep-next::-webkit-scrollbar{display:none}
  body.page-contact .ep-next > li{flex:0 0 74%;scroll-snap-align:start;background:#F8FAFC;border-radius:16px;padding:14px 16px!important;border:0!important}
}
