/* ── Florence — hireflorence.com ─────────────────────────────
   Warm editorial palette carried from the 0 Holdings / Nightingale
   brand: cream ground, ink text, a single gold accent, Cormorant
   Garamond display over Inter body. */

:root {
  --bg: #FAF8F3;
  --bg-2: #F3EFE6;
  --card: #FFFFFF;
  --ink: #1B1A17;
  --ink-muted: rgba(27, 26, 23, 0.66);
  --ink-quiet: rgba(27, 26, 23, 0.45);
  --gold: #A6813C;
  --gold-soft: #C9A96A;
  --gold-tint: rgba(166, 129, 60, 0.10);
  --line: rgba(27, 26, 23, 0.12);
  --line-soft: rgba(27, 26, 23, 0.07);
  --sage: #4B6552;
  --shadow: 0 1px 2px rgba(27,26,23,.04), 0 12px 40px rgba(27,26,23,.07);
  --radius: 16px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.4rem; line-height: 1.25; }
p  { margin: 0; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(27,26,23,.18); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(166,129,60,.3); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,243,.78); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-mark { color: var(--gold); }
.brand-word { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.94rem; color: var(--ink-muted); transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 9px 18px; font-size: 0.9rem; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 26px; }
.lede { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--ink-muted); max-width: 660px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 0.95rem; color: var(--ink-quiet); }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; z-index: 1;
  background: radial-gradient(circle at 70% 30%, var(--gold-tint), transparent 62%);
  pointer-events: none;
}

/* ── Interactive hero phone ──────────────────────────── */
.hero-phone { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone {
  position: relative; width: 300px; max-width: 82vw; aspect-ratio: 300 / 620;
  background: linear-gradient(160deg, #20302a, #14201b);
  border-radius: 44px;
  box-shadow: 0 30px 80px rgba(20,32,27,.45), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.16); z-index: 3; }
/* Screen is absolutely positioned so its content can NEVER stretch the phone —
   the transcript scrolls inside a fixed-size device instead. */
.phone-screen {
  position: absolute; inset: 12px; border-radius: 34px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 12%, #23362d 0%, #0f1814 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px 24px; color: #EAF3ED;
}
.phone-rings { position: absolute; top: 50%; left: 50%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.phone-rings span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(74,168,120,.35); border-radius: 50%; width: 150px; height: 150px; opacity: 0; }
.phone.is-live .phone-rings span { animation: ring 2.6s ease-out infinite; }
.phone.is-live .phone-rings span:nth-child(2) { animation-delay: .8s; }
.phone.is-live .phone-rings span:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { 0% { width:110px; height:110px; opacity:.7; } 100% { width:360px; height:360px; opacity:0; } }

.call-stage { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-name { font-family: "Cormorant Garamond", serif; font-size: 1.9rem; font-weight: 600; margin: 0; letter-spacing: .01em; }
.phone-role { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(234,243,237,.6); margin: -6px 0 6px; }
.call-btn {
  width: 82px; height: 82px; border-radius: 50%; border: none; cursor: pointer; margin: 6px 0 2px;
  background: linear-gradient(145deg, #4aa878, #2f8a5c); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(47,138,92,.5);
  transition: transform .15s ease, box-shadow .2s ease; animation: breathe 2.8s ease-in-out infinite;
}
.call-btn:hover { transform: scale(1.06); box-shadow: 0 14px 34px rgba(47,138,92,.6); }
.call-btn:active { transform: scale(.97); }
.call-btn:disabled { opacity: .6; cursor: default; animation: none; }
@keyframes breathe { 0%,100% { box-shadow: 0 10px 28px rgba(47,138,92,.5); } 50% { box-shadow: 0 10px 28px rgba(47,138,92,.5), 0 0 0 12px rgba(74,168,120,.10); } }

.phone-dial { display: flex; gap: 6px; width: 100%; max-width: 232px; margin-top: 4px; }
.phone-dial select, .phone-dial input {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #EAF3ED;
  border-radius: 11px; padding: 10px; font-family: inherit; font-size: .86rem;
}
.phone-dial select { width: 62px; }
.phone-dial input { flex: 1; min-width: 0; }
.phone-dial input::placeholder { color: rgba(234,243,237,.45); }
.phone-dial input:focus, .phone-dial select:focus { outline: none; border-color: #4aa878; }
.phone-dial input.shake { animation: shake .4s; border-color: #e08a8a; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
.phone-hint { font-size: .78rem; color: rgba(234,243,237,.55); line-height: 1.4; max-width: 220px; margin: 2px 0 0; }

/* live stage — fills the fixed-height screen; transcript scrolls inside */
.call-stage[data-stage="live"] { height: 100%; justify-content: flex-start; gap: 10px; min-height: 0; }
.live-top { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.07); margin-bottom: 4px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4aa878; animation: pulse 1.6s infinite; }
.live-label { font-size: .82rem; color: #EAF3ED; }
.live-label.err { color: #f0a6a6; }
.live-label.ok { color: #8fd3ab; }
.phone-transcript { flex: 1 1 0; min-height: 0; width: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding: 4px 2px; }
.call-end { flex: none; }
.phone-transcript:empty::after { content: "Waiting for the conversation…"; color: rgba(234,243,237,.4); font-size: .8rem; margin: auto; }
.tline { font-size: .8rem; line-height: 1.4; padding: 7px 11px; border-radius: 12px; text-align: left; color: #EAF3ED; }
.tline .who { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: 2px; }
.tline.Florence { background: rgba(74,168,120,.20); }
.tline.You, .tline.Patient { background: rgba(255,255,255,.09); }
.tline.ThirdParty, .tline.Third { background: rgba(201,169,106,.20); }
.call-end { margin-top: auto; background: rgba(224,120,120,.16); color: #f2b6b6; border: 1px solid rgba(224,120,120,.3); border-radius: 999px; padding: 8px 20px; font-family: inherit; font-size: .82rem; cursor: pointer; }
.call-end:hover { background: rgba(224,120,120,.26); }
.phone-caption { font-size: .82rem; color: var(--ink-quiet); }

/* ── Trust strip ─────────────────────────────────────── */
.trust { padding: 26px 0 8px; }
.trust-label { text-align: center; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 18px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.trust-row span { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: var(--ink-muted); opacity: .8; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-sub { color: var(--ink-muted); font-size: 1.08rem; margin-top: 16px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(27,26,23,.05), 0 20px 50px rgba(27,26,23,.10); }
.card-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold); margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-muted); font-size: 0.99rem; }

/* ── Band (no IT lift) ───────────────────────────────── */
.band .band-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 24px;
  padding: clamp(36px, 5vw, 60px);
}
.band-text .section-sub { font-size: 1.12rem; }
.band-text strong { color: var(--ink); }
.band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.band-list li { font-size: 0.98rem; color: var(--ink-muted); padding-left: 26px; position: relative; }
.band-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.band-list span { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ── Steps ───────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card); box-shadow: var(--shadow); }
.step-n { font-family: "Cormorant Garamond", serif; font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: 10px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 0.98rem; }

/* ── Results ─────────────────────────────────────────── */
.results { background: var(--ink); color: var(--bg); }
.results .eyebrow { color: var(--gold-soft); }
.results h2 { color: var(--bg); }
.stats { margin-top: 8px; }
.stat { text-align: center; padding: 10px; }
.stat-n { font-family: "Cormorant Garamond", serif; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; color: #fff; margin-bottom: 12px; }
.stat-l { color: rgba(250,248,243,.66); font-size: 0.98rem; max-width: 260px; margin: 0 auto; }

/* ── Safety ──────────────────────────────────────────── */
.safety { max-width: 900px; margin: 0 auto; }
.safe { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card); }
.safe h4 { font-family: "Inter", sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.safe p { color: var(--ink-muted); font-size: 0.97rem; }

/* ── CTA ─────────────────────────────────────────────── */
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-form { display: flex; gap: 10px; justify-content: center; margin: 28px auto 14px; max-width: 460px; }
.cta-form input {
  flex: 1; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-family: inherit; font-size: 0.98rem; background: var(--card); color: var(--ink);
}
.cta-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.cta-alt { font-size: 0.92rem; color: var(--ink-quiet); }
.cta-alt a { color: var(--gold); }

/* ── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-soft); padding: 54px 0 34px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-tag { color: var(--ink-muted); font-size: 0.95rem; margin-top: 10px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-muted); font-size: 0.94rem; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--ink-quiet); font-size: 0.85rem; }

/* ── Reveal animation ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Florence chat widget ────────────────────────────── */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--gold); color: #fff; font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.96rem;
  box-shadow: 0 10px 30px rgba(166,129,60,.4); transition: transform .18s ease, box-shadow .2s ease;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(166,129,60,.5); }
.fab .fab-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6);} 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }
.fab[hidden] { display: none; }

.chat {
  position: fixed; right: 22px; bottom: 22px; z-index: 61;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px));
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(27,26,23,.28);
  transform: translateY(12px) scale(.98); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease;
}
.chat.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.chat-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); display: grid; place-items: center; flex: none; }
.chat-title { flex: 1; }
.chat-title b { font-family: "Inter", sans-serif; font-size: 0.98rem; }
.chat-title small { display: block; color: var(--sage); font-size: 0.76rem; margin-top: 1px; }
.chat-title small::before { content: "●"; margin-right: 5px; font-size: .6rem; vertical-align: 1px; }
.chat-x { background: none; border: none; cursor: pointer; color: var(--ink-quiet); font-size: 1.4rem; line-height: 1; padding: 4px 6px; }
.chat-x:hover { color: var(--ink); }

.chat-tabs { display: flex; padding: 8px 12px 0; gap: 6px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.chat-tab { flex: 1; padding: 9px; border: none; background: transparent; cursor: pointer; font-family: "Inter",sans-serif; font-size: .84rem; font-weight: 500; color: var(--ink-quiet); border-bottom: 2px solid transparent; }
.chat-tab.active { color: var(--ink); border-color: var(--gold); }

.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat [hidden] { display: none !important; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 15px; font-size: 0.93rem; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 5px; }
.msg.sys { align-self: center; background: transparent; color: var(--ink-quiet); font-size: .82rem; text-align: center; max-width: 100%; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-quiet); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s } .typing i:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{opacity:.25} 30%{opacity:1} }

.chat-foot { padding: 12px; border-top: 1px solid var(--line-soft); }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); font-family: inherit; font-size: .92rem; background: var(--bg); }
.chat-input input:focus { outline: none; border-color: var(--gold); }
.chat-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--gold); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-send:disabled { opacity: .5; cursor: default; }

/* Call tab */
.call-pane { padding: 6px 4px; display: flex; flex-direction: column; gap: 14px; }
.call-pane p.call-intro { font-size: .9rem; color: var(--ink-muted); }
.phone-row { display: flex; gap: 8px; }
.phone-row select, .phone-row input { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); font-family: inherit; font-size: .92rem; background: var(--bg); }
.phone-row select { width: 84px; }
.phone-row input { flex: 1; }
.call-status { font-size: .86rem; padding: 8px 0; }
.call-status.err { color: #b23b3b; } .call-status.ok { color: var(--sage); }
.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow-y: auto; }
.tline { font-size: .86rem; padding: 8px 12px; border-radius: 12px; }
.tline .who { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-quiet); margin-bottom: 2px; }
.tline.Florence { background: var(--gold-tint); }
.tline.Patient { background: var(--bg-2); }
.tline\.ThirdParty, .tline.Third { background: #eef2ec; }

.chat-disc { font-size: .72rem; color: var(--ink-quiet); text-align: center; padding: 6px 12px 0; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .band .band-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav-cta { display: none; }
  .nav-inner { height: 60px; }
  .hero { padding: 40px 0 56px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 8px 20px; }
  .trust-row span { font-size: 1.15rem; }
  .card, .step, .safe { padding: 24px 20px; }
  .band .band-inner { padding: 28px 22px; }
  .cta-form { flex-direction: column; border-radius: 16px; }
  .cta-form input { text-align: center; }
  .footer-inner { flex-direction: column; gap: 22px; }
  .footer-legal { flex-direction: column; gap: 6px; }
  /* chat widget goes near full-screen on phones */
  .fab { right: 14px; bottom: 14px; }
  .chat { right: 10px; left: 10px; bottom: 10px; width: auto; height: min(78vh, 560px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
