/* ══════════════════════════════════════════════════════════
   TOKENS — PDF 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: var(--bg-2); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
#hero {
  background: linear-gradient(150deg, #03010a 0%, #1a0040 50%, #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,0.45) 0%, transparent 70%),
              radial-gradient(ellipse 35% 30% at 15% 0%, rgba(196,181,253,0.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,0.10) 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,0.15); border: 1px solid rgba(196,181,253,0.3);
  color: #c4b5fd; font-size: 12px; font-weight: 700;
  letter-spacing: 0.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: -0.5px; margin-bottom: 18px;
}
#hero h1 span { color: #c4b5fd; }
#hero > .hero-inner > p {
  font-size: 16.5px; color: rgba(255,255,255,0.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,0.09); border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.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 460px;
  gap: 28px; align-items: flex-start;
}

/* ══════════════════════════════════════════════════════════
   FORM PANEL — Dark Header / Light Body
══════════════════════════════════════════════════════════ */
#formCol { background: #fff; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }

.form-darkbar {
  background: #1e1040;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.form-darkbar-title {
  font-size: 17px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.form-darkbar-title svg { width: 18px; height: 18px; color: #c4b5fd; }
.form-darkbar-title span { color: #c4b5fd; }

/* Currency selector in dark bar */
.currency-wrap-dark {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 6px 14px 6px 10px;
  font-size: 12px; font-weight: 700; color: #fff;
  cursor: pointer; white-space: nowrap;
}
.currency-wrap-dark svg { width: 13px; height: 13px; color: rgba(255,255,255,0.6); }
.currency-wrap-dark select {
  position: absolute; inset: 0; opacity: 0;
  width: 100%; cursor: pointer; border: none; padding: 0; font-size: 13px;
}

/* Template tabs row — right-aligned above form */
.tpl-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--border);
  background: #faf9ff;
  flex-wrap: wrap; gap: 8px;
}
.tpl-bar-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; }
#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; }

/* Form body */
.form-body { padding: 24px; }

/* Section labels */
.section-label {
  font-size: 10.5px; font-weight: 800; color: var(--p);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.section-label::after {
  content: ""; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--p-lt), transparent);
  border-radius: 2px;
}

.form-section { margin-bottom: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-grid-2tax { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }

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; }

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; line-height: 1.55; }
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 upload */
#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; }

/* 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: 6px;
  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;
  background: #fff;
}
.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-inline { 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: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-top: 4px;
}
.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, #1e1040 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 */
#generateBtn {
  width: 100%; margin-top: 20px; padding: 15px;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, #1e1040 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); } }

/* Divider */
.form-divider { height: 1px; background: var(--border); margin: 4px 0 16px; }

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

#outputCard {
  background: #fff;
  border: 1px solid rgba(106,11,228,0.2);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 32px rgba(106,11,228,0.13), 0 2px 8px rgba(15,10,30,.06);
  overflow: hidden;
}

.output-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: #0a0118;
}
.output-header-left { display: flex; align-items: center; gap: 10px; }
.output-header-title {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 7px;
}
.output-header-title svg { width: 14px; height: 14px; color: #c4b5fd; }
.pdf-badge {
  background: rgba(196,181,253,0.2); border: 1px solid rgba(196,181,253,0.35);
  color: #c4b5fd; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}

.output-secondary-btns {
  display: flex; gap: 8px; padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border); background: #faf9ff;
}
.sec-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 7px;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text-2); font-family: var(--font);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.sec-btn:hover { border-color: var(--p); color: var(--p); background: var(--p-llt); }
.sec-btn svg { width: 13px; height: 13px; }

#outputBody {
  min-height: 300px; max-height: 520px;
  overflow-y: auto; padding: 24px;
}

#outputIdle {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; min-height: 260px; 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); }

/* PDF Download — primary full-width */
.pdf-download-wrap {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #faf9ff;
}
#downloadBtn {
  width: 100%; padding: 13px;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, #1e1040 0%, var(--p) 100%);
  color: #fff; font-family: var(--font);
  font-size: 14px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(106,11,228,.3);
  transition: opacity .18s, transform .15s;
}
#downloadBtn:hover { opacity: .92; transform: translateY(-1px); }
#downloadBtn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
#downloadBtn .btn-icon { display: flex; align-items: center; }
#downloadBtn .btn-icon svg { width: 16px; height: 16px; }
#downloadBtn .btn-label { font-size: 14px; font-weight: 800; }

/* PDF ready state */
.pdf-ready-indicator {
  display: none; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 8px;
  background: #f0fdf4; border: 1px solid #86efac;
  border-radius: 8px; color: #15803d;
  font-size: 12.5px; font-weight: 700;
}
.pdf-ready-indicator.visible { display: flex; }
.pdf-ready-indicator svg { width: 16px; height: 16px; color: #22c55e; flex-shrink: 0; }

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

/* Secondary action buttons visible after invoice generation */

/* ══════════════════════════════════════════════════════════
   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 16px;
}
#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;
}
.preview-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #0a0118; color: #fff;
}
.preview-toolbar-title { font-size: 13px; font-weight: 700; opacity: .8; color: #fff; display: flex; align-items: center; gap: 8px; }
.preview-toolbar-actions { display: flex; gap: 8px; }
.out-btn {
  padding: 6px 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; color: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: var(--font); display: inline-flex; align-items: center; gap: 5px;
}
.out-btn:hover { background: rgba(255,255,255,.2); }
.out-btn svg { width: 13px; height: 13px; }
.preview-close-btn {
  width: 28px; height: 28px; background: rgba(255,255,255,.1);
  border: none; border-radius: 6px; color: #fff;
  cursor: pointer; font-size: 16px; font-family: var(--font);
  display: flex; align-items: center; justify-content: center;
}
.preview-close-btn:hover { background: rgba(239,68,68,.5); }
.preview-body {
  overflow-y: auto; flex: 1; padding: 24px; background: #f8f7ff;
}

/* ══════════════════════════════════════════════════════════
   FEATURES STRIP
══════════════════════════════════════════════════════════ */
#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; }

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════ */
#howItWorks {
  background: #fff; padding: 96px 24px;
  border-bottom: 1px solid var(--border);
}
.hiw-eyebrow { text-align: center; margin-bottom: 64px; }
.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; gap: 0; }
.hiw-step {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
  padding: 64px 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: 14px; 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(22px,2.8vw,34px); font-weight: 800; margin-bottom: 16px; letter-spacing: -.4px; }
.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: 28px;
  box-shadow: 0 8px 40px 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); box-shadow: 0 0 0 3px rgba(106,11,228,.1); color: var(--text); }
.mock-btn {
  width: 100%; margin-top: 12px; padding: 12px;
  background: linear-gradient(135deg, #1e1040, var(--p)); color: #fff;
  border-radius: 10px; font-size: 13px; font-weight: 800; text-align: center;
}

/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════ */
#aboutSection { background: var(--bg-2); padding: 96px 24px; }
.about-header { text-align: center; margin-bottom: 48px; }
.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: 14px; }
.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; }
.custom-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   WHY BANNER
══════════════════════════════════════════════════════════ */
#whyBanner {
  background: linear-gradient(160deg, #03010a 0%, #1a0040 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; white-space: nowrap; text-decoration: none;
  transition: background .2s, transform .15s;
}
.why-cta-btn:hover { background: #ddd6fe; transform: translateY(-2px); }
.why-cta-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════ */
#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-item.open .faq-a { 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-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 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; }
}
@media (max-width: 540px) {
  .features-inner { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr; }
  #main-wrap { padding: 16px 14px 40px; }
}
