/* R-442 / R-443 (owner R-441): "How SalafiMate works". From the approved page (Drive, 19 Nov 18:51), its colours mapped
   one-to-one to the tokens and its spacing moved to the 4px scale (owner OK, R-443). Motion as approved: the phone
   cross-fades between screens (opacity and scale .97 over .5s); prefers-reduced-motion turns every transition off. */
.sm-hiw{--hiw-ease:cubic-bezier(.22,.61,.36,1);color:var(--ink-900);font-family:var(--font-sans);font-size:16px;line-height:1.55}
.sm-hiw-wrap{max-width:1080px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.sm-hiw .b-only{display:none}
.sm-hiw.is-bro .b-only{display:inline}
.sm-hiw.is-bro .s-only{display:none}
.sm-hiw.is-bro p.b-only{display:block}

.sm-hiw-head{padding-block:44px 20px;display:grid;gap:12px;max-width:62ch}
.sm-hiw-head h1{margin:0;font-size:clamp(30px,5vw,44px);line-height:1.12;font-weight:800;letter-spacing:-.02em;text-wrap:balance;color:var(--ink-900)}
.sm-hiw-head p{margin:0;color:var(--ink-500);font-size:17px}
.sm-hiw-switch{display:inline-flex;background:var(--surface-0);border:1px solid var(--line-200);border-radius:var(--radius-pill);padding:4px;gap:4px;justify-self:start;margin-top:8px}
.sm-hiw-switch button{font:inherit;font-weight:700;font-size:14.5px;border:0;border-radius:var(--radius-pill);padding:8px 16px;min-height:40px;background:transparent;color:var(--ink-500);cursor:pointer;transition:background .3s var(--hiw-ease),color .3s var(--hiw-ease)}
.sm-hiw-switch button[aria-pressed="true"]{background:var(--brand-700);color:var(--surface-0)}
.sm-hiw-switch button:focus-visible{outline:2px solid var(--brand-700);outline-offset:2px}

.sm-hiw-stage{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:0 56px;padding-block:20px 60px}
.sm-hiw-steps{display:grid}
.sm-hiw-step{min-height:80vh;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:24px 20px;opacity:.4;transition:opacity .5s var(--hiw-ease)} /* R-579 (owner 25 Nov): no border; the steps sit on the page background, and the step in view is shown at full strength */
.sm-hiw-step.on{opacity:1}
.sm-hiw-num{font-size:12.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-700)}
.sm-hiw-step h2{margin:0;font-size:clamp(22px,3vw,28px);line-height:1.2;font-weight:800;text-wrap:balance;color:var(--ink-900)}
.sm-hiw-step p{margin:0;max-width:52ch;color:var(--ink-700)}
.sm-hiw-step .sm-hiw-tip{font-size:14px;color:var(--ink-500);border:1px solid var(--line-200);border-radius:var(--radius-md);padding:8px 12px} /* R-482: an edge all round, not a left line */
.sm-hiw-phonecol{position:relative}
.sm-hiw-phone{position:sticky;top:max(24px,calc(50vh - 300px));width:300px;height:600px;margin-left:auto;background:var(--ink-900);border-radius:40px;padding:12px;box-shadow:0 24px 50px rgba(30,42,51,.18)}
.sm-hiw-inline{display:none}

/* The phone screen: the site's own phone header and tab bar, at phone-picture size */
.sm-hiw-screen{--hiw-tabs-h:60px;position:relative;width:100%;height:100%;background:var(--surface-50);border-radius:30px;overflow:hidden;color:var(--ink-900)}
.sm-hiw-bar{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--surface-0);border-bottom:1px solid var(--line-200)}
.sm-hiw-wm{font-weight:800;font-size:15px;letter-spacing:-.2px;color:var(--brand-700)}
.sm-hiw-wm > span{color:var(--honey-600)}
.sm-hiw-bar-r{display:flex;align-items:center;gap:8px}
.sm-hiw-help{font-size:11.5px;font-weight:600;color:var(--brand-700)}
.sm-hiw-av{display:inline-grid;place-items:center;border-radius:50%;background:var(--brand-700);color:var(--surface-0);font-weight:800;line-height:1}
.sm-hiw-av{width:28px;height:28px;font-size:11px;transition:opacity .3s var(--hiw-ease)}
.sm-hiw-screen[data-step="0"] .sm-hiw-av{opacity:0}
/* R-666 (owner 28 Nov): the real tab bar (frontend/inc/footer.blade.php, sm-design.css .aiz-mobile-bottom-nav) at phone-picture
   scale (276 / 390 px): four tabs sharing the width equally, 24 px icons and 13 px labels scaled, clear of the phone's
   rounded corners as before, the icons in --sm-muted and the labels in --ink-500, the selected tab in --sm-primary. No Account tab (R-450). */
.sm-hiw-tabs{position:absolute;left:0;right:0;bottom:0;height:var(--hiw-tabs-h);padding:4px 0 8px;background:var(--surface-0);border-top:1px solid var(--line-300);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;transition:transform .5s var(--hiw-ease)}
.sm-hiw-tabs.off{transform:translateY(100%)}
.sm-hiw-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:9.2px;line-height:12px;font-weight:600;color:var(--ink-500);white-space:nowrap;transition:color .4s var(--hiw-ease)}
.sm-hiw-tab > i{display:block;width:17px;height:17px;font-size:17px;line-height:17px;color:var(--sm-muted)}
.sm-hiw-tab.act,.sm-hiw-tab.act > i{color:var(--sm-primary)}

.sm-hiw-scene{position:absolute;inset:46px 0 var(--hiw-tabs-h);padding:16px;display:grid;align-content:start;gap:12px;opacity:0;transform:scale(.97);transition:opacity .5s var(--hiw-ease),transform .5s var(--hiw-ease);pointer-events:none}
.sm-hiw-scene.on{opacity:1;transform:none}
.sm-hiw-screen[data-step="0"] .sm-hiw-scene,.sm-hiw-phone .sm-hiw-scene[data-s="0"].on{bottom:0}
.sm-hiw-sh{font-weight:800;font-size:16px}
.sm-hiw-c{background:var(--surface-0);border:1px solid var(--line-200);border-radius:14px;padding:12px;display:grid;gap:8px;font-size:12.5px}
.sm-hiw-c b{font-size:13.5px}
.sm-hiw-mu{color:var(--ink-500);font-size:12px}
.sm-hiw-pill{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;padding:4px 8px;border-radius:var(--radius-pill);justify-self:start}
.sm-hiw-p-ok{background:var(--success-100);color:var(--success-700)}
.sm-hiw-p-wait{background:var(--warning-100);color:var(--warning-800)}
.sm-hiw-p-b{background:var(--info-100);color:var(--info-700)}
.sm-hiw-fld{height:30px;border:1px solid var(--line-200);border-radius:8px;background:var(--surface-0);display:flex;align-items:center;padding:0 8px;font-size:12px;color:var(--ink-900)}
.sm-hiw-btn{height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.sm-hiw-pri{background:var(--brand-700);color:var(--surface-0)}
.sm-hiw-sec{border:1px solid var(--brand-700);color:var(--brand-700);background:var(--surface-0)}
.sm-hiw-row{display:flex;justify-content:space-between;align-items:center}
.sm-hiw-row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* The screens' own motions, played while the screen is on */
.sm-hiw-tick{transform:scale(0);transition:transform .45s .7s cubic-bezier(.2,.7,.2,1.4)}
.on .sm-hiw-tick{transform:scale(1)}
.sm-hiw-typing{width:0;overflow:hidden;white-space:nowrap;transition:width 1s .5s steps(14)}
.on .sm-hiw-typing{width:14ch}
.sm-hiw-heart svg{display:block;width:22px;height:22px;fill:none;stroke:var(--danger-700);stroke-width:2;transition:fill .3s .8s,transform .3s .8s}
.on .sm-hiw-heart svg{fill:var(--danger-700);transform:scale(1.15)}
.sm-hiw-likes{position:relative;height:240px}
.sm-hiw-likes .sm-hiw-c{position:absolute;left:0;right:0;height:72px;align-content:center;transition:transform .6s .8s var(--hiw-ease)}
.sm-hiw-likes .sm-hiw-l1{transform:translateY(0)}
.sm-hiw-likes .sm-hiw-l2{transform:translateY(80px)}
.sm-hiw-likes .sm-hiw-l3{transform:translateY(160px)}
.on .sm-hiw-likes .sm-hiw-l1{transform:translateY(80px)}
.on .sm-hiw-likes .sm-hiw-l2{transform:translateY(0)}
.sm-hiw-next{opacity:0;transition:opacity .3s 1.3s}
.on .sm-hiw-next{opacity:1}
.sm-hiw-slide{transform:translateX(110%);transition:transform .5s .5s var(--hiw-ease)}
.on .sm-hiw-slide{transform:none}
.sm-hiw-flipbox{position:relative;height:36px}
.sm-hiw-flipbox > .sm-hiw-row2{position:absolute;inset:0}
.sm-hiw-flip .sm-hiw-yes{transition:opacity .3s 1.6s}
.sm-hiw-flip.on .sm-hiw-yes{opacity:0}
.sm-hiw-done{position:absolute;inset:0;display:flex;align-items:center;opacity:0;transition:opacity .3s 1.9s}
.sm-hiw-flip.on .sm-hiw-done{opacity:1}
.sm-hiw-walee{justify-items:center;text-align:center;padding-top:8px}
.sm-hiw-dot{width:54px;height:54px;border-radius:50%;background:var(--brand-700);color:var(--surface-0);display:grid;place-items:center;font-weight:800;font-size:13px}
.sm-hiw-lines{display:grid;grid-template-columns:1fr 54px 1fr;align-items:center;width:100%}
.sm-hiw-lines i{height:3px;border-radius:2px;transform:scaleX(0);transition:transform .7s .5s var(--hiw-ease)}
.sm-hiw-lines i:first-child{background:var(--honey-500);transform-origin:left}
.sm-hiw-lines i:last-child{background:var(--info-700);transform-origin:right}
.on .sm-hiw-lines i{transform:scaleX(1)}

.sm-hiw-end{padding-block:12px 72px;display:grid;justify-items:start;gap:16px;max-width:60ch}
.sm-hiw-end h2{margin:0;font-size:28px;font-weight:800;color:var(--ink-900)}
.sm-hiw-cta{display:inline-flex;align-items:center;height:48px;padding:0 24px;border-radius:12px;background:var(--brand-700);color:var(--surface-0)!important;font-weight:800;text-decoration:none!important}
.sm-hiw-cta:hover{background:var(--brand-800)}
.sm-hiw-cta:focus-visible{outline:2px solid var(--brand-700);outline-offset:3px}
.sm-hiw-foot{margin:0;font-size:13px;color:var(--ink-500)}

/* Phones (860 px and under): each step, then its own phone */
@media (max-width:860px){
  .sm-hiw-stage{grid-template-columns:minmax(0,1fr)}
  .sm-hiw-phonecol{display:none}
  .sm-hiw-step{min-height:0;opacity:1;padding:24px 0;border:0;border-radius:0;border-top:1px solid var(--line-200)}
  .sm-hiw-step.on{border-color:var(--line-200)} /* R-482: on phones every step is shown, so none is framed */
  .sm-hiw-inline{display:block;width:280px;max-width:100%;height:500px;margin:12px auto 0;background:var(--ink-900);border-radius:34px;padding:8px}
  .sm-hiw-inline .sm-hiw-screen{border-radius:26px}
  .sm-hiw-inline .sm-hiw-tab{font-size:8.8px} /* R-666: the smaller phone (264 / 390 px) */
  .sm-hiw-inline .sm-hiw-tab > i{width:16px;height:16px;font-size:16px;line-height:16px}
}
@media (prefers-reduced-motion:reduce){
  .sm-hiw *,.sm-hiw *::before,.sm-hiw *::after{transition:none!important}
}
