/* Shared Fluxworks widgets: chat, newsletter strip, contact sheet bits */

/* —— Newsletter strip —— */
.newsletter-band {
  margin: 0 auto 2.5rem;
  max-width: 1100px;
  padding: 1.75rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
    linear-gradient(180deg, #0d1526, #080d18);
}
.newsletter-band h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.newsletter-band > p {
  color: #8b9bb4;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  max-width: 36rem;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  max-width: 32rem;
}
.newsletter-form input[type="email"] {
  flex: 1 1 12rem;
  min-height: 44px;
  appearance: none;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(11, 18, 32, 0.95);
  color: #e8eef7;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font: 500 0.95rem/1.3 Inter, system-ui, sans-serif;
  outline: none;
}
.newsletter-form input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.newsletter-form button {
  min-height: 44px;
  border-radius: 999px;
  border: none;
  padding: 0.65rem 1.25rem;
  font: 600 0.9rem Inter, system-ui, sans-serif;
  cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #041018;
  touch-action: manipulation;
}
.newsletter-form .nl-status {
  width: 100%;
  font-size: 0.85rem;
  color: #8b9bb4;
  min-height: 1.2em;
}
.newsletter-form .nl-status.is-error { color: #fecaca; }

/* —— Chatbot —— */
.flux-chat-root {
  position: fixed;
  z-index: 9000;
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  font-family: Inter, system-ui, sans-serif;
}
.flux-chat-toggle {
  appearance: none;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(135deg, #0891b2, #1d4ed8);
  color: #fff;
  font: 600 0.88rem/1 Inter, system-ui, sans-serif;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(34, 211, 238, 0.25);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  touch-action: manipulation;
}
.flux-chat-toggle:hover { filter: brightness(1.06); }
.flux-chat-panel {
  display: none;
  flex-direction: column;
  width: min(22.5rem, calc(100vw - 1.5rem));
  height: min(28rem, calc(100dvh - 6rem));
  margin-bottom: 0.65rem;
  border-radius: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: #0b1220;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.flux-chat-root.is-open .flux-chat-panel { display: flex; }
.flux-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.15);
  background: rgba(5, 8, 15, 0.9);
}
.flux-chat-head strong { font-size: 0.92rem; letter-spacing: -0.02em; }
.flux-chat-head span {
  display: block;
  font-size: 0.72rem;
  color: #8b9bb4;
  font-weight: 400;
  margin-top: 0.15rem;
}
.flux-chat-close {
  appearance: none;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: transparent;
  color: #e8eef7;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.flux-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  -webkit-overflow-scrolling: touch;
}
.flux-chat-msg {
  max-width: 92%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.flux-chat-msg.bot {
  align-self: flex-start;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: #e8eef7;
}
.flux-chat-msg.user {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #fff;
}
.flux-chat-msg a { color: #22d3ee; }
.flux-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.75rem 0.55rem;
}
.flux-chat-chips button {
  appearance: none;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(5, 8, 15, 0.6);
  color: #8b9bb4;
  font: 500 0.72rem Inter, system-ui, sans-serif;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
  touch-action: manipulation;
}
.flux-chat-chips button:hover {
  color: #e8eef7;
  border-color: #22d3ee;
}
.flux-chat-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px solid rgba(34, 211, 238, 0.15);
  background: rgba(5, 8, 15, 0.85);
}
.flux-chat-form input {
  flex: 1;
  min-height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: #0b1220;
  color: #e8eef7;
  border-radius: 0.65rem;
  padding: 0.5rem 0.75rem;
  font: 500 0.9rem Inter, system-ui, sans-serif;
  outline: none;
}
.flux-chat-form input:focus {
  border-color: #22d3ee;
}
.flux-chat-form button {
  appearance: none;
  border: none;
  border-radius: 0.65rem;
  background: #22d3ee;
  color: #041018;
  font: 700 0.85rem Inter, system-ui, sans-serif;
  padding: 0 0.9rem;
  cursor: pointer;
  min-height: 42px;
}

@media (prefers-reduced-motion: reduce) {
  .flux-chat-panel { transition: none; }
}

/* Contact sheet extras */
.sheet-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .sheet-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.sheet-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.95));
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 1rem;
  padding: 1.25rem 1.2rem;
}
.sheet-card h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.sheet-card dl {
  display: grid;
  gap: 0.65rem;
}
.sheet-card dt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #22d3ee;
}
.sheet-card dd {
  color: #8b9bb4;
  font-size: 0.95rem;
  margin: 0.15rem 0 0;
}
.sheet-card dd a { color: #22d3ee; text-decoration: none; }
.sheet-card dd a:hover { text-decoration: underline; }
.sheet-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: #8b9bb4;
  font-size: 0.92rem;
}
.sheet-list li { margin: 0.3rem 0; }
.vcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
