/*
 * SimpleJob ad system on the website (2026-11-19): the same colours, lockup, type and buttons as the Meta
 * ads (blue panel, white lockup pill, caps eyebrow, 900-weight tight headline, orange accent line, mono
 * URL, orange button, faint SJ watermark). Loaded after tailwind.css on every page.
 */
:root {
  --sj-blue: #2563eb;
  --sj-orange: #f97316;
  --sj-orange-dark: #ea580c;
  --sj-dark: #111928;
  --sj-orange-bg: #ffedd5;
  --sj-blue-bg: #dbeafe;
  --sj-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sj-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
  font-family: var(--sj-sans);
}

/* ---------- Headings and primary buttons on every page ---------- */

h1.text-3xl,
h2.text-3xl,
h2.text-\[42px\] {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* Primary calls to action: orange fill, white 700, 12px radius (as in the ads) */
a.bg-secondary,
a.bg-primary.text-white:not(.back-to-top) {
  background-color: var(--sj-orange);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
}
@media (hover: hover) {
  a.bg-secondary:hover,
  a.bg-primary.text-white:not(.back-to-top):hover {
    background-color: var(--sj-orange-dark);
  }
}
/* Secondary (outline) plan buttons keep their look, with the same weight and radius */
a.border-stroke.text-primary {
  font-weight: 700;
  border-radius: 12px;
}

/* ---------- Hero ---------- */

.sj-hero {
  position: relative;
  overflow: hidden;
  background: var(--sj-blue);
  padding-top: 92px;
}
.sj-hero-watermark {
  position: absolute;
  left: -120px;
  top: -40px;
  width: 640px;
  height: 640px;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.sj-hero-split {
  position: relative;
}
.sj-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.sj-hero-copy {
  position: relative;
  padding: 8px 0 32px;
}

.sj-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sj-orange-bg);
  margin-bottom: 8px;
}
.sj-headline {
  font-size: 34px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #fff;
}
.sj-accent {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--sj-orange);
}
.sj-lede {
  margin-top: 10px;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.sj-ctas {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
}
.sj-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--sj-orange);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: background-color 0.2s ease-in-out;
}
.sj-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: background-color 0.2s ease-in-out;
}
@media (hover: hover) {
  .sj-btn-primary:hover { background: var(--sj-orange-dark); }
  .sj-btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
}
.sj-offer {
  display: block;
  margin-top: 8px;
  font-family: var(--sj-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sj-blue-bg);
}

/*
 * Behind the phone, on the hero's blue (shapes only, no raster; borrowed from the ads: SQ4's concentric rings
 * behind the device, SQ1's faint dot grid, the blueDark/blueLight brand tones): a soft light glow, faint rings,
 * a dot grid fading out, a rounded card in blueLight->blueDark at the phone's 6deg tilt offset behind it,
 * and one small orange arc.
 */
.sj-hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
  isolation: isolate;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(219, 234, 254, 0.38), rgba(59, 130, 246, 0.20) 55%, transparent 100%) center / 92% 78% no-repeat,
    radial-gradient(circle at 50% 50%, transparent 0 39.6%, rgba(255, 255, 255, 0.07) 39.8% 40.2%, transparent 40.4% 51.6%, rgba(255, 255, 255, 0.05) 51.8% 52.2%, transparent 52.4%) center / min(100%, 640px) auto no-repeat;
  background-size: 92% 78%, min(118%, 700px) min(118%, 700px);
}
/* Dot grid, fading towards the edges */
.sj-hero-phone::after {
  content: "";
  position: absolute;
  inset: 0 -10%;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.10) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}
.sj-phone-stage {
  position: relative;
  width: 360px;
  max-width: 85%;
}
/* The tilted card behind the device (the phone sits at about 49% / 46% of the image, 58% x 81% of it) */
.sj-phone-stage::before {
  content: "";
  position: absolute;
  left: 60%;
  top: 52%;
  width: 60%;
  height: 78%;
  transform: translate(-50%, -50%) rotate(6deg);
  border-radius: 13% / 8%;
  background: linear-gradient(160deg, #3b82f6 0%, #1e40af 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), 0 30px 60px -24px rgba(17, 25, 40, 0.55);
  z-index: 0;
}
/* One small orange accent: an arc at the card's top right */
.sj-phone-arc {
  position: absolute;
  right: 4%;
  top: 4%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: var(--sj-orange);
  border-right-color: var(--sj-orange);
  transform: rotate(12deg);
  z-index: 0;
  pointer-events: none;
}
.sj-hero-phone img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  /* The baked shadow was made for white; this deepens it with the dark ink so it reads on blue */
  filter: drop-shadow(0 18px 28px rgba(17, 25, 40, 0.28));
}

@media (min-width: 400px) {
  .sj-headline { font-size: 38px; }
  .sj-accent { font-size: 21px; }
  .sj-lede { font-size: 16px; }
  .sj-eyebrow { font-size: 13px; }
}

@media (min-width: 720px) {
  .sj-hero { padding-top: 112px; }
  .sj-eyebrow { font-size: 14px; margin-bottom: 14px; }
  .sj-headline { font-size: 56px; }
  .sj-accent { margin-top: 14px; font-size: 28px; }
  .sj-lede { margin-top: 18px; font-size: 18px; }
  .sj-ctas { margin-top: 28px; }
  .sj-offer { font-size: 13px; }
}

/* Desktop: the ads' split layout, copy on the left, the tilted phone on its backdrop at the right, all on blue */
@media (min-width: 960px) {
  .sj-hero { padding-top: 0; }
  .sj-hero-grid {
    grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
    align-items: center;
  }
  .sj-hero-copy { padding: 132px 48px 40px 0; }
  .sj-headline { font-size: 58px; }
  .sj-hero-phone { padding: 104px 0 0; }
  .sj-phone-stage { width: 400px; max-width: 100%; }
  .sj-hero-watermark { width: 820px; height: 820px; left: -160px; top: -120px; }
}
@media (min-width: 1140px) {
  .sj-headline { font-size: 66px; }
}


/* ---------- Header ----------
 * Top of the home page: solid brand blue, white logo text and links (the hero's blue continues under it).
 * Scrolled, and always on the other pages: solid white, dark logo text and links (17:1), the full-colour SJ
 * mark, a hairline and a soft shadow. Opaque in both states (no translucency or backdrop blur, so nothing
 * shows through), above every hero layer, and the same height in both states (no jump when it switches).
 */
.ud-header-hero:not(.sticky) {
  background: var(--sj-blue);
}
.ud-header.sticky {
  background-color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(17, 25, 40, 0.08), 0 8px 24px -12px rgba(17, 25, 40, 0.18);
  z-index: 9999;
}

/* Brand mark on the blue top bar: the SJ mark's blue strokes vanish on brand blue, so (as in the ads) it sits
 * in a white pill. The pill keeps the same box when the bar turns white on scroll (no jump), only its fill and
 * shadow go. */
.ud-header-hero .navbar-logo {
  margin-block: 14px;
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.ud-header-hero:not(.sticky) .navbar-logo {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 6px 18px rgba(15, 23, 42, 0.18);
}
.ud-header-hero:not(.sticky) .logo-text {
  color: var(--sj-dark);
}
.ud-header-hero.sticky .navbar-logo {
  padding-block: 6px;
}

/* The phone and the app screenshot under it are a pair (app on a phone, app on a desktop): a steady gap,
 * not the old 64px on top of the phone image's transparent margin */
#home .sj-hero-split + .container .mt-16 {
  margin-top: 16px;
}
@media (min-width: 960px) {
  #home .sj-hero-split + .container .mt-16 {
    margin-top: 8px;
  }
}

/* The menu button kept a focus ring after a tap (a box around the X); keyboard focus still shows it */
#navbarToggler:focus:not(:focus-visible) {
  box-shadow: none;
}
/* Back-to-top is brand blue: a white ring keeps it visible over the blue hero */
.back-to-top {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 8px 20px rgba(17, 25, 40, 0.25);
}

/* Footer link to the Facebook Page: light grey on the dark footer (11:1), 44px tap target */
.sj-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  color: #ced4da;
  font-weight: 600;
  text-decoration: none;
}
.sj-social-icon {
  flex: none;
}
@media (hover: hover) {
  .sj-social:hover { color: #fff; }
}
.sj-social:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Phones: the fixed back-to-top button sat on the copyright line at the bottom of the home page */
@media (max-width: 719px) {
  footer.pb-10 {
    padding-bottom: 96px;
  }
}

/* The brand pill is sized by its content like the ads' SJLockup: the header row could shrink the brand
 * column below the wordmark's width (the last letter hung outside the pill), so the column and the link
 * never shrink and the wordmark never wraps. */
.ud-header .max-w-full:has(> .navbar-logo) {
  flex: none;
}
.ud-header-hero .navbar-logo {
  display: inline-flex;
  width: max-content;
  min-width: max-content;
  flex: none;
  white-space: nowrap;
}
.ud-header-hero .navbar-logo img {
  flex: none;
}
