/* PharmaScript home page — custom build (replaces WPBakery + Slider Revolution on the front page) */

.psx {
  --ps-ink: #0A1A36;
  --ps-ink-2: #3B4A66;
  --ps-ink-3: #66748E;
  --ps-blue: #104EAE;
  --ps-blue-d: #0B3B87;
  --ps-blue-l: #3D7BDB;
  --ps-sky: #EAF1FC;
  --ps-mint: #17845A;
  --ps-mint-d: #11694A;
  --ps-mint-soft: #E3F3EC;
  --ps-sun: #FFB547;
  --ps-paper: #F5F8FD;
  --ps-white: #FFFFFF;
  --ps-display: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --ps-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ps-ease: cubic-bezier(.2, .7, .2, 1);
  --ps-shadow: 0 1px 2px rgba(10, 26, 54, .04), 0 12px 32px -12px rgba(10, 26, 54, .14);
  --ps-shadow-lg: 0 2px 6px rgba(10, 26, 54, .05), 0 34px 70px -28px rgba(10, 26, 54, .32);

  display: block;
  position: relative;
  overflow-x: clip;
  background: var(--ps-paper);
  color: var(--ps-ink-2);
  font-family: var(--ps-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- local reset (the theme styles bare tags globally) ---------- */
.psx *, .psx *::before, .psx *::after { box-sizing: border-box; }
.psx :where(h1, h2, h3, p, ul, ol, li) { margin: 0; padding: 0; }
.psx :where(ul, ol) { list-style: none; }
.psx ul > li, .psx ol > li { list-style: none; margin-left: 0; }
.psx li::before { content: none; }
.psx a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, transform .3s var(--ps-ease), box-shadow .3s var(--ps-ease); }
.psx a:focus-visible, .psx button:focus-visible { outline: 3px solid var(--ps-blue-l); outline-offset: 3px; border-radius: 12px; }
.psx img { max-width: 100%; height: auto; display: block; }
.psx :where(h1, h2, h3) {
  font-family: var(--ps-display);
  color: var(--ps-ink);
  text-transform: none;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.psx em { font-style: normal; }
.psx svg { flex: none; }
.psx-nowrap { white-space: nowrap; }

.psx-wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
}

/* ---------- shared bits ---------- */
.psx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ps-blue);
  margin-bottom: 18px;
}
.psx-eyebrow--light { color: #8FD3B5; }

.psx-h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06;
  font-weight: 700;
  max-width: 22ch;
}
.psx-h2 em, .psx-hero__title em { color: var(--ps-blue); }
.psx-lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ps-ink-2);
  max-width: 52ch;
}
.psx-sechead { margin-bottom: clamp(40px, 5vw, 64px); }
.psx-sechead--center { text-align: center; }
.psx-sechead--center .psx-h2, .psx-sechead--center .psx-lead { margin-left: auto; margin-right: auto; }

.psx-sec { position: relative; z-index: 1; padding: clamp(80px, 10vw, 140px) 0; }

.psx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--ps-body);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}
.psx-btn:has(.psx-btn__arrow) { padding: 0 8px 0 26px; }
.psx-btn__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--ps-blue);
  transition: transform .35s var(--ps-ease), background-color .2s, color .2s;
}
.psx-btn__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.psx-btn:hover .psx-btn__arrow { transform: translateX(3px); }
.psx .psx-btn:active { transform: scale(.98); }
.psx .psx-btn--primary { color: #fff; background: var(--ps-blue); }
.psx .psx-btn--primary:hover { color: #fff; background: var(--ps-blue-d); }
.psx .psx-btn--ghost { color: var(--ps-ink); background: #fff; box-shadow: inset 0 0 0 1.5px rgba(16, 78, 174, .22); }
.psx .psx-btn--ghost:hover { color: var(--ps-blue); box-shadow: inset 0 0 0 1.5px var(--ps-blue); }
.psx .psx-btn--light { color: #fff; background: rgba(255, 255, 255, .12); }
.psx .psx-btn--light:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.psx .psx-btn--white { color: var(--ps-blue); background: #fff; }
.psx .psx-btn--white:hover { color: var(--ps-blue-d); background: #EAF1FC; }
.psx-btn--white .psx-btn__arrow { background: var(--ps-blue); color: #fff; }
.psx-btn--block { width: 100%; }

.psx-checks { display: grid; gap: 14px; }
.psx-checks li {
  position: relative;
  padding-left: 36px;
  color: var(--ps-ink-2);
}
.psx .psx-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ps-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* organic section edges */
.psx-wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(36px, 6vw, 90px);
  display: block;
  pointer-events: none;
  fill: var(--sec-bg, #fff);
}
.psx-wave--top { top: 1px; transform: translateY(-100%); }
.psx-wave--bottom { bottom: 1px; transform: translateY(100%); }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.psx.psx-js .psx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ps-ease), transform .9s var(--ps-ease); }
.psx.psx-js .psx-reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.psx-hero { position: relative; z-index: 1; padding: clamp(56px, 7vw, 100px) 0 0; overflow: hidden; }

.psx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.psx .psx-pill--trial {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ps-shadow);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ps-ink);
  margin-bottom: 30px;
}
.psx .psx-pill--trial:hover { transform: translateY(-1px); color: var(--ps-blue); }
.psx-pill__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--ps-mint); }
.psx-pill__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--ps-mint); opacity: .35; animation: psx-pulse 2.4s ease-out infinite; }
@keyframes psx-pulse { 0% { transform: scale(.5); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }

/* slow banner rotator */
.psx-rotator__track { display: grid; }
.psx-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.1s var(--ps-ease), transform 1.1s var(--ps-ease), visibility 0s linear 1.1s;
  visibility: hidden;
}
.psx-slide.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity 1.1s var(--ps-ease) .15s, transform 1.1s var(--ps-ease) .15s, visibility 0s; }
.psx-slide .psx-eyebrow { margin-bottom: 16px; }
.psx-hero__title {
  font-size: clamp(40px, 5.3vw, 70px);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.psx-hero__lead { margin-top: 22px; font-size: clamp(17px, 1.55vw, 20px); color: var(--ps-ink-2); max-width: 40ch; }

.psx-rotator__dots { display: flex; gap: 8px; margin-top: 30px; }
.psx-dot {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 78, 174, .18);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: width .5s var(--ps-ease), background-color .3s;
}
.psx-dot:hover { background: rgba(16, 78, 174, .32); }
.psx-dot.is-active { width: 46px; }
.psx-dot span { position: absolute; inset: 0; width: 0; border-radius: inherit; background: var(--ps-blue); }
.psx-dot.is-active span { animation: psx-progress var(--psx-interval, 7.5s) linear forwards; }
.psx-rotator.is-paused .psx-dot.is-active span { animation-play-state: paused; }
@keyframes psx-progress { to { width: 100%; } }

.psx-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.psx-hero__patient { margin-top: 22px; font-size: 15.5px; color: var(--ps-ink-3); }
.psx .psx-hero__patient a { color: var(--ps-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ps-mint); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.psx .psx-hero__patient a:hover { color: var(--ps-blue); }

/* ---- product visual (pure CSS) ---- */
.psx-hero__visual { position: relative; container-type: inline-size; width: 100%; max-width: 580px; justify-self: end; }
.psx-stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1.02;
  font-size: 2.6cqw;
}
.psx-stage__blob {
  position: absolute;
  inset: 8% 4% 6% 10%;
  background: var(--ps-blue);
  border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
  animation: psx-morph 18s ease-in-out infinite alternate;
}
@keyframes psx-morph {
  0%   { border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%; transform: rotate(0deg); }
  50%  { border-radius: 44% 56% 60% 40% / 56% 40% 60% 44%; }
  100% { border-radius: 52% 48% 40% 60% / 42% 58% 44% 56%; transform: rotate(8deg); }
}

.psx-phone {
  position: absolute;
  left: 7%;
  top: 9%;
  width: 40%;
  aspect-ratio: 9 / 18.5;
  padding: 1.6%;
  border-radius: 6.6cqw;
  background: #0B1B3A;
  box-shadow: 0 40px 60px -30px rgba(10, 26, 54, .65), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-7deg);
  animation: psx-float-a 9s ease-in-out infinite;
}
.psx-phone__notch { position: absolute; top: 3.4%; left: 50%; width: 30%; height: 3.6%; transform: translateX(-50%); border-radius: 99px; background: #0B1B3A; z-index: 2; }
.psx-phone__screen {
  position: relative;
  height: 100%;
  border-radius: 5.4cqw;
  background: #fff;
  padding: 18% 8% 8%;
  display: flex;
  flex-direction: column;
  gap: 5%;
  overflow: hidden;
}
.psx-phone__brand { display: flex; align-items: center; gap: 6%; font-family: var(--ps-display); font-weight: 700; font-size: 1.05em; color: var(--ps-blue); letter-spacing: -0.02em; }
.psx-logo-dot { width: 1.3em; height: 1.3em; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; background: var(--ps-blue); }
.psx-phone__title { font-family: var(--ps-display); font-weight: 700; color: var(--ps-ink); font-size: 1.25em; line-height: 1.15; letter-spacing: -0.02em; margin-top: 2% !important; }
.psx-field { display: flex; flex-direction: column; gap: .15em; padding: .65em .8em; border-radius: 1em; background: var(--ps-paper); font-size: .78em; line-height: 1.25; }
.psx-field span { color: var(--ps-ink-3); font-weight: 600; font-size: .9em; }
.psx-field b { color: var(--ps-ink); font-weight: 700; }
.psx-field--sig svg { width: 80%; height: 1.6em; fill: none; stroke: var(--ps-blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: psx-sign 6s ease-in-out infinite; }
@keyframes psx-sign { 0%, 15% { stroke-dashoffset: 260; } 55%, 100% { stroke-dashoffset: 0; } }
.psx-phone__btn { margin-top: auto; text-align: center; padding: .85em; border-radius: 99px; background: var(--ps-blue); color: #fff; font-weight: 700; font-size: .85em; }

.psx-dash {
  position: absolute;
  right: 0;
  top: 33%;
  width: 56%;
  padding: 4.2%;
  border-radius: 5cqw;
  background: #fff;
  box-shadow: var(--ps-shadow-lg);
  animation: psx-float-b 11s ease-in-out infinite;
}
.psx-dash__head { display: flex; align-items: center; justify-content: space-between; font-family: var(--ps-display); font-weight: 700; color: var(--ps-ink); font-size: 1.05em; margin-bottom: .8em; }
.psx-dash__count { display: grid; place-items: center; min-width: 1.8em; height: 1.8em; border-radius: 99px; background: var(--ps-sky); color: var(--ps-blue); font-size: .8em; }
.psx-dash__list { display: grid; gap: .55em; }
.psx-dash__list li { display: flex; align-items: center; gap: .65em; padding: .6em; border-radius: 1.1em; background: var(--ps-paper); opacity: 0; animation: psx-row .8s var(--ps-ease) forwards; }
.psx-dash__list li:nth-child(1) { animation-delay: .6s; }
.psx-dash__list li:nth-child(2) { animation-delay: .9s; }
.psx-dash__list li:nth-child(3) { animation-delay: 1.2s; }
@keyframes psx-row { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.psx-av { display: grid; place-items: center; width: 2.3em; height: 2.3em; flex: none; border-radius: 50%; font-size: .72em; font-weight: 800; color: #fff; }
.psx-av--1 { background: #5B8DEF; } .psx-av--2 { background: #17845A; } .psx-av--3 { background: #F29E4C; }
.psx-dash__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; flex: 1; }
.psx-dash__txt b { color: var(--ps-ink); font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx-dash__txt i { font-style: normal; color: var(--ps-ink-3); font-size: .68em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx-tag { flex: none; padding: .35em .7em; border-radius: 99px; font-size: .64em; font-weight: 800; letter-spacing: .02em; }
.psx-tag--new { background: var(--ps-sky); color: var(--ps-blue); }
.psx-tag--rev { background: #FFF1DA; color: #A86400; }
.psx-tag--done { background: var(--ps-mint-soft); color: var(--ps-mint-d); }

.psx-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .7em 1.1em .7em .7em;
  border-radius: 99px;
  background: #fff;
  box-shadow: var(--ps-shadow-lg);
  white-space: nowrap;
  line-height: 1.2;
  font-size: .9em;
}
.psx-float b { display: block; color: var(--ps-ink); font-weight: 700; }
.psx-float i { display: block; font-style: normal; color: var(--ps-ink-3); font-size: .8em; }
.psx-float__ic { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--ps-mint); color: #fff; }
.psx-float__ic--blue { background: var(--ps-blue); }
.psx-float__ic svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.psx-float--fax { left: 26%; bottom: 3%; animation: psx-float-a 8s ease-in-out -2s infinite; }
.psx-float--pin { right: 2%; top: 6%; animation: psx-float-b 10s ease-in-out -4s infinite; }
.psx-float--tap { left: 0; bottom: 26%; padding-right: 1.2em; animation: psx-float-b 9s ease-in-out -1s infinite; }
.psx-ripple { position: relative; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--ps-sky); }
.psx-ripple i { position: absolute; inset: 30%; border-radius: 50%; border: 2px solid var(--ps-blue); opacity: 0; animation: psx-ring 2.6s ease-out infinite; }
.psx-ripple i:nth-child(2) { animation-delay: .8s; }
.psx-ripple i:nth-child(3) { animation-delay: 1.6s; }
@keyframes psx-ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes psx-float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes psx-float-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }

/* marquee */
.psx-marquee {
  margin-top: clamp(56px, 7vw, 96px);
  padding: 26px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.psx-marquee__track { display: flex; width: max-content; animation: psx-marquee 48s linear infinite; }
.psx-marquee:hover .psx-marquee__track { animation-play-state: paused; }
.psx-marquee span {
  display: inline-flex;
  align-items: center;
  font-family: var(--ps-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ps-ink);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.psx-marquee span::after {
  content: "";
  width: 18px;
  height: 18px;
  margin: 0 34px;
  background: var(--ps-mint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z' /%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z' /%3E%3C/svg%3E") center / contain no-repeat;
  border-radius: 4px;
}
@keyframes psx-marquee { to { transform: translateX(-50%); } }

/* the hero now sits directly above the P · A · M wave, so it leaves room for it */
.psx-hero { padding-bottom: calc(clamp(36px, 6vw, 90px) + 12px); }

/* =========================================================
   P · A · M
   ========================================================= */
.psx-pam { --sec-bg: #fff; background: #fff; z-index: 2; padding-top: clamp(24px, 3vw, 40px); }
.psx-pam__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.psx-pillar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(30px, 3.6vw, 52px);
  border-radius: 36px;
}
.psx-pillar > *:not(.psx-pillar__letter) { position: relative; }
.psx-pillar__letter {
  position: absolute;
  right: 6%;
  bottom: -9%;
  z-index: -1;
  font-family: var(--ps-display);
  font-weight: 800;
  font-size: clamp(200px, 22vw, 300px);
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}
.psx-pillar__tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 99px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.psx-pillar h3 { font-size: clamp(25px, 2.4vw, 32px); line-height: 1.12; font-weight: 700; margin-bottom: 16px; max-width: 20ch; }
.psx-pillar p + p { margin-top: 12px; }
.psx-pillar .psx-checks { margin-top: 6px; }

.psx-pillar--p { grid-column: span 5; background: var(--ps-sky); }
.psx-pillar--p .psx-pillar__letter { color: rgba(16, 78, 174, .1); }
.psx-pillar--p .psx-pillar__tag { color: var(--ps-blue); }

.psx-pillar--a { grid-column: span 7; background: var(--ps-mint-soft); }
.psx-pillar--a .psx-pillar__letter { color: rgba(23, 132, 90, .14); }
.psx-pillar--a .psx-pillar__tag { color: var(--ps-mint-d); }

.psx-pillar--m {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  background: var(--ps-ink);
  color: rgba(255, 255, 255, .78);
}
.psx-pillar--m .psx-pillar__letter { color: rgba(255, 255, 255, .06); right: auto; left: -1%; bottom: -22%; font-size: clamp(240px, 26vw, 360px); }
.psx-pillar--m h3 { color: #fff; }
.psx-pillar--m .psx-pillar__tag { background: rgba(255,255,255,.1); color: #8FD3B5; }
.psx-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.psx-feats li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .86);
  font-size: 15.5px;
  line-height: 1.5;
  transition: background-color .3s;
}
.psx-feats li:hover { background: rgba(255, 255, 255, .1); }
.psx-feats__ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; background: rgba(23, 132, 90, .2); color: #8FD3B5; }
.psx-feats__ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.psx-how { padding-top: clamp(120px, 13vw, 180px); }
.psx-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.psx-steps__path {
  position: absolute;
  left: 4%;
  right: 4%;
  top: -6px;
  width: 92%;
  height: 90px;
  fill: none;
  stroke: rgba(16, 78, 174, .28);
  stroke-width: 2.5;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  pointer-events: none;
}
.psx-step { text-align: center; position: relative; }
.psx-step__ic { position: absolute; top: 58px; left: calc(50% + 20px); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ps-mint); color: #fff; box-shadow: 0 0 0 4px var(--ps-paper); }
.psx-step__ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.psx-step__num {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 26px;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: #fff;
  box-shadow: var(--ps-shadow-lg);
  font-family: var(--ps-display);
  font-weight: 800;
  font-size: 34px;
  color: var(--ps-blue);
  transition: border-radius .8s var(--ps-ease), transform .5s var(--ps-ease);
}
.psx-step:hover .psx-step__num { border-radius: 58% 42% 46% 54% / 44% 56% 44% 56%; transform: rotate(-6deg) scale(1.05); }
.psx-step:nth-child(3) .psx-step__num { color: var(--ps-mint-d); }
.psx-step h3 { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.psx-step p { max-width: 32ch; margin: 0 auto; }

/* =========================================================
   PAPERLESS (dark)
   ========================================================= */
.psx-paper {
  --sec-bg: var(--ps-ink);
  z-index: 2;
  background: var(--ps-ink);
  color: rgba(255, 255, 255, .74);
  margin: clamp(30px, 4vw, 50px) 0;
}
.psx-paper__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.psx-paper .psx-sechead { margin-bottom: 0; }
.psx-paper .psx-h2 { color: #fff; max-width: 14ch; }
.psx-paper .psx-lead { color: rgba(255, 255, 255, .72); }
.psx-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 30px !important;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(23, 132, 90, .14);
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.5;
}
.psx-callout b { color: #8FD3B5; }
.psx-callout svg { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: #8FD3B5; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.psx-paper__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.psx-pcard {
  padding: 30px 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .06);
  transition: background-color .4s, transform .5s var(--ps-ease);
}
.psx-pcard:nth-child(even) { transform: translateY(28px); }
.psx.psx-js .psx-pcard.psx-reveal.is-in:nth-child(even) { transform: translateY(28px); }
.psx-pcard:hover { background: rgba(255, 255, 255, .1); }
.psx-pcard__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; background: rgba(143, 211, 181, .14); color: #8FD3B5; }
.psx-pcard__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.psx-pcard h3 { color: #fff; font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.psx-pcard p { color: rgba(255, 255, 255, .7); font-size: 16px; }

/* =========================================================
   NFC STAND
   ========================================================= */
.psx-nfc { padding-top: clamp(130px, 14vw, 190px); }
.psx-nfc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.psx-nfc__visual { position: relative; display: grid; place-items: center; padding: 6% 4%; }
.psx-nfc__halo { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 0%, var(--ps-sky) 58%, rgba(234, 241, 252, 0) 72%); }
.psx-nfc__halo i { position: absolute; inset: 18%; border-radius: 50%; border: 2px solid rgba(16, 78, 174, .16); animation: psx-halo 4.8s ease-out infinite; }
.psx-nfc__halo i:nth-child(2) { animation-delay: 1.6s; }
.psx-nfc__halo i:nth-child(3) { animation-delay: 3.2s; }
@keyframes psx-halo { 0% { transform: scale(.7); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.psx-nfc__visual img { position: relative; width: min(78%, 400px); transform: rotate(-4deg); filter: drop-shadow(0 34px 34px rgba(10, 26, 54, .28)); transition: transform .8s var(--ps-ease); }
.psx-nfc__visual:hover img { transform: rotate(0deg) translateY(-6px); }
.psx-nfc__stat {
  position: absolute;
  right: 2%;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 190px;
  padding: 20px 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--ps-shadow-lg);
  line-height: 1.3;
  font-size: 14.5px;
  color: var(--ps-ink-2);
}
.psx-nfc__stat b { font-family: var(--ps-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ps-blue); letter-spacing: -0.03em; }
.psx-nfc__stat small { font-size: 18px; margin-left: 4px; color: var(--ps-ink-3); font-weight: 700; letter-spacing: 0; }
.psx-new { display: inline-block; padding: 4px 11px; border-radius: 99px; background: var(--ps-sun); color: var(--ps-ink); letter-spacing: .08em; font-size: 12px; }
.psx-tapsteps { display: grid; gap: 16px; margin: 30px 0 36px; }
.psx-tapsteps li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; }
.psx-tapsteps li b { color: var(--ps-ink); }
.psx-tapsteps li > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; background: var(--ps-mint-soft); color: var(--ps-mint-d); font-family: var(--ps-display); font-weight: 800; font-size: 15px; margin-top: -3px; }
.psx-tapsteps li > .psx-t { display: block; flex: 1; min-width: 0; }

/* =========================================================
   PRICING
   ========================================================= */
.psx-nfc { padding-bottom: clamp(32px, 4vw, 56px); }
.psx-price { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(60px, 7vw, 100px); }
.psx-plan {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 44px;
  background: #fff;
  box-shadow: var(--ps-shadow-lg);
}
.psx-plan__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(30px, 4vw, 48px);
  border-radius: 36px;
  background: var(--ps-blue);
  color: rgba(255, 255, 255, .85);
}
.psx-plan__badge { padding: 7px 16px; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.psx-plan__price { font-family: var(--ps-display); font-weight: 800; font-size: clamp(72px, 8vw, 112px); line-height: .9; letter-spacing: -0.04em; color: #fff; margin: 26px 0 12px !important; }
.psx-plan__note { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 30px !important; }
.psx .psx-plan__left .psx-btn { margin-top: auto; }
.psx .psx-plan__login { margin-top: 16px; align-self: center; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }
.psx .psx-plan__login:hover { color: #fff; }
.psx-plan__right { padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px); }
.psx-plan__inc { font-family: var(--ps-display); font-weight: 700; font-size: 22px; color: var(--ps-ink); margin-bottom: 22px !important; letter-spacing: -0.02em; }
.psx-checks--plan { gap: 16px; }
.psx-plan__soon { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 30px !important; padding: 14px 18px; border-radius: 22px; background: var(--ps-paper); font-weight: 600; color: var(--ps-ink); font-size: 15.5px; }
.psx-plan__soon span { padding: 4px 11px; border-radius: 99px; background: #FFF1DA; color: #A86400; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .psx-pillar--p, .psx-pillar--a { grid-column: span 12; }
  .psx-pillar--m { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .psx-hero__grid { grid-template-columns: 1fr; }
  .psx-hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .psx-paper__grid, .psx-nfc__grid { grid-template-columns: 1fr; }
  .psx-paper .psx-h2 { max-width: 18ch; }
  .psx-steps { grid-template-columns: 1fr; gap: 44px; }
  .psx-steps__path { display: none; }
  .psx-plan { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .psx { font-size: 16px; }
  .psx-feats { grid-template-columns: 1fr; }
  .psx-paper__cards { grid-template-columns: 1fr; }
  .psx-pcard:nth-child(even), .psx.psx-js .psx-pcard.psx-reveal.is-in:nth-child(even) { transform: none; }
  .psx-hero__ctas .psx-btn { flex: 1 1 100%; }
  .psx-nfc__stat { right: 0; bottom: 0; padding: 16px 18px; }
  .psx-nfc__stat b { font-size: 32px; }
  .psx-pillar { border-radius: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .psx *, .psx *::before, .psx *::after { animation: none !important; transition-duration: .01ms !important; }
  .psx-dash__list li { opacity: 1; }
  .psx-field--sig svg { stroke-dashoffset: 0; }
  .psx-marquee__track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 8px; }
  .psx-marquee span[aria-hidden] { display: none; }
  .psx.psx-js .psx-reveal { opacity: 1; transform: none; }
}

.psx-how .psx-h2 { max-width: 18ch; }
.psx-pillar__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   HERO FONTS (31 Oct 2026): the original hero, set in the
   restyle's type. Headings in Source Serif 4, text in Libre
   Franklin. Both load at 600 at most, so heavier weights in
   the hero are set to 600 to avoid faux bold. The benefits
   marquee stays in Atkinson.
   ========================================================= */
.psx .psx-hero {
  --ps-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ps-body: "Libre Franklin", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-family: var(--ps-body);
}
.psx .psx-hero .psx-hero__title { font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.psx .psx-hero :is(.psx-pill--trial, .psx-eyebrow, .psx-btn, .psx-phone__brand, .psx-phone__title, .psx-phone__btn, .psx-dash__head, .psx-av, .psx-tag, b, strong) { font-weight: 600; }
.psx .psx-hero .psx-marquee { --ps-display: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif; }

/* =========================================================
   PHONES (1 Nov 2026): shorter page. The P·A·M pillars become a
   swipe row with P / A / M buttons, the 1-2-3 steps a compact
   numbered timeline, and the paperless cards a 2 x 2 grid.
   Desktop and tablet are unchanged.
   ========================================================= */
.psx-swipe-nav { display: none; }
@media (max-width: 640px) {
  .psx-sec { padding-block: 64px; }
  .psx-sechead { margin-bottom: 30px; }

  /* P·A·M: swipe row */
  .psx-pam { padding-bottom: 56px; }
  .psx .psx-pam__grid {
    display: flex;
    gap: 12px;
    margin-inline: -20px;
    padding: 4px 20px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .psx-pam__grid::-webkit-scrollbar { display: none; }
  .psx .psx-pillar { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; padding: 26px 22px 28px; border-radius: 28px; }
  .psx.psx-js .psx-pam__grid .psx-reveal { opacity: 1; transform: none; }
  .psx-pillar h3 { font-size: 22px; margin-bottom: 14px; }
  .psx-pillar__tag { margin-bottom: 14px; }
  .psx-pillar .psx-checks { gap: 10px; font-size: 15.5px; }
  .psx-pillar__letter { font-size: 230px; right: 4%; bottom: -6%; }
  .psx-pillar--m { display: block; }
  .psx-pillar--m .psx-pillar__letter { font-size: 190px; bottom: -8%; }
  .psx-pillar--m .psx-pillar__head > p:not(.psx-pillar__tag) { font-size: 15.5px; }
  .psx-pillar__cta .psx-btn { height: 48px; font-size: 15.5px; }
  .psx-pillar__cta .psx-btn__arrow { width: 34px; height: 34px; }
  .psx .psx-feats { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 18px; }
  .psx .psx-feats li { flex-direction: column; gap: 6px; padding: 10px 11px; border-radius: 14px; font-size: 13px; line-height: 1.3; }
  .psx-feats__ic { width: 26px; height: 26px; }
  .psx-feats__ic svg { width: 14px; height: 14px; }
  .psx-pillar--m h3 { margin-bottom: 8px; }
  .psx-pillar--m .psx-pillar__head > p:not(.psx-pillar__tag) { line-height: 1.45; }
  .psx-pillar__cta { margin-top: 14px; }

  .psx-swipe-nav { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .psx-swipe-nav button {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1.5px solid rgba(16, 78, 174, .22);
    border-radius: 50%;
    background: #fff;
    color: var(--ps-blue);
    font-family: var(--ps-display);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
  }
  .psx-swipe-nav button.is-active { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff; }

  /* 1-2-3: numbered timeline */
  .psx-how { padding-top: 96px; }
  .psx .psx-steps { gap: 0; }
  .psx .psx-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding-bottom: 26px;
    text-align: left;
  }
  .psx .psx-step:last-child { padding-bottom: 0; }
  .psx .psx-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 60px;
    bottom: 6px;
    width: 2px;
    border-radius: 2px;
    background: rgba(16, 78, 174, .16);
  }
  .psx .psx-step__num { grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; margin: 0; font-size: 22px; box-shadow: var(--ps-shadow); }
  .psx .psx-step__ic { display: none; }
  .psx .psx-step h3 { grid-column: 2; margin: 3px 0 4px; font-size: 19px; line-height: 1.25; }
  .psx .psx-step p { grid-column: 2; max-width: none; margin: 0; font-size: 15.5px; }

  /* Paperless: 2 x 2 */
  .psx .psx-paper__cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .psx .psx-pcard { padding: 18px 16px; border-radius: 22px; }
  .psx-pcard__ic { width: 40px; height: 40px; margin-bottom: 12px; }
  .psx-pcard__ic svg { width: 20px; height: 20px; }
  .psx .psx-pcard h3 { font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
  .psx .psx-pcard p { font-size: 14px; line-height: 1.45; }
  .psx-callout { margin-top: 20px; }
}
@media (max-width: 360px) {
  .psx .psx-feats, .psx .psx-paper__cards { grid-template-columns: 1fr; }
}

/* =========================================================
   PHONE HERO (1 Nov 2026): tighter rhythm so the buttons and the
   patient line sit on the first screen, a smaller product visual,
   and a slimmer benefits strip. Desktop and tablet are unchanged.
   ========================================================= */
@media (max-width: 640px) {
  .psx-hero { padding-top: 24px; padding-bottom: 44px; }
  .psx .psx-hero__grid { gap: 26px; }
  .psx .psx-pill--trial { margin-bottom: 16px; padding: 7px 14px 7px 10px; font-size: 13.5px; }
  .psx .psx-slide .psx-eyebrow { margin-bottom: 10px; font-size: 11.5px; letter-spacing: .05em; }
  .psx .psx-hero .psx-hero__title { font-size: 36px; line-height: 1.06; }
  .psx .psx-hero__lead { margin-top: 14px; font-size: 16.5px; line-height: 1.5; }
  .psx .psx-rotator__dots { margin-top: 20px; }
  /* slides differ in height: keep each one's text close under the trial pill; the spare room
     (only on the shorter slides) falls just above the buttons */
  .psx .psx-slide { align-self: start; }
  .psx .psx-rotator__dots { transform: translateY(calc(-1 * var(--psx-slack, 0px))); transition: transform .9s var(--ps-ease); }
  .psx .psx-hero__ctas { margin-top: 24px; gap: 10px; }
  .psx .psx-hero__ctas .psx-btn { height: 52px; font-size: 16px; }
  .psx .psx-hero__ctas .psx-btn__arrow { width: 36px; height: 36px; }
  .psx .psx-hero__patient { margin-top: 16px; font-size: 14.5px; line-height: 1.6; }
  .psx .psx-hero__visual { max-width: 300px; margin: 0 auto; }
  .psx .psx-marquee { margin-top: 28px; padding: 14px 0; }
  .psx .psx-marquee span { font-size: 16px; }
  .psx .psx-marquee span::after { width: 14px; height: 14px; margin: 0 22px; }
}
