/* ==========================================================================
   AyeTech Blog — Sharp Technical Layout
   Bento grids. Angular panels. Terminal energy.
   AyeTech brand: white #fafafa, black #0a0a0b, coral #f06449
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page-Level: gray background so white panels pop
   -------------------------------------------------------------------------- */
body {
  background: #f0f0f2 !important;
}

/* --------------------------------------------------------------------------
   Container — wide, fills the screen
   -------------------------------------------------------------------------- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

/* --------------------------------------------------------------------------
   Hero / Article Header
   -------------------------------------------------------------------------- */
article header {
  background: var(--white);
  margin: 0 -1.25rem 2px;
  padding: 2rem 2.5rem 1.75rem;
  border-bottom: 2px solid var(--brand);
}

article header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1rem;
  max-width: 800px;
}

article header p {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

article header p strong {
  color: var(--brand-text);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: var(--brand-text);
}

.breadcrumb-sep {
  margin: 0 0.5rem;
  color: var(--gray-2);
}

.breadcrumb-current {
  color: var(--brand-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Bento Grid — alert + highlight side by side
   -------------------------------------------------------------------------- */
.blog-bento {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2px;
  margin-bottom: 2px;
}

.blog-bento > * {
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
article h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
  border-image: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

article h2::before {
  content: '//';
  color: var(--brand-text);
  font-weight: 400;
  font-size: 0.875em;
}

article h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

article h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

article p {
  margin-bottom: 0.875rem;
  line-height: 1.6;
  color: #52525b;
  font-size: 0.9375rem;
}

article ul,
article ol {
  margin-bottom: 0.875rem;
  padding-left: 1.5rem;
}

article li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
  color: #52525b;
  font-size: 0.9375rem;
}

article a {
  color: var(--brand-text);
  text-decoration: underline;
  text-decoration-color: rgba(181, 64, 44, 0.3);
  text-underline-offset: 3px;
  transition: all 0.15s ease;
}

article a:hover {
  color: var(--brand-text-hover);
  text-decoration-color: var(--brand-text-hover);
}

article strong {
  color: var(--black);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Sections — white panel cards
   -------------------------------------------------------------------------- */
article > section {
  background: var(--white);
  padding: 1.75rem 2.5rem;
  margin-bottom: 2px;
}

/* Remove top margin from first h2 in sections */
article > section > h2:first-child {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Key Takeaways / Highlight Box
   -------------------------------------------------------------------------- */
.highlight-box {
  background: var(--white);
  border: none;
  border-left: 4px solid var(--brand);
  border-radius: 0;
  padding: 1.5rem 2rem;
  margin: 0 0 2px 0;
  box-shadow: none;
  position: relative;
}

.highlight-box::before {
  display: none;
}

.highlight-box h3 {
  font-family: var(--font-display);
  margin-top: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 1.25rem;
}

.highlight-box h3::before {
  display: none;
}

.highlight-box ul {
  margin-bottom: 0;
}

.highlight-box li {
  padding: 0.5rem 0;
  color: #52525b;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}

.highlight-box li:last-child {
  border-bottom: none;
}

.highlight-box li strong {
  color: var(--brand-text);
}

.highlight-box.takeaways { border-left-color: var(--brand); }
.highlight-box.warning { border-left-color: #f59e0b; }
.highlight-box.timeline { border-left-color: #6366f1; }

/* Highlight box inside a section — no extra margin */
article > section .highlight-box {
  margin: 1.5rem 0;
}

/* --------------------------------------------------------------------------
   Alert / Warning / Success Boxes
   -------------------------------------------------------------------------- */
.alert-box,
.warning-box,
.success-box {
  border-radius: 0;
  padding: 1.5rem 2rem;
  margin: 0 0 2px 0;
  position: relative;
  box-shadow: none;
  border: none;
}

.alert-box::before,
.warning-box::before,
.success-box::before {
  display: none;
}

.alert-box {
  background: var(--white);
  border-left: 4px solid var(--brand);
}

.alert-box h4 {
  color: var(--brand-text);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.warning-box {
  background: var(--white);
  border-left: 4px solid #f59e0b;
}

.warning-box h4 {
  color: #b45309;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.success-box {
  background: var(--white);
  border-left: 4px solid #22c55e;
}

.success-box h4 {
  color: #15803d;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.alert-box p, .alert-box li,
.warning-box p, .warning-box li,
.success-box p, .success-box li {
  color: #52525b;
}

/* Alert/warning/success inside sections */
article > section .alert-box,
article > section .warning-box,
article > section .success-box {
  margin: 1.25rem -2.5rem;
  padding: 1.25rem 2.5rem;
}

/* --------------------------------------------------------------------------
   Stat Grid — Bento tiles
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 1.25rem -2.5rem;
  background: #e8e8ea;
}

.stat-card {
  background: var(--gray-3);
  border: none;
  border-radius: 0;
  padding: 1.25rem 1.25rem;
  text-align: center;
  box-shadow: none;
  transition: background 0.2s ease;
}

.stat-card:hover {
  background: var(--white);
  transform: none;
  box-shadow: none;
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.375rem;
  color: var(--brand-text);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.stat-card .stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Table of Contents
   -------------------------------------------------------------------------- */
.toc {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 1.5rem 2rem;
  margin: 0 0 2px 0;
  border-left: 4px solid var(--brand);
}

.toc h3 {
  font-family: var(--font-display);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.toc h3::before { display: none; }

.toc ol {
  margin-bottom: 0;
  counter-reset: toc-counter;
  list-style: none;
  padding-left: 0;
}

.toc li {
  counter-increment: toc-counter;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
}

.toc li:last-child { border-bottom: none; }

.toc a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #52525b;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.toc a::before {
  content: counter(toc-counter, decimal-leading-zero);
  color: var(--brand-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 1.5rem;
}

.toc a:hover {
  color: var(--black);
  padding-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   Numbered Steps — STEP badges
   -------------------------------------------------------------------------- */
.numbered-steps {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.numbered-steps li {
  counter-increment: step-counter;
  padding: 1.25rem 0 1.25rem 5rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  color: #52525b;
  font-size: 0.9375rem;
}

.numbered-steps li:last-child { border-bottom: none; }

.numbered-steps li::before {
  content: 'STEP_' counter(step-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  background: var(--brand);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.625rem;
  border-radius: 0;
}

.numbered-steps li strong {
  color: var(--black);
  display: block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  color: #52525b;
  font-size: 0.9375rem;
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: "\25A0";
  position: absolute;
  left: 0;
  font-size: 0.5rem;
  color: var(--brand-text);
  top: 1rem;
  background: none;
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   Pricing / Comparison Table
   -------------------------------------------------------------------------- */
.pricing-table,
.comparison-table {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: none;
  border: 1px solid var(--border-color);
}

.pricing-table table,
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.comparison-table th {
  background: var(--black);
  color: var(--brand);
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--brand);
}

.pricing-table td,
.comparison-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: #52525b;
}

.pricing-table tr:last-child td,
.comparison-table tr:last-child td { border-bottom: none; }

.pricing-table tr:nth-child(even) td,
.comparison-table tr:nth-child(even) td {
  background: var(--gray-3);
}

.pricing-table tr:hover td,
.comparison-table tr:hover td {
  background: rgba(240, 100, 73, 0.04);
}

.winner-badge {
  display: inline-block;
  background: var(--brand);
  color: white;
  border-radius: 0;
  padding: 0.125rem 0.5rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   CTA Section — dark panel
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--black);
  color: var(--white);
  padding: 2rem 2.5rem;
  border-radius: 0;
  text-align: left;
  margin: 2px 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--brand);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 100, 73, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.625rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cta-section h3::before { display: none; }

.cta-section p {
  color: var(--gray-1);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  max-width: 560px;
}

.cta-section strong {
  color: var(--white);
}

.cta-section .btn,
.cta-section a[href] {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
}

.cta-section .btn:hover,
.cta-section a[href]:hover {
  background: var(--brand-hover);
  box-shadow: 0 0 30px rgba(240, 100, 73, 0.2);
  color: white;
  transform: none;
}

/* --------------------------------------------------------------------------
   FAQ Section — two-column grid
   -------------------------------------------------------------------------- */
.faq-section {
  background: var(--white);
  padding: 1.75rem 2.5rem;
  margin: 2px 0;
}

.faq-section h2 {
  margin-bottom: 1.5rem;
}

.faq-section .faq-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.faq-item {
  background: var(--gray-3);
  border: none;
  border-radius: 0;
  margin-bottom: 2px;
  overflow: hidden;
  transition: background 0.2s ease;
}

.faq-item:hover {
  background: #ececee;
  box-shadow: none;
}

.faq-question {
  background: transparent;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s ease;
  color: var(--black);
  letter-spacing: 0.01em;
}

.faq-question:hover { color: var(--brand-text); }

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--brand-text);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--border-color);
  color: #52525b;
  line-height: 1.7;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Contact Info
   -------------------------------------------------------------------------- */
.contact-info {
  background: var(--white);
  border: none;
  border-left: 4px solid var(--brand);
  border-radius: 0;
  padding: 1.5rem 2rem;
  margin: 2px 0 0;
  box-shadow: none;
}

.contact-info h3 {
  margin-top: 0;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1rem;
}

.contact-info h3::before { display: none; }
.contact-info p { color: #52525b; }

.contact-info a {
  color: var(--brand-text);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover { color: var(--brand-text-hover); }

/* --------------------------------------------------------------------------
   Secondary Button
   -------------------------------------------------------------------------- */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--text-muted);
  transition: all 0.2s ease;
}

.cta-section .btn-secondary {
  background: transparent;
  color: var(--gray-1);
  border-color: rgba(255,255,255,0.2);
}

.cta-section .btn-secondary:hover {
  border-color: var(--brand);
  color: #f06449;
  background: transparent;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Use Case / Comparison Grids
   -------------------------------------------------------------------------- */
.use-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 1.5rem 0;
  background: #e8e8ea;
}

.use-case-card {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 2rem;
  transition: background 0.2s ease;
}

.use-case-card:hover { background: var(--gray-3); transform: none; }
.use-case-card.ms-card { border-top: 3px solid #0078d4; }
.use-case-card.gw-card { border-top: 3px solid #4285f4; }
.use-case-card h4, .use-case-card h3 { color: var(--black); }
.use-case-card p { color: #52525b; }

/* --------------------------------------------------------------------------
   Verdict Box
   -------------------------------------------------------------------------- */
.verdict-box {
  background: var(--black);
  color: var(--white);
  border-radius: 0;
  padding: 1.75rem 2.5rem;
  margin: 0 0 2px;
  border-left: 4px solid var(--brand);
}

.verdict-box::before { display: none; }
.verdict-box h3, .verdict-box h4 { color: var(--white); }
.verdict-box p { color: var(--gray-1); }

/* --------------------------------------------------------------------------
   Strategy / Comparison Cards
   -------------------------------------------------------------------------- */
.strategy-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 1.75rem;
  margin: 0.5rem 0;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.strategy-card:hover {
  border-left-color: var(--brand);
  background: var(--gray-3);
  transform: none;
}

.strategy-number {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--brand-text);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 1.5rem 0;
  background: #e8e8ea;
}

.comparison-card {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 2rem;
}

.comparison-card h3, .comparison-card h4 { color: var(--black); }
.comparison-card p, .comparison-card li { color: #52525b; }
.comparison-card.reactive { border-top: 3px solid var(--brand); }
.comparison-card.proactive { border-top: 3px solid var(--green); }

.savings-row,
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-color);
  color: #52525b;
  font-size: 0.875rem;
}

.total-row {
  font-weight: 700;
  font-family: var(--font-display);
  border-bottom: none;
  padding-top: 0.75rem;
  color: var(--brand-text);
}

.stat-box {
  background: var(--gray-3);
  border-radius: 0;
  padding: 1.25rem;
  text-align: center;
  margin: 1rem 0;
  color: var(--black);
}

.signs-list {
  list-style: none;
  padding-left: 0;
}

.signs-list li {
  padding: 0.625rem 0 0.625rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  color: #52525b;
  font-size: 0.875rem;
}

.signs-list li:last-child { border-bottom: none; }

.signs-list li::before {
  content: "\25B6";
  position: absolute;
  left: 0;
  color: var(--brand-text);
  font-size: 0.5rem;
  top: 0.875rem;
}

.ms-row td:first-child,
.gw-row td:first-child {
  font-weight: 600;
  color: var(--black);
}

/* --------------------------------------------------------------------------
   Selection
   -------------------------------------------------------------------------- */
::selection {
  background: var(--brand);
  color: white;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-section .faq-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0.75rem 0.75rem 2rem;
  }

  article header {
    margin: 0 -0.75rem 2px;
    padding: 1.5rem 1.25rem;
  }

  article > section {
    padding: 1.5rem 1.25rem;
  }

  .blog-bento {
    grid-template-columns: 1fr;
  }

  article header h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  article h2 {
    font-size: 1.375rem;
  }

  .stat-grid {
    margin: 1rem -1.25rem;
    grid-template-columns: 1fr 1fr;
  }

  article > section .alert-box,
  article > section .warning-box,
  article > section .success-box {
    margin: 1rem -1.25rem;
    padding: 1.25rem;
  }

  .cta-section {
    padding: 1.5rem 1.25rem;
  }

  .faq-section {
    padding: 1.5rem 1.25rem;
  }

  .use-case-grid,
  .comparison-cards {
    grid-template-columns: 1fr;
  }

  .numbered-steps li {
    padding-left: 4rem;
  }

  .highlight-box,
  .toc,
  .contact-info {
    padding: 1.25rem;
  }
}

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

  .cta-section .btn,
  .cta-section a[href] {
    display: block;
    text-align: center;
    margin-right: 0;
  }

  .numbered-steps li {
    padding-left: 0;
    padding-top: 2.5rem;
  }

  .numbered-steps li::before {
    top: 0.5rem;
    left: 0;
  }
}
