/* ==========================================================================
   Ripper.bot — Site-level additions (footer, docs pages, noscript, fixes)
   Scoped so app.css stays untouched.
   ========================================================================== */

/* ---------- Supplied cinematic backdrop ----------
   Project-bound bitmap variants live in public/img/scene-assets. The image is
   the page's physical set now, so the older generated planet is suppressed
   below and the star layer is kept as a faint live accent. */

.app-shell {
  min-height: 100svh;
  background: var(--bg);
}

.app-shell::before {
  opacity: 1;
  mix-blend-mode: normal;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 40%, rgba(5, 5, 5, 0.04) 0%, rgba(5, 5, 5, 0.22) 42%, rgba(5, 5, 5, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.03) 0%, rgba(5, 5, 5, 0) 36%, rgba(5, 5, 5, 0.14) 68%, rgba(5, 5, 5, 0.56) 100%),
    url("/img/scene-assets/ripper-scene-1280.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  filter: brightness(1.12) saturate(1.08) contrast(1.03);
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 58%;
  will-change: opacity, transform;
  animation: sceneBackdropReveal 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@supports (background-image: image-set(url("/img/scene-assets/ripper-scene-960.avif") type("image/avif") 1x)) {
  .app-shell::before {
    background-image:
      radial-gradient(circle at 50% 40%, rgba(5, 5, 5, 0.04) 0%, rgba(5, 5, 5, 0.22) 42%, rgba(5, 5, 5, 0.5) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.03) 0%, rgba(5, 5, 5, 0) 36%, rgba(5, 5, 5, 0.14) 68%, rgba(5, 5, 5, 0.56) 100%),
      image-set(
        url("/img/scene-assets/ripper-scene-960.avif") type("image/avif") 1x,
        url("/img/scene-assets/ripper-scene-1672.avif") type("image/avif") 2x,
        url("/img/scene-assets/ripper-scene-960.webp") type("image/webp") 1x,
        url("/img/scene-assets/ripper-scene-1672.webp") type("image/webp") 2x,
        url("/img/scene-assets/ripper-scene-960.jpg") type("image/jpeg") 1x,
        url("/img/scene-assets/ripper-scene-1672.jpg") type("image/jpeg") 2x
      );
  }
}

.app-shell::after {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.04), transparent 16%, rgba(5, 5, 5, 0.02) 58%, rgba(5, 5, 5, 0.5));
  opacity: 1;
}

@keyframes sceneBackdropReveal {
  0% {
    opacity: 0.18;
    transform: translate3d(0, 18px, 0) scale(1.045);
  }
  54% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.starfield {
  opacity: 0.2;
  mix-blend-mode: screen;
}

.ambient-lights {
  opacity: 0.42;
}

.ambient-lights__glow--left {
  background: #8f5525;
}

/* Account is an operational QA/work surface. Keep it visually on-brand, but
   avoid the animated/starred cinematic layer that can make Chrome sluggish
   during long test sessions with Gmail + CRM open. */
html[data-page="account"] .app-shell::before {
  background-image:
    radial-gradient(circle at 50% 32%, rgba(215, 188, 124, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.98));
  filter: none;
  transform: none;
  will-change: auto;
  animation: none;
}

html[data-page="account"] .app-shell::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%, rgba(255, 255, 255, 0.015));
  opacity: 1;
}

html[data-page="account"] .starfield,
html[data-page="account"] .ambient-lights,
html[data-page="account"] .planet-horizon {
  display: none;
}

html[data-page="account"],
html[data-page="account"] body {
  min-height: 100%;
  overflow: hidden;
}

html[data-page="account"] .app-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-padding-block: 24px;
}

.planet-horizon {
  visibility: hidden;
  opacity: 0;
}

.planet-horizon,
.planet-horizon * {
  animation: none;
}

@media (max-width: 700px) {
  .app-shell::before {
    background-image:
      radial-gradient(circle at 50% 36%, rgba(5, 5, 5, 0.04) 0%, rgba(5, 5, 5, 0.18) 44%, rgba(5, 5, 5, 0.44) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.02) 0%, rgba(5, 5, 5, 0) 42%, rgba(5, 5, 5, 0.14) 74%, rgba(5, 5, 5, 0.58) 100%),
      url("/img/scene-assets/ripper-scene-mobile-600.jpg");
    background-position: center, center, center 48%;
  }
}

@supports (background-image: image-set(url("/img/scene-assets/ripper-scene-mobile-600.avif") type("image/avif") 1x)) {
  @media (max-width: 700px) {
    .app-shell::before {
      background-image:
        radial-gradient(circle at 50% 36%, rgba(5, 5, 5, 0.04) 0%, rgba(5, 5, 5, 0.18) 44%, rgba(5, 5, 5, 0.44) 100%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.02) 0%, rgba(5, 5, 5, 0) 42%, rgba(5, 5, 5, 0.14) 74%, rgba(5, 5, 5, 0.58) 100%),
        image-set(
          url("/img/scene-assets/ripper-scene-mobile-600.avif") type("image/avif") 1x,
          url("/img/scene-assets/ripper-scene-mobile-900.avif") type("image/avif") 2x,
          url("/img/scene-assets/ripper-scene-mobile-600.webp") type("image/webp") 1x,
          url("/img/scene-assets/ripper-scene-mobile-900.webp") type("image/webp") 2x,
          url("/img/scene-assets/ripper-scene-mobile-600.jpg") type("image/jpeg") 1x,
          url("/img/scene-assets/ripper-scene-mobile-900.jpg") type("image/jpeg") 2x
        );
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell::before {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .starfield {
    opacity: 0.12;
  }
}

/* ---------- Hero input — cursor-following glass shine ----------
   The input itself keeps its glass treatment (app.css). We wrap it in a
   span that hosts a single absolutely-positioned shine layer. JS updates
   two CSS custom properties (--mx / --my) on pointermove, so the radial
   highlight tracks the cursor without re-layout. `pointer-events: none`
   keeps the input fully interactive underneath. `mix-blend-mode: screen`
   means the gradient only adds light — never darkens the placeholder or
   typed text. A third custom property (--shine-alpha) drives the fade
   in/out on enter/leave so the glow feels like a held breath rather
   than a hard toggle. */

.hero__input-wrap {
  position: relative;
  display: block;
  border-radius: 22px;
  isolation: isolate;
  min-width: 0;
  --mx: 50%;
  --my: 50%;
  --shine-alpha: 0;
}

.hero__input-wrap .hero__input {
  position: relative;
  z-index: 1;
}

.hero__input-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: calc(var(--shine-alpha) * 0.55);
  mix-blend-mode: screen;
  transition: opacity 320ms ease;
  background:
    radial-gradient(
      200px circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 236, 204, 0.11) 28%,
      rgba(230, 185, 92, 0.05) 54%,
      rgba(230, 185, 92, 0) 72%
    );
}

/* A soft outer bloom that matches the inner shine — separate layer so it
   can sit BEHIND the input and reach past its edges. Uses a blurred
   radial highlight + screen blend so it reads as a "heat signature"
   around the hovered spot, not a hard halo. */
.hero__input-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: 0;
  pointer-events: none;
  border-radius: 28px;
  opacity: calc(var(--shine-alpha) * 0.45);
  filter: blur(14px);
  mix-blend-mode: screen;
  transition: opacity 380ms ease;
  background: radial-gradient(
    220px circle at var(--mx) var(--my),
    rgba(255, 236, 204, 0.18) 0%,
    rgba(215, 188, 124, 0.09) 40%,
    rgba(230, 185, 92, 0) 74%
  );
}

@media (prefers-reduced-motion: reduce) {
  .hero__input-shine,
  .hero__input-wrap::after {
    transition: none;
  }
}

/* ---------- Primary button ---------- */

.primary-btn {
  gap: 12px;
  min-width: 12.5rem;
  padding: 15px 30px 14px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: 0;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.14),
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 4px 14px rgba(0, 0, 0, 0.12);
}

.primary-btn:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 16px 38px rgba(0, 0, 0, 0.38),
    0 6px 18px rgba(0, 0, 0, 0.16);
}

.primary-btn__icon,
.primary-btn > svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transform: translateY(1px);
  opacity: 0.78;
}

.primary-btn[data-intent="credits"] {
  width: min(100%, 18.5rem);
  min-width: 0;
  gap: 16px;
  padding: 14px 24px 13px 28px;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(151, 59, 59, 0.16),
    0 16px 38px rgba(0, 0, 0, 0.36),
    0 0 36px rgba(215, 188, 124, 0.08);
}

.primary-btn[data-intent="credits"] > span:first-child {
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
  line-height: 1;
}

.primary-btn__kicker,
.primary-btn__main {
  display: block;
  white-space: nowrap;
}

.primary-btn__kicker {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(132, 24, 24, 0.78);
}

.primary-btn__main {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: #111111;
}

.primary-btn[data-intent="credits"] .primary-btn__icon {
  width: 18px;
  height: 18px;
  opacity: 0.68;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .primary-btn {
    font-size: 1.1rem;
    padding: 13px 24px 12px;
    gap: 10px;
    letter-spacing: 0;
  }
  .primary-btn__icon,
  .primary-btn > svg {
    width: 14px;
    height: 14px;
  }

  .primary-btn[data-intent="credits"] {
    width: min(100%, 17.25rem);
    padding: 13px 20px 12px 22px;
    gap: 14px;
  }

  .primary-btn__main {
    font-size: 1.16rem;
  }

  .primary-btn__kicker {
    font-size: 0.62rem;
  }
}

/* ---------- Planet horizon clip fix ----------
   app.css defines `.planet-horizon { height: 25vh; overflow: hidden }`. Its
   `__rays` child is 48vh tall, so the rays' soft-fade top edge gets clipped
   at the planet-horizon box's top edge — a visible horizontal seam cuts
   across the page ~25vh from the bottom.

   Fix: stop the hard clip. The rays element already fades to transparent
   via its own `radial-gradient` + `filter: blur(18px)`, and `.app-shell`
   still has `overflow: hidden` so nothing spills outside the viewport.

   We keep `.planet-horizon` at 25vh (the `__disc` child positions relative
   to it and relies on that height), and simply let its content blur out
   naturally above via an alpha mask. */
.planet-horizon {
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 22%, rgba(0, 0, 0, 0.75) 45%, #000 68%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 22%, rgba(0, 0, 0, 0.75) 45%, #000 68%, #000 100%);
}

/* The `.planet-horizon__rays` element also needs its top edge masked off —
   the gradient stops at 48vh reach transparent but the element box itself
   has a hard top-edge that becomes visible once the parent stops clipping.
   A gentle mask keeps the soft-glow shape intact. */
.planet-horizon__rays {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 35%, #000 75%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 35%, #000 75%);
}

/* ==========================================================================
   Lead modal — custom components for the "your rip is ready, send it to
   your inbox" flow. Sits on top of .modal__* from app.css.
   ========================================================================== */

/* Wider, more generous panel with a subtle gold wash at the top. */
#leadModal .modal__panel {
  width: min(100%, 30rem);
  border-color: rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(120% 60% at 50% -20%, rgba(215, 188, 124, 0.10), transparent 55%),
    linear-gradient(180deg, #0d0d10 0%, #08080b 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(215, 188, 124, 0.04);
}

#leadModal .modal__body {
  padding: 36px 32px 32px;
}

/* Close button — tighten, align with panel padding */
#leadModal .modal__close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

/* --- Title --- */

.lead-modal__title {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: #ffffff;
}

/* --- Google button (variant for inside the modal) --- */
.lead-modal__google {
  margin: 0 0 12px;
}

/* Home loads without auth.css for first-paint performance, so the one auth
   control inside the lead modal keeps its required outlined treatment here. */
#leadModal .auth-form__google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
}

#leadModal .auth-form__google:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

#leadModal .auth-form__google:focus-visible {
  outline: 2px solid rgba(215, 188, 124, 0.6);
  outline-offset: 3px;
}

#leadModal .auth-form__google-glyph {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* --- "or" divider between Google and email/password --- */
.lead-modal__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lead-modal__divider::before,
.lead-modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* --- Copy --- */

.lead-modal__copy {
  margin: 0 0 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- Email input field with icon prefix --- */

.lead-modal__field {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

.lead-modal__field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
  transition: color 160ms ease;
}

.lead-modal__field:focus-within .lead-modal__field-icon {
  color: rgba(255, 255, 255, 0.78);
}

.lead-modal__input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0d;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  transition: border-color 160ms ease, background 160ms ease;
}

.lead-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.lead-modal__input:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.lead-modal__input:focus {
  border-color: rgba(215, 188, 124, 0.32);
  background: #0c0c10;
  box-shadow:
    0 0 0 3px rgba(215, 188, 124, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  outline: none;
}

.lead-modal__input[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.55);
}

/* --- Hint copy below the email field --- */

.lead-modal__hint {
  margin: 10px 2px 0;
  /* 0.5 lifts contrast above the WCAG AA threshold for 12px on #050505
     (was 0.4, which sat right at the boundary). */
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* --- Submit button inside the modal --- */

#leadModal .modal__submit.lead-modal__submit {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
  padding: 15px 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  color: #111111;
  background:
    linear-gradient(180deg, #ffffff 0%, #ededf0 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.12);
  gap: 8px;
}

#leadModal .modal__submit.lead-modal__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.38),
    0 6px 16px rgba(0, 0, 0, 0.16);
}

.lead-modal__submit-icon {
  flex: 0 0 auto;
  transform: translateX(-1px) rotate(-12deg);
}

/* --- Fineprint --- */

.lead-modal__fineprint {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.lead-modal__fineprint a {
  color: rgba(255, 255, 255, 0.52);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease;
}

.lead-modal__fineprint a:hover {
  color: #ffffff;
}

/* --- Success state (after email capture) --- */

.lead-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 18px 8px 12px;
}

.lead-modal__success-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(215, 188, 124, 0.16), transparent 65%),
    #101015;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(215, 188, 124, 0.14);
  color: rgba(255, 255, 255, 0.86);
  animation: lead-modal-badge-in 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lead-modal__envelope {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.lead-modal__success-tick {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e7c886, #b99152);
  color: #111111;
  border: 3px solid #08080b;
  box-shadow: 0 4px 16px rgba(215, 188, 124, 0.5);
  animation: lead-modal-tick-in 540ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lead-modal-badge-in {
  from { opacity: 0; transform: translateY(6px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lead-modal-tick-in {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal__success-badge,
  .lead-modal__success-tick {
    animation: none;
  }
}

.lead-modal__success-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: #ffffff;
}

.lead-modal__success-copy {
  margin: 0;
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* User's email rendered inline in the success copy — kept on plain white at
   weight 500. Earlier gold tint was visually competing with the gold tick
   on the envelope badge above and pushing total gold occurrences past the
   "3-times" rule (design.md §2). */
.lead-modal__success-email {
  color: #ffffff;
  font-weight: 500;
  /* Let pathologically long emails wrap, but only when the address would
     otherwise overflow the modal column. `word-break: break-all` was breaking
     normal-length addresses in the middle of the TLD ("matt@mediaglobe.i \n
     o") because the engine was using break-all opportunistically rather than
     as a fallback. `overflow-wrap: anywhere` breaks only when nothing else
     fits, which is what the design intent actually needs. */
  overflow-wrap: anywhere;
}

.lead-modal__success-hint {
  margin-top: 10px;
  text-align: center;
  max-width: 26rem;
}

/* --- Mobile: slide-up drawer --- */

@media (max-width: 640px) {
  /* Pin modal to the bottom of the viewport; panel becomes a full-width
     drawer that slides up. */
  #leadModal.modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  #leadModal .modal__panel {
    width: 100%;
    max-width: 100%;
    /* The modal hosts the magic-link form (Google + 1 email input + submit
       + fineprint) plus the capture preview. With the iOS keyboard up, the
       drawer can run out of room — let it scroll within the visual viewport
       instead of clipping the submit button under the keyboard. dvh tracks
       the dynamic viewport height (Safari 15+, Chrome 108+); fallback to
       100vh on older. The 32px subtraction keeps the rounded top corners +
       drag handle visible on phones with no chrome (e.g. PWA fullscreen). */
    max-height: 100vh;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px 22px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-top: 18px;
    animation: lead-drawer-up 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  /* Drag handle at the top edge */
  #leadModal .modal__panel::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
  }

  #leadModal .modal__body {
    padding: 20px 20px max(28px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  }

  #leadModal .modal__close {
    top: 8px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .lead-modal__title,
  .lead-modal__success-title {
    font-size: 1.38rem;
    letter-spacing: -0.012em;
  }

  .lead-modal__copy {
    font-size: 0.875rem;
    margin-bottom: 14px;
  }

  .lead-modal__input {
    font-size: 16px; /* iOS: prevent input zoom */
    padding: 14px 14px 14px 42px;
  }

  .lead-modal__field-icon {
    left: 14px;
  }

  #leadModal .modal__submit.lead-modal__submit {
    padding: 16px 20px;
    font-size: 1.1rem;
    letter-spacing: 0;
  }

  .lead-modal__success {
    padding: 10px 4px 6px;
    gap: 14px;
  }

  .lead-modal__success-badge {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  .lead-modal__success-badge svg.lead-modal__envelope {
    width: 54px;
    height: 54px;
  }

  .lead-modal__success-tick {
    width: 28px;
    height: 28px;
  }

  .lead-modal__fineprint {
    margin-top: 14px;
  }
}

@media (max-height: 560px) {
  #leadModal.modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  #leadModal .modal__panel {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px 22px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-top: 18px;
    animation: lead-drawer-up 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  #leadModal .modal__panel::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
  }

  #leadModal .modal__body {
    padding: 18px 20px max(24px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  }

  #leadModal .modal__close {
    top: 8px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
}

@keyframes lead-drawer-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #leadModal .modal__panel { animation: none; }
}

/* ---------- Hero responsive tuning ---------- */

@media (max-width: 640px) {
  .app-shell {
    padding: 14px;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 96px; /* breathing room above floating footer */
  }

  .hero__badge {
    margin-bottom: 22px;
  }

  .hero__title {
    --hero-title-letter-spacing: 0;
    max-width: calc(100vw - 28px);
    font-size: 3rem;
    line-height: 0.88;
    letter-spacing: var(--hero-title-letter-spacing);
  }

  .hero__brand-lockup {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    text-align: center;
    white-space: normal;
  }

  .hero__brand-symbol {
    width: clamp(5.4rem, 27vw, 7rem);
    transform: none;
    filter:
      drop-shadow(0 12px 24px rgba(0, 0, 0, 0.48))
      drop-shadow(0 0 12px rgba(215, 188, 124, 0.14));
  }

  .hero__subtitle {
    width: 100%;
    max-width: min(22.5rem, calc(100vw - 28px));
    margin-bottom: 22px;
    padding-inline: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: break-word;
  }

  .hero__form {
    width: 100%;
    max-width: min(23rem, calc(100vw - 28px));
    min-width: 0;
    margin-bottom: 18px;
  }

  .hero__actions {
    width: 100%;
    max-width: min(18rem, calc(100vw - 28px));
    min-width: 0;
  }

  .hero__input {
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 16px; /* iOS: no zoom */
  }

  .primary-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 22px;
    font-size: 1.1rem;
    letter-spacing: 0;
    border-radius: 12px;
  }
}

@media (max-width: 390px) {
  .hero__title {
    font-size: clamp(2rem, 10vw, 2.2rem);
  }

  .hero__brand-symbol {
    width: clamp(4.8rem, 25vw, 5.7rem);
  }

  .hero__brand-lockup {
    gap: 0.3rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .primary-btn {
    font-size: 1.1rem;
    letter-spacing: 0;
    padding: 13px 20px;
  }

  .hero__input {
    padding: 14px 16px;
  }

  .badge {
    font-size: 0.66rem;
    padding: 7px 11px;
  }
}

/* ---------- Site header (top-right cluster on home + auth + legal pages)
   ----------
   Lives in site.css (loaded on every page) rather than auth.css (loaded
   only on /login, /signup, /account) so the header on / and the legal
   pages renders with the same chrome and doesn't fall back to default
   block layout — which would consume flex-row space in .app-shell and
   push the hero off-center. */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    max(18px, calc(env(safe-area-inset-top, 0px) + 12px))
    max(22px, calc(env(safe-area-inset-right, 0px) + 16px))
    18px
    max(22px, calc(env(safe-area-inset-left, 0px) + 16px));
  pointer-events: none;
}

.site-header__brand {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 2px;
  margin: -8px -2px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-header__brand:hover {
  color: #ffffff;
}

.site-header__brand-dot {
  color: var(--accent-gold);
}

.site-header__nav {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

html[data-page="home"] .site-header {
  justify-content: flex-end;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  transition: color 160ms ease, background 160ms ease;
  cursor: pointer;
}

.site-header__link:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.site-header__button:disabled {
  cursor: progress;
  opacity: 0.58;
}

.site-header__email {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.005em;
}

@media (max-width: 640px) {
  .site-header {
    padding:
      max(14px, calc(env(safe-area-inset-top, 0px) + 8px))
      max(16px, calc(env(safe-area-inset-right, 0px) + 10px))
      14px
      max(16px, calc(env(safe-area-inset-left, 0px) + 10px));
  }
  .site-header__brand {
    font-size: 1.1rem;
  }
  .site-header__email {
    display: none;
  }
}

@media (max-width: 360px) {
  html[data-page="home"] .site-header {
    display: none;
  }
}

/* "Account" link is rendered as a static <span> on /account itself
   (see site-header.js's accountLinkHtml + account.js's paintHeaderFromUser).
   Same vertical rhythm as the live link, but no hover affordance — tells
   the user "you are here." */
.site-header__link--current {
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
}

.site-header__link--current:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
}

/* The header has display:none until JS sets data-state, so a half-rendered
   "Sign in" doesn't flicker into view on every page load before /api/auth/me
   resolves. */
.site-header[data-state="loading"] .site-header__nav { visibility: hidden; }

/* ---------- Site footer (shared across home + legal pages) ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin-inline: auto;
  padding: 20px 24px 28px;
  display: grid;
  gap: 10px;
  text-align: center;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

/* On the home page only — float the footer at the bottom of the 100vh shell
   so it doesn't disturb the hero's vertical centering. */
.site-footer--floating {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-block: 16px max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
}

.site-footer__links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.75rem;
  line-height: 1;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
  margin-block: -14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 160ms ease;
}

noscript p {
  padding-bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 12px));
}

.site-footer__links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__bottom {
  margin: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.site-footer__dot {
  opacity: 0.5;
}

/* ---------- Noscript banner ---------- */

.noscript {
  position: fixed;
  inset: auto 0 0 0;
  padding: 14px 20px;
  margin: 0;
  text-align: center;
  background: rgba(8, 8, 12, 0.94);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}

/* ---------- Docs (legal) pages: shared article layout ---------- */

.doc {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(72px, 10vh, 128px) 24px 96px;
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 6px;
  margin-inline: -6px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.doc__back:hover {
  color: #ffffff;
}

.doc__back::before {
  content: "←";
  display: inline-block;
  transform: translateY(-1px);
}

.doc__eyebrow {
  margin: 0 0 12px;
  color: var(--accent-gold-soft);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.doc__lede {
  margin: 0 0 48px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.doc__body {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

.doc__body h2 {
  margin: 56px 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.doc__body h3 {
  margin: 32px 0 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  color: #ffffff;
}

.doc__body p {
  margin: 0 0 18px;
}

.doc__body ul {
  margin: 0 0 20px;
  padding-left: 22px;
  list-style: disc outside;
}

.doc__body li {
  margin-bottom: 8px;
}

.doc__body a {
  color: var(--accent-gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease;
}

.doc__body a:hover {
  color: var(--accent-gold);
  text-decoration-thickness: 2px;
}

.doc__body strong {
  color: #ffffff;
  font-weight: 500;
}

.doc__body code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  color: #ffffff;
}

.doc__note {
  margin-top: 48px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* Docs-page layout: static-flow body (not the flex-centered app-shell).
   The decorative layers (starfield/ambient/horizon) still render underneath.
   Triggers on any of: body.is-doc-page, .app-shell--doc, or an .app-shell
   that contains a .doc element. */

body.is-doc-page .app-shell,
.app-shell--doc,
.app-shell:has(.doc) {
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0;
  align-items: initial;
  justify-content: initial;
}

body.is-doc-page,
body:has(.app-shell--doc),
body:has(.doc) {
  min-height: 100vh;
}

@media (max-width: 640px) {
  .doc {
    padding-inline: 20px;
  }

  .doc__body h2 {
    font-size: 1.5rem;
    margin-top: 44px;
  }

  .site-footer {
    padding: 18px 20px 24px;
  }

  .site-footer__bottom {
    gap: 6px;
    padding-inline: 6px;
  }

  .site-footer__bottom span:last-child {
    flex-basis: 100%;
  }

  .site-footer__links {
    gap: 14px;
  }
}

/* ==========================================================================
   Hero logo treatment — the wordmark participates in the same ordered reveal
   as the badge, copy, form, and CTA. The single shimmer still gives it a
   cinematic settling moment after the stack has landed.
   ========================================================================== */

.hero__title {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  justify-content: center;
}

/* Gold shimmer sweep — fires once 1.5s into the reveal, as the letters settle. */
.hero__title::after {
  content: "";
  position: absolute;
  inset: -2px 0;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 34%,
    rgba(235, 210, 150, 0.22) 46%,
    rgba(255, 244, 212, 0.55) 50%,
    rgba(235, 210, 150, 0.22) 54%,
    transparent 66%
  );
  mix-blend-mode: overlay;
  transform: translateX(-130%);
  opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  animation: heroTitleShimmer 2.4s cubic-bezier(0.4, 0, 0.2, 1) 1.5s both;
}

@keyframes heroTitleShimmer {
  0%   { transform: translateX(-130%); opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero__title::after {
    display: none;
  }
}

/* ==========================================================================
   Capture stage — live mShots thumbnail of the URL the user just submitted,
   with a single honest caption underneath. No fake telemetry — the thumbnail
   is the real signal.
   ========================================================================== */

.capture-stage {
  display: block;
  margin: 0 0 18px;
}

.capture-stage__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(215, 188, 124, 0.06), transparent 58%),
    linear-gradient(135deg, #12121a 0%, #0a0a12 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(215, 188, 124, 0.04);
  isolation: isolate;
}

.capture-stage__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.capture-stage__frame.is-loaded .capture-stage__thumb {
  opacity: 1;
  transform: scale(1);
}

/* Diagonal shimmer placeholder while the thumbnail is generating */
.capture-stage__placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 420ms ease 200ms;
}

.capture-stage__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(215, 188, 124, 0.035) 0 28px,
    transparent 28px 72px
  );
  animation: captureShimmer 2.2s linear infinite;
  will-change: transform;
}

.capture-stage__frame.is-loaded .capture-stage__placeholder {
  opacity: 0;
}

@keyframes captureShimmer {
  0%   { transform: translateX(-18%); }
  100% { transform: translateX(18%); }
}

/* Soft top-to-bottom darkening so the panel edge feels seated to the caption */
.capture-stage__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0) 60%, rgba(8, 8, 12, 0.28) 100%);
  pointer-events: none;
  z-index: 2;
}

/* When mShots fails, hide the broken img and let the panel + shimmer stand
   in. The caption below still names the host, so the modal stays honest. */
.capture-stage__frame.is-failed .capture-stage__thumb { display: none; }
.capture-stage__frame.is-failed .capture-stage__placeholder { opacity: 0.7; }

.capture-stage__caption {
  display: block;
  margin: 12px 2px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(215, 188, 124, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.capture-stage__caption strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

@media (max-width: 640px) {
  .capture-stage {
    margin-bottom: 14px;
  }
  .capture-stage__frame {
    /* Cap the thumbnail height so it doesn't push the email field below
       the fold once the iOS keyboard rises. The thumbnail is a cinematic
       touch — not a billboard. 16:7 + max-height keeps it scenic without
       eating the half of the modal where the input lives. */
    aspect-ratio: 16 / 7;
    max-height: 180px;
    border-radius: 12px;
  }
  .capture-stage__caption {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) and (max-height: 640px) {
  #leadModal .modal__panel {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 8px);
  }

  #leadModal .modal__body {
    padding: 16px 16px max(18px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  }

  .lead-modal__title {
    margin-bottom: 8px;
    font-size: 1.28rem;
  }

  .lead-modal__copy {
    margin-bottom: 10px;
  }

  .lead-modal__google {
    margin-bottom: 8px;
  }

  .lead-modal__divider {
    margin: 8px 0;
  }

  .capture-stage {
    margin-bottom: 10px;
  }

  .capture-stage__frame {
    aspect-ratio: 16 / 5;
    max-height: 112px;
  }

  .capture-stage__caption {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 0.73rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .capture-stage__placeholder,
  .capture-stage__placeholder::before {
    animation: none !important;
  }
  .capture-stage__thumb {
    transition: opacity 200ms linear;
  }
}

/* ==========================================================================
   Keyboard focus rings, brand-gold, matching the auth-page convention
   (auth.css `.auth-form__submit:focus-visible`). Lives at the end of
   site.css so it wins source order against any later `:focus { outline:
   none }` rule in this file (notably `.lead-modal__input:focus`). Mouse
   focus keeps the per-element box-shadow / border treatment; only
   keyboard focus surfaces the outline ring.
   ========================================================================== */
.hero__input:focus-visible,
.modal__input:focus-visible,
.lead-modal__input:focus-visible {
  outline: 2px solid rgba(215, 188, 124, 0.58);
  outline-offset: 2px;
}

.primary-btn:focus-visible {
  outline: 2px solid rgba(215, 188, 124, 0.7);
  outline-offset: 3px;
}

.modal__close:focus-visible {
  outline: 2px solid rgba(215, 188, 124, 0.6);
  outline-offset: 2px;
  color: #ffffff;
}

.site-footer__links a:focus-visible,
.site-header__link:focus-visible {
  outline: 2px solid rgba(215, 188, 124, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

.out-of-credits__cta:focus-visible {
  outline: 2px solid rgba(215, 188, 124, 0.7);
  outline-offset: 3px;
}

/* Inline links (legal pages, modal fineprint, doc back) match the same
   brand-gold ring rather than the browser default blue auto outline. */
.lead-modal__fineprint a:focus-visible,
.doc__body a:focus-visible,
.doc__back:focus-visible,
.site-header__brand:focus-visible {
  outline: 2px solid rgba(215, 188, 124, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}
