/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── Tokens ───────────────────────────────────────────────────────── */
:root {
  --bg:        #0e0d0b;
  --bg2:       #111009;
  --surface:   #181713;
  --surface2:  #1c1a15;
  --border:    #2c2920;
  --border-xs: #201e18;
  --accent:    #c9a227;
  --accent-dim:#a8841e;
  --text:      #ede8df;
  --muted:     #7a7060;
  --dim:       #5c5549;
  --dim2:      #3a352e;
  --ok:        #6bbf72;
  --ok-bg:     #0f1e10;
  --ok-border: #1e3a20;
  --r-sm:      6px;
  --r-md:      8px;
  --r-lg:      12px;
  --r-xl:      16px;
  --max:       1400px;
  --pad-x:     1.25rem;
}

html.light {
  --bg:        #f5f3ef;
  --bg2:       #ece9e3;
  --surface:   #ffffff;
  --surface2:  #f0ede7;
  --border:    #d4cec4;
  --border-xs: #e0dbd2;
  --accent:    #b08a18;
  --accent-dim:#8f6e12;
  --text:      #1a1814;
  --muted:     #6b6357;
  --dim:       #8c8070;
  --dim2:      #c8c0b4;
  --ok:        #2e7d34;
  --ok-bg:     #eaf4eb;
  --ok-border: #b8debb;
}

html.light nav {
  background: rgba(245,243,239,0.92);
}

html.light .plan-card.featured { background: var(--surface2); }

/* ── Theme toggle ─────────────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
}
.theme-toggle:hover { color: var(--text); border-color: var(--dim); }

/* ── Base ─────────────────────────────────────────────────────────── */
body {
  font-family: 'DM Mono', 'Courier New', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Layout helpers ───────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: 3.5rem 0; }

hr.div {
  border: none;
  border-top: 0.5px solid var(--border-xs);
  margin: 0;
}

/* ── NAV ──────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,13,11,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border-xs);
  padding: 0.9rem var(--pad-x);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
}
.brand-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 1px;
}
.brand-sub {
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.nav-cta {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

.nav-tool-link {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.45rem 0.65rem;
  line-height: 1;
  white-space: nowrap;
  display: none;
  transition: color 0.15s, border-color 0.15s;
}
.nav-tool-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border: 0.5px solid rgba(201,162,39,0.3);
  border-radius: 99px;
  padding: 3px 10px;
}
.hero-kicker::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-sub {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  padding: 0.75rem 1.4rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.85; }

.hero-note { font-size: 0.72rem; color: var(--dim); }

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-proof strong { color: var(--ok); font-weight: 500; }

/* ── MOCK UI ──────────────────────────────────────────────────────── */
.mock {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  flex-shrink: 0;
}

.mock-bar {
  background: var(--bg);
  border-bottom: 0.5px solid var(--border-xs);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }

.mock-body { padding: 0.9rem; }

.mock-dropzone {
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  text-align: center;
  margin-bottom: 0.75rem;
}
.mock-dz-label { font-size: 0.75rem; color: var(--dim); }
.mock-dz-sub { font-size: 0.68rem; color: var(--dim2); margin-top: 2px; }

.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.7rem;
  background: var(--surface2);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-md);
  margin-bottom: 4px;
  min-width: 0;
}
.mock-thumb {
  width: 24px; height: 24px;
  border-radius: 4px;
  background: var(--border-xs);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mock-fname { flex: 1; font-size: 0.72rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mock-before { font-size: 0.68rem; color: var(--dim); text-decoration: line-through; flex-shrink: 0; }
.mock-arr { font-size: 0.65rem; color: var(--dim2); flex-shrink: 0; }
.mock-after { font-size: 0.68rem; color: var(--muted); flex-shrink: 0; }
.mock-badge { font-size: 0.65rem; padding: 1px 6px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); border: 0.5px solid var(--ok-border); white-space: nowrap; flex-shrink: 0; }

.mock-code {
  margin-top: 0.75rem;
  background: var(--bg);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-md);
  padding: 0.65rem 0.75rem;
}
.mock-code-line { font-size: 0.68rem; color: var(--accent); line-height: 1.6; }
.mock-code-line.dim { color: var(--dim); }

/* ── BENEFITS BAR ─────────────────────────────────────────────────── */
.benefits-bar {
  background: var(--surface);
  border-top: 0.5px solid var(--border-xs);
  border-bottom: 0.5px solid var(--border-xs);
  padding: 0.9rem var(--pad-x);
}
.benefits-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.benefit-check { color: var(--ok); font-size: 0.7rem; }

/* ── SECTION HEADERS ──────────────────────────────────────────────── */
.sec-label {
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.sec-h2 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.sec-sub {
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* ── FEATURES ─────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.feat-card {
  background: var(--surface);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s;
}
.feat-card:hover { border-color: var(--accent); }

/* ── Before / After mock ──────────────────────────────────────────── */
.mock-ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.mock-ba-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mock-ba-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
}
.mock-ba-before { color: var(--dim); background: var(--border-xs); }
.mock-ba-after  { color: var(--ok); background: var(--ok-bg); border: 0.5px solid var(--ok-border); }
.mock-ba-img {
  border-radius: var(--r-md);
  border: 0.5px solid var(--border-xs);
  overflow: hidden;
  position: relative;
}
.mock-ba-img-after { border-color: rgba(107,191,114,0.25); }
.mock-ba-size {
  font-size: 0.62rem;
  padding: 3px 6px;
  text-align: center;
  background: var(--bg);
  border-top: 0.5px solid var(--border-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-ba-size-bad  { color: var(--dim); }
.mock-ba-size-good { color: var(--ok); }
.mock-ba-arrow { color: var(--accent); font-size: 0.9rem; flex-shrink: 0; }

.feat-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.feat-icon svg { width: 14px; height: 14px; stroke: var(--accent); stroke-width: 1.5; fill: none; }

.feat-title {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.feat-desc {
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.55;
}

/* ── WORKFLOW ─────────────────────────────────────────────────────── */
.workflow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.workflow-step {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}
.workflow-step:last-child { padding-bottom: 0; }

.workflow-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 32px;
}
.workflow-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  flex-shrink: 0;
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.workflow-step.active .workflow-num {
  border-color: var(--accent);
  color: var(--accent);
}
.workflow-line {
  flex: 1;
  width: 0.5px;
  background: var(--border-xs);
  margin-top: 4px;
}
.workflow-step:last-child .workflow-line { display: none; }
.workflow-content {
  padding-top: 5px;
  min-width: 0;
}
.workflow-title { font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 0.2rem; }
.workflow-desc { font-size: 0.76rem; color: var(--dim); line-height: 1.55; }

/* ── PRICING ──────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 600px;
}

.plan-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.25rem;
  position: relative;
}

.plan-card.featured {
  border-color: var(--accent);
  background: #191610;
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.plan-price sup {
  font-size: 1rem;
  vertical-align: super;
  letter-spacing: 0;
}
.plan-price-note {
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 1.25rem;
}

.plan-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.plan-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.plan-items li .pi-check { color: var(--accent); flex-shrink: 0; font-size: 0.7rem; margin-top: 2px; }
.plan-items li.pi-off { color: var(--dim2); }
.plan-items li.pi-off .pi-check { color: var(--dim2); }

.plan-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.7rem;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.plan-btn:hover { border-color: var(--accent); color: var(--accent); }

.plan-btn.featured-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}
.plan-btn.featured-btn:hover { opacity: 0.88; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 680px;
}

.faq-item {
  background: var(--surface);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.4;
}
.faq-q:hover { color: var(--accent); }

.faq-icon {
  color: var(--dim);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s, color 0.15s;
  font-style: normal;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

.faq-a {
  display: none;
  padding: 0 1rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
  border-top: 0.5px solid var(--border-xs);
  padding-top: 0.75rem;
}
.faq-item.open .faq-a { display: block; }

/* ── CTA BANNER ───────────────────────────────────────────────────── */
.cta-banner {
  background: var(--surface);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.cta-banner h2 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.cta-banner p { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }
.cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── FAVICON TOOL SECTION ────────────────────────────────────────── */
#favicon-tool {
  background: var(--bg2);
}

.tool-promo {
  background: var(--surface);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-xl);
  padding: 1rem;
}

.tool-grid {
  margin-bottom: 1.25rem;
}

.tool-note {
  text-align: center;
  color: var(--dim);
  font-size: 0.74rem;
  margin-top: 0.75rem;
}

/* ── FOOTER ───────────────────────────────────────────────────────── */
footer {
  border-top: 0.5px solid var(--border-xs);
  padding: 1.5rem var(--pad-x);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy { font-size: 0.72rem; color: var(--dim2); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.72rem; color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE: tablet ───────────────────────────────────────────── */
@media (min-width: 560px) {
  :root { --pad-x: 1.75rem; }

  .nav-tool-link { display: inline-block; }

  h1 { font-size: 2.6rem; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .pricing-grid { grid-template-columns: 1fr 1fr; }

  .workflow { flex-direction: row; gap: 0; }
  .workflow-step {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0;
    padding-right: 1.5rem;
  }
  .workflow-step:last-child { padding-right: 0; }
  .workflow-left { flex-direction: row; width: auto; align-items: center; margin-bottom: 0.75rem; }
  .workflow-line { flex: 1; width: auto; height: 0.5px; margin-top: 0; margin-left: 8px; }
  .workflow-step:last-child .workflow-line { display: none; }
}

/* ── RESPONSIVE: desktop ──────────────────────────────────────────── */
@media (min-width: 800px) {
  :root { --pad-x: 2.5rem; }

  h1 { font-size: 3.2rem; }
  section { padding: 5rem 0; }

  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .hero-left { flex: 1; min-width: 0; }
  .hero-right { flex: 0 0 450px; }

  .features-grid { grid-template-columns: 1fr 1fr 1fr; }

  .cta-banner { padding: 3.5rem 2rem; }
  .cta-banner h2 { font-size: 1.5rem; }
}

@media (min-width: 1100px) {
  :root { --pad-x: 3rem; }
  h1 { font-size: 3.6rem; }
}

/* ── LP Dropzone ─────────────────────────────────────────────────── */
#app { background: var(--bg2); }
#app .sec-sub { max-width: 520px; margin: 0 auto 1.75rem; text-align: center; }
#app .sec-label, #app .sec-h2 { text-align: center; }

.lp-drop {
  position: relative;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 2.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin: 0 auto 1rem;
  max-width: 560px;
}
.lp-drop.over, .lp-drop:hover { border-color: var(--accent); background: var(--surface); }
.lp-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.lp-drop-icon { font-size: 1.6rem; color: var(--dim); margin-bottom: 0.5rem; line-height: 1; }
.lp-drop-label { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.3rem; }
.lp-drop-hint { font-size: 0.72rem; color: var(--dim); }

.lp-progress { max-width: 560px; margin: 0 auto 0.75rem; }
.lp-progress-track { height: 3px; background: var(--border); border-radius: 99px; overflow: hidden; }
.lp-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.2s ease; }
.lp-progress-label { font-size: 0.72rem; color: var(--dim); margin-top: 0.4rem; letter-spacing: 0.04em; }

.lp-btn {
  display: block; width: 100%; max-width: 560px; margin: 0 auto;
  background: var(--accent); color: var(--bg);
  border: none; border-radius: var(--r-md);
  padding: 0.85rem 1.5rem;
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: opacity 0.1s; letter-spacing: 0.02em;
}
.lp-btn:hover { opacity: 0.85; }
.lp-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Animations ───────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left > * {
  animation: fadeUp 0.5s ease both;
}
.hero-kicker { animation-delay: 0s; }
h1           { animation-delay: 0.07s; }
.hero-sub    { animation-delay: 0.14s; }
.hero-cta-row{ animation-delay: 0.2s; }
.hero-proof  { animation-delay: 0.26s; }
.hero-right  { animation: fadeUp 0.55s 0.15s ease both; }