/* Twingp — soft pastel AI assistant theme (matched to attached UI) */

:root {
  --bg-top: #f3f0ff;
  --bg-mid: #ffffff;
  --bg-bottom: #f0f7ff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --purple: #7c5cfc;
  --purple-deep: #6d4aff;
  --blue: #3b82f6;
  --grad: linear-gradient(135deg, #4a90e2 0%, #7c5cfc 48%, #b066fe 100%);
  --grad-btn: linear-gradient(135deg, #7c5cfc 0%, #5b7cfa 100%);
  --shadow: 0 10px 40px rgba(124, 92, 252, 0.1);
  --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.06);
  --radius: 24px;
}

html {
  min-height: 100%;
  background: var(--bg-mid);
}

body.sky-page,
body {
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(196, 181, 253, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 5%, rgba(167, 139, 250, 0.28), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(186, 230, 253, 0.35), transparent 55%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-bottom) 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

body.sky-page::before,
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.95), transparent),
    radial-gradient(1.5px 1.5px at 28% 12%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 72% 15%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 88% 22%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 55% 8%, rgba(255,255,255,0.85), transparent);
  opacity: 0.9;
}

.sky-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.sky-header {
  background: transparent !important;
  border-bottom: none;
  backdrop-filter: none;
  box-shadow: none;
}

/* Gradient CTAs */
.btn-ai,
.pricing-connect-btn,
.fp-form button,
.fp-cta,
.input-btn.send {
  background: var(--grad-btn) !important;
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 22px rgba(124, 92, 252, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-ai:hover,
.pricing-connect-btn:hover,
.fp-form button:hover,
.fp-cta:hover,
.input-btn.send:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 92, 252, 0.42);
  text-decoration: none;
}

a { color: var(--blue); }
a.hover\:text-indigo-500:hover { color: var(--purple); }

/* ===== Hero assistant UI ===== */
.ai-hero {
  position: relative;
  padding: 48px 0 36px;
  text-align: center;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(124, 92, 252, 0.1);
  color: #5b21b6;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.ai-badge i { color: var(--purple); font-size: 12px; }

.ai-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 14px;
}

.ai-title .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-sub {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.ai-composer {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 18px 18px 14px;
  text-align: left;
  border: 1.5px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, #c4b5fd, #93c5fd, #f0abfc);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 16px 50px rgba(124, 92, 252, 0.12);
}

.ai-composer-input {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  min-height: 52px;
  background: transparent;
  padding: 4px 6px 12px;
}

.ai-composer-input::placeholder { color: #9ca3af; }

.ai-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-composer-left,
.ai-composer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ai-chip:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.ai-chip i { color: #6b7280; }

.ai-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.ai-icon-btn.mic {
  background: var(--grad-btn);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(124, 92, 252, 0.28);
}

.ai-icon-btn.mic:hover { filter: brightness(1.06); background: var(--grad-btn); color: #fff; }

.ai-icon-btn.mic.listening {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.ai-icon-btn.send {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 92, 252, 0.35);
}

.ai-icon-btn.send:hover { filter: brightness(1.06); transform: translateY(-1px); }

.ai-suggestions-label {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 36px auto 18px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
}

.ai-suggestions-label::before,
.ai-suggestions-label::after {
  content: "";
  height: 1px;
  width: min(120px, 18vw);
  background: #e5e7eb;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}

.ai-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
  min-width: min(100%, 260px);
  max-width: 300px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ai-suggestion:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ai-suggestion-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff !important;
  font-size: 14px;
}

.ai-suggestion-icon i {
  color: #fff !important;
}

.ai-suggestion-icon.purple { background: #8b5cf6; }
.ai-suggestion-icon.orange { background: #f59e0b; }
.ai-suggestion-icon.blue { background: #3b82f6; }
.ai-suggestion-icon.sky { background: #0ea5e9; }
.ai-suggestion-icon.violet { background: #a855f7; }

.ai-suggestion-text {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  line-height: 1.35;
}

/* Header matching mock */
.ai-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
}

.ai-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ai-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ai-brand:hover { text-decoration: none; color: var(--ink); }

.ai-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-premium {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--grad-btn);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(124, 92, 252, 0.3);
  cursor: pointer;
  text-decoration: none;
}

.ai-premium:hover { filter: brightness(1.05); color: #fff; text-decoration: none; }

.ai-menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-menu-btn:hover { background: #f9fafb; }

@media (max-width: 640px) {
  body.sky-page,
  body {
    background-attachment: scroll !important;
  }

  .ai-topbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .ai-brand {
    font-size: 1rem;
    gap: 8px;
  }

  .ai-brand img {
    width: 28px;
    height: 28px;
  }

  .ai-menu-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
  }

  .ai-premium {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .ai-hero {
    padding: 28px 0 24px;
  }

  .ai-badge {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 14px;
    max-width: calc(100% - 8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ai-title {
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
  }

  .ai-sub {
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 auto 18px;
    padding: 0 2px;
  }

  .ai-composer {
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 28px rgba(124, 92, 252, 0.1);
  }

  .ai-composer-input {
    font-size: 16px; /* prevent iOS zoom on focus */
    min-height: 44px;
    padding: 2px 2px 10px;
  }

  .ai-composer-bar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .ai-composer-left {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ai-composer-left::-webkit-scrollbar { display: none; }

  .ai-chip {
    padding: 7px 11px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ai-icon-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .ai-suggestions-label {
    margin: 24px auto 12px;
    font-size: 12px;
    gap: 10px;
  }

  .ai-suggestions-label::before,
  .ai-suggestions-label::after {
    width: 40px;
  }

  .ai-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
    padding: 0;
    max-width: 100%;
    scroll-snap-type: none;
  }

  .ai-suggestion {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: none;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 12px;
    scroll-snap-align: unset;
  }

  .ai-suggestion:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 4px);
    max-width: calc(50% - 4px);
    justify-self: center;
  }

  .ai-suggestion-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .ai-suggestion-text {
    font-size: 11px;
    line-height: 1.3;
  }

  /* Mobile nav overlay */
  #mobile-menu {
    padding: 72px 24px 40px;
    overflow-y: auto;
    font-size: 1.25rem !important;
    gap: 1.25rem !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 380px) {
  .ai-title { font-size: 1.5rem; }
  .ai-chip { padding: 8px; border-radius: 12px; }
  .ai-chip-label { display: none; }
  .ai-suggestion-text { font-size: 10px; }
}


/* Industry / card mobile */
@media (max-width: 640px) {
  #industry-cards img { height: 5.5rem; }
  #industry-cards .p-2 {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #recent-cards .text-sm { font-size: 0.8rem; }
  footer .grid { gap: 1.25rem; }
}

/* ── Credentials ── */
.credentials-section {
  margin: 2.5rem 0 0;
  padding: 2.5rem 1rem 2.75rem;
  border-radius: 24px;
  background: #eef3f8;
}

.credentials-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.credentials-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.credentials-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.45;
}

.creds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.cred {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 12px 18px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cred:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cred-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 14px;
  margin: 0 auto 12px;
  background: #fff;
  padding: 6px;
  border: 1px solid #e2e8f0;
  display: block;
}

.cred-img.cred-dark {
  background: #0a0a0a;
  border-color: #1e293b;
  padding: 8px;
}

.cred-img.cred-app-logo {
  background: #fff;
  padding: 10px;
}

.cred-img.cred-indiaai {
  padding: 8px;
  background: #f8fafc;
}

.cred strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cred > span {
  font-size: 12px;
  color: #64748b;
  display: block;
  line-height: 1.35;
}

.cred .status-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
}

.cred .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

@media (max-width: 1100px) {
  .creds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .credentials-section {
    margin-top: 2rem;
    padding: 1.75rem 0.75rem 2rem;
    border-radius: 18px;
  }

  .creds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cred {
    padding: 18px 10px 14px;
  }

  .cred-img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 420px) {
  .creds {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cred:hover { transform: none; }
}

/* ── Model picker sheet ── */
body.model-picker-open { overflow: hidden; }

.model-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.model-picker-overlay[hidden] { display: none !important; }

.model-picker-sheet {
  width: min(520px, 100%);
  max-height: min(78vh, 640px);
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modelPickerUp 0.22s ease;
}

@keyframes modelPickerUp {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.model-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 8px;
}

.model-picker-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.model-picker-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.model-picker-close:hover { background: #e2e8f0; }

.model-picker-sub {
  margin: 0;
  padding: 0 18px 12px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.model-picker-list {
  overflow-y: auto;
  padding: 0 10px 18px;
  -webkit-overflow-scrolling: touch;
}

.model-picker-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  padding: 12px 12px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.model-picker-item:hover { background: #f8fafc; }

.model-picker-item.is-selected {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.model-picker-item.is-locked {
  opacity: 0.92;
}

.model-picker-item.is-locked:hover { background: #f8fafc; }

.model-picker-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-picker-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.model-picker-item-check {
  color: #4f46e5;
  font-size: 0.85rem;
}

.model-picker-item-lock {
  color: #94a3b8;
  font-size: 0.8rem;
}

.model-picker-item-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: #7c5cfc;
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  .model-picker-overlay {
    align-items: center;
    padding: 24px;
  }
  .model-picker-sheet {
    border-radius: 20px;
    max-height: min(70vh, 620px);
  }
}

