/* ──────────────────────────────────────────────────────────────────────────
   Orange call-to-action buttons — the whole funnel.

   Linked from the front end and all twelve OTO pages. It stays a separate
   stylesheet rather than an edit to v2.css so the green palette underneath is
   left intact and this can be pulled from any single page by deleting one
   <link> line.

   The front end and the OTO pages use different button classes for the same
   job: the FE has .btn--hero and .vvcta__btn, the OTO pages have .btn--xl
   (size only, worn together with .btn--green) and .obar__buy in the sticky
   bar. Both sets are covered below.

   Three things the brief asked for: the fill is orange, the label is bold and
   white, and the border glows.

   On the white: the orange is dark enough to carry it. White on #C2470A is
   5.0:1 and on the gradient's midpoint #D14F08 it is 4.35:1 — above the 4.5
   bar for the small button, which is why the small one is flat and deeper,
   and comfortably above the 3.0 bar that bold text at 17px and up needs on
   the large ones.

   NOT repainted, on purpose:
     .scard__btn  — the "Buy now" inside the store mock-up. That illustration
                    sits in aria-hidden artwork and shows the BUYER's own shop,
                    not our checkout; making it orange would read as one of our
                    CTAs and tell the visitor to click a picture.
     .mkt__buy    — a <span> of descriptive text, despite the name.
     .iconbtn     — the theme toggle, a control rather than a call to action.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --or-bright: #ff9a4d;
  --or: #e8600c;
  --or-solid: #c2470a;
  --or-grad: linear-gradient(145deg, #f2731a 0%, #d14f08 48%, #a93b05 100%);
  --or-ring: rgba(255, 154, 77, 0.55);
  --or-haze: rgba(232, 96, 12, 0.5);
}

/* ── the large calls to action ─────────────────────────────────────────── */
.btn--hero,
.offer__btn,
.vvcta__btn {
  border: 2px solid var(--or-bright);
  background: var(--or-grad);
  color: #fff;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 20px var(--or-haze),
    0 0 44px rgba(232, 96, 12, 0.3),
    0 12px 30px rgba(84, 34, 4, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn--hero:hover,
.offer__btn:hover,
.vvcta__btn:hover {
  border-color: #ffb37a;
  filter: saturate(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 30px rgba(232, 96, 12, 0.68),
    0 0 66px rgba(232, 96, 12, 0.42),
    0 18px 40px rgba(84, 34, 4, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

/* The terms line riding inside the big button stays white, just lighter. */
.vvcta__btn span,
.offer__btn span {
  color: #fff;
  opacity: 0.92;
}

/* ── the small one in the nav ──────────────────────────────────────────── */
.btn--green {
  border: 2px solid var(--or-bright);
  background: var(--or-solid);
  color: #fff;
  font-weight: 800;
  box-shadow:
    0 0 16px var(--or-haze),
    0 0 32px rgba(232, 96, 12, 0.26);
}

.btn--green:hover {
  border-color: #ffb37a;
  background: #d14f08;
  box-shadow:
    0 0 24px rgba(232, 96, 12, 0.66),
    0 0 48px rgba(232, 96, 12, 0.36);
}

/* ── the secondary one ─────────────────────────────────────────────────────
   WATCH DEMO sits beside the main CTA. Filling it orange too would give the
   hero two buttons of equal weight and no answer to "which one first", so it
   keeps the glowing orange border and the bold white label and stays hollow. */
.btn--ghost {
  border: 2px solid var(--or-bright);
  color: #fff;
  font-weight: 800;
  box-shadow:
    0 0 16px rgba(232, 96, 12, 0.34),
    inset 0 0 22px rgba(232, 96, 12, 0.16);
}

.btn--ghost:hover {
  border-color: #ffb37a;
  box-shadow:
    0 0 26px rgba(232, 96, 12, 0.52),
    inset 0 0 26px rgba(232, 96, 12, 0.24);
}

.btn--ghost .play {
  border-color: var(--or-bright);
  color: #fff;
}

/* ── focus ────────────────────────────────────────────────────────────────
   The green outline was tuned to the green buttons; on orange it reads as a
   mistake rather than a focus ring. */
.btn--hero:focus-visible,
.btn--green:focus-visible,
.btn--ghost:focus-visible,
.offer__btn:focus-visible,
.vvcta__btn:focus-visible {
  outline: 3px solid var(--or-bright);
  outline-offset: 4px;
}

/* A light page needs a denser glow to show against it at all. */
:root[data-theme="light"] .btn--hero,
:root[data-theme="light"] .offer__btn,
:root[data-theme="light"] .vvcta__btn {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(232, 96, 12, 0.42),
    0 0 46px rgba(232, 96, 12, 0.26),
    0 12px 28px rgba(120, 52, 10, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

:root[data-theme="light"] .btn--ghost {
  color: #8a3404;
  border-color: var(--or);
  box-shadow:
    0 0 16px rgba(232, 96, 12, 0.26),
    inset 0 0 22px rgba(232, 96, 12, 0.1);
}

:root[data-theme="light"] .btn--ghost .play { border-color: var(--or); color: #8a3404; }

@media (prefers-reduced-motion: reduce) {
  .btn--hero,
  .btn--green,
  .btn--ghost,
  .offer__btn,
  .vvcta__btn { transition: none; }
}

/* ── the OTO pages ────────────────────────────────────────────────────────
   .btn--xl carries only padding and font-size and is worn with .btn--green,
   so the colour is already handled above; what it needs is a glow sized to a
   much bigger button. */
.btn--xl {
  box-shadow:
    0 0 24px var(--or-haze),
    0 0 52px rgba(232, 96, 12, 0.3),
    0 12px 30px rgba(84, 34, 4, 0.4);
}

.btn--xl:hover {
  box-shadow:
    0 0 34px rgba(232, 96, 12, 0.7),
    0 0 72px rgba(232, 96, 12, 0.42),
    0 18px 40px rgba(84, 34, 4, 0.48);
}

/* The buy button in the sticky bar. It was gold, which on an orange page now
   reads as a second brand colour rather than the same call twice. */
.obar__buy {
  border: 2px solid var(--or-bright);
  background: var(--or-grad);
  color: #fff;
  font-weight: 800;
  box-shadow:
    0 0 18px var(--or-haze),
    0 0 36px rgba(232, 96, 12, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.obar__buy:hover {
  border-color: #ffb37a;
  box-shadow:
    0 0 26px rgba(232, 96, 12, 0.6),
    0 0 52px rgba(232, 96, 12, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.obar__buy:focus-visible,
.btn--xl:focus-visible {
  outline: 3px solid var(--or-bright);
  outline-offset: 4px;
}

:root[data-theme="light"] .obar__buy { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .btn--xl, .obar__buy { transition: none; }
  .obar__buy:hover { transform: none; }
}
