/* ═══════════════════════════════════════════════════════════════════════════
 * signitur — BRAND FOUNDATION (eLink's faded orange — the owner's Figma values, exactly)
 *   button fill      linear  #FB8221 -> #FA962B, white label
 *   heading gradient linear  #F99D2E -> #FE6111  (clipped to text)
 *   bottom glow      angular #F99A2D / #FE6613, 4 stops, 60% opacity + blur
 *   small text       --orange-ink #F4761B
 *   type             42dot Sans, ExtraBold 800 for display, -2% tracking
 * Contrast note (owner's decision, Sep 5 evening): white on #FB8221 is 2.5:1 and
 * #F4761B on white is 2.8:1 — the Figma look was chosen over AA for these.
 * ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* brand */
  --o-btn-a: #FB8221;
  --o-btn-b: #FA962B;
  --o-head-a: #F99D2E;
  --o-head-b: #FE6111;
  --o-glow-a: #F99A2D;
  --o-glow-b: #FE6613;
  --grad-btn: linear-gradient(90deg, var(--o-btn-a) 0%, var(--o-btn-b) 100%);
  --grad-head: linear-gradient(90deg, var(--o-head-a) 0%, var(--o-head-b) 100%);
  --orange: #FB8221;
  --on-brand: #FFFFFF;            /* label on a brand fill (Figma: white) */
  --orange-ink: #F4761B;          /* the Figma orange for small text on white */

  /* neutrals */
  --ink: #0A0A0A;
  --ink-2: #6B7280;
  --ink-3: #9CA3AF;
  --field: #F4F4F5;
  --field-line: #ECECEE;
  --line: #E7E7EA;
  --white: #ffffff;

  /* shape */
  --r-field: 12px;
  --r-card: 16px;
  --r-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;

  --col: 392px;                   /* the form column width from Figma */
}

* { box-sizing: border-box; }

body.brand {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: '42dot Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── the display heading: two lines, second line carries the gradient ── */
.bhead {
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 0.82;              /* Figma: 50px type on 41px leading */
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 22px;
}
.bhead .g {
  display: block;
  background: var(--grad-head);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: .08em;          /* descender clearance for the gradient clip */
}

/* ── auth layout ── */
.auth-page {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(56px, 15vh, 180px) 20px 0;
  position: relative; z-index: 1;
}
.auth-col { width: 100%; max-width: var(--col); }

/* ── fields ── */
.bfield {
  width: 100%; height: 52px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: var(--r-field);
  padding: 0 16px;
  font: 600 14px/1 '42dot Sans', system-ui, sans-serif;
  color: var(--ink);
  margin-bottom: 12px;
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease, background var(--dur-ui) ease;
}
.bfield::placeholder { color: var(--ink); opacity: 1; font-weight: 600; }
.bfield:focus {
  outline: none; background: #fff;
  border-color: var(--orange-ink, #F4761B);
  box-shadow: 0 0 0 3px rgba(251, 130, 33, .16);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── divider ── */
.bdiv {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 12px; color: var(--ink); font-weight: 700; font-size: 12.5px;
}
.bdiv::before, .bdiv::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── buttons ── */
.bbtn {
  width: 100%; min-height: 52px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; border: 0; border-radius: var(--r-pill);
  font: 600 16px/1.1 '42dot Sans', system-ui, sans-serif;
  cursor: pointer; text-decoration: none;
  transition: transform var(--dur-press) var(--ease-out), filter var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.bbtn-primary {
  background: var(--grad-btn); color: var(--on-brand, #FFFFFF);
  box-shadow: 0 6px 18px rgba(251, 130, 33, .30);
}
.bbtn-primary small { font-size: 11px; font-weight: 500; opacity: .95; }
.bbtn-ghost {
  background: var(--field); border: 1px solid var(--field-line);
  color: var(--ink); font-weight: 600; flex-direction: row; gap: 10px;
  border-radius: var(--r-field); margin-bottom: 12px;
}
.bbtn:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .bbtn-primary:hover { filter: brightness(1.04); box-shadow: 0 8px 22px rgba(251, 130, 33,.38); }
  .bbtn-ghost:hover { background: #EFEFF1; }
}

/* ── small link line ── */
.bnote {
  text-align: center; margin-top: 10px;
  font-size: 11.5px; color: var(--orange-ink);
}
.bnote a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 2px; }
.bnote-quiet { color: var(--ink-2); }

/* ── the bottom glow: an angular gradient ellipse, blurred, as in Figma ── */
.glow {
  position: fixed; left: 46%; bottom: -18vh; z-index: 0;
  width: 190vw; height: 52vh; transform: translateX(-50%);
  pointer-events: none; opacity: .52;
  border-radius: 50%;
  filter: blur(120px);
  /* Figma: angular fill, 4 stops, the warm half facing up into the page */
  background: conic-gradient(from 210deg at 50% 50%,
    var(--o-glow-a) 0%,
    var(--o-glow-a) 18%,
    var(--o-glow-b) 30%,
    rgba(251, 130, 33, 0) 68%,
    rgba(250, 150, 43, 0) 82%,
    var(--o-glow-a) 100%);
}
/* a second, softer pass keeps the band warm all the way across rather than
   letting the angular sweep leave one side pale */
.glow::after {
  content: ''; position: absolute; inset: 8% 0 0;
  border-radius: 50%;
  background: radial-gradient(70% 100% at 50% 62%, rgba(251, 130, 33,.34), rgba(251, 130, 33,0) 74%);
}
@media (prefers-reduced-motion: reduce) { .glow { filter: blur(80px); } }

/* ── the animated signature card (sign-up hero) ── */
.sig-hero { display: flex; justify-content: center; margin: 0 0 12px; }
.sig-tilt { transform-style: preserve-3d; will-change: transform; }
.sig-card-b {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 12px 12px 12px 14px; box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  display: flex; align-items: center; gap: 12px;
}
.sig-rail-b { display: flex; flex-direction: column; gap: 7px; padding-right: 12px; border-right: 1px solid #EFEFF1; }
.sig-rail-b img { display: block; width: 11px; height: 11px; }
.sig-body-b { min-width: 150px; }
.sig-logo-b { display: flex; align-items: center; margin-bottom: 8px; min-height: 21px; }
/* 21px, up from 17. The lockup is 4.7:1, so every pixel of height buys ~4.7px
   of wordmark width. Below ~20px the thin "signature" weight stops resolving. */
.lg-video {
  height: 21px; width: auto; display: block;
  object-fit: contain; background: transparent;
  pointer-events: none;                 /* the card owns the tilt, not the video */
}
.sig-name-b { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.sig-role-b { font-size: 9.5px; color: var(--ink-2); }
.sig-co-b { font-size: 10.5px; font-weight: 700; margin-top: 6px; }
.sig-line-b { font-size: 9.5px; color: #3F3F46; }
.sig-photo-b { width: 86px; height: auto; display: block; border-radius: 6px; flex: 0 0 auto; }
.sig-cap { text-align: center; color: var(--ink-2); font-size: 12.5px; margin: 0 0 20px; }

@media (max-width: 460px) {
  .sig-body-b { min-width: 0; }
  .sig-photo-b { width: 70px; }
}
