/* ===== Stage 12: mobile experience (patterns from Apple, Stripe, Linear and McKinsey mobile sites) ===== */
:root{color-scheme:only light}
html{-webkit-text-size-adjust:100%;background:#fff}

@media (max-width:640px){
  /* calmer rhythm */
  .sec{padding:56px 0}
  h1{font-size:34px;line-height:1.1;letter-spacing:-.015em}
  h2{font-size:28px;line-height:1.15}
  .lead,.hx .lead{font-size:16.5px;line-height:1.6}
  .head{margin-bottom:28px}
  .eyebrow{font-size:12px;margin-bottom:10px}

  /* clock bar out, slim sticky header with a soft shadow instead of borders */
  .util{display:none}
  .top{border-bottom:0;box-shadow:0 1px 0 rgba(30,39,68,.06),0 8px 20px -18px rgba(30,39,68,.5)}
  .lang-sw{border-color:#E3E8EE}

  /* full-screen menu (Apple / Stripe pattern) */
  .nav.open{position:fixed;left:0;right:0;top:var(--hh,64px);bottom:0;z-index:40;background:#fff;margin:0;padding:12px 20px calc(24px + env(safe-area-inset-bottom));
    border-top:1px solid var(--line);overflow-y:auto;display:flex;flex-direction:column;animation:menuIn .25s ease}
  .nav.open a{font-family:var(--hf);font-size:24px;font-weight:600;min-height:58px;border-bottom:1px solid var(--line)}
  .nav.open a[aria-current="page"]{color:var(--accent);border-bottom-color:var(--line)}
  .nav.open .nav-cta{font-family:var(--bf);font-size:17px;min-height:54px;margin-top:22px;border-radius:12px}
  body.menu-open{overflow:hidden}
  @keyframes menuIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

  /* hero fills the screen; tabs become a compact progress row */
  .hx{min-height:calc(100svh - 64px)}
  .hx-in{padding-top:72px;padding-bottom:110px}
  .hx-slide[data-i="0"] h1,.hx h1,.hx .hx-t{font-size:32px;line-height:1.12}
  .hx-text{gap:16px}
  .hx .actions{flex-direction:column;width:100%}
  .hx .actions .btn{width:100%}
  .hx-tabs{grid-template-columns:repeat(5,1fr)!important;overflow:hidden!important;gap:6px}
  .hx-tab{font-size:0!important;padding:16px 0 14px!important;min-width:0}
  .hx-tab b{font-size:12px;display:block}

  /* swipeable rails with a peek of the next card (App Store / Stripe pattern) */
  .pillars,.trust-grid,.steps.grid{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;
    margin-left:-20px;margin-right:-20px;padding:2px 20px 10px;scroll-padding-left:20px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .pillars::-webkit-scrollbar,.trust-grid::-webkit-scrollbar,.steps.grid::-webkit-scrollbar{display:none}
  .pillars>*,.trust-grid>*,.steps.grid>*{flex:0 0 84%;scroll-snap-align:start}
  .steps.grid>*{flex-basis:72%}
  .rail-dots{display:flex;justify-content:center;gap:6px;margin-top:14px}
  .rail-dots i{width:6px;height:6px;border-radius:3px;background:#C9D2DB;transition:width .25s,background .25s}
  .rail-dots i.on{width:18px;background:var(--accent)}

  /* industries: two-up tiles instead of a tall stack */
  .ind{grid-template-columns:1fr 1fr!important;gap:10px}
  .ind a,.ind a:nth-child(1),.ind a:nth-child(2){min-height:200px!important;grid-column:span 1!important}
  .ind a:last-child:nth-child(odd){grid-column:1/-1!important;min-height:180px!important}
  .ind .in{margin:8px;padding:10px 12px}
  .ind h3{font-size:16px}.ind p{display:none}

  /* cards: one radius, no hairline frames around photos */
  .card,.pillar,.viz,.faq{border-radius:16px}
  .pillar{border-color:#E6EBF0}
  .pillar-img{border-radius:0}
  img{border:0}

  /* sticky action bar (the one action that matters, always in reach) */
  .mbar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:30;display:flex;gap:8px;
    padding:8px;border-radius:16px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
    box-shadow:0 10px 30px -10px rgba(14,20,40,.35),0 0 0 1px rgba(30,39,68,.06);transform:translateY(140%);transition:transform .35s cubic-bezier(.22,.61,.36,1)}
  .mbar.show{transform:none}
  .mbar a{flex:1;display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:11px;font:600 15.5px var(--bf);text-decoration:none}
  .mbar .p{background:var(--accent);color:#fff}
  .mbar .s{flex:0 0 52px;background:#EEF3F0;color:var(--accent)}
  .mbar .s svg{width:22px;height:22px}
  body.has-mbar .foot{padding-bottom:96px}

  /* footer: tidy two columns */
  .fgrid{grid-template-columns:1fr 1fr!important;gap:28px 18px}
  .fbrand{grid-column:1/-1}
}
@media (min-width:641px){.mbar,.rail-dots{display:none}}
