/* =============================================================================
 * QUARVO — Design System Components
 * =============================================================================
 * Shared component styles for patterns that appear on more than one page.
 * References tokens from design-system/tokens.css. Load AFTER tokens.css
 * so the semantic layer is available at parse time.
 *
 * Each component has one source of truth here — pages must not redefine it
 * locally. If a page needs a variation, use a modifier class in the DOM
 * (e.g. .brand-eyebrow.--soft) and add the modifier here, not a local copy.
 *
 * Convention: components are prefixed with the brand primitive they render
 * (brand-eyebrow, brand-chip, brand-trust-badge) so a reader who greps for
 * "brand-" finds the entire component library.
 * ========================================================================== */


/* ─────────────────────────────────────────────────────────────────────────
 * BRAND EYEBROW · pill component
 * Cyan glowing dot + accent-soft background + mono uppercase label.
 * Consumed by: landing hero (.hero-kicker was renamed), /about, /investors.
 * Brand manual §04 (color) + §08 (voice applied · 3 contexts).
 * ─────────────────────────────────────────────────────────────────────── */

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  line-height: 1;
}

.brand-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────────────
 * BRAND TRUST ROW + CHIP · fintech proof strip
 * Row is flex+gap only (no vertical spacing — the page decides).
 * Chip is a small mono pill with a leading state dot (::before), three
 * states via modifier classes. Consumed by: landing hero, /investors.
 * Brand manual §04 (fintech trust) + §08 (voice · landing + investors).
 * ─────────────────────────────────────────────────────────────────────── */

.brand-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brand-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);            /* base = muted text */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);   /* base = standard border */
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1;
}

.brand-trust-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);        /* base = green dot (verified/present) */
  flex-shrink: 0;
}

/* --on · verified/active — bright text + stronger border, green dot inherited */
.brand-trust-chip.--on {
  color: var(--fg);
  border-color: var(--border-strong);
}

/* --soon · roadmap/pending — same muted base, grey dot */
.brand-trust-chip.--soon::before {
  background: var(--fg-subtle);
}


/* ─────────────────────────────────────────────────────────────────────────
 * BRAND ACCENT TEXT · utility · violet → cyan gradient emphasis
 * Apply directly on the span/word that carries the promise in an H1 or
 * a display line. Canonical direction: 90deg from --brand-text to
 * --accent. Consumers: landing hero H1 accent (via .title-accent in
 * styles.css uses the animated variant), /about active portfolio card,
 * /investors H1 emphasis, brand manual illustrations.
 *
 * Rule: never apply on body text (< 18px) — the gradient loses legibility
 * at small sizes and drops below WCAG AA. Reserve for display type.
 * ─────────────────────────────────────────────────────────────────────── */

.brand-accent-text {
  background: linear-gradient(90deg, var(--brand-text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ─────────────────────────────────────────────────────────────────────────
 * BRAND CTA · call-to-action buttons
 * Base = primary (violet fill + glow shadow). Modifiers stack.
 *   .brand-cta                    · default primary CTA
 *   .brand-cta.--hero             · hero variant · gradient bg + amplified shadow
 *   .brand-cta.--ghost            · secondary · transparent + outlined
 *   .brand-cta.--block            · full-width form CTA
 *   .brand-cta.--glow             · animated aura pseudo on hover (opt-in flair)
 *
 * All buttons respect --focus-ring, --tap-target minimum height, and use
 * motion tokens from tokens.css. Consumers: landing hero, /investors form,
 * /pay-with-quarvo docs, any future CTA surface.
 * ─────────────────────────────────────────────────────────────────────── */

.brand-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-target);
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--fg-on-accent);
  background: var(--brand);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(123, 47, 255, 0.4);
  transition: background var(--t-hover) var(--ease-enter),
              border-color var(--t-hover) var(--ease-enter),
              color var(--t-hover) var(--ease-enter),
              transform var(--t-press) var(--ease-enter),
              box-shadow var(--t-hover) var(--ease-enter),
              opacity var(--t-hover) var(--ease-enter);
}

.brand-cta:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(123, 47, 255, 0.55);
}
.brand-cta:active { transform: translateY(0); }
.brand-cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 8px 40px rgba(123, 47, 255, 0.55);
}
.brand-cta:disabled,
.brand-cta[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* --hero · gradient background + amplified shadow */
.brand-cta.--hero {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 32px rgba(123, 47, 255, 0.5);
}
.brand-cta.--hero:hover {
  background: linear-gradient(135deg, var(--brand-hover), var(--accent));
  box-shadow: 0 12px 48px rgba(123, 47, 255, 0.65);
}

/* --ghost · transparent outlined secondary */
.brand-cta.--ghost {
  background: transparent;
  color: var(--fg-muted);
  border-color: var(--border-strong);
  box-shadow: none;
  font-family: var(--font-body);
  font-weight: 400;
  padding: 14px 22px;
}
.brand-cta.--ghost:hover {
  color: var(--fg);
  border-color: var(--border-brand);
  background: var(--brand-soft);
  transform: none;
  box-shadow: none;
}

/* --block · full-width (form submits, mobile-first CTAs) */
.brand-cta.--block {
  width: 100%;
  padding: 14px 24px;
}

/* --glow · optional aura pseudo on hover.
   .cta-glow is kept as a legacy alias — several page-local buttons
   (for-merchants .m-submit) opt in to the glow without using the full
   .brand-cta system. Both selectors share the same declarations. */
.brand-cta.--glow,
.cta-glow {
  position: relative;
  isolation: isolate;
}
.brand-cta.--glow::after,
.cta-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  opacity: 0;
  z-index: -1;
  filter: blur(18px);
  transition: opacity var(--t-modal) var(--ease-enter);
}
@media (hover: hover) and (pointer: fine) {
  .brand-cta.--glow:hover::after,
  .brand-cta.--glow:focus-visible::after,
  .cta-glow:hover::after,
  .cta-glow:focus-visible::after { opacity: 0.5; }
}


/* ─────────────────────────────────────────────────────────────────────────
 * BRAND MOCKUP · receipt-style product visualization card
 * Compact "here's what the product does" card — order header, card rows,
 * settled footer. A slow diagonal sweep pseudo signals liveness without
 * looking like a loader. Consumers: landing hero mobile (D1), app
 * dashboard tile, deck slide, email header. Brand manual §07.
 *
 * Internal subclass names use the shorter `.mockup-*` prefix (already
 * unique in this codebase) — they only make sense inside .brand-mockup.
 * Card brand color variants (--visa/--mc/--amex) preserve exact
 * competitor brand hues; those are product-facing decisions, not tokens.
 * ─────────────────────────────────────────────────────────────────────── */

.brand-mockup {
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface) 100%);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.brand-mockup::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 0%, transparent 40%,
    rgba(123, 47, 255, 0.06) 50%,
    transparent 60%, transparent 100%);
  background-size: 300% 100%;
  animation: brand-mockup-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes brand-mockup-sweep {
  0%, 100% { background-position: -150% 0; }
  50%      { background-position:  150% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mockup::before { animation: none; }
}

/* Head · order label + total */
.mockup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}
.mockup-head-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  text-transform: uppercase;
}
.mockup-head-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* Cards · list of card rows */
.mockup-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mockup-card-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Card brand chip · Visa/MC/Amex color kept exact (competitor identity) */
.mockup-card-brand {
  width: 30px;
  height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 0;
  font-family: var(--font-mono);
}
.mockup-card-brand--visa { background: #1A1F71; }
.mockup-card-brand--mc   { background: #EB001B; }
.mockup-card-brand--amex { background: #006FCF; }

.mockup-card-num {
  color: var(--fg-muted);
  font-size: 12px;
}
.mockup-card-amt {
  color: var(--fg);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Foot · settled row */
.mockup-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mockup-foot-settled {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-weight: 500;
}
.mockup-foot-settled::before {
  content: "✓";
  font-size: 12px;
}
.mockup-foot-via {
  color: var(--fg-subtle);
}


/* ─────────────────────────────────────────────────────────────────────────
 * BRAND ORB BG · atmospheric background primitives
 * Fixed-inset container + orb primitives + subtle grid overlay. Pages
 * position/size each orb via a page-local class (positions are context-
 * specific — the component supplies the *what* and *how*, not the *where*).
 * Consumers: /about, /investors, /pay-with-quarvo, brand system canvases.
 *
 * Usage:
 *   <div class="brand-orb-bg" aria-hidden="true">
 *     <div class="brand-orb --violet orb-pos-1"></div>   <!-- page-local sizes/pos -->
 *     <div class="brand-orb --cyan   orb-pos-2"></div>
 *     <div class="brand-grid"></div>
 *   </div>
 * ─────────────────────────────────────────────────────────────────────── */

.brand-orb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.brand-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.brand-orb.--violet { background: var(--brand); opacity: 0.15; }
.brand-orb.--cyan   { background: var(--accent); opacity: 0.10; }

.brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 47, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}


/* ─────────────────────────────────────────────────────────────────────────
 * BRAND INPUT · text/email/tel form input
 * Surface-sunken background, standard border, brand focus ring, tap-target
 * min height. --error modifier for validation state. Consumers: /investors
 * form, any future gated flow.
 * ─────────────────────────────────────────────────────────────────────── */

.brand-input {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg);
  outline: none;
  min-height: var(--tap-target);
  transition: border-color var(--t-hover) var(--ease-enter),
              box-shadow var(--t-hover) var(--ease-enter);
}
.brand-input::placeholder { color: var(--fg-subtle); }
.brand-input:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}
.brand-input.--error {
  border-color: var(--danger);
}
.brand-input:disabled {
  opacity: 0.5;
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────────────────
 * BRAND FORM NOTE · mono uppercase fine-print under a form
 * Small footer text for confidentiality/legal/hints. Center-aligned by
 * default (override with text-align if needed).
 * ─────────────────────────────────────────────────────────────────────── */

.brand-form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-subtle);
  letter-spacing: 0.06em;
  text-align: center;
}
