/* varastiq.com — form controls, Vara chat widget, responsive shims.
   Design tokens: paper #F1ECE2 / card #FFFCF6 / line #DED6C7 / ink #1B1714
   muted #4A423B / faint #8C8375 / green #1F6F4A / deep green #134731 / mint #DCEBE1 */

main { padding: 0; }

/* ---------- demo form ---------- */
.bd-label {
  display: block;
  font: 600 13px 'Hanken Grotesk', sans-serif;
  color: #4A423B;
  margin-bottom: 6px;
}
.fld {
  width: 100%;
  border: 1px solid #DED6C7;
  border-radius: 10px;
  background: #F1ECE2;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #1B1714;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.fld::placeholder { color: #8C8375; }
.fld:focus { border-color: #1F6F4A; box-shadow: 0 0 0 3px #DCEBE1; }
.bd-help {
  margin-top: 6px;
  color: #8C8375;
  font-size: 12px;
  line-height: 1.4;
}
select.fld {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238C8375'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.seg {
  flex: 1;
  text-align: center;
  border: 1px solid #DED6C7;
  background: #F1ECE2;
  color: #4A423B;
  border-radius: 10px;
  padding: 11px;
  font: 600 14px 'Hanken Grotesk', sans-serif;
  cursor: pointer;
}
.seg[aria-pressed="true"] {
  border: 1.5px solid #1F6F4A;
  background: #DCEBE1;
  color: #134731;
  padding: 10.5px;
}
.bd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bd-error {
  background: #F8E3DE;
  border: 1px solid #E0B4A8;
  color: #7C2D1E;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.4;
}
#bd-submit:disabled { opacity: .6; cursor: default; }

/* ---------- Vara chat ---------- */
.vara-panel[hidden], .vara-fab[hidden] { display: none; }

.vara-ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1F6F4A;
  color: #fff;
  font: 700 15px 'Space Grotesk', sans-serif;
  flex: none;
}
.vara-ava.lg { width: 38px; height: 38px; font-size: 18px; }
.vara-ava.sm { width: 24px; height: 24px; font-size: 12px; }

.vara-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  background: #134731;
  color: #F1ECE2;
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(27, 23, 20, .3);
  font-family: 'Hanken Grotesk', sans-serif;
}
.vara-fab:hover { background: #1F6F4A; }
.vara-fab-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.vara-fab-text b { font-size: 14px; }
.vara-fab-text small { font-size: 11.5px; color: #8FD3AC; }

.vara-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 520px;
  max-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  background: #FFFCF6;
  border: 1px solid #DED6C7;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(27, 23, 20, .3);
  overflow: hidden;
  font-family: 'Hanken Grotesk', sans-serif;
}
.vara-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #134731;
  color: #F1ECE2;
}
.vara-head-txt { flex: 1; min-width: 0; }
.vara-name { font: 700 15px 'Space Grotesk', sans-serif; }
.vara-status { font-size: 11.5px; color: #8FD3AC; display: flex; align-items: center; gap: 5px; }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #8FD3AC;
  animation: vpulse 2s infinite;
}
.vara-icon-btn {
  border: none;
  background: rgba(255, 255, 255, .12);
  color: #F1ECE2;
  width: 30px; height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.vara-icon-btn:hover { background: rgba(255, 255, 255, .22); }

.vara-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F7F2E8;
}
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble-row.user { justify-content: flex-end; }
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.bubble.bot { background: #FFFCF6; border: 1px solid #DED6C7; color: #1B1714; border-bottom-left-radius: 4px; }
.bubble.user { background: #1F6F4A; color: #fff; border-bottom-right-radius: 4px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8C8375;
  animation: vpulse 1s infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: .2s; }
.bubble.typing span:nth-child(3) { animation-delay: .4s; }

.vara-options {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #DED6C7;
  background: #FFFCF6;
  min-height: 46px;
}
.vara-chip {
  border: 1px solid #DED6C7;
  background: #F1ECE2;
  color: #134731;
  font: 600 12.5px 'Hanken Grotesk', sans-serif;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.vara-chip:hover { background: #DCEBE1; border-color: #1F6F4A; }
.vara-hint-line { font-size: 12px; color: #8C8375; align-self: center; }
.vara-foot {
  text-align: center;
  font-size: 11px;
  color: #8C8375;
  padding: 6px 0 8px;
  background: #FFFCF6;
}

/* ---------- legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.legal h1 {
  font: 800 40px/1.05 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}
.legal h2 {
  font: 700 20px 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
}
.legal p {
  font-size: 15px;
  line-height: 1.65;
  color: #4A423B;
  margin: 0 0 12px;
}
.legal-updated {
  font: 600 12px 'IBM Plex Mono', monospace;
  color: #8C8375;
  margin: 0 0 6px;
}
.legal-summary {
  background: #FFFCF6;
  border: 1px solid #DED6C7;
  border-radius: 13px;
  padding: 20px 24px;
  margin: 22px 0 10px;
}
.legal-summary h2 { margin-top: 0; font-size: 16px; }
.legal-summary p { margin-bottom: 0; }
.legal-flag {
  background: #F2E7CE;
  border: 1px solid #E7D4A6;
  border-radius: 5px;
  padding: 1px 6px;
  font-weight: 600;
  color: #6b5417;
}

/* ---------- responsive shims (design is a fixed 1200px canvas) ---------- */
@media (max-width: 960px) {
  main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  main header[style], main footer[style] { flex-wrap: wrap; gap: 12px; }
  main [style*="padding:60px 56px"], main [style*="padding: 60px 56px"],
  main [style*="padding:52px 56px"], main [style*="padding:48px 56px"],
  main [style*="padding:44px 56px"] { padding: 32px 20px !important; }
  main h1 { font-size: clamp(30px, 8vw, 46px) !important; }
}
