/* ==========================================================================
   06-BUTTONS.CSS  —  every button on the site, defined once
   --------------------------------------------------------------------------
   There are exactly two button styles, and they are shared by every section:

     .btn--primary    the orange gradient pill  (hero CTA, "Buy now")
     .btn--secondary  the outlined pill         ("Preview")

   If a future section needs a button, it uses one of these two. Never write
   another gradient button — change it here and it changes everywhere.
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-pill);

  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-cta);
  line-height: 1;
  text-align: center;

  transition:
    transform        var(--dur-base) var(--ease-out),
    box-shadow       var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    border-color     var(--dur-base) var(--ease-out),
    color            var(--dur-base) var(--ease-out);
}

/* A keyboard user must always be able to see which button they are on */
.btn:focus-visible {
  outline: 2px solid var(--orange-deep);
  outline-offset: 3px;
}


/* ==========================================================================
   PRIMARY — the orange gradient pill
   ========================================================================== */
.btn--primary {
  overflow: hidden;             /* keeps the light sweep inside the pill */
  isolation: isolate;

  padding: 18px 40px;
  min-height: var(--tap);

  color: var(--on-brand);
  background-image: var(--brand-gradient);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

/* The small echo of the hero wordmark's ribbon gloss — one pass, 600ms */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--gloss-cta);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  background-position: -150% 0;
  pointer-events: none;
}

.btn--primary:hover::after {
  animation: cta-glint 600ms var(--ease-soft) forwards;
}

@keyframes cta-glint {
  from { background-position: -150% 0; }
  to   { background-position:  250% 0; }
}

/* The arrow that nudges rightwards on hover (hero CTA only) */
.btn__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--dur-base) var(--ease-out);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}


/* ==========================================================================
   SECONDARY — the quiet outlined pill
   ========================================================================== */
.btn--secondary {
  padding: 14px 24px;
  min-height: var(--btn-h-card);

  color: var(--ink);
  background-color: transparent;
  border: 1px solid var(--hairline-strong);
}

.btn--secondary:hover {
  background-color: var(--ink-wash);
  border-color: var(--orange);
  color: var(--orange-deep);
}


/* ==========================================================================
   PENDING LINKS
   Any link still pointing at a "#TODO" placeholder gets a dashed orange
   outline and refuses to be clicked, so a forgotten URL is impossible to
   miss on the page. The outline disappears by itself the moment a real
   address is put into js/data/site-config.js.
   ========================================================================== */
.link--pending {
  outline: 2px dashed var(--orange);
  outline-offset: 2px;
  cursor: not-allowed;
}
