/* SHIFA AI public home page — "One phone, one journey".
   Two designed modes (light and dark). The page is complete and calm as plain HTML and CSS: that is
   the layout used without the script and with reduced motion. When the script adds html.motion, the
   same markup becomes a pinned stage: one phone, moved by scroll, with the app's screens played on it. */

/* Headline and text faces are served from this site (fonts/, open licences beside them) with display: swap:
   Readex Pro, IBM Plex Sans Arabic and Plus Jakarta Sans, in their Arabic, Latin and Latin Extended parts.
   The page calls no outside server. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-500-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/readex-pro-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/readex-pro-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/readex-pro-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/readex-pro-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/readex-pro-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/readex-pro-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/readex-pro-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/readex-pro-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/readex-pro-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* These stand-ins are sized to the faces above, so the first lines do not jump when the real faces load. */
@font-face { font-family: "SHIFA Head Stand-in"; src: local("Segoe UI"), local("Noto Sans Arabic"), local("Noto Naskh Arabic"), local("Geeza Pro"), local("Arial"); size-adjust: 106%; ascent-override: 96%; descent-override: 34%; line-gap-override: 0%; }
@font-face { font-family: "SHIFA Text Stand-in"; src: local("Segoe UI"), local("Noto Sans Arabic"), local("Noto Naskh Arabic"), local("Geeza Pro"), local("Arial"); size-adjust: 95%; ascent-override: 104%; descent-override: 36%; line-gap-override: 0%; }

/* ============ Tokens ============ */
:root {
  color-scheme: light;
  --bg: #F4F8F8; --bg-2: #EAF3F1; --sheet: #FFFFFF; --card: #FFFFFF;
  --ink: #0B1533; --ink-2: #44546F; --ink-3: #5B6B86;
  --teal: #0A8475; --teal-ink: #0A6E62; --teal-fill: #0A6E62; --on-teal: #FFFFFF; --teal-wash: #E3F1EE;
  --line: rgba(11, 21, 51, .10); --line-2: rgba(11, 21, 51, .18);
  --btn-bg: linear-gradient(180deg, #18254F 0%, #0B1533 100%); --btn-ink: #FFFFFF; --btn-sub: #C9D4E8; --btn-spot: rgba(94, 230, 211, .30);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(11, 21, 51, .25), 0 16px 32px -14px rgba(11, 21, 51, .55);
  --btn-shadow-hi: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 4px rgba(11, 21, 51, .25), 0 26px 44px -16px rgba(11, 21, 51, .6);
  --chip-bg: #FFFFFF; --chip-shadow: 0 1px 2px rgba(11, 21, 51, .06), 0 10px 24px -12px rgba(11, 21, 51, .25);
  --card-shadow: 0 1px 2px rgba(11, 21, 51, .06), 0 18px 40px -22px rgba(11, 21, 51, .38);
  --sheet-top: 0 -1px 0 rgba(11, 21, 51, .06), 0 -20px 40px -30px rgba(11, 21, 51, .34); --sheet-bot: 0 20px 40px -30px rgba(11, 21, 51, .34); --sheet-shadow: var(--sheet-top), var(--sheet-bot);
  --inv-bg: #0B1533; --inv-ink: #EEF3FB; --inv-ink-2: #C3CFE4; --inv-mark: #5EE6D3; --inv-line: rgba(238, 243, 251, .16);
  --app-bg: #F2F8F7;
  --rim: linear-gradient(145deg, #FDFEFE 0%, #D5DEE2 28%, #F2F6F7 52%, #B9C5CB 78%, #E6ECEE 100%); --rim-side: #C3CDD3; --rim-side-2: #E9EEF0;
  --phone-shadow: 0 2px 3px rgba(11, 21, 51, .10), 0 34px 60px -26px rgba(11, 21, 51, .42);
  --halo: radial-gradient(closest-side, hsla(var(--amb, 170), 52%, 88%, 0) 0%, hsla(var(--amb, 170), 54%, 83%, .58) 44%, hsla(var(--amb, 170), 50%, 88%, 0) 100%);
  --cast: radial-gradient(closest-side, rgba(11, 21, 51, .42), rgba(11, 21, 51, .14) 55%, rgba(11, 21, 51, 0));
  --sheen-a: rgba(255, 255, 255, .34); --sheen-b: rgba(255, 255, 255, .08);
  --glare: linear-gradient(104deg, #EEF5F4 0%, #FFFFFF 44%, #E4EFED 100%);
  --dwin-bg: #FFFFFF; --dwin-bar: #EDF3F2; --dwin-dot: #C4D0D2;
  --dwin-shadow: 0 2px 3px rgba(11, 21, 51, .08), 0 30px 56px -28px rgba(11, 21, 51, .42);
  --shut: repeating-linear-gradient(to bottom, rgba(11, 21, 51, 0) 0 15px, rgba(11, 21, 51, .07) 15px 16px), linear-gradient(180deg, #F8FBFB, #E9F1F0);
  --shut-edge: 0 2px 0 rgba(11, 21, 51, .14), 0 14px 24px -12px rgba(11, 21, 51, .35);
  --leaf-shadow: 0 1px 2px rgba(11, 21, 51, .10), 0 22px 40px -22px rgba(11, 21, 51, .40);
  --atmo: radial-gradient(90vmax 70vmax at 20% -10%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%), radial-gradient(80vmax 80vmax at 110% 110%, #E1EFEC 0%, rgba(225, 239, 236, 0) 62%), linear-gradient(180deg, #F4F8F8, #EDF4F3);
  --blob-1: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); --blob-2: radial-gradient(closest-side, rgba(10, 132, 117, .11), rgba(10, 132, 117, 0));
  --focus: #0A6E62;
  --f-latin: "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif;
  --f-text: "Plus Jakarta Sans", "IBM Plex Sans Arabic", "SHIFA Text Stand-in", "Segoe UI", Tahoma, sans-serif;
  --f-head: "Plus Jakarta Sans", "Readex Pro", "SHIFA Head Stand-in", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --gut: clamp(16px, 4.6vw, 64px);
  --ease: cubic-bezier(.2, .7, .15, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070D1F; --bg-2: #0C1530; --sheet: #0C1530; --card: #0F1936;
  --ink: #EEF3FB; --ink-2: #A9B8D4; --ink-3: #93A3C2;
  --teal: #2DD4BF; --teal-ink: #5EE6D3; --teal-fill: #2DD4BF; --on-teal: #04121A; --teal-wash: rgba(45, 212, 191, .12);
  --line: rgba(169, 184, 212, .16); --line-2: rgba(169, 184, 212, .28);
  --btn-bg: linear-gradient(180deg, #FFFFFF 0%, #DCE6F5 100%); --btn-ink: #070D1F; --btn-sub: #2C3D61; --btn-spot: rgba(45, 212, 191, .40);
  --btn-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(94, 230, 211, .30), 0 14px 40px -14px rgba(45, 212, 191, .50);
  --btn-shadow-hi: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(94, 230, 211, .55), 0 18px 56px -12px rgba(45, 212, 191, .70);
  --chip-bg: #111C3D; --chip-shadow: 0 0 0 1px rgba(45, 212, 191, .06), 0 10px 30px -14px rgba(45, 212, 191, .40);
  --card-shadow: 0 0 0 1px rgba(45, 212, 191, .10), 0 16px 44px -22px rgba(45, 212, 191, .38);
  --sheet-top: 0 -1px 0 rgba(94, 230, 211, .26), 0 -18px 44px -30px rgba(45, 212, 191, .50); --sheet-bot: 0 1px 0 rgba(94, 230, 211, .26), 0 18px 44px -30px rgba(45, 212, 191, .50); --sheet-shadow: var(--sheet-top), var(--sheet-bot);
  --inv-bg: #E4F0EE; --inv-ink: #0B1533; --inv-ink-2: #36476A; --inv-mark: #0A6E62; --inv-line: rgba(11, 21, 51, .14);
  --app-bg: #0B1220;
  --rim: linear-gradient(145deg, #4B5878 0%, #1A2340 30%, #3A4666 52%, #0E1530 80%, #2A3555 100%); --rim-side: #131B36; --rim-side-2: #33405F;
  --phone-shadow: 0 0 0 1px rgba(94, 230, 211, .16), 0 0 60px -18px hsla(var(--amb, 170), 78%, 54%, .40);
  --halo: radial-gradient(closest-side, hsla(var(--amb, 170), 80%, 50%, .20) 0%, hsla(var(--amb, 170), 80%, 48%, .07) 52%, hsla(var(--amb, 170), 80%, 48%, 0) 100%);
  --cast: none;
  --sheen-a: rgba(190, 255, 245, .16); --sheen-b: rgba(190, 255, 245, .03);
  --glare: linear-gradient(104deg, #0A1228 0%, #163158 44%, #0B1530 100%);
  --dwin-bg: #0B1220; --dwin-bar: #111C3D; --dwin-dot: #2B3B64;
  --dwin-shadow: 0 0 0 1px rgba(94, 230, 211, .18), 0 0 56px -20px rgba(45, 212, 191, .38);
  --shut: repeating-linear-gradient(to bottom, rgba(169, 184, 212, 0) 0 15px, rgba(169, 184, 212, .13) 15px 16px), linear-gradient(180deg, #18254F, #101B3E);
  --shut-edge: 0 1px 0 rgba(94, 230, 211, .45), 0 14px 28px -12px rgba(45, 212, 191, .35);
  --leaf-shadow: 0 0 0 1px rgba(94, 230, 211, .14), 0 0 40px -18px rgba(45, 212, 191, .40);
  --atmo: radial-gradient(80vmax 60vmax at 85% -10%, rgba(18, 179, 160, .14) 0%, rgba(18, 179, 160, 0) 62%), radial-gradient(90vmax 80vmax at -10% 110%, rgba(40, 72, 170, .20) 0%, rgba(40, 72, 170, 0) 60%), linear-gradient(180deg, #070D1F, #080F24);
  --blob-1: radial-gradient(closest-side, rgba(18, 179, 160, .14), rgba(18, 179, 160, 0)); --blob-2: radial-gradient(closest-side, rgba(52, 84, 190, .18), rgba(52, 84, 190, 0));
  --focus: #5EE6D3;
}
/* The same dark values when the script has not run: follow the system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #070D1F; --bg-2: #0C1530; --sheet: #0C1530; --card: #0F1936;
    --ink: #EEF3FB; --ink-2: #A9B8D4; --ink-3: #93A3C2;
    --teal: #2DD4BF; --teal-ink: #5EE6D3; --teal-fill: #2DD4BF; --on-teal: #04121A; --teal-wash: rgba(45, 212, 191, .12);
    --line: rgba(169, 184, 212, .16); --line-2: rgba(169, 184, 212, .28);
    --btn-bg: linear-gradient(180deg, #FFFFFF 0%, #DCE6F5 100%); --btn-ink: #070D1F; --btn-sub: #2C3D61; --btn-spot: rgba(45, 212, 191, .40);
    --btn-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(94, 230, 211, .30), 0 14px 40px -14px rgba(45, 212, 191, .50);
    --btn-shadow-hi: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(94, 230, 211, .55), 0 18px 56px -12px rgba(45, 212, 191, .70);
    --chip-bg: #111C3D; --chip-shadow: 0 0 0 1px rgba(45, 212, 191, .06), 0 10px 30px -14px rgba(45, 212, 191, .40);
    --card-shadow: 0 0 0 1px rgba(45, 212, 191, .10), 0 16px 44px -22px rgba(45, 212, 191, .38);
    --sheet-top: 0 -1px 0 rgba(94, 230, 211, .26), 0 -18px 44px -30px rgba(45, 212, 191, .50); --sheet-bot: 0 1px 0 rgba(94, 230, 211, .26), 0 18px 44px -30px rgba(45, 212, 191, .50); --sheet-shadow: var(--sheet-top), var(--sheet-bot);
    --inv-bg: #E4F0EE; --inv-ink: #0B1533; --inv-ink-2: #36476A; --inv-mark: #0A6E62; --inv-line: rgba(11, 21, 51, .14);
    --app-bg: #0B1220;
    --rim: linear-gradient(145deg, #4B5878 0%, #1A2340 30%, #3A4666 52%, #0E1530 80%, #2A3555 100%); --rim-side: #131B36; --rim-side-2: #33405F;
    --phone-shadow: 0 0 0 1px rgba(94, 230, 211, .16), 0 0 60px -18px hsla(var(--amb, 170), 78%, 54%, .40);
    --halo: radial-gradient(closest-side, hsla(var(--amb, 170), 80%, 50%, .20) 0%, hsla(var(--amb, 170), 80%, 48%, .07) 52%, hsla(var(--amb, 170), 80%, 48%, 0) 100%);
    --cast: none;
    --sheen-a: rgba(190, 255, 245, .16); --sheen-b: rgba(190, 255, 245, .03);
    --glare: linear-gradient(104deg, #0A1228 0%, #163158 44%, #0B1530 100%);
    --dwin-bg: #0B1220; --dwin-bar: #111C3D; --dwin-dot: #2B3B64;
    --dwin-shadow: 0 0 0 1px rgba(94, 230, 211, .18), 0 0 56px -20px rgba(45, 212, 191, .38);
    --shut: repeating-linear-gradient(to bottom, rgba(169, 184, 212, 0) 0 15px, rgba(169, 184, 212, .13) 15px 16px), linear-gradient(180deg, #18254F, #101B3E);
    --shut-edge: 0 1px 0 rgba(94, 230, 211, .45), 0 14px 28px -12px rgba(45, 212, 191, .35);
    --leaf-shadow: 0 0 0 1px rgba(94, 230, 211, .14), 0 0 40px -18px rgba(45, 212, 191, .40);
    --atmo: radial-gradient(80vmax 60vmax at 85% -10%, rgba(18, 179, 160, .14) 0%, rgba(18, 179, 160, 0) 62%), radial-gradient(90vmax 80vmax at -10% 110%, rgba(40, 72, 170, .20) 0%, rgba(40, 72, 170, 0) 60%), linear-gradient(180deg, #070D1F, #080F24);
    --blob-1: radial-gradient(closest-side, rgba(18, 179, 160, .14), rgba(18, 179, 160, 0)); --blob-2: radial-gradient(closest-side, rgba(52, 84, 190, .18), rgba(52, 84, 190, 0));
    --focus: #5EE6D3;
  }
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; interpolate-size: allow-keywords; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-size: 17px; line-height: 1.8; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}
html:lang(en) body { line-height: 1.62; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--atmo); pointer-events: none; }
html.swap body { visibility: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: .22em; text-decoration-thickness: .08em; }
b { font-weight: 600; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; line-height: 1.32; text-wrap: balance; }
html:lang(en) :is(h1, h2, h3) { line-height: 1.12; letter-spacing: -.022em; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main { overflow-x: clip; }
main:focus { outline: none; }
::selection { background: var(--teal-fill); color: var(--on-teal); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 60; inset-block-start: 10px; inset-inline-start: 10px; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ============ Header: brand, language, theme. Nothing else. ============ */
.top {
  position: absolute; z-index: 30; inset-block-start: 0; inset-inline: 0; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-inline: var(--gut); padding-block-start: env(safe-area-inset-top);
}
/* Pinned only while the stage runs. In the still layout (no script, reduced motion) it scrolls away with the page. */
html.motion .top { position: fixed; }
.top::before { content: ""; position: absolute; inset: 0 0 -22px; z-index: -1; background: linear-gradient(to bottom, var(--bg) 64%, transparent); opacity: 0; transition: opacity .35s; pointer-events: none; }
.top.veil::before { opacity: 1; }
.top.on-sheet::before { inset: 0; background: var(--sheet); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-word { font: 700 19px/1 var(--f-latin); letter-spacing: -.01em; color: var(--ink); }
.brand-word b { font-weight: 700; color: var(--teal-ink); }
.top-tools { display: flex; align-items: center; gap: 8px; }
.lang, .mode { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--chip-bg); border: 1px solid var(--line); }
.lang button, .mode button {
  min-width: 44px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: var(--ink-2);
  font: 500 14px/1 var(--f-text); cursor: pointer; transition: background .25s, color .25s;
}
.lang button[lang="en"] { font-family: var(--f-latin); }
.lang button[aria-pressed="true"], .mode button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang button:hover:not([aria-pressed="true"]), .mode button:hover:not([aria-pressed="true"]) { color: var(--ink); }
/* The switch reads sun, then moon, in both directions: it is laid out left to right on purpose. */
.theme-switch {
  position: relative; display: inline-grid; grid-template-columns: 34px 34px; place-items: center; width: 78px; height: 50px; padding: 0 5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--chip-bg); color: var(--ink-3); cursor: pointer; direction: ltr;
}
.theme-switch svg { position: relative; z-index: 1; width: 19px; height: 19px; transition: color .3s, transform .5s var(--ease); }
.theme-switch .thumb { position: absolute; inset-block: 7px; inset-inline-start: 5px; width: 34px; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease); }
.theme-switch .ic-sun { color: var(--bg); transform: rotate(0); }
.theme-switch[aria-pressed="true"] .thumb { transform: translateX(34px); }
.theme-switch[aria-pressed="true"] .ic-sun { color: var(--ink-3); transform: rotate(-70deg); }
.theme-switch[aria-pressed="true"] .ic-moon { color: var(--bg); transform: rotate(-12deg); }
@media (hover: hover) { .theme-switch:hover { border-color: var(--teal); } }
html:not(.js) :is(.lang, .theme-switch, .mode) { display: none; }
@media (max-width: 400px) {
  .top { height: 60px; gap: 6px; }
  .brand img { width: 34px; } .brand-word { font-size: 17px; }
  .lang button { padding: 0 9px; font-size: 13.5px; }
  .theme-switch { width: 72px; grid-template-columns: 31px 31px; } .theme-switch .thumb { width: 31px; inset-block: 9px; } .theme-switch[aria-pressed="true"] .thumb { transform: translateX(31px); }
}
@media (max-width: 349px) { .brand-word { display: none; } html.motion:lang(en) .chip { font-size: 12.5px; padding-inline: 2px; } }

/* ============ Store buttons: the only actions on the page ============ */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 11px; flex: 1 1 auto; max-width: 340px; min-height: 68px; padding-block: 9px; padding-inline: 15px 16px;
  border-radius: 20px; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; box-shadow: var(--btn-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.store::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(150px circle at var(--mx) var(--my), var(--btn-spot), transparent 72%); opacity: 0; transition: opacity .35s; }
.store::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: -40%; width: 34%; z-index: -1; background: linear-gradient(100deg, transparent, var(--btn-spot), transparent); transform: translateX(0) skewX(-18deg); opacity: 0; }
.store svg { flex: none; width: 28px; height: 28px; transition: transform .4s var(--ease); }
.store-txt { display: grid; gap: 1px; text-align: start; min-width: 0; }
.store b { font: 700 20px/1.25 var(--f-latin); letter-spacing: -.01em; }
.store small { font-size: 15.5px; line-height: 1.45; font-weight: 500; color: var(--btn-sub); white-space: nowrap; }
/* English: the small line is longer, so the button is set a little tighter and the two still sit side by side */
html:lang(en) .store small { line-height: 1.35; font-size: 15px; }
html:lang(en) .store:not(.store-sm) { padding-inline: 13px; gap: 9px; }
@media (max-width: 599.98px) { .store { max-width: none; } }
@media (max-width: 359.98px) { .store { padding-inline: 12px; gap: 9px; } .store svg { width: 26px; height: 26px; } .store small { font-size: 15px; } html:lang(en) .store small { font-size: 14px; } html:lang(en) .store:not(.store-sm) { padding-inline: 11px; gap: 8px; } }
@media (hover: hover) {
  .store:hover { transform: translateY(-3px); box-shadow: var(--btn-shadow-hi); }
  .store:hover::before { opacity: 1; }
  .store:hover svg { transform: scale(1.08); }
}
.store:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.store:focus-visible { outline-offset: 4px; border-radius: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .store:focus-visible::after, .store:active::after { animation: glint .9s var(--ease); }
  @media (hover: hover) { .store:hover::after { animation: glint .9s var(--ease); } }
}
@keyframes glint { 0% { opacity: 0; transform: translateX(0) skewX(-18deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(520%) skewX(-18deg); } }
@keyframes glint-rtl { 0% { opacity: 0; transform: translateX(0) skewX(18deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(-520%) skewX(18deg); } }
@media (prefers-reduced-motion: no-preference) {
  [dir="rtl"] .store:focus-visible::after, [dir="rtl"] .store:active::after { animation-name: glint-rtl; }
  @media (hover: hover) { [dir="rtl"] .store:hover::after { animation-name: glint-rtl; } }
}

/* ============ The phone: one object, used on the stage and for the still pictures ============ */
.phone {
  position: relative; width: var(--pw); height: calc(var(--pw) * var(--pr, 2.184)); padding: calc(var(--pw) * .028);
  border-radius: calc(var(--pw) * .15); background: var(--rim); box-shadow: var(--phone-shadow);
}
.phone::before { content: ""; position: absolute; inset: calc(var(--pw) * .014); border-radius: calc(var(--pw) * .14); background: #04060C; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * .123); background: var(--app-bg); isolation: isolate; }
.shot { display: block; }
.strip { display: block; height: calc(var(--pw) * .085); background: var(--app-bg); }
.win { display: block; height: calc(var(--pw) * (var(--pr, 2.184) - .141)); overflow: hidden; }
.win picture { display: block; }
.win img { width: 100%; height: auto; }
.island { position: absolute; inset-block-start: calc(var(--pw) * .047); inset-inline-start: 50%; width: 27%; height: calc(var(--pw) * .058); margin-inline-start: -13.5%; border-radius: 999px; background: #04060C; }
.sheen, .scan, .glare, .edge, .fan, .shutter { display: none; }

/* The doctor's screen: a plain browser window, cropped to the part of the dashboard that matters. */
.dwin { border-radius: 14px; overflow: hidden; background: var(--dwin-bg); box-shadow: var(--dwin-shadow); }
.dwin-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding-inline: 12px; background: var(--dwin-bar); direction: ltr; }
.dwin-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--dwin-dot); }
.dwin-bar b { flex: 1; height: 12px; margin-inline: 12px 44px; border-radius: 999px; background: var(--dwin-dot); opacity: .45; }
.dwin-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--app-bg); }
.dwin-view picture { display: block; }
.dwin-view img { position: absolute; inset-block-start: 0; inset-inline-start: -54%; width: 252.6%; max-width: none; height: auto; }
/* the window is narrower than the dashboard: where the picture is cut, it dissolves into the page instead of ending on half a card */
.dwin-view::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: var(--fade-w, 16%); background: linear-gradient(to left, var(--app-bg) var(--fade-solid, 0%), transparent); pointer-events: none; }
[dir="rtl"] .dwin-view::after { background: linear-gradient(to right, var(--app-bg) var(--fade-solid, 0%), transparent); }
@media (min-width: 900px) { .dwin-view img { inset-inline-start: -31%; width: 144.4%; } }
@media (max-width: 899.98px) { .dwin-view { aspect-ratio: 16 / 9; } }

/* ============ Hero (still layout) ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 34px;
  padding: 92px var(--gut) 56px; max-width: 1368px; margin-inline: auto;
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
h1 { font-size: clamp(33px, 9.4vw, 46px); font-weight: 600; }
.h1a, .h1b { display: block; }
.h1a { font-weight: 300; }
html:lang(en) .h1a { font-weight: 400; }
html:lang(en) h1 { font-size: clamp(27px, 8.3vw, 42px); }
.lead { margin-block-start: 14px; font-size: 17px; color: var(--ink-2); max-width: 34em; }
.hero-copy .stores { margin-block-start: 22px; }
.hero-facts { margin-block-start: 16px; display: grid; gap: 2px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); max-width: 36em; }
.hero-facts li { position: relative; padding-inline-start: 16px; }
.hero-facts li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.more { display: none; align-items: center; gap: 8px; min-height: 44px; margin-block-start: 10px; font-weight: 600; font-size: 16px; color: var(--teal-ink); text-decoration: none; }
.more svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.more:hover svg { transform: translateY(4px); }
.stage { position: relative; isolation: isolate; display: grid; place-items: center; --pw: min(70vw, 292px); }
.stage .pos { position: relative; z-index: 1; }
.halo { position: absolute; z-index: -1; inset: -5% 0; background: var(--halo); pointer-events: none; }
/* a portrait tablet has room for a headline with more presence */
@media (min-width: 600px) and (max-width: 899.98px) {
  h1 { font-size: clamp(46px, 7.4vw, 62px); }
  html:lang(en) h1 { font-size: clamp(42px, 6.8vw, 56px); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; padding-block: 104px 64px; }
  h1 { font-size: clamp(44px, min(5.5vw, 11vh), 82px); }
  html:lang(en) h1 { font-size: clamp(38px, min(4.5vw, 10vh), 66px); }
  .h1a, .h1b { white-space: nowrap; }
  .lead { margin-block-start: 20px; font-size: clamp(18px, 1.5vw, 21px); }
  .hero-copy .stores { margin-block-start: 30px; }
  .hero-facts { margin-block-start: 20px; font-size: 16.5px; }
  .more { display: inline-flex; }
  .stage { --pw: min(27vw, 330px); }
}

/* ============ Story (still layout): every feature with its own picture ============ */
.story { position: relative; max-width: 1160px; margin-inline: auto; padding: 24px var(--gut) 72px; }
.cap-intro { max-width: 720px; }
.cap-intro h2 { font-size: clamp(30px, 4.4vw, 52px); }
.cap-intro p { margin-block-start: 12px; color: var(--ink-2); }
.rail { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 26px 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding-inline: 14px 18px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid var(--line); box-shadow: var(--chip-shadow); color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 15.5px; line-height: 1.2; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.chip svg { flex: none; width: 21px; height: 21px; color: var(--teal-ink); transition: color .3s, transform .35s var(--ease); }
@media (hover: hover) { .chip:hover { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-wash), var(--chip-shadow); } .chip:hover svg { transform: scale(1.12); } }
.chip:active { background: var(--teal-wash); }
.chip.is-active { background: var(--teal-fill); border-color: transparent; color: var(--on-teal); }
.chip.is-active svg { color: inherit; }
.beat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; padding-block: 44px; border-block-start: 1px solid var(--line); scroll-margin-top: 80px; }
.beat-shot { --pw: min(66vw, 270px); width: var(--pw); justify-self: center; }
.beat-text { max-width: 34em; }
.tag { margin-block-end: 6px; font-weight: 600; font-size: 15.5px; color: var(--teal-ink); }
.beat h3 { font-size: clamp(25px, 3.4vw, 40px); }
.beat-text > p:last-child { margin-block-start: 10px; color: var(--ink-2); }
@media (min-width: 900px) {
  .beat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 64px; }
  .beat:nth-of-type(even) .beat-shot { order: 2; }
  .beat-text { font-size: 18.5px; }
}
/* phones, still layout: a feature's heading and text come before its picture */
@media (max-width: 899.98px) { html:not(.motion) .beat-text { order: -1; } }

/* ============ Sharing with your doctor (still layout): a complete, plain block ============ */
.care { position: relative; max-width: 1160px; margin-inline: auto; padding: 56px var(--gut) 76px; border-block-start: 1px solid var(--line); scroll-margin-top: 72px; display: grid; gap: 34px 56px; }
.care-flow { display: grid; gap: 26px; max-width: 40em; align-content: start; }
.care-intro h2 { font-size: clamp(29px, 4.2vw, 50px); }
.care-intro p { margin-block-start: 12px; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); }
.care-step h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(21px, 2.3vw, 28px); }
.care-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--teal-wash); color: var(--teal-ink); }
.care-ic svg { width: 23px; height: 23px; }
.care-step > p { margin-block-start: 8px; color: var(--ink-2); }
.care-end > .care-safety { color: var(--ink); }
.care-end { display: grid; gap: 18px; }
.care-end > p { margin: 0; }
.care-targets { color: var(--ink-2); }
/* The app's own notice, word for word. Always on show: never inside anything that opens or closes. */
.care-safety { display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--teal-wash); border: 1px solid var(--line-2); color: var(--ink); font-weight: 500; }
.care-safety svg { flex: none; width: 24px; height: 24px; margin-block-start: .32em; color: var(--teal-ink); }
.care-safety b { font: 700 1.06em/1 var(--f-latin); padding-inline: 1px; }
.care-pro { padding-block-start: 16px; border-block-start: 1px solid var(--line); font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.care-step .care-pro h3 { display: block; font-family: var(--f-text); font-weight: 600; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.care-pro p { margin-block-start: 4px; }
.care-figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; min-width: 0; }
/* The three phone screens are a row to swipe through on a phone (each large enough to read), and a plain row of three from a tablet up. */
.care-phones { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-block: 6px 14px; padding-inline: calc((100% - min(62vw, 250px)) / 2); scrollbar-width: thin; border-radius: 14px; }
.care-fig { flex: none; --pw: min(62vw, 250px); width: var(--pw); scroll-snap-align: center; }
@media (min-width: 700px) {
  .care-phones { overflow: visible; justify-content: center; gap: clamp(16px, 3vw, 44px); padding-inline: 0; scroll-snap-type: none; }
  .care-fig { --pw: min(27vw, 250px); }
}
@media (min-width: 900px) {
  .care { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: start; }
  /* The doctor's window stays beside the text while it is read (it is pinned inside its own column, which is as tall
     as the text); the three screens take the full width under both. */
  .care-flow { grid-column: 1; grid-row: 1; }
  html:not(.motion) .care-figs { display: contents; }
  .care-win { grid-column: 2; grid-row: 1; align-self: stretch; }
  html:not(.motion) .care-win .dwin { position: sticky; inset-block-start: 96px; }
  .care-phones { grid-column: 1 / -1; grid-row: 2; margin-block-start: 22px; }
  .care-fig { --pw: min(22vw, 262px); }
}

/* ============ The reading sheet: who, how, the notice, your data ============ */
.sheet {
  position: relative; z-index: 5; background: var(--sheet); border-radius: clamp(28px, 4vw, 48px); box-shadow: var(--sheet-shadow);
  padding: clamp(52px, 8vw, 112px) var(--gut) clamp(56px, 8vw, 112px);
}
.sheet > section { max-width: 1120px; margin-inline: auto; }
.sheet > section + section { margin-block-start: clamp(64px, 9vw, 128px); }
.sheet h2 { font-size: clamp(29px, 4.2vw, 52px); }

.who { display: grid; gap: 22px 64px; }
.who-head p { margin-block-start: 12px; color: var(--ink-2); max-width: 26em; }
.conds li {
  display: flex; align-items: baseline; gap: 16px; padding-block: 17px; border-block-end: 1px solid var(--line);
  font-family: var(--f-head); font-weight: 500; font-size: clamp(22px, 2.9vw, 36px); line-height: 1.4;
}
.conds li:first-child { border-block-start: 1px solid var(--line); }
.conds li::before { content: ""; flex: none; width: .32em; height: .32em; border-radius: 50%; background: var(--teal); transform: translateY(-.18em); }
.aside { margin-block-start: 16px; color: var(--ink-3); font-size: 17px; }
@media (min-width: 900px) { .who { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }

/* Four steps are a real sequence, so they are numbered and joined by one line. */
.steps { position: relative; counter-reset: step; display: grid; gap: 30px; margin-block-start: 34px; --p: 1; }
.steps::before, .steps::after { content: ""; position: absolute; inset-block: 22px; inset-inline-start: 21px; width: 2px; border-radius: 2px; background: var(--line-2); }
.steps::after { background: var(--teal); transform-origin: 50% 0; transform: scaleY(var(--p)); }
.steps li { position: relative; z-index: 1; counter-increment: step; display: grid; gap: 3px; padding-inline-start: 64px; min-height: 44px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--sheet); border: 2px solid var(--line-2); color: var(--ink-3); font: 700 17px/1 var(--f-latin);
  transition: background .5s var(--ease), color .15s, border-color .5s var(--ease);   /* the numeral turns first, so it is never grey on teal */
}
.steps li.on::before, html:not(.motion) .steps li::before { background: var(--teal-fill); border-color: var(--teal-fill); color: var(--on-teal); }
.steps b { font-family: var(--f-head); font-weight: 500; font-size: 21px; line-height: 1.5; padding-block-start: 5px; }
.steps span { color: var(--ink-2); }
/* phones: the line stops at the last number */
@media (max-width: 899.98px) { .steps li:last-child::after { content: ""; position: absolute; z-index: -1; inset-inline-start: 0; inset-block: 44px -2px; width: 44px; background: var(--sheet); } }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 34px; margin-block-start: 46px; }
  .steps::before, .steps::after { inset-block: 21px auto; inset-inline: 22px 22px; width: auto; height: 2px; }
  .steps::after { transform: scaleX(var(--p)); transform-origin: 0 50%; }
  [dir="rtl"] .steps::after { transform-origin: 100% 50%; }
  .steps li { padding-inline-start: 0; padding-block-start: 66px; align-content: start; }
  .steps b { padding-block-start: 0; font-size: 22px; }
}

/* The one inverse band of each mode: the caution matters as much as the action. */
.notice { background: var(--inv-bg); color: var(--inv-ink); border-radius: clamp(24px, 3vw, 40px); padding: clamp(28px, 5vw, 68px); display: grid; gap: 24px 64px; }
.sheet > .notice { max-width: 1184px; }
.notice h2 { font-size: clamp(28px, 3.8vw, 48px); }
.points { display: grid; }
.points li { position: relative; padding-block: 14px; padding-inline-start: 28px; border-block-end: 1px solid var(--inv-line); color: var(--inv-ink-2); }
.points li:last-child { border-block-end: 0; color: var(--inv-ink); font-weight: 500; }
.points li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: calc(14px + .78em); width: 12px; height: 2px; border-radius: 2px; background: var(--inv-mark); }
.points b { font: 700 1.12em/1 var(--f-latin); color: var(--inv-ink); padding-inline: 2px; }
@media (min-width: 900px) { .notice { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .points li:first-child { padding-block-start: 4px; } .points li:first-child::before { inset-block-start: calc(4px + .78em); } }

.data { display: grid; gap: 28px 64px; }
.data-head > p { margin-block-start: 12px; color: var(--ink-2); max-width: 26em; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-block-start: 14px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.ledger { border-block-start: 1px solid var(--line-2); }
.ledger details { border-block-end: 1px solid var(--line-2); }
.ledger summary {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-block: 14px; padding-inline: 4px 2px;
  cursor: pointer; list-style: none; border-radius: 10px; transition: color .25s;
}
.ledger summary::-webkit-details-marker { display: none; }
.ledger summary h3 { font-family: var(--f-text); font-weight: 600; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; text-wrap: pretty; }
html:lang(en) .ledger summary h3 { letter-spacing: 0; line-height: 1.4; }
.ledger summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .45s var(--ease), background-color .3s, border-color .3s;
}
.ledger details[open] summary { color: var(--teal-ink); }
.ledger details[open] summary::after { transform: rotate(135deg); background-color: var(--teal-wash); border-color: transparent; }
@media (hover: hover) { .ledger summary:hover { color: var(--teal-ink); } .ledger summary:hover::after { border-color: var(--teal); } }
.ans { padding-block: 0 22px; padding-inline: 4px 52px; color: var(--ink-2); max-width: 46em; }
.ans a { white-space: nowrap; }
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .ledger details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .45s var(--ease), opacity .45s, content-visibility .45s allow-discrete; }
    .ledger details[open]::details-content { block-size: auto; opacity: 1; }
  }
}
@media (min-width: 900px) { .data { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .data-head { position: sticky; inset-block-start: 110px; } }

/* ============ Closing ============ */
.closing { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; max-width: 1368px; margin-inline: auto; padding: 72px var(--gut) 72px; }
.closing-copy { position: relative; z-index: 2; max-width: 620px; }
.closing h2 { font-size: clamp(31px, 5vw, 62px); font-weight: 600; }
.closing-copy > p { margin-block-start: 14px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); max-width: 30em; }
.closing .stores { margin-block-start: 26px; }
.closing-shot { --pw: min(60vw, 250px); width: var(--pw); justify-self: center; }
@media (min-width: 900px) { .closing { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); padding-block: 110px; } .closing-shot { --pw: min(24vw, 290px); } }

/* ============ Footer ============ */
.foot { position: relative; z-index: 5; background: var(--bg-2); border-block-start: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.foot-in { max-width: 1248px; margin-inline: auto; padding: 44px var(--gut) calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 22px 56px; }
.foot-brand { display: flex; align-items: center; gap: 9px; }
.foot-brand img { width: 40px; height: auto; }
.foot-main { display: grid; gap: 8px; justify-items: start; }
.foot-main a { font-weight: 600; }
.foot-main > p > a[href^="mailto"] { display: inline-flex; align-items: center; min-height: 44px; }
.foot .legal-links { margin-block-start: 0; }
.foot .mode { margin-block-start: 6px; }
.foot-fine { display: grid; gap: 8px; color: var(--ink-3); font-size: 14.5px; }
.foot-fine p:first-child { color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* The dock belongs to the stage layout; never shown otherwise. */
.dock { display: none; }

/* Windows high contrast: keep the edges of the things that are otherwise drawn with shadows. */
@media (forced-colors: active) {
  .store, .phone, .dwin, .notice, .care-safety, .chip, .lang, .mode, .theme-switch, .sheet { border: 1px solid CanvasText; }
  .bg-canvas, .atmo, .halo { display: none !important; }
}

/* ==========================================================================================
   The stage. Everything below needs the script and is skipped with reduced motion.
   ========================================================================================== */
html.motion .bg-canvas, html.motion .atmo { position: fixed; inset-inline: 0; inset-block-start: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
html.motion .atmo { overflow: hidden; display: none; }
html.motion .atmo i { position: absolute; width: 110vmax; height: 110vmax; }
html.motion .atmo i:nth-child(1) { inset-block-start: -58vmax; inset-inline-end: -38vmax; background: var(--blob-1); }
html.motion .atmo i:nth-child(2) { inset-block-end: -64vmax; inset-inline-start: -44vmax; background: var(--blob-2); }
html.motion { scroll-padding-bottom: calc(var(--dock-pad, 0px) + 16px); }
html.motion .probe { position: fixed; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }

html.motion .hero { display: flex; align-items: center; max-width: none; padding: 84px max(var(--gut), calc(50% - 620px)) 36px; }
html.motion .hero-copy { width: min(49.5vw, 660px); max-width: none; will-change: opacity; }
/* The stage is a coordinate space for the script (x from the left edge), so it is laid out left to right in both languages. */
html.motion .stage { position: fixed; inset: 0; z-index: 1; display: block; pointer-events: none; direction: ltr; --pw: min(calc((100vh - 118px) / 2.184), 420px, 30vw); }
@supports (height: 1svh) { html.motion .stage { --pw: min(calc((100svh - 118px) / 2.184), 420px, 30vw); } }
html.motion .stage .pos { position: absolute; inset-inline-start: 0; inset-block-start: 0; width: var(--pw); height: calc(var(--pw) * var(--pr, 2.184)); will-change: transform; opacity: 0; }
html.motion .stage .pos::before { content: ""; position: absolute; inset-inline: -30%; inset-block: 24% -20%; background: var(--cast); pointer-events: none; }
html.motion .persp { perspective: 1700px; width: 100%; height: 100%; }
html.motion .device { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
html.motion .stage .phone { position: absolute; inset: 0; }
html.motion .stage .edge { display: block; position: absolute; inset: 0; border-radius: calc(var(--pw) * .15); background: var(--rim-side); }
html.motion .stage .edge:nth-of-type(1) { transform: translateZ(-2px); background: var(--rim-side-2); }
html.motion .stage .edge:nth-of-type(2) { transform: translateZ(-4px); background: var(--rim-side-2); }
html.motion .stage .edge:nth-of-type(3) { transform: translateZ(-6px); }
html.motion .stage .edge:nth-of-type(4) { transform: translateZ(-8px); }
html.motion .stage .edge:nth-of-type(5) { transform: translateZ(-10px); background: var(--rim-side-2); }
html.motion .stage .edge:nth-of-type(6) { transform: translateZ(-12px); }
html.motion .stage .halo { inset: auto; inset-inline-start: 0; inset-block-start: 0; z-index: 0; width: calc(var(--pw) * 3.1); height: calc(var(--pw) * 3.1); will-change: transform, opacity; opacity: 0; }
html.motion .stage .shot { position: absolute; inset: 0; visibility: hidden; background: var(--app-bg); }
html.motion .stage .shot.is-on { visibility: visible; }
/* The picture on show is its own layer, so scrolling inside the phone only moves it. Only that one screen is kept
   visible; the rest are visibility: hidden. */
html.motion .stage .shot.is-on .win img { will-change: transform; }
html.motion .stage .strip { position: relative; z-index: 2; }
html.motion .stage .strip::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 100%; height: calc(var(--pw) * .055); background: linear-gradient(to bottom, var(--edge, var(--app-bg)), transparent); pointer-events: none; }
html.motion .stage .sheen { display: block; position: absolute; z-index: 9; inset: -10% -70%; background: linear-gradient(104deg, transparent 36%, var(--sheen-b) 42%, var(--sheen-a) 48%, var(--sheen-b) 53%, transparent 60%); pointer-events: none; will-change: transform; }
html.motion .stage .glare { display: block; position: absolute; z-index: 8; inset: 0; background: var(--glare); opacity: 0; pointer-events: none; will-change: opacity; }
html.motion .stage .scan { display: block; position: absolute; z-index: 7; inset-inline: 0; inset-block-start: 0; height: 22%; margin-block-start: -22%; opacity: 0; pointer-events: none; will-change: transform, opacity;
  background: linear-gradient(to bottom, transparent 70%, var(--teal) 98%, transparent);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--teal) 26%, transparent) 82%, var(--teal) 98%, transparent); }
/* The closing scene: the six screens fan out behind the phone. */
html.motion .stage .fan { display: block; position: absolute; inset: 0; transform-style: preserve-3d; }
html.motion .stage .leaf { position: absolute; inset: 2.6% 3.4%; overflow: hidden; border-radius: calc(var(--pw) * .12); background: var(--app-bg); box-shadow: var(--leaf-shadow); transform-origin: 50% 122%; visibility: hidden; opacity: 0; will-change: transform, opacity; }
html.motion .stage .leaf img { width: 100%; height: auto; }
/* The doctor's screen on the stage, and its shutter. */
html.motion .stage .dwin { position: absolute; inset-inline-start: 0; inset-block-start: 0; z-index: 0; visibility: hidden; opacity: 0; will-change: transform, opacity; transition: box-shadow .5s; }
html[dir="rtl"].motion .stage .dwin-view { direction: rtl; }
html.motion .stage .dwin-view img { will-change: transform; }
html.motion .stage .shutter { z-index: 2; }
html.motion .stage .dwin.is-open { box-shadow: var(--dwin-shadow), 0 0 0 2px var(--teal-wash), 0 0 0 3px var(--line-2); }
html.motion .stage .shutter { display: grid; place-items: center; position: absolute; inset: 0 0 -1px; background: var(--shut); box-shadow: var(--shut-edge); will-change: transform; }
html.motion .shutter-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--chip-bg); border: 1px solid var(--line-2); color: var(--ink-2); box-shadow: var(--chip-shadow); }
html.motion .shutter-ic svg { width: 25px; height: 25px; }

/* Captions are pinned; the script fades and moves them with scroll. They stay in the document order. */
html.motion .story { max-width: none; margin: 0; padding: 0; height: 465vh; height: 465svh; }
html.motion .cap { position: fixed; z-index: 3; opacity: 0; pointer-events: none; will-change: transform, opacity; border: 0; padding: 0; margin: 0; display: block; }
html.motion .cap.is-off { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html.motion .beat-shot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html.motion .closing-shot { display: none; }
html.motion .rail { position: fixed; z-index: 4; margin: 0; }
html.motion .chip { will-change: transform, opacity; opacity: 0; }

/* The doctors chapter: its text flows past natively over the pinned stage. */
/* A link to #doctors lands where the chapter's heading is on show, not where the previous scene is still playing. */
html.motion .care { display: block; max-width: none; margin: 0; padding: 0; border: 0; scroll-margin-top: calc(-50vh - 170px); }
html.motion .care-figs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html.motion .care-phones { overflow: visible; }      /* not a scroller here, so not a keyboard stop */
html.motion .care-flow { position: relative; z-index: 3; display: block; max-width: none; }

/* The closing text is pinned too: it is already in place when the sheet lifts off it. */
html.motion .closing { display: block; max-width: none; height: 130vh; height: 130svh; padding: 0; }
html.motion .closing-copy { position: fixed; z-index: 2; opacity: 0; max-width: none; transition: opacity .4s; }

/* Wide stage: caption on the reading side, phone in the middle, the six chips on the other side. */
@media (min-width: 900px) {
  html.motion .atmo { display: block; }
  html.motion .cap { inset-inline-start: max(var(--gut), calc(50% - 620px)); inset-block-start: 50%; width: min(30vw, 440px, var(--cap-w, 440px)); }
  html.motion .cap-intro h2 { font-size: clamp(34px, min(3.9vw, 7.6vh), 56px); }
  html.motion .cap-intro p { font-size: clamp(17.5px, 1.5vw, 20px); margin-block-start: 16px; }
  html.motion .beat h3 { font-size: clamp(32px, min(3.75vw, 7.2vh), 52px); }
  html.motion .beat .beat-text { font-size: clamp(17.5px, min(1.56vw, 3.1vh), 20px); max-width: none; }
  html.motion .beat-text > p:last-child { margin-block-start: 20px; }
  html.motion .tag { margin-block-end: 10px; font-size: 17px; }
  html.motion .rail { inset-inline-end: max(var(--gut), calc(50% - 620px)); inset-block: 0; height: fit-content; margin-block: auto; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; }

  html.motion .care-flow { margin-inline-start: max(var(--gut), calc(50% - 620px)); width: clamp(300px, 30vw, 430px); padding-block: 100vh 30vh; }
  @supports (height: 1svh) { html.motion .care-flow { padding-block: 100svh 30svh; } }
  html.motion .care-step + .care-step { margin-block-start: 34vh; }
  /* the first two points are read while the doctor's screen is still shut: they follow each other more closely */
  html.motion .care-intro + .care-step { margin-block-start: 22vh; }
  html.motion .care-intro + .care-step + .care-step { margin-block-start: 24vh; }
  html.motion .care-intro h2 { font-size: clamp(31px, min(3.3vw, 6.6vh), 46px); }
  html.motion:lang(en) .care-intro h2 { font-size: clamp(29px, min(2.85vw, 6vh), 42px); }
  html.motion .care-intro p { font-size: clamp(17.5px, 1.5vw, 20px); margin-block-start: 16px; }
  html.motion .care-step h3 { font-size: clamp(24px, 2.3vw, 31px); }
  html.motion .care-step > p { font-size: clamp(17.5px, 1.45vw, 19.5px); margin-block-start: 12px; }
  /* the point that is being read is marked; the others stay fully legible */
  html.motion .care-step:not(.care-end) { position: relative; padding-inline-start: 22px; }
  html.motion .care-step:not(.care-end)::before { content: ""; position: absolute; inset-block: 4px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--line-2); transition: background .4s; }
  html.motion .care-step.is-read::before { background: var(--teal); }
  html.motion .care-step h3 { color: var(--ink-2); transition: color .4s; }
  html.motion .care-step.is-read h3, html.motion .care-intro h2 { color: var(--ink); }
  html.motion .care-end .care-pro h3 { color: var(--ink); font-size: 16.5px; }
  html.motion .care-end .care-pro p { font-size: 16.5px; }
  html.motion .stage .dwin-view { --fade-w: 42%; --fade-solid: 44%; }

  html.motion .closing-copy { inset-inline-start: max(var(--gut), calc(50% - 620px)); inset-block-start: 50%; transform: translate3d(0, -46%, 0); width: min(49.5vw, 660px); will-change: transform; }
  /* a low, wide window: the closing text and the footer must both fit under the header */
  html.motion .closing h2 { font-size: clamp(30px, min(5vw, 7.7vh), 62px); }
  html.motion:lang(en) .closing h2 { font-size: clamp(30px, min(4.1vw, 6.4vh), 52px); }
  html.motion:lang(en) .closing-copy > p { max-width: 36em; }
  @media (max-height: 720px) {
    html.motion .closing h2 { font-size: clamp(30px, min(5vw, 6.4vh), 62px); }
    html.motion .closing-copy > p { margin-block-start: 6px; }
    html.motion .closing .stores { margin-block-start: 12px; }
    html.motion .closing .store { min-height: 60px; padding-block: 6px; }
  }
}
/* a low laptop window in English: the two buttons share one row, so the closing heading stays under the header at the page end */
@media (min-width: 900px) and (max-width: 1100px) and (max-height: 800px) {
  html.motion:lang(en) .closing .stores { flex-wrap: nowrap; gap: 10px; }
  html.motion:lang(en) .closing .store { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
  html.motion:lang(en) .closing .store small { white-space: normal; }
}

/* Tall stage (phones, portrait tablets): the caption sits above the phone, on the bare background; the phone is large
   and rises from the bottom edge, so nothing ever covers its screen. The six chips are a row of tabs under the header. */
@media (max-width: 899.98px) {
  html.motion .hero { display: block; padding: 72px var(--gut) 0; }
  html.motion .hero-copy { width: auto; max-width: 560px; margin-inline: auto; }
  html.motion .stage { --pw: min(84vw, 400px, 46vh); }
  @supports (height: 1svh) { html.motion .stage { --pw: min(84vw, 400px, 46svh); } }
  html.motion .cap { inset-inline: var(--gut); inset-block-start: var(--cap-top, 122px); max-width: 560px; margin-inline: auto; }
  html.motion .cap-intro h2 { font-size: clamp(25px, 7vw, 34px); }
  html.motion .cap-intro p { margin-block-start: 6px; }
  html.motion .beat h3 { font-size: clamp(23px, 6.4vw, 31px); }
  html.motion .beat-text { max-width: none; }
  html.motion .stage .halo { width: calc(var(--pw) * 1.034); height: calc(var(--pw) * 1.034); }   /* a third of the size, drawn three times larger by the script: the same glow, a ninth of the pixels */
  html.motion .beat-text > p:last-child { margin-block-start: 6px; line-height: 1.75; }
  html.motion:lang(en) .beat-text > p:last-child { line-height: 1.5; }
  html.motion .tag { margin-block-end: 0; font-size: 15px; }
  html.motion .two { display: grid; }
  html.motion .two > span { grid-area: 1 / 1; will-change: opacity; }
  html.motion .rail { inset-block-start: var(--head-h, 60px); inset-inline: 0; justify-content: center; flex-wrap: nowrap; gap: 2px; padding-inline: 6px; }
  html.motion .chip { flex: 1 1 auto; flex-direction: column; justify-content: center; gap: 3px; min-width: 44px; max-width: 80px; min-height: 52px; padding: 5px 4px; border-radius: 16px; font-size: 13.5px; font-weight: 500; }
  html.motion .chip svg { width: 20px; height: 20px; }

  /* The doctors chapter on a phone: its heading and four points are cards pinned above the buttons, one after the other;
     the doctor's screen stands at the top and the phone between them. Its closing notes then rise as one card. */
  html.motion .care { scroll-margin-top: calc(-44vh - 88px); }
  html.motion .care-flow { padding: 387vh 0 0; }
  @supports (height: 1svh) { html.motion .care-flow { padding: 387svh 0 0; } }
  html.motion .care-step { max-width: 560px; margin-inline: auto; padding: 16px 18px 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
  /* a card is a sheet that stands on the dock, edge to edge: no strip of the app shows beside or under it */
  html.motion .care-step:not(.care-end) { position: fixed; inset-inline: 0; inset-block-end: max(var(--dock-h, 0px), env(safe-area-inset-bottom)); max-width: none; padding-inline: max(22px, calc(50% - 280px)); border-radius: 24px 24px 0 0; border-block-end: 0; opacity: 0; pointer-events: none; will-change: transform, opacity; }
  /* doctors screens: a row that has scrolled up under the island dissolves, it is not cut */
  html.motion .stage .shot[data-screen^="care-"] .strip::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 100%; height: calc(var(--pw) * .085); background: linear-gradient(to bottom, var(--edge, var(--app-bg)) 45%, transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
  html.motion .stage .shot.is-panned[data-screen^="care-"] .strip::before { opacity: 1; }
  html.motion .care-intro h2 { font-size: clamp(24px, 6.6vw, 32px); }
  html.motion .care-intro p { margin-block-start: 8px; font-size: 17px; }
  html.motion .care-step h3 { font-size: clamp(21px, 5.8vw, 26px); }
  html.motion .care-ic { width: 40px; height: 40px; border-radius: 13px; }
  /* The closing notes are the head of the reading sheet that follows: one surface rises over the stage, not two cards in a row.
     The safety notice leads it; the note for practitioners stays small. */
  html.motion .care-end {
    max-width: none; margin: 0 0 -1px; padding: 30px var(--gut) 8px; border: 0; background: var(--sheet); box-shadow: var(--sheet-top);
    border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  }
  html.motion .care-end > * { width: 100%; max-width: 560px; justify-self: center; }
  html.motion .care-safety { font-size: 18px; }
  html.motion .care-end .care-pro h3 { font-size: 16.5px; }
  html.motion .sheet { border-start-start-radius: 0; border-start-end-radius: 0; box-shadow: var(--sheet-bot); padding-block-start: 44px; }
  html.motion .stage .dwin { transform-origin: 50% 0; }
  /* the doctor's window is a crop of a wide dashboard: its cut edges dissolve, so no word ends mid-letter */
  html.motion .stage .dwin-view::before { content: ""; position: absolute; z-index: 1; inset-inline: 0; inset-block-end: 0; height: var(--fade-b, 0%); background: linear-gradient(to top, var(--app-bg) 20%, transparent); pointer-events: none; }
  html.motion:lang(en) .stage .dwin-view img { inset-inline-start: -53%; width: 243%; }

  /* the dock stays to the very end, so the footer's last line needs room above it */
  html.motion .foot-in { padding-block-end: calc(40px + var(--foot-pad, 0px) + env(safe-area-inset-bottom)); }

  html.motion .closing { height: 140vh; height: 140svh; }
  html.motion .closing-copy { inset-inline: var(--gut); inset-block-start: calc(var(--head-h, 60px) + 14px); max-width: 560px; margin-inline: auto; }
  html.motion .closing h2 { font-size: clamp(27px, 7.4vw, 38px); }
  html.motion .closing-copy > p { margin-block-start: 8px; }
  html.motion .closing .stores { margin-block-start: 16px; }

  html.motion .dock {
    display: block; position: fixed; z-index: 25; inset-inline: 0; inset-block-end: 0; padding: 7px 12px calc(9px + env(safe-area-inset-bottom));
    background: var(--sheet); border-block-start: 1px solid var(--line-2);
    transform: translateY(110%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
  }
  html.motion .dock.is-up { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
  .dock > p { text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-block-end: 5px; text-wrap: balance; }
  html:lang(en) .dock > p { font-size: 14px; }
  .dock-row { display: flex; gap: 8px; max-width: 560px; margin-inline: auto; }
  .store-sm { flex: 1 1 0; min-height: 46px; padding-block: 4px; padding-inline: 12px 14px; gap: 9px; border-radius: 15px; justify-content: center; max-width: none; }
  .store-sm svg { width: 21px; height: 21px; }
  .store-sm b { font-size: 16px; }
}
@media (max-width: 899.98px) and (max-height: 700px) {
  html.motion .hero { padding-block-start: 62px; }
  html.motion h1 { font-size: clamp(30px, 8.9vw, 40px); line-height: 1.26; }
  html.motion:lang(en) h1 { font-size: clamp(26px, 7.9vw, 38px); line-height: 1.12; }
  html.motion .lead { margin-block-start: 8px; line-height: 1.75; }
  html.motion .hero-copy .stores { margin-block-start: 14px; gap: 9px; }
  html.motion .hero .store, html.motion .closing .store { min-height: 60px; padding-block: 6px; }
  html.motion .hero .store b, html.motion .closing .store b { font-size: 18px; }
  html.motion .hero-facts { margin-block-start: 10px; font-size: 16px; line-height: 1.58; }
  html.motion .beat-text > p:last-child { line-height: 1.75; }
}

/* The entrance: one orchestrated moment, then scroll takes over. */
html.motion .top { opacity: 0; }
html.motion.go .top { opacity: 1; transition: opacity .9s .1s; }
html.motion h1 span, html.motion .hero-copy > :not(h1) { opacity: 0; transform: translateY(26px); }
html.motion.go h1 span, html.motion.go .hero-copy > :not(h1) { opacity: 1; transform: none; transition: opacity 1s var(--ease) var(--d, .2s), transform 1.3s var(--ease) var(--d, .2s); }
html.motion .h1a { --d: .18s; } html.motion .h1b { --d: .34s; }
html.motion .lead { --d: .52s; } html.motion .hero-copy .stores { --d: .66s; } html.motion .hero-facts { --d: .8s; } html.motion .more { --d: .92s; }
/* phones (often on a slow line): the header is there at once, and the first screen is readable within a second */
@media (max-width: 899.98px) {
  html.motion .top { opacity: 1; }
  html.motion .h1a { --d: .05s; } html.motion .h1b { --d: .13s; }
  html.motion .lead { --d: .22s; } html.motion .hero-copy .stores { --d: .3s; } html.motion .hero-facts { --d: .38s; }
  html.motion.go h1 span, html.motion.go .hero-copy > :not(h1) { transition-duration: .6s, .85s; }
}
html.motion.seen h1 span, html.motion.seen .hero-copy > :not(h1) { transition-delay: 0s; transition-duration: .01s; }

/* The theme switch is a moment: the new mode opens as a circle from the switch. */
html.vt::view-transition-old(root), html.vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt::view-transition-old(root) { z-index: 1; }
html.vt::view-transition-new(root) { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
