/* Rosegard Health — company site
   Visual direction: clinical precision, cool paper, deep ink teal.
   Avoids generic AI-SaaS patterns (purple gradients, glow, pill clusters). */

:root {
  --ink: #062e30;
  --ink-soft: #1a4042;
  --teal: #1a6b63;
  --teal-bright: #2ab5a0;
  --gold: #c9a24c;
  --gold-bright: #e4c77e;
  --cream: #f5f2e9;
  --sage: #b9c9c2;
  --sage-muted: #9db3ab;
  --paper: #f7f6f2;
  --paper-deep: #ebe8e0;
  --white: #ffffff;
  --line: #d7d4cb;
  --muted: #5f6f6c;
  --danger-soft: #eef6f4;
  --max: 1280px;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(6, 46, 48, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled {
  background: rgba(6, 46, 48, 0.95);
}

.header-inner,
.section-inner,
.footer-inner,
.legal-inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--cream);
}

.brand-logo {
  height: 2.5rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--sage-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.nav a:hover {
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 76, 0.12), transparent 62%),
    radial-gradient(ellipse at bottom left, rgba(42, 181, 160, 0.08), transparent 55%);
  z-index: -1;
  pointer-events: none;
}

.hero-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  padding: 3.25rem 0 0.5rem;
}

.hero-logo {
  display: block;
  width: clamp(20rem, 72vw, 48rem);
  height: auto;
  max-width: 100%;
  user-select: none;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  padding: 1.75rem 0 4.5rem;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--sage);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-eyebrow span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 22ch;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}

.hero-inner > p:not(.hero-eyebrow) {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--sage);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero .btn-ghost {
  border-color: transparent;
  color: var(--sage);
}

.hero .btn-ghost:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 42rem;
  color: #7f9a92;
  font-size: 0.8rem;
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 28ch;
}

.section .lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.company-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 860px) {
  .company-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.prose-block p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.fact dt {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.approach {
  background: var(--white);
}

.approach-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .approach-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.approach-list li {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.approach-list h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.approach-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Product — interaction container, not decorative card clutter */
.product {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .product {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
  }
}

.product-status {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.product h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 450;
  letter-spacing: -0.02em;
}

.product .tagline {
  margin: 0 0 1rem;
  color: var(--muted);
}

.product ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.product li + li {
  margin-top: 0.4rem;
}

.product-aside {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--danger-soft);
  border-left: 3px solid var(--teal);
}

.product-aside p {
  margin: 0;
  color: var(--ink-soft);
}

.product-aside strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.trust-row {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .trust-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-top: none;
}

.cta-band .section-kicker {
  color: var(--gold);
}

.cta-band h2 {
  color: var(--cream);
  max-width: 22ch;
}

.cta-band .lead {
  color: var(--sage);
}

.cta-band .hero-actions {
  margin-top: 2rem;
  margin-bottom: 0;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--cream);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.site-footer {
  padding: 3rem 0 2.25rem;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-brand img {
  width: 1.5rem;
  height: 1.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Legal pages */
.legal-page {
  background: var(--white);
  min-height: 100vh;
}

.legal-header {
  background: var(--paper) !important;
  border-bottom: 1px solid var(--line);
}

.legal-header .brand {
  color: var(--ink);
  gap: 0.65rem;
}

.legal-header .brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
}

.legal-header .brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-header .brand-name span {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.25rem;
}

.legal-header .btn-ghost {
  color: var(--ink-soft);
  border-color: var(--line);
}

.legal-main {
  padding: 3rem 0 4rem;
}

.legal-main h1 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 450;
}

.legal-meta {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.sms-callout {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  background: var(--danger-soft);
  border-left: 3px solid var(--teal);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.legal-content section {
  margin: 0 0 1.75rem;
}

.legal-content h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: none;
}

.legal-content h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal-content ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.2rem;
}

.legal-content li + li {
  margin-top: 0.3rem;
}

@media (max-width: 720px) {
  .nav-desktop {
    display: none;
  }

  .hero-banner {
    padding-top: 2.25rem;
  }

  .hero-logo {
    width: clamp(17rem, 92vw, 28rem);
  }

  .hero-inner {
    padding: 1.25rem 0 3rem;
  }

  .hero h1 {
    max-width: none;
  }

  .brand-logo {
    height: 1.9rem;
  }
}
