/* ══════════════════════════════════════════════════════════
   TOKENS — Quick Invoice Generator
══════════════════════════════════════════════════════════ */
: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: #f7f4ff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════════════════════
   HERO — bright vibrant gradient
══════════════════════════════════════════════════════════ */
#hero {
  background: linear-gradient(160deg, #6A0BE4 0%, #8b25f5 50%, #a855f7 100%);
  padding: 80px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 120%, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: "";
  position: absolute; bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 20px;
}
.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: -0.5px; margin-bottom: 16px;
}
#hero h1 span { color: rgba(255,255,255,0.85); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
#hero > .hero-inner > p {
  font-size: 16px; color: rgba(255,255,255,0.85);
  max-width: 480px; margin: 0 auto 30px; line-height: 1.6;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-pill {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px;
}

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

/* ══════════════════════════════════════════════════════════
   FORM PANEL — Ultra-Compact Single-Screen
══════════════════════════════════════════════════════════ */
#formCol {
  background: #fff; border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(106,11,228,0.10);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, #6A0BE4 0%, #8b25f5 100%);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.form-header-title {
  font-size: 16px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.form-header-title svg { width: 16px; height: 16px; }
.speed-badge {
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; letter-spacing: .5px;
}

/* Template row inside form */
.tpl-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  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: 4px; flex-wrap: wrap; }
.tpl-tab {
  padding: 4px 11px; border-radius: 20px; font-size: 11px; 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; }

/* Currency in form */
.currency-wrap {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 20px; padding: 4px 12px 4px 9px;
  font-size: 12px; font-weight: 700; color: var(--text-2);
  cursor: pointer; white-space: nowrap;
}
.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; }

.form-compact { padding: 20px 20px 16px; }

/* Compact grid rows */
.cg-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cg-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }

.form-group { margin-bottom: 0; }

label {
  display: block; font-size: 10.5px; font-weight: 700;
  color: var(--text-3); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .5px;
}
label .req { color: var(--danger); }

input[type="text"], input[type="number"], input[type="email"],
input[type="date"], textarea, select {
  width: 100%; padding: 8px 11px;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-family: var(--font); font-size: 13px;
  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,.08);
}
input::placeholder, textarea::placeholder { color: var(--text-3); font-weight: 400; }
textarea { resize: vertical; min-height: 64px; }
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 9px center;
  padding-right: 28px; cursor: pointer;
}

.form-divider { height: 1px; background: var(--border); margin: 14px 0; }

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

/* Tax+Discount inline */
.fin-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.fin-input-wrap { position: relative; }
.fin-input-wrap .fin-suffix {
  position: absolute; right: 11px; top: 50%;
  transform: translateY(-50%); font-size: 11px; font-weight: 700;
  color: var(--text-3); pointer-events: none;
}
.fin-input-wrap input { padding-right: 28px; }

/* Totals compact */
#totalsBox {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-top: 8px;
}
.totals-inner { padding: 10px 14px 0; }
.totals-row {
  display: flex; justify-content: space-between;
  padding: 5px 0; font-size: 13px;
  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: 12px 14px;
  background: linear-gradient(135deg, #6A0BE4, #8b25f5);
  color: #fff;
}
.totals-total .label { font-size: 12px; font-weight: 700; opacity: .85; }
.totals-total .val { font-size: 20px; font-weight: 800; }

/* Generate button */
#generateBtn {
  width: 100%; margin-top: 16px; padding: 14px;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, #6A0BE4 0%, #a855f7 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,.4);
  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); } }

/* Hidden logo elements (required IDs) */
#logoInput, #logoPreview, #logoUploadWrap, #logoUploadIcon, #logoUploadLabel { display: none !important; }

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

#outputCard {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 6px 24px rgba(106,11,228,.12);
  overflow: hidden;
}

.output-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  background: linear-gradient(135deg, #6A0BE4 0%, #8b25f5 100%);
}
.output-header-title {
  font-size: 13px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 7px;
}
.output-header-title svg { width: 14px; height: 14px; }
.output-speed-badge {
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}

.output-actions-bar {
  display: flex; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: #faf9ff;
  align-items: center; justify-content: space-between;
}
#downloadBtn {
  flex: 1; padding: 10px 16px;
  background: linear-gradient(135deg, #6A0BE4, #8b25f5);
  border: none; border-radius: 8px; color: #fff;
  font-family: var(--font); font-size: 13px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 3px 12px rgba(106,11,228,.3);
  transition: opacity .18s;
}
#downloadBtn:hover { opacity: .9; }
#downloadBtn:disabled { opacity: .6; cursor: not-allowed; }
#downloadBtn .btn-icon { display: flex; }
#downloadBtn .btn-icon svg { width: 14px; height: 14px; }
#downloadBtn .btn-label { font-size: 13px; font-weight: 800; }

.side-btns { display: flex; gap: 6px; }
.side-btn {
  padding: 8px 12px; background: #fff; border: 1.5px solid var(--border);
  border-radius: 7px; color: var(--text-2); font-family: var(--font);
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: border-color .15s, color .15s;
}
.side-btn:hover { border-color: var(--p); color: var(--p); }
.side-btn svg { width: 13px; height: 13px; }

#outputBody {
  min-height: 280px; max-height: 500px;
  overflow-y: auto; padding: 20px;
}
#outputIdle {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; min-height: 240px; text-align: center;
}
.idle-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #f0ebff, #e8d5ff);
  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 8px rgba(106,11,228,.07), 0 0 0 18px rgba(106,11,228,.03); }
  50% { box-shadow: 0 0 0 14px rgba(106,11,228,.1), 0 0 0 26px rgba(106,11,228,.04); }
}
.idle-icon svg { width: 28px; height: 28px; }
#outputIdle h3 { font-size: 15px; font-weight: 700; }
#outputIdle p { font-size: 12.5px; color: var(--text-3); max-width: 180px; }

#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: 10px 18px;
  background: linear-gradient(90deg, #064e3b, #065f46);
  font-size: 13px; font-weight: 700; color: #6ee7b7;
}
#successBar.visible { display: flex; }
#successBar svg { width: 16px; height: 16px; }

/* hidden print/preview btn stubs */
#printBtn { display: none; }
#previewBtn { display: none; }

/* ══════════════════════════════════════════════════════════
   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: 20px;
}
#previewModal.open { display: flex; }
#previewPaper {
  background: #fff; border-radius: 12px;
  width: 92%; max-width: 900px; max-height: 92vh;
  overflow: hidden; display: flex; flex-direction: column;
}

/* ══════════════════════════════════════════════════════════
   FEATURES, HOW IT WORKS, ABOUT, WHY, FAQ
══════════════════════════════════════════════════════════ */
#featuresStrip {
  background: #fff; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 52px 24px;
}
.features-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
}
.feat-card {
  background: var(--p-llt); border: 1px solid var(--p-lt);
  border-radius: var(--r-lg); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
  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: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--p); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 20px; height: 20px; }
.feat-card h3 { font-size: 14px; font-weight: 700; }
.feat-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

#howItWorks { background: #f7f4ff; padding: 80px 24px; border-bottom: 1px solid var(--border); }
.hiw-eyebrow { text-align: center; margin-bottom: 56px; }
.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(24px,3vw,38px); font-weight: 800; margin-bottom: 10px; }
.hiw-eyebrow p { font-size: 15px; color: var(--text-2); max-width: 380px; margin: 0 auto; }
.hiw-steps { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; }
.hiw-step {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 56px 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: 12px; font-weight: 800; color: var(--p);
  letter-spacing: 2px; margin-bottom: 12px; display: block;
}
.hiw-step-num::after { content: ""; display: block; width: 24px; height: 2px; background: var(--p); border-radius: 2px; margin-top: 5px; opacity: .5; }
.hiw-step-text h3 { font-size: clamp(20px,2.5vw,30px); font-weight: 800; margin-bottom: 14px; }
.hiw-step-text p { font-size: 14.5px; 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: 18px; padding: 24px;
  box-shadow: 0 6px 32px 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), #a855f7);
}
.mock-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.mock-field {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 7px; padding: 8px 12px;
  font-size: 12.5px; color: var(--text-2); margin-bottom: 6px;
}
.mock-field.active { border-color: var(--p); color: var(--text); }
.mock-btn {
  width: 100%; margin-top: 10px; padding: 11px;
  background: linear-gradient(135deg, #6A0BE4, #a855f7); color: #fff;
  border-radius: 9px; font-size: 13px; font-weight: 800; text-align: center;
}

#aboutSection { background: #fff; padding: 80px 24px; }
.about-header { text-align: center; margin-bottom: 44px; }
.about-header h2 { font-size: clamp(24px,3vw,38px); font-weight: 800; margin-bottom: 12px; }
.about-header p { font-size: 15.5px; color: var(--text-2); max-width: 500px; margin: 0 auto; line-height: 1.65; }
.about-area { max-width: 720px; margin: 0 auto; }
.about-grid { display: flex; flex-direction: column; gap: 10px; }
.about-item {
  background: var(--p-llt); border: 1px solid var(--p-lt);
  border-left: 4px solid var(--p);
  border-radius: 0 14px 14px 0; padding: 24px 28px;
}
.about-item h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.about-item p { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.custom-link { color: var(--p); font-weight: 600; }

#whyBanner {
  background: linear-gradient(160deg, #6A0BE4 0%, #8b25f5 60%, #a855f7 100%);
  padding: 80px 24px; position: relative; overflow: hidden;
}
#whyBanner::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 300px; height: 300px;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1.5px, transparent 1.5px);
  background-size: 22px 22px; pointer-events: none;
}
.why-inner { max-width: 940px; margin: 0 auto; position: relative; z-index: 1; }
.why-header { text-align: center; margin-bottom: 56px; }
.why-header h2 { font-size: clamp(24px,3vw,38px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.why-header p { font-size: 15px; color: rgba(255,255,255,.7); max-width: 380px; margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-bottom: 56px; }
.why-card { padding: 0 40px 0 0; }
.why-card:not(:last-child) { border-right: 1px solid rgba(255,255,255,.15); }
.why-card:not(:first-child) { padding: 0 40px; }
.why-card:last-child { padding-right: 0; }
.why-card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.why-card-icon svg { width: 20px; height: 20px; }
.why-card h3 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.7; }
.why-cta-box {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.why-cta-box h3 { font-size: clamp(18px,2.3vw,26px); font-weight: 800; color: #fff; max-width: 440px; }
.why-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--p);
  font-family: var(--font); font-size: 14px; font-weight: 800;
  padding: 13px 26px; border-radius: 10px; border: none;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s;
}
.why-cta-btn:hover { background: #f0ebff; transform: translateY(-2px); }
.why-cta-btn svg { width: 15px; height: 15px; }

#faqSection { background: #f7f4ff; padding: 72px 24px; }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-header h2 { font-size: clamp(22px,3vw,30px); font-weight: 800; margin-bottom: 8px; }
.faq-header p { font-size: 14px; color: var(--text-2); }
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; 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: 14px 18px; cursor: pointer; user-select: none; gap: 10px;
}
.faq-q-text { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.faq-q-icon {
  width: 26px; height: 26px; 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: 13px; height: 13px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s, padding .35s; padding: 0 18px; }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 16px; }
.faq-a p { font-size: 13px; 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; }
  .cg-3 { grid-template-columns: 1fr 1fr; }
  .cg-4 { grid-template-columns: 1fr 1fr; }
  .hiw-step { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .hiw-step:nth-child(even) .hiw-step-text { order: 1; }
  .hiw-step:nth-child(even) .hiw-step-visual { order: 2; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-card, .why-card:not(:first-child), .why-card:last-child { padding: 0; border-right: none; }
}
@media (max-width: 540px) {
  .features-inner { grid-template-columns: 1fr; }
  .cg-3, .cg-4 { grid-template-columns: 1fr; }
  .li-head { grid-template-columns: 1fr 50px 70px 70px 26px; font-size: 8.5px; }
  .li-row { grid-template-columns: 1fr 50px 70px 70px 26px; }
}
