/* ============================================
   Mici Template - Custom CSS
   Based on original Mici HTML Template
   ============================================ */

/* CSS Variables */
:root {
  --mici-primary: #5223f6;
  --mici-heading: #39436f;
  --mici-body: #777777;
  --mici-white: #ffffff;
  --mici-turquoise: #03e1b9;
  --mici-turquoise-hover: #222222;
  --mici-coral: #fa8484;
  --mici-price: #ff8e7b;
  --mici-cta-bg: #f9f3fb;
  --mici-pricing-bg: #f8fdff;
  --mici-pricing-border: #f4f4f4;
  --mici-hero-gradient-start: #4D32F7;
  --mici-hero-gradient-end: #17c9fc;
  --mici-link: #5223f6;
  --mici-hero-text: #d8def2;
  --mici-feature-1: #f9a89a;
  --mici-feature-2-start: #C86BFA;
  --mici-feature-2-end: #a96df9;
  --mici-feature-3-start: #15E4BD;
  --mici-feature-3-end: #98f6de;
  --mici-feature-4-start: #F57EF5;
  --mici-feature-4-end: #fca7be;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--mici-body);
  line-height: 1.7em;
  font-weight: 400;
  background: var(--mici-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--mici-heading);
  font-weight: 600;
  line-height: 1.2em;
  margin: 0 0 15px;
}

h1 { font-size: 56px; }
h2 { font-size: 44px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
  margin: 0 0 15px;
  line-height: 1.7em;
}

a {
  color: var(--mici-link);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--mici-coral);
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Container */
.auto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* Buttons */
.btn-style-one,
.btn-style-two {
  position: relative;
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  line-height: 1.5;
}

.btn-style-one {
  background: var(--mici-white);
  color: var(--mici-heading);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.btn-style-one:hover {
  background: var(--mici-coral);
  color: var(--mici-white);
  transform: scale(1.05);
}

.btn-style-two {
  background: var(--mici-turquoise);
  color: var(--mici-white);
}

.btn-style-two:hover {
  background: var(--mici-turquoise-hover);
  transform: scale(1.05);
}

/* Section Title */
.sec-title {
  text-align: center;
  margin-bottom: 50px;
}

.sec-title h2 {
  color: var(--mici-heading);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2em;
  margin-bottom: 12px;
}

.sec-title p {
  color: var(--mici-body);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
  background: var(--mici-pricing-bg);
  border: 1px solid var(--mici-pricing-border);
  padding: 60px 30px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0px 0px 20px rgba(255,144,148,0.20);
}

/* Feature Box */
.feature-box {
  background: var(--mici-white);
  padding: 40px 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.feature-box:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

/* How It Works Steps */
.step-number {
  font-size: 72px;
  font-weight: 800;
  color: rgba(57,67,111,0.06);
  line-height: 1;
  margin-bottom: 10px;
}

/* Testimonial Card */
.testimonial-card {
  background: var(--mici-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--mici-heading);
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--mici-body);
}

/* CTA Section */
.cta-section {
  background: var(--mici-cta-bg);
  padding: 100px 0;
  text-align: center;
}

/* Blog Card */
.blog-card {
  background: var(--mici-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--mici-heading);
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--mici-heading);
  background: var(--mici-white);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--mici-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Prose - Static Pages & Blog Content
   ============================================ */

/* Headings */
.prose h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--mici-heading);
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.3;
}

.prose h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--mici-heading);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.35;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f5;
}

.prose h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--mici-heading);
  margin-top: 36px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.prose h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--mici-heading);
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.prose h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--mici-heading);
  margin-top: 24px;
  margin-bottom: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prose h6 {
  font-size: 14px;
  font-weight: 600;
  color: #777777;
  margin-top: 20px;
  margin-bottom: 8px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.2em;
  line-height: 1.8em;
  color: var(--mici-body);
  font-size: 15px;
}

.prose p + p {
  margin-top: 0;
}

/* Links */
.prose a {
  color: #5223f6;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}

.prose a:hover {
  color: #ff8f95;
  border-bottom-color: #ff8f95;
}

/* Lists */
.prose ul, .prose ol {
  margin-bottom: 1.5em;
  padding-left: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.7em;
  color: var(--mici-body);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4D32F7, #17c9fc);
}

.prose ol {
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
  line-height: 1.7em;
  color: var(--mici-body);
  counter-increment: prose-counter;
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4D32F7, #17c9fc);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose li > ul, .prose li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.prose li p {
  margin-bottom: 6px;
}

.prose li p:last-child {
  margin-bottom: 0;
}

/* Blockquotes */
.prose blockquote {
  position: relative;
  border-left: none;
  padding: 24px 32px;
  margin: 32px 0;
  background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
  border-radius: 12px;
  color: var(--mici-heading);
  font-style: italic;
  font-size: 16px;
  line-height: 1.8em;
}

.prose blockquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 48px;
  font-weight: 700;
  color: #5223f6;
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.prose blockquote p {
  margin-bottom: 0;
  color: var(--mici-heading);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: #777777;
}

.prose blockquote cite::before {
  content: '— ';
}

/* Code & Pre */
.prose code {
  background: #f4f4f8;
  color: #5223f6;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 13px;
  font-weight: 500;
}

.prose pre {
  background: #1e1e2e;
  color: #e4e4e7;
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
}

.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Images */
.prose img {
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  max-width: 100%;
  height: auto;
}

.prose figure {
  margin: 32px 0;
}

.prose figcaption {
  text-align: center;
  font-size: 13px;
  color: #777777;
  margin-top: 8px;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.prose thead {
  background: linear-gradient(135deg, #4D32F7, #7b5cff);
}

.prose th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border: none;
}

.prose th:first-child {
  border-radius: 12px 0 0 0;
}

.prose th:last-child {
  border-radius: 0 12px 0 0;
}

.prose td {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f5;
  color: var(--mici-body);
  background: #ffffff;
}

.prose tbody tr:last-child td:first-child {
  border-radius: 0 0 0 12px;
}

.prose tbody tr:last-child td:last-child {
  border-radius: 0 0 12px 0;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:nth-child(even) td {
  background: #fafbff;
}

.prose tbody tr:hover td {
  background: #f0f4ff;
}

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #e8e8f0, transparent);
  margin: 40px 0;
}

/* Strong & Emphasis */
.prose strong {
  font-weight: 700;
  color: var(--mici-heading);
}

.prose em {
  font-style: italic;
  color: rgba(57,67,111,0.85);
}

/* Selection */
.prose ::selection {
  background: rgba(82, 35, 246, 0.15);
  color: var(--mici-heading);
}

/* Grayscale for logos */
.logo-grayscale {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-grayscale:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Decorative pattern layers */
.pattern-layer {
  position: absolute;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Pagination
   ============================================ */

.pagy {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagy a,
.pagy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pagy a {
  background: #ffffff;
  color: var(--mici-heading);
  border: 1px solid #e8e8f0;
}

.pagy a:hover {
  background: linear-gradient(135deg, #4D32F7, #7b5cff);
  color: #ffffff;
  border-color: transparent;
}

.pagy span.current {
  background: linear-gradient(135deg, #4D32F7, #7b5cff);
  color: #ffffff;
  border: 1px solid transparent;
}

.pagy span.disabled {
  color: #ccc;
  background: #f8f8f8;
  border: 1px solid #e8e8f0;
  cursor: not-allowed;
}

.pagy span.gap {
  color: #999;
  background: transparent;
  border: none;
}

/* ============================================
   Tailwind Responsive Utilities Fallback
   (Tailwind v4 not generating responsive variants)
   ============================================ */

/* Small screens (sm: 640px+) */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Medium screens (md: 768px+) */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:hidden {
    display: none;
  }
}

/* Large screens (lg: 1024px+) */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }
  .lg\:col-span-9 {
    grid-column: span 9 / span 9;
  }
  .lg\:w-4\/12 {
    width: 33.333333%;
  }
  .lg\:w-8\/12 {
    width: 66.666667%;
  }
  .lg\:gap-16 {
    gap: 4rem;
  }
}
