:root {
  --bg: #f7f8f4;
  --band: #eef3ed;
  --surface: rgba(255, 255, 252, 0.92);
  --surface-strong: #ffffff;
  --ink: #17221f;
  --muted: #62716d;
  --line: rgba(23, 34, 31, 0.12);
  --eucalyptus: #53766b;
  --eucalyptus-deep: #213f38;
  --gold: #b08a54;
  --coral: #c97967;
  --graphite: #2b302f;
  --shadow: 0 18px 50px rgba(27, 45, 40, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(247, 248, 244, 0.96), rgba(236, 242, 237, 0.92)),
    repeating-linear-gradient(90deg, rgba(83, 118, 107, 0.04) 0 1px, transparent 1px 88px);
  font-family: "Segoe UI Variable", "Segoe UI", "Aptos", sans-serif;
  line-height: 1.5;
}

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

.shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.8rem 0;
  background: rgba(248, 249, 245, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell,
.site-nav,
.brand,
.hero-actions,
.card-footer,
.footer-grid,
.dashboard-grid,
.order-row,
.split-heading,
.portal-grid {
  display: flex;
  align-items: center;
}

.nav-shell,
.card-footer,
.footer-grid,
.dashboard-grid,
.order-row,
.split-heading,
.portal-grid {
  justify-content: space-between;
}

.brand {
  min-width: 0;
  gap: 0.85rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--eucalyptus-deep), var(--gold));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong,
h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-copy strong {
  overflow-wrap: anywhere;
}

.brand-copy small,
.hero-text,
.site-footer p,
.dashboard-card p,
.product-card p,
.status-card p,
.auth-card p,
.purchase-card p,
.section-heading p,
.care-story p,
.trust-grid p {
  color: var(--muted);
}

.site-nav {
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a:not(.primary-button),
.site-nav button {
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav .is-active {
  color: var(--ink);
}

.primary-button,
.secondary-button,
.ghost-button,
.text-link,
button,
input {
  font: inherit;
}

.primary-button,
.secondary-button,
.ghost-button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.78rem 1.1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--eucalyptus-deep), #446d62);
  box-shadow: 0 12px 26px rgba(33, 63, 56, 0.2);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.74);
}

.ghost-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
button:hover {
  transform: translateY(-1px);
}

.text-link {
  color: var(--eucalyptus-deep);
  border-bottom: 1px solid rgba(33, 63, 56, 0.35);
}

.hero {
  position: relative;
  overflow: clip;
}

.hero-luxury {
  min-height: calc(88svh - 4.8rem);
  display: grid;
  align-items: end;
  padding: 6rem 0 5rem;
  color: white;
  background: var(--graphite);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/images/luxury-preventive-care.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(20, 31, 28, 0.82) 0%, rgba(20, 31, 28, 0.62) 38%, rgba(20, 31, 28, 0.16) 74%),
    linear-gradient(0deg, rgba(20, 31, 28, 0.66) 0%, rgba(20, 31, 28, 0.08) 45%);
}

.hero-content {
  position: relative;
  max-width: 1160px;
}

.hero-copy h1,
.hero-content h1,
.section-heading h1,
.section-heading h2,
.product-hero h1,
.auth-card h1,
.dashboard-panel h1,
.status-card h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 1;
}

.hero-content h1 {
  max-width: 11ch;
}

.hero-text,
.lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.hero-luxury .hero-text {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  justify-content: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-luxury .eyebrow {
  color: #e7ceb0;
}

.trust-band {
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-grid article {
  min-height: 10rem;
  padding: 1.35rem;
  background: var(--surface-strong);
}

.trust-grid span {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
}

.trust-grid strong {
  display: block;
  font-size: 1.05rem;
}

.section {
  padding: 4.5rem 0;
}

.section-heading {
  margin-bottom: 1.6rem;
}

.split-heading {
  gap: 1.5rem;
  align-items: end;
}

.split-heading > div {
  max-width: 42rem;
}

.split-heading > p {
  max-width: 28rem;
  margin: 0 0 0.3rem;
}

.section-heading.compact h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.eyebrow,
.kicker {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--eucalyptus);
}

.care-section {
  padding-bottom: 3.5rem;
}

.care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.care-story,
.lab-panel,
.product-card,
.purchase-card,
.auth-card,
.dashboard-card,
.status-card,
.dashboard-panel,
.product-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.care-story {
  min-height: 22rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  color: white;
  background:
    linear-gradient(135deg, rgba(33, 63, 56, 0.94), rgba(83, 118, 107, 0.82)),
    linear-gradient(45deg, rgba(176, 138, 84, 0.26), transparent);
}

.care-story p {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.78);
}

.care-story h3 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
}

.lab-panel {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1.1rem;
}

.panel-row,
.mini-product-list a,
.order-row,
.status-detail {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.panel-row span {
  color: var(--muted);
}

.panel-row strong {
  color: var(--eucalyptus-deep);
}

.product-band {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #edf3ef, #f8f7f0);
  border-block: 1px solid var(--line);
}

.hero-panel,
.product-grid,
.mini-product-list,
.order-list {
  display: grid;
  gap: 1rem;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
}

.product-card::before,
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.32rem;
  background: var(--accent, var(--eucalyptus));
}

.product-card h2,
.product-card h3 {
  font-size: 1.55rem;
  line-height: 1.08;
}

.badge {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--eucalyptus-deep);
  background: rgba(83, 118, 107, 0.11);
}

.card-footer {
  gap: 1rem;
  margin-top: 1.3rem;
  align-items: end;
}

.card-footer a {
  color: var(--eucalyptus-deep);
  font-weight: 600;
}

.portal-preview {
  padding-top: 4rem;
}

.portal-grid {
  gap: 1rem;
  align-items: stretch;
}

.portal-grid > * {
  flex: 1 1 0;
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(176, 138, 84, 0.12), rgba(255, 255, 255, 0.94)),
    var(--surface-strong);
}

.product-layout,
.dashboard-layout {
  display: grid;
  gap: 1.5rem;
}

.product-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.product-hero {
  position: relative;
  min-height: 28rem;
  padding: 2rem;
}

.purchase-card {
  position: sticky;
  top: 6.4rem;
}

.price {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 2rem;
}

.auth-shell,
.status-shell {
  display: grid;
  place-items: center;
}

.auth-card,
.status-card,
.purchase-card,
.dashboard-card,
.dashboard-panel {
  padding: 1.5rem;
}

.auth-card,
.status-card {
  width: min(100%, 34rem);
}

.stack-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

label {
  font-size: 0.95rem;
}

input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.inline-form {
  margin: 0;
}

.message {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: var(--radius);
}

.error-message,
.status-card.error {
  background: rgba(139, 45, 45, 0.09);
  border: 1px solid rgba(139, 45, 45, 0.18);
}

.status-card.success {
  background: rgba(31, 122, 87, 0.09);
  border: 1px solid rgba(31, 122, 87, 0.18);
}

.dashboard-grid {
  align-items: start;
  gap: 1.5rem;
}

.dashboard-grid > * {
  flex: 1 1 0;
}

.order-list {
  margin-top: 1rem;
}

.site-footer {
  padding: 0 0 3rem;
}

.footer-grid {
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

@media (max-width: 900px) {
  .nav-shell,
  .site-nav,
  .dashboard-grid,
  .footer-grid,
  .split-heading,
  .portal-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-luxury {
    min-height: 74svh;
    padding: 4rem 0 3.5rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(20, 31, 28, 0.88), rgba(20, 31, 28, 0.48)),
      linear-gradient(0deg, rgba(20, 31, 28, 0.72), rgba(20, 31, 28, 0.14));
  }

  .trust-grid,
  .care-grid,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .purchase-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1rem, 1160px);
  }

  .brand-copy small {
    display: none;
  }

  .nav-cta {
    width: 100%;
  }

  .hero-content h1 {
    max-width: 9ch;
  }

  .hero-actions > * {
    width: 100%;
  }

  .section,
  .product-band {
    padding-block: 3rem;
  }

  .card-footer,
  .panel-row,
  .mini-product-list a,
  .order-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
