/* ============================================================
   Visitech — Component library (seed)
   Canonical buttons, pills and chips. Stands on tokens.css.
   This is the trimmed, harmonized system that replaces the many
   button/pill variants scattered across the earlier prototypes.
   Once approved, home.css `.hero-btn`/`.pill-btn` migrate to `.btn`.
   ============================================================ */

/* directional arrow used inside buttons/links */
.arrow { display: inline-block; transition: transform var(--dur-base) var(--ease-standard); }

/* ============================================================
   BUTTONS — one base, a few intents, three sizes.
   Hover = calm colour shift + arrow nudge. No lift, no glow.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-regular);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: none;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              filter var(--dur-base) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* press feedback — transform is deliberately not in the transition list, so
   the press lands and releases instantly on every variant */
.btn:active { transform: translateY(1px); }

/* sizes — two in use today (hero = lg, content = md) + a compact sm */
.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--sm { padding: 9px 18px;  font-size: 13px; }

/* -- Intents for LIGHT backgrounds -- */

/* PRIMARY (colored, subtle gradient) — the new "fin variant" */
.btn--brand {
  background-image: var(--gradient-button);
  color: #fff;
}
.btn--brand:hover { filter: brightness(0.92) saturate(1.12); color: #fff; }

/* PRIMARY alt — deeper purple→indigo gradient */
.btn--brand-deep {
  background-image: var(--gradient-button-deep);
  color: #fff;
}
.btn--brand-deep:hover { filter: brightness(0.93) saturate(1.1); color: #fff; }

/* SOLID — flat, no gradient (quieter primary) */
.btn--solid { background: var(--color-dark-purple); color: #fff; }
.btn--solid:hover { background: var(--color-dark-blue); color: #fff; }

/* OUTLINE — secondary */
.btn--outline {
  border-color: var(--color-border-strong);
  color: var(--color-dark-purple);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--color-dark-purple);
  color: var(--color-dark-purple);
  background: var(--color-light-purple-20);
}

/* GHOST — tertiary, text + arrow only */
.btn--ghost { padding-left: 6px; padding-right: 6px; color: var(--color-dark-purple); }
.btn--ghost:hover { color: var(--color-link-hover); }

/* -- Intents for DARK backgrounds --
   Add .btn--on-dark by hand, OR simply sit inside a dark section: the section
   skeleton's .vt-section.is-dark already states the surface, so a button block
   never has to be told twice (sections.css). The paired selectors below keep
   ONE set of values for both routes. (2026-08-20) */

/* PRIMARY on dark — clean white (the current hero primary) */
.btn--light { background: #fff; color: var(--color-text); }
.btn--light:hover { background: rgba(255, 255, 255, 0.86); color: var(--color-text); }

/* OUTLINE on dark — white hairline (the current hero ghost) */
.btn--on-dark.btn--outline,
.vt-section.is-dark .btn--outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn--on-dark.btn--outline:hover,
.vt-section.is-dark .btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.16); color: #fff; }

/* GHOST on dark */
.btn--on-dark.btn--ghost,
.vt-section.is-dark .btn--ghost { color: #fff; }
.btn--on-dark.btn--ghost:hover,
.vt-section.is-dark .btn--ghost:hover { color: rgba(255, 255, 255, 0.78); }

/* brand variants work on dark too — no override needed */

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ============================================================
   PILLS — small non-interactive labels / badges / status.
   (The floating nav "pill" is chrome, not this component.)
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: max(11px, var(--fs-floor, 0px));
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }

/* TAG — quiet category / kicker label */
.pill--tag { background: var(--color-light-purple-10); color: var(--color-dark-purple); }

/* BADGE — solid accent, e.g. "New" */
.pill--badge { background: var(--color-light-purple); color: #fff; letter-spacing: 0.1em; }

/* OUTLINE — for dark surfaces, e.g. "New · 2026" on a featured card */
.pill--outline { border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.pill--outline .dot { background: var(--color-light-purple); box-shadow: 0 0 0 3px rgba(160, 104, 177, 0.3); }

/* STATUS — dot + word, three meanings */
.pill--live { background: rgba(74, 157, 122, 0.12); color: var(--color-success-text); }
.pill--live .dot { background: var(--color-success); }
.pill--soon { background: rgba(216, 155, 60, 0.14); color: var(--color-warning-text); }
.pill--soon .dot { background: var(--color-warning); }
.pill--new  { background: var(--color-light-purple-10); color: var(--color-dark-purple); }
.pill--new .dot { background: var(--color-light-purple); }

/* ============================================================
   CHIPS — interactive filters (configurator, product pages)
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.chip:hover { border-color: var(--color-light-purple); }
.chip.is-active { background: var(--color-light-purple); border-color: var(--color-light-purple); color: #fff; }
.chip.is-active:hover { background: var(--color-dark-purple); border-color: var(--color-dark-purple); }

/* ============================================================
   CHECKLIST — informational checkmark list (DS component)
   Circular lavender badge + check. Mirrors the product .uselist
   style so any page can use it (AM comparison, product pages…).
   ============================================================ */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--color-text); }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--color-light-purple-20) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f4a8b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ============================================================
   ARROW LINK — the standard non-button text link (DS component)
   Dark-purple, medium weight, "→" nudges on hover. Formalizes the
   pattern duplicated in .cmenu__more / .amprod__more / .ncard__more.
   ============================================================ */
.arrowlink { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: var(--fw-medium); color: var(--color-dark-purple); text-decoration: none; transition: color var(--dur-base) var(--ease-standard); }
.arrowlink:hover { color: var(--color-light-purple); }
.arrowlink .arrow { transition: transform var(--dur-base) var(--ease-standard); }
.arrowlink:hover .arrow { transform: translateX(3px); }

/* ============================================================
   FRAMED PHOTO — a block style on core/image, registered in
   visitech-core (inc/blocks.php). The mockup's .why-media /
   .inprod__media dressing for a rectangular photograph, kept
   visually identical to the split section's mediaFrame BY HAND
   (blocks/split/style.css is the twin — change both).
   The 4:3 crop is a default: core's own aspect-ratio control
   writes an inline style on the img and wins over it.
   ============================================================ */
.wp-block-image.is-style-framed {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Fills the height it is GIVEN — beside a taller column in a stretch-aligned
     core/columns row, the photo runs the full column, the mockup's own
     .why-media img { height: 100% }. Free-standing, the parent's height is
     auto, both percentages resolve to auto, and the img's aspect-ratio below
     takes over — so 4:3 is the free-standing shape, not a cage. */
  height: 100%;
}
.wp-block-image.is-style-framed img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* The caption over the photo's lower edge: white on a bottom-up ink gradient —
   the gradient is what keeps 13px white text readable over an unknown
   photograph, so the pair never separates. */
.wp-block-image.is-style-framed figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(0deg, color-mix(in srgb, var(--color-ink) 78%, transparent), transparent);
}
