/* Fonctionnement — contenu de la maquette, design system AfterClinic */

.functioning-page {
  --functioning-muted: #55758e;
  --functioning-border: #d6ebf0;
  --functioning-pink: #fff2f4;
  --functioning-pink-strong: #ff4f78;
  --functioning-blue: #edfafd;
  color: var(--navy);
}

.functioning-page main {
  overflow: hidden;
  background: #fff;
}

.functioning-page h1,
.functioning-page h2,
.functioning-page h3,
.functioning-page p {
  margin-top: 0;
}

.functioning-page h1,
.functioning-page h2,
.functioning-page h3 {
  font-family: "Poppins", "Figtree", sans-serif;
}

.functioning-page .nav-links a.active {
  color: var(--navy);
}

/* Hero */

.functioning-hero {
  position: relative;
  height: calc(100svh - 104px);
  min-height: 676px;
  max-height: 940px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 28%, rgba(255,255,255,.96), transparent 27%),
    linear-gradient(100deg, #effafe 0%, #f7fcfd 50%, #eaf7f9 100%);
}

.functioning-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  height: 100%;
}

.functioning-hero-copy {
  position: relative;
  z-index: 4;
  width: min(56%, 840px);
  height: calc(100% - 90px);
  padding: clamp(50px, 7vh, 86px) 32px 12px 23px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.functioning-hero-copy .eyebrow {
  flex: none;
  margin-bottom: clamp(20px, 2.8vh, 30px);
  padding: 7px 21px;
  font-size: 11px;
  letter-spacing: 1.8px;
}

.functioning-hero h1 {
  max-width: 770px;
  margin: 0 0 clamp(22px, 3vh, 34px);
  color: var(--navy);
  font-size: 63px;
  font-weight: 600;
  letter-spacing: -2.8px;
  line-height: 1.08;
}

.functioning-hero h1 span {
  display: block;
  color: var(--cyan);
}

.functioning-hero-lead {
  max-width: 670px;
  margin: 0;
  color: #476b88;
  font-size: 19px;
  line-height: 1.45;
}

.functioning-hero-actions {
  margin-top: clamp(24px, 4vh, 42px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.functioning-hero-actions .button {
  min-width: 205px;
}

.functioning-hero-actions .button.secondary {
  min-width: 215px;
}

.functioning-hero-visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: calc(50% - 50vw);
  bottom: 90px;
  left: 35%;
  background:
    linear-gradient(90deg, #effafe 0%, rgba(239,250,254,.88) 11%, rgba(239,250,254,.25) 32%, transparent 52%),
    url("functioning-hero.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
}

.functioning-alert {
  position: absolute;
  z-index: 3;
  width: min(312px, calc(100vw - 48px));
  min-height: 70px;
  padding: 11px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #668198;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(209,232,238,.95);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(8,63,94,.14);
  backdrop-filter: blur(10px);
  font-size: 10px;
  line-height: 1.25;
}

.functioning-alert-body {
  min-width: 0;
  flex: 1;
}

.functioning-alert-sender {
  display: block;
  margin-bottom: 3px;
  color: #88a0b3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.functioning-alert-preview {
  margin: 0;
  color: #1b4568;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.38;
}

.functioning-alert-meta {
  display: block;
  margin-top: 3px;
  color: #7a95a9;
  font-size: 10px;
  font-weight: 400;
}

.functioning-alert.is-warning .functioning-alert-sender {
  color: #c47913;
}

.functioning-alert.is-warning .functioning-alert-preview {
  color: #7a4e08;
}

.functioning-alert.is-urgent .functioning-alert-sender {
  color: #bc3441;
}

.functioning-alert.is-urgent .functioning-alert-preview {
  color: #9b2a36;
}

.functioning-alert-icon {
  position: relative;
  width: 39px;
  height: 39px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--cyan-dark);
  background: #e5f8fa;
  border-radius: 50%;
}

.functioning-alert-icon .icon {
  width: 21px;
  height: 21px;
}

.functioning-notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e34f59;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(180,40,52,.28);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.functioning-alert.is-warning {
  border-color: rgba(240,192,100,.72);
}

.functioning-alert.is-warning .functioning-alert-icon {
  color: #c47913;
  background: #fff3d8;
}


.functioning-alert.is-urgent {
  border-color: rgba(226,112,120,.72);
  box-shadow: 0 14px 32px rgba(130,35,48,.16);
}

.functioning-alert.is-urgent .functioning-alert-icon {
  color: #cf4652;
  background: #ffebed;
}

.functioning-alert-video {
  width: 154px;
  min-height: 0;
  padding: 6px;
  display: block;
  border-color: rgba(79, 190, 201, .7);
  box-shadow: 0 16px 36px rgba(8, 63, 94, .18);
}

.functioning-video-preview {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 34, 52, .04) 45%, rgba(4, 34, 52, .34) 100%),
    url("functioning-visio-doctor.jpg") center 32% / cover no-repeat;
  border-radius: 10px;
}

.functioning-video-live {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  background: rgba(8, 42, 62, .7);
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.functioning-video-live i {
  width: 5px;
  height: 5px;
  background: #31d69b;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(49, 214, 155, .2);
}

.functioning-video-controls {
  position: absolute;
  z-index: 3;
  right: auto;
  bottom: 8px;
  left: 8px;
  display: flex;
  justify-content: flex-start;
  gap: 6px;
}

.functioning-video-controls i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(7, 42, 63, .78);
  border-radius: 50%;
}

.functioning-video-controls i.is-end {
  background: #e34f59;
}

.functioning-video-controls .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2;
}

.functioning-video-controls .is-end .icon {
  transform: rotate(135deg);
}

.functioning-video-doctor {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 4px 6px;
  color: #fff;
  background: rgba(8, 42, 62, .7);
  border-radius: 7px;
  text-align: right;
  line-height: 1.12;
}

.functioning-video-doctor strong,
.functioning-video-doctor small {
  display: block;
}

.functioning-video-doctor strong {
  font-size: 8px;
  font-weight: 800;
}

.functioning-video-doctor small {
  margin-top: 2px;
  font-size: 6px;
}

.functioning-video-scar {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  width: 56px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: url("functioning-visio-cicatrice.jpg") center / 155% no-repeat;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(0, 183, 199, .72),
    0 7px 17px rgba(4, 34, 52, .34);
}

.functioning-video-scar small {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  padding: 2px 3px;
  overflow: hidden;
  color: #fff;
  background: rgba(7, 42, 63, .72);
  border-radius: 4px;
  font-size: 6px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.functioning-alert-care {
  top: 11%;
  left: 22%;
}

.functioning-alert-reminder {
  top: calc(11% + 112px);
  left: 25%;
}

.functioning-alert-calendar {
  top: calc(11% + 210px);
  left: 22%;
}

.functioning-alert-video {
  top: calc(11% + 308px);
  left: 25%;
}

.functioning-hero .benefit-bar {
  height: 90px;
  background: rgba(240,251,253,.97);
}

.functioning-hero .benefit-grid {
  min-height: 90px;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  padding-inline: 22px;
}

.functioning-hero .benefit-item {
  gap: 14px;
  font-size: 14px;
}

.functioning-hero .benefit-item .icon {
  width: 38px;
  height: 38px;
}

/* Sections communes */

.functioning-kicker {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 15px;
  color: #168fac;
  background: #dff7fa;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.functioning-kicker-pink {
  color: #df3d65;
  background: #ffe0e7;
}

.functioning-section-intro h2,
.functioning-solution-head h2,
.functioning-product-copy h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(32px, 3vw, 43px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.functioning-section-intro > p,
.functioning-solution-head > p,
.functioning-product-lead {
  margin-bottom: 0;
  color: var(--functioning-muted);
  font-size: 15px;
  line-height: 1.55;
}

.functioning-round-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.functioning-round-icon .icon {
  width: 30px;
  height: 30px;
}

/* Le constat */

.functioning-challenges {
  padding: 68px 0;
  background:
    radial-gradient(circle at 95% 15%, rgba(255,255,255,.82), transparent 22%),
    linear-gradient(112deg, #fff7f8, var(--functioning-pink));
}

.functioning-split {
  display: grid;
  grid-template-columns: minmax(310px, .82fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(34px, 4vw, 58px);
}

.functioning-section-intro {
  padding-right: clamp(10px, 2vw, 30px);
}

.functioning-challenge-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.functioning-challenge-grid::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -28px;
  width: 1px;
  background: #f0d9de;
}

.functioning-challenge-grid article {
  min-width: 0;
  padding: 7px 15px;
  text-align: center;
  border-left: 1px solid #f0d9de;
}

.functioning-challenge-grid article:first-child {
  border-left: 0;
}

.functioning-challenge-grid .functioning-round-icon {
  color: var(--functioning-pink-strong);
  background: #ffe1e7;
  box-shadow: inset 0 0 0 1px rgba(255,79,120,.08);
}

.functioning-challenge-grid h3,
.functioning-solution-grid h3 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
}

.functioning-challenge-grid p,
.functioning-solution-grid p {
  margin-bottom: 0;
  color: #6c8396;
  font-size: 11px;
  line-height: 1.45;
}

/* Notre solution */

.functioning-solution {
  padding: 68px 0 72px;
  background:
    radial-gradient(circle at 5% 100%, rgba(0,183,199,.08), transparent 26%),
    linear-gradient(100deg, #f2fcfe, #eaf9fc);
}

.functioning-solution > .container {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(34px, 4vw, 56px);
}

.functioning-solution-head {
  padding-right: clamp(10px, 2vw, 26px);
}

.functioning-solution-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.functioning-solution-grid::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -28px;
  width: 1px;
  background: #cfe9ee;
}

.functioning-solution-grid article {
  min-width: 0;
  padding: 7px 9px;
  text-align: center;
}

.functioning-solution-grid .functioning-round-icon {
  width: 58px;
  height: 58px;
  color: #06a7bc;
  background: #d9f5f8;
  box-shadow: inset 0 0 0 1px rgba(0,155,170,.08);
}

.functioning-solution-grid .functioning-round-icon .icon {
  width: 28px;
  height: 28px;
}

.functioning-solution-grid h3 {
  font-size: 12px;
}

.functioning-solution-grid p {
  font-size: 10px;
}

/* Produit */

.functioning-product {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0 86px;
  background: #fff;
}

.functioning-product::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -28px;
  background: url("functioning-product-bg.jpg") 76% 40% / cover no-repeat;
  filter: blur(6px) saturate(1.02);
  transform: scale(1.04);
  transform-origin: 78% center;
  pointer-events: none;
}

.functioning-product::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    90deg,
    #fff 0%,
    rgba(255,255,255,1) 35%,
    rgba(255,255,255,.96) 46%,
    rgba(255,255,255,.62) 61%,
    rgba(255,255,255,.12) 82%,
    rgba(255,255,255,.03) 100%
  );
  pointer-events: none;
}

.functioning-product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, .96fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(36px, 4.5vw, 68px);
}

.functioning-product-lead {
  max-width: 650px;
  margin-bottom: 30px;
}

.functioning-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 26px;
}

.functioning-feature-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.functioning-feature-grid article > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #0aa8ba;
  background: #e4f8fa;
  border-radius: 50%;
}

.functioning-feature-grid article > span .icon {
  width: 24px;
  height: 24px;
}

.functioning-feature-grid h3 {
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.functioning-feature-grid p {
  margin-bottom: 0;
  color: #6a8497;
  font-size: 11px;
  line-height: 1.4;
}

.functioning-product-visual {
  position: relative;
  min-height: 478px;
  overflow: visible;
}

.functioning-product-visual::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -20%;
  width: 70%;
  height: 48%;
  background: radial-gradient(ellipse, rgba(15,66,95,.13), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

/* Maquette ordinateur */

.functioning-laptop {
  position: absolute;
  z-index: 2;
  right: 9%;
  bottom: 58px;
  width: 82%;
  filter: drop-shadow(0 18px 19px rgba(8,42,65,.22));
}

.functioning-laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f7fbfc;
  border: 10px solid #132230;
  border-bottom-width: 13px;
  border-radius: 13px 13px 5px 5px;
}

.functioning-laptop-base {
  position: absolute;
  top: 100%;
  left: -7%;
  width: 114%;
  height: 14px;
  margin-top: -1px;
  background: linear-gradient(#e8edf0, #aeb9c1);
  border-radius: 2px 2px 12px 12px;
  box-shadow: inset 0 2px #fff;
}

.functioning-laptop-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 43%;
  width: 14%;
  height: 4px;
  background: #9da9b1;
  border-radius: 0 0 5px 5px;
}

.functioning-app-top {
  height: 35px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8398a7;
  background: #fff;
  border-bottom: 1px solid #e6eff1;
  font-size: 7px;
}

.functioning-app-brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}

.functioning-app-brand span {
  color: var(--cyan);
}

.functioning-app-brand .icon {
  width: 17px;
  height: 17px;
  margin-right: 4px;
  color: var(--cyan);
  fill: currentColor;
  stroke: none;
}

.functioning-app-layout {
  height: calc(100% - 35px);
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
}

.functioning-app-sidebar {
  padding: 13px 8px;
  background: #edf8fa;
}

.functioning-app-sidebar span {
  margin-bottom: 5px;
  padding: 6px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7591a3;
  border-radius: 5px;
  font-size: 6px;
}

.functioning-app-sidebar span.is-active {
  color: #098fa4;
  background: #d8f2f5;
  font-weight: 700;
}

.functioning-app-sidebar .icon {
  width: 10px;
  height: 10px;
}

.functioning-app-main {
  padding: 15px 14px;
}

.functioning-app-main > p {
  margin-bottom: 10px;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.functioning-app-main > p small {
  margin-top: 2px;
  display: block;
  color: #728ca0;
  font-family: "Figtree", sans-serif;
  font-size: 7px;
  font-weight: 500;
}

.functioning-progress {
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 4px;
  color: #4f748d;
  font-size: 6px;
  font-weight: 700;
}

.functioning-progress i {
  height: 3px;
  background: linear-gradient(90deg, #0bb8c9 55%, #dbe9ed 55%);
  border-radius: 999px;
}

.functioning-dashboard-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.functioning-dashboard-cards > div {
  min-height: 80px;
  padding: 9px;
  display: grid;
  align-content: start;
  color: #708a9d;
  background: #fff;
  border: 1px solid #e1edef;
  border-radius: 7px;
  box-shadow: 0 5px 13px rgba(8,70,99,.06);
  font-size: 6px;
  line-height: 1.35;
}

.functioning-dashboard-cards .icon {
  width: 19px;
  height: 19px;
  margin-bottom: 5px;
  color: var(--cyan);
}

.functioning-dashboard-cards strong {
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 7px;
}

.functioning-mini-avatar {
  width: 19px;
  height: 19px;
  margin-bottom: 5px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #35bfd0, #0b7894);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.functioning-tools-title {
  margin: 12px 0 7px;
  display: block;
  color: var(--navy);
  font-size: 7px;
}

.functioning-quick-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.functioning-quick-tools span {
  padding: 6px 3px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: #668397;
  background: #eff9fa;
  border-radius: 5px;
  font-size: 5px;
}

.functioning-quick-tools .icon {
  width: 13px;
  height: 13px;
  color: #08a6b9;
}

/* Maquette mobile */

.functioning-phone {
  position: absolute;
  z-index: 4;
  right: 1.5%;
  bottom: 35px;
  width: 27%;
  aspect-ratio: 9 / 18.6;
  padding: 8px;
  overflow: hidden;
  background: #101a24;
  border: 2px solid #303d47;
  border-radius: 24px;
  box-shadow: 0 17px 26px rgba(5,37,58,.3);
}

.functioning-phone-screen {
  height: 100%;
  padding: 25px 9px 10px;
  overflow: hidden;
  background: #fbfdfd;
  border-radius: 16px;
}

.functioning-phone-speaker {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 37%;
  width: 26%;
  height: 5px;
  background: #06090c;
  border-radius: 5px;
}

.functioning-phone-head {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--navy);
  font-size: 8px;
}

.functioning-phone-screen > small {
  margin-bottom: 7px;
  display: block;
  color: #718a9b;
  font-size: 6px;
}

.functioning-phone-item {
  margin-bottom: 7px;
  padding: 7px 5px;
  display: grid;
  grid-template-columns: 17px 1fr;
  align-items: start;
  gap: 5px;
  color: #78909f;
  background: #eff9fb;
  border-radius: 6px;
  font-size: 5px;
  line-height: 1.3;
}

.functioning-phone-item.is-warm {
  background: #fff4eb;
}

.functioning-phone-item .icon {
  width: 14px;
  height: 14px;
  color: #08a8bd;
}

.functioning-phone-item.is-warm .icon {
  color: #ec7b3e;
}

.functioning-phone-item strong {
  display: block;
  margin-bottom: 1px;
  color: var(--navy);
  font-size: 5.5px;
}

.functioning-phone-preview {
  display: block;
  color: #4f6d84;
  font-size: 5px;
  font-weight: 500;
  line-height: 1.35;
}

.functioning-phone-item.is-urgent {
  background: #fff0f2;
}

.functioning-phone-item.is-urgent .icon {
  color: #cf4652;
}

@media (max-width: 1180px) {
  .functioning-hero h1 {
    font-size: 54px;
  }

  .functioning-hero-visual {
    left: 40%;
  }

  .functioning-alert {
    left: 17%;
  }

  .functioning-alert-reminder {
    left: 20%;
  }

  .functioning-split,
  .functioning-solution > .container {
    grid-template-columns: minmax(285px, .75fr) minmax(0, 1.5fr);
    gap: 34px;
  }

  .functioning-challenge-grid article {
    padding-inline: 10px;
  }

  .functioning-product-grid {
    grid-template-columns: minmax(370px, .9fr) minmax(0, 1.1fr);
    gap: 32px;
  }
}

@media (max-width: 920px) {
  .functioning-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .functioning-hero-inner {
    width: 100%;
    height: auto;
  }

  .functioning-hero-copy {
    width: min(calc(100% - 48px), 760px);
    height: auto;
    margin-inline: auto;
    padding: 48px 0 34px;
    align-items: center;
    text-align: center;
  }

  .functioning-hero-copy .eyebrow {
    margin-inline: auto;
  }

  .functioning-hero h1 {
    font-size: clamp(42px, 8vw, 56px);
  }

  .functioning-hero-lead {
    margin-inline: auto;
  }

  .functioning-hero-actions {
    justify-content: center;
  }

  .functioning-hero-visual {
    position: relative;
    inset: auto;
    width: 100vw;
    height: 600px;
    margin-left: calc(50% - 50vw);
    background:
      linear-gradient(180deg, #effafe 0%, rgba(239,250,254,.15) 18%, transparent 40%),
      url("functioning-hero.jpg") 68% center / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 11%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 11%, #000 100%);
  }

  .functioning-alert-care {
    top: 12%;
    left: 6%;
  }

  .functioning-alert-reminder {
    top: calc(12% + 112px);
    left: 9%;
  }

  .functioning-alert-calendar {
    top: calc(12% + 205px);
    left: 6%;
  }

  .functioning-alert-video {
    top: calc(12% + 298px);
    left: 9%;
  }

  .functioning-hero .benefit-bar {
    position: relative;
    height: auto;
  }

  .functioning-hero .benefit-grid {
    min-height: 0;
    padding-block: 18px;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
  }

  .functioning-split,
  .functioning-solution > .container,
  .functioning-product-grid {
    grid-template-columns: 1fr;
  }

  .functioning-section-intro,
  .functioning-solution-head {
    max-width: 760px;
    margin-inline: auto;
    padding-right: 0;
    text-align: center;
  }

  .functioning-section-intro .functioning-kicker,
  .functioning-solution-head .functioning-kicker {
    margin-inline: auto;
  }

  .functioning-challenge-grid::before,
  .functioning-solution-grid::before {
    display: none;
  }

  .functioning-challenge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .functioning-challenge-grid article:nth-child(odd) {
    border-left: 0;
  }

  .functioning-solution-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 0;
  }

  .functioning-solution-grid article {
    padding-inline: 18px;
  }

  .functioning-product-copy {
    max-width: 760px;
    margin-inline: auto;
  }

  .functioning-product-visual {
    width: min(100%, 720px);
    min-height: 510px;
    margin-inline: auto;
  }

  .functioning-product::before {
    top: auto;
    bottom: 0;
    height: 590px;
    background-position: 68% 38%;
  }

  .functioning-product::after {
    top: auto;
    height: 590px;
    background: linear-gradient(
      180deg,
      #fff 0%,
      rgba(255,255,255,.98) 12%,
      rgba(255,255,255,.62) 32%,
      rgba(255,255,255,.1) 67%,
      rgba(255,255,255,.02) 100%
    );
  }
}

@media (max-width: 700px) {
  .functioning-hero-copy {
    width: min(calc(100% - 28px), 560px);
    padding-top: 34px;
  }

  .functioning-hero h1 {
    font-size: clamp(38px, 10vw, 48px);
    letter-spacing: -2px;
  }

  .functioning-hero-lead {
    font-size: 16px;
  }

  .functioning-hero-actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 9px;
  }

  .functioning-hero-actions .button,
  .functioning-hero-actions .button.secondary {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 12px !important;
    font-size: 12px !important;
  }

  .functioning-hero-visual {
    height: 580px;
  }

  .functioning-alert {
    width: min(268px, calc(100vw - 24px));
    min-height: 64px;
    padding: 8px 10px;
    gap: 8px;
    font-size: 8px;
  }

  .functioning-alert-preview {
    font-size: 10px;
  }

  .functioning-alert-sender {
    font-size: 8px;
  }

  .functioning-alert-icon {
    width: 33px;
    height: 33px;
  }

  .functioning-alert-icon .icon {
    width: 18px;
    height: 18px;
  }

  .functioning-alert-care {
    top: 12%;
    left: 3%;
  }

  .functioning-alert-reminder {
    top: calc(12% + 112px);
    left: 6%;
  }

  .functioning-alert-calendar {
    top: calc(12% + 205px);
    left: 3%;
  }

  .functioning-alert-video {
    top: calc(12% + 298px);
    left: 6%;
    width: 148px;
    min-height: 0;
    padding: 6px;
  }

  .functioning-video-scar {
    width: 54px;
  }

  .functioning-hero .benefit-grid {
    gap: 13px 16px;
    padding: 15px 0;
  }

  .functioning-hero .benefit-item {
    gap: 10px;
    font-size: 11px;
  }

  .functioning-hero .benefit-item .icon {
    width: 30px;
    height: 30px;
  }

  .functioning-challenges,
  .functioning-solution {
    padding: 54px 0 58px;
  }

  .functioning-product {
    padding: 58px 0 66px;
  }

  .functioning-section-intro h2,
  .functioning-solution-head h2,
  .functioning-product-copy h2 {
    font-size: 32px;
    letter-spacing: -1.1px;
  }

  .functioning-feature-grid {
    gap: 18px 16px;
  }

  .functioning-product-visual {
    min-height: 420px;
  }

  .functioning-product::before {
    height: 500px;
  }

  .functioning-product::after {
    height: 500px;
  }

  .functioning-laptop {
    right: 7%;
    bottom: 62px;
    width: 85%;
  }

  .functioning-phone {
    right: 1%;
    bottom: 34px;
    width: 27%;
    border-radius: 19px;
  }
}

@media (max-width: 500px) {
  .functioning-hero-copy .eyebrow {
    margin-bottom: 18px;
  }

  .functioning-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 10.5vw, 43px);
    line-height: 1.08;
  }

  .functioning-hero-lead {
    font-size: 15px;
  }

  .functioning-hero-actions {
    align-items: stretch;
  }

  .functioning-hero-actions .button,
  .functioning-hero-actions .button.secondary {
    min-height: 52px;
    padding: 8px 9px !important;
    font-size: 11px !important;
  }

  .functioning-hero-actions .button.secondary {
    gap: 5px;
  }

  .functioning-hero-actions .button .icon {
    width: 15px !important;
    height: 15px !important;
  }

  .functioning-hero-visual {
    height: 560px;
    background-position: 62% center;
  }

  .functioning-alert {
    width: min(220px, calc(100vw - 24px));
  }

  .functioning-alert-care {
    top: 8%;
  }

  .functioning-alert-reminder {
    top: calc(8% + 120px);
  }

  .functioning-alert-calendar {
    top: calc(8% + 215px);
  }

  .functioning-alert-video {
    top: calc(8% + 310px);
    width: 138px;
    min-height: 0;
    padding: 6px;
  }

  .functioning-video-scar {
    width: 48px;
  }

  .functioning-video-doctor small {
    display: none;
  }

  .functioning-challenge-grid,
  .functioning-solution-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .functioning-challenge-grid article,
  .functioning-challenge-grid article:nth-child(odd),
  .functioning-solution-grid article {
    padding: 21px 8px;
    border-left: 0;
    border-top: 1px solid rgba(212,230,234,.78);
  }

  .functioning-challenge-grid article:first-child,
  .functioning-solution-grid article:first-child {
    border-top: 0;
  }

  .functioning-challenge-grid h3,
  .functioning-solution-grid h3 {
    font-size: 14px;
  }

  .functioning-challenge-grid p,
  .functioning-solution-grid p {
    max-width: 285px;
    margin-inline: auto;
    font-size: 12px;
  }

  .functioning-round-icon,
  .functioning-solution-grid .functioning-round-icon {
    width: 58px;
    height: 58px;
  }

  .functioning-feature-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .functioning-feature-grid article {
    grid-template-columns: 46px 1fr;
  }

  .functioning-product-visual {
    width: calc(100% + 8px);
    min-height: 350px;
    margin-left: -4px;
  }

  .functioning-product::before {
    height: 430px;
    background-position: 70% 36%;
  }

  .functioning-product::after {
    height: 430px;
    background: linear-gradient(
      180deg,
      #fff 0%,
      rgba(255,255,255,.96) 14%,
      rgba(255,255,255,.5) 36%,
      rgba(255,255,255,.06) 72%,
      rgba(255,255,255,.01) 100%
    );
  }

  .functioning-laptop {
    right: 6%;
    bottom: 64px;
    width: 88%;
  }

  .functioning-phone {
    right: 0;
    bottom: 34px;
    width: 29%;
    padding: 5px;
    border-radius: 15px;
  }

  .functioning-phone-screen {
    padding: 20px 5px 6px;
    border-radius: 10px;
  }

  .functioning-phone-speaker {
    top: 8px;
    height: 4px;
  }

  .functioning-phone-head {
    margin-bottom: 8px;
    font-size: 5px;
  }

  .functioning-phone-item {
    margin-bottom: 4px;
    padding: 4px 3px;
    grid-template-columns: 10px 1fr;
    gap: 3px;
    font-size: 3.5px;
  }

  .functioning-phone-item .icon {
    width: 9px;
    height: 9px;
  }

  .functioning-phone-item strong {
    font-size: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .functioning-page * {
    scroll-behavior: auto;
  }
}
