/*
Theme Name: Lumipix
Theme URI: https://lumipix.tools/
Author: Lumipix
Author URI: https://lumipix.tools/
Description: Lumipix is a fast, lightweight WordPress theme built for free online image tools. Ships with a client-side AI background remover: images are processed in the visitor's browser, so there is no server cost and photos stay private.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumipix
Tags: tools, minimal, fast, responsive, seo
*/

/* ============ Lumipix 2.0 — design system ============ */
:root {
  --ink: #0b1526;
  --ink-soft: #47536b;
  --ink-faint: #6b7790;
  --brand: #2451e6;
  --brand-dark: #1a3ab0;
  --brand-ink: #12275e;
  --brand-soft: #e9effe;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-deep: #0b1526;
  --line: #e2e8f3;
  --ok: #15803d;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(11, 21, 38, 0.10);
  --shadow-sm: 0 6px 18px rgba(11, 21, 38, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16.5px;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 36px;
  background: linear-gradient(135deg, var(--brand), #6a8bff);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(36,81,230,.35);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 13px; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}
.header-cta { white-space: nowrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: 1rem; font-family: var(--font);
  padding: 15px 36px; border-radius: 999px;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  box-shadow: 0 8px 22px rgba(36,81,230,.30);
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(36,81,230,.38); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 10px 22px; font-size: .92rem; }
.btn-light { background: #fff; color: var(--brand-ink); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.btn-light:hover { background: #eef3ff; color: var(--brand-ink); }

/* ============ Hero (split layout) ============ */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(52% 42% at 82% 12%, rgba(36,81,230,.09), transparent 70%),
    radial-gradient(40% 34% at 8% 88%, rgba(245,158,11,.07), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08; margin: 0 0 18px;
  letter-spacing: -0.032em; font-weight: 800;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--brand), #6a8bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 520px; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-soft); font-size: .93rem; font-weight: 600; }
.hero-points span::before { content: "✓ "; color: var(--ok); font-weight: 800; }

/* Hero visual: product mockup card */
.hero-visual { position: relative; }
.mock-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(1.2deg);
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-bar i:nth-child(1) { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 8px; font-size: .8rem; color: var(--ink-faint); font-weight: 600; }
.mock-body { padding: 22px; }
.mock-img {
  border-radius: 12px; overflow: hidden; position: relative;
  background:
    linear-gradient(45deg, #dfe4ef 25%, transparent 25%),
    linear-gradient(-45deg, #dfe4ef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dfe4ef 75%),
    linear-gradient(-45deg, transparent 75%, #dfe4ef 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  background-color: #f4f6fb;
}
.mock-img img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: top; }
.mock-tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(11,21,38,.88); color: #fff;
  font-size: .8rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}
.mock-row { display: flex; gap: 10px; margin-top: 16px; }
.mock-chip {
  flex: 1; text-align: center; font-size: .82rem; font-weight: 700;
  padding: 10px 6px; border-radius: 10px; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--ink-soft);
}
.mock-chip strong { display: block; color: var(--ink); font-size: .95rem; }
.float-badge {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 18px; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: 10px;
  animation: floaty 5s ease-in-out infinite;
}
.float-badge .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: #e7f7ee; color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900;
}
.float-badge small { display: block; font-weight: 600; color: var(--ink-faint); font-size: .76rem; }
.fb-1 { top: -24px; right: -14px; }
.fb-2 { bottom: -22px; left: -18px; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============ Sections ============ */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .kicker {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.section-head h2 { font-size: 2rem; margin: 0 0 12px; letter-spacing: -0.022em; font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.06rem; }

/* ============ Tool card ============ */
.tool-shell {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 34px; max-width: 920px; margin: 0 auto;
}
.dropzone {
  border: 2px dashed #a9bff5; border-radius: var(--radius);
  background: linear-gradient(180deg, #f7f9ff, var(--bg-soft));
  padding: 52px 24px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-icon { font-size: 2.6rem; }
.dropzone p { margin: 12px 0 6px; font-weight: 700; font-size: 1.08rem; }
.dropzone small { color: var(--ink-soft); }
.samples { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.samples-label { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.sample {
  border: 2px solid var(--line); border-radius: 12px; padding: 0; cursor: pointer;
  overflow: hidden; background: #fff; line-height: 0;
  transition: border-color .15s, transform .15s;
}
.sample:hover { border-color: var(--brand); transform: translateY(-2px); }
.sample img { display: block; width: 88px; height: 56px; object-fit: cover; }
.tool-status { margin-top: 20px; display: none; }
.tool-status.show { display: block; }
.progress { height: 10px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), #6a8bff); border-radius: 99px; transition: width .2s; }
.status-text { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }
.tool-error {
  display: none; margin-top: 16px; padding: 13px 18px; border-radius: 12px;
  background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; font-size: .95rem;
}
.tool-error.show { display: block; }
.result-area { display: none; margin-top: 24px; }
.result-area.show { display: block; }
.compare { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.compare img { display: block; width: 100%; }
.compare .after-wrap { position: absolute; inset: 0; overflow: hidden; }
.compare .after-wrap img { width: 100%; height: 100%; object-fit: contain; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.compare .handle::after {
  content: "◀ ▶"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); background: #fff; border-radius: 99px;
  padding: 7px 11px; font-size: .7rem; box-shadow: var(--shadow); white-space: nowrap;
}
.compare-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }
.checker {
  background-image:
    linear-gradient(45deg, #dfe4ef 25%, transparent 25%),
    linear-gradient(-45deg, #dfe4ef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dfe4ef 75%),
    linear-gradient(-45deg, transparent 75%, #dfe4ef 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.bg-options { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0 8px; }
.bg-options .lbl { font-weight: 700; font-size: .92rem; margin-right: 4px; }
.bg-swatch { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.bg-swatch.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.bg-swatch.transparent { background: #fff; position: relative; overflow: hidden; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.privacy-note { margin-top: 16px; font-size: .86rem; color: var(--ink-soft); text-align: center; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; transition: transform .15s, box-shadow .15s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step .num {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--brand), #6a8bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ============ Feature grid ============ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-size: 1.04rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ============ Comparison table ============ */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 560px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--bg-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .hl { background: var(--brand-soft); font-weight: 800; color: var(--brand-dark); }
.compare-table thead .hl { color: var(--brand-dark); font-size: .9rem; }
.tick-y { color: var(--ok); font-weight: 800; }
.tick-n { color: #b6bdd0; font-weight: 800; }

/* ============ Use cases ============ */
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #fff; transition: transform .15s, box-shadow .15s;
}
.use-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.use-card .ph { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.use-card .tx { padding: 18px 20px; }
.use-card h3 { margin: 0 0 6px; font-size: 1rem; }
.use-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* ============ FAQ ============ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; transition: box-shadow .15s; }
.faq-item.open { box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 18px 22px; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--ink); font-family: var(--font);
}
.faq-q::after {
  content: "+"; font-size: 1.4rem; color: var(--brand); flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft);
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  transition: transform .15s;
}
.faq-item.open .faq-q::after { content: "–"; transform: rotate(180deg); }
.faq-a { display: none; padding: 0 22px 20px; color: var(--ink-soft); }
.faq-item.open .faq-a { display: block; }

/* ============ CTA band (dark) ============ */
.cta-band {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(36,81,230,.35), transparent 70%),
    var(--bg-deep);
  color: #fff; text-align: center; padding: 88px 0;
}
.cta-band h2 { color: #fff; margin: 0 0 12px; font-size: 2.1rem; letter-spacing: -0.025em; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0 0 30px; font-size: 1.08rem; }
.cta-band .fine { margin-top: 18px; font-size: .86rem; color: rgba(255,255,255,.55); }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { margin: 0 0 14px; font-size: .95rem; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--ink-soft); font-size: .93rem; }
.site-footer a:hover { color: var(--brand); }
.foot-brand p { color: var(--ink-soft); font-size: .92rem; max-width: 300px; }
.site-footer .fine {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ============ Inner pages ============ */
.page-head { padding: 56px 0 12px; }
.page-head h1 { font-size: 2.3rem; margin: 0 0 8px; letter-spacing: -0.025em; font-weight: 800; }
.page-head p { color: var(--ink-soft); margin: 0; }
.entry-content { padding: 14px 0 70px; }
.entry-content h2 { margin-top: 38px; letter-spacing: -0.02em; }
.entry-content p, .entry-content li { color: #24344f; }
.post-list { display: grid; gap: 18px; margin: 28px 0 70px; }
.post-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.post-item h2 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -0.015em; }
.post-item .meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 10px; }
.post-item p { margin: 0 0 12px; color: var(--ink-soft); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 52px 0 48px; }
  .grid-4, .use-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .fb-1 { right: 6px; }
  .fb-2 { left: 6px; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 14px; }
  .header-cta { display: none; }
  .tool-shell { padding: 22px; }
}
@media (max-width: 560px) {
  .grid-4, .use-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .section { padding: 56px 0; }
  .float-badge { font-size: .8rem; padding: 10px 14px; }
}
