/* ============================================================
   IVF Pulse — PATIENT brand (dark / yellow)
   Used ONLY inside the patient phone preview (.ivf scope), so it
   never collides with the clinical-green Leap Health doctor UI.
   Mirrors the IVF Pulse "Ivy" deck: warm near-black canvas, pale
   yellow accent, serif display for headlines, Inter for body.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,16..72,400;0,16..72,500;1,16..72,400;1,16..72,500&display=swap");

.ivf {
  --ivf-bg:        #18150F;   /* warm near-black canvas */
  --ivf-surface:   #211D15;   /* card */
  --ivf-surface-2: #2A2519;   /* raised / inner */
  --ivf-line:      rgba(255, 255, 255, 0.09);
  --ivf-line-soft: rgba(255, 255, 255, 0.06);
  --ivf-ink:       #F6F3E9;   /* primary text */
  --ivf-ink-2:     rgba(246, 243, 233, 0.76);
  --ivf-ink-3:     rgba(246, 243, 233, 0.40);
  --ivf-accent:    #EFE89B;   /* pale yellow */
  --ivf-accent-2:  #F4EFB0;
  --ivf-green:     #8FD46A;   /* "reviewed / approved" */
  --ivf-green-bg:  rgba(143, 212, 106, 0.16);
  --ivf-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ivf-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------------- Phone frame ---------------- */
.phone {
  width: 320px; flex: none;
  background: var(--ivf-bg);
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 0 0 10px #0d0b07, 0 0 0 11px rgba(255,255,255,.06),
              0 30px 60px -20px rgba(0,0,0,.7);
}
.phone__screen {
  background: linear-gradient(180deg, #1d190f 0%, var(--ivf-bg) 22%);
  border-radius: 28px; overflow: hidden;
  height: 600px; display: flex; flex-direction: column;
  font-family: var(--ivf-sans); color: var(--ivf-ink);
  position: relative;
}
.phone__status { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 4px; font: 600 12px/1 var(--ivf-sans); color: var(--ivf-ink); }
.phone__status .r { display: flex; gap: 5px; align-items: center; font-size: 12px; opacity: .85; }
.phone__body { flex: 1; overflow-y: auto; padding: 6px 16px 20px; }
.phone__body::-webkit-scrollbar { width: 0; }

/* sky hero strip (like the deck's home) */
.ivf-hero {
  border-radius: 18px; padding: 16px 16px 18px; margin-bottom: 14px;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(143,180,255,.45), rgba(143,180,255,0) 60%),
    linear-gradient(180deg, #6f86b8 0%, #4a587e 100%);
  color: #fff; position: relative; overflow: hidden;
}
.ivf-hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1 var(--ivf-sans);
  letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.18);
  padding: 5px 9px; border-radius: 100px; color: #fff; }
.ivf-hero h2 { font: 500 22px/1.2 var(--ivf-serif); font-style: italic; margin: 14px 0 4px; color: #fff; }
.ivf-hero p { font: 400 12px/1.4 var(--ivf-sans); color: rgba(255,255,255,.82); margin: 0; }
.ivf-hero__bar { height: 5px; border-radius: 100px; background: rgba(255,255,255,.25); margin-top: 14px; overflow: hidden; }
.ivf-hero__bar i { display: block; height: 100%; border-radius: 100px; background: var(--ivf-accent); }
.ivf-hero__day { font: 600 10px/1 var(--ivf-sans); color: rgba(255,255,255,.85); margin-top: 7px; display: block; }

/* generic card */
.ivf-card {
  background: var(--ivf-surface); border: 1px solid var(--ivf-line);
  border-radius: 16px; padding: 15px; margin-bottom: 12px;
}
.ivf-card--accent { box-shadow: inset 0 0 0 1px rgba(239,232,155,.35); }
.ivf-row { display: flex; align-items: center; gap: 8px; }
.ivf-by { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1 var(--ivf-sans);
  letter-spacing: .06em; text-transform: uppercase; color: var(--ivf-ink-3); }
.ivf-by i { color: var(--ivf-accent); font-size: 13px; }
.ivf-pill { display: inline-flex; align-items: center; gap: 5px; font: 600 10px/1 var(--ivf-sans);
  letter-spacing: .04em; padding: 5px 9px; border-radius: 100px; background: var(--ivf-green-bg); color: var(--ivf-green); }
.ivf-pill i { font-size: 12px; }
.ivf-pill--wait { background: rgba(255, 255, 255, 0.1); color: var(--ivf-ink-2); }
.ivf-pill--wait i { color: var(--ivf-ink-3); }
.ivf-headline { font: 500 19px/1.25 var(--ivf-serif); font-style: italic; color: var(--ivf-ink); margin: 12px 0 6px; }
.ivf-headline b { color: var(--ivf-accent); font-style: italic; font-weight: 600; }
.ivf-sub { font: 400 12.5px/1.5 var(--ivf-sans); color: var(--ivf-ink-2); margin: 0; }

/* stat tiles inside patient card */
.ivf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ivf-stat { background: var(--ivf-surface-2); border: 1px solid var(--ivf-line-soft); border-radius: 12px; padding: 10px; text-align: center; }
.ivf-stat b { display: block; font: 600 17px/1 var(--ivf-sans); color: var(--ivf-ink); }
.ivf-stat small { display: block; margin-top: 4px; font: 500 9px/1.2 var(--ivf-sans); letter-spacing: .04em;
  text-transform: uppercase; color: var(--ivf-ink-3); }

/* trend mini-chart (dark) */
.ivf-trend { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 14px; }
.ivf-trend .b { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--ivf-accent), rgba(239,232,155,.35)); min-height: 5px; }

/* nudge / message line */
.ivf-msg { background: var(--ivf-surface-2); border: 1px solid var(--ivf-line-soft); border-radius: 14px;
  padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.ivf-msg__av { width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #f4efb0, #c9c06a); }
.ivf-msg p { margin: 0; font: 400 12.5px/1.45 var(--ivf-sans); color: var(--ivf-ink); }
.ivf-msg p .q { font-family: var(--ivf-serif); font-style: italic; }

/* bottom tab bar */
.ivf-tabbar { display: flex; justify-content: space-around; align-items: center; padding: 12px 8px 16px;
  border-top: 1px solid var(--ivf-line); background: rgba(13,11,7,.6); }
.ivf-tabbar i { font-size: 20px; color: var(--ivf-ink-3); }
.ivf-tabbar i.on { color: var(--ivf-accent); }

/* "just released" flash */
.ivf-flash { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1 var(--ivf-sans);
  letter-spacing: .05em; text-transform: uppercase; color: #18150F; background: var(--ivf-accent);
  padding: 5px 10px; border-radius: 100px; }
