/* MediSoft.Solutions — design tokens (hub + produtos) */
:root {
  --navy: #0b1f3a;
  --navy-2: #122b4a;
  --ink: #0e2439;
  --muted: #5a6f86;
  --paper: #f5f8fc;
  --paper-2: #e8eef5;
  --white: #ffffff;
  --teal: #00a8c5;
  --teal-2: #2ec4b6;
  --cyan-glow: #3dd6f5;
  --violet: #6b5ce7;
  --line: rgba(11, 31, 58, 0.1);
  --shadow: 0 20px 50px rgba(11, 31, 58, 0.1);
  --radius: 1rem;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Outfit", system-ui, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(0, 168, 197, 0.14) 0%, transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(107, 92, 231, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  min-height: 100vh;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--teal); }

.wrap {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(245, 248, 252, 0.86);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand-text { line-height: 1.1; }
.brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}
.nav a:hover { color: var(--navy); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #0088a8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 168, 197, 0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(0, 168, 197, 0.45); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--navy); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.88rem; }

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 1rem;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-badge {
  width: min(100%, 380px);
  filter: drop-shadow(0 24px 48px rgba(11, 31, 58, 0.18));
  animation: float-soft 5.5s ease-in-out infinite;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* —— Sections —— */
.section { padding: 3.75rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0.65rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* —— Product cards (hub) —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.product-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(11, 31, 58, 0.14);
}
.product-card img.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.product-card img.mascot {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.product-card h3 {
  font-family: var(--display);
  margin: 0;
  font-size: 1.55rem;
  color: var(--navy);
}
.product-card p { margin: 0; color: var(--muted); }
.product-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.product-card .actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.5rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 168, 197, 0.12);
  color: #067a8f;
}
.tag-soon {
  background: rgba(107, 92, 231, 0.12);
  color: var(--violet);
}

/* —— Metrics —— */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.metric {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  text-align: center;
}
.metric strong {
  display: block;
  font-family: var(--display);
  font-size: 1.65rem;
  margin-bottom: 0.25rem;
}
.metric span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }

/* —— Feature tabs —— */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--navy); border-color: var(--teal); }
.tab[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.panel.is-active { display: grid; }
.panel h3 {
  font-family: var(--display);
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1.45rem;
}
.panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.panel li + li { margin-top: 0.45rem; }
.mock {
  background:
    linear-gradient(145deg, rgba(0, 168, 197, 0.18), rgba(107, 92, 231, 0.16)),
    var(--navy-2);
  border-radius: 1rem;
  min-height: 240px;
  padding: 1.25rem;
  color: #e8f7fb;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mock-bar {
  height: 10px;
  width: 42%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}
.mock-row {
  height: 36px;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
}
.mock-row.wide { width: 100%; }
.mock-row.mid { width: 78%; }
.mock-row.short { width: 55%; }
.mock-label {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: auto;
}
.shot {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--navy-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top left;
}
.shot figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.65rem 0.85rem 0.85rem;
  background: rgba(255, 255, 255, 0.55);
}

/* —— Personas / ecosystem —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.35rem;
}
.card h3 {
  font-family: var(--display);
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: rgba(0, 168, 197, 0.12);
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

/* —— Pricing —— */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.price-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}
.price-card.featured {
  border-color: rgba(0, 168, 197, 0.45);
  box-shadow: 0 16px 40px rgba(0, 168, 197, 0.12);
  background: rgba(255, 255, 255, 0.92);
}
.price-badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}
.price-badge.accent {
  background: linear-gradient(135deg, var(--teal), #0088a8);
}
.price-card h3 {
  font-family: var(--display);
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
}
.price-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.amount {
  font-family: var(--display);
  font-size: 1.85rem;
  color: var(--navy);
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
}
.amount-unit {
  display: block;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.2rem;
}
.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.price-card li + li { margin-top: 0.35rem; }
.price-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.price-card .btn { margin-top: 0.5rem; width: 100%; }

/* —— CTA banner —— */
.cta-banner {
  background:
    radial-gradient(600px 280px at 90% 20%, rgba(61, 214, 245, 0.25), transparent 60%),
    linear-gradient(135deg, var(--navy), #163a63);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow);
}
.cta-banner h2 {
  font-family: var(--display);
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.cta-banner p { margin: 0; color: rgba(255, 255, 255, 0.78); max-width: 32rem; }
.cta-banner .btn-primary { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

/* —— Footer —— */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--teal); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* —— Vaccine page —— */
.vaccine-hero {
  text-align: center;
  padding: 4rem 0 3rem;
}
.vaccine-hero img {
  width: min(280px, 70vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 20px 40px rgba(11, 31, 58, 0.2));
}
.vaccine-hero .lede { margin-inline: auto; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .panel.is-active,
  .product-grid,
  .card-grid,
  .metrics,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .panel.is-active { gap: 1.25rem; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 1.75rem, var(--max)); }
  .nav a:not(.btn) { display: none; }
  .brand-text small { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .cta-banner { text-align: center; justify-content: center; }
  .cta-banner .cta-row { justify-content: center; }
}
