:root {
  --altmed-navy: #00306a;
  --altmed-navy-2: #061a35;
  --altmed-teal: #039c88;
  --altmed-teal-2: #1bc986;
  --altmed-yellow: #ffc308;
  --altmed-purple: #6e35a0;
  --altmed-ink: #10243f;
  --altmed-muted: #5d7088;
  --altmed-surface: #ffffff;
  --altmed-soft: #eefaf8;
  --altmed-line: rgba(3, 156, 136, 0.18);
  --altmed-shadow: 0 26px 70px rgba(0, 48, 106, 0.14);
}

.altmed-page {
  --background-color: #f7fcfb;
  --default-color: var(--altmed-muted);
  --heading-color: var(--altmed-ink);
  --accent-color: var(--altmed-teal);
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: rgba(16, 36, 63, 0.78);
  --nav-hover-color: var(--altmed-teal);
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-color: var(--altmed-ink);
  --nav-dropdown-hover-color: var(--altmed-teal);
  background:
    radial-gradient(circle at 8% 8%, rgba(3, 156, 136, 0.13), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(255, 195, 8, 0.14), transparent 22%),
    linear-gradient(180deg, #f7fcfb 0%, #ffffff 48%, #f1fbf8 100%);
}

.altmed-page .header {
  --background-color: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(3, 156, 136, 0.08);
}

.scrolled.altmed-page .header {
  --background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(0, 48, 106, 0.09);
}

.altmed-page .header .logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(156px, 14vw, 210px);
  height: 72px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(3, 156, 136, 0.12);
}

.altmed-page .site-brand-mark--altmed {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: translate(-50%, -50%) scale(2.35);
  transform-origin: center;
  filter: drop-shadow(0 12px 20px rgba(0, 48, 106, 0.08));
}

.altmed-page .navmenu .nav-cta a,
.footer-altmed .footer-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--altmed-teal), var(--altmed-teal-2));
  color: #fff;
  box-shadow: 0 16px 34px rgba(3, 156, 136, 0.24);
}

.altmed-page .navmenu .nav-cta a:hover,
.footer-altmed .footer-cta-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.altmed-main {
  overflow: hidden;
}

.altmed-main section,
.altmed-main .section {
  padding-top: clamp(76px, 8vw, 112px);
  padding-bottom: clamp(76px, 8vw, 112px);
}

.altmed-main h1,
.altmed-main h2,
.altmed-main h3 {
  color: var(--altmed-ink);
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0;
}

.altmed-main p {
  color: var(--altmed-muted);
  line-height: 1.72;
}

.altmed-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(3, 156, 136, 0.1);
  border: 1px solid rgba(3, 156, 136, 0.2);
  color: var(--altmed-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.altmed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 15px;
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.altmed-btn:hover {
  transform: translateY(-2px);
}

.altmed-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--altmed-teal), var(--altmed-teal-2));
  box-shadow: 0 22px 48px rgba(3, 156, 136, 0.26);
}

.altmed-btn--primary:hover {
  color: #fff;
}

.altmed-btn--secondary,
.altmed-btn--ghost {
  color: var(--altmed-navy);
  border: 1px solid rgba(0, 48, 106, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.altmed-btn--secondary:hover,
.altmed-btn--ghost:hover {
  color: var(--altmed-teal);
  border-color: rgba(3, 156, 136, 0.32);
  background: #ffffff;
}

.altmed-hero {
  position: relative;
  padding-top: 164px !important;
  isolation: isolate;
}

.altmed-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 48, 106, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 48, 106, 0.035) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, #000 10%, transparent 92%);
}

.altmed-hero__content h1 {
  max-width: 11ch;
  margin: 24px 0 20px;
  font-size: clamp(3rem, 5.8vw, 5.65rem);
  line-height: 0.96;
}

.altmed-hero__lead {
  max-width: 62ch;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.altmed-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 26px;
}

.altmed-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.altmed-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--altmed-ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(3, 156, 136, 0.12);
  font-size: 0.88rem;
  font-weight: 700;
}

.altmed-proof-row i {
  color: var(--altmed-teal);
}

.altmed-product-card,
.altmed-feature-card,
.altmed-record-panel,
.altmed-specialty-grid article,
.altmed-flow-grid article,
.altmed-final-cta__shell {
  border: 1px solid rgba(3, 156, 136, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--altmed-shadow);
}

.altmed-product-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 34px;
}

.altmed-product-card:before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 195, 8, 0.28), transparent 68%);
  filter: blur(4px);
}

.altmed-product-card__top,
.altmed-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.altmed-product-card__top {
  margin-bottom: 18px;
}

.altmed-product-card__top img {
  width: 142px;
  height: auto;
}

.altmed-product-card__top span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(3, 156, 136, 0.12);
  color: var(--altmed-teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.altmed-dashboard-preview {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8fffd, #eefaf8);
  border: 1px solid rgba(0, 48, 106, 0.08);
}

.altmed-dashboard-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(0, 48, 106, 0.08);
}

.altmed-dashboard-preview__header strong {
  color: var(--altmed-ink);
}

.altmed-dashboard-preview__header small,
.altmed-schedule-list small,
.altmed-product-card__footer span {
  color: var(--altmed-muted);
}

.altmed-schedule-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.altmed-schedule-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 48, 106, 0.08);
  animation: altmedFloat 5s ease-in-out infinite;
}

.altmed-schedule-list article:nth-child(2) {
  animation-delay: 0.35s;
}

.altmed-schedule-list article:nth-child(3) {
  animation-delay: 0.7s;
}

.altmed-schedule-list i {
  color: var(--altmed-teal);
  font-size: 1.4rem;
}

.altmed-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  border-radius: 12px;
  color: var(--altmed-navy);
  background: rgba(255, 195, 8, 0.18);
  font-weight: 900;
}

.altmed-product-card__footer {
  margin-top: 18px;
}

.altmed-product-card__footer article {
  flex: 1;
  min-height: 104px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(0, 48, 106, 0.04);
  border: 1px solid rgba(0, 48, 106, 0.07);
}

.altmed-product-card__footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--altmed-ink);
}

.altmed-section-heading {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center;
}

.altmed-section-heading--left {
  margin-left: 0;
  text-align: left;
}

.altmed-section-heading h2 {
  margin: 20px 0 16px;
  font-size: clamp(2.1rem, 4.2vw, 3.55rem);
  line-height: 1.04;
}

.altmed-section-heading p {
  max-width: 64ch;
  margin-right: auto;
  margin-left: auto;
  font-size: 1rem;
}

.altmed-section-heading--left p {
  margin-left: 0;
}

.altmed-system,
.altmed-specialties {
  background:
    radial-gradient(circle at 85% 10%, rgba(3, 156, 136, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(238, 250, 248, 0.42));
}

.altmed-feature-card {
  height: 100%;
  padding: 26px;
  border-radius: 26px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.altmed-feature-card:hover,
.altmed-specialty-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(3, 156, 136, 0.28);
}

.altmed-feature-card i,
.altmed-specialty-grid i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(3, 156, 136, 0.14), rgba(255, 195, 8, 0.18));
  color: var(--altmed-teal);
  font-size: 1.35rem;
}

.altmed-feature-card h3,
.altmed-flow-grid h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.altmed-feature-card p,
.altmed-flow-grid p {
  margin-bottom: 0;
}

.altmed-workflow {
  background: linear-gradient(180deg, #ffffff, #f4fcfa);
}

.altmed-check-list {
  display: grid;
  gap: 14px;
}

.altmed-check-list article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(3, 156, 136, 0.12);
  color: var(--altmed-ink);
  font-weight: 700;
}

.altmed-check-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(3, 156, 136, 0.12);
  color: var(--altmed-teal);
}

.altmed-record-panel {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
}

.altmed-record-panel__sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 20px;
  background: linear-gradient(180deg, var(--altmed-navy), var(--altmed-navy-2));
}

.altmed-record-panel__sidebar span {
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.altmed-record-panel__sidebar span:first-child {
  background: var(--altmed-teal);
}

.altmed-record-panel__content {
  padding: clamp(24px, 4vw, 40px);
}

.altmed-record-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.altmed-record-panel__title span {
  color: var(--altmed-teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.altmed-record-panel__title strong {
  color: var(--altmed-ink);
}

.altmed-form-lines {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.altmed-form-lines span {
  display: block;
  width: 64%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(3, 156, 136, 0.16), rgba(0, 48, 106, 0.07));
}

.altmed-form-lines .wide {
  width: 100%;
}

.altmed-form-lines .medium {
  width: 82%;
}

.altmed-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.altmed-mini-grid article {
  padding: 18px;
  border-radius: 20px;
  background: var(--altmed-soft);
  border: 1px solid rgba(3, 156, 136, 0.12);
}

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

.altmed-mini-grid strong {
  color: var(--altmed-teal);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.altmed-mini-grid span {
  margin-top: 8px;
  color: var(--altmed-ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.altmed-record-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  color: var(--altmed-ink);
  background: rgba(255, 195, 8, 0.16);
  border: 1px solid rgba(255, 195, 8, 0.28);
  font-weight: 700;
}

.altmed-record-note i {
  color: var(--altmed-purple);
  font-size: 1.35rem;
}

.altmed-specialty-grid,
.altmed-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.altmed-specialty-grid article {
  min-height: 260px;
  padding: 26px;
  border-radius: 26px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

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

.altmed-specialty-grid strong {
  margin-bottom: 10px;
  color: var(--altmed-ink);
  font-size: 1.1rem;
}

.altmed-specialty-grid span {
  color: var(--altmed-muted);
  line-height: 1.65;
}

.altmed-flow {
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 195, 8, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff, #f7fcfb);
}

.altmed-flow-grid article {
  position: relative;
  padding: 26px;
  border-radius: 26px;
}

.altmed-flow-grid article:before {
  content: "";
  position: absolute;
  top: 50px;
  left: 82px;
  right: -28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(3, 156, 136, 0.44), transparent);
}

.altmed-flow-grid article:last-child:before {
  display: none;
}

.altmed-flow-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--altmed-navy), var(--altmed-teal));
  font-weight: 900;
}

.altmed-final-cta {
  padding-top: 42px !important;
}

.altmed-final-cta__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 195, 8, 0.24), transparent 28%),
    linear-gradient(135deg, var(--altmed-navy), var(--altmed-navy-2));
}

.altmed-final-cta__shell h2 {
  max-width: 760px;
  margin: 20px 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.04;
}

.altmed-final-cta__shell p {
  max-width: 62ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.altmed-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-altmed {
  --background-color: #061a35;
  --default-color: rgba(255, 255, 255, 0.72);
  --heading-color: #ffffff;
  --accent-color: var(--altmed-teal-2);
  background:
    radial-gradient(circle at top right, rgba(3, 156, 136, 0.2), transparent 24%),
    linear-gradient(180deg, #061a35 0%, #031126 100%);
}

.footer-altmed .footer-about .logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 86px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(3, 156, 136, 0.16);
}

.footer-brand-altmed {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: translate(-50%, -50%) scale(2.35);
}

@keyframes altmedFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .altmed-schedule-list article,
  .altmed-btn,
  .altmed-feature-card,
  .altmed-specialty-grid article {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1199px) {
  .altmed-specialty-grid,
  .altmed-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .altmed-flow-grid article:before {
    display: none;
  }
}

@media (max-width: 991px) {
  .altmed-hero {
    padding-top: 136px !important;
  }

  .altmed-hero__content,
  .altmed-section-heading--left {
    text-align: center;
  }

  .altmed-hero__content h1,
  .altmed-hero__lead,
  .altmed-section-heading--left,
  .altmed-section-heading--left p {
    margin-right: auto;
    margin-left: auto;
  }

  .altmed-hero__actions,
  .altmed-proof-row,
  .altmed-final-cta__actions {
    justify-content: center;
  }

  .altmed-final-cta__shell {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .altmed-main section,
  .altmed-main .section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .altmed-hero {
    padding-top: 122px !important;
  }

  .altmed-hero__content h1 {
    max-width: none;
    font-size: clamp(2.55rem, 13vw, 3.6rem);
  }

  .altmed-hero__actions,
  .altmed-final-cta__actions {
    display: grid;
    width: 100%;
  }

  .altmed-btn {
    width: 100%;
  }

  .altmed-product-card__footer,
  .altmed-record-panel__title {
    flex-direction: column;
    align-items: flex-start;
  }

  .altmed-schedule-list article {
    grid-template-columns: 1fr;
  }

  .altmed-record-panel {
    grid-template-columns: 1fr;
  }

  .altmed-record-panel__sidebar {
    grid-template-columns: repeat(4, 1fr);
    padding: 16px;
  }

  .altmed-record-panel__sidebar span {
    height: 12px;
  }

  .altmed-mini-grid,
  .altmed-specialty-grid,
  .altmed-flow-grid {
    grid-template-columns: 1fr;
  }

  .altmed-page .site-brand-mark--altmed {
    width: 74px;
    height: 74px;
    transform: translate(-50%, -50%) scale(2.28);
  }
}

@media (max-width: 420px) {
  .altmed-product-card,
  .altmed-feature-card,
  .altmed-record-panel,
  .altmed-specialty-grid article,
  .altmed-flow-grid article,
  .altmed-final-cta__shell {
    border-radius: 22px;
  }
}
