/* ============================================================================
   livv — marketing design system  ·  "Sage & clinical white"
   ----------------------------------------------------------------------------
   A from-scratch, light-first visual language for the public site. Retires the
   old dark indigo/violet/fuchsia marketing theme entirely. Calm, botanical,
   quietly clinical. Editorial serif (Fraunces) over a soft humanist sans
   (Figtree). Self-contained: the marketing shell does NOT load app.css or the
   compiled Tailwind build, so nothing here collides with the staff app.

   Sections:
     1. Tokens          2. Reset & base       3. Typography
     4. Layout          5. Buttons & pills    6. Nav & footer
     7. Cards & blocks  8. Hero & sections    9. Proof / stats
    10. Mockup toolkit (impressionistic UI)  11. Motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Surfaces */
  --oat:        #F7F5F0;   /* page background — warm oat */
  --oat-deep:   #EFEDE5;   /* recessed panels */
  --paper:      #FDFCFA;   /* cards — barely-warm white */
  --white:      #FFFFFF;
  --mist:       #E8EDE7;   /* sage mist — tints, mockup fills */
  --mist-2:     #DBE4DA;   /* deeper mist — skeleton lines */

  /* Sage / eucalyptus */
  --sage:       #7C9885;   /* eucalyptus — primary accent */
  --sage-600:   #648069;
  --sage-700:   #506A57;   /* deep sage — primary buttons, links */
  --sage-800:   #3E5445;

  /* Ink */
  --ink:        #2C3330;   /* charcoal — display headings */
  --ink-2:      #414B44;   /* body-strong */
  --body:       #55605A;   /* body copy */
  --muted:      #7C877F;   /* captions, meta */
  --line:       #E4E5DD;   /* hairlines */
  --line-2:     #D7DCD2;

  /* Restrained warm + signal accents (used sparingly) */
  --clay:       #C08A63;   /* warmth, "care" moments */
  --gold:       #C9A24B;   /* ratings */
  --rose:       #C77B6E;   /* gentle "friction/alert" tone */

  /* Radii & shadow */
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(44,51,48,.04), 0 2px 6px rgba(44,51,48,.05);
  --shadow:    0 4px 14px rgba(44,51,48,.06), 0 14px 40px -18px rgba(62,84,69,.22);
  --shadow-lg: 0 8px 30px rgba(44,51,48,.08), 0 40px 80px -32px rgba(62,84,69,.30);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1140px;
}

/* 2. RESET & BASE ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--oat);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--sage); color: #fff; }

/* 3. TYPOGRAPHY ------------------------------------------------------------ */
.display, h1.display, h2.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
h1.display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2.display { font-size: clamp(2rem, 4.3vw, 3.3rem); font-weight: 450; line-height: 1.08; }
h3.display { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: clamp(1.35rem,2.4vw,1.75rem); line-height: 1.2; letter-spacing: -.01em; }

/* soft emphasis inside serif headlines */
.ink-soft { color: var(--sage-700); font-style: italic; font-weight: 400; }
.underscore { position: relative; white-space: nowrap; }
.underscore::after {
  content:""; position:absolute; left:0; right:0; bottom:.06em; height:.36em;
  background: var(--mist); z-index:-1; border-radius: 3px; transform: skewX(-8deg);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-700);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.prose p { color: var(--body); }
.prose p + p { margin-top: 1.1rem; }
strong { color: var(--ink-2); font-weight: 700; }

/* 4. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 760px; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-sm { padding-block: clamp(48px, 6vw, 84px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-wide { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 900px) {
  .g-3 { grid-template-columns: 1fr; }
  .g-2 { grid-template-columns: 1fr; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 40px; }
  .split .is-media { order: 2; }
}
.maxw-xl { max-width: 640px; }
.maxw-2xl { max-width: 720px; }
.tint { background: var(--mist); }
.tint-oat { background: var(--oat-deep); }
.rule { height:1px; background: var(--line); border:0; }

/* soft botanical page wash behind hero-ish sections */
.wash {
  position: relative; overflow: clip;
}
.wash::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(48rem 34rem at 88% -8%, rgba(124,152,133,.20), transparent 62%),
    radial-gradient(40rem 30rem at 6% 4%, rgba(124,152,133,.12), transparent 58%);
}
.wash > * { position: relative; z-index: 1; }

/* 5. BUTTONS & PILLS ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .95em 1.5em; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage-700); color: #fff; box-shadow: 0 10px 26px -12px rgba(62,84,69,.7); }
.btn-primary:hover { background: var(--sage-800); box-shadow: 0 16px 40px -14px rgba(62,84,69,.72); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--sage-800); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--white); border-color: var(--sage); color: var(--sage-800); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-soft { background: var(--white); color: var(--sage-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-soft:hover { border-color: var(--sage); transform: translateY(-1px); }
.btn-lg { font-size: 1.06rem; padding: 1.05em 1.9em; }
.btn-sm { font-size: .86rem; padding: .7em 1.1em; }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(3px); }

.link { color: var(--sage-700); font-weight: 600; display: inline-flex; align-items: center; gap: .35em; }
.link:hover { color: var(--sage-800); }

.badge {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 600; color: var(--sage-800);
  background: var(--mist); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: .42em .9em;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.badge-clay { color: #8a5a38; background: #F4E9E1; border-color: #E7D3C4; }
.badge-outline { background: transparent; }

.kicker { display:inline-flex; gap:.6em; align-items:center; }
.kicker .line { width: 26px; height: 1.5px; background: var(--sage); border-radius: 2px; }

/* 6. NAV & FOOTER ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.82); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); display:inline-flex; align-items:center; gap:.5rem; }
.brand .leaf { width: 20px; height: 20px; }
.nav-links { display: none; align-items: center; gap: 22px; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--body); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-signin { font-size: .93rem; font-weight: 600; color: var(--ink-2); }
.nav-signin:hover { color: var(--sage-800); }
@media (min-width: 992px) { .nav-links { display: flex; } }
@media (max-width: 640px) { .nav-signin { display: none; } }

/* Hamburger button — three bars that morph to an X when open */
.nav-toggle {
  display: none; width: 42px; height: 42px; flex: none;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink-2);
  transition: border-color .18s ease, background .18s ease;
}
.nav-toggle:hover { border-color: var(--sage); background: var(--white); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; left: 0; top: -6px; }
.nav-toggle .bars::after  { position: absolute; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
.nav-mobile { display: none; border-top: 1px solid var(--line); background: rgba(247,245,240,.97); backdrop-filter: blur(14px); }
.nav-mobile .container { display: flex; flex-direction: column; gap: 2px; padding-block: 12px 18px; }
.nav-mobile a { padding: 13px 10px; font-size: 1.02rem; font-weight: 500; color: var(--ink-2); border-radius: 10px; }
.nav-mobile a:hover, .nav-mobile a:focus-visible { background: var(--mist); color: var(--ink); }
.nav-mobile .btn { margin-top: 8px; }
.nav-mobile .divider { height: 1px; background: var(--line); margin: 8px 0; }
.nav-mobile.open { display: block; animation: navDrop .22s cubic-bezier(.16,1,.3,1) both; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 991px) { .nav-toggle { display: inline-flex; } }
@media (min-width: 992px) { .nav-mobile { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .nav-mobile.open { animation: none; } .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { transition: none; } }

.footer { background: var(--ink); color: #C4CCC5; }
.footer a { color: #C4CCC5; transition: color .18s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 72px; }
.footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #8A968C; font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; font-size: .93rem; }
.footer .brand { color: #fff; }
.footer .fine { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; font-size: .82rem; color: #8A968C; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.footer .trust li { display:flex; gap:.5em; align-items:center; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* 7. CARDS & BLOCKS -------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-flush { padding: 0; overflow: hidden; }

.icn {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mist); color: var(--sage-700); border: 1px solid var(--line-2);
}
.icn svg { width: 22px; height: 22px; }
.icn-fill { background: var(--sage-700); color: #fff; border-color: transparent; }

/* feature teaser (landing) */
.teaser { display: block; height: 100%; }
.teaser .card { height: 100%; display: flex; flex-direction: column; }
.teaser h3 { margin-top: 18px; }
.teaser p { margin-top: 8px; flex: 1; }
.teaser .link { margin-top: 16px; }

/* checklist woven into prose, not a dump */
.checks { list-style: none; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--body); }
.checks .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--mist); color: var(--sage-700); display: grid; place-items: center;
  font-size: 12px; border: 1px solid var(--line-2);
}
.checks.two { grid-template-columns: 1fr 1fr; gap: 14px 30px; }
@media (max-width: 620px) { .checks.two { grid-template-columns: 1fr; } }

/* the "friction" panel — muted, slightly anxious before-state */
.friction {
  background: var(--oat-deep); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
}
.friction .pain { display: flex; gap: 14px; align-items: flex-start; }
.friction .pain + .pain { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.friction .x {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #F1E4E0; color: var(--rose); font-size: 14px; margin-top: 1px;
}
.friction .pain b { color: var(--ink-2); display:block; }
.friction .pain span { color: var(--muted); font-size: .94rem; }

/* act block (numbered story beat) */
.act-num { font-family: var(--serif); font-size: 2.4rem; color: var(--sage); line-height: 1; font-weight: 400; }
.act-tag { font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing:.12em; text-transform: uppercase; color: var(--sage-700); }

/* quote / testimonial */
.quote { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.05rem); line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.byline { display:flex; align-items:center; gap:14px; margin-top: 28px; }
.byline .ph { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--sage), var(--sage-700)); }
.byline b { color: var(--ink-2); display:block; font-size:.95rem;}
.byline span { color: var(--muted); font-size: .88rem; }

/* CTA band — light sage, never dark */
.cta-band {
  background:
    radial-gradient(40rem 24rem at 50% -30%, rgba(124,152,133,.28), transparent 60%),
    var(--mist);
  border-radius: var(--r-xl); padding: clamp(48px, 7vw, 92px) 24px; text-align: center;
}

/* trust strip logos row */
.trust-strip { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: 14px 34px; }
.trust-strip .t { display:inline-flex; align-items:center; gap:.5em; color: var(--muted); font-weight:600; font-size:.9rem; }

/* 8. HERO ------------------------------------------------------------------ */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 22px; max-width: 46ch; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 20px; font-size: .88rem; color: var(--muted); display:flex; align-items:center; gap:.5em; }

/* feature page hero (centered) */
.fhero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(40px, 5vw, 60px); text-align: center; }
.fhero h1 { max-width: 18ch; margin-inline: auto; }
.fhero .lead { margin: 22px auto 0; max-width: 54ch; }
.fhero .hero-actions { justify-content: center; }

/* 9. PROOF / STATS --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat .n { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--ink); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.stat .l { margin-top: 10px; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 28px; text-align:center; } }
.payoff-card { background: var(--ink); color: #E7ECE6; border-radius: var(--r-xl); padding: clamp(40px,6vw,72px); }
.payoff-card .stat .n { color: #fff; }
.payoff-card .stat .l { color: #A9B4AB; }
.payoff-card .eyebrow { color: #9FBBA6; }

/* ============================================================================
   10. MOCKUP TOOLKIT — impressionistic UI
   Recognizable-but-abstract building blocks. Compose in markup; never a
   pixel-accurate render, just enough to say "this is what's happening."
   ========================================================================== */
.mock {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-float { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.mock-chrome {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: var(--oat);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--mist-2); }
.mock-dots i:nth-child(1){ background:#E4C9BE; } .mock-dots i:nth-child(2){ background:#E7DBBA; } .mock-dots i:nth-child(3){ background:#C9DBC7; }
.mock-url { flex: 1; height: 22px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); display:flex; align-items:center; padding: 0 12px; }
.mock-url span { font-size: 11px; color: var(--muted); }
.mock-body { padding: 20px; }
.mock-title { font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.mock-cap { color: var(--muted); font-size: .8rem; }

/* skeleton primitives */
.m-bar { height: 9px; border-radius: 6px; background: var(--mist); }
.m-bar.ink { background: var(--mist-2); }
.m-bar.sage { background: var(--sage); opacity: .7; }
.m-bar.tall { height: 12px; }
.w-100{width:100%}.w-90{width:90%}.w-80{width:80%}.w-70{width:70%}.w-60{width:60%}.w-55{width:55%}.w-45{width:45%}.w-40{width:40%}.w-30{width:30%}.w-25{width:25%}
.m-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--mist), var(--sage)); flex:none; }
.m-avatar.sm { width: 26px; height: 26px; }
.m-chip { display:inline-flex; align-items:center; gap:6px; font-size: 11px; font-weight:600; color: var(--sage-800); background: var(--mist); border:1px solid var(--line-2); border-radius: var(--r-pill); padding: 4px 10px; }
.m-chip.warn { color:#8a5a38; background:#F3E8DF; border-color:#E7D3C4; }
.m-chip.good { color:#3E6B4E; background:#DFEBDE; border-color:#CDDECC; }
.m-pill { height: 26px; border-radius: var(--r-pill); background: var(--mist); }
.m-row { display:flex; align-items:center; gap: 12px; }
.m-card { border:1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--white); }
.m-flex { display:flex; } .m-between{ justify-content:space-between; } .m-center{ align-items:center; }
.m-gap-6{gap:6px}.m-gap-10{gap:10px}.m-gap-14{gap:14px}
.m-col { display:flex; flex-direction:column; }

/* calendar */
.m-cal { display: grid; grid-template-columns: 34px repeat(4, 1fr); gap: 6px; }
.m-cal .head { font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 4px; }
.m-cal .time { font-size: 10px; color: var(--muted); display:flex; align-items:center; justify-content:flex-end; padding-right:4px; }
.m-slot { height: 30px; border-radius: 8px; background: var(--mist); }
.m-slot.free { background: repeating-linear-gradient(-45deg, var(--oat), var(--oat) 4px, var(--oat-deep) 4px, var(--oat-deep) 8px); }
.m-slot.book { background: var(--sage); opacity:.85; }
.m-slot.book.b2 { background: var(--sage-700); }
.m-slot.book.clay { background: var(--clay); opacity:.8; }
.m-slot.hl { background: var(--sage-700); box-shadow: 0 0 0 3px rgba(80,106,87,.18); position:relative; }
.m-slot.hl::after { content:""; position:absolute; inset:0; border-radius:8px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }

/* chart / SOAP note */
.m-note .m-line { display:flex; gap:10px; align-items:center; margin-top:12px; }
.m-note .tag { font-family: var(--serif); font-weight:600; color: var(--sage-700); width: 20px; font-size: .9rem; flex:none; }
.m-sign { margin-top:16px; padding-top:14px; border-top:1px dashed var(--line-2); display:flex; align-items:center; gap:10px; }
.m-signline { font-family: "Fraunces", serif; font-style: italic; color: var(--sage-700); font-size: 1.1rem; opacity:.8; }

/* invoice */
.m-inv-row { display:flex; justify-content:space-between; align-items:center; padding: 10px 0; border-bottom:1px solid var(--line); }
.m-inv-row .amt { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight:600; font-size:.85rem; }
.m-inv-total { display:flex; justify-content:space-between; align-items:center; padding-top:12px; }
.m-inv-total .amt { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }

/* chat / reminder bubbles */
.m-bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: .82rem; line-height:1.4; }
.m-bubble.them { background: var(--mist); color: var(--ink-2); border-bottom-left-radius: 5px; align-self:flex-start; }
.m-bubble.me { background: var(--sage-700); color: #fff; border-bottom-right-radius: 5px; align-self:flex-end; }
.m-thread { display:flex; flex-direction:column; gap:10px; }

/* charts (insights) */
.m-cols { display:flex; align-items:flex-end; gap: 10px; height: 128px; }
.m-cols .col { flex:1; border-radius: 7px 7px 0 0; background: var(--mist-2); }
.m-cols .col.on { background: linear-gradient(180deg, var(--sage), var(--sage-700)); }
.m-donut { width: 120px; height: 120px; border-radius: 50%; display:grid; place-items:center;
  background: conic-gradient(var(--sage-700) 0 68%, var(--clay) 68% 84%, var(--mist-2) 84% 100%); }
.m-donut .hole { width: 74px; height: 74px; border-radius:50%; background: var(--paper); display:grid; place-items:center; }
.m-donut .hole b { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.m-spark { width:100%; height: 60px; }

/* body chart (telehealth/charting) */
.m-body svg { width: 88px; height: auto; margin-inline:auto; }
.m-body .pt { fill: var(--rose); }

/* video call */
.m-video { position:relative; border-radius: 14px; overflow:hidden; background: linear-gradient(160deg,#4A5D4E,#2C3330); aspect-ratio: 16/10; }
.m-video .self { position:absolute; right:10px; bottom:10px; width:34%; aspect-ratio:16/11; border-radius:8px; background: linear-gradient(160deg,var(--sage),var(--sage-700)); border:2px solid rgba(255,255,255,.6); }
.m-video .who { position:absolute; left:12px; bottom:12px; font-size:11px; font-weight:600; color:#fff; background:rgba(0,0,0,.35); padding:3px 9px; border-radius:var(--r-pill); backdrop-filter: blur(4px); }
.m-video .ctrl { position:absolute; left:50%; top:12px; transform:translateX(-50%); display:flex; gap:8px; }
.m-video .ctrl i { width:26px; height:26px; border-radius:50%; background:rgba(255,255,255,.85); }

/* decorative floating tags pinned to a mockup */
.pin { position:absolute; z-index:3; background: var(--paper); border:1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 9px 12px; display:flex; align-items:center; gap:9px; font-size:.8rem; font-weight:600; color: var(--ink-2); }
.pin .ic { width:24px;height:24px;border-radius:8px; background:var(--mist); display:grid;place-items:center; color:var(--sage-700); }
.pin .ic.good{ background:#DFEBDE; color:#3E6B4E; }

/* FORMS -------------------------------------------------------------------- */
.field {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: .8em 1em; transition: border-color .18s ease, box-shadow .18s ease;
}
.field::placeholder { color: #A7B0A9; }
.field:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(124,152,133,.18); }
.form-label { display:block; margin-bottom: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.form-error { background:#F5E7E3; color:#9A4A3B; border:1px solid #E7CFC7; border-radius: var(--r-sm); padding:.65em 1em; font-size:.9rem; }

/* 11. MOTION --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.rd-1{transition-delay:.08s}.rd-2{transition-delay:.16s}.rd-3{transition-delay:.24s}.rd-4{transition-delay:.32s}.rd-5{transition-delay:.4s}
.fade-up { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(16px);} to { opacity:1; transform:none; } }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
.floaty { animation: floaty 7s ease-in-out infinite; }
.floaty-2 { animation: floaty 9s ease-in-out infinite; }
@keyframes breathe { 0%,100%{ transform: scale(.94); opacity:.6;} 50%{ transform: scale(1.06); opacity:.95;} }
.breathe { animation: breathe 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fade-up, .floaty, .floaty-2, .breathe, .mock-float { animation: none !important; }
}
