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

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

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

:root {
  --ink: #172330;
  --deep: #101820;
  --muted: #5d6b78;
  --line: #dce8eb;
  --surface: #ffffff;
  --soft: #f3f9f9;
  --cream: #fff7ef;
  --teal: #20b9bd;
  --teal-dark: #0e757a;
  --blue: #173b73;
  --coral: #f07f65;
  --yellow: #f4c95d;
  --mint: #dff6f4;
  --peach: #ffe8df;
  --butter: #fff0bd;
  --shadow: 0 18px 45px rgba(23, 35, 48, 0.12);
  --heavy-shadow: 0 28px 70px rgba(23, 35, 48, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Figtree", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 232, 235, 0.8);
  backdrop-filter: blur(16px);
}

.brand img,
.footer-brand img {
  width: 148px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.site-footer a,
.text-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a {
  padding: 10px 12px;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--teal-dark);
}

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  min-height: calc(82vh - 82px);
  padding: clamp(28px, 4vw, 48px) clamp(18px, 5vw, 82px) clamp(18px, 3vw, 30px);
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(32, 185, 189, 0.14), rgba(240, 127, 101, 0.08) 48%, rgba(244, 201, 93, 0.18)),
    #f8fbfb;
}

.hero-command {
  background:
    radial-gradient(circle at 87% 12%, rgba(240, 127, 101, 0.2), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(32, 185, 189, 0.22), transparent 26%),
    linear-gradient(135deg, #f8fbfb 0%, #ffffff 48%, var(--cream) 100%);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.35rem, 4.45vw, 4.1rem);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}

.caregiver-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 24px;
}

.avatar {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
  color: var(--deep);
  border: 3px solid #ffffff;
  border-radius: 50%;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(23, 35, 48, 0.12);
}

.avatar-teal {
  background: var(--mint);
}

.avatar-coral {
  background: var(--peach);
}

.avatar-gold {
  background: var(--butter);
}

.caregiver-note {
  margin-left: 18px;
  color: var(--blue);
  font-weight: 700;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
}

.app-store-link img {
  width: 188px;
  height: auto;
}

.hero-media {
  position: relative;
  justify-self: center;
  width: min(100%, 690px);
}

.care-dashboard {
  min-height: 560px;
}

.phone-stack {
  position: absolute;
  inset: 24px auto auto 42px;
  width: min(58%, 370px);
  min-height: 500px;
}

.phone {
  position: absolute;
  width: min(56%, 205px);
  border-radius: 28px;
  box-shadow: var(--heavy-shadow);
}

.phone-back {
  top: 18px;
  left: 128px;
  transform: rotate(4deg);
}

.phone-front {
  top: 72px;
  left: 10px;
  transform: rotate(-5deg);
}

.today-card {
  position: absolute;
  right: 0;
  bottom: 26px;
  width: min(100%, 360px);
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--heavy-shadow);
  backdrop-filter: blur(18px);
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.today-card h2 {
  margin-bottom: 18px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.dose-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

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

.dose-row small {
  color: var(--muted);
}

.dose-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.teal-dot {
  background: var(--teal);
}

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

.gold-dot {
  background: var(--yellow);
}

.status-pill {
  padding: 5px 9px;
  color: #ffffff;
  background: var(--deep);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.muted-pill {
  color: var(--blue);
  background: var(--soft);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 82px);
}

.handoff-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 82px);
  background: var(--deep);
  color: #ffffff;
}

.handoff-strip article {
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.035);
}

.handoff-strip span {
  display: block;
  margin-bottom: 18px;
  color: #9ee8e8;
  font-weight: 800;
}

.handoff-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.handoff-strip p {
  margin: 0;
  color: #d7e1e4;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.feature-grid {
  display: grid;
  gap: 18px;
  background: var(--surface);
}

.feature-row {
  display: grid;
  gap: 18px;
}

.primary-feature-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.secondary-feature-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 236px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-card {
  background: linear-gradient(180deg, #ffffff, var(--mint));
}

.caregiver-card {
  background: linear-gradient(180deg, #ffffff, var(--peach));
}

.dose-card {
  background: linear-gradient(180deg, #ffffff, var(--butter));
}

.feature-card p,
.steps p,
.split-copy p,
.policy-card p,
.support-copy p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--teal-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  background: var(--soft);
}

.editorial-section {
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 50%, var(--soft) 50%, var(--soft) 100%);
}

.editorial-media {
  position: relative;
}

.editorial-media::before {
  position: absolute;
  inset: 10% 4% auto auto;
  width: 52%;
  height: 72%;
  background: var(--deep);
  border-radius: 8px;
  content: "";
}

.split-media img {
  position: relative;
  max-height: 620px;
  margin: 0 auto;
  border-radius: 28px;
  filter: drop-shadow(var(--shadow));
}

.split-copy {
  max-width: 640px;
}

.split-copy p {
  margin-top: 18px;
  font-size: 1.08rem;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  content: "✓";
}

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

.steps article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps img {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  margin-bottom: 24px;
}

.screenshot-section {
  background: #f7fafb;
}

.app-store-section {
  background:
    linear-gradient(180deg, #f7fafb 0%, #ffffff 100%);
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

.screenshots img {
  width: min(100%, 320px);
  justify-self: center;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.screenshots img:nth-child(2) {
  margin-top: 42px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(32, 185, 189, 0.18), transparent 42%),
    var(--deep);
}

.cta-section .eyebrow {
  color: #9ee8e8;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 82px);
  color: #dfe8eb;
  background: #101820;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.site-footer a {
  color: #f7fbfb;
}

.site-footer p {
  margin: 0;
  color: #b6c5ca;
}

.page-shell {
  min-height: 68vh;
  padding: clamp(50px, 8vw, 96px) clamp(18px, 5vw, 82px);
  background: var(--soft);
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-content h1 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.policy-card,
.support-panel {
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 35, 48, 0.08);
}

.policy-card a {
  color: var(--blue);
  font-weight: 700;
}

.policy-document {
  display: grid;
  gap: 18px;
}

.policy-document > h1 {
  display: none;
}

.policy-document h2,
.policy-document h3 {
  margin-top: 18px;
}

.policy-document h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.policy-document h3 {
  font-size: 1.18rem;
}

.policy-document p,
.policy-document ul,
.policy-document ol {
  margin: 0;
}

.policy-document ul,
.policy-document ol {
  padding-left: 22px;
}

.policy-index {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-index h2 {
  margin: 0;
  font-size: 1.1rem;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 54px);
}

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

.field {
  display: grid;
  gap: 6px;
}

[data-honeypot-field] {
  display: none !important;
}

.field span {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #cddcdf;
  border-radius: 8px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--teal-dark);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: var(--blue);
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 600;
}

.form-status[data-state="error"] {
  color: #a43b2b;
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media,
  .care-dashboard {
    min-height: 500px;
    width: min(100%, 620px);
  }

  .phone-stack {
    left: 0;
  }

  .today-card {
    right: 0;
  }

  .feature-grid,
  .feature-row,
  .steps,
  .screenshots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .handoff-strip {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .feature-card {
    min-height: 0;
  }

  .cta-section,
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    justify-items: center;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header[data-nav-open="true"] .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  h1 {
    font-size: 2.12rem;
    line-height: 1.03;
  }

  h2 {
    font-size: 2rem;
  }

  .section,
  .hero,
  .page-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .feature-row,
  .steps,
  .screenshots {
    grid-template-columns: 1fr;
  }

  .care-dashboard {
    display: grid;
    gap: 0;
    min-height: 0;
  }

  .phone-stack {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 196px;
  }

  .phone {
    width: 112px;
  }

  .phone-front {
    top: 22px;
    left: 16px;
  }

  .phone-back {
    top: 4px;
    left: 126px;
  }

  .today-card {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    padding: 16px;
    margin-top: -24px;
  }

  .today-card h2 {
    margin-bottom: 10px;
    font-size: 1.05rem;
  }

  .today-card .dose-row:last-child {
    display: none;
  }

  .dose-row {
    padding: 8px 0;
  }

  .hero-text {
    font-size: 1rem;
  }

  .caregiver-stack {
    margin-top: 18px;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 18px;
  }

  .app-store-link img {
    width: 156px;
  }

  .screenshots img:nth-child(2) {
    margin-top: 0;
  }
}
