/* ============================================================
   WhiteStudio.team — Easy Form Builder homepage
   ============================================================ */

:root {
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', system-ui, sans-serif;

  /* Brand — WhiteStudio.team */
  --brand-purple: #652eba;
  --brand-purple-dark: #4c238b;
  --brand-pink: #ff4b93;
  --brand-pink-soft: #ffe6f0;
  --brand-gradient: linear-gradient(135deg, #652eba 0%, #4c238b 100%);

  --accent: #652eba;
  --accent-rgb: 101, 46, 186;
  --accent-soft: #f1ebfb;
  --accent-ink: #4c238b;

  /* Neutrals */
  --ink-1: #0a0e1c;
  --ink-2: #1a2236;
  --ink-3: #4a5468;
  --ink-4: #8a93a8;
  --line: #e7e9ef;
  --line-2: #eef0f5;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #f1f3f9;

  /* Semantic */
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 14, 28, 0.04), 0 1px 1px rgba(10, 14, 28, 0.03);
  --shadow-md: 0 6px 24px rgba(10, 14, 28, 0.06), 0 2px 8px rgba(10, 14, 28, 0.04);
  --shadow-lg: 0 24px 64px rgba(10, 14, 28, 0.12), 0 8px 16px rgba(10, 14, 28, 0.05);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

[data-theme="dark"] {
  --ink-1: #f5f7fb;
  --ink-2: #dde1ea;
  --ink-3: #a8b0c0;
  --ink-4: #6e7588;
  --line: #1f2638;
  --line-2: #19202f;
  --surface: #0c111e;
  --surface-2: #11172a;
  --surface-3: #161d33;
  --accent-soft: #1a234a;
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55), 0 8px 16px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   Base
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-body-font-family);
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  color: var(--ink-1);
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}

p { color: var(--ink-3); text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

::selection { background: var(--accent); color: #fff; }

.section { padding: 70px 0; }
.section-sm { padding: 54px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
[data-theme="dark"] .eyebrow { color: #b8c4ff; }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 16px 0 16px;
}
.section-lede {
  font-size: 18px;
  max-width: 640px;
  color: var(--ink-3);
}

/* ============================================================
   Announcement bar + Nav
   ============================================================ */

.announce {
  background: var(--ink-1);
  color: #cdd5e6;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}
.announce strong { color: #fff; }
.announce a { color: #9eb5ff; margin-left: 8px; }

.navbar-wsx {
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1030;
}
.navbar-wsx .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-1);
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--brand-gradient);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 4px 12px rgba(101, 46, 186, 0.3);
}
.brand-mark img {
  width: 22px; height: 22px;
  filter: brightness(0) invert(1);
}
.navbar-wsx .nav-link {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px !important;
}
.navbar-wsx .nav-link:hover { color: var(--accent); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #7339d4 0%, #5a2aa3 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(101, 46, 186, 0.4);
}
.btn-accent {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: #fff;
}
.btn-accent:hover {
  background: #e63b80;
  border-color: #e63b80;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 75, 147, 0.4);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-1);
}
.btn-ghost:hover {
  border-color: var(--ink-1);
  color: var(--ink-1);
  background: var(--surface-2);
}
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
    padding: 20px 0 96px;
    background: radial-gradient(ellipse 600px 300px at 20% 100%, rgba(255, 75, 147, 0.10), transparent 60%), var(--surface);
    position: relative;
    overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--brand-pink);
}
.hero-title em {
  font-style: normal;
  color: var(--brand-purple);
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  font-size: 19px;
  color: var(--ink-3);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex; flex-wrap: wrap;
  gap: 24px; align-items: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-4);
}
.hero-meta .stars { color: #f59e0b; letter-spacing: 1px; }
.hero-meta strong { color: var(--ink-1); }

/* Hero preview window */
.preview-wrap {
  position: relative;
  perspective: 1600px;
}
.preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg) translateZ(0);
  transform-origin: center center;
}
.preview-bar {
  height: 36px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.preview-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line);
}
.preview-bar .dot:nth-child(1) { background: #ff5f57; }
.preview-bar .dot:nth-child(2) { background: #febc2e; }
.preview-bar .dot:nth-child(3) { background: #28c840; }
.preview-bar .url {
  margin-left: 14px;
  font: 12px/1 ui-monospace, monospace;
  color: var(--ink-4);
}

.preview-body { display: grid; grid-template-columns: 200px 1fr; min-height: 460px; }
.preview-side {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 16px;
  font-size: 12px;
}
.preview-side .side-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.field-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
  cursor: grab;
}
.field-chip:hover { border-color: var(--accent); color: var(--accent); }
.field-chip .ico {
  width: 18px; height: 18px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}

.preview-canvas {
  padding: 24px;
  background:
    radial-gradient(circle at 10px 10px, var(--line) 1px, transparent 1px) 0 0/20px 20px,
    var(--surface);
}
.form-step-bar {
  display: flex; gap: 6px; margin-bottom: 16px;
  font-size: 11px; color: var(--ink-4); font-weight: 600;
}
.form-step-bar .step {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.form-step-bar .step.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.demo-field {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.demo-field.solid { border-style: solid; }
.demo-field:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.08); }
.demo-field label { font-size: 11px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 4px; }
.demo-field .ipt {
  height: 28px; border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.demo-field .ipt.tall { height: 56px; }
.demo-field .opts { display: flex; gap: 8px; }
.demo-field .opt {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-3);
}
.demo-field .opt::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--ink-4);
  display: inline-block;
}
.demo-field .opt.on::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--surface); }

.float-bubble {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  z-index: 2;
}
.float-bubble .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.bubble-1 { top: 24px; left: -28px; }
.bubble-2 { bottom: 36px; right: -32px; }

/* ============================================================
   Trust strip
   ============================================================ */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 28px 0;
  margin:0
}
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 24px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.trust-item strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-1);
  font-weight: 600;
}
.trust-item .l { font-size: 12px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================================
   Features
   ============================================================ */

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.feature-card:hover {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-ico svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
}
.feature-card p {
  font-size: 14.5px;
  margin: 0;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ============================================================
   How it works
   ============================================================ */

.howit {
  background: var(--surface-2);
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  height: 100%;
}
.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.step-num .line {
  height: 1px; width: 36px; background: var(--accent);
}
.step-visual {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
  min-height: 110px;
}
.step-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.step-card p { font-size: 14px; margin: 0; }

/* ============================================================
   Templates
   ============================================================ */

.tpl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  height: 100%;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.tpl-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tpl-thumb {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 140px;
  padding: 14px;
  margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.tpl-thumb .row-mini {
  display: flex; gap: 6px;
}
.tpl-thumb .bar {
  background: var(--line);
  border-radius: 4px;
  height: 10px;
  flex: 1;
}
.tpl-thumb .bar.lg { height: 26px; }
.tpl-thumb .bar.accent { background: var(--accent); width: 60px; flex: none; }
.tpl-card h3 { font-size: 15px; margin: 0 0 4px; font-weight: 600; }
.tpl-card .tag { font-size: 12px; color: var(--ink-4); }

/* ============================================================
   Live demo builder — mimics the real Easy Form Builder UI
   ============================================================ */

.builder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.builder-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  flex-wrap: wrap;
}
.builder-head .tool {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.builder-head .tool:hover { color: var(--ink-1); background: rgba(0,0,0,0.03); }
.builder-head .tool.save {
  color: var(--brand-pink);
  border: 1px solid var(--brand-pink);
  background: rgba(255, 75, 147, 0.06);
  font-weight: 600;
}
.builder-head .tool.save:hover { background: var(--brand-pink); color: #fff; }
.builder-head .tool svg { width: 14px; height: 14px; }
.builder-head .pill {
  margin-left: auto;
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600;
}

.builder-body {
  display: grid;
  grid-template-columns: 460px 1fr;
  min-height: 620px;
  position: relative;
}
.builder-pane-left {
  position: relative;
  border-right: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

/* Tabs */
.field-tabs {
  display: flex;
  padding: 8px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  gap: 4px;
}
.field-tab {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-4);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: color .15s ease, background .15s ease;
}
.field-tab:hover { color: var(--ink-2); }
.field-tab.active {
  color: var(--brand-purple);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.field-tab.active::after {
  content: ""; position: absolute;
  left: 16px; right: 16px; bottom: -8px;
  height: 2px;
  background: var(--brand-purple);
  border-radius: 2px;
}

/* Field card grid */
.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  max-height: 540px;
  overflow-y: auto;
}
.field-grid::-webkit-scrollbar { width: 6px; }
.field-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.field-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px 10px;
  text-align: center;
  cursor: grab;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select: none;
}
.field-card:hover {
  border-color: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(101, 46, 186, 0.12);
}
.field-card:hover .field-card-ico { color: var(--brand-purple); }
.field-card.selected {
  border-color: var(--ink-1);
  background: var(--ink-1);
  color: #fff;
}
.field-card.selected .field-card-ico,
.field-card.selected .field-card-label { color: #fff; }

.field-card-ico {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.field-card-ico svg { width: 24px; height: 24px; stroke-width: 1.6; }
.field-card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.25;
  display: block;
}

/* Premium badge */
.field-card .premium-badge {
  position: absolute;
  top: -6px; left: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.35);
  z-index: 2;
}
.field-card .premium-badge svg { width: 10px; height: 10px; }

/* Right: form preview canvas */
.builder-preview {
  background: var(--surface-2);
  padding: 24px;
  overflow: auto;
}
.preview-form {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  max-width: 640px;
  margin: 0 auto;
}
.preview-form-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 18px;
}
.preview-form-head .emoji {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.preview-form-head h4 {
  font-size: 22px;
  margin: 0;
  color: var(--ink-1);
  font-weight: 500;
}

.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.pf-row.single { grid-template-columns: 1fr; }

.pf-field {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  padding: 4px;
  transition: background .15s ease, box-shadow .15s ease;
}
.pf-field:hover { background: rgba(101, 46, 186, 0.03); }
.pf-field.selected {
  background: rgba(101, 46, 186, 0.05);
  box-shadow: 0 0 0 2px var(--brand-purple);
}
.pf-field label {
  font-size: 15px;
  color: var(--ink-1);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.pf-field label .req {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 700;
}
.pf-field input[type=text],
.pf-field input[type=email],
.pf-field input[type=tel],
.pf-field input[type=number],
.pf-field input[type=date],
.pf-field input[type=password],
.pf-field select,
.pf-field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font: 15px var(--bs-body-font-family);
  color: var(--ink-1);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pf-field input::placeholder, .pf-field textarea::placeholder { color: #b8bdcc; }
.pf-field input:focus, .pf-field textarea:focus, .pf-field select:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(101, 46, 186, 0.1);
}
.pf-field textarea { min-height: 110px; resize: vertical; }

/* Field action toolbar (gear/copy/trash/move) */
.pf-actions {
  position: absolute;
  top: 38px; right: 12px;
  display: none;
  gap: 4px;
  z-index: 3;
}
.pf-field.selected .pf-actions, .pf-field:hover .pf-actions { display: inline-flex; }
.pf-action {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
  padding: 0;
}
.pf-action svg { width: 12px; height: 12px; }
.pf-action.gear { color: var(--brand-purple); border-color: rgba(101, 46, 186, 0.3); }
.pf-action.copy { color: var(--success); border-color: rgba(22, 163, 74, 0.3); }
.pf-action.trash { color: var(--danger); border-color: rgba(239, 68, 68, 0.3); }
.pf-action.move { color: var(--ink-3); cursor: grab; }
.pf-action:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.pf-submit {
  width: 100%;
  background: #1e3aff;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 14px;
  font: 600 16px var(--bs-body-font-family);
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s ease;
}
.pf-submit:hover { background: #1530dd; }

/* ============================================================
   Properties drawer (slides from left, covers field grid)
   ============================================================ */
.props-drawer {
  position: absolute;
  inset: 0;
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(-110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 5;
}
.props-drawer.open { transform: translateX(0); }
.props-drawer-head {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  gap: 6px;
  background: var(--surface-2);
}
.props-btn {
  width: 32px; height: 32px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.props-btn.ok { color: var(--success); }
.props-btn.ok:hover { background: rgba(22, 163, 74, 0.1); }
.props-btn.close { color: var(--danger); }
.props-btn.close:hover { background: rgba(239, 68, 68, 0.1); }
.props-btn svg { width: 18px; height: 18px; stroke-width: 2.5; }

.props-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.props-body::-webkit-scrollbar { width: 6px; }
.props-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.prop-group { margin-bottom: 18px; }
.prop-group .lbl {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 6px;
}
.prop-group .lbl .ico { color: var(--ink-4); display: inline-flex; }
.prop-group .lbl .ico svg { width: 14px; height: 14px; }
.prop-group .req-star { color: #ef4444; margin-left: 1px; }
.prop-group input[type=text],
.prop-group input[type=number],
.prop-group select,
.prop-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: 14px var(--bs-body-font-family);
  color: var(--ink-1);
  outline: none;
}
.prop-group input:focus, .prop-group select:focus, .prop-group textarea:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(101, 46, 186, 0.08);
}
.prop-group .help {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 4px;
}

.prop-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
}
.prop-toggle input { display: none; }
.prop-toggle .sw {
  width: 36px; height: 20px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  transition: background .15s ease;
  flex: none;
}
.prop-toggle .sw::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.prop-toggle input:checked + .sw { background: var(--brand-purple); }
.prop-toggle input:checked + .sw::after { left: 18px; }

.prop-advanced-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(101, 46, 186, 0.06);
  border: 1px dashed var(--brand-purple);
  color: var(--brand-purple);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 6px 0 16px;
}
.prop-advanced-toggle:hover { background: rgba(101, 46, 186, 0.1); }

.prop-color-row {
  display: flex; gap: 8px; align-items: center;
}
.prop-color-row .swatch-input {
  flex: 1;
  height: 30px;
  background: linear-gradient(90deg, #9c9faf, #9c9faf);
  border-radius: 6px;
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
}
.prop-color-row .swatch-input::after {
  content: "▾";
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 12px;
}

/* Hide drawer-only state */
.field-card.premium-locked { opacity: 0.85; }

@media (max-width: 991px) {
  .builder-body { grid-template-columns: 1fr; min-height: auto; }
  .builder-pane-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .field-grid { grid-template-columns: repeat(3, 1fr); max-height: 360px; }
}
@media (max-width: 575px) {
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Video walkthrough (SEO + AEO friendly)
   ============================================================ */

.video-frame {
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.video-aspect {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0c0a18;
}
.video-thumb {
  position: absolute; inset: 0;
  cursor: pointer;
  display: block;
  background: linear-gradient(135deg, #2a1860 0%, #1a0e3a 60%, #0c0a18 100%);
}
.video-thumb-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 30% 20%, rgba(101, 46, 186, 0.5), transparent 60%),
    radial-gradient(ellipse 500px 250px at 80% 90%, rgba(255, 75, 147, 0.4), transparent 60%);
}
.video-thumb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}

.video-thumb-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(60%, 380px);
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.vt-row { margin-bottom: 12px; }
.vt-row:last-of-type { margin-bottom: 0; }
.vt-label { font-size: 12px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.vt-input {
  height: 32px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px;
}
.vt-pulse .vt-input {
  animation: vt-pulse 1.8s ease-in-out infinite;
  border-color: var(--brand-purple);
}
@keyframes vt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(101, 46, 186, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(101, 46, 186, 0.18); }
}
.vt-cursor {
  position: absolute;
  bottom: 28px; right: 38px;
  width: 22px; height: 22px;
  color: var(--brand-purple);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: vt-cursor 4s ease-in-out infinite;
}
@keyframes vt-cursor {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-50px, -30px); }
}

.video-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.95);
  color: var(--brand-purple);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  transition: transform .2s ease, background .2s ease;
  z-index: 2;
}
.video-play svg { width: 36px; height: 36px; margin-left: 4px; }
.video-thumb:hover .video-play { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.video-meta {
  position: absolute;
  left: 24px; bottom: 20px;
  display: flex; gap: 14px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  z-index: 2;
}
.video-meta .video-duration {
  background: rgba(0,0,0,0.55);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}
.video-meta .video-cc {
  background: rgba(0,0,0,0.55);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.video-transcript {
  max-width: 820px;
  margin: 32px auto 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}
.video-transcript summary {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-1);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.video-transcript summary::-webkit-details-marker { display: none; }
.video-transcript summary::after {
  content: "+";
  font-size: 22px; color: var(--brand-purple);
  font-weight: 400;
}
.video-transcript[open] summary::after { content: "−"; }
.vt-body { margin-top: 16px; }
.vt-body p { font-size: 14.5px; color: var(--ink-3); line-height: 1.65; margin: 0 0 10px; }
.vt-body strong { color: var(--ink-1); }
.vt-body code {
  background: var(--ink-1); color: #c5cbff;
  padding: 2px 6px; border-radius: 4px;
  font-size: 12.5px;
}

/* ============================================================
   Screenshots gallery + lightbox
   ============================================================ */

.shots {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}
.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shot:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--brand-purple) 35%, var(--line));
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.shot.big { grid-row: span 2; }
.shot .shot-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(10, 14, 28, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.shot .shot-tag .d { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-pink); }
.shot .shot-zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.92);
  color: var(--brand-purple);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .2s ease, transform .2s ease;
}
.shot:hover .shot-zoom { opacity: 1; transform: scale(1); }
.shot .shot-zoom svg { width: 17px; height: 17px; }

@media (max-width: 767px) {
  .shots { grid-template-columns: 1fr; }
  .shot.big { grid-row: auto; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 3500;
  background: rgba(8, 10, 22, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: wsx-fade .2s ease; }
.lightbox img {
  max-width: 96vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
}
.lightbox .lb-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,0.22); }
.lightbox .lb-close svg { width: 22px; height: 22px; }
.lightbox .lb-cap {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 999px;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 0; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox .lb-nav.prev { left: 22px; }
.lightbox .lb-nav.next { right: 22px; }
.lightbox .lb-nav svg { width: 24px; height: 24px; }

/* Use real screenshot as the video poster */
.video-thumb.has-poster .video-thumb-card,
.video-thumb.has-poster .video-thumb-grid { display: none; }
.video-thumb.has-poster {
  background-size: cover;
  background-position: top center;
}
.video-thumb.has-poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,14,58,0.25), rgba(12,10,24,0.55));
}
.video-thumb.has-poster .video-play,
.video-thumb.has-poster .video-meta { z-index: 3; }

.wsx-modal {
  position: fixed; inset: 0;
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.wsx-modal[hidden] { display: none; }
.wsx-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 14, 28, 0.62);
  backdrop-filter: blur(6px);
  animation: wsx-fade .2s ease;
}
.wsx-modal-card {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(10,14,28,0.5);
  text-align: center;
  animation: wsx-pop .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes wsx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wsx-pop  { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.wsx-modal-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-4);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.wsx-modal-x:hover { background: var(--surface-2); color: var(--ink-1); }
.wsx-modal-x svg { width: 18px; height: 18px; }

.wsx-modal-ico {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 12px 32px rgba(101, 46, 186, 0.4);
}
.wsx-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0 0 10px;
}
.wsx-modal-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0 0 24px;
}
.wsx-modal-body .feat-name {
  color: var(--brand-purple);
  font-weight: 700;
}
.wsx-modal-actions {
  display: flex; flex-direction: column; gap: 10px;
}
.wsx-modal-actions .btn { font-size: 15px; padding: 12px 18px; }
.wsx-modal-actions .ghost-link {
  font-size: 13px;
  color: var(--ink-4);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.wsx-modal-actions .ghost-link:hover { color: var(--ink-2); }

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
/*
 * Pricing cards are also used inside editable block patterns.  Defend their
 * vertical layout from block/plugin CSS that may set a row flex direction or
 * align items to the start: the CTA and guarantee must occupy their own rows.
 */
.price-card {
  display: flex !important;
  flex-flow: column nowrap !important;
  align-items: stretch !important;
  min-width: 0;
}
.price-card > h3,
.price-card > .price-amount,
.price-card > .price-strike,
.price-card > ul,
.price-card > .btn,
.price-card > .moneyback {
  align-self: stretch;
  min-width: 0;
  width: 100%;
}
.price-card > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.price-card > .moneyback {
  display: block;
  clear: both;
  margin-top: 10px;
  text-align: center;
}
.price-card.featured {
  border-color: transparent;
  background: var(--brand-gradient);
  color: var(--surface);
  transform: scale(1.02);
  box-shadow: 0 24px 56px rgba(101, 46, 186, 0.3);
}
.price-card.featured h3 { color: rgba(255,255,255,0.85); }
.price-card.featured .price-amount, .price-card.featured .price-amount sup { color: #fff; }
.price-card.featured .price-strike, .price-card.featured .price-amount .per { color: rgba(255,255,255,0.7); }
.price-card.featured p, .price-card.featured li { color: rgba(255,255,255,0.92); }
.price-card.featured li::before { color: var(--brand-pink); background: #fff; padding: 0 4px; border-radius: 4px; font-size: 11px; }
.price-card.featured .moneyback { color: rgba(255,255,255,0.7); }

.price-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-1);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.price-amount sup { font-size: 24px; vertical-align: top; line-height: 1.2; margin-right: 2px; }
.price-amount .per { font-size: 14px; color: var(--ink-4); font-weight: 500; margin-left: 4px; }
.price-strike { color: var(--ink-4); font-size: 13px; text-decoration: line-through; margin-bottom: 18px; }
.price-tag {
  position: absolute; top: -12px; right: 24px;
  background: var(--brand-pink);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(255, 75, 147, 0.4);
}
.price-card ul { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.price-card li {
  font-size: 14px;
  padding: 8px 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3);
}
.price-card li::before {
  content: "✓"; color: var(--accent);
  font-weight: 700; font-size: 13px;
}
.price-card .moneyback { font-size: 12px; color: var(--ink-4); margin-top: 4px; }

/* ============================================================
   Comparison
   ============================================================ */

.compare-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.compare th, table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.compare th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-3);
  background: var(--surface-2);
  text-transform: none;
}
table.compare th.us { background: var(--ink-1); color: #fff; position: relative; }
table.compare th.us::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent);
}
table.compare td.label {
  font-weight: 600; color: var(--ink-2);
}
table.compare td.us { background: rgba(var(--accent-rgb), 0.04); font-weight: 600; color: var(--ink-1); }
table.compare .yes { color: var(--success); font-weight: 700; }
table.compare .no { color: var(--danger); font-weight: 700; opacity: 0.5; }
table.compare .meh { color: var(--warn); font-weight: 600; }
table.compare tr:last-child td { border-bottom: 0; }

/* Collapsible behaviour */
.compare-wrap[data-collapsed="true"] tr.cmp-extra { display: none; }
.compare-wrap[data-collapsed="true"] + div .cmp-toggle::before { content: ""; }
.compare-wrap:not([data-collapsed="true"]) ~ * .cmp-toggle .cmp-chev,
#compare-wrap:not([data-collapsed="true"]) ~ div .cmp-toggle .cmp-chev { transform: rotate(180deg); }

/* Fade-in hint on the last visible row when collapsed */
.compare-wrap[data-collapsed="true"] table.compare tbody tr:not(.cmp-extra):last-of-type {
  position: relative;
}

/* ============================================================
   Integrations
   ============================================================ */

.integrations {
  background: var(--surface-2);
}
.int-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  height: 100%;
  transition: all .2s ease;
}
.int-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.int-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--ink-1);
  margin-bottom: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.int-logo svg { width: 30px; height: 30px; display: block; }
.int-logo.brand { background: var(--surface); }
.int-card h4 { font-size: 14px; margin: 0 0 4px; font-weight: 600; }
.int-card p { font-size: 12px; margin: 0; color: var(--ink-4); }

/* ============================================================
   Testimonials
   ============================================================ */

.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  height: 100%;
  display: flex; flex-direction: column;
}
.t-card .stars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; margin-bottom: 14px; }
.t-card blockquote {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 18px;
  font-weight: 500;
  flex: 1;
}
.t-author {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.t-author .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
}
.t-author strong { color: var(--ink-1); display: block; }
.t-author span { color: var(--ink-4); }

/* ============================================================
   FAQ
   ============================================================ */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-1);
  cursor: pointer;
  margin: 0;
  gap: 16px;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--ink-4);
  transition: transform .2s ease;
  flex: none;
}
.faq-item[open] .faq-q::after { content: "−"; color: var(--accent); }
.faq-a {
  font-size: 15px;
  color: var(--ink-3);
  margin: 12px 0 0;
  line-height: 1.65;
  max-width: 760px;
}

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta {
  background: var(--brand-gradient);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(255, 75, 147, 0.6), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0.9;
}
.final-cta > * { position: relative; }
.final-cta h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 12px;
}
.final-cta p { color: #c8ceda; font-size: 17px; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.final-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* ============================================================
   Footer
   ============================================================ */

footer.site {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 64px 0 24px;
  margin-top: 80px;
}
footer.site h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink-4);
  margin-bottom: 16px;
}
footer.site a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0;
  font-weight: 500;
}
footer.site a:hover { color: var(--accent); }
footer.site .legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   Tweaks panel
   ============================================================ */

.tweaks-fab {
  position: fixed; bottom: 20px; right: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink-1); color: #fff;
  border: 0;
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
}
.tweaks-panel {
  position: fixed;
  bottom: 80px; right: 20px;
  width: 290px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  z-index: 2001;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-panel .x { cursor: pointer; color: var(--ink-4); font-size: 18px; }
.tweaks-section { margin-bottom: 16px; }
.tweaks-section label {
  display: block;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-4); font-weight: 700; margin-bottom: 8px;
}
.swatch-row { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  position: relative;
}
.swatch.active { border-color: var(--ink-1); }
[data-theme="dark"] .swatch.active { border-color: #fff; }

.seg {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 3px; gap: 3px;
}
.seg button {
  background: transparent; border: 0;
  font-size: 12px; font-weight: 600;
  padding: 7px 8px; border-radius: 6px;
  color: var(--ink-3); cursor: pointer;
}
.seg button.active { background: var(--surface); color: var(--ink-1); box-shadow: var(--shadow-sm); }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 13px; font-weight: 500; color: var(--ink-2);
  border-top: 1px solid var(--line-2);
}
.toggle-row:first-of-type { border-top: 0; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 991px) {
  .section { padding: 64px 0; }
  .hero { padding: 0px 0 64px; }
  .preview { transform: none; margin-top: 36px; }
  .preview-body { grid-template-columns: 1fr; min-height: auto; }
  .preview-side { display: none; }
  .float-bubble { display: none; }
  .price-card.featured { transform: none; }
  .final-cta { padding: 48px 24px; }

}

@media (max-width: 575px) {
  .hero-title { font-size: 25px; }
  .section-title { font-size: 28px; }
  .trust-row { gap: 16px; justify-content: flex-start; }
  .eyebrow{ display: none; }
  .hero-meta { display: none; }
  .feature-card h3{ font-size: 15px; }
  pre { font-size: 13.5px!important; }
}

/* ============================================================
   Nav dropdowns — mega "How it works" + searchable "Templates"
   ============================================================ */

.nav-dd { position: relative; }
.nav-dd > .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  background: transparent; border: 0;
  font-family: inherit;
}
.nav-dd > .nav-link .caret {
  width: 13px; height: 13px;
  transition: transform .2s ease;
  opacity: 0.7;
}
.nav-dd.open > .nav-link { color: var(--accent); }
.nav-dd.open > .nav-link .caret { transform: rotate(180deg); }

.dd-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1040;
}
.dd-panel::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav-dd.open .dd-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ---- Mega panel (How it works) ---- */
.mega-panel { width: 560px; }
.mega-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 8px;
}
.mega-col { padding: 8px; }
.mega-col + .mega-col {
  border-left: 1px solid var(--line-2);
  padding-left: 16px;
}
.mega-head {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 4px 10px 10px;
}
.mega-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s ease;
}
.mega-link:hover { background: var(--surface-2); }
.mega-link .mi {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.mega-link:hover .mi { background: var(--accent); color: #fff; }
.mega-link .mi svg { width: 19px; height: 19px; }
.mega-link .mi.logo {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 5px;
  overflow: hidden;
}
.mega-link:hover .mi.logo { background: var(--surface-2); }
.mega-link .mi.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mega-link .mt { min-width: 0; }
.mega-link .mt strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.3;
}
.mega-link .mt span {
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.4;
}
.mega-link.compact { padding: 8px 10px; align-items: center; }
.mega-link.compact .mi { width: 30px; height: 30px; border-radius: 8px; }
.mega-link.compact .mi svg { width: 16px; height: 16px; }
.mega-link.compact .mt strong { font-size: 13.5px; }

/* ---- Templates panel (searchable) ---- */
.tpl-panel { width: 320px; }
.tpl-search {
  position: relative;
  margin-bottom: 8px;
}
.tpl-search svg {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--ink-4);
}
.tpl-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 9px;
  padding: 10px 12px 10px 34px;
  font: 13.5px var(--bs-body-font-family);
  color: var(--ink-1);
  outline: none;
}
.tpl-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}
.tpl-list {
  max-height: 296px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.tpl-list::-webkit-scrollbar { width: 6px; }
.tpl-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.tpl-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  text-decoration: none;
  transition: background .12s ease;
}
.tpl-row:hover { background: var(--surface-2); }
.tpl-row .ti {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.tpl-row .ti svg { width: 16px; height: 16px; }
.tpl-row .tt { min-width: 0; }
.tpl-row .tt strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.3;
}
.tpl-row .tt span {
  font-size: 11.5px;
  color: var(--ink-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tpl-empty {
  display: none;
  text-align: center;
  padding: 22px 12px;
  font-size: 13px;
  color: var(--ink-4);
}
.tpl-empty.show { display: block; }
.tpl-foot {
  border-top: 1px solid var(--line-2);
  margin-top: 8px;
  padding-top: 10px;
}
.tpl-foot a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  padding: 4px 10px;
}

/* ---- Mobile: dropdowns inline inside collapsed nav ---- */
@media (max-width: 991px) {
  .dd-panel {
    position: static;
    transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    padding: 4px 0 8px 10px;
    margin: 2px 0 6px;
    width: auto !important;
    display: none;
  }
  .dd-panel::before { display: none; }
  .nav-dd.open .dd-panel { display: block; }
  .mega-panel .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .mega-col + .mega-col { border-left: 0; padding-left: 8px; }
  .tpl-list { max-height: 220px; }
  .nav-dd > .nav-link { width: 100%; justify-content: space-between; }
}

.av img {
    width: 43px;
    filter: brightness(0) invert(1);
}
.av img:hover,
.brand-mark img:hover {
    filter: none;
}
