/* R-501 (owner 21 Nov; wording R-478, R-485, R-498, word for word): the home page's "How it works" in six steps and
   "After an introduction". From the Adviser's prototype (Drive, Home_SixSteps_AfterIntro_2026-11-21_1326.zip), its
   colours mapped to the tokens and its font the site's own (no third-party request).
   - The sister/brother switch changes the words and the pictures in both sections.
   - Tablets (701-899 px): a carousel of real phone screens in a phone frame; computers (900 px and wider): real computer
     screens in a laptop frame. The step in the middle is shown; its neighbours tilt away and fade.
   - Phones (700 px and under): the six steps as a still, numbered list, each with a close-up of the real screen.
   - "After an introduction": 4 across, 2 on tablets (1060 px and under), 1 on phones.
   - Reduced motion: no transitions (and no timer, see home-steps.js). */
.sm-hs{--hs-ease:cubic-bezier(.22,.61,.36,1);color:var(--ink-900);font-family:var(--font-sans);font-size:16px;line-height:1.5}
.sm-hs-wrap{max-width:1180px;margin:0 auto;padding:48px max(16px,env(safe-area-inset-left,0px)) 64px max(16px,env(safe-area-inset-right,0px));display:grid;justify-items:center;gap:12px;text-align:center}
.sm-hs .sm-hs-eyebrow{font-size:12.5px;font-weight:800;letter-spacing:.12em;color:var(--brand-700);margin:0}
.sm-hs h2.sm-hs-h{margin:0;font-size:clamp(26px,4vw,36px);line-height:1.2;font-weight:800;letter-spacing:-.02em;text-wrap:balance;color:var(--ink-900)}
.sm-hs .sm-hs-sub{margin:0;color:var(--ink-500);max-width:56ch}
.sm-hs-switch{display:inline-flex;background:var(--logo-cream);border:1px solid var(--line-200);border-radius:var(--radius-pill);padding:4px;gap:4px;margin-top:4px}
.sm-hs-switch button{font:inherit;font-weight:700;font-size:14px;border:0;border-radius:var(--radius-pill);padding:8px 16px;min-height:40px;background:transparent;color:var(--ink-500);cursor:pointer}
.sm-hs-switch button[aria-pressed="true"]{background:var(--brand-700);color:var(--surface-0)}
.sm-hs .b-only{display:none}
.sm-hs.is-bro .b-only{display:inline}
.sm-hs.is-bro .s-only{display:none}

/* the numbered steps above the carousel */
.sm-hs-track{position:relative;display:flex;justify-content:center;gap:4px;margin:16px 0 8px;max-width:100%;overflow-x:auto;scrollbar-width:none;padding:4px 2px}
.sm-hs-track::-webkit-scrollbar{display:none}
.sm-hs-track::before{content:"";position:absolute;top:27px;left:44px;right:44px;height:2px;background:var(--line-200)}
.sm-hs-fill{position:absolute;top:27px;left:44px;height:2px;background:var(--brand-700);transition:width .5s var(--hs-ease)}
.sm-hs-tab{position:relative;z-index:1;flex:0 0 auto;min-width:88px;display:grid;justify-items:center;gap:8px;padding:8px 8px;border:0;background:transparent;border-radius:12px;cursor:pointer;font:inherit;color:var(--ink-500)}
.sm-hs-num{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:800;background:var(--logo-cream);border:1.5px solid var(--line-300);color:var(--ink-500);transition:background .3s,border-color .3s,color .3s}
.sm-hs-tab.done .sm-hs-num{border-color:var(--brand-700);color:var(--brand-700)}
.sm-hs-tab[aria-selected="true"] .sm-hs-num{background:var(--brand-700);border-color:var(--brand-700);color:var(--surface-0)}
.sm-hs-name{font-size:13px;font-weight:600;white-space:nowrap}
.sm-hs-tab[aria-selected="true"] .sm-hs-name{color:var(--ink-900);font-weight:800}

/* the stage and its cards (tablets and computers) */
.sm-hs-stage{position:relative;width:100%;height:820px;perspective:1400px;margin-top:8px;overflow-x:clip}
.sm-hs-card{position:absolute;left:calc(50% - 170px);top:0;width:340px;height:800px;border-radius:22px;background:var(--logo-cream);border:1px solid var(--line-300);
  box-shadow:0 18px 40px rgba(31,42,36,.10);padding:24px 24px 24px;text-align:left;display:flex;flex-direction:column;gap:8px;overflow:hidden;
  transition:transform .7s var(--hs-ease),opacity .7s var(--hs-ease),filter .7s var(--hs-ease);opacity:0;transform:translateX(0) scale(.7);pointer-events:none}
.sm-hs-card.on{opacity:1;transform:translateX(0) scale(1);z-index:3;pointer-events:auto}
.sm-hs-card.prev{opacity:.45;transform:translateX(-78%) rotateY(26deg) scale(.82);z-index:2;filter:saturate(.7)}
.sm-hs-card.next{opacity:.45;transform:translateX(78%) rotateY(-26deg) scale(.82);z-index:2;filter:saturate(.7)}
/* R-501 checks: the faded cards either side show their frame and picture only; their words are hidden, so no faded text
   fails the contrast check (axe color-contrast) and the words read only on the card in view */
.sm-hs-card:not(.on) h3,.sm-hs-card:not(.on) p,.sm-hs-card:not(.on) .sm-hs-sb,.sm-hs-card:not(.on) .sm-hs-chrome span{visibility:hidden}
.sm-hs-card h3{margin:0;font-size:27px;line-height:1.12;font-weight:800;letter-spacing:-.02em;color:var(--ink-900)}
.sm-hs-card h3 em,.sm-hs-item h3 em,.sm-hs-tool h3 em{font-style:normal;color:var(--brand-700)}
.sm-hs-card p{margin:0;font-size:14.5px;color:var(--ink-700)}
.sm-hs.is-bro p.b-only{display:block}

/* real screens: one for sisters, one for brothers */
.sm-hs-shot{display:block;width:100%;height:auto}
.sm-hs img.sm-hs-shot.b-only{display:none}
.sm-hs.is-bro img.sm-hs-shot.b-only{display:block}
.sm-hs.is-bro img.sm-hs-shot.s-only{display:none}

/* the phone frame: the screen is a 390 x 844 window under a drawn status bar */
.sm-hs-phone{margin:auto auto 28px;width:228px;flex:none;background:var(--ink-900);border-radius:34px;border:9px solid var(--ink-900);box-shadow:0 14px 30px rgba(31,42,36,.18)}
.sm-hs-screen{background:var(--surface-0);border-radius:26px;overflow:hidden;position:relative}
.sm-hs-sb{display:flex;height:31px;align-items:center;justify-content:space-between;padding:0 16px 0 28px;background:var(--surface-0);font-size:9.5px;font-weight:600;color:var(--ink-900);letter-spacing:-.01em}
.sm-hs-sb::after{content:"";width:39px;height:8.3px;background:var(--ink-900);
  -webkit-mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="56" height="12" viewBox="0 0 56 12"%3E%3Crect x="0" y="8" width="3" height="4" rx=".7"/%3E%3Crect x="4.2" y="5.8" width="3" height="6.2" rx=".7"/%3E%3Crect x="8.4" y="3.4" width="3" height="8.6" rx=".7"/%3E%3Crect x="12.6" y="1" width="3" height="11" rx=".7"/%3E%3Cg fill="none" stroke="black" stroke-width="1.7" stroke-linecap="round"%3E%3Cpath d="M20 4.6a8.2 8.2 0 0 1 11 0"/%3E%3Cpath d="M22.2 7.1a5 5 0 0 1 6.6 0"/%3E%3C/g%3E%3Ccircle cx="25.5" cy="10.2" r="1.5"/%3E%3Crect x="35.6" y="1.4" width="17" height="9.2" rx="2.6" fill="none" stroke="black" stroke-opacity=".45" stroke-width="1.1"/%3E%3Crect x="37.4" y="3.2" width="13.4" height="5.6" rx="1.4"/%3E%3Crect x="53.6" y="4.3" width="1.6" height="3.4" rx=".7" fill-opacity=".45"/%3E%3C/svg%3E') center/contain no-repeat;
  mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="56" height="12" viewBox="0 0 56 12"%3E%3Crect x="0" y="8" width="3" height="4" rx=".7"/%3E%3Crect x="4.2" y="5.8" width="3" height="6.2" rx=".7"/%3E%3Crect x="8.4" y="3.4" width="3" height="8.6" rx=".7"/%3E%3Crect x="12.6" y="1" width="3" height="11" rx=".7"/%3E%3Cg fill="none" stroke="black" stroke-width="1.7" stroke-linecap="round"%3E%3Cpath d="M20 4.6a8.2 8.2 0 0 1 11 0"/%3E%3Cpath d="M22.2 7.1a5 5 0 0 1 6.6 0"/%3E%3C/g%3E%3Ccircle cx="25.5" cy="10.2" r="1.5"/%3E%3Crect x="35.6" y="1.4" width="17" height="9.2" rx="2.6" fill="none" stroke="black" stroke-opacity=".45" stroke-width="1.1"/%3E%3Crect x="37.4" y="3.2" width="13.4" height="5.6" rx="1.4"/%3E%3Crect x="53.6" y="4.3" width="1.6" height="3.4" rx=".7" fill-opacity=".45"/%3E%3C/svg%3E') center/contain no-repeat}
.sm-hs-screen::after{content:"";position:absolute;top:6px;left:50%;width:64px;height:19px;margin-left:-32px;border-radius:999px;background:var(--ink-900)}
.sm-hs-home{display:block;height:16px;background:var(--surface-0);position:relative}
.sm-hs-home::after{content:"";position:absolute;left:50%;top:6px;width:72px;margin-left:-36px;height:4px;border-radius:2px;background:var(--ink-900)}

/* the laptop frame (computers only): the screen is a 1280 x 800 window under a slim browser bar */
.sm-hs-laptop{display:none;margin:auto auto 32px;width:520px;flex:none}
.sm-hs-lid{background:var(--ink-900);border-radius:14px 14px 4px 4px;padding:8px 8px 12px;box-shadow:0 14px 30px rgba(31,42,36,.18)}
.sm-hs-view{background:var(--surface-0);border-radius:4px;overflow:hidden}
.sm-hs-chrome{height:22px;display:flex;align-items:center;gap:4px;padding:0 8px;background:var(--line-100);border-bottom:1px solid var(--line-200)}
.sm-hs-chrome i{width:7px;height:7px;border-radius:50%;background:var(--line-300)}
.sm-hs-chrome span{margin:0 auto;padding:1px 12px;border-radius:999px;background:var(--surface-0);font-size:9.5px;font-weight:600;color:var(--ink-500);transform:translateX(-12px)}
.sm-hs-base{height:14px;left:-38px;width:calc(100% + 76px);background:linear-gradient(var(--line-200),var(--line-300));border-radius:2px 2px 14px 14px;position:relative}
.sm-hs-base::before{content:"";position:absolute;top:0;left:calc(50% - 43px);width:86px;height:5px;border-radius:0 0 8px 8px;background:var(--ink-400)}

.sm-hs-ctrl{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:8px}
.sm-hs-arrow{width:44px;height:44px;border-radius:50%;border:1px solid var(--line-300);background:var(--logo-cream);color:var(--brand-700);font:inherit;font-size:18px;font-weight:800;cursor:pointer;padding:0;line-height:1}
.sm-hs-pause{min-height:44px;padding:0 16px;border-radius:var(--radius-pill);border:1px solid var(--line-300);background:var(--logo-cream);color:var(--ink-500);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.sm-hs-tab:focus-visible,.sm-hs-arrow:focus-visible,.sm-hs-pause:focus-visible,.sm-hs-switch button:focus-visible,.sm-hs .sm-hs-more:focus-visible{outline:2px solid var(--brand-700);outline-offset:2px}
.sm-hs .sm-hs-more{display:inline-flex;align-items:center;min-height:44px;font-weight:800;color:var(--brand-700);text-decoration:underline;text-underline-offset:3px}
.sm-hs .sm-hs-foot{font-size:13px;color:var(--ink-500);margin:0}

/* phones: the six steps as a still list, each with a readable close-up of the real screen */
.sm-hs-list{display:none;list-style:none;margin:8px 0 0;padding:0;width:100%;max-width:440px;text-align:left}
.sm-hs-item{display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:12px;position:relative;padding-bottom:32px}
.sm-hs-item::before{content:"";position:absolute;left:16px;top:38px;bottom:4px;width:2px;background:var(--line-200)}
.sm-hs-item:last-child{padding-bottom:4px}
.sm-hs-item:last-child::before{display:none}
.sm-hs-item .sm-hs-n{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--brand-700);color:var(--surface-0);font-size:14px;font-weight:800}
.sm-hs-item .sm-hs-body{display:grid;gap:8px;min-width:0}
.sm-hs-item .sm-hs-step{font-size:12px;font-weight:800;letter-spacing:.1em;color:var(--brand-700);margin-top:8px}
.sm-hs-item h3{margin:0;font-size:22px;line-height:1.15;font-weight:800;letter-spacing:-.02em;color:var(--ink-900)}
.sm-hs-item p{margin:0;font-size:15px;color:var(--ink-700)}
.sm-hs-snip{margin-top:8px;border:1px solid var(--line-300);border-radius:14px;overflow:hidden;background:var(--surface-0);box-shadow:0 8px 20px rgba(31,42,36,.08)}

@media (max-width:700px){
  .sm-hs-track,.sm-hs-stage,.sm-hs-ctrl{display:none}
  .sm-hs-list{display:block}
}
/* computers: the laptop replaces the phone, and the card widens to hold it */
@media (min-width:900px){
  .sm-hs-phone{display:none}
  .sm-hs-laptop{display:block}
  .sm-hs-stage{height:616px}
  .sm-hs-card{width:640px;left:calc(50% - 320px);height:596px;padding:28px 24px 24px}
  .sm-hs-card h3{font-size:30px}
  .sm-hs-card p{font-size:15px;max-width:52ch}
  .sm-hs-card.prev{transform:translateX(-74%) rotateY(24deg) scale(.8)}
  .sm-hs-card.next{transform:translateX(74%) rotateY(-24deg) scale(.8)}
}

/* "After an introduction": four private tools, each with a close-up of the complete real card (follows the switch) */
.sm-hs-after{width:100%;margin-top:56px;padding-top:44px;border-top:1px solid var(--line-200);display:grid;justify-items:center;gap:12px}
.sm-hs-tools{list-style:none;margin:16px 0 0;padding:0;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 24px;text-align:left;align-items:start}
.sm-hs-tool{display:grid;gap:8px;min-width:0}
.sm-hs-tool h3{margin:0;font-size:20px;line-height:1.2;font-weight:800;letter-spacing:-.015em;color:var(--ink-900)}
.sm-hs-tool p{margin:0;font-size:14.5px;color:var(--ink-700)}
.sm-hs-pic{margin-top:8px;max-width:358px;width:100%}
.sm-hs-pic img{display:block;width:100%;height:auto}
.sm-hs .sm-hs-pic img.b-only{display:none}
.sm-hs.is-bro .sm-hs-pic img.b-only{display:block}
.sm-hs.is-bro .sm-hs-pic img.s-only{display:none}
@media (max-width:1060px){.sm-hs-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 28px}}
/* R-579 (owner 25 Nov): on computers the four pictures start on one line. Each tool spans three rows of the list's grid
   (subgrid): heading, words, picture. Every heading row is as tall as the tallest heading, and every words row as tall as
   the longest words, so the pictures' tops line up whatever the wording. Phones (700 px and under) stack as before. */
@media (min-width:701px){
  .sm-hs-tools{row-gap:0}
  .sm-hs-tool{grid-row:span 3;grid-template-rows:subgrid;gap:0;align-content:start}
  .sm-hs-tool p{margin-top:8px}
  .sm-hs-pic{margin-top:16px}
}
@media (min-width:701px) and (max-width:1060px){.sm-hs-tools{column-gap:28px}.sm-hs-tool:nth-child(-n+2) .sm-hs-pic{margin-bottom:32px}}
@media (max-width:700px){.sm-hs-after{margin-top:40px;padding-top:32px}.sm-hs-tools{grid-template-columns:minmax(0,1fr);max-width:440px;gap:32px}.sm-hs-tool h3{font-size:22px}.sm-hs-tool p{font-size:15px}}
@media (prefers-reduced-motion:reduce){.sm-hs *,.sm-hs *::before,.sm-hs *::after{transition:none!important}}
/* R-502: the registration-only notice (the /how-it-works notice, R-443b) and the visitors' button under the four items */
.sm-hs-ro{max-width:62ch;margin:4px 0 0;text-align:left}
.sm-hs-cta{margin-top:16px}
