@media (max-width: 768px) {
  a[href*="tradecrews.com"] img[alt="TradeCrews Logo"] {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    max-width: 100%;
  }
  .grid-2-lg {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 2rem;
  }
  .hero-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero img {
    width: 120px !important;
    height: 120px !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .hero h1,
  .hero p {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    text-align: center;
  }
  .card,
  .chat-shell {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 1rem;
  }
  .btn,
  .btn-primary,
  .btn-outline {
    font-size: 1rem;
    padding: 0.75em 1.25em;
    min-width: 44px;
    min-height: 44px;
  }
  ul {
    padding-left: 1.2em;
  }
}
/* Let's Ask Jack - Standalone Styles (inspired by TradeCrews homepage) */

:root {
  --tc-blue-600: #2563eb; /* tailwind blue-600 */
  --tc-blue-800: #1e40af; /* tailwind blue-800 */
  --tc-blue-100: #dbeafe; /* tailwind blue-100 */
  --tc-orange-500: #f97316; /* tailwind orange-500 */
  --tc-orange-600: #ea580c; /* tailwind orange-600 */
  --tc-orange-100: #ffedd5; /* tailwind orange-100 */
  --tc-slate-900: #0f172a; /* tailwind slate-900 */
  --tc-gray-900: #111827; /* tailwind gray-900 */
  --tc-gray-700: #374151; /* tailwind gray-700 */
  --tc-gray-600: #4b5563; /* tailwind gray-600 */
  --tc-gray-100: #f3f4f6; /* tailwind gray-100 */
  --white: #ffffff;

  /* TradeCrews color palette - Orange */
  --tradecrews-orange-50: oklch(0.98 0.03 44.49);
  --tradecrews-orange-100: oklch(0.95 0.05 44.49);
  --tradecrews-orange-200: oklch(0.9 0.08 44.49);
  --tradecrews-orange-300: oklch(0.85 0.12 44.49);
  --tradecrews-orange-400: oklch(0.77 0.16 44.49);
  --tradecrews-orange-500: oklch(0.69 0.1841 44.49);
  --tradecrews-orange-600: oklch(0.62 0.16 44.49);
  --tradecrews-orange-700: oklch(0.55 0.14 44.49);
  --tradecrews-orange-800: oklch(0.48 0.12 44.49);
  --tradecrews-orange-900: oklch(0.41 0.1 44.49);
  --tradecrews-orange-950: oklch(0.35 0.08 44.49);

  /* TradeCrews color palette - Blue */
  --tradecrews-blue-50: oklch(0.95 0.1279 259.5);
  --tradecrews-blue-100: oklch(0.9 0.1279 259.5);
  --tradecrews-blue-200: oklch(0.8 0.1279 259.5);
  --tradecrews-blue-300: oklch(0.7 0.1279 259.5);
  --tradecrews-blue-400: oklch(0.6 0.1279 259.5);
  --tradecrews-blue-500: oklch(0.5 0.1279 259.5);
  --tradecrews-blue-600: oklch(0.41 0.1279 259.5);
  --tradecrews-blue-700: oklch(0.35 0.1279 259.5);
  --tradecrews-blue-800: oklch(0.3 0.1279 259.5);
  --tradecrews-blue-900: oklch(0.25 0.1279 259.5);
  --tradecrews-blue-950: oklch(0.2 0.1279 259.5);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--tc-gray-700);
  background: var(--white);
}

.container {
  max-width: 72rem; /* 1152px ~ container */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Hero */
.hero {
  background: var(--tradecrews-blue-700);
  color: var(--white);
}
.hero-inner {
  padding: 5rem 0;
}
.hero h1 {
  margin: 0 0 1rem;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}
.hero p {
  margin: 0 0 2rem;
  font-size: clamp(1.125rem, 1vw + 1rem, 1.375rem);
  color: var(--tc-blue-100);
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  appearance: none;
  border: 0;
  padding: 0.9rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-primary {
  background: var(--tc-orange-500);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--tc-orange-600);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--tc-blue-800);
}

/* Sections */
section {
  padding: 4rem 0;
}
.section-light {
  background: var(--tc-gray-100);
}

/* Card */
.card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
}

/* Mic button styles */
#mic-btn {
  color: #9ca3af; /* gray icon (Tailwind gray-400) */
  background: transparent;
  border: 1px solid currentColor; /* gray border */
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, filter 150ms ease;
}
#mic-btn:hover {
  background: rgba(255, 255, 255, 0.08); /* subtle hover on dark hero */
}
#mic-btn[aria-pressed="true"] {
  background: transparent; /* no fill, just color swap */
  color: var(--tc-orange-500, #f59e0b); /* orange icon */
  border-color: currentColor; /* orange border */
}
#mic-btn[aria-pressed="true"]:hover {
  filter: brightness(1.05);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .grid-2-lg {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.subtle {
  color: var(--tc-gray-600);
}

/* Chat widget */
#chat {
  scroll-margin-top: 80px; /* for anchor offset */
}
.chat-shell {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.chat-frame {
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  border-radius: 0.75rem;
  background: #fafafa;
}
.chat-placeholder {
  padding: 2rem;
  text-align: center;
  color: var(--tc-gray-600);
}

.chat-messages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("tradecrews-logomark.png") no-repeat center center;
  background-size: 60% auto;
  opacity: 0.15; /* Adjust for desired fade */
  pointer-events: none;
  z-index: 0;
}

.chat-messages > * {
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  padding: 2rem 0 3rem;
  color: var(--tc-gray-600);
}
.brand {
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
}
.brand-alt {
  font-weight: 800;
  color: var(--tc-gray-900);
  letter-spacing: 0.3px;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--tc-orange-100);
  color: var(--tc-orange-600);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Utility */
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-white {
  color: var(--white);
}
.text-muted {
  color: var(--tc-gray-600);
}
.hstack {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Jack header styles */
.jack-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.jack-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.jack-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 4px solid #fff;
  background: #eee;
}

.jack-quote {
  font-size: 1.1rem;
  color: #fff;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
}

/* Chat styles */
.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1em;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 1em;
  position: relative;
}

.chat-messages p {
  font-size: unset;
  margin: unset;
  color: unset;
}

.chat-form {
  display: flex;
  gap: 0.5em;
}

.chat-input {
  flex: 1;
  padding: 0.5em;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.chat-note {
  font-size: 0.85em;
  color: #888;
  margin-top: 1em;
  text-align: center;
}

.chat-note-inner {
  display: inline-flex;
  align-items: center;
  color: #555;
}

.chat-note-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Meet Jack title */
.meet-jack-title {
  color: #111827;
}

/* TradeCrews logo */
.tradecrews-logo {
  height: 32px;
  margin-top: 0.5em;
  display: block;
}

/* Why homeowners love TradeCrews */
.why-title {
  color: #111827;
}

.why-list {
  list-style: none;
  display: flex;
  align-items: center;
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  background: var(--tc-orange-500);
  border-radius: 50%;
  margin-right: 0.75em;
}

.why-learn {
  margin-top: 1em;
  text-align: center;
}

/* CTA title */
.cta-title {
  color: #111827;
}

/* Footer inner and link */
.footer-inner {
  padding: 2rem 0 2.5rem;
}

.footer-link {
  color: #fff;
  text-decoration: none;
}
