/* VisiScan UI kit — reusable funnel components. Depends on tokens.css (the vars).
   Class prefix vs- so it never clashes with the live app's classes (public/assets/style.css).
   awwwards lifts these class-for-class into the landing + checkout. Light + dark aware. */

.vs-container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.vs-container--narrow { max-width: var(--maxw-narrow); }

/* ---- section rhythm ---- */
.vs-section { padding-block: var(--section-y); }
.vs-section--tint { background: var(--primary-tint); }
.vs-section-head { max-width: var(--maxw-narrow); margin-bottom: var(--sp-10); }
.vs-kicker {
  display: inline-block; font-family: var(--font-body); font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: var(--tr-kicker); text-transform: uppercase; color: var(--primary);
  background: var(--primary-tint); border: 1px solid var(--primary-line);
  border-radius: var(--r-pill); padding: 6px 14px; margin-bottom: var(--sp-4);
}
.vs-h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(26px,4vw,40px);
  line-height: var(--lh-heading); letter-spacing: var(--tr-heading); color: var(--text); }
.vs-lead { color: var(--text-muted); font-size: clamp(16px,2.2vw,19px); line-height: var(--lh-snug); max-width: 640px; margin-top: var(--sp-4); text-wrap: pretty; }

/* ---- buttons ---- */
.vs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-lg); border: 1px solid transparent; cursor: pointer;
  min-height: 48px; text-decoration: none; transition: transform var(--d-fast) var(--ease-out), background var(--d-base), box-shadow var(--d-base);
}
.vs-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.vs-btn:hover { transform: translateY(-1px); }
.vs-btn:disabled { opacity: .6; cursor: default; transform: none; }
.vs-btn--primary { background: var(--primary); color: #fff; box-shadow: var(--sh-cta); }
.vs-btn--primary:hover { background: var(--primary-ink); }
:root[data-theme="dark"] .vs-btn--primary:hover { background: color-mix(in srgb, var(--primary) 80%, #fff); color: #0b0d12; }
.vs-btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.vs-btn--secondary:hover { background: var(--primary-tint); border-color: var(--primary-line); color: var(--primary-ink); }
.vs-btn--ghost { background: transparent; color: var(--primary); }
.vs-btn--ghost:hover { background: var(--primary-tint); }
/* WhatsApp — bright brand green fill carries DARK ink text (9.38:1). Never white on bright green. */
.vs-btn--wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--wa) 70%, transparent); }
.vs-btn--wa:hover { background: color-mix(in srgb, var(--wa) 88%, #000); }
.vs-btn--wa .vs-btn-ico { fill: var(--wa-ink); }
.vs-btn--lg { font-size: 17px; padding: 17px 32px; min-height: 54px; }
.vs-btn--block { width: 100%; }

/* ---- form / lead gate ---- */
.vs-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.vs-field { display: flex; flex-direction: column; gap: 6px; }
.vs-field-label { font-size: 13px; font-weight: var(--fw-medium); color: var(--text-muted); }
.vs-field-label .req { color: var(--red); }
.vs-input-wrap { position: relative; }
.vs-input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.vs-input {
  width: 100%; padding: 14px 14px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; min-height: 48px;
}
.vs-input.has-ico { padding-left: 44px; }
.vs-input::placeholder { color: color-mix(in srgb, var(--text-muted) 75%, var(--surface)); }
.vs-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint-2); }
.vs-input[aria-invalid="true"] { border-color: var(--red); }
.vs-field-error { color: var(--red); font-size: 12.5px; min-height: 15px; }
.vs-checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.vs-checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.vs-form-note { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* ---- generic card ---- */
.vs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: clamp(22px,4vw,32px); box-shadow: var(--sh-sm); }

/* ---- pricing / package card ---- */
.vs-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: start; }
.vs-price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 28px 26px; display: flex; flex-direction: column; gap: var(--sp-4); }
.vs-price-card--featured { border-color: var(--primary); box-shadow: var(--sh-card); }
.vs-price-flag { position: absolute; top: -12px; left: 26px; background: var(--primary); color: #fff; font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.vs-price-name { font-family: var(--font-display); font-size: 20px; font-weight: var(--fw-semibold); color: var(--text); }
.vs-price-desc { font-size: 14px; color: var(--text-muted); }
.vs-price-amount { font-family: var(--font-display); font-size: clamp(38px,6vw,52px); font-weight: var(--fw-semibold); letter-spacing: var(--tr-display); color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.vs-price-amount .cur { font-size: .5em; vertical-align: .35em; color: var(--text-muted); }
.vs-price-amount .per { font-family: var(--font-body); font-size: 14px; font-weight: var(--fw-medium); color: var(--text-muted); letter-spacing: 0; }
.vs-price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vs-price-list li { display: flex; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.45; }
.vs-price-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.vs-price-list li.muted { color: var(--text-muted); }
.vs-price-list li.muted svg { color: var(--text-muted); }

/* ---- testimonial ---- */
.vs-quote { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-xl); padding: 24px 26px; }
.vs-quote p { font-size: 16px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.vs-quote-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.vs-quote-av { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--primary-tint); color: var(--primary-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 16px; flex-shrink: 0; }
.vs-quote-name { font-weight: var(--fw-semibold); font-size: 14px; color: var(--text); }
.vs-quote-role { font-size: 12.5px; color: var(--text-muted); }

/* ---- FAQ accordion (native details/summary) ---- */
.vs-faq { border-top: 1px solid var(--border); }
.vs-faq details { border-bottom: 1px solid var(--border); }
.vs-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; padding: 20px 4px; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 17px; color: var(--text); }
.vs-faq summary::-webkit-details-marker { display: none; }
.vs-faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm); }
.vs-faq-ico { flex-shrink: 0; color: var(--primary); transition: transform var(--d-base) var(--ease-out); }
.vs-faq details[open] .vs-faq-ico { transform: rotate(45deg); }
.vs-faq-body { padding: 0 4px 22px; color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 640px; text-wrap: pretty; }

/* ---- badges / trust ---- */
.vs-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--fw-semibold); padding: 5px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.vs-badge svg { flex-shrink: 0; }
.vs-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: var(--fw-bold); padding: 3px 10px; border-radius: var(--r-pill); }
.vs-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.vs-pill--pass { background: color-mix(in srgb, var(--green) 12%, var(--surface)); color: var(--green); }
.vs-pill--pass::before { background: var(--green); }
.vs-pill--warn { background: color-mix(in srgb, var(--amber) 14%, var(--surface)); color: var(--amber); }
.vs-pill--warn::before { background: var(--amber); }
.vs-pill--fail { background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red); }
.vs-pill--fail::before { background: var(--red); }

/* guarantee badges (48h, money-back) — icon + label, color is never the only signal */
.vs-guarantees { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.vs-guarantee { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 14px 18px; }
.vs-guarantee-ico { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; flex-shrink: 0; background: var(--primary-tint); color: var(--primary); }
.vs-guarantee-ico--green { background: color-mix(in srgb, var(--green) 12%, var(--surface)); color: var(--green); }
.vs-guarantee-t { font-weight: var(--fw-semibold); font-size: 14px; color: var(--text); }
.vs-guarantee-d { font-size: 12.5px; color: var(--text-muted); }

/* trust row */
.vs-trustrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); color: var(--text-muted); font-size: 13px; font-weight: var(--fw-medium); }
.vs-trustrow > span { display: inline-flex; align-items: center; gap: 7px; }

/* ---- score ring (carried from the report system — keeps funnel↔report one brand) ---- */
.vs-ring-wrap { position: relative; width: 132px; height: 132px; }
.vs-ring-val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 42px; font-weight: var(--fw-semibold); letter-spacing: -.02em; color: var(--text); }

/* ---- responsive ---- */
@media (max-width: 860px) { .vs-pricing { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .vs-btn, .vs-faq-ico { transition: none; } }
