/* ══════════════════════════════════════════════════════════
   TOKENS — Invoice Generator (Tabbed)
══════════════════════════════════════════════════════════ */
:root {
  --p: #6A0BE4; --p-h: #5a09c4; --p-lt: #f0ebff; --p-llt: #f7f4ff;
  --shadow-md: 0 4px 16px rgba(106,11,228,0.08), 0 1px 4px rgba(15,10,30,0.06);
  --success: #10b981; --warn: #f59e0b; --danger: #ef4444;
  --text: #0f0a1e; --text-2: #4b4b6a; --text-3: #8888aa;
  --border: #e4e4f0; --bg: #ffffff; --bg-2: #f4f3fb;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 20px;
  --font: "Be Vietnam Pro", sans-serif;
  --nav-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body { font-family: var(--font); color: var(--text); background: var(--bg-2); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
#hero {
  background: linear-gradient(165deg, #0e0e1e 0%, #1e1040 55%, #6A0BE4 100%);
  padding: 88px 24px 104px; text-align: center;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 115%, rgba(106,11,228,.45) 0%, transparent 70%),
              radial-gradient(ellipse 30% 25% at 10% 5%, rgba(196,181,253,.08) 0%, transparent 60%);
  pointer-events: none;
}
#hero::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 300px; height: 300px;
  background-image: radial-gradient(circle, rgba(255,255,255,.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(196,181,253,.15); border: 1px solid rgba(196,181,253,.3);
  color: #c4b5fd; font-size: 12px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 24px;
}
.hero-chip svg { width: 14px; height: 14px; }
#hero h1 {
  font-size: clamp(26px,4vw,48px); font-weight: 800; color: #fff;
  line-height: 1.1; letter-spacing: -.5px; margin-bottom: 18px;
}
#hero h1 span { color: #c4b5fd; }
#hero > .hero-inner > p {
  font-size: 16.5px; color: rgba(255,255,255,.7);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.65;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-pill {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.82); font-size: 12.5px; font-weight: 500;
  padding: 5px 15px; border-radius: 20px;
}

/* ══════════════════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════════════════ */
#main-wrap {
  max-width: 1280px; margin: 0 auto; padding: 32px 24px 64px;
  display: grid; grid-template-columns: 1fr 440px;
  gap: 28px; align-items: flex-start;
}

/* ══════════════════════════════════════════════════════════
   FORM PANEL — Tabbed Sections
══════════════════════════════════════════════════════════ */
#formCol {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 4px 20px rgba(106,11,228,.08);
}

/* Form top: title + currency */
.form-masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 0; flex-wrap: wrap; gap: 10px;
}
.form-masthead-title {
  font-size: 18px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.form-masthead-title span { color: var(--p); }
.form-masthead-title svg { width: 18px; height: 18px; color: var(--p); }

/* Currency */
.currency-wrap {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 5px 12px 5px 10px;
  font-size: 12px; font-weight: 700; color: var(--text-2); cursor: pointer;
}
.currency-wrap svg { width: 12px; height: 12px; color: var(--text-3); }
.currency-wrap select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; border: none; }
#currencyLabel { pointer-events: none; }

/* Section tab bar */
.section-tab-bar {
  display: flex; overflow-x: auto; scrollbar-width: none;
  padding: 16px 24px 0; gap: 2px; border-bottom: 2px solid var(--border);
  margin-top: 14px;
}
.section-tab-bar::-webkit-scrollbar { display: none; }
.section-tab {
  padding: 10px 16px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: var(--text-3);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; background: none; border-top: none;
  border-left: none; border-right: none;
  font-family: var(--font); transition: color .18s, border-color .18s;
}
.section-tab:hover { color: var(--p); }
.section-tab.active { color: var(--p); border-bottom-color: var(--p); font-weight: 800; }

/* Template row */
.tpl-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  background: var(--p-llt); border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tpl-row-label { font-size: 10.5px; font-weight: 700; color: var(--p); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
#tplTabs { display: flex; gap: 5px; flex-wrap: wrap; }
.tpl-tab {
  padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-2);
  cursor: pointer; transition: all .18s; font-family: var(--font);
}
.tpl-tab:hover { border-color: var(--p); color: var(--p); }
.tpl-tab.active { background: var(--p); border-color: var(--p); color: #fff; }

/* Section content panels */
.section-panels { /* wrapper — no extra styling needed */ }
.section-content { display: none; }
.section-content.active { display: block; }
.section-panel-inner { padding: 20px 24px; }

/* Panel heading (icon + title) */
.panel-heading {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.panel-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--p-lt); color: var(--p); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.panel-icon svg { width: 18px; height: 18px; }
.panel-title { font-size: 15px; font-weight: 800; color: var(--text); }
.panel-subtitle { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* Tab navigation buttons (Next / Prev) inside each panel */
.tab-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
  gap: 8px;
}
.tab-next-btn, .tab-prev-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 8px; font-family: var(--font);
  font-size: 12.5px; font-weight: 700; cursor: pointer; border: none;
  transition: background .15s, transform .12s;
}
.tab-next-btn {
  background: var(--p); color: #fff;
  box-shadow: 0 2px 8px rgba(106,11,228,.25);
}
.tab-next-btn:hover { background: var(--p-h); transform: translateX(2px); }
.tab-prev-btn {
  background: var(--bg-2); color: var(--text-2);
  border: 1.5px solid var(--border);
}
.tab-prev-btn:hover { background: var(--p-llt); border-color: var(--p); color: var(--p); transform: translateX(-2px); }
.tab-next-btn svg, .tab-prev-btn svg { width: 13px; height: 13px; }

/* Mock tab bar for How It Works section */
.mock-tab-bar {
  display: flex; overflow-x: auto; scrollbar-width: none;
  border-bottom: 2px solid var(--border); margin-bottom: 4px; gap: 0;
}
.mock-tab-bar::-webkit-scrollbar { display: none; }

label {
  display: block; font-size: 11.5px; font-weight: 700;
  color: var(--text-2); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .4px;
}
label .req { color: var(--danger); margin-left: 2px; }
label .opt { color: var(--text-3); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }
.form-group { margin-bottom: 12px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }

input[type="text"], input[type="number"], input[type="email"],
input[type="date"], textarea, select {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 13.5px;
  color: var(--text); background: var(--bg);
  outline: none; transition: border-color .18s, box-shadow .18s;
}
input[type="date"] { cursor: pointer; color-scheme: light; }
input:focus, textarea:focus, select:focus {
  border-color: var(--p); box-shadow: 0 0 0 3px rgba(106,11,228,.1);
}
input::placeholder, textarea::placeholder { color: var(--text-3); font-weight: 400; }
textarea { resize: vertical; min-height: 76px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238888aa' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 32px; cursor: pointer;
}

/* Logo */
#logoUploadWrap {
  border: 2px dashed var(--border); border-radius: 8px;
  padding: 16px; text-align: center; cursor: pointer;
  position: relative; background: var(--bg-2);
  transition: border-color .2s, background .2s;
}
#logoUploadWrap:hover { border-color: var(--p); background: var(--p-llt); }
#logoInput { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
#logoPreview { display: none; max-height: 52px; max-width: 140px; margin: 0 auto; }
#logoPreview.visible { display: block; }
#logoUploadIcon { width: 28px; height: 28px; color: #8888aa; margin: 0 auto 6px; display: block; }
#logoUploadLabel { font-size: 12px; color: #8888aa; display: block; }

/* Section navigation hint */
.section-nav-hint {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px 14px;
  font-size: 12px; color: var(--text-3);
}
.section-nav-hint span { font-weight: 500; }
.next-section-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 7px;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--p); font-family: var(--font);
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.next-section-btn:hover { background: var(--p-llt); border-color: var(--p); }
.next-section-btn svg { width: 13px; height: 13px; }

/* Line items */
.li-head {
  display: grid; grid-template-columns: 1fr 72px 90px 88px 32px;
  gap: 6px; padding: 9px 14px;
  background: var(--p); color: rgba(255,255,255,.9);
  font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  border-radius: 8px 8px 0 0;
}
#liRows {
  border: 1.5px solid var(--border); border-top: none;
  border-radius: 0 0 8px 8px; padding: 5px;
  display: flex; flex-direction: column; gap: 4px;
}
.li-row {
  display: grid; grid-template-columns: 1fr 72px 90px 88px 32px;
  gap: 6px; align-items: center;
  border: 1.5px solid var(--border); border-radius: 6px; padding: 6px 8px;
}
.li-row input { border: none; padding: 3px 5px; font-size: 13px; background: transparent; box-shadow: none; }
.li-row input:focus { border: none; box-shadow: none; outline: none; }
.li-amount { font-size: 13px; font-weight: 700; color: var(--p); text-align: right; }
.li-del-btn {
  width: 26px; height: 26px; border: none; border-radius: 6px;
  background: rgba(239,68,68,.08); color: var(--danger); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.li-del-btn svg { width: 13px; height: 13px; }
.li-add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  border: 1.5px dashed var(--p); background: transparent;
  color: var(--p); font-family: var(--font);
  font-size: 12.5px; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.li-add-btn:hover { background: var(--p-llt); }
.li-add-btn svg { width: 14px; height: 14px; }

/* Totals */
.fin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fin-input-wrap { position: relative; }
.fin-input-wrap .fin-suffix {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); font-size: 12px; font-weight: 700;
  color: var(--text-3); pointer-events: none;
}
.fin-input-wrap input { padding-right: 32px; }
#totalsBox {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-top: 10px;
}
.totals-inner { padding: 12px 16px 0; }
.totals-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.totals-row:last-of-type { border-bottom: none; }
.totals-row .label { color: var(--text-2); font-weight: 500; }
.totals-row .val { font-weight: 700; color: var(--text); }
.totals-row.discount .val { color: var(--success); }
.totals-row.tax .val { color: var(--warn); }
.totals-total {
  display: flex; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0e0e1e 0%, var(--p) 100%);
  color: #fff;
}
.totals-total .label { font-size: 13px; font-weight: 700; opacity: .85; }
.totals-total .val { font-size: 22px; font-weight: 800; }

/* Generate button — sticky at bottom of form */
.generate-wrap {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  background: #faf9ff;
  position: sticky; bottom: 0;
}
#generateBtn {
  width: 100%; padding: 15px;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, #0e0e1e 0%, var(--p) 100%);
  color: #fff; font-family: var(--font);
  font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(106,11,228,.35);
  transition: opacity .18s, transform .15s;
}
#generateBtn:hover { opacity: .92; transform: translateY(-1px); }
#generateBtn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
#generateBtn svg { width: 18px; height: 18px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   OUTPUT PANEL — Standard Clean
══════════════════════════════════════════════════════════ */
#outputCol { position: sticky; top: calc(var(--nav-h) + 20px); }

#outputCard {
  background: #fff;
  border: 1px solid rgba(106,11,228,.2);
  border-top: 4px solid var(--p);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  box-shadow: 0 8px 32px rgba(106,11,228,.1);
  overflow: hidden;
}

.output-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.output-header-left,
.output-header-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.output-header-left svg,
.output-header-title svg { width: 15px; height: 15px; color: var(--p); }
.output-title { font-size: 14px; font-weight: 700; color: var(--text); }
.output-status-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--p); background: var(--p-lt);
  border: 1px solid var(--p-lt);
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}

.output-actions-bar {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0; border-bottom: 1px solid var(--border);
  background: #faf9ff;
}
.out-action-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px;
  padding: 14px 10px 12px; border: none;
  background: transparent; font-family: var(--font);
  cursor: pointer; transition: background .18s, transform .12s;
}
.out-action-btn + .out-action-btn { border-left: 1px solid var(--border); }
.out-action-btn:hover { transform: translateY(-1px); }
.btn-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.btn-label { font-size: 11.5px; font-weight: 700; }
.out-action-btn svg { width: 16px; height: 16px; }

#previewBtn .btn-icon { background: #ede9fe; color: var(--p); }
#previewBtn .btn-label { color: var(--p); }
#previewBtn:hover { background: #ede9fe; }

#downloadBtn { background: linear-gradient(160deg, #0e0e1e 0%, var(--p) 100%); }
#downloadBtn .btn-icon { background: rgba(255,255,255,.18); color: #fff; }
#downloadBtn .btn-label { color: #fff; font-size: 12px; }
#downloadBtn:hover { background: linear-gradient(160deg, #1e1040 0%, var(--p-h) 100%); }

#printBtn .btn-icon { background: #f1f5f9; color: #475569; }
#printBtn .btn-label { color: #475569; }
#printBtn:hover { background: #f8fafc; }

#outputBody {
  min-height: 320px; max-height: 560px;
  overflow-y: auto; padding: 24px;
}
#outputIdle {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; min-height: 280px; text-align: center;
}
.idle-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: var(--p); display: flex; align-items: center; justify-content: center;
  animation: pulse-idle 3s ease-in-out infinite;
}
@keyframes pulse-idle {
  0%, 100% { box-shadow: 0 0 0 10px rgba(106,11,228,.07), 0 0 0 22px rgba(106,11,228,.03); }
  50% { box-shadow: 0 0 0 16px rgba(106,11,228,.1), 0 0 0 30px rgba(106,11,228,.04); }
}
.idle-icon svg { width: 32px; height: 32px; }
#outputIdle h3 { font-size: 16px; font-weight: 700; }
#outputIdle p { font-size: 13px; color: var(--text-3); max-width: 200px; }
#invoiceOutput { display: none; }
#invoiceOutput.visible { display: block; }
.invoice-rendered { font-size: 13.5px; line-height: 1.7; color: var(--text); }

#successBar {
  display: none; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(90deg, #064e3b, #065f46);
  border-top: 1px solid rgba(16,185,129,.3);
  font-size: 13px; font-weight: 600; color: #6ee7b7;
}
#successBar.visible { display: flex; }
#successBar svg { width: 16px; height: 16px; color: #34d399; }

/* About rows */
.about-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 10px; border-radius: 10px;
  transition: background .15s; cursor: default;
}
.about-row + .about-row { border-top: 1px solid var(--border); }
.about-row:hover { background: var(--p-llt); border-top-color: transparent; }
.about-row:hover + .about-row { border-top-color: transparent; }
.about-badge {
  min-width: 32px; height: 32px; border-radius: 10px;
  background: var(--p); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .5px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.about-badge.round { border-radius: 50%; background: var(--p-lt); color: var(--p); font-size: 14px; }
.about-row-body { flex: 1; }
.about-row-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.3; }
.about-row-text { font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.about-item-content p { font-size: 15px; color: var(--text-2); line-height: 1.85; margin-bottom: 10px; }
.about-item-content p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   PREVIEW MODAL
══════════════════════════════════════════════════════════ */
#previewModal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); z-index: 9999;
  align-items: center; justify-content: center; padding: 24px;
  overflow-y: auto;
}
#previewModal.open { display: flex; }
#previewPaper, .preview-paper {
  background: #fff; border-radius: var(--r-xl);
  width: 100%; max-width: 800px; max-height: 92vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 32px 96px rgba(15,10,30,.35);
  flex-shrink: 0; margin: auto 0;
}
.preview-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 20px;
  background: #1e1040; border-bottom: 1px solid rgba(255,255,255,.1);
  position: sticky; top: 0; z-index: 10;
}
.preview-toolbar-title {
  font-size: 14px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.preview-toolbar-title svg { color: #c4b5fd; }
.preview-toolbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.preview-close-btn {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.8);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s; flex-shrink: 0;
}
.preview-close-btn:hover { background: var(--danger); color: #fff; }
.preview-close-btn svg { width: 14px; height: 14px; }
.preview-body {
  padding: 48px 56px; overflow-y: auto; flex: 1;
}
.out-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.12);
  color: #fff; font-family: var(--font); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.out-btn:hover { background: rgba(255,255,255,.22); }
.out-btn svg { width: 13px; height: 13px; }
.li-add-wrap { padding: 8px 0; }

/* ══════════════════════════════════════════════════════════
   FEATURES, HOW IT WORKS, ABOUT, WHY, FAQ
══════════════════════════════════════════════════════════ */
#featuresStrip { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 24px; }
.features-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.feat-card:hover { box-shadow: 0 6px 24px rgba(106,11,228,.12); transform: translateY(-3px); }
.feat-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--p-lt); color: var(--p);
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 14.5px; font-weight: 700; }
.feat-card p { font-size: 13px; color: var(--text-2); line-height: 1.55; }

#howItWorks { background: #fff; padding: 96px 24px; border-bottom: 1px solid var(--border); }
.hiw-eyebrow { text-align: center; margin-bottom: 72px; }
.chip {
  display: inline-block; background: var(--p-lt); color: var(--p);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 16px; border-radius: 20px; margin-bottom: 14px;
}
.hiw-eyebrow h2 { font-size: clamp(26px,3.5vw,42px); font-weight: 800; margin-bottom: 12px; }
.hiw-eyebrow p { font-size: 16px; color: var(--text-2); max-width: 400px; margin: 0 auto; }
.hiw-steps { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; }
.hiw-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: center; padding: 72px 0; border-bottom: 1px solid rgba(106,11,228,.12);
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step:nth-child(even) .hiw-step-text { order: 2; }
.hiw-step:nth-child(even) .hiw-step-visual { order: 1; }
.hiw-step-num { font-size: 13px; font-weight: 800; color: var(--p); letter-spacing: 2px; margin-bottom: 16px; display: block; }
.hiw-step-num::after { content: ""; display: block; width: 28px; height: 2px; background: var(--p); border-radius: 2px; margin-top: 6px; opacity: .5; }
.hiw-step-text h3 { font-size: clamp(24px,2.8vw,34px); font-weight: 800; margin-bottom: 16px; }
.hiw-step-text p { font-size: 15px; color: var(--text-2); line-height: 1.75; }
.hiw-step-text p strong { color: var(--text); }
.hiw-step-visual {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 26px;
  box-shadow: 0 8px 36px rgba(106,11,228,.1);
  position: relative; overflow: hidden;
}
.hiw-step-visual::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--p), #a78bfa);
}
.mock-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.mock-field {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: var(--text-2); margin-bottom: 8px;
}
.mock-field.active { border-color: var(--p); color: var(--text); }
.mock-btn {
  width: 100%; margin-top: 12px; padding: 12px;
  background: linear-gradient(135deg, #0e0e1e, var(--p)); color: #fff;
  border-radius: 10px; font-size: 13px; font-weight: 800; text-align: center;
}
.mock-tabs { display: flex; gap: 2px; margin-bottom: 14px; }
.mock-tab {
  padding: 7px 14px; font-size: 11px; font-weight: 700;
  border-bottom: 2px solid transparent; color: var(--text-3);
}
.mock-tab.active { color: var(--p); border-bottom-color: var(--p); }

#aboutSection { background: var(--bg-2); padding: 96px 24px; }
.about-header { text-align: center; margin-bottom: 52px; }
.about-header h2 { font-size: clamp(26px,3.5vw,42px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.4px; }
.about-header p { font-size: 16.5px; color: var(--text-2); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.about-area { max-width: 760px; margin: 0 auto; }
.about-grid { display: flex; flex-direction: column; gap: 12px; }
.about-item {
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--p); border-radius: 0 16px 16px 0;
  padding: 28px 32px; transition: box-shadow .2s;
}
.about-item:hover { box-shadow: 0 6px 28px rgba(106,11,228,.09); }
.about-item h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.about-item p { font-size: 14.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 8px; }
.custom-link { color: var(--p); font-weight: 600; }

#whyBanner {
  background: linear-gradient(165deg, #0e0e1e 0%, #1e1040 60%, #6A0BE4 100%);
  padding: 96px 24px; position: relative; overflow: hidden;
}
#whyBanner::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 340px; height: 340px;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1.5px, transparent 1.5px);
  background-size: 24px 24px; pointer-events: none;
}
.why-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
.why-header { text-align: center; margin-bottom: 64px; }
.why-header h2 { font-size: clamp(26px,3.5vw,42px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.why-header p { font-size: 16px; color: rgba(255,255,255,.55); max-width: 420px; margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-bottom: 64px; }
.why-card { padding: 0 48px 0 0; }
.why-card:not(:last-child) { border-right: 1px solid rgba(255,255,255,.1); }
.why-card:not(:first-child) { padding: 0 48px; }
.why-card:last-child { padding-right: 0; }
.why-card-icon {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(196,181,253,.4); color: #c4b5fd;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.why-card-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.72; }
.why-cta-box {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.why-cta-box h3 { font-size: clamp(20px,2.5vw,28px); font-weight: 800; color: #fff; max-width: 480px; }
.why-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #c4b5fd; color: #1a0533;
  font-family: var(--font); font-size: 14px; font-weight: 800;
  padding: 14px 28px; border-radius: 10px; border: none;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.why-cta-btn:hover { background: #ddd6fe; transform: translateY(-2px); }
.why-cta-btn svg { width: 16px; height: 16px; }

#faqSection { background: var(--bg-2); padding: 80px 24px; }
.faq-header { text-align: center; margin-bottom: 44px; }
.faq-header h2 { font-size: clamp(22px,3vw,32px); font-weight: 800; margin-bottom: 10px; }
.faq-header p { font-size: 14.5px; color: var(--text-2); }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: var(--p); box-shadow: 0 0 0 3px rgba(106,11,228,.08); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; user-select: none; gap: 12px;
}
.faq-q-text { font-size: 14.5px; font-weight: 600; color: var(--text); flex: 1; }
.faq-q-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-2); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .3s;
}
.faq-item.open .faq-q-icon { background: var(--p); color: #fff; transform: rotate(45deg); }
.faq-q-icon svg { width: 14px; height: 14px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s, padding .35s; padding: 0 20px; }
.faq-a.open { max-height: 600px; padding-bottom: 18px; }
.faq-a p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  #main-wrap { grid-template-columns: 1fr; }
  #outputCol { position: static; order: -1; }
}
@media (max-width: 768px) {
  .features-inner { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-card, .why-card:not(:first-child), .why-card:last-child { padding: 0; border-right: none; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .hiw-step { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .hiw-step:nth-child(even) .hiw-step-text { order: 1; }
  .hiw-step:nth-child(even) .hiw-step-visual { order: 2; }
  .output-actions-bar { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 540px) {
  .features-inner { grid-template-columns: 1fr; }
  #main-wrap { padding: 16px 14px 40px; }
  .section-tab { padding: 8px 12px; font-size: 11.5px; }
}
