.diacare-home {
  --canvas: #f8fbff;
  --navy: #142b47;
  --copy: #465e78;
  --blue: #215dcb;
  --blue-dark: #17479e;
  --line: #d9e4f0;
  --home-paper: #fff;
  --home-tint: #eaf3ff;
}

.diacare-home .site-header { background: rgba(248, 251, 255, .96); }
.diacare-home .button { border-radius: 10px; font-size: .9375rem; }
.diacare-home .nav-download { font-size: .875rem; }

.home-opening { padding-block: clamp(42px, 6vw, 88px) clamp(48px, 6vw, 84px); }
.home-opening-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}
.home-opening h1 {
  font-size: clamp(3rem, 5.5vw, 5.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.065em;
}
.home-opening h1 em {
  display: block;
  color: var(--blue);
  font-family: Lora, Georgia, serif;
  font-size: .83em;
  font-weight: 500;
  letter-spacing: -.06em;
}
.home-lede {
  max-width: 43ch;
  margin-top: 24px;
  color: var(--copy);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.home-languages { margin-top: 17px; color: var(--copy); font-size: .875rem; }

.diacare-home main figure { margin: 0; }
.diacare-home main figcaption {
  margin-top: 9px;
  color: var(--copy);
  font-size: .8125rem;
  line-height: 1.5;
}
.home-scene {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 0;
  aspect-ratio: 1.3;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #e6edf3;
}
.home-scene-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}
.home-device {
  overflow: hidden;
  border: 5px solid #172c45;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px #142b4733;
}
.home-device img { width: 100%; height: auto; }
.home-scene .home-device { width: 29%; margin-left: 6%; }

.home-workflow, .home-care, .home-routine, .home-start {
  padding-block: clamp(52px, 7vw, 96px);
}
.home-workflow { border-block: 1px solid var(--line); background: var(--home-paper); }
.home-section-heading { margin-bottom: 28px; }
.diacare-home main h2 {
  max-width: 24ch;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  font-weight: 800;
  text-wrap: pretty;
  line-height: 1.09;
}
.home-jump-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; }
.home-jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--canvas);
  color: var(--blue-dark);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.home-jump-links a:hover { border-color: var(--blue); }
.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 16px;
}
.home-feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 20px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 22px;
  background: #f0f6ff;
}
.home-plan { grid-row: span 2; background: var(--home-tint); }
.home-feedback { background: #f1f7f5; }
.home-feature h3 {
  max-width: 24ch;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
}
.home-feature p, .home-care-copy > p, .home-start-copy p {
  max-width: 53ch;
  margin-top: 12px;
  color: var(--copy);
}
.home-meal-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 21px 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 68%, #c7dfff, #e4efff 74%);
}
.home-plan figure { display: flex; flex: 1; flex-direction: column; }
.home-plan .home-meal-stage { flex: 1; }
.home-meal-stage .home-device { width: min(51%, 236px); }
.home-log figure > img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.home-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--blue-dark);
  font-weight: 800;
}
.home-inline-link:hover { color: var(--blue); }

.home-care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(28px, 7vw, 96px);
}
.home-care-copy > p { margin-top: 18px; }
.home-clinician {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 12px;
  margin-top: 20px;
  color: var(--blue-dark);
  line-height: 1.4;
}
.home-clinician img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.home-clinician span span { display: block; margin-top: 2px; color: var(--copy); font-size: .875rem; }
.home-care-copy .home-care-note { font-size: .875rem; }
.home-chat-visual {
  padding: 18px clamp(18px, 5vw, 70px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--home-tint);
}
.home-chat-crop {
  position: relative;
  aspect-ratio: 1.06;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px #142b4714;
}
.home-chat-crop img { position: absolute; bottom: -13%; width: 100%; height: auto; }

.home-routine { background: var(--home-paper); border-top: 1px solid var(--line); }
.home-routine-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 28px 0 0;
}
.home-routine-list > div { padding-top: 14px; border-top: 1px solid var(--line); }
.home-routine-list dt { font-size: 1.125rem; font-weight: 800; }
.home-routine-list dd { margin: 5px 0 0; color: var(--copy); }

.home-start { position: relative; background: #143359; color: #fff; }
.home-anchor { position: absolute; top: 0; }
.home-start-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(32px, 7vw, 90px); }
.diacare-home .home-start h2, .home-questions h3 { color: #fff; }
.home-start-copy p { color: #e1ecfa; }
.home-start-copy .button { margin-top: 20px; }
.home-questions summary {
  padding: 12px 0;
  cursor: pointer;
  font-weight: 700;
}
.home-questions details { border-bottom: 1px solid #7691ae; }
.home-questions p { padding-bottom: 12px; color: #e1ecfa; }

@media (max-width: 740px) {
  .home-opening-grid, .home-feature-grid, .home-care-grid, .home-start-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-feature-grid { grid-template-rows: auto; }
  .home-plan { grid-row: auto; }
  .home-opening h1 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .home-scene { border-radius: 20px; }
  .home-device { border-width: 3px; border-radius: 15px; }
  .home-meal-stage .home-device { width: min(52%, 176px); }
}

@media (max-width: 520px) {
  .home-routine-list { grid-template-columns: minmax(0, 1fr); }
  .home-lede { margin-top: 18px; }
}
