:root {
  --ink: #102438;
  --muted: #587893;
  --blue: #8fbadd;
  --blue-deep: #3f6f95;
  --blue-soft: #d9edf9;
  --app-sky: #eef8ff;
  --app-blue: #a9cfe8;
  --mint: #73b9a6;
  --mint-soft: #edf8f4;
  --coral: #c86757;
  --butter: #f4d995;
  --line: #c8ddec;
  --panel: #ffffff;
  --shadow: 0 24px 70px rgba(16, 36, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f6fbff 0%, #d9edf9 44%, #a9cfe8 100%);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(246, 251, 255, 0.88);
  border-bottom: 1px solid rgba(169, 207, 232, 0.62);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.store-button {
  display: flex;
  align-items: center;
}

.brand {
  width: 78px;
  height: 54px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  gap: 8px;
}

.site-nav a,
.nav-sign-in {
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.nav-sign-in:hover {
  color: var(--ink);
  background: var(--blue-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1fr);
  align-items: center;
  gap: clamp(28px, 7vw, 96px);
  min-height: calc(92vh - 76px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 92px) 56px;
  background:
    linear-gradient(90deg, rgba(246, 251, 255, 0.94), rgba(217, 237, 249, 0.52) 50%, rgba(169, 207, 232, 0.5)),
    linear-gradient(180deg, #f6fbff 0%, #d9edf9 100%);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 780px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.12;
}

.lede,
.section-heading p,
.caregiver-copy p,
.download-section p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action {
  min-height: 54px;
  padding: 0 24px;
  color: #fff;
  background: var(--blue-deep);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(44, 95, 135, 0.24);
  font-size: 18px;
  font-weight: 900;
}

.primary-action:hover {
  background: #234f73;
}

.primary-action.full {
  width: 100%;
}

.store-button {
  gap: 12px;
  min-height: 54px;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(16, 36, 56, 0.08);
}

.store-icon {
  width: 28px;
  height: 28px;
  background: conic-gradient(from 0.35turn, #c8d4da, #ffffff, #8fa3ad, #c8d4da);
  border-radius: 50%;
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1;
}

.store-button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.store-button strong {
  margin-top: 3px;
  font-size: 21px;
}

.hero-art {
  position: relative;
  min-height: 650px;
}

.phone-frame {
  overflow: hidden;
  width: min(420px, 78vw);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  padding: 14px;
  background: #fff;
  border-radius: 48px;
  box-shadow: var(--shadow);
}

.phone-main {
  transform: rotate(2deg);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 34px;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: min(420px, 78vw);
  aspect-ratio: 9 / 16;
  padding: 14px;
  background: #17314a;
  border-radius: 48px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-screen {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 28px 18px 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6fbff 0%, #d9edf9 100%);
  border-radius: 34px;
}

.coach-screen {
  display: block;
  padding: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #eef8ff 48%, #d9edf9 100%);
}

.screen-badge {
  position: absolute;
  max-width: 210px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(16, 36, 56, 0.12);
}

.screen-badge strong,
.screen-badge span {
  display: block;
}

.screen-badge strong {
  font-size: 14px;
}

.screen-badge span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.screen-badge.top-left {
  top: 26px;
  left: 18px;
}

.screen-badge.bottom-right {
  right: 18px;
  bottom: 26px;
}

.screen-top,
.dose-card,
.panel-header,
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-top {
  margin-bottom: 4px;
}

.screen-top span,
.screen-top strong {
  display: block;
}

.screen-top span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.screen-top strong {
  font-size: 26px;
}

.dose-card,
.mary-note,
.dashboard-panel,
.wizard-card,
.feature-grid article {
  background: var(--panel);
  border: 1px solid rgba(219, 232, 240, 0.88);
  box-shadow: 0 14px 40px rgba(16, 36, 56, 0.08);
}

.dose-card {
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border-radius: 20px;
}

.dose-card div {
  flex: 1;
}

.dose-card strong,
.dose-card small {
  display: block;
}

.dose-card small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.pill-icon,
.bottle-icon,
.status-dot,
.check-dot,
.feature-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.pill-icon {
  width: 42px;
  height: 24px;
  background: linear-gradient(90deg, #74a9d0 50%, #f0d2a4 50%);
  border: 3px solid #315f83;
  border-radius: 999px;
  transform: rotate(-28deg);
}

.bottle-icon {
  width: 32px;
  height: 44px;
  background: linear-gradient(180deg, #d9edf7 0 22%, #f5c78f 22% 100%);
  border: 3px solid #315f83;
  border-radius: 9px;
}

.status-dot,
.check-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.status-dot {
  background: var(--coral);
}

.check-dot {
  background: var(--mint);
}

.mary-note {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
}

.mary-note img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

.mary-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.bottom-tabs {
  position: absolute;
  right: 34px;
  bottom: 18px;
  left: 34px;
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.bottom-tabs span {
  width: 24px;
  height: 24px;
  background: var(--blue-soft);
  border-radius: 9px;
}

.floating-card {
  position: absolute;
  max-width: 240px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(16, 36, 56, 0.12);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.nutrition {
  top: 92px;
  left: 0;
}

.coach {
  right: 0;
  bottom: 80px;
}

.feature-band,
.audience-section,
.companion-section,
.wizard-section,
.settings-art-section,
.guardian-workflow-section,
.why-section,
.caregiver-section,
.story-section,
.download-section {
  padding: clamp(58px, 8vw, 102px) clamp(20px, 6vw, 92px);
  scroll-margin-top: 92px;
}

.feature-band,
.why-section,
.caregiver-section {
  background:
    linear-gradient(180deg, rgba(246, 251, 255, 0.92), rgba(217, 237, 249, 0.9));
}

.story-section {
  background:
    linear-gradient(180deg, #eef8ff 0%, #ffffff 52%, #f6fbff 100%);
}

.audience-section {
  background:
    linear-gradient(180deg, #d9edf9 0%, #f6fbff 45%, #ffffff 100%);
}

.companion-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef8ff 54%, #f6fbff 100%);
}

.wizard-section {
  background:
    linear-gradient(180deg, #d9edf9 0%, #f6fbff 22%, #ffffff 100%);
}

.settings-art-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef8ff 44%, #d9edf9 100%);
}

.guardian-workflow-section {
  background:
    linear-gradient(180deg, #f6fbff 0%, #ffffff 36%, #eef8ff 100%);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 30px;
}

.section-heading.wide {
  max-width: 980px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.audience-story {
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  max-width: 1160px;
  margin-inline: auto;
}

.audience-moment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 0;
}

.audience-moment.image-left {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 0.94fr);
}

.audience-moment img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(16, 36, 56, 0.09);
}

.audience-bubble {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.95);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(16, 36, 56, 0.11);
}

.image-right .audience-bubble {
  justify-self: end;
  margin-right: -34px;
}

.audience-moment:first-child .audience-bubble {
  margin-right: 4px;
}

.image-left .audience-bubble {
  margin-left: -34px;
}

.audience-bubble::after {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  content: "";
  background: #fff;
  border-top: 1px solid rgba(200, 221, 236, 0.95);
  border-right: 1px solid rgba(200, 221, 236, 0.95);
  transform: translateY(-50%) rotate(45deg);
}

.image-right .audience-bubble::after {
  right: -12px;
}

.image-left .audience-bubble::after {
  left: -12px;
  transform: translateY(-50%) rotate(225deg);
}

.audience-bubble h3 {
  margin-bottom: 10px;
}

.audience-bubble p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.elderly-support {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(24px, 5vw, 66px);
  max-width: 1160px;
  margin: clamp(38px, 6vw, 72px) auto 0;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(200, 221, 236, 0.95);
  border-radius: 30px;
  box-shadow: 0 18px 48px rgba(16, 36, 56, 0.09);
}

.elderly-support h3 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.04;
}

.elderly-support p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.elderly-support img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(16, 36, 56, 0.08);
}

.companion-spectrum,
.companion-workflow {
  max-width: 1180px;
  margin-inline: auto;
}

.companion-spectrum {
  display: grid;
  gap: 20px;
}

.companion-spectrum > img,
.companion-workflow img {
  display: block;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(16, 36, 56, 0.1);
}

.companion-spectrum > img {
  aspect-ratio: 1.55 / 1;
}

.mode-cards,
.companion-steps {
  display: grid;
  gap: 16px;
}

.mode-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mode-cards article,
.companion-steps article {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(16, 36, 56, 0.06);
}

.mode-cards span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.mode-cards h3 {
  margin-top: 6px;
  font-size: 20px;
}

.companion-stage-flow {
  --stage-gap: clamp(56px, 5vw, 72px);

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--stage-gap);
  max-width: 1360px;
  margin-inline: auto;
}

.companion-stage {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.companion-stage:not(:last-child)::after {
  position: absolute;
  top: 225px;
  right: calc((var(--stage-gap) * -0.5) - 14px);
  z-index: 3;
  width: 36px;
  height: 20px;
  content: "";
  background: radial-gradient(circle, #4a8fe4 0 3px, transparent 3.5px) 0 50% / 12px 12px repeat-x;
  opacity: 0.9;
}

.companion-stage:not(:last-child)::before {
  position: absolute;
  top: 225px;
  right: calc((var(--stage-gap) * -0.5) - 24px);
  z-index: 4;
  width: 16px;
  height: 16px;
  content: "";
  border-top: 6px solid #4a8fe4;
  border-right: 6px solid #4a8fe4;
  border-radius: 2px;
  opacity: 0.9;
  transform: rotate(45deg);
}

.companion-stage h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  text-align: center;
}

.companion-stage h3 img {
  width: 36px;
  height: 30px;
  object-fit: contain;
}

.companion-stage > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(16, 36, 56, 0.08);
}

.stage-bubble {
  position: relative;
  min-height: 188px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(200, 221, 236, 0.95);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(16, 36, 56, 0.06);
}

.stage-bubble::before {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 20px;
  height: 20px;
  content: "";
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(200, 221, 236, 0.95);
  border-left: 1px solid rgba(200, 221, 236, 0.95);
  transform: translateX(-50%) rotate(45deg);
}

.stage-bubble span,
.stage-bubble strong,
.stage-bubble p {
  display: block;
}

.stage-bubble span {
  margin-bottom: 6px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.stage-bubble strong {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.15;
}

.stage-bubble p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.mode-cards p,
.companion-workflow p,
.companion-steps span {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

.companion-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 66px);
  margin-top: clamp(34px, 6vw, 68px);
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 30px;
}

.companion-workflow h3 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.04;
}

.companion-workflow p + p {
  margin-top: 14px;
}

.companion-workflow img {
  aspect-ratio: 1 / 1;
}

.companion-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 18px auto 0;
}

.companion-steps strong,
.companion-steps span {
  display: block;
}

.companion-steps strong {
  margin-bottom: 7px;
  font-size: 17px;
}

.feature-grid article {
  min-width: 0;
  padding: 22px;
  border-radius: 22px;
}

.feature-grid p,
.wizard-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.feature-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  background: var(--blue-soft);
  border: 3px solid #315f83;
  border-radius: 18px;
}

.clock-icon {
  border-radius: 50%;
  background:
    linear-gradient(#315f83, #315f83) 50% 24px / 4px 16px no-repeat,
    linear-gradient(#315f83, #315f83) 30px 30px / 15px 4px no-repeat,
    var(--blue-soft);
}

.camera-icon {
  background:
    radial-gradient(circle at 50% 54%, #fff 0 11px, #315f83 12px 15px, transparent 16px),
    linear-gradient(#315f83, #315f83) 14px 10px / 28px 7px no-repeat,
    var(--blue-soft);
}

.card-icon {
  background:
    linear-gradient(#315f83, #315f83) 14px 18px / 30px 4px no-repeat,
    linear-gradient(#73b9a6, #73b9a6) 14px 29px / 22px 8px no-repeat,
    var(--blue-soft);
}

.family-icon {
  background:
    radial-gradient(circle at 22px 22px, #315f83 0 8px, transparent 9px),
    radial-gradient(circle at 38px 22px, #73b9a6 0 8px, transparent 9px),
    linear-gradient(#315f83, #315f83) 14px 36px / 31px 10px no-repeat,
    var(--blue-soft);
}

.wizard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wizard-card {
  overflow: hidden;
  border-radius: 22px;
}

.wizard-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.wizard-card div {
  padding: 20px;
}

.spin-card .spin-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.spin-card .spin-art img {
  aspect-ratio: 1 / 0.78;
}

.wizard-card span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.art-subsection {
  margin-top: 36px;
}

.art-subsection h3 {
  margin-bottom: 16px;
  font-size: 24px;
}

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.explainer-card {
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(16, 36, 56, 0.08);
}

.explainer-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.84;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.explainer-card h4 {
  margin: 0;
  padding: 16px 18px 18px;
  font-size: 18px;
  line-height: 1.18;
}

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

.guardian-journey-secondary {
  margin-top: 22px;
}

.guardian-art-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(16, 36, 56, 0.08);
}

.guardian-art-card.large-card {
  grid-template-columns: 1fr;
  align-content: start;
}

.guardian-art-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 18px;
}

.guardian-art-card.large-card img {
  aspect-ratio: 1 / 0.7;
}

.guardian-art-card p,
.workflow-steps span,
.screen-guide-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.step-label {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 6px 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.workflow-steps article,
.screen-guide-grid article {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 20px;
}

.workflow-steps strong,
.workflow-steps span,
.screen-guide-grid span,
.screen-guide-grid p {
  display: block;
}

.workflow-steps strong {
  margin-bottom: 7px;
  font-size: 17px;
}

.screen-guide {
  margin-top: 38px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 28px;
}

.screen-guide h3 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.screen-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.screen-guide-grid span {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.why-grid article {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(16, 36, 56, 0.08);
}

.why-grid strong,
.why-grid span {
  display: block;
}

.why-grid strong {
  margin-bottom: 8px;
  font-size: 21px;
}

.why-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.caregiver-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.caregiver-copy {
  max-width: 700px;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

.story-copy {
  max-width: 760px;
}

.story-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.story-copy p + p {
  margin-top: 16px;
}

.story-section img {
  display: block;
  width: min(560px, 100%);
  justify-self: center;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 30px;
  box-shadow: 0 18px 48px rgba(16, 36, 56, 0.1);
}

.caregiver-art {
  display: block;
  width: min(560px, 100%);
  justify-self: center;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(200, 221, 236, 0.9);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(16, 36, 56, 0.1);
}

.dashboard-panel {
  padding: 26px;
  border-radius: 24px;
}

.panel-header span {
  padding: 7px 10px;
  color: #245243;
  background: var(--mint-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.metric-row {
  gap: 12px;
  margin: 24px 0;
}

.metric-row div {
  flex: 1;
  padding: 16px;
  background: #f8fcff;
  border-radius: 18px;
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  font-size: 28px;
}

.metric-row span,
.timeline span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  gap: 4px;
  padding: 14px 0 14px 18px;
  border-left: 4px solid var(--blue);
}

.download-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  align-items: center;
  gap: 34px;
  background:
    linear-gradient(180deg, #f6fbff 0%, #d9edf9 55%, #a9cfe8 100%);
}

.download-section img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(16, 36, 56, 0.1);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 92px);
  color: var(--muted);
  background: #102438;
}

.site-footer a,
.site-footer span {
  color: #d9e7ee;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 36, 56, 0.62);
  backdrop-filter: blur(12px);
}

.hidden,
.modal-backdrop[hidden],
.modal-backdrop.hidden {
  display: none;
}

.login-error {
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

.form-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.auth-modal h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.auth-modal form {
  display: grid;
  gap: 14px;
}

.auth-modal label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-modal input,
.auth-modal select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cad9e3;
  border-radius: 14px;
  font: inherit;
}

.auth-modal input:focus,
.auth-modal select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(95, 149, 189, 0.18);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.captcha-row span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.captcha-row input[type="number"] {
  min-height: 42px;
  text-align: center;
}

.thank-you-panel {
  padding: 10px 0 4px;
  text-align: center;
}

.thank-you-panel img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.thank-you-panel h2 {
  margin-bottom: 8px;
}

.thank-you-panel p {
  margin-top: 0;
  font-size: 16px;
}

.auth-modal p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1020px) {
  .hero,
  .caregiver-section,
  .story-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: unset;
  }

  .hero-art {
    min-height: 640px;
  }

  .feature-grid,
  .why-grid,
  .wizard-grid,
  .explainer-grid,
  .companion-stage-flow,
  .mode-cards,
  .workflow-steps,
  .companion-steps,
  .screen-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-moment,
  .audience-moment.image-left {
    grid-template-columns: 1fr;
  }

  .audience-moment.image-right img {
    grid-row: 1;
  }

  .audience-moment.image-right .audience-bubble {
    grid-row: 2;
  }

  .image-right .audience-bubble,
  .image-left .audience-bubble {
    justify-self: center;
    max-width: min(560px, 92%);
    margin: -34px 0 0;
  }

  .audience-bubble::after {
    top: -12px;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
  }

  .guardian-journey,
  .guardian-art-card,
  .elderly-support,
  .companion-workflow {
    grid-template-columns: 1fr;
  }

  .companion-stage:not(:last-child)::after {
    top: auto;
    right: calc(50% - 21px);
    bottom: -28px;
    transform: rotate(90deg);
  }

  .companion-stage:not(:last-child)::before {
    top: auto;
    right: calc(50% - 8px);
    bottom: -36px;
    transform: rotate(135deg);
  }

  .download-section {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .form-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 75px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .nav-sign-in {
    width: 100%;
    text-align: left;
  }

  h1 {
    font-size: 48px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-art {
    min-height: 620px;
  }

  .floating-card {
    position: static;
    margin: 12px auto 0;
  }

  .phone-frame,
  .phone-shell {
    width: min(350px, 88vw);
  }

  .feature-grid,
  .why-grid,
  .wizard-grid,
  .explainer-grid,
  .companion-stage-flow,
  .mode-cards,
  .workflow-steps,
  .companion-steps,
  .screen-guide-grid {
    grid-template-columns: 1fr;
  }

  .guardian-art-card,
  .screen-guide,
  .elderly-support,
  .companion-workflow {
    padding: 16px;
  }

  .metric-row {
    flex-direction: column;
    align-items: stretch;
  }

  .download-section img {
    width: 180px;
    height: 180px;
  }

  .site-footer {
    flex-direction: column;
  }
}
