/* Divinia Health — shared styles */
:root{
  --bg: #FFFAF7;
  --surface: #FFFFFF;
  --tint: #FBF2FB;
  --tint-2: #F3EEFF;
  --ink: #1C1A3A;
  --ink-2: #44415F;
  --muted: #615D7C;
  --line: rgba(60, 40, 110, 0.12);
  --pink: #E13DFC;
  --violet: #8B3BFF;
  --blue: #5B4BFF;
  --deep-pink: #B21FC6;
  --deep-violet: #6D28D9;
  --grad: linear-gradient(120deg, #E13DFC 0%, #A23BFF 52%, #5B4BFF 100%);
  --grad-strong: linear-gradient(120deg, #B21FC6 0%, #6D28D9 100%);
  --grad-soft: linear-gradient(160deg, #FFF4FB 0%, #F6F0FF 55%, #EEF1FF 100%);
  --shadow: 0 1px 2px rgba(40, 20, 80, .05), 0 8px 24px rgba(80, 40, 140, .07);
  --radius: 18px;
  --display: 'Newsreader', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brand: 'Outfit', 'Inter', system-ui, sans-serif;
  --wrap: 1080px;
  --nav-h: 68px;
  --gutter: clamp(16px, 5vw, 48px);
}

*{ box-sizing: border-box; }
html{ scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference){ html{ scroll-behavior: smooth; } }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }
:focus-visible{ outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3{ color: var(--ink); margin: 0; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: break-word; }
h1, h2{ font-family: var(--display); }
h3{ font-family: var(--body); font-weight: 600; font-size: 18px; line-height: 1.35; }
p{ margin: 0; }

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link{ position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus{ left: 12px; }

.eyebrow{
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--deep-violet); margin: 0 0 12px;
}

/* NAV */
.site-nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 247, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav::after{ content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: .85; }
.nav-inner{
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand{ display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; min-width: 0; }
.brand img{ width: 30px; height: 30px; object-fit: contain; flex: none; }
.brand span{ font-family: var(--brand); font-weight: 500; font-size: 20px; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.nav-links{ display: flex; align-items: center; gap: 6px; flex: none; }
.nav-link{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-link:hover{ background: var(--tint); }
.nav-link[aria-current="page"]{ background: var(--tint-2); color: var(--deep-violet); }
.label-short{ display: none; }

/* BUTTONS */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--body); font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary{ background: var(--grad-strong); color: #fff; box-shadow: 0 6px 18px rgba(124, 40, 200, .25); }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124, 40, 200, .3); }
.btn-ghost{ color: var(--ink); background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.btn-ghost:hover{ background: #fff; }
.nav-links .btn{ min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-light{ background: #fff; color: var(--deep-violet); }
.btn-light:hover{ transform: translateY(-1px); }

/* HERO (home) */
.hero{
  position: relative; overflow: hidden;
  background: #9fb4ef url('hero-mobile.webp') center 55% / cover no-repeat;
  padding: clamp(40px, 9vw, 110px) 0 clamp(48px, 9vw, 120px);
}
@media (min-width: 769px){ .hero{ background-image: url('hero-desktop.webp'); background-position: center 60%; } }
.hero::before{ /* gentle light wash so the card sits softly */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,250,247,0) 70%, rgba(255,250,247,.22) 100%);
}
.hero .wrap{ position: relative; }
.hero-card{
  max-width: 620px;
  background: rgba(255, 252, 250, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px; box-shadow: 0 20px 50px rgba(40, 30, 100, .18);
  padding: clamp(24px, 5vw, 44px);
}
.lockup{ margin-bottom: 18px; }
.lockup-name{
  font-family: var(--brand); font-weight: 500; font-size: clamp(22px, 3vw, 26px); line-height: 1.1;
  background: var(--grad-strong); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.lockup-tag{ display: block; font-family: var(--brand); font-size: 14px; letter-spacing: .14em; color: var(--muted); margin-top: 4px; text-transform: lowercase; }
.hero h1{ font-size: clamp(32px, 5.4vw, 52px); line-height: 1.1; }
.hero .sub{ margin-top: 16px; font-size: clamp(17px, 1.8vw, 19px); color: var(--ink-2); }
.cta-row{ margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* SECTIONS */
section{ padding: clamp(56px, 9vw, 96px) 0; }
.section-head{ max-width: 640px; margin-bottom: 32px; }
.section-head h2, .h2{ font-size: clamp(28px, 3.8vw, 40px); line-height: 1.15; }
.section-head p{ margin-top: 12px; }
.lede{ font-size: clamp(17px, 1.9vw, 20px); max-width: 640px; color: var(--ink-2); margin-top: 16px; }
.alt{ background: var(--grad-soft); }

/* CARDS */
.card{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.card p{ margin-top: 6px; color: var(--muted); font-size: 16px; }
.icon{
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 14px;
}
.icon svg{ width: 22px; height: 22px; }

.workflow{ display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.steps{ display: grid; gap: 16px; }
@media (min-width: 900px){ .workflow{ grid-template-columns: 1.05fr .95fr; gap: 40px; } }

.status-pill{
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--deep-violet); background: var(--tint-2); border-radius: 999px; padding: 6px 12px; margin-bottom: 16px;
}
.status-pill::before{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ILLUSTRATIVE EXAMPLE */
.demo{ padding: 0; overflow: hidden; }
.demo-label{
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--tint); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.demo-label strong{ color: var(--deep-violet); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.demo-body{ padding: 18px 20px 20px; }
.demo-title{ font-weight: 600; color: var(--ink); font-size: 16px; }
.demo-meta{ font-size: 14px; color: var(--muted); }
.roster{ list-style: none; margin: 14px 0 0; padding: 0; }
.roster li{
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink);
}
.tag{ font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ok{ background: #E0F2FE; color: #075985; box-shadow: 0 0 0 1px rgba(56,189,248,.45), 0 0 10px rgba(56,189,248,.25); }
.tag.miss{ background: #FDEBF7; color: #9C1A87; }
.demo-sum{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.demo-sum div{ background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.demo-sum b{ display: block; font-size: 22px; color: var(--ink); font-family: var(--display); font-weight: 500; }
.demo-sum span{ font-size: 12.5px; color: var(--muted); line-height: 1.3; display: block; }

/* TWO PANELS */
.duo{ display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px){ .duo{ grid-template-columns: 1fr 1fr; gap: 24px; } }
.duo .card{ padding: clamp(24px, 4vw, 36px); }
.duo h2{ font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin-top: 4px; }
.duo .card p{ font-size: 17px; margin-top: 12px; }
.future-note{ display: inline-block; font-size: 13px; font-weight: 600; color: var(--deep-pink); background: #FDEBF7; border-radius: 999px; padding: 4px 10px; }

/* CONTACT BAND */
.contact{ padding: clamp(56px, 9vw, 96px) 0; }
.contact-band{
  background: var(--grad-strong); color: #fff; border-radius: 28px;
  padding: clamp(28px, 6vw, 56px); position: relative; overflow: hidden;
}
.contact-band::after{
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 70%); pointer-events: none;
}
.contact-band h2{ color: #fff; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.contact-band p{ margin-top: 12px; max-width: 560px; font-size: 18px; color: rgba(255,255,255,.95); }
.contact-band .cta-row a.email{ color: #fff; font-weight: 500; text-underline-offset: 3px; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }

/* PAGE HERO (about) */
.page-hero{ background: var(--grad-soft); padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero h1{ font-size: clamp(32px, 5vw, 50px); line-height: 1.12; max-width: 18ch; }
.page-hero .lede + .lede{ margin-top: 12px; }
.hero-strip{
  height: clamp(120px, 22vw, 220px); border-radius: 22px; margin-top: 32px;
  background: #9fb4ef url('hero-desktop.webp') center 60% / cover no-repeat; box-shadow: var(--shadow);
}


/* TEAM */
.team-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.member{ text-align: center; padding: 24px 18px; }
.avatar{
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden;
  padding: 3px; background: var(--grad);
}
.avatar img{ width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; }
.member h3{ font-size: 17px; }
.member .role{ display: block; font-size: 13px; font-weight: 600; color: var(--deep-violet); margin-top: 2px; letter-spacing: .01em; }
.member p{ font-size: 15px; margin-top: 10px; }
@media (max-width: 559px){
  .team-grid{ grid-template-columns: 1fr; gap: 14px; }
  .member{ display: grid; grid-template-columns: 84px 1fr; gap: 16px; text-align: left; align-items: start; padding: 18px; }
  .avatar{ width: 84px; height: 84px; margin: 0; }
  .member p{ margin-top: 6px; }
}

/* PRINCIPLES */
.principles{ display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px){ .principles{ grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.principles .card h3{ font-size: 19px; }
.principles .card h3::before{ content: ""; display: block; width: 32px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: 14px; }

/* MILESTONES */
.milestones{ display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px){ .milestones{ grid-template-columns: 1fr 1fr; } }
.milestone{ padding: 0; overflow: hidden; margin: 0; }
.milestone img{ width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.milestone figcaption{ padding: 16px 20px 20px; font-size: 15px; color: var(--ink-2); }
.milestone figcaption b{ display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* FOOTER */
.site-footer{ border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.footer-inner{ display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer-links{ display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.footer-links a{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.footer-links li:first-child a{ padding-left: 0; }
.footer-links a:hover{ color: var(--deep-violet); }

/* REVEAL (below-the-fold only, added by JS; content visible without JS) */
.reveal.pending{ opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.pending.in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal.pending{ opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover{ transition: none; transform: none; }
}

/* NARROW PHONES */
@media (max-width: 419px){
  .label-full{ display: none; }
  .label-short{ display: inline; }
  .brand span{ font-size: 18px; }
  .nav-links .btn{ padding: 0 14px; }
  .nav-link{ padding: 0 10px; }
}
@media (max-width: 359px){
  .brand{ gap: 8px; }
  .brand img{ width: 26px; height: 26px; }
  .brand span{ font-size: 16px; }
  .nav-links{ gap: 2px; }
  .nav-links .btn{ padding: 0 12px; font-size: 14px; }
  .nav-link{ padding: 0 8px; font-size: 14px; }
  .cta-row .btn{ width: 100%; }
}

/* PRIVACY / LEGAL */
.narrow{ max-width: 780px; }
.legal .page-hero h1{ max-width: none; font-size: clamp(30px, 4.4vw, 42px); }
.legal .updated{ font-size: 14px; color: var(--muted); margin-top: 16px; }
.legal-body{ padding-top: 40px; padding-bottom: 72px; }
.legal-body section{ padding: 0; margin-bottom: 36px; }
.legal-body h2{ font-family: var(--body); font-weight: 600; font-size: 19px; margin: 0 0 10px; }
.legal-body .sec-num{ color: var(--deep-violet); font-size: 14px; margin-right: 8px; }
.legal-body p, .legal-body li{ font-size: 16px; line-height: 1.7; }
.legal-body p{ margin: 0 0 12px; }
.legal-body ul{ margin: 0 0 12px; padding-left: 22px; }
.legal-body strong{ color: var(--ink); font-weight: 600; }
.legal-body a.inline{ color: var(--deep-violet); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* refinements */
.card .eyebrow, .duo .card .eyebrow{ font-size: 13px; color: var(--deep-violet); margin: 0 0 10px; }
@media (max-width: 768px){
  /* phones: show the full photo as a band, card overlaps its lower edge */
  .hero{
    background: url('hero-mobile.webp') center top / 100% auto no-repeat, linear-gradient(180deg, #E9C9DC 0%, #F6EAF3 45%, var(--bg) 100%);
    padding-top: calc(61.7vw - 56px); padding-bottom: 40px;
  }
  .hero::before{ display: none; }
}
@media (min-width: 1000px){ .team-grid{ grid-template-columns: repeat(5, 1fr); gap: 16px; } .member{ padding: 22px 14px; } }

/* ANIMATED WORKFLOW ("Our starting point") */
.demo{ margin: 0; }
.step{ position: relative; overflow: hidden; transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease; }
.step::after{
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--grad); transform-origin: left; transform: scaleX(1);
}
.steps.is-playing .step::after{ transform: scaleX(0); }
.steps.is-playing .step.is-active::after{ transform: scaleX(1); transition: transform var(--dur, 2s) linear; }
.steps.is-playing .step.is-done::after{ transform: scaleX(1); }
.steps.is-playing .step{ opacity: .62; }
.steps.is-playing .step.is-active, .steps.is-playing .step.is-done{ opacity: 1; }
.step.is-active{ border-color: rgba(139, 59, 255, .45); box-shadow: 0 0 0 4px rgba(162, 59, 255, .10), var(--shadow); transform: translateX(4px); }
.step.is-active .icon{ animation: iconPulse 1.6s ease-in-out infinite; }
@keyframes iconPulse{ 0%,100%{ box-shadow: 0 0 0 0 rgba(178, 31, 198, .35); } 50%{ box-shadow: 0 0 0 8px rgba(178, 31, 198, 0); } }
.steps .reveal.pending:nth-child(2){ transition-delay: .12s; }
.steps .reveal.pending:nth-child(3){ transition-delay: .24s; }

.roster li{ border-radius: 8px; transition: background-color .4s ease, padding .3s ease; }
.roster li.is-checking{ background: var(--tint-2); padding-left: 8px; padding-right: 8px; }
.roster li.is-missing{ background: linear-gradient(90deg, #FDEBF7, rgba(253,235,247,0)); padding-left: 8px; padding-right: 8px; }
.tag{ transition: background-color .3s ease, color .3s ease; }
.tag.pending{ background: #F1EFF6; color: var(--muted); }
.tag.pop{ animation: tagPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes tagPop{ from{ transform: scale(.7); opacity: .3; } to{ transform: scale(1); opacity: 1; } }
.roster li.is-missing .tag.miss{ animation: missPulse 1.8s ease-in-out 2; }
@keyframes missPulse{ 0%,100%{ box-shadow: 0 0 0 0 rgba(178, 31, 198, .35); } 50%{ box-shadow: 0 0 0 6px rgba(178, 31, 198, 0); } }
.demo-sum b{ transition: color .3s ease; }
.demo-sum b.bump{ animation: bump .5s ease; }
@keyframes bump{ 40%{ transform: scale(1.25); color: var(--deep-violet); } }
.demo-sum b{ display: inline-block; }
.demo-sum div{ display: flex; flex-direction: column; align-items: center; }
.sum-miss.is-on{ background: #FDEBF7; }
.sum-miss.is-on b{ color: #9C1A87; }
.demo .demo-saved{
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(90deg, #E0F2FE, #EEF0FF); color: #075985; font-size: 14px; font-weight: 600; border: 1px solid rgba(56,189,248,.5); box-shadow: 0 0 18px rgba(56,189,248,.22);
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease;
}
.demo .demo-saved.is-shown{ opacity: 1; transform: none; }
.demo-saved svg{ width: 18px; height: 18px; flex: none; }
.replay{
  margin-top: 12px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--deep-violet);
  font: 600 14px/1 var(--body);
}
.replay:hover{ background: var(--tint-2); }
@media (prefers-reduced-motion: reduce){
  .step, .step::after, .roster li, .tag, .demo-saved{ transition: none !important; animation: none !important; }
  .step.is-active{ transform: none; }
}
.demo .demo-step{
  display: inline-flex; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--tint-2); color: var(--deep-violet); font-size: 13px; font-weight: 600;
  min-height: 0; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s ease;
}
.demo .demo-step.is-shown{ opacity: 1; max-height: 40px; }
@media (min-width: 769px){
  .hero{ min-height: min(76vh, 680px); display: flex; align-items: center; background-position: center 55%; }
  .hero .wrap{ width: 100%; }
}
