/* ==========================================================================
   EzeHealth — site.css  (hand-built design system, no framework)
   Direction: "the clinical chart, reimagined" — warm paper, forest ink,
   ruled lines, mono chart labels, a night-shift dark act, ember CTAs.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #15211b;
  --ink-2: #3a4a41;
  --ink-3: #66756c;
  --forest: #1d3a2a;
  --moss: #46603d;
  --sage: #93a68e;
  --sage-2: #cfd8c9;
  --paper: #f6f0e5;
  --paper-2: #ede5d3;
  --paper-3: #e3d9c3;
  --white: #fffdf8;
  --night: #0f1a14;
  --night-2: #16261d;
  --ember: #c4562b;
  --ember-2: #a8461f;
  --ember-soft: #f3dccf;
  --mint: #2f9e6d;
  --mint-soft: #d9efe3;
  --amber: #d99a2b;
  --amber-soft: #f7ead0;
  --rose: #c94a4a;
  --rose-soft: #f4dada;
  --line: rgba(21, 33, 27, .14);
  --line-strong: rgba(21, 33, 27, .32);
  --line-light: rgba(255, 253, 248, .14);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --measure: 62ch;
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(21, 33, 27, .06), 0 8px 24px -12px rgba(21, 33, 27, .18);
  --shadow-2: 0 2px 4px rgba(21, 33, 27, .06), 0 30px 60px -24px rgba(21, 33, 27, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ember-soft); color: var(--ink); }

/* grain — one subtle layer over the whole page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .055; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- typography ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; line-height: 1.05; font-variation-settings: "SOFT" 60, "opsz" 96; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 400; color: var(--moss); font-variation-settings: "SOFT" 100, "opsz" 96; }
.on-dark h1 em, .on-dark h2 em, .on-forest h2 em { color: var(--sage); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
.on-dark .lede, .on-forest .lede { color: rgba(255, 253, 248, .74); }
.small { font-size: .9375rem; color: var(--ink-3); }
.on-dark .small, .on-forest .small { color: rgba(255,253,248,.55); }
.mono, .label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.label { display: inline-flex; align-items: center; gap: .7rem; color: var(--moss); font-weight: 500; }
.label::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: .7; }
.on-dark .label, .on-forest .label { color: var(--sage); }
.label.no-rule::before { display: none; }
.measure { max-width: var(--measure); }
.center { text-align: center; }
.center .label { justify-content: center; }
.center .lede, .center .measure, .center h2 { margin-inline: auto; }

/* ---------- layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 52rem; }
.container.wide { max-width: 88rem; }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { max-width: 20ch; }
.section-head.split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.3fr 1fr; gap: 3rem; } .section-head.split .lede { margin-bottom: .35rem; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-media { grid-template-columns: .9fr 1.1fr; } .split.flip > :first-child { order: 2; } }

/* backgrounds */
.on-dark { background: var(--night); color: var(--white); }
.on-forest { background: var(--forest); color: var(--white); }
.on-paper-2 { background: var(--paper-2); }
.on-white { background: var(--white); }
.on-dark, .on-forest { --line: var(--line-light); --line-strong: rgba(255,253,248,.35); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  line-height: 1; white-space: nowrap; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--ember); color: var(--white); box-shadow: 0 10px 24px -10px rgba(196, 86, 43, .7); }
.btn-primary:hover { background: var(--ember-2); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--forest); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.on-dark .btn-ghost, .on-forest .btn-ghost { color: var(--white); }
.on-dark .btn-ghost:hover, .on-forest .btn-ghost:hover { background: rgba(255,253,248,.08); border-color: var(--white); }
.on-dark .btn-ink, .on-forest .btn-ink { background: var(--white); color: var(--ink); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #197f45; }
.btn-lg { padding: 1.15rem 1.9rem; font-size: 1.0625rem; }
.btn-sm { padding: .65rem 1.1rem; font-size: .9rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link { font-weight: 600; color: var(--moss); border-bottom: 1px solid currentColor; padding-bottom: .1em; transition: color .2s; }
.link:hover { color: var(--ember); }
.link-arrow::after { content: " \2192"; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 240, 229, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(21,33,27,.5); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; overflow: visible; background: transparent; border-radius: 0; }
.brand { display: inline-flex; align-items: baseline; gap: .6rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--forest); font-variation-settings: "SOFT" 40; }
.brand strong { color: var(--ember); font-weight: 600; }
.brand small { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line-strong); padding-left: .6rem; }
.nav { display: none; align-items: center; gap: 1.75rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink-2); position: relative; padding-block: .3rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ember); transition: right .3s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--ink); }
.header-cta { display: none; gap: .6rem; align-items: center; }
.nav-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--line-strong); }
.nav-toggle span { display: block; width: 1.15rem; height: 2px; background: var(--ink); position: relative; transition: transform .3s, background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: grid; padding: 1rem 0 1.5rem; }
.mobile-nav a { display: block; padding: .8rem 0; font-size: 1.15rem; font-family: var(--font-display); border-bottom: 1px solid var(--line); }
.mobile-nav .btn-group { padding-top: 1.25rem; }
@media (min-width: 1024px) { .nav, .header-cta { display: flex; } .nav-toggle, .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(70, 96, 61, .16), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(196, 86, 43, .12), transparent 60%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; position: relative; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }
.hero h1 { max-width: 11ch; margin-block: 1.25rem 1.5rem; }
.hero .lede { margin-bottom: 2rem; }
.hero-note { margin-top: 1rem; }
.hero-note .mono { color: var(--ink-3); letter-spacing: .08em; text-transform: none; }

/* proof strip */
.proof-strip { border-block: 1px solid var(--line); margin-top: clamp(3rem, 6vw, 5rem); }
.proof-strip .container { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .proof-strip .container { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.6rem 1.25rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
@media (max-width: 799px) { .stat:nth-child(2n) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.stat b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -.02em; color: var(--forest); }
.stat span { display: block; margin-top: .5rem; font-size: .9rem; color: var(--ink-3); }
.on-dark .stat b, .on-forest .stat b { color: var(--white); } .on-dark .stat span, .on-forest .stat span { color: rgba(255,253,248,.6); }

/* ---------- product UI mockups (drawn in HTML) ---------- */
.device {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); overflow: hidden; font-size: .8125rem; color: var(--ink-2);
}
.device-bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.device-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--paper-3); }
.device-bar .url { flex: 1; margin-left: .5rem; text-align: center; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); background: var(--white); border-radius: 6px; padding: .25rem .6rem; border: 1px solid var(--line); }
.device-body { padding: 1rem; display: grid; gap: .8rem; }
.device-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; color: var(--ink); font-size: .85rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kpi { background: var(--paper); border-radius: 10px; padding: .75rem .6rem; text-align: center; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--forest); line-height: 1.1; }
.kpi span { font-size: .68rem; color: var(--ink-3); }
.row { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border-radius: 10px; background: var(--paper); }
.avatar { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .62rem; font-weight: 600; background: var(--sage-2); color: var(--forest); flex: none; }
.avatar.warm { background: var(--ember-soft); color: var(--ember-2); }
.avatar.ink { background: var(--forest); color: var(--white); }
.avatar.lg { width: 2.75rem; height: 2.75rem; font-size: .8rem; }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; font-weight: 600; color: var(--ink); font-size: .8rem; }
.row .who span { font-size: .7rem; color: var(--ink-3); }
.pill { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .55rem; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--mint-soft); color: #1f7a52; }
.pill.warn { background: var(--amber-soft); color: #9a6a12; }
.pill.info { background: var(--sage-2); color: var(--forest); }
.pill.crit { background: var(--rose-soft); color: #9d3434; }
.ava-bar { display: flex; align-items: center; gap: .6rem; background: var(--forest); color: var(--white); border-radius: 10px; padding: .7rem .85rem; font-size: .75rem; }
.ava-bar i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(47,158,109,.25); animation: blink 2.4s infinite; flex: none; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.float-card { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; box-shadow: var(--shadow-1); font-size: .78rem; display: flex; gap: .6rem; align-items: center; animation: drift 6s var(--ease) infinite; }
.float-card.tl { top: -1.2rem; left: -1.5rem; } .float-card.br { bottom: -1.4rem; right: -1.2rem; animation-delay: -3s; }
.hero-visual { position: relative; }
@keyframes drift { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@media (max-width: 480px) { .float-card { display: none; } }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.profile-grid div { background: var(--paper); border-radius: 10px; padding: .7rem .8rem; }
.profile-grid .mono { display: block; font-size: .58rem; color: var(--ink-3); margin-bottom: .2rem; }
.profile-grid b { display: block; color: var(--ink); font-size: .8rem; }
.profile-grid span { font-size: .72rem; color: var(--ink-3); }

/* chat mockup (dark) */
.chat { background: var(--night-2); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); font-size: .85rem; color: rgba(255,253,248,.85); }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line-light); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.chat-head i { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--mint); margin-right: .45rem; box-shadow: 0 0 0 3px rgba(47,158,109,.25); }
.chat-body { padding: 1rem; display: grid; gap: .8rem; }
.msg { max-width: 88%; padding: .75rem .95rem; border-radius: 14px; line-height: 1.5; }
.msg.user { justify-self: end; background: rgba(255,253,248,.1); border: 1px solid rgba(255,253,248,.12); border-bottom-right-radius: 4px; }
.msg.ava { justify-self: start; background: rgba(147,166,142,.14); border: 1px solid rgba(147,166,142,.2); border-bottom-left-radius: 4px; }
.msg .from { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: .35rem; }
.vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .6rem; }
.vitals div { background: rgba(0,0,0,.25); border-radius: 8px; padding: .5rem .4rem; text-align: center; }
.vitals b { display: block; font-family: var(--font-mono); font-size: .8rem; color: var(--white); }
.vitals span { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.chat-input { display: flex; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line-light); align-items: center; }
.chat-input span { flex: 1; background: rgba(255,253,248,.06); border: 1px solid rgba(255,253,248,.1); border-radius: 999px; padding: .55rem .9rem; color: rgba(255,253,248,.4); font-size: .8rem; }
.chat-input b { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ember); display: grid; place-items: center; color: #fff; flex: none; }

/* MAR / table mockup */
.table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.table th, .table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.table td b { display: block; color: var(--ink); font-weight: 600; } .table td small { color: var(--ink-3); }
.table .c { text-align: center; }
.dot { display: inline-block; width: 1.25rem; height: 1.25rem; border-radius: 50%; vertical-align: middle; }
.dot.done { background: var(--mint); position: relative; } .dot.done::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 700; }
.dot.due { border: 2px solid var(--amber); } .dot.na { border: 1px dashed var(--line-strong); }

/* progress bars */
.meter { height: .45rem; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--moss); border-radius: inherit; }
.goal { display: grid; gap: .4rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.goal:last-child { border: 0; }
.goal header { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink); }

/* sparkline */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 3.2rem; }
.spark i { flex: 1; background: var(--sage-2); border-radius: 3px 3px 0 0; }
.spark i.hi { background: var(--ember); }
.spark i.mid { background: var(--moss); }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card .num { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--ember); margin-bottom: 1.1rem; display: block; }
.card.dark { background: var(--night-2); border-color: var(--line-light); color: var(--white); }
.card.dark p { color: rgba(255,253,248,.7); }
.card.dark h3 { color: var(--white); }
.icon { width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--forest); margin-bottom: 1.1rem; }
.icon svg { width: 1.25rem; height: 1.25rem; }
.card.dark .icon { background: rgba(147,166,142,.15); color: var(--sage); }

/* pain list */
.pain { display: grid; gap: .75rem; }
.pain li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--rose); border-radius: var(--radius-sm); font-size: .98rem; }
.pain li:nth-child(2) { border-left-color: var(--amber); } .pain li:nth-child(3) { border-left-color: var(--ember); } .pain li:nth-child(4) { border-left-color: var(--moss); }
.pain .mono { color: var(--ink-3); flex: none; padding-top: .2rem; }

/* layers (platform architecture) */
.layers { display: grid; gap: 1rem; }
@media (min-width: 900px) { .layers { grid-template-columns: repeat(3, 1fr); } }
.layer { position: relative; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--forest); border-radius: var(--radius); padding: 2rem 1.75rem 1.75rem; }
.layer:nth-child(2) { border-top-color: var(--moss); } .layer:nth-child(3) { border-top-color: var(--ember); }
.layer .num { font-family: var(--font-display); font-size: 3rem; font-weight: 300; line-height: 1; color: var(--paper-3); position: absolute; top: 1rem; right: 1.25rem; }
.layer .kicker { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.layer h3 { margin-bottom: .75rem; }
.layer p { color: var(--ink-2); font-size: .97rem; }

/* feature list */
.checks { display: grid; gap: .6rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .25rem; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f7a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/70% no-repeat; }
.on-dark .checks li, .on-forest .checks li { color: rgba(255,253,248,.78); }

/* ---------- night-shift section ---------- */
.night { position: relative; overflow: hidden; }
.night::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50rem 30rem at 20% 20%, rgba(70,96,61,.35), transparent 60%), radial-gradient(40rem 30rem at 90% 90%, rgba(196,86,43,.14), transparent 60%); pointer-events: none; }
.night .container { position: relative; }
.clock { font-family: var(--font-mono); font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 300; letter-spacing: .04em; color: var(--white); line-height: 1; }
.clock small { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-top: .75rem; font-weight: 400; }
.clock .sep { animation: blink 1s steps(1) infinite; }
.night-proof { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 720px) { .night-proof { grid-template-columns: 1fr 1fr; } }
.night-proof li { border-top: 1px solid var(--line-light); padding-top: 1rem; }
.night-proof b { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--white); margin-bottom: .25rem; }
.night-proof span { color: rgba(255,253,248,.62); font-size: .95rem; }

/* ---------- feature sections (features page) ---------- */
.feature { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.feature.first { border-top: 0; }
.feature .kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
.feature .kicker::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.feature h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.feature .lede { font-size: 1.1rem; margin-bottom: 1.5rem; }
.module-index { display: flex; flex-wrap: wrap; gap: .5rem; }
.module-index a { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); transition: all .2s; }
.module-index a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- quotes ---------- */
.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } .quotes .quote:nth-child(2) { transform: translateY(1.5rem); } }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.quote p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; font-weight: 400; color: var(--ink); font-variation-settings: "SOFT" 100; }
.quote p::before { content: "\201C"; color: var(--ember); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-right: .1em; }
.quote footer { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote footer b { display: block; font-size: .95rem; } .quote footer span { font-size: .85rem; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; text-align: left; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.faq-q:hover { color: var(--ember); }
.faq-q .plus { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-body); font-weight: 400; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); background: var(--ink); color: var(--white); border-color: var(--ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: 1.4rem; color: var(--ink-2); max-width: var(--measure); }

/* ---------- pricing ---------- */
.price-cards { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .price-cards { grid-template-columns: 1fr 1.15fr; } }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem; display: grid; gap: 1.25rem; align-content: start; }
.price-card.hi { background: var(--forest); color: var(--white); border-color: transparent; }
.price-card.hi p, .price-card.hi .small { color: rgba(255,253,248,.72); }
.price-card.hi .label { color: var(--sage); }
.price-card .amount { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.price-card .amount small { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-left: .4rem; font-weight: 400; }
.price-card .amount sup { font-size: .45em; vertical-align: super; font-weight: 400; }
.tiers { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--white); padding: 1.75rem; }
.tier .mono { color: var(--ink-3); }
.tier b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 500; margin: .8rem 0 .2rem; }
.tier span { color: var(--ink-3); font-size: .9rem; }
.includes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .includes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .includes { grid-template-columns: repeat(3, 1fr); } }
.includes li { background: var(--white); padding: 1.35rem 1.5rem; }
.includes b { display: block; font-weight: 600; margin-bottom: .2rem; }
.includes span { font-size: .9rem; color: var(--ink-3); }
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.step::before { content: "0" counter(step); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--ember); display: block; margin-bottom: .75rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--ink-2); font-size: .95rem; }

/* ---------- about ---------- */
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: .5rem; }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -.4rem; top: .45rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px var(--paper); }
.timeline .mono { color: var(--ink-3); display: block; margin-bottom: .3rem; }
.timeline b { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; margin-bottom: .3rem; }
.timeline p { color: var(--ink-2); max-width: 50ch; }
.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
.values li { background: var(--white); padding: 2rem; }
.values b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin-bottom: .5rem; }
.values p { color: var(--ink-2); font-size: .97rem; }
.mission { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.3; font-weight: 400; font-variation-settings: "SOFT" 100; max-width: 28ch; }
.mission em { color: var(--sage); }

/* ---------- contact ---------- */
.form { display: grid; gap: 1.1rem; }
.form .two { display: grid; gap: 1.1rem; } @media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(29,58,42,.12); }
.field textarea { min-height: 9rem; resize: vertical; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.consent input { margin-top: .3rem; accent-color: var(--forest); width: 1rem; height: 1rem; flex: none; }
.alert { padding: 1rem 1.25rem; border-radius: 10px; font-size: .95rem; border: 1px solid; }
.alert.ok { background: var(--mint-soft); border-color: rgba(47,158,109,.35); color: #1f5c3f; }
.alert.err { background: var(--rose-soft); border-color: rgba(201,74,74,.35); color: #8a2f2f; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.contact-side { display: grid; gap: 1.75rem; align-content: start; }
.contact-line { display: flex; gap: 1rem; align-items: flex-start; }
.contact-line .icon { margin: 0; flex: none; }
.contact-line b { display: block; font-weight: 600; } .contact-line span, .contact-line a { color: var(--ink-2); font-size: .95rem; display: block; }
.contact-line a:hover { color: var(--ember); }
.after { display: grid; gap: 1.25rem; counter-reset: after; }
.after li { counter-increment: after; display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; }
.after li::before { content: counter(after); width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; }
.after b { display: block; margin-bottom: .2rem; } .after span { color: var(--ink-2); font-size: .95rem; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-1); }

/* ---------- blog ---------- */
.cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.cats a { font-size: .85rem; font-weight: 500; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); transition: all .2s; }
.cats a:hover, .cats a.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cats a small { opacity: .6; margin-left: .3rem; }
.posts { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--paper-2); overflow: hidden; display: block; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb.empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--forest), var(--moss)); color: var(--sage-2); font-family: var(--font-display); font-size: 2rem; font-weight: 300; }
.post-card .body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card .meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: .6rem; flex-wrap: wrap; }
.post-card .meta b { color: var(--ember); font-weight: 500; }
.post-card h3 { font-size: 1.3rem; }
.post-card h3 a:hover { color: var(--ember); }
.post-card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span { min-width: 2.5rem; height: 2.5rem; padding-inline: .6rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .8rem; }
.pagination .is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a:hover { color: var(--ember); }
.crumbs > * + *::before { content: "/"; margin-right: .5rem; opacity: .5; }
.post-hero { padding-block: clamp(2rem, 5vw, 4rem) 0; }
.post-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); max-width: 22ch; margin-block: 1.25rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; font-size: .9rem; color: var(--ink-3); }
.post-figure { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.share { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.share a { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.share a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- prose (blog body + legal) ---------- */
.prose { max-width: var(--measure); font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--ink); margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin-top: 1.8em; }
.prose h4 { font-size: 1.1rem; color: var(--ink); margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose p strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .5em; }
.prose ul li { list-style: disc; } .prose ol li { list-style: decimal; }
.prose a { color: var(--moss); text-decoration: underline; text-underline-offset: .15em; } .prose a:hover { color: var(--ember); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose blockquote { border-left: 3px solid var(--ember); padding: .5rem 0 .5rem 1.5rem; font-family: var(--font-display); font-size: 1.25em; line-height: 1.4; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--paper-2); }
.legal-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 5vw, 4rem); }
.legal-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-block: 1rem .75rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45rem 25rem at 80% 120%, rgba(196,86,43,.28), transparent 60%), radial-gradient(35rem 20rem at 10% -20%, rgba(147,166,142,.25), transparent 60%); pointer-events: none; }
.cta-band .container { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.3fr 1fr; } .cta-band .btn-group { justify-content: flex-end; } }
.cta-band h2 { max-width: 16ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: rgba(255,253,248,.72); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .brand { color: var(--white); } .site-footer .brand small { color: rgba(255,253,248,.5); border-color: rgba(255,253,248,.25); }
.site-footer h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin: 0 0 1.1rem; font-weight: 500; }
.site-footer li + li { margin-top: .55rem; }
.site-footer a:hover { color: var(--white); }
.site-footer p { font-size: .95rem; max-width: 34ch; margin-top: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .85rem; color: rgba(255,253,248,.5); }
.footer-bottom .mono { letter-spacing: .08em; text-transform: none; }

/* ---------- cookie ---------- */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 1rem 1.25rem; display: none; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow-2); font-size: .9rem; }
.cookie.is-visible { display: flex; }
.cookie a { text-decoration: underline; color: var(--sage-2); }
@media (min-width: 640px) { .cookie { left: auto; max-width: 30rem; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* If the observer never fires (throttled tab, old browser), content still appears after 2.5s */
@keyframes force-in { to { opacity: 1; transform: none; } }
.js .reveal:not(.is-in) { animation: force-in .6s var(--ease) 2.5s forwards; }
.reveal.d1 { transition-delay: .1s } .reveal.d2 { transition-delay: .2s } .reveal.d3 { transition-delay: .3s } .reveal.d4 { transition-delay: .4s }
@keyframes rise { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .12s } .rise.d2 { animation-delay: .24s } .rise.d3 { animation-delay: .36s } .rise.d4 { animation-delay: .5s }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- utilities ---------- */
.mt-1 { margin-top: 1rem } .mt-2 { margin-top: 2rem } .mt-3 { margin-top: 3rem } .mb-1 { margin-bottom: 1rem } .mb-2 { margin-bottom: 2rem }
.stack { display: grid; gap: 1rem; } .stack-lg { display: grid; gap: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--white); padding: .75rem 1rem; z-index: 999; border-radius: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .7rem; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-2); }
.on-dark .tag, .on-forest .tag { color: rgba(255,253,248,.75); }
.eyebrow-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow-row b { color: var(--forest); font-weight: 500; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.notfound .big { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 12rem); font-weight: 300; line-height: 1; color: var(--paper-3); }

/* ==========================================================================
   AVA — the human face of the platform. AVA elements carry a clinical blue
   so she is recognisable everywhere; the platform stays forest / ember.
   ========================================================================== */
:root {
  --ava: #2b5fa8;
  --ava-deep: #1c3f74;
  --ava-soft: #e6eef9;
  --ava-soft-2: #d3e0f3;
}
.ava-portrait { position: relative; margin-inline: auto; max-width: 26rem; }
.ava-portrait .frame {
  position: relative; border-radius: 16rem 16rem 1.25rem 1.25rem; overflow: hidden;
  background: radial-gradient(28rem 24rem at 50% 20%, var(--ava-soft-2), var(--ava-soft) 60%, var(--paper) 100%);
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(43,95,168,.12);
  aspect-ratio: 616 / 900;
}
.ava-portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ava-portrait .frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(246,240,229,0) 62%, rgba(246,240,229,.55) 88%, var(--paper) 100%),
              linear-gradient(to right, rgba(246,240,229,.35), transparent 18%, transparent 82%, rgba(246,240,229,.35));
}
.ava-caption { position: relative; margin-top: -2.5rem; text-align: center; padding: 0 1rem; }
.ava-caption .name { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: .04em; color: var(--ava-deep); line-height: 1; }
.ava-caption .role { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink-2); margin-top: .35rem; font-variation-settings: "SOFT" 100; }
.ava-caption .live { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ava); background: var(--white); border: 1px solid var(--ava-soft-2); border-radius: 999px; padding: .4rem .85rem; }
.ava-caption .live i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(47,158,109,.2); animation: blink 2.4s infinite; }
.ava-badge { position: absolute; top: 9%; left: -1.25rem; background: var(--white); border: 1px solid var(--ava-soft-2); border-radius: 12px; padding: .6rem .85rem; box-shadow: var(--shadow-1); font-size: .78rem; display: flex; gap: .6rem; align-items: center; animation: drift 6s var(--ease) infinite; }
.ava-badge.r { left: auto; right: -1.25rem; top: 44%; animation-delay: -3s; }
.ava-badge b { color: var(--ava-deep); }
@media (max-width: 480px) { .ava-badge { display: none; } .ava-portrait { max-width: 20rem; } }

/* hero checklist */
.ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem 1.25rem; margin: 1.5rem 0 2rem; max-width: 34rem; }
.ticks li { display: flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.ticks li::before { content: ""; flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f7a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/70% no-repeat; }
.hero .meet-ava { display: flex; gap: .9rem; align-items: center; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 34rem; }
.hero .meet-ava img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: var(--shadow-1); flex: none; }
.hero .meet-ava b { display: block; color: var(--ava-deep); }
.hero .meet-ava span { font-size: .92rem; color: var(--ink-2); }
.btn-ava { background: var(--ava); color: #fff; box-shadow: 0 10px 24px -10px rgba(43,95,168,.6); }
.btn-ava:hover { background: var(--ava-deep); }

/* AVA callout card — reused beside modules */
.ava-card { display: flex; gap: .9rem; align-items: flex-start; background: var(--ava-soft); border: 1px solid var(--ava-soft-2); border-radius: 12px; padding: .9rem 1rem; margin-top: 1.5rem; max-width: 34rem; }
.ava-card img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); flex: none; }
.ava-card .who { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ava); display: block; margin-bottom: .2rem; }
.ava-card p { font-size: .95rem; color: var(--ink); font-style: italic; font-family: var(--font-display); font-variation-settings: "SOFT" 100; line-height: 1.4; }
.on-dark .ava-card, .on-forest .ava-card { background: rgba(43,95,168,.18); border-color: rgba(43,95,168,.4); }
.on-dark .ava-card p, .on-forest .ava-card p { color: var(--white); }
.on-dark .ava-card .who, .on-forest .ava-card .who { color: #9dbcec; }

/* Grid children must be allowed to shrink below their content's intrinsic width
   (otherwise a 616px image blows the hero out past a 375px phone screen). */
.hero-grid > *, .split > *, .grid > *, .price-cards > *, .posts > * { min-width: 0; }
.ava-portrait { width: 100%; }
.ava-portrait .frame img { max-width: 100%; }

/* ---------- platform: sidebar + forms mockups ---------- */
.app-shell { display: grid; grid-template-columns: 13.5rem 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); overflow: hidden; font-size: .78rem; min-height: 30rem; }
@media (max-width: 640px) { .app-shell { grid-template-columns: 1fr; } .app-shell .sidebar { display: none; } }
.app-shell .sidebar { background: #16283f; color: rgba(255,255,255,.82); padding: 1rem .9rem; display: grid; gap: .25rem; align-content: start; }
.sidebar .sb-brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: #fff; font-size: .85rem; padding: .25rem .4rem .9rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: .5rem; }
.sidebar .sb-brand i { width: 1.4rem; height: 1.4rem; border-radius: 6px; background: var(--mint); display: inline-block; }
.sidebar .sb-group { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: .7rem .4rem .25rem; }
.sidebar .sb-item { display: flex; align-items: center; gap: .5rem; padding: .38rem .5rem; border-radius: 6px; color: rgba(255,255,255,.8); }
.sidebar .sb-item::before { content: ""; width: .55rem; height: .55rem; border: 1.5px solid currentColor; border-radius: 2px; opacity: .6; }
.sidebar .sb-item.active { background: rgba(255,255,255,.12); color: #fff; }
.app-shell .main { padding: 1.1rem 1.25rem; display: grid; gap: .9rem; align-content: start; color: var(--ink-2); }
.app-shell .crumb { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; color: var(--ink-3); }
.app-shell h4 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ink); }
.app-shell .tabs { display: flex; gap: 1rem; border-bottom: 1px solid var(--line); font-size: .74rem; }
.app-shell .tabs span { padding: .4rem 0; color: var(--ink-3); }
.app-shell .tabs span.on { color: var(--forest); border-bottom: 2px solid var(--forest); font-weight: 600; }
.forms-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.forms-stats div { background: var(--white); padding: 1.25rem 1.5rem; }
.forms-stats b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--forest); line-height: 1; }
.forms-stats span { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 640px) { .forms-stats { grid-template-columns: 1fr; } }
.forms-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem 1.2rem; display: grid; gap: .5rem; align-content: start; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.form-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.form-card .tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.form-card .tag-c { font-size: .62rem; font-weight: 600; padding: .22rem .5rem; border-radius: 999px; background: var(--ava-soft); color: var(--ava-deep); }
.form-card .tag-c.care { background: var(--mint-soft); color: #1f7a52; } .form-card .tag-c.incident { background: var(--rose-soft); color: #9d3434; } .form-card .tag-c.compliance { background: var(--amber-soft); color: #9a6a12; } .form-card .tag-c.visits { background: var(--paper-2); color: var(--ink-2); }
.form-card .tag-c.rn { background: #efe4f5; color: #6a3f8a; }
.form-card b { font-size: .95rem; color: var(--ink); }
.form-card p { font-size: .85rem; color: var(--ink-2); }
.form-card .meta { display: flex; gap: .9rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; color: var(--ink-3); margin-top: .2rem; }
.form-card .fill { margin-top: .4rem; background: var(--forest); color: var(--white); text-align: center; border-radius: 6px; padding: .45rem; font-size: .75rem; font-weight: 600; }
.modules { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .modules { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .modules { grid-template-columns: repeat(2, 1fr); } }
.modules > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.modules h3 { font-size: .72rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin-bottom: 1rem; font-weight: 500; }
.modules li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.modules li b { display: block; color: var(--ink); font-weight: 600; }
.modules li span { color: var(--ink-3); font-size: .85rem; }

/* wide editorial figure */
.figure-wide { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); position: relative; }
.figure-wide img { width: 100%; height: auto; display: block; }
.figure-wide figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(21,33,27,.78); color: var(--white); backdrop-filter: blur(6px); border-radius: 10px; padding: .6rem .9rem; font-size: .8rem; max-width: 30rem; }
.figure-wide figcaption b { color: var(--sage-2); }
@media (max-width: 640px) { .figure-wide figcaption { position: static; border-radius: 0; max-width: none; } }

/* status legend in mockups */
.legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .68rem; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: .5rem; height: .5rem; border-radius: 50%; display: inline-block; }
.legend i.ok { background: var(--mint); } .legend i.warn { background: var(--amber); } .legend i.crit { background: var(--rose); } .legend i.info { background: var(--sage); }
.checks .pill { vertical-align: middle; }

/* dose cards (medication administration mockup) */
.dose { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 10px; background: var(--mint-soft); border: 1px solid rgba(47,158,109,.25); }
.dose .who { flex: 1; min-width: 0; }
.dose .who b { display: block; font-weight: 600; color: var(--ink); font-size: .78rem; }
.dose .who span { font-size: .68rem; color: var(--ink-3); display: block; }
.dose .given { font-style: normal; color: #1f7a52; }
.dose-time { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; color: var(--forest); background: var(--white); border-radius: 8px; padding: .5rem .45rem; text-align: center; min-width: 3.2rem; flex: none; }
.dose.prn { background: var(--paper); border-color: var(--line); }
.dose.prn .dose-time { color: var(--ink-3); }
.prn-actions { display: flex; gap: .35rem; margin-top: .35rem; }
.prn-actions i { font-style: normal; font-size: .62rem; font-weight: 600; padding: .25rem .5rem; border-radius: 6px; }
.prn-actions i.ok { background: var(--mint); color: #fff; } .prn-actions i.crit { background: var(--rose-soft); color: #9d3434; } .prn-actions i.warn { background: var(--amber-soft); color: #9a6a12; }

/* ---------- Platform submenu ---------- */
.nav .has-sub { position: relative; display: inline-flex; align-items: center; gap: .2rem; }
.nav .sub-toggle { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; color: var(--ink-3); transition: transform .25s var(--ease), color .2s; }
.nav .has-sub:hover .sub-toggle, .nav .has-sub.is-open .sub-toggle { color: var(--ink); transform: rotate(180deg); }
.nav .sub {
  position: absolute; top: calc(100% + .9rem); left: -1rem; width: 34rem; z-index: 120;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: .9rem;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; } /* hover bridge */
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav .sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
.nav .sub-grid a { display: grid; gap: .1rem; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.nav .sub-grid a::after { display: none; }
.nav .sub-grid a b { font-weight: 600; }
.nav .sub-grid a span { font-size: .75rem; color: var(--ink-3); }
.nav .sub-grid a:hover { background: var(--paper); color: var(--ember); }
.nav .sub-all { display: block; margin-top: .5rem; padding: .6rem .7rem; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--moss); }
.nav .sub-all::after { display: none; }
.nav .sub-all:hover { color: var(--ember); }
/* mobile */
.mobile-nav .m-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mobile-nav .m-row a { border-bottom: 0; flex: 1; }
.mobile-nav .m-sub-toggle { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 1.2rem; line-height: 1; display: grid; place-items: center; transition: transform .25s var(--ease); }
.mobile-nav .m-sub-toggle[aria-expanded="true"] { transform: rotate(45deg); background: var(--ink); color: var(--white); border-color: var(--ink); }
.mobile-nav .m-sub { display: none; padding: .25rem 0 .5rem 1rem; border-bottom: 1px solid var(--line); }
.mobile-nav .m-sub.is-open { display: block; }
.mobile-nav .m-sub a { font-family: var(--font-body); font-size: .98rem; padding: .55rem 0; border-bottom: 0; color: var(--ink-2); }

/* prose extras for long-form guides */
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .85rem; color: var(--ink-3); margin-top: .6rem; }
.prose .refs { font-size: .72em; color: var(--ink-3); white-space: nowrap; }
.prose .refs a { text-decoration: none; color: var(--moss); }
.prose .table-wrap { margin: 1.5rem 0; }
.prose table th[scope="row"] { background: var(--paper); font-weight: 600; }
.prose small { font-size: .85rem; color: var(--ink-3); }
.prose ol li { margin-bottom: .35rem; }
.prose .lede { font-size: 1.2rem; color: var(--ink); }

/* brand + creator credit */
.brand-wrap { display: inline-flex; align-items: baseline; gap: .6rem; }
.brand-by { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line-strong); padding-left: .6rem; transition: color .2s; }
.brand-by:hover { color: var(--ember); }
.site-footer .brand-by { color: rgba(255,253,248,.5); border-color: rgba(255,253,248,.25); }
.site-footer .brand-by:hover { color: var(--white); }
.footer-bottom a:hover { color: var(--white); }
