/* Medicinia site. Identity: navy leads, pale blue content background, white only for cards.
   Spectrum colors carry fixed meanings (see :root). */
@font-face { font-family: "Outfit"; src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #16233F;
  --navy-2: #1F3157;
  --blue: #0078C0;
  --blue-dark: #005F99;
  --mist: #E9F3F8;
  --white: #FFFFFF;
  --ink: #16233F;
  --muted: #4A5A75;
  --on-navy-muted: #C7D6E6;
  --line: #CFE0EA;
  /* spectrum */
  --patient: #48A890;
  --outcomes: #0078C0;
  --costs: #F0C048;
  --costeff: #903078;
  --data: #60C0D8;
  --hospital: #307878;
  --payer: #F07840;
  --industry: #C03048;
  --stripe: linear-gradient(90deg, var(--data) 0 12.5%, var(--patient) 0 25%, var(--hospital) 0 37.5%, var(--outcomes) 0 50%, var(--costeff) 0 62.5%, var(--industry) 0 75%, var(--payer) 0 87.5%, var(--costs) 0 100%);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: "Inter", Arial, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Outfit", Arial, sans-serif; line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.stripe { height: 6px; background: var(--stripe); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--costs); outline-offset: 3px; border-radius: 4px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header .logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--on-navy-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--white); }
.btn { display: inline-block; border-radius: 999px; padding: 12px 24px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-amber { background: var(--costs); color: #33260A; }
.btn-amber:hover { background: #F6CF6A; }
.btn-ghost { border: 1.5px solid var(--on-navy-muted); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.nav .btn { padding: 8px 18px; font-size: 15px; background: var(--blue); color: var(--white); }
.nav .btn:hover { background: #1689CF; color: var(--white); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 104px; }
.hero-text { max-width: 600px; position: relative; z-index: 2; }
.eyebrow { font-family: "Outfit", Arial, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--data); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 600; }
.hero .lead { margin-top: 22px; font-size: 19px; color: var(--on-navy-muted); max-width: 520px; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.rings { position: absolute; right: -90px; top: -60px; width: 640px; height: 640px; z-index: 1; }

/* sections */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { font-family: "Outfit", Arial, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .04em; color: var(--blue-dark); margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.card { background: var(--white); border-radius: 14px; padding: 28px; }
.card h3 { font-size: 21px; }
.card p, .card li { color: var(--muted); font-size: 16px; }
.card p { margin-top: 10px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* stats */
.stats { padding: 0; margin-top: -44px; position: relative; z-index: 3; }
.stats .grid-3 { background: var(--white); border-radius: 14px; padding: 28px 12px; box-shadow: 0 10px 30px rgba(22, 35, 63, .10); gap: 0; }
.stat { text-align: center; padding: 4px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: "Outfit", Arial, sans-serif; font-size: 38px; font-weight: 600; line-height: 1.1; color: var(--navy); }
.stat span { color: var(--muted); font-size: 15px; }

/* problem */
.problem { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.problem .statement { font-size: 20px; color: var(--muted); margin-top: 18px; }
.problem .statement strong { display: block; margin-top: 14px; color: var(--blue-dark); font-weight: 600; }
.num-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.num-list li { background: var(--white); border-radius: 14px; padding: 20px 24px; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: center; }
.num-list .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-family: "Outfit", Arial, sans-serif; font-weight: 600; font-size: 19px; }
.num-list h3 { font-size: 18px; }
.num-list p { color: var(--muted); font-size: 15.5px; margin-top: 2px; }

/* competences */
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 22px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.bridge { margin-top: 28px; font-family: "Outfit", Arial, sans-serif; font-size: 21px; font-weight: 600; color: var(--navy); }
.card.top { border-top: 6px solid var(--c, var(--blue)); border-radius: 0 0 14px 14px; }

/* flow */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.flow .card { position: relative; }
.flow .card + .card::before { content: ""; position: absolute; left: -27px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--costs); clip-path: polygon(0 28%, 55% 28%, 55% 0, 100% 50%, 55% 100%, 55% 72%, 0 72%); }
.flow .card.dark { background: var(--navy); }
.flow .card.dark h3 { color: var(--white); }
.flow .card.dark li { color: var(--on-navy-muted); }
.flow h3 { font-size: 19px; color: var(--blue-dark); }
.flow ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.note { margin-top: 24px; color: var(--muted); font-size: 15.5px; }

/* phases */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.phases::before { content: ""; position: absolute; left: 22px; right: 22%; top: 21px; height: 2px; background: var(--data); }
.phase .n { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-family: "Outfit", Arial, sans-serif; font-weight: 600; font-size: 19px; box-shadow: 0 0 0 6px var(--mist); }
.phase h3 { font-size: 19px; margin-top: 18px; }
.phase p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.phase .when { color: var(--blue-dark); font-weight: 600; margin-top: 10px; }

/* navy sections */
.on-navy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.on-navy .kicker { color: var(--data); }
.on-navy .section-head p { color: var(--on-navy-muted); }
.on-navy .card { background: var(--navy-2); }
.on-navy .card h3 { color: var(--white); font-size: 19px; }
.on-navy .card p { color: var(--on-navy-muted); }

/* team */
.person img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background: var(--white); }
.person h3 { font-size: 20px; margin-top: 16px; }
.person .role { color: var(--blue-dark); font-weight: 600; font-size: 15.5px; margin-top: 2px; }
.person p.bio { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

/* contact */
.contact { text-align: center; }
.contact .wrap { position: relative; z-index: 2; }
.contact h2 { font-size: clamp(30px, 4vw, 46px); }
.contact p { color: var(--on-navy-muted); font-size: 19px; margin: 18px auto 0; max-width: 560px; }
.contact .btn { margin-top: 34px; }
.contact .mail { display: block; margin-top: 18px; color: var(--on-navy-muted); font-size: 15.5px; }
.contact .rings { right: auto; left: -400px; top: auto; bottom: -360px; opacity: .9; overflow: visible; }

/* footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.site-footer img { height: 30px; width: auto; }
.site-footer a { color: var(--on-navy-muted); }

@media (max-width: 980px) {
  .nav a:not(.btn) { display: none; }
  .grid-4, .flow, .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { gap: 20px; }
  .flow .card + .card::before, .phases::before { display: none; }
  .problem { grid-template-columns: 1fr; gap: 32px; }
  .rings { opacity: .35; right: -260px; }
  .contact .rings { opacity: .18; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 88px; }
  .grid-2, .grid-3, .grid-4, .flow, .phases { grid-template-columns: 1fr; }
  .stats .grid-3 { padding: 8px 20px; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .stat:first-child { border-top: 0; }
  .site-header .logo img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
