/* ZabiTech homepage extras - load AFTER style.css, home.css and popup.css.
   All classes are prefixed "zx-" so nothing in your existing CSS is affected. */

:root {
  --zx-blue: #0078d4;
  --zx-blue-dark: #005a9e;
  --zx-ink: #1b2430;
  --zx-muted: #5b6776;
  --zx-soft: #f3f7fb;
  --zx-line: #dbe5ef;
  --zx-dark: #1e1e2e;
  --zx-green: #2ea44f;
}

.zx-section { padding: 64px 20px; background: #fff; }
.zx-center { text-align: center; }
.zx-fine { font-size: 13px; opacity: .75; margin-top: 12px; }

/* Trust chips under hero buttons */
.zx-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px;
  justify-content: center; margin: 26px 0 0; padding: 0; font-size: 14px;
}
.zx-trust li::before { content: "\2713\00a0"; font-weight: 700; }

/* Learning path */
.zx-steps {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.zx-steps li {
  position: relative; background: var(--zx-soft); border: 1px solid var(--zx-line);
  border-radius: 14px; padding: 22px 20px 20px;
  transition: transform .2s, box-shadow .2s;
}
.zx-steps li:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,120,212,.12); }
.zx-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--zx-blue); color: #fff; font-weight: 700; margin-bottom: 10px;
}
.zx-steps h3 { margin: 0 0 6px; color: var(--zx-ink); }
.zx-steps p { margin: 0 0 12px; color: var(--zx-muted); font-size: 15px; }
.zx-steps a { color: var(--zx-blue); font-weight: 600; text-decoration: none; }
.zx-steps a:hover { text-decoration: underline; }
.zx-more { text-align: center; margin-top: 26px; color: var(--zx-muted); font-size: 15px; }
.zx-more a { color: var(--zx-blue); text-decoration: none; }
.zx-more a:hover { text-decoration: underline; }

/* Image Squasher tool section (dark, matches the app) */
.zx-tool { background: var(--zx-dark); color: #e6e6f0; padding: 72px 20px 36px; }
.zx-tool-inner {
  max-width: 1100px; margin: 0 auto; display: grid; gap: 40px;
  grid-template-columns: 1.1fr 1fr; align-items: center;
}
.zx-pill {
  display: inline-block; background: rgba(0,120,212,.22); color: #7cc4ff;
  border: 1px solid var(--zx-blue); border-radius: 999px;
  font-size: 13px; font-weight: 600; padding: 5px 12px; margin-bottom: 14px;
}
.zx-tool h2 { color: #fff; margin: 0 0 14px; line-height: 1.2; }
.zx-tool p { color: #c9c9dc; line-height: 1.65; }
.zx-tool strong { color: #fff; }
.zx-ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.zx-ticks li { padding-left: 26px; position: relative; color: #e6e6f0; }
.zx-ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: #6fdc8c; font-weight: 700;
}
.zx-tool .hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.zx-tool-link { color: #7cc4ff; text-decoration: none; font-weight: 600; }
.zx-tool-link:hover { text-decoration: underline; }

/* CSS-only app preview */
.zx-mock {
  background: #28283b; border: 1px solid #44445e; border-radius: 14px;
  padding: 14px 16px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.zx-mock-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.zx-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #44445e; }
.zx-mock-drop {
  border: 2px dashed var(--zx-blue); border-radius: 10px; text-align: center;
  padding: 22px 10px; color: #cfe6fb; font-weight: 600; font-size: 14px;
  background: rgba(0,120,212,.1);
}
.zx-mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.zx-mock-card {
  background: #1e1e2e; border: 1px solid #44445e; border-radius: 8px;
  padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.zx-mock-thumb {
  height: 54px; border-radius: 5px;
  background: linear-gradient(135deg, #0078d4, #6fdc8c);
}
.zx-mock-thumb.zx-t2 { background: linear-gradient(135deg, #8a5cf6, #0078d4); }
.zx-mock-thumb.zx-t3 { background: linear-gradient(135deg, #f59e0b, #e5534b); }
.zx-mock-card small { font-size: 11px; color: #9a9ab5; }
.zx-mock-card b {
  font-size: 11px; color: #6fdc8c; background: rgba(46,164,79,.2);
  border: 1px solid var(--zx-green); border-radius: 999px;
  padding: 2px 8px; align-self: flex-start;
}

/* Features */
.zx-features {
  display: grid; gap: 22px; margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.zx-features h3 { margin: 0 0 6px; }
.zx-features p { margin: 0; line-height: 1.6; }
.zx-features a { color: var(--zx-blue); }

@media (max-width: 800px) {
  .zx-tool-inner { grid-template-columns: 1fr; }
  .zx-section { padding: 48px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .zx-steps li { transition: none; }
  .zx-steps li:hover { transform: none; }
}

/* ===== Added for the full-content homepage ===== */
.zx-alt { background: var(--zx-soft); }

.zx-prose { max-width: 800px; margin: 0 auto; color: var(--zx-ink); line-height: 1.75; font-size: 17px; }
.zx-prose h2 { margin: 0 0 16px; }
.zx-prose h3 { margin: 28px 0 8px; color: var(--zx-blue-dark); }
.zx-prose p { margin: 0 0 14px; color: #34404f; }
.zx-prose a { color: var(--zx-blue); }
.zx-prose code { background: #eef2f6; padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.zx-list { padding-left: 22px; }
.zx-list li { margin-bottom: 12px; color: #34404f; }

.zx-topics {
  display: grid; gap: 20px; margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.zx-topics article {
  background: #fff; border: 1px solid var(--zx-line); border-radius: 14px; padding: 22px;
}
.zx-topics h3 { margin: 0 0 8px; color: var(--zx-blue-dark); }
.zx-topics p { margin: 0; line-height: 1.7; color: #34404f; }

.zx-author {
  display: flex; gap: 20px; align-items: center; background: #fff;
  border: 1px solid var(--zx-line); border-radius: 14px; padding: 20px; margin: 22px 0;
}
.zx-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.zx-author h3 { margin: 0 0 6px; }
.zx-author p { margin: 0; line-height: 1.65; color: #34404f; }

.zx-ticks-light li { color: #34404f; }
.zx-ticks-light li::before { color: var(--zx-green); }
.zx-ticks-light a { color: var(--zx-blue); }

@media (max-width: 560px) {
  .zx-author { flex-direction: column; text-align: center; }
  .zx-topics { grid-template-columns: 1fr; }
}

/* =====================================================
   Centered layout + sharp font (loaded last, so it wins)
   ===================================================== */
:root { --zx-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }

html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body, body *:not(code):not(pre) { font-family: var(--zx-font) !important; }
body { font-size: 17px; line-height: 1.7; }
h1, h2, h3 { letter-spacing: -0.01em; line-height: 1.25; font-weight: 700; }
h1 { font-weight: 800; }

/* Center all page text */
main, main *, .site-footer, .site-footer * { text-align: center !important; }
main section { text-align: center; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.zx-prose, .about-inner, .section-inner, .faq-container { margin-left: auto; margin-right: auto; }
.section-sub { max-width: 720px; margin-left: auto; margin-right: auto; }
.about-inner p { max-width: 800px; margin-left: auto; margin-right: auto; }

/* Centered card grids (incomplete last rows stay centered) */
.articles, .zx-topics, .zx-steps, .zx-features, .zx-tips {
  display: flex !important; flex-wrap: wrap; justify-content: center; gap: 22px;
  list-style: none; padding: 0; margin-left: auto; margin-right: auto;
}
.zx-steps { margin-top: 32px; }
.zx-topics, .zx-features, .zx-tips { margin-top: 28px; }

.article {
  display: flex !important; flex-direction: column; flex: 0 1 320px; max-width: 340px;
  background: #fff; border: 1px solid var(--zx-line); border-radius: 14px; overflow: hidden;
}
.article img { display: block; width: 100% !important; height: 200px !important; object-fit: cover; margin: 0 auto; }
.article-body { padding: 18px 18px 22px; }

.zx-topics article { flex: 1 1 300px; max-width: 360px; }
.zx-steps li { flex: 1 1 210px; max-width: 260px; }
.zx-features > div { flex: 1 1 220px; max-width: 280px; }
.zx-tip {
  flex: 1 1 200px; max-width: 240px; background: var(--zx-soft);
  border: 1px solid var(--zx-line); border-radius: 14px; padding: 20px 16px;
}
.zx-tip h3 { margin: 4px 0 8px; font-size: 18px; color: var(--zx-ink); }
.zx-tip p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--zx-muted); }

/* Trust chips */
.zx-trust { justify-content: center; }

/* Author box stacks and centers */
.zx-author { flex-direction: column; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.zx-author img { margin: 0 auto; }

/* Tick list centered */
.zx-ticks-light { max-width: 640px; margin: 22px auto; padding: 0; }
.zx-ticks-light li { padding-left: 0; }
.zx-ticks-light li::before { position: static; margin-right: 8px; }

/* FAQ centered */
.faq-container { max-width: 760px; }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: 10px; font-weight: 700; color: var(--zx-blue); }
.faq-item[open] summary::after { content: "\2013"; }

/* Footer centered */
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }