@font-face {
  font-family: Epilogue;
  src: url("assets/Epilogue-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Epilogue;
  src: url("assets/Epilogue-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Epilogue;
  src: url("assets/Epilogue-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #014cc4;
  --brand-hover: #003a96;
  --ink: #202349;
  --muted: #5e6378;
  --line: #e2e6ee;
  --pale-blue: #e1ebff;
  --pale-mint: #d9f8ef;
  --lavender: #f0edff;
  --surface: #fff;
  --shell: 1240px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --font: Epilogue, system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; }
section[id] { scroll-margin-top: 28px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 8px;
  clip-path: inset(50%);
}

.skip-link:focus { clip-path: none; }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }

.site-header { background: var(--surface); }

.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
}

.brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); }

.site-nav a, .site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a:hover, .site-footer nav a:hover { color: var(--brand); }
.header-action { justify-self: end; }

.button {
  display: inline-flex;
  min-height: 50px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button span, .card-arrow { font: 600 18px/1.1 system-ui, sans-serif; }
.button-outline { color: var(--brand); border-color: #d8e5fa; }
.button-outline:hover { background: #eef5ff; border-color: #bbd0f1; }
.button-primary { min-height: 56px; padding-inline: 25px; background: var(--brand); color: var(--surface); }
.button-primary:hover { background: var(--brand-hover); }

.hero {
  display: grid;
  grid-template-columns: 51% 49%;
  min-height: 525px;
  margin-top: 9px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 32px;
  background: #edf3ff;
}

.hero-copy {
  align-self: center;
  position: relative;
  z-index: 1;
  padding: 60px clamp(28px, 5.3vw, 76px);
}

.hero h1 {
  font-size: clamp(42px, 5.45vw, 74px);
  line-height: 1.05;
  letter-spacing: -.048em;
}

.hero h1 em { font-style: normal; color: var(--brand); }

.hero p {
  max-width: 345px;
  margin-top: 24px;
  color: #4d5672;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.65;
}

.hero .button { margin-top: 31px; }

.hero-photo {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #d4e2f6;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 50%;
}

.care-section { margin-top: clamp(64px, 7.3vw, 105px); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px 50px;
  margin-bottom: 30px;
}

h2 {
  font-size: clamp(35px, 4.25vw, 59px);
  line-height: 1.05;
  letter-spacing: -.048em;
}

.section-heading p, .faq-heading p {
  max-width: 325px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
}

.care-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 23px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.care-card:hover { border-color: #b4c8eb; box-shadow: 0 12px 25px #2437610b; }
.care-art { display: grid; place-items: center; aspect-ratio: 1.56; overflow: hidden; }
.art-care { background: var(--pale-blue); }
.art-tests { background: var(--pale-mint); }
.art-pharmacy { background: #feebea; }
.art-records { background: var(--lavender); }
.care-art img { width: clamp(104px, 61%, 182px); height: auto; transition: transform .25s ease; }
.care-card:hover .care-art img { transform: translateY(-4px) scale(1.045); }
.care-card-body { flex: 1; display: flex; flex-direction: column; padding: clamp(15px, 1.6vw, 23px); }
.care-card h3 { font-size: clamp(16px, 1.55vw, 22px); line-height: 1.25; letter-spacing: -.028em; }
.care-card p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.card-arrow {
  align-self: end;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: auto;
  position: relative;
  top: 6px;
  border-radius: 100%;
  background: #eef4ff;
  color: var(--brand);
  transition: background-color .18s ease, color .18s ease;
}

.care-card:hover .card-arrow { background: var(--brand); color: white; }
.app-section { margin-top: clamp(70px, 8vw, 118px); }

.app-showcase {
  display: grid;
  grid-template-columns: 54% 46%;
  overflow: hidden;
  min-height: 555px;
  border-radius: 32px;
  background: #172b64;
  color: white;
}

.app-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(34px, 5.3vw, 76px);
}

.app-copy > p {
  max-width: 427px;
  margin-top: 20px;
  color: #e0e9ff;
  font-size: 16px;
  line-height: 1.65;
}

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.app-tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 15px;
  border: 1px solid #7c91c8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.app-tabs a:hover { background: #ffffff22; }
.app-tabs a[aria-selected="true"] { background: white; color: #172b64; border-color: white; }
.app-showcase :focus-visible { outline-color: #aadeff; }

.app-panels { margin-top: 20px; }
.app-panels:has([role="tabpanel"]) { min-height: 104px; }
.app-panel { max-width: 440px; scroll-margin-top: 24px; }
.app-panel + .app-panel:not([hidden]) { margin-top: 18px; }
.app-panel h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.035em; }
.app-panel p { margin-top: 5px; color: #d7e2ff; font-size: 14px; line-height: 1.6; }

.app-visual {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 510px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 49% 54%, #3d7ded 0, #1c4eae 45%, #1d387b 74%, #172b64 100%);
}

.app-rings {
  position: absolute;
  width: min(97%, 526px);
  aspect-ratio: 1;
  border: 1px solid #aecbff38;
  border-radius: 50%;
  box-shadow: 0 0 0 35px #9abfff15, inset 0 0 0 38px #9abfff13;
  transform: translateX(7%);
}

.phone {
  position: relative;
  z-index: 1;
  width: 225px;
  max-width: 70%;
  padding: 7px;
  border-radius: 34px;
  background: #fbfcff;
  box-shadow: 0 23px 46px #04163887, inset 0 0 0 1px #d4deef;
  transform: translateX(-6%) rotate(-6deg);
}

.phone-display {
  position: relative;
  overflow: hidden;
  border-radius: 27px;
  background: white;
}

.phone-display::after {
  content: "";
  position: absolute;
  top: 1.55%;
  left: 50%;
  width: 26%;
  aspect-ratio: 5.1;
  border-radius: 999px;
  background: radial-gradient(circle at 86% 50%, #262b35 0, #101219 7%, #08090c 12%);
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-screen {
  width: 100%;
  height: auto;
}

.floating-mark {
  position: absolute;
  width: clamp(94px, 33%, 190px);
  height: auto;
  top: 14%;
  right: 6%;
  filter: drop-shadow(0 16px 13px #071d543d);
  transform: rotate(12deg);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  gap: clamp(30px, 5.5vw, 84px);
  padding-block: clamp(72px, 8vw, 118px);
}

.faq-heading p { margin-top: 15px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  min-height: 73px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 2px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.4;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }

.faq-list summary::after {
  content: "";
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat #eef4ff;
}

.faq-list details[open] summary::after { background-size: 12px 2px, 0 0; }
.faq-list summary:hover { color: var(--brand); }
.faq-list details p { max-width: 540px; padding: 0 14px 20px 2px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.site-footer { background: #f5f8fe; border-top: 1px solid #e8eef8; }

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  min-height: 117px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(14px, 2vw, 24px);
}
.site-footer p { justify-self: end; color: var(--muted); font-size: 12px; white-space: nowrap; }
.menu-toggle { display: none; }

@media (max-width: 950px) {
  .hero { min-height: 460px; }
  .hero-copy { padding-inline: clamp(28px, 4.6vw, 56px); }
  .care-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-art { aspect-ratio: 1.9; }
  .app-visual { min-height: 450px; }
}

@media (max-width: 850px) {
  .section-heading { display: grid; gap: 10px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 70px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
  .brand { font-size: 22px; }
  .brand img { width: 31px; height: 31px; }
  .header-action { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
  .menu-icon { width: 14px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
  .site-nav { flex: 0 0 100%; flex-wrap: wrap; gap: 5px 23px; padding: 0 2px 12px; }
  .header-inner[data-enhanced] .site-nav[data-collapsed] { display: none; }
  .hero { grid-template-columns: 1fr; margin-top: 3px; border-radius: 24px; }
  .hero-copy { padding: clamp(34px, 7vw, 52px) clamp(23px, 6vw, 45px); }
  .hero h1 { font-size: clamp(41px, 9.6vw, 64px); }
  .hero p { margin-top: 18px; }
  .hero .button { margin-top: 23px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.22; }
  .hero-photo img { object-position: 56% 48%; }
  .section-heading { margin-bottom: 22px; }
  .section-heading p { max-width: 430px; }
  .care-art { aspect-ratio: 1.35; }
  .care-card { border-radius: 17px; }
  .card-arrow { top: 2px; }
  .app-showcase { grid-template-columns: 1fr; border-radius: 24px; }
  .app-copy { padding: clamp(25px, 7vw, 45px); }
  .app-tabs { gap: 6px; margin-top: 22px; }
  .app-tabs a { padding-inline: 11px; }
  .app-visual { min-height: 490px; }
  .phone { width: 207px; }
  .floating-mark { right: 8%; }
  .faq-section { grid-template-columns: 1fr; gap: 22px; }
  .faq-heading p { margin-top: 10px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 10px; padding-block: 26px; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer p { justify-self: start; }
}

@media (max-width: 360px) {
  .care-grid { grid-template-columns: 1fr; }
  .care-art { aspect-ratio: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.legal-header { grid-template-columns: 1fr auto; }

.legal-header a[aria-current="page"],
.site-footer a[aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.legal-main { margin-block: 9px clamp(62px, 8vw, 110px); }

.legal-intro {
  padding: clamp(26px, 6vw, 76px);
  border-radius: 32px;
  background: #edf3ff;
}

.legal-intro h1 {
  font-size: clamp(39px, 6vw, 73px);
  line-height: 1.08;
  letter-spacing: -.048em;
}

.legal-intro > p {
  max-width: 630px;
  margin-top: 16px;
  color: #4d5672;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.65;
}

.legal-intro .legal-date {
  margin-top: 24px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(175px, .32fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 7vw, 100px);
  max-width: 1030px;
  margin: clamp(35px, 6vw, 75px) auto 0;
}

.legal-contents { position: sticky; top: 24px; }
.legal-contents h2 { font-size: 14px; letter-spacing: 0; }
.legal-contents ul { list-style: none; margin: 10px 0 0; padding: 0; }
.legal-contents a { display: block; padding: 8px 0; font-size: 14px; color: var(--muted); }
.legal-contents a:hover { color: var(--brand); text-decoration: underline; }

.legal-copy { max-width: 690px; }
.legal-copy section + section { margin-top: 34px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal-copy h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.18; letter-spacing: -.036em; }
.legal-copy p { margin-top: 13px; color: #4d536b; line-height: 1.75; }
.legal-copy strong { color: var(--ink); }
.legal-copy a { overflow-wrap: anywhere; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .legal-header { padding-block: 10px; }
  .legal-header .site-nav { padding: 0; }
  .legal-intro { border-radius: 24px; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-contents { position: static; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
}
