/* ========================= */
/* Variables                 */
/* ========================= */

:root {
  --primary: #0065F8;
  --link: #f04444;
  --background: #fff;
  --color: #000;
  --hover: #0065F820;
}

/* ========================= */
/* Reset                     */
/* ========================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background);
  color: var(--color);
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ========================= */
/* Tailwind-equivalent utils */
/* ========================= */

/* --- Display / Flex / Grid --- */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.place-items-center { place-items: center; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- Gap / Space --- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* --- Width / Height --- */
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }

.h-10 { height: 2.5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }

.min-h-screen { min-height: 100vh; }
.min-h-\[90vh\] { min-height: 90vh; }

.max-w-4xl { max-width: 56rem; }
.max-w-md { max-width: 28rem; }

/* --- Margin --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-2 { margin-left: 0.5rem; }

/* --- Padding --- */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.pb-0 { padding-bottom: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }

/* --- Typography --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* --- Colors --- */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-blue-500 { color: #3b82f6; }
.text-pink-500 { color: #ec4899; }
.text-green-500 { color: #22c55e; }
.text-gray-500 { color: #6b7280; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

.bg-white { background-color: #fff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-pink-500 { background-color: #ec4899; }
.bg-green-600 { background-color: #16a34a; }

/* --- Border --- */
.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-2 { border-width: 2px; border-style: solid; border-color: #e5e7eb; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

/* --- Border Radius --- */
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }

/* --- Shadow --- */
.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }

/* --- Object Fit --- */
.object-cover { object-fit: cover; }
.object-top { object-position: top; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* --- Cursor --- */
.cursor-pointer { cursor: pointer; }

/* --- Focus --- */
.focus\:outline-none:focus { outline: none; }
.focus\:ring:focus { box-shadow: 0 0 0 3px rgba(59,130,246,0.5); }
.focus\:ring-blue-300:focus { box-shadow: 0 0 0 3px rgba(147,197,253,0.5); }
.focus\:ring-pink-300:focus { box-shadow: 0 0 0 3px rgba(249,168,212,0.5); }
.focus\:ring-green-300:focus { box-shadow: 0 0 0 3px rgba(134,239,172,0.5); }

/* --- Hover --- */
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-pink-600:hover { background-color: #db2777; }
.hover\:bg-green-700:hover { background-color: #15803d; }

/* --- Transition --- */
.transition-color { transition: color 0.15s ease; }

/* ========================= */
/* SM breakpoint (>=640px)   */
/* ========================= */

@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:w-36 { width: 9rem; }
  .sm\:w-40 { width: 10rem; }
  .sm\:w-56 { width: 14rem; }
  .sm\:h-36 { height: 9rem; }
  .sm\:h-40 { height: 10rem; }
  .sm\:h-56 { height: 14rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* ========================= */
/* MD breakpoint (>=768px)   */
/* ========================= */

@media (min-width: 768px) {
  .md\:w-48 { width: 12rem; }
  .md\:w-64 { width: 16rem; }
  .md\:h-48 { height: 12rem; }
  .md\:h-64 { height: 16rem; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* ========================= */
/* Custom component styles   */
/* ========================= */

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.heading {
  color: var(--primary);
}

/* --- Hover card style --- */
.hover {
  transition: 0.3s;
  border: 1px solid transparent;
}

.hover p {
  color: var(--primary);
}

.hover:hover {
  background-color: var(--hover);
  border: 1px solid var(--primary);
}

.hover:hover p {
  color: var(--color);
}

/* --- Active selection --- */
.active,
button.hover.active {
  background-color: var(--hover);
  border: 1px solid var(--primary);
}

/* --- Buttons --- */
.video-call,
.chat {
  background-color: var(--primary);
  color: white;
  min-height: 44px;
  font-size: 0.95rem;
}

button {
  cursor: pointer;
  color: var(--color);
  background-color: var(--primary);
  min-height: 44px;
}

button.hover {
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hover);
  background-color: var(--background);
}

/* ========================= */
/* Blog content              */
/* ========================= */

div[style*="background-color: var(--primary)"] {
  padding: 1rem;
  border-radius: 0.75rem;
}

div[style*="background-color: var(--primary)"] h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

div[style*="background-color: var(--primary)"] h2 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

div[style*="background-color: var(--primary)"] h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

div[style*="background-color: var(--primary)"] p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

div[style*="background-color: var(--primary)"] img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.faq-question {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.faq-answer {
  display: block;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================= */
/* Ad container              */
/* ========================= */

#div-gpt-ad-top {
  max-width: 100%;
  overflow: hidden;
}

/* ========================= */
/* Chat pages                */
/* ========================= */

.gchat-header {
  padding: 0.5rem 0.75rem;
}

.gchat-footer {
  padding: 0.5rem 0.75rem;
}

.gchat-body {
  padding: 0.75rem;
}

audio {
  max-width: 100%;
}

/* ========================= */
/* Animations                */
/* ========================= */

.animate-popin {
  animation: popinMessage 0.4s ease-out forwards;
  opacity: 0;
  transform: scale(0.1) translateY(200px);
  transform-origin: bottom center;
}

.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }
.delay-3 { animation-delay: 3s; }

@keyframes popinMessage {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ========================= */
/* Tablet & Desktop (>=768)  */
/* ========================= */

@media (min-width: 768px) {
  div[style*="background-color: var(--primary)"] {
    padding: 1.5rem;
  }

  div[style*="background-color: var(--primary)"] h1 {
    font-size: 2rem;
  }

  div[style*="background-color: var(--primary)"] h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  div[style*="background-color: var(--primary)"] h3 {
    font-size: 1.25rem;
  }

  div[style*="background-color: var(--primary)"] p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
  }

  .faq-question { font-size: 1rem; }
  .faq-answer { font-size: 0.95rem; }
  .gchat-header { padding: 0.5rem 1rem; }
  .gchat-footer { padding: 0.5rem 1rem; }
  .gchat-body { padding: 0.75rem 1rem; }
}