/* ================================
   Patients First · Final Wireframe and Prototype
   Section scope: .pf-prototype
   Includes: primary button left-to-right white sweep,
             blue text on hover, coral dot removed,
             layering fix with isolation
================================ */

/* Tokens */
:root{
  --pf-ink: #1f1f1f;
  --pf-ink-600: #2b3147;
  --pf-muted: #66707a;
  --pf-white: #ffffff;

  /* PF blues */
  --pf-blue-700: #398FBA;
  --pf-blue-500: #398FBA;

  /* Coral accent kept for other UI */
  --pf-coral: #FF6C63;

  --pf-rail: 1160px;
  --pf-pad: clamp(16px, 4vw, 48px);
  --pf-radius: 18px;
  --pf-shadow-lg: 0 30px 80px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.12);
  --pf-shadow-md: 0 14px 38px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.10);
}

/* Section */
.pf-prototype{
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(255,235,229,.6), transparent 60%),
    linear-gradient(180deg, #fff, #fff);
  color: var(--pf-ink);
  overflow: clip;
  padding-bottom: clamp(40px, 10vw, 120px);
}

.pfp-rail{
  margin: 0 auto;
  max-width: var(--pf-rail);
  padding: var(--pf-pad);
}

.pfp-head{
  text-align: center;
  margin: 0 auto clamp(28px, 6vw, 64px);
  max-width: 880px;
}

.pfp-kicker{
  font: 600 0.9rem/1.2 "Montserrat", system-ui, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FF6C63;
  margin-bottom: .5rem;
  opacity: .9;
}

.pfp-title{
  font: 800 clamp(28px, 5vw, 46px)/1.15 "Montserrat", system-ui, Arial, sans-serif;
  color: var(--pf-ink-600);
  margin: 0 0 .6rem;
}

.pfp-sub{
  font: 400 1.05rem/1.7 "Montserrat", system-ui, Arial, sans-serif;
  color: var(--pf-muted);
  margin: 0 auto 1.25rem;
}

.pfp-cta{
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}

/* --------------------------------
   Buttons, scoped to this section
--------------------------------- */
.pf-prototype .pfp-cta .btn-primary,
.pf-prototype .pfp-cta .btn-ghost{
  appearance: none;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: .95rem 1.25rem;
  text-decoration: none;
  font: 600 0.98rem/1 "Montserrat", system-ui, Arial, sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease;
}

/* Primary with hero-style hover sweep */
.pf-prototype .pfp-cta .btn-primary{
  background: var(--pf-blue-500);
  color: var(--pf-white);
  box-shadow: var(--pf-shadow-md);
  border-color: transparent;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/* White layer that grows left to right */
.pf-prototype .pfp-cta .btn-primary::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  z-index: -1;
}

/* Keep label above */
.pf-prototype .pfp-cta .btn-primary > *{
  position: relative;
  z-index: 1;
}

/* Remove older diagonal shine and the coral icon chip */
.pf-prototype .pfp-cta .btn-primary::after{ display: none; }
.pf-prototype .pfp-cta .btn-primary .btn__icon{ display: none; }

/* Hover result */
.pf-prototype .pfp-cta .btn-primary:hover{
  background: transparent;
  color: var(--pf-blue-700) !important;
  border-color: var(--pf-blue-500);
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(57,143,186,.28);
}
.pf-prototype .pfp-cta .btn-primary:hover::before{
  transform: scaleX(1);
}

/* Force nested text to adopt hover color, do not affect SVG paint order */
.pf-prototype .pfp-cta .btn-primary:hover *:not(svg){
  color: var(--pf-blue-700) !important;
}

/* Make SVG icons follow text color when present */
.pf-prototype .pfp-cta .btn-primary svg{
  fill: currentColor;
  stroke: currentColor;
}

/* Focus */
.pf-prototype .pfp-cta .btn-primary:focus-visible{
  outline: none;
  border-color: var(--pf-blue-500);
  box-shadow: 0 0 0 4px rgba(57,143,186,.25);
}

/* Ghost keeps glossy sweep */
.pf-prototype .pfp-cta .btn-ghost{
  background: #fff;
  color: var(--pf-blue-700);
  border-color: var(--pf-blue-500);
}
.pf-prototype .pfp-cta .btn-ghost::after{
  content: "";
  position: absolute; inset: 0 -120% 0 auto;
  width: 60%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  opacity: 0;
  transition: opacity .25s ease, transform .45s ease;
}
.pf-prototype .pfp-cta .btn-ghost:hover{
  background: var(--pf-blue-500);
  color: #fff;
}
.pf-prototype .pfp-cta .btn-ghost:hover::after{
  opacity: .8; transform: translateX(-40%) skewX(-20deg);
}
.pf-prototype .pfp-cta .btn-ghost:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(57,143,186,.25);
}

/* Stage */
.pfp-stage{
  position: relative;
  display: grid;
  place-items: center;
  margin: clamp(18px, 5vw, 44px) auto;
  padding: clamp(12px, 3vw, 18px);
}

/* Parallax blobs */
.blob{
  position: absolute;
  filter: blur(28px);
  opacity: .5;
  z-index: -2;
}
.blob-a{
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(55% 60% at 60% 40%, rgba(255,180,168,.9), transparent 70%);
  top: -60px; left: -80px;
  animation: floatA 10s ease-in-out infinite alternate;
}
.blob-b{
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(55% 60% at 40% 60%, rgba(57,143,186,.45), transparent 70%);
  right: -60px; bottom: -40px;
  animation: floatB 12s ease-in-out infinite alternate;
}

@keyframes floatA{ to{ transform: translate(22px, 16px) scale(1.05); } }
@keyframes floatB{ to{ transform: translate(-24px, -18px) scale(1.08); } }

/* Soft glow band */
.pfp-glow{
  position: absolute;
  inset: auto 10% -10% 10%;
  height: clamp(220px, 28vw, 380px);
  filter: blur(40px);
  background:
    radial-gradient(60% 70% at 60% 40%, rgba(255,180,168,.9), transparent 70%),
    radial-gradient(40% 50% at 30% 70%, rgba(57,143,186,.35), transparent 70%);
  opacity: .75;
  z-index: -1;
}

/* Device card */
.pfp-device{
  position: relative;
  width: min(520px, 92vw);
  padding: clamp(10px, 1.6vw, 16px);
  border-radius: calc(var(--pf-radius) + 10px);
  background: linear-gradient(180deg, #ffffff, #fafafa);
  box-shadow: var(--pf-shadow-lg);
  transform-style: preserve-3d;
  will-change: transform, filter;
  animation: idleFloat 8s ease-in-out infinite;
}
@keyframes idleFloat{
  0%{ transform: translateY(0); filter: drop-shadow(0 10px 24px rgba(0,0,0,.08)); }
  50%{ transform: translateY(-6px); filter: drop-shadow(0 18px 36px rgba(0,0,0,.10)); }
  100%{ transform: translateY(0); filter: drop-shadow(0 10px 24px rgba(0,0,0,.08)); }
}

.pfp-device::after{
  content: "";
  position: absolute; inset: 12px;
  border-radius: calc(var(--pf-radius) + 6px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  pointer-events: none;
}
.pfp-img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--pf-radius) + 6px);
}

.pfp-cap{
  margin-top: .75rem;
  text-align: center;
  color: var(--pf-muted);
  font: 500 .92rem/1.4 "Montserrat", system-ui, Arial, sans-serif;
}

/* Chips */
.pfp-chips{
  position: absolute;
  inset: 0;
  pointer-events: none;
  list-style: none;
}
.chip{
  position: absolute;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  color: var(--pf-ink-600);
  border-radius: 999px;
  padding: .55rem .9rem;
  font: 600 .86rem/1 "Montserrat", system-ui, Arial, sans-serif;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  opacity: 0;
  translate: 0 10px;
  transform: translateZ(40px);
  transition: opacity .5s ease, translate .5s ease;
}
.pfp-chips .chip:nth-child(1){ top: 6%; right: 4%; }
.pfp-chips .chip:nth-child(2){ top: 18%; left: -10px; }
.pfp-chips .chip:nth-child(3){ bottom: 20%; right: -8px; }
.pfp-chips .chip:nth-child(4){ bottom: 8%; left: 6%; }

/* Scroll reveal */
.pf-prototype [data-reveal]{ opacity: 0; translate: 0 14px; }
.pf-prototype .is-revealed{ opacity: 1; translate: 0 0; transition: opacity .6s ease, translate .6s ease; }

/* Cursor glow inside section only */
.pfp-cursor{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(180px 180px at var(--x, -200px) var(--y, -200px), rgba(255,108,99,.18), transparent 60%);
  opacity: .75;
  transition: background-position .1s linear;
  z-index: -1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pfp-device, .chip, .blob,
  .pf-prototype .pfp-cta .btn-primary,
  .pf-prototype .pfp-cta .btn-ghost{
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile polish */
@media (max-width: 560px){
  .pfp-rail{ padding: 18px; }

  .pfp-cta{ width: 100%; }
  .pfp-cta .btn-primary,
  .pfp-cta .btn-ghost{
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .pfp-device{
    width: 100%;
    padding: 10px;
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(0,0,0,.12);
    animation: none;
  }
  .pfp-device::after{
    inset: 8px;
    border-radius: 18px;
  }
  .pfp-img{
    border-radius: 18px;
  }

  .blob{ opacity: .25; filter: blur(22px); }
  .blob-a{ top: -30px; left: -40px; width: 300px; height: 300px; }
  .blob-b{ right: -30px; bottom: -20px; width: 260px; height: 260px; }

  .pfp-chips{
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    pointer-events: auto;
  }
  .pfp-chips .chip{
    position: static;
    transform: none;
    translate: 0 0;
    opacity: 1;
    padding: 10px 12px;
    font-size: .9rem;
    line-height: 1.2;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    white-space: normal;
  }

  .pfp-cap{ margin-top: 10px; font-size: .9rem; }
  .pfp-glow{ height: 180px; opacity: .55; inset: auto 8% -8% 8%; }
}

/* Very small phones */
@media (max-width: 380px){
  .pfp-rail{ padding: 14px; }
  .pfp-title{ font-size: 24px; }
  .pfp-sub{ font-size: .98rem; }
}
