:root {
  /* 1920px Figma values remain exact; desktop values ease down toward 1200px. */
  --home-rail: clamp(930px, calc(730px + 16.6667vw), 1050px);
  --home-app-span: clamp(930px, calc(563.333px + 30.5556vw), 1150px);
  --home-grid-gap: clamp(64px, calc(4px + 5vw), 100px);
  --home-pad-first: clamp(160px, calc(10px + 12.5vw), 250px);
  --home-pad-section: clamp(128px, calc(8px + 10vw), 200px);
  --home-pad-recognition: clamp(100px, calc(16.667px + 6.9444vw), 150px);
  --home-heading-gap: clamp(24px, calc(10.667px + 1.1111vw), 32px);
  --home-copy-gap: clamp(38px, calc(18px + 1.6667vw), 50px);
  --home-hero-tail: clamp(36px, 2.96875vw, 57px);
  --scroll-step-duration: 420ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home-page {
  --layout-max: var(--home-rail);
  margin: 0;
  overflow-x: clip;
  color: var(--ds-ink);
  background: var(--ds-white);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-weight-regular);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.home-page main { overflow: visible; }
.home-page a { color: inherit; text-decoration: none; }
.home-page .global-gnb__cta,
.home-page .global-gnb__cta:hover,
.home-page .global-gnb__cta:focus-visible { color: #fff; }
.home-page button,
.home-page input { font: inherit; }
.home-page button { color: inherit; }
.home-page img { display: block; max-width: 100%; }
.home-page h1,
.home-page h2,
.home-page h3,
.home-page p { margin-top: 0; }
.figma-container {
  width: min(var(--home-rail), calc(100vw - 64px));
  margin-inline: auto;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.anchor-target {
  position: absolute;
  top: calc(-1 * var(--gnb-height));
}

/* Hero */
.figma-hero {
  --hero-viewport-height: calc(100vh - var(--gnb-height));
  --hero-viewport-height: calc(100svh - var(--gnb-height));
  /* Stage tracks the viewport so the progress bar always sits at the screen bottom. */
  --hero-stage-height: var(--hero-viewport-height);
  --hero-scroll-distance: max(2160px, 240vh);
  --hero-shade-opacity: .65;
  --hero-progress: 25%;
  /* Hero-only legacy scale. Other homepage sections keep the global type system. */
  --hero-type-h1: clamp(44px, calc(24px + 1.6667vw), 56px);
  --hero-line-h1: clamp(56px, calc(36px + 1.6667vw), 68px);
  --hero-type-title: clamp(20px, calc(10px + .8333vw), 26px);
  --hero-line-title: clamp(30px, calc(20px + .8333vw), 36px);
  --hero-type-body: clamp(18px, calc(11.333px + .5556vw), 22px);
  --hero-line-body: clamp(30px, calc(23.333px + .5556vw), 34px);
  position: relative;
  height: var(--hero-stage-height);
  margin-top: var(--gnb-height);
  margin-bottom: var(--home-hero-tail);
  color: #fff;
  background: #30363a;
}
.has-scroll-motion .figma-hero { height: calc(var(--hero-stage-height) + var(--hero-scroll-distance)); }
/* Portrait-ish screens: keep the stage near the 1672x941 photo's aspect height so cover doesn't upscale it into a blur. */
@media (min-width: 981px) and (max-aspect-ratio: 1/1) {
  .figma-hero { --hero-stage-height: min(var(--hero-viewport-height), clamp(540px, 56.40625vw, 812px)); }
}
.figma-hero__stage {
  position: relative;
  height: var(--hero-stage-height);
  overflow: hidden;
  color: #fff;
  background: #30363a;
}
.has-scroll-motion .figma-hero__stage {
  position: sticky;
  top: var(--gnb-height);
}
.figma-hero__media,
.figma-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.figma-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity var(--scroll-step-duration) ease-out;
}
.figma-hero__image.is-active { opacity: 1; }
.figma-hero__shade {
  background: rgba(0, 0, 0, var(--hero-shade-opacity));
  transition: background-color var(--scroll-step-duration) ease-out;
}
.figma-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(130px, 11.667vw, 224px);
  width: min(1614px, calc(100vw - 48px));
  height: 100%;
  margin-inline: auto;
}
.figma-hero__intro { width: min(621px, 100%); }
.figma-hero__intro h1 {
  margin-bottom: 24px;
  font-size: var(--hero-type-h1);
  line-height: var(--hero-line-h1);
  letter-spacing: -1px;
  font-weight: 700;
}
.figma-hero__intro p {
  margin-bottom: 0;
  font-size: var(--hero-type-body);
  line-height: var(--hero-line-body);
  font-weight: 500;
}
.figma-hero__cycle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: min(674px, 100%);
}
.figma-hero__word {
  margin-bottom: 0;
  font-size: clamp(104px, 8.1366vw, 156.223px);
  line-height: 1.214283;
  letter-spacing: -.018em;
  font-weight: 900;
}
.figma-hero__word.is-changing,
.figma-hero__caption.is-changing { animation: hero-copy-in var(--scroll-step-duration) ease-out; }
@keyframes hero-copy-in {
  from { opacity: .35; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.figma-hero__tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}
.figma-hero__tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 16px 26px;
  border-radius: 12px;
  color: var(--ds-ink);
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  font-size: var(--hero-type-title);
  line-height: var(--hero-line-title);
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--scroll-step-duration) ease-out, background var(--scroll-step-duration) ease-out, transform var(--scroll-step-duration) ease-out;
}
.figma-hero__tabs a:hover,
.figma-hero__tabs a:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, .78); }
.figma-hero__tabs a.is-active,
.figma-hero__tabs a[aria-current] { color: #fff; background: var(--ds-blue); }
.figma-hero__caption {
  margin-bottom: 0;
  font-size: var(--hero-type-title);
  line-height: var(--hero-line-title);
  font-weight: 700;
  text-align: center;
}
.figma-hero__progress {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 36px;
}
.figma-hero__progress span {
  display: block;
  width: var(--hero-progress);
  height: 100%;
  background: var(--ds-blue);
  transition: width var(--scroll-step-duration) ease-out;
}

/* Shared service system */
.service-section { position: relative; scroll-margin-top: var(--gnb-height); background: #fff; }
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 10fr);
  align-items: center;
  gap: var(--home-grid-gap);
}
.service-grid--visual-first { grid-template-columns: minmax(0, 10fr) minmax(0, 9fr); }
.service-copy { width: 100%; min-width: 0; }
.service-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--type-title-line);
  margin-bottom: var(--home-heading-gap);
}
.service-name {
  margin-bottom: 0;
  color: var(--ds-blue);
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  letter-spacing: var(--type-tracking-title);
  font-weight: var(--type-weight-bold);
  white-space: nowrap;
}
.service-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: #1e1b17;
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-weight-semibold);
  white-space: nowrap;
}
.service-detail img { flex: 0 0 5px; width: 5px; height: 9px; }
.service-detail:hover,
.service-detail:focus-visible { color: var(--ds-blue); }
.service-copy h2 {
  margin-bottom: 0;
  color: var(--ds-ink);
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-line);
  letter-spacing: var(--type-tracking-heading);
  font-weight: var(--type-weight-bold);
}
.service-body { margin-top: var(--home-copy-gap); }
.service-body > p {
  margin-bottom: 0;
  color: var(--ds-body);
  font-size: var(--type-body-lg-size);
  line-height: var(--type-body-lg-line);
  font-weight: var(--type-weight-medium);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px !important;
}
.service-tags strong { color: var(--ds-blue); font-weight: var(--type-weight-bold); }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  padding: 16px 26px;
  border-radius: var(--ds-radius-button);
  color: #fff !important;
  background: var(--ds-blue);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, .12);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-weight-semibold);
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.primary-button:hover,
.primary-button:focus-visible { background: var(--ds-blue-strong); transform: translateY(-2px); }

/* Doctor Alaseo */
/* Simulated product UI: compact type is intentionally scoped to this preview. */
.service-alaseo { padding: var(--home-pad-first) 0; }
.alaseo-card {
  --alaseo-float-y: 0px;
  width: 100%;
  max-width: 500px;
  height: 545px;
  padding: 40px 35px;
  overflow: hidden;
  border-radius: 35px;
  background: #fff;
  box-shadow: var(--ds-shadow-card);
  transform: translate3d(0, var(--alaseo-float-y), 0);
}
.alaseo-card.is-scroll-active { will-change: transform; }
.chat-row--question {
  display: flex;
  justify-content: flex-end;
  height: 53px;
}
.chat-row--question p {
  margin-bottom: 0;
  padding: 14px 20px;
  border-radius: 22px 22px 5px 22px;
  color: #fff;
  background: var(--ds-blue);
  font-size: 18px;
  line-height: 25px;
  font-weight: var(--type-weight-bold);
  white-space: nowrap;
}
.chat-row--answer { width: 100%; }
.chat-avatar { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; }
.chat-answer {
  height: 188px;
  padding: 14px 20px;
  border-radius: 5px 22px 22px 22px;
  background: var(--ds-surface);
}
.chat-answer p { margin-bottom: 0; }
.chat-answer p:first-child { color: var(--ds-body); font-size: 22px; line-height: 34px; }
.chat-answer p:last-child { margin-top: 8px; color: var(--ds-muted); font-size: 18px; line-height: 1.4; font-weight: var(--type-weight-medium); }
.clinic-result {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 108px;
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: 5px 22px 22px 22px;
  background: var(--ds-surface);
}
.clinic-result__map { flex: 0 0 80px; width: 80px; height: 80px; border-radius: 15px; object-fit: cover; }
.clinic-result > div { min-width: 0; }
.clinic-result p {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
  color: var(--ds-body);
  font-size: 22px;
  line-height: 34px;
  font-weight: var(--type-weight-bold);
}
.clinic-result p img { width: 17px; height: 22px; }
.clinic-result span { display: block; color: var(--ds-muted); font-size: 18px; line-height: 1.4; font-weight: var(--type-weight-medium); white-space: nowrap; }
/* Doctor Arrange */
.service-arrange { padding: var(--home-pad-section) 0; }
.service-arrange .service-grid { align-items: start; }
.service-action-row { display: flex; align-items: center; gap: 16px; margin-top: 29px; }
.service-action-row > span { color: var(--ds-muted); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: var(--type-weight-medium); white-space: nowrap; }
.arrange-demo { width: 100%; max-width: 500px; height: 562px; }
/* Simulated product UI: micro type scales with the preview, not page typography. */
.arrange-demo--flow { position: relative; max-width: 600px; height: 584px; padding-top: 66px; }
.arrange-flow-timeline {
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.arrange-flow-timeline span { display: grid; gap: 2px; color: var(--ds-muted); }
.arrange-flow-timeline b { color: var(--ds-body); font-size: 16px; line-height: 20px; font-weight: var(--type-weight-bold); }
.arrange-flow-timeline small { font-size: 11px; line-height: 16px; font-weight: var(--type-weight-medium); white-space: nowrap; }
.arrange-flow-timeline i { height: 1px; background: #cdd8e6; }
.arrange-flow-timeline i::after { content: ''; display: block; width: 6px; height: 6px; margin: -3px 0 0 auto; border-top: 1px solid #9fb1c7; border-right: 1px solid #9fb1c7; transform: rotate(45deg); }
.arrange-flow-timeline .is-ready b,
.arrange-flow-timeline .is-ready small { color: var(--ds-blue); }
.arrange-flow-timeline .is-ready b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--ds-blue); box-shadow: 0 0 0 5px rgba(49,132,246,.12); }
.arrange-flow-stage { position: relative; height: 518px; }
.arrange-flow-board,
.arrange-flow-brief,
.arrange-flow-source { position: absolute; overflow: hidden; border: 1px solid #dfe7f0; background: #fff; box-shadow: var(--ds-shadow-card); }
.arrange-flow-board { top: 56px; right: 0; z-index: 1; width: min(91%, 542px); height: 376px; border-radius: 22px; }
.arrange-flow-board > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 48% 18%; }
.arrange-flow-board > span { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 999px; color: #fff; background: rgba(22,36,58,.88); font-size: 10px; line-height: 14px; font-weight: var(--type-weight-bold); }
.arrange-flow-brief footer i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--ds-blue); }
.arrange-flow-brief { top: 0; left: 0; z-index: 3; width: min(48%, 264px); height: 468px; padding: 12px; border-radius: 22px; }
.arrange-flow-brief header,
.arrange-flow-source header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.arrange-flow-brief header { height: 26px; padding: 0 3px 9px; }
.arrange-flow-brief header span { color: var(--ds-body); font-size: 12px; line-height: 18px; font-weight: var(--type-weight-bold); }
.arrange-flow-brief header b { color: var(--ds-blue); font-size: 11px; line-height: 16px; }
.arrange-flow-brief__screen { height: 382px; overflow: hidden; border-radius: 13px; background: #f4f6f8; }
.arrange-flow-brief__screen img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top center; }
.arrange-flow-brief footer { height: 34px; display: flex; align-items: center; gap: 6px; color: var(--ds-body); font-size: 10px; line-height: 15px; font-weight: var(--type-weight-semibold); white-space: nowrap; }
.arrange-flow-source { bottom: 0; left: 22px; z-index: 4; width: min(39%, 215px); height: 158px; padding: 12px; border-radius: 17px; }
.arrange-flow-source header span { color: var(--ds-muted); font-size: 9px; line-height: 14px; font-weight: var(--type-weight-bold); letter-spacing: .06em; }
.arrange-flow-source header b { color: var(--ds-blue); font-size: 11px; line-height: 16px; }
.arrange-flow-source__log { margin-top: 9px; display: grid; gap: 3px; }
.arrange-flow-source__log span { display: flex; align-items: center; gap: 5px; color: var(--ds-body); font-size: 9px; line-height: 13px; font-weight: var(--type-weight-semibold); }
.arrange-flow-source__log span::before { content: ''; width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--ds-blue); }
.arrange-flow-source__history { height: 56px; margin-top: 9px; overflow: hidden; border: 1px solid #edf0f3; border-radius: 8px; background: #fff; }
.arrange-flow-source__history img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

@media (min-width: 981px) {
  .service-arrange .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(42px, 4vw, 64px); }
  .service-arrange .arrange-demo--flow { max-width: 620px; justify-self: end; }
}

/* Homeden Connect */
.service-connect { padding: var(--home-pad-section) 0; }
.connect-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(40px, 2.6042vw, 50px); }
.connect-features,
.connect-title-block { min-width: 0; }
.connect-features > p { margin-bottom: 24px; color: var(--ds-body); font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); font-weight: var(--type-weight-medium); }
.connect-features dl,
.app-features { display: grid; gap: 8px; margin: 0; }
.connect-features dl > div,
.app-features > div { display: flex; align-items: baseline; gap: 8px; }
.connect-features dt,
.app-features dt { flex: 0 0 auto; color: var(--ds-blue); font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); font-weight: var(--type-weight-bold); }
.connect-features dd,
.app-features dd { margin: 0; color: var(--ds-muted); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: var(--type-weight-medium); }
.connect-features .primary-button { margin-top: 29px; }
.connect-title-block .service-name { margin-bottom: 32px; }
.service-detail--standalone { margin-top: 32px; }
/* Simulated product UI: compact labels are intentional inside the workspace preview. */
.connect-workspace {
  height: 572px;
  margin-top: 80px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--ds-shadow-card);
}
.connect-workspace > header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 30px;
  color: var(--ds-body);
  background: var(--ds-surface);
  font-size: 16px;
  font-weight: var(--type-weight-medium);
}
.connect-workspace > header span { width: 12px; height: 12px; border-radius: 50%; background: var(--ds-danger); }
.connect-workspace__body { height: 516px; padding: 35px; }
.connect-workspace__tabs { display: flex; align-items: center; gap: 8px; height: 43px; }
.connect-workspace__tabs span,
.connect-workspace__tabs strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 43px;
  padding: 0 14px;
  border-radius: 22px;
  color: var(--ds-body);
  background: var(--ds-surface);
  font-size: 16px;
  font-weight: var(--type-weight-medium);
}
.connect-workspace__tabs strong { color: #fff; background: var(--ds-blue); }
.connect-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-top: 32px;
  border: 1px dashed var(--ds-line);
  border-radius: 20px;
}
.connect-dropzone small { color: var(--ds-blue); font-size: 14px; }
.connect-dropzone strong { margin-top: 10px; color: var(--ds-ink); font-size: 22px; line-height: 34px; }
.connect-dropzone span { color: var(--ds-muted); font-size: 14px; }
.connect-queue { display: grid; gap: 12px; margin-top: 32px; }
.connect-queue > div { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; min-height: 73px; }
.connect-queue img { width: 40px; height: 40px; }
.connect-queue p { display: grid; margin-bottom: 0; }
.connect-queue p strong { color: var(--ds-body); font-size: 16px; font-weight: var(--type-weight-semibold); }
.connect-queue p em { color: var(--ds-blue); font-style: normal; }
.connect-queue p span { margin-top: 4px; color: var(--ds-muted); font-size: 14px; }
.connect-queue b { padding: 12px 10px; border-radius: 12px; color: var(--ds-muted); background: var(--ds-surface); font-size: 14px; font-weight: var(--type-weight-medium); }
.connect-queue b.is-done { color: #119460; background: #effaf4; }

/* Homeden app */
.service-homeden {
  --homeden-stage-height: calc(100vh - var(--gnb-height));
  --homeden-stage-height: calc(100svh - var(--gnb-height));
  --homeden-scroll-distance: clamp(1680px, 210svh, 2280px);
  padding: var(--home-pad-section) 0;
  background: #fff;
}
.homeden-sticky-stage { position: relative; }
.app-grid {
  width: var(--home-app-span);
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  align-items: start;
  margin-left: max(32px, calc((100vw - var(--home-rail)) / 2));
  margin-right: 0;
}
.app-features { margin-top: 24px; }
.service-homeden .app-features dt {
  color: rgba(49, 132, 246, .5);
  transition: color var(--scroll-step-duration) ease-out;
}
.service-homeden .app-features dd { color: #6b7684; }
.service-homeden .app-features > div.is-active dt,
.service-homeden .app-features > div[aria-current="step"] dt { color: #3184f6; }
.service-homeden .primary-button { margin-top: 29px; }
.phone-composite { position: relative; width: min(600px, 100%); height: auto; aspect-ratio: 600 / 936; justify-self: center; }
.phone-composite__screen {
  position: absolute;
  z-index: 1;
  left: 21.5%;
  top: 10.47%;
  width: 57%;
  height: 79.12%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
}
.phone-composite__track {
  display: flex;
  width: 400%;
  height: 100%;
  transform: translate3d(var(--homeden-track-x, 0%), 0, 0);
  transition: transform var(--scroll-step-duration) ease-out;
}
.phone-composite__track img {
  flex: 0 0 25%;
  width: 25%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.phone-composite__frame { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: fill; }

@media (min-width: 1101px) and (min-height: 760px) {
  .homeden-scroll-ready .service-homeden {
    height: calc(var(--homeden-stage-height) + var(--homeden-scroll-distance));
    padding: 0;
  }
  .homeden-scroll-ready .service-homeden .homeden-sticky-stage {
    position: sticky;
    z-index: 1;
    top: var(--gnb-height);
    display: grid;
    align-items: center;
    height: var(--homeden-stage-height);
    overflow: clip;
    background: #fff;
  }
  .homeden-scroll-ready .service-homeden .app-grid {
    position: relative;
    top: auto;
  }
  .homeden-scroll-ready .service-homeden .phone-composite {
    width: min(600px, calc(64.1026svh - 69.231px), 100%);
  }
}

/* Patient / hospital bridge */
.patient-bridge { position: relative; height: clamp(600px, calc(266.667px + 27.7778vw), 800px); overflow: hidden; background: #dce3e8; }
.patient-bridge__background { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center; }
.patient-bridge__shade { position: absolute; inset: 0; background: rgba(0, 9, 25, .3); }
.patient-bridge h2 {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #f9fafb;
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-line);
  letter-spacing: var(--type-tracking-heading);
  font-weight: var(--type-weight-bold);
  white-space: nowrap;
}

/* Public screening */
.public-section { padding: var(--home-pad-section) 0; background: #fff; }
.public-photo { position: relative; width: 100%; height: 706px; overflow: hidden; }
.public-photo img { position: absolute; left: 0; top: -54px; width: 100%; height: 786px; object-fit: cover; }
.public-detail { display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 440px); align-items: flex-start; justify-content: space-between; gap: 0; margin-top: 100px; }
.public-copy { min-width: 0; }
.public-copy .primary-button { margin-top: 28px; }
.screening-steps { min-width: 0; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.screening-steps li { position: relative; display: grid; grid-template-columns: 27px 1fr; gap: 25px; min-height: 94px; }
.screening-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 34px;
  width: 2px;
  height: 60px;
  background: rgba(49, 130, 246, .19);
}
.screening-steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--ds-blue);
  background: #d6e7ff;
  font-size: 16px;
  line-height: 27px;
  font-weight: var(--type-weight-bold);
}
.screening-steps li:nth-child(2) > span { background: #abceff; }
.screening-steps li:nth-child(3) > span { color: #fff; background: #79b0ff; }
.screening-steps li:nth-child(4) > span { color: #fff; background: #5299ff; }
.screening-steps li:nth-child(5) > span { color: #fff; background: var(--ds-blue); }
.screening-steps li:nth-child(6) > span { color: #fff; background: var(--ds-blue-strong); }
.screening-steps strong { display: block; color: var(--ds-blue); font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); font-weight: var(--type-weight-bold); }
.screening-steps p { margin: 12px 0 0; color: var(--ds-muted); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: var(--type-weight-medium); white-space: nowrap; }
.partner-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; gap: 24px; margin-top: 80px; }
.partner-logos img { width: auto; max-width: 100%; height: 52px; object-fit: contain; justify-self: center; }
.partner-logos img:nth-of-type(4) { width: 148px; height: 52px; object-fit: cover; }

/* Recognition */
.recognition-section { min-height: 712px; padding: var(--home-pad-recognition) 0; background: var(--ds-surface-soft); }
.recognition-heading { text-align: center; }
.recognition-heading p { margin-bottom: 12px; color: var(--ds-muted); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: var(--type-weight-medium); }
.recognition-heading h2 { margin: 0; color: var(--ds-ink); font-size: var(--type-heading-size); line-height: var(--type-heading-line); letter-spacing: var(--type-tracking-heading); font-weight: var(--type-weight-bold); }
.recognition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 38px; margin-top: 59px; text-align: center; }
.recognition-grid article { min-width: 0; }
.recognition-grid article > div { display: flex; align-items: center; justify-content: center; height: 145px; }
.recognition-grid img { width: auto; max-width: 100%; height: 145px; object-fit: contain; }
.recognition-grid article:nth-child(1) img { width: 150px; }
.recognition-grid article:nth-child(2) img { width: 220px; transform: scale(1.5); }
.recognition-grid article:nth-child(3) img { width: 242px; }
.recognition-grid article:nth-child(4) img { width: 197px; }
.recognition-grid h3 { margin: 30px 0 8px; color: var(--ds-body); font-size: var(--type-title-size); line-height: var(--type-title-line); letter-spacing: var(--type-tracking-title); font-weight: var(--type-weight-bold); }
.recognition-grid p { margin-bottom: 0; color: var(--ds-body); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: var(--type-weight-medium); }

/* Contact banner */
.contact-banner { position: relative; height: 480px; overflow: hidden; color: #fff; }
.contact-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.contact-banner__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 50%, rgba(0,0,0,.03), rgba(0,0,0,.82));
}
.contact-banner__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; }
.contact-banner h2 { margin-bottom: 24px; font-size: var(--type-heading-size); line-height: var(--type-heading-line); letter-spacing: var(--type-tracking-heading); font-weight: var(--type-weight-bold); }
.contact-banner p { margin-bottom: 32px; color: #f7f9fa; font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); font-weight: var(--type-weight-regular); }

/* Footer */
.figma-footer { min-height: 627px; padding: 80px 0; color: #8d9297; background: var(--ds-surface-soft); }
.figma-footer__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 1.875vw, 30px); }
.figma-footer__links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.figma-footer__links strong { margin-bottom: 8px; color: #565c65; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: var(--type-weight-semibold); }
.figma-footer__links a,
.figma-footer__links span { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.figma-footer__links a:hover,
.figma-footer__links a:focus-visible { color: var(--ds-blue); }
.figma-footer__legal { margin-top: 48px; padding-top: 21px; border-top: 1px solid #dfe1e2; }
.figma-footer__legal nav { display: flex; gap: 24px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.figma-footer__legal nav a:first-child { color: #565c65; font-weight: var(--type-weight-semibold); }
.home-page .figma-footer__logo { display: inline-block; margin-top: 25px; color: #111111; font-size: 30px; line-height: 49px; letter-spacing: -.02em; font-weight: 900; }
.home-page .figma-footer__logo i { color: #B15A3C; font-style: normal; }
.figma-footer__company { color: #a9aeb1; font-size: var(--type-caption-size); line-height: var(--type-caption-line); }
.figma-footer__company strong { display: block; color: #565c65; font-weight: var(--type-weight-semibold); }
.figma-footer__company p { display: flex; align-items: center; gap: 9px; margin-bottom: 0; }
.figma-footer__company i { display: inline-block; width: 1px; height: 12px; background: #c6cace; }
.figma-footer__copyright { margin: 24px 0 0; color: #a9aeb1; font-size: var(--type-caption-size); line-height: var(--type-caption-line); }

@media (min-width: 981px) {
  .service-arrange .service-tags { width: max-content; flex-wrap: nowrap; column-gap: 15px; }
  .screening-steps { grid-template-rows: repeat(5, 94.427467px) 67px; }
  .screening-steps li { min-height: 0; }
}

@media (max-width: 1919px) {
  .public-photo { height: auto; aspect-ratio: 1049 / 706; }
  .public-photo img { top: -7.65%; height: 111.33%; }
}

@media (max-width: 1600px) {
  .partner-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-left: 0; }
}

/* Keep the Hero progress bar within short desktop viewports. */
@media (min-width: 981px) and (max-height: 900px) {
  .figma-hero__content {
    gap: clamp(52px, 8vh, 112px);
    padding: 24px 0 48px;
  }
  .figma-hero__word {
    font-size: clamp(88px, 7vw, 128px);
    font-size: min(clamp(88px, 7vw, 128px), 15svh);
    line-height: 1.16;
  }
  .figma-hero__tabs a { min-height: 56px; padding: 12px 22px; }
  .figma-hero__progress { height: 24px; }
}

@media (max-width: 1220px) {
  .figma-hero__content { width: calc(100vw - 96px); }
  .service-grid--visual-first .alaseo-card,
  .arrange-demo { width: 100%; max-width: 500px; }
  .recognition-grid { gap: 22px; }
}

@media (max-width: 1100px) {
  .service-grid,
  .service-grid--visual-first,
  .app-grid,
  .connect-intro,
  .public-detail { grid-template-columns: 1fr; }
  .app-grid {
    width: min(var(--home-rail), calc(100vw - 64px));
    margin-inline: auto;
  }
  .service-grid--visual-first .service-copy,
  .connect-title-block { order: -1; }
  .service-copy { max-width: 640px; }
  .alaseo-card,
  .arrange-demo,
  .phone-composite { justify-self: center; }
  .public-detail { gap: 72px; }
  .public-copy,
  .screening-steps { width: 100%; max-width: 640px; }
  .screening-steps { justify-self: end; }
}

@media (max-width: 980px) {
  .figma-container { width: calc(100vw - 48px); }
  .figma-hero { --hero-stage-height: 820px; --hero-scroll-distance: max(1760px, 220vh); }
  .figma-hero__content { width: calc(100vw - 48px); gap: 120px; }
  .figma-hero__tabs { max-width: 100%; overflow-x: auto; padding-bottom: 5px; }
  .figma-hero__tabs a { min-height: 58px; padding: 12px 20px; font-size: 20px; line-height: 30px; }
  .service-alaseo,
  .service-arrange,
  .service-connect,
  .service-homeden,
  .public-section { padding: 120px 0; }
  .service-grid,
  .service-grid--visual-first,
  .app-grid { grid-template-columns: 1fr; gap: 72px; }
  .service-grid--visual-first .service-copy { order: -1; }
  .service-copy { max-width: 640px; }
  .alaseo-card,
  .arrange-demo { justify-self: center; }
  .connect-intro { grid-template-columns: 1fr; gap: 72px; }
  .connect-title-block { order: -1; }
  .connect-workspace { height: auto; }
  .connect-workspace__body { height: auto; }
  .phone-composite { width: 600px; max-width: 100%; aspect-ratio: 600 / 936; height: auto; }
  .phone-composite__screen { left: 21.5%; top: 10.47%; width: 57%; height: 79.12%; }
  .phone-composite__frame { width: 100%; height: 100%; }
  .patient-bridge { height: clamp(420px, 61.2245vw, 600px); }
  .public-photo { height: auto; aspect-ratio: 1049 / 706; }
  .public-photo img { top: -7.65%; height: 111.33%; }
  .public-detail { display: grid; grid-template-columns: 1fr; gap: 72px; }
  .public-copy,
  .screening-steps { width: 100%; max-width: 640px; flex: initial; }
  .screening-steps { justify-self: end; }
  .partner-logos { grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
  .recognition-section { padding: 110px 0; }
  .recognition-grid { grid-template-columns: repeat(2, 1fr); gap: 60px 30px; }
  .figma-footer__links { grid-template-columns: repeat(2, 1fr); gap: 48px; }
}

@media (max-width: 640px) {
  .figma-container { width: calc(100vw - 40px); }
  .figma-hero { --hero-stage-height: 720px; --hero-scroll-distance: max(1360px, 200vh); min-height: 0; }
  .figma-hero__image { object-position: 58% center; }
  .figma-hero__content { width: calc(100vw - 40px); gap: 92px; }
  .figma-hero__intro h1 { margin-bottom: 18px; font-size: 37px; line-height: 1.3; letter-spacing: -.03em; }
  .figma-hero__intro p { max-width: 310px; font-size: 17px; line-height: 27px; }
  .figma-hero__cycle { gap: 17px; }
  .figma-hero__word { font-size: 78px; }
  .figma-hero__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; overflow: visible; }
  .figma-hero__tabs a { width: 100%; min-height: 48px; padding: 9px 12px; font-size: 16px; line-height: 24px; }
  .figma-hero__caption { max-width: 330px; font-size: 17px; line-height: 27px; text-align: left; }
  .figma-hero__progress { height: 14px; }
  .service-alaseo,
  .service-arrange,
  .service-connect,
  .service-homeden,
  .public-section { padding: 88px 0; }
  .service-grid,
  .service-grid--visual-first,
  .app-grid,
  .connect-intro { gap: 52px; }
  .service-heading-row { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .service-name { font-size: var(--type-title-size); line-height: var(--type-title-line); }
  .service-detail { font-size: var(--type-body-size); line-height: var(--type-body-line); white-space: normal; text-align: right; }
  .service-copy h2 { font-size: var(--type-heading-size); line-height: var(--type-heading-line); }
  .service-body { margin-top: 34px; }
  .service-body > p { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); }
  .service-body > p br { display: none; }
  .service-tags { gap: 3px 12px; }
  .primary-button { width: 100%; min-height: 50px; padding: 14px 20px; font-size: var(--type-body-size); line-height: var(--type-body-line); }
  .alaseo-card { width: 100%; height: auto; min-height: 515px; padding: 26px 20px; border-radius: 28px; box-shadow: var(--ds-shadow-card); }
  .chat-row--question { height: auto; min-height: 49px; }
  .chat-row--question p { padding: 12px 14px; font-size: 14px; line-height: 23px; white-space: normal; }
  .chat-avatar { width: 76px; height: 76px; }
  .chat-answer { height: auto; min-height: 165px; padding: 13px 15px; }
  .chat-answer p:first-child { font-size: 17px; line-height: 27px; }
  .chat-answer p:last-child { font-size: 14px; line-height: 1.45; }
  .clinic-result { height: auto; min-height: 96px; padding: 12px 14px; }
  .clinic-result__map { flex-basis: 68px; width: 68px; height: 68px; }
  .clinic-result p { font-size: 17px; line-height: 27px; }
  .clinic-result span { font-size: 13px; white-space: normal; }
  .service-action-row { display: grid; }
  .service-action-row > span { font-size: var(--type-body-size); line-height: var(--type-body-line); white-space: normal; }
  .arrange-demo { height: auto; }
  .arrange-demo--flow { height: 510px; padding-top: 54px; }
  .arrange-flow-timeline { left: 0; right: 0; gap: 7px; }
  .arrange-flow-timeline b { font-size: 13px; line-height: 17px; }
  .arrange-flow-timeline small { font-size: 9px; line-height: 13px; }
  .arrange-flow-timeline .is-ready b::before { width: 6px; height: 6px; margin-right: 4px; box-shadow: 0 0 0 4px rgba(49,132,246,.12); }
  .arrange-flow-stage { height: 446px; }
  .arrange-flow-board { top: 45px; width: 92%; height: 320px; border-radius: 18px; }
  .arrange-flow-board > span { right: 10px; bottom: 10px; padding: 5px 7px; font-size: 9px; line-height: 13px; }
  .arrange-flow-brief { width: 48%; height: 398px; padding: 8px; border-radius: 18px; }
  .arrange-flow-brief header { height: 25px; padding-bottom: 7px; }
  .arrange-flow-brief header span { font-size: 10px; line-height: 15px; }
  .arrange-flow-brief header b { font-size: 9px; line-height: 14px; }
  .arrange-flow-brief__screen { height: 323px; border-radius: 10px; }
  .arrange-flow-brief footer { height: 28px; gap: 4px; font-size: 8px; line-height: 12px; }
  .arrange-flow-brief footer i { width: 5px; height: 5px; }
  .arrange-flow-source { left: 12px; width: 42%; height: 126px; padding: 8px; border-radius: 13px; }
  .arrange-flow-source header span { font-size: 7px; line-height: 11px; }
  .arrange-flow-source header b { font-size: 9px; line-height: 13px; }
  .arrange-flow-source__log { margin-top: 5px; gap: 2px; }
  .arrange-flow-source__log span { gap: 3px; font-size: 7px; line-height: 11px; }
  .arrange-flow-source__log span::before { width: 3px; height: 3px; }
  .arrange-flow-source__history { height: 40px; margin-top: 5px; }
  .connect-features > p { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); }
  .connect-features dt,
  .app-features dt { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); }
  .connect-features dd,
  .app-features dd { font-size: var(--type-body-size); line-height: var(--type-body-line); }
  .connect-features dl > div,
  .app-features > div { display: block; }
  .connect-workspace { margin-top: 58px; border-radius: 20px; }
  .connect-workspace > header { padding: 0 18px; font-size: 12px; }
  .connect-workspace__body { padding: 20px 16px 26px; }
  .connect-workspace__tabs { overflow-x: auto; }
  .connect-workspace__tabs span,
  .connect-workspace__tabs strong { min-width: 76px; height: 38px; padding-inline: 10px; font-size: 13px; }
  .connect-dropzone { height: 135px; margin-top: 24px; }
  .connect-dropzone strong { font-size: 17px; line-height: 28px; }
  .connect-queue { margin-top: 22px; }
  .connect-queue > div { grid-template-columns: 32px 1fr; }
  .connect-queue img { width: 32px; height: 32px; }
  .connect-queue p strong { font-size: 13px; }
  .connect-queue p span { font-size: 12px; }
  .connect-queue b { grid-column: 2; justify-self: start; padding: 8px; font-size: 11px; }
  .phone-composite { width: min(500px, 118%); margin-left: -9%; }
  .patient-bridge { height: clamp(260px, 62.5vw, 400px); }
  .patient-bridge h2 { font-size: var(--type-heading-size); line-height: var(--type-heading-line); }
  .public-detail { margin-top: 62px; gap: 56px; }
  .screening-steps { gap: 12px; }
  .screening-steps li { gap: 17px; min-height: 104px; }
  .screening-steps strong { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); }
  .screening-steps p { margin-top: 8px; font-size: var(--type-body-size); line-height: var(--type-body-line); white-space: normal; }
  .screening-steps li:not(:last-child)::after { height: 70px; }
  .partner-logos { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; margin-top: 62px; }
  .partner-logos img { height: 52px; }
  .recognition-section { min-height: 0; padding: 88px 0; }
  .recognition-heading p { font-size: var(--type-body-size); line-height: var(--type-body-line); }
  .recognition-heading h2 { font-size: var(--type-heading-size); line-height: var(--type-heading-line); }
  .recognition-grid { grid-template-columns: 1fr 1fr; gap: 46px 16px; margin-top: 52px; }
  .recognition-grid article > div { height: 92px; }
  .recognition-grid img { max-height: 92px; }
  .recognition-grid article:nth-child(n) img { width: auto; max-width: 130px; }
  .recognition-grid article:nth-child(2) img { max-width: 160px; transform: none; }
  .recognition-grid h3 { margin-top: 20px; font-size: var(--type-title-size); line-height: var(--type-title-line); }
  .recognition-grid p { font-size: var(--type-body-size); line-height: var(--type-body-line); }
  .contact-banner { height: 420px; }
  .contact-banner > img { object-position: 64% center; }
  .contact-banner h2 { font-size: var(--type-heading-size); line-height: var(--type-heading-line); }
  .contact-banner p { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); }
  .contact-banner .primary-button { width: auto; }
  .figma-footer { padding: 68px 0; }
  .figma-footer__links { grid-template-columns: 1fr 1fr; gap: 42px 24px; }
  .figma-footer__links strong,
  .figma-footer__links a,
  .figma-footer__links span { font-size: var(--type-label-size); line-height: var(--type-label-line); }
  .figma-footer__legal { margin-top: 42px; }
  .figma-footer__company p { display: block; }
  .figma-footer__company i { display: none; }
}

@media (max-height: 700px) {
  .has-scroll-motion .figma-hero { height: var(--hero-stage-height); }
  .has-scroll-motion .figma-hero__stage { position: relative; top: 0; }
}

/* Desktop layout density. Typography remains on the canonical global scale. */
@media (min-width: 981px) {
  body.home-page {
    --home-rail: clamp(698px, calc(548px + 16.6667vw), 788px);
    --home-app-span: clamp(698px, calc(423px + 30.5556vw), 863px);
    --home-grid-gap: clamp(48px, calc(3px + 5vw), 75px);
    --home-pad-first: clamp(120px, calc(7.5px + 12.5vw), 188px);
    --home-pad-section: clamp(96px, calc(6px + 10vw), 150px);
    --home-pad-recognition: clamp(75px, calc(12.5px + 6.9444vw), 113px);
    --home-heading-gap: clamp(18px, calc(8px + 1.1111vw), 24px);
    --home-copy-gap: clamp(29px, calc(13.5px + 1.6667vw), 38px);
    --home-hero-tail: clamp(27px, 2.96875vw, 43px);
    --home-content-safe: min(1211px, calc(100vw - 36px));
  }

  body.home-page .figma-container { width: var(--home-content-safe); }
  body.home-page .app-grid { margin-left: max(18px, calc((100vw - var(--home-content-safe)) / 2)); }

  body.home-page .figma-hero {
    --hero-scroll-distance: max(1620px, 240vh);
    --hero-type-h1: clamp(33px, calc(18px + 1.6667vw), 42px);
    --hero-line-h1: clamp(42px, calc(27px + 1.6667vw), 51px);
    --hero-type-title: clamp(15px, calc(7.5px + .8333vw), 19.5px);
    --hero-line-title: clamp(22.5px, calc(15px + .8333vw), 27px);
    --hero-type-body: clamp(13.5px, calc(8.5px + .5556vw), 16.5px);
    --hero-line-body: clamp(22.5px, calc(17.5px + .5556vw), 25.5px);
  }
  body.home-page .figma-hero__content { width: min(1211px, calc(100vw - 36px)); gap: clamp(98px, 11.667vw, 168px); }
  body.home-page .figma-hero__intro { width: min(466px, 100%); }
  body.home-page .figma-hero__cycle { width: min(506px, 100%); gap: 18px; }
  body.home-page .figma-hero__word { font-size: clamp(78px, 8.1366vw, 117px); }
  body.home-page .figma-hero__tabs { gap: 12px; }
  body.home-page .figma-hero__tabs a { min-height: 51px; padding: 12px 20px; border-radius: 9px; }
  body.home-page .figma-hero__progress { height: 27px; }
  body.home-page .primary-button { min-height: 40px; padding: 12px 20px; }
}

@media (min-width: 981px) and (max-height: 900px) {
  body.home-page .figma-hero__content { gap: clamp(39px, 8vh, 84px); padding: 18px 0 36px; }
  body.home-page .figma-hero__word { font-size: min(clamp(66px, 7vw, 96px), 15svh); }
  body.home-page .figma-hero__tabs a { min-height: 42px; padding: 9px 16.5px; }
  body.home-page .figma-hero__progress { height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .has-scroll-motion .figma-hero { height: var(--hero-stage-height); }
  .has-scroll-motion .figma-hero__stage { position: relative; top: 0; }
  .homeden-scroll-ready .service-homeden { height: auto; padding: var(--home-pad-section) 0; }
  .homeden-scroll-ready .service-homeden .homeden-sticky-stage { position: relative; top: auto; display: block; height: auto; overflow: visible; }
  .alaseo-card { --alaseo-float-y: 0px !important; transform: none; }
  .phone-composite__track { --homeden-track-x: 0% !important; }
  .night-console li { animation: none; opacity: 1; transform: none; }
}
