/* Original Hara hues, starting with yellow-green; the former first palette is last.
   Only each diffuse field's opacity is reduced, never the content or its saturation. */
[data-demo-palette='0'] { --demo-color-1:#c9e265; --demo-color-2:#e2cf65; --demo-color-3:#ffb547; }
[data-demo-palette='1'] { --demo-color-1:#ffb547; --demo-color-2:#ff9500; --demo-color-3:#ff9973; }
[data-demo-palette='2'] { --demo-color-1:#ff9973; --demo-color-2:#ff7262; --demo-color-3:#ef85a0; }
[data-demo-palette='3'] { --demo-color-1:#ef85a0; --demo-color-2:#df8db6; --demo-color-3:#c69bc9; }
[data-demo-palette='4'] { --demo-color-1:#a9d55b; --demo-color-2:#7bd5a6; --demo-color-3:#5dc7ad; }
[data-demo-palette='5'] { --demo-color-1:#7bd5a6; --demo-color-2:#5dc7ad; --demo-color-3:#69bbce; }
[data-demo-palette='6'] { --demo-color-1:#c9e265; --demo-color-2:#a9d55b; --demo-color-3:#7bd5a6; }
.hara-web[data-hara-page='home'] .story-showcase { position:relative; isolation:isolate; background:#fff; }
.hara-web[data-hara-page='home'] :is([data-story-title], #home-care-feature-title) { font-family: HaraWebDisplay, Georgia, serif; }
.hara-web .care-feature-previews,
.hara-web .care-connected-stage { background:#fff; }
.hara-web .care-feature-backdrop { isolation:isolate; background:#fff; }
.hara-web .care-connected-stage,
.hara-web .care-connected-phone,
.hara-web .care-connected-grid .portal-window { border: 0; }
.care-connected-stage::after { content: none; }

/* The same Care Portal feature board appears on the home and clinicians pages. */
.hara-web .care-feature-board {
  --feature-stage-height: 614px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto var(--feature-stage-height);
  border: 0;
  line-height: 1.55;
}
.hara-web[data-hara-page] .care-feature-board .care-feature-heading {
  display: flex; flex-wrap: wrap; align-content: start;
  align-items: center; gap: 12px 24px; padding: 0 0 32px; border: 0;
}
.hara-web[data-hara-page] .care-feature-board .care-feature-heading h2 {
  margin: 0; text-align: left; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.025em;
}
.hara-web .care-feature-heading > .button { margin-inline-start: auto; }
.hara-web .demo-audience-note {
  display: flex; align-items: center; gap: 8px; width: fit-content;
  margin: 0 0 12px; color: var(--web-accent);
  font: 400 clamp(20px, 1.3vw, 22px)/1.3 HaraWebHand,cursive;
}
.hara-web .care-feature-board .care-feature-grid { column-gap: var(--web-content-gap); }
.hara-web .care-feature-board :is(.care-feature-options,.care-feature-option) { border: 0; }
.hara-web .care-feature-board .care-feature-previews::after { content: none; }
.hara-web .care-feature-board :is(.care-feature-grid,.care-feature-previews,.care-feature-panel,.portal-mount,.portal-window) { min-height: 0; height: 100%; }
@media (max-width: 1000px) {
  .hara-web .care-feature-board { --feature-stage-height: 664px; }
}
@media (max-width: 760px) {
  .hara-web .care-feature-board { --feature-stage-height: 714px; }
  .hara-web[data-hara-page] .care-feature-board .care-feature-heading { display: grid; grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .hara-web .care-feature-heading > .button { margin-inline-start: 0; justify-self: start; }
  .hara-web .care-feature-board .care-feature-grid { grid-template-rows: 104px minmax(0,1fr); }
  .hara-web .care-feature-board .care-feature-option { padding: 14px 16px; }
}
.demo-diffusion { position:absolute; inset:0; overflow:hidden; z-index:-1; pointer-events:none; background:#fff; }
.demo-diffusion > i { position:absolute; display:block; width:90%; height:120%; border-radius:42% 58% 63% 37%; filter:blur(48px); }
.demo-diffusion > i:nth-child(1) { background:var(--demo-color-1); opacity:.20; left:-28%; top:-32%; transform:rotate(-18deg); }
.demo-diffusion > i:nth-child(2) { background:var(--demo-color-2); opacity:.25; right:-22%; top:-27%; transform:rotate(24deg); }
.demo-diffusion > i:nth-child(3) { background:var(--demo-color-3); opacity:.30; left:12%; bottom:-75%; width:112%; transform:rotate(-12deg); }
/* Static grain is composited with the color fields behind the demo content. */
.demo-diffusion::after {
 content:"";
 position:absolute;
 inset:0;
 z-index:1;
 background:url("demo-grain.svg?v=white") repeat 0 0 / 120px 120px;
 opacity:.10;
 pointer-events:none;
}
.hara-web .story-tab { position:relative; }
.hara-web .story-tab[aria-selected='true'] { box-shadow:none; }
.hara-web .story-tab::after { display:none; }
.demo-tab-progress { position:absolute; bottom:0; left:0; width:100%; height:3px; background:#eceee8; pointer-events:none; overflow:hidden; opacity:0; }
.demo-tab-progress > i { display:block; width:100%; height:100%; transform:scaleX(var(--demo-progress,0)); transform-origin:left; background:linear-gradient(90deg,var(--demo-color-1),var(--demo-color-2),var(--demo-color-3)); }
[aria-selected='true'] > .demo-tab-progress { opacity:1; }
.hara-web .care-feature-option { position:relative; }
.care-feature-option > .demo-tab-progress { top:0; bottom:auto; width:3px; height:100%; }
.care-feature-option > .demo-tab-progress > i { transform:scaleY(var(--demo-progress,0)); transform-origin:top; background:linear-gradient(180deg,var(--demo-color-1),var(--demo-color-2),var(--demo-color-3)); }
/* Fade background and demo together; neither changes position. */
.hara-web .story-grid .story-runtime-card { animation:none!important; }
.hara-web .story-grid.is-page-leaving .story-showcase { animation:demo-scene-out 260ms ease both; }
.hara-web .story-grid.is-page-entering .story-showcase { animation:demo-scene-in 500ms ease both; }
@keyframes demo-scene-out { from { opacity:1; } to { opacity:0; } }
@keyframes demo-scene-in { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) {
 .hara-web .story-grid.is-page-leaving .story-showcase,.hara-web .story-grid.is-page-entering .story-showcase { animation:none; }
}
