/* ==========================================================================
   E-Hrudya — design tokens
   Palette: clinical porcelain + deep teal + a single pulse-red accent
   Type: Fraunces (headline serif) / IBM Plex Sans (body) / IBM Plex Mono (data)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,340;9..144,440;9..144,560&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg:        #F6F7F4;
  --paper:     #FFFFFF;
  --ink:       #0F211C;
  --ink-soft:  #4C5D57;
  --ink-faint: #8A9993;
  --teal:      #0B4F49;
  --teal-deep: #072F2B;
  --mint:      #DEE9E3;
  --mint-line: #C4D3CC;
  --pulse:     #E1432B;
  --pulse-dim: #F4CFC7;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html, body{ max-width:100%; overflow-x:hidden; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
body.menu-open{ overflow:hidden; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
:focus-visible{ outline:2px solid var(--pulse); outline-offset:3px; }

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:560;
  line-height:1.08;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
  color:var(--teal-deep);
}
h1{ font-size:clamp(2.4rem, 4.6vw, 4.1rem); font-optical-sizing:auto; }
h2{ font-size:clamp(1.7rem, 2.9vw, 2.5rem); }
h3{ font-size:1.3rem; font-weight:440; }
p{ margin:0 0 1em; color:var(--ink-soft); max-width:62ch; }
.lede{ font-size:1.18rem; color:var(--ink-soft); max-width:46ch; }

.data{ font-family:var(--mono); }

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 32px;
}
section{ padding:88px 0; }
@media (max-width:720px){
  section{ padding:56px 0; }
  .wrap{ padding:0 20px; }
}
@media (max-width:480px){
  h1{ font-size:clamp(1.9rem, 9vw, 2.6rem); }
  h2{ font-size:clamp(1.5rem, 7vw, 1.9rem); }
  .btn{ width:100%; justify-content:center; }
  .btn-row{ flex-direction:column; }
  .btn-row.center, .btn-row[style*="center"]{ align-items:stretch; }
  .readout .cell{ flex:1 1 46%; padding:18px 16px; border-left:none; border-top:1px solid var(--mint-line); }
  .readout .cell:nth-child(1),
  .readout .cell:nth-child(2){ border-top:none; }
  .hero-figures{ gap:24px 28px; }
  .video-caption{ flex-direction:column; align-items:stretch; }
  .video-caption .btn{ width:100%; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:var(--sans);
  font-weight:600;
  font-size:.95rem;
  padding:13px 26px;
  border-radius:3px;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary{ background:var(--pulse); color:#fff; }
.btn-primary:hover{ background:#c3351f; }
.btn-secondary{ background:transparent; color:var(--teal-deep); border-color:var(--teal-deep); }
.btn-secondary:hover{ background:var(--teal-deep); color:#fff; }
.btn-row{ display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }

/* ---------- nav ---------- */
.site-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(246,247,244,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--mint-line);
}
.site-nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.wordmark{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--serif);
  font-weight:560;
  font-size:1.4rem;
  text-decoration:none;
  color:var(--teal-deep);
  letter-spacing:-.01em;
}
.logo-icon{ flex-shrink:0; color:var(--teal); }
.footer-grid .logo-icon{ color:#12615A; }
.wordmark-text{ line-height:1; }
.nav-links{
  display:flex; align-items:center; gap:36px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  text-decoration:none;
  color:var(--ink-soft);
  font-size:.96rem;
  font-weight:500;
  position:relative;
  padding:4px 0;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-3px;
  height:2px; background:var(--pulse);
  transform:scaleX(0); transform-origin:left;
  transition:transform .2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{ transform:scaleX(1); }
.nav-links a[aria-current="page"]{ color:var(--teal-deep); }
.nav-cta{ display:flex; align-items:center; gap:20px; }
.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:44px; height:44px; position:relative;
  flex-shrink:0;
  z-index:110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:11px; right:11px; height:2px; background:var(--teal-deep);
  transition:transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle span{ top:21px; }
.nav-toggle span::before{ top:-8px; }
.nav-toggle span::after{ top:8px; }
.nav-toggle[aria-expanded="true"] span{ background:transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top:0; transform:rotate(45deg); background:var(--pulse); }
.nav-toggle[aria-expanded="true"] span::after{ top:0; transform:rotate(-45deg); background:var(--pulse); }

@media (max-width:880px){
  .site-nav{ position:relative; z-index:100; }
  .nav-links{
    position:fixed;
    top:76px; left:0; right:0; bottom:0;
    width:100%;
    height:calc(100vh - 76px);
    height:calc(100dvh - 76px);
    z-index:90;
    background:var(--paper);
    border-top:1px solid var(--mint-line);
    flex-direction:column;
    align-items:stretch;
    padding:12px 24px 32px;
    gap:0;
    margin:0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    transform:translateX(100%);
    transition:transform .25s ease;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links li{ width:100%; border-bottom:1px solid var(--mint-line); }
  .nav-links li:last-child{ border-bottom:none; }
  .nav-links a{
    display:block;
    width:100%;
    padding:18px 2px;
    font-size:1.08rem;
  }
  .nav-links a::after{ display:none; }
  .nav-links a[aria-current="page"]{ color:var(--pulse); }
  .nav-toggle{ display:block; }
  .nav-cta .btn-primary{ display:none; }
}

/* ---------- ecg trace divider (structural motif, not decoration) ---------- */
.trace{
  width:100%; height:64px;
  overflow:hidden;
}
.trace svg{ width:100%; height:100%; }
.trace path{
  fill:none;
  stroke:var(--pulse);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.trace.thin{ height:34px; }
.trace.dim path{ stroke:var(--mint-line); }

/* animated draw-on for the hero trace only */
.trace.animate path{
  stroke-dasharray:2000;
  stroke-dashoffset:2000;
  animation:draw 2.6s ease-out forwards, run 5.5s linear 2.6s infinite;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }
@keyframes run{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-33.333%); }
}
@media (prefers-reduced-motion: reduce){
  .trace.animate path{ animation:none; stroke-dashoffset:0; }
}

/* ---------- hero ---------- */
.hero{ padding:72px 0 0; }
.hero-inner{
  display:grid;
  grid-template-columns:1.1fr .8fr;
  gap:48px;
  align-items:start;
}
.eyebrow-plain{
  font-family:var(--mono);
  font-size:.82rem;
  color:var(--teal);
  margin-bottom:18px;
}
.hero-figures{
  border-left:1px solid var(--mint-line);
  padding-left:36px;
  display:flex;
  flex-direction:column;
  gap:26px;
}
.figure{ display:flex; flex-direction:column; }
.figure .num{ font-family:var(--mono); font-size:2.1rem; color:var(--teal-deep); }
.figure .label{ font-size:.88rem; color:var(--ink-soft); margin-top:2px; }

@media (max-width:880px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-figures{ border-left:none; border-top:1px solid var(--mint-line); padding-left:0; padding-top:28px; flex-direction:row; flex-wrap:wrap; gap:28px 40px; }
}

/* ---------- readout strip ---------- */
.readout{
  display:flex;
  flex-wrap:wrap;
  border-top:1px solid var(--mint-line);
  border-bottom:1px solid var(--mint-line);
}
.readout .cell{
  flex:1 1 200px;
  padding:28px 32px;
  border-left:1px solid var(--mint-line);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.readout .cell:first-child{ border-left:none; }
.readout .cell .num{ font-family:var(--mono); font-size:1.7rem; line-height:1.15; color:var(--teal-deep); }
.readout .cell .label{ font-size:.86rem; line-height:1.4; color:var(--ink-soft); }

/* ---------- feature rows ---------- */
.feature-row{
  display:grid;
  grid-template-columns:.9fr 1.5fr;
  gap:56px;
  padding:52px 0;
  border-top:1px solid var(--mint-line);
}
.feature-row:last-of-type{ border-bottom:1px solid var(--mint-line); }
.feature-row .tag{ font-family:var(--mono); font-size:.82rem; color:var(--teal); }
@media (max-width:800px){
  .feature-row{ grid-template-columns:1fr; gap:16px; }
}

/* ---------- cards ---------- */
.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--mint-line);
  border:1px solid var(--mint-line);
}
.card{
  background:var(--paper);
  padding:34px;
}
.card h3{ margin-bottom:.4em; }
@media (max-width:880px){
  .card-grid{ grid-template-columns:1fr; }
}

/* ---------- steps ---------- */
.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  position:relative;
}
.step{
  padding:0 24px 0 0;
  position:relative;
}
.step .n{
  font-family:var(--mono);
  font-size:.85rem;
  color:var(--pulse);
  display:block;
  margin-bottom:10px;
}
.step h3{ font-size:1.1rem; margin-bottom:.3em; }
.step p{ font-size:.94rem; }
@media (max-width:900px){
  .steps{ grid-template-columns:1fr 1fr; row-gap:36px; }
}
@media (max-width:560px){
  .steps{ grid-template-columns:1fr; }
}

/* ---------- band (dark) ---------- */
.band{
  background:var(--teal-deep);
  color:#fff;
}
.band h2, .band h3{ color:#fff; }
.band p{ color:#C7D6D1; }
.band .trace path{ stroke:var(--pulse); }

/* ---------- quote ---------- */
.quote{
  max-width:56ch;
}
.quote blockquote{
  font-family:var(--serif);
  font-size:1.5rem;
  line-height:1.35;
  margin:0 0 20px;
  color:var(--teal-deep);
}
.band .quote blockquote{ color:#fff; }
.quote cite{
  font-style:normal;
  font-size:.92rem;
  color:var(--ink-soft);
}
.band .quote cite{ color:#AFC3BD; }

/* ---------- testimonial cards ---------- */
.t-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}
.t-card{
  background:var(--paper);
  border:1px solid var(--mint-line);
  padding:32px;
}
.t-card blockquote{
  font-family:var(--serif);
  font-size:1.18rem;
  line-height:1.4;
  margin:0 0 18px;
  color:var(--teal-deep);
}
.t-card cite{
  font-style:normal;
  display:block;
  font-size:.88rem;
  color:var(--ink-soft);
}
.t-card cite b{ color:var(--ink); display:block; font-weight:600; margin-bottom:2px; }
@media (max-width:760px){ .t-grid{ grid-template-columns:1fr; } }

/* ---------- spec table ---------- */
.spec-table{ border-top:1px solid var(--mint-line); }
.spec-row{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:24px;
  padding:20px 0;
  border-bottom:1px solid var(--mint-line);
}
.spec-row .k{ font-family:var(--mono); font-size:.88rem; color:#8FB6AE; }
.spec-row .v{ color:#fff; }
@media (max-width:600px){ .spec-row{ grid-template-columns:1fr; gap:6px; } }

/* ---------- values / about ---------- */
.value-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:40px 56px;
}
@media (max-width:700px){ .value-list{ grid-template-columns:1fr; } }

/* ---------- contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:start;
}
@media (max-width:880px){ .contact-grid{ grid-template-columns:1fr; gap:40px; } }

form.contact-form{ display:flex; flex-direction:column; gap:18px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:.86rem; font-weight:600; color:var(--teal-deep); }
.field input, .field select, .field textarea{
  font-family:var(--sans);
  font-size:1rem;
  padding:12px 14px;
  border:1px solid var(--mint-line);
  border-radius:2px;
  background:#fff;
  color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none;
  border-color:var(--teal);
}
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:.85rem; color:var(--ink-faint); margin-top:2px; }
.form-success{
  display:none;
  border:1px solid var(--teal);
  background:var(--mint);
  padding:18px 20px;
  color:var(--teal-deep);
  font-weight:500;
}
.form-success.show{ display:block; }
.form-error{
  display:none;
  color:var(--pulse);
  font-size:.85rem;
  margin:0;
}
.form-error.show{ display:block; }
.field input.invalid{ border-color:var(--pulse); }
.form-error-network{
  display:none;
  border:1px solid var(--pulse);
  background:var(--pulse-dim);
  padding:18px 20px;
  color:var(--teal-deep);
  font-weight:500;
}
.form-error-network.show{ display:block; }
.form-error-network a{ color:var(--teal-deep); text-decoration:underline; }
.btn[disabled]{ opacity:.6; cursor:not-allowed; }

.contact-info dl{ margin:0; }
.contact-info .entry{ padding:20px 0; border-top:1px solid var(--mint-line); }
.contact-info .entry:first-child{ border-top:none; padding-top:0; }
.contact-info dt{ font-family:var(--mono); font-size:.8rem; color:var(--teal); margin-bottom:4px; }
.contact-info dd{ margin:0; font-size:1.05rem; }

/* ---------- footer ---------- */
footer{
  background:var(--teal-deep);
  color:#C7D6D1;
  padding:64px 0 32px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:32px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.footer-grid .wordmark{ color:#fff; }
.footer-grid p{ color:#9FB4AE; font-size:.92rem; }
.footer-grid h4{ font-family:var(--sans); font-size:.85rem; color:#fff; font-weight:600; margin-bottom:14px; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-grid a{ color:#AFC3BD; text-decoration:none; font-size:.94rem; }
.footer-grid a:hover{ color:#fff; }
.footer-bottom{
  padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:.82rem; color:#7E948D;
}
@media (max-width:760px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){
  .footer-grid{ grid-template-columns:1fr; gap:36px; }
  .footer-bottom{ flex-direction:column; gap:8px; }
}

/* ---------- product shot ---------- */
.shot-frame{
  background:var(--paper);
  border:1px solid var(--mint-line);
  padding:8px;
}
.shot-frame img{ width:100%; height:auto; display:block; }
.shot-caption{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding-top:14px;
  font-size:.86rem;
  color:var(--ink-faint);
}

/* ---------- video / demo card ---------- */
.video-card{ display:flex; flex-direction:column; gap:24px; }
.video-frame{
  position:relative;
  height:280px;
  background:radial-gradient(120% 140% at 20% 0%, #123833 0%, #061210 65%);
  border-radius:12px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1), 0 20px 44px rgba(0,0,0,.35);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.video-frame .trace{ position:absolute; inset:0; height:100% !important; opacity:.4; }

.demo-reel{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
}
.demo-scene{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  color:#fff;
  opacity:0;
  animation:reel 16s infinite;
}
.demo-scene h3{ color:#fff; font-size:1.15rem; margin:0; }
.demo-scene p{ color:#C7D6D1; font-size:.9rem; margin:0; }
.demo-scene:nth-child(1){ animation-delay:0s; }
.demo-scene:nth-child(2){ animation-delay:4s; }
.demo-scene:nth-child(3){ animation-delay:8s; }
.demo-scene:nth-child(4){ animation-delay:12s; }
@keyframes reel{
  0%{ opacity:0; transform:translateY(6px); }
  4%{ opacity:1; transform:translateY(0); }
  22%{ opacity:1; transform:translateY(0); }
  27%{ opacity:0; transform:translateY(-6px); }
  100%{ opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .demo-scene{ animation:none; opacity:0; }
  .demo-scene:first-child{ opacity:1; }
}

.video-caption{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
.video-caption p{ color:#C7D6D1; margin:0; max-width:54ch; }

/* ---------- misc ---------- */
.section-head{ max-width:60ch; margin-bottom:48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
@media (max-width:880px){ .split{ grid-template-columns:1fr; } }

/* ---------- usage steps (illustrated) ---------- */
.usage-steps{
  display:flex;
  justify-content:center;
  gap:48px;
  flex-wrap:wrap;
}
.usage-step{ text-align:center; width:200px; }
.usage-step h3{ font-size:1.1rem; margin-bottom:16px; }
.usage-step svg{ margin:0 auto; }
.usage-step p{ font-size:.92rem; margin:14px auto 0; }
@keyframes ecgScroll{ to{ stroke-dashoffset:-300; } }
.ecg-live{ stroke-dasharray:6 4; animation:ecgScroll 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce){ .ecg-live{ animation:none; stroke-dasharray:none; } }
@media (max-width:600px){
  .usage-steps{ gap:32px; }
  .usage-step{ width:150px; }
  .usage-step svg{ width:150px; height:150px; }
}

/* ---------- 3-step variant (Solutions page) ---------- */
.steps-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .steps-3{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .steps-3{ grid-template-columns:1fr; } }

/* ---------- chat widget ---------- */
.chat-widget{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:200;
  font-family:var(--sans);
}
.chat-toggle{
  width:60px; height:60px;
  border-radius:50%;
  background:var(--teal);
  border:none;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(7,47,43,.28);
  transition:transform .15s ease, background-color .15s ease;
}
.chat-toggle:hover{ background:var(--teal-deep); transform:scale(1.05); }
.chat-toggle svg{ width:26px; height:26px; }
.chat-toggle .icon-open{ display:block; }
.chat-toggle .icon-close{ display:none; }
.chat-toggle[aria-expanded="true"] .icon-open{ display:none; }
.chat-toggle[aria-expanded="true"] .icon-close{ display:block; }

.chat-panel{
  position:absolute;
  right:0;
  bottom:76px;
  width:340px;
  max-width:calc(100vw - 40px);
  height:460px;
  max-height:calc(100vh - 140px);
  background:var(--paper);
  border:1px solid var(--mint-line);
  border-radius:12px;
  box-shadow:0 16px 40px rgba(7,47,43,.22);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  opacity:0;
  transform:translateY(12px) scale(.98);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
.chat-panel.open{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

.chat-header{
  background:var(--teal-deep);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  flex-shrink:0;
}
.chat-header-info{ display:flex; align-items:center; gap:10px; }
.chat-header-info .logo-icon{ color:#F6F7F4; flex-shrink:0; }
.chat-header-info strong{ display:block; font-size:.94rem; font-weight:600; }
.chat-header-info span{ display:block; font-size:.76rem; color:#9FB4AE; }
.chat-close{
  background:none; border:none; color:#fff;
  font-size:1.4rem; line-height:1; cursor:pointer;
  padding:4px 6px;
}

.chat-messages{
  flex:1 1 auto;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:var(--bg);
}
.chat-msg{
  max-width:82%;
  padding:10px 13px;
  border-radius:10px;
  font-size:.9rem;
  line-height:1.45;
}
.chat-msg.bot{
  align-self:flex-start;
  background:var(--mint);
  color:var(--ink);
  border-bottom-left-radius:2px;
}
.chat-msg.user{
  align-self:flex-end;
  background:var(--teal);
  color:#fff;
  border-bottom-right-radius:2px;
}
.chat-msg.typing{
  align-self:flex-start;
  background:var(--mint);
  color:var(--ink-soft);
  font-style:italic;
}

.chat-input-row{
  flex-shrink:0;
  display:flex;
  gap:8px;
  padding:12px;
  border-top:1px solid var(--mint-line);
  background:var(--paper);
}
.chat-input-row input{
  flex:1 1 auto;
  border:1px solid var(--mint-line);
  border-radius:8px;
  padding:10px 12px;
  font-family:var(--sans);
  font-size:.9rem;
  color:var(--ink);
  background:#fff;
}
.chat-input-row input:focus{ outline:none; border-color:var(--teal); }
.chat-input-row button{
  flex-shrink:0;
  width:40px; height:40px;
  border-radius:8px;
  border:none;
  background:var(--pulse);
  color:#fff;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:1rem;
}
.chat-input-row button:hover{ background:#c3351f; }

.chat-disclaimer{
  flex-shrink:0;
  margin:0;
  padding:8px 14px 12px;
  font-size:.72rem;
  color:var(--ink-faint);
  text-align:center;
  background:var(--paper);
}
.chat-disclaimer a{ color:var(--teal); }

@media (max-width:480px){
  .chat-widget{ right:14px; bottom:14px; }
  .chat-panel{
    width:calc(100vw - 28px);
    height:calc(100vh - 120px);
    height:calc(100dvh - 120px);
    bottom:72px;
  }
}

/* ---------- app store badges ---------- */
.store-badges{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.store-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  border:1px solid var(--mint-line);
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
  text-decoration:none;
  transition:border-color .15s ease, background-color .15s ease;
}
.store-badge:hover{ border-color:var(--teal); background:var(--mint); }
.store-badge svg{ flex-shrink:0; color:var(--teal-deep); }
.store-badge .label{ display:flex; flex-direction:column; line-height:1.25; }
.store-badge .label small{ font-size:.68rem; color:var(--ink-soft); }
.store-badge .label strong{ font-size:.95rem; font-weight:600; }

.band .store-badge{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.2); }
.band .store-badge:hover{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.4); }
.band .store-badge svg{ color:#fff; }
.band .store-badge .label strong{ color:#fff; }
.band .store-badge .label small{ color:#AFC3BD; }
