/* HeyMed (heymed.app) — peach medical OS landing */
:root {
  --ink: #1c1917;
  --muted: #78716c;
  --line: #fed7aa;
  --page: #fff7ed;
  --page2: #ffedd5;
  --card: #ffffff;
  --peach: #f5842b;
  --peach-deep: #d9661a;
  --peach-soft: #fff4eb;
  --teal: #0f6f68;
  --sans: "Source Sans 3", "Liberation Sans", ui-sans-serif, system-ui, sans-serif;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --shadow: 0 22px 50px -30px rgba(124, 45, 18, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hm {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(245, 132, 43, 0.22), transparent 55%),
    radial-gradient(800px 420px at 92% 8%, rgba(15, 111, 104, 0.1), transparent 50%),
    linear-gradient(180deg, var(--page), var(--page2) 48%, var(--page));
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.hm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 247, 237, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(254, 215, 170, 0.7);
}
.hm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.hm-brand img { width: 40px; height: 40px; border-radius: 50%; }
.hm-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hm-nav a.ghost {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--peach-deep);
}
.hm-nav a.ghost:hover { background: var(--peach-soft); }
.hm-nav a.primary {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: var(--peach-deep);
  border: 1.5px solid var(--peach-deep);
}
.hm-nav a.primary:hover { filter: brightness(1.05); }

.hm-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hm-hero-media {
  position: absolute;
  inset: 0;
}
.hm-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hm-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 25, 23, 0.15) 0%, rgba(28, 25, 23, 0.55) 55%, rgba(28, 25, 23, 0.78) 100%);
}
.hm-hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 40px) clamp(36px, 7vw, 72px);
  max-width: 720px;
  color: #fff;
}
.hm-hero-copy .kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdba74;
}
.hm-hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hm-hero-copy .lede {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48ch;
}
.hm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hm-hero-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 1.5px solid transparent;
}
.hm-hero-cta .btn.primary {
  background: var(--peach);
  border-color: var(--peach);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(194, 65, 12, 0.9);
}
.hm-hero-cta .btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.hm-hero-cta .btn.ghost:hover { background: rgba(255, 255, 255, 0.22); }

.hm-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.hm-section {
  padding: clamp(48px, 8vw, 88px) 0;
}
.hm-section h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hm-section .sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.45;
}

.hm-features {
  display: grid;
  gap: 28px;
}
.hm-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}
.hm-feature:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.hm-feature:nth-child(even) .hm-feature-copy { order: 2; }
.hm-feature:nth-child(even) .hm-feature-art { order: 1; }
.hm-feature-art {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
  aspect-ratio: 4 / 3;
}
.hm-feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hm-feature-copy h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.hm-feature-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1.02rem;
}

.hm-clinic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow);
}
.hm-clinic-art {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.hm-clinic-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hm-clinic-copy .helper {
  width: 88px;
  height: 88px;
  margin-bottom: 12px;
}
.hm-clinic-copy ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hm-clinic-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 650;
  font-size: 15px;
}
.hm-clinic-copy li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--peach);
  flex: 0 0 auto;
}

.hm-cta {
  text-align: center;
  padding: clamp(40px, 7vw, 72px) clamp(16px, 4vw, 32px);
  border-radius: 28px;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(245, 132, 43, 0.2), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hm-cta h2 { margin-bottom: 8px; }
.hm-cta .sub { margin-left: auto; margin-right: auto; }
.hm-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.hm-cta .btn {
  display: inline-flex;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 1.5px solid var(--peach);
}
.hm-cta .btn.primary {
  background: var(--peach-deep);
  border-color: var(--peach-deep);
  color: #fff;
}
.hm-cta .btn.outline {
  background: #fff;
  color: var(--peach-deep);
}
.hm-cta .btn.disabled,
.hm-cta .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.hm-float {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vh, 28px);
  z-index: 15;
  width: 92px;
  pointer-events: none;
}
.hm-float img {
  width: 100%;
  filter: drop-shadow(0 12px 24px rgba(124, 45, 18, 0.28));
  animation: hm-bob 3.2s ease-in-out infinite;
}
@keyframes hm-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-float img { animation: none; }
}

.hm-foot {
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.hm-foot a { color: var(--peach-deep); font-weight: 700; }

@media (max-width: 860px) {
  .hm-feature,
  .hm-feature:nth-child(even),
  .hm-clinic {
    grid-template-columns: 1fr;
  }
  .hm-feature:nth-child(even) .hm-feature-copy,
  .hm-feature:nth-child(even) .hm-feature-art { order: unset; }
  .hm-hero { min-height: min(78vh, 640px); }
}
