/* Job Request landing V2 (reels) — page-scoped overrides on top of job-request.css.
   Source: frontend-design/job-request-stitch/index-v2-reels.html (inline <style>).
   Adaptations: .jr2 is carried by the .jr-page wrapper (not <body>); designer's
   footer block dropped (layout footer is used); html/scroll rules live in job-request.css.

   This file is linked from the view body so it is parsed AFTER style.css, glass-nav.css
   and Bootstrap 4.5.3 — the neutralisers below rely on that order. */

/* ===== Host-page neutralisers =====
   The designer page has `* { margin:0; padding:0 }`, `line-height: normal` and its own tokens.
   In the app, Bootstrap's reboot (h1-h6/p/ul margins + line-height 1.2, img/svg vertical-align)
   and style.css's :root tokens (--primary0, --text-body) leak in. Everything here is kept at
   (0,0,1) via :where() so it beats Bootstrap only by source order and never outranks a class rule. */

/* Design tokens: job-request.css declares these on :root, style.css overrides two of them there. */
.jr-page.jr2 {
  --primary-2: #0024a6;
  --primary-1: #113dd9;
  --primary0: #2469ff;
  --primary4: #ebf1ff;

  --text-header: #0d0e0f;
  --text-body: #111827;
  --text-muted: rgba(17, 24, 39, 0.64);

  --bg: #f6f8fb;
  --bg-soft: #f6f8fb;

  --border: #e6edf6;
  --shadow: 0px 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-strong: 0px 12px 26px rgba(0, 36, 166, 0.14);

  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;

  color: var(--text-body);
  line-height: normal;
}

:where(.jr-page.jr2) :is(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  line-height: normal;
}
:where(.jr-page.jr2) :is(p, ul, ol, figure, blockquote) {
  margin: 0;
  padding: 0;
}
:where(.jr-page.jr2) :is(img, svg) {
  vertical-align: baseline;
}
:where(.jr-page.jr2) a:hover,
:where(.jr-page.jr2) a:focus {
  text-decoration: none;
}
/* Bootstrap paints a:hover blue at (0,1,1); re-assert the outline button's colour. */
.jr-page.jr2 a.jr-btn--outline:hover,
.jr-page.jr2 a.jr-btn--outline:focus {
  color: var(--text-header);
}
/* Bootstrap forces a focus ring on mouse click; the design only shows :focus-visible rings. */
:where(.jr-page.jr2) button:focus:not(:focus-visible) {
  outline: none;
}

/* Font metrics: the designer's @font-face set carries ascent/descent overrides that change every
   `line-height: normal` box. Same OTF files as glass-nav.css, registered under a private family. */
@font-face { font-family: "gordita-jr2"; src: url("/new-design/fonts/Gordita-Light.otf") format("opentype");   font-weight: 300; font-style: normal; font-display: swap; ascent-override: 98.3%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: "gordita-jr2"; src: url("/new-design/fonts/Gordita-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; ascent-override: 98.3%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: "gordita-jr2"; src: url("/new-design/fonts/Gordita-Medium.otf") format("opentype");  font-weight: 500; font-style: normal; font-display: swap; ascent-override: 98.3%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: "gordita-jr2"; src: url("/new-design/fonts/Gordita-Bold.otf") format("opentype");    font-weight: 600; font-style: normal; font-display: swap; ascent-override: 98.3%; descent-override: 20%; line-gap-override: 0%; }

.jr-page.jr2,
.jr-page.jr2 * {
  font-family: "gordita-jr2", "gordita", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Designer's V2 overrides (verbatim) ===== */
/* ===== V2 overrides ===== */

/* Get Hired icon: the svg draws its 48px circle at x12,y2 inside a 72px
   canvas, so render it larger and nudge it down to line up with the
   other two step icons (92px circle, centred). */
.jr2 .jr-step__icon { overflow: visible; }
.jr2 .jr-step__icon-img[src*="get-hired.svg"] {
    width: 138px;
    height: 138px;
    transform: translateY(19px);
}



/* Steps section as the page hero */
.jr2 .jr2-steps-hero { padding-top: 56px; }
.jr2 .jr2-steps-hero .jr-h2 { font-size: 46px; }
.jr2 .jr2-steps-hero .jr-p { font-size: 17px; }

/* Video thumbnails directly under the steps */
.jr2 .jr2-steps-hero .jr-hiw2__rail { margin-top: 44px; gap: 22px; }
.jr2 .jr2-steps-hero .jr-hiw2__rail .jr-videos__item { width: 212px; padding: 10px 10px 12px; }
.jr2 .jr2-steps-hero .jr-hiw2__rail .jr-videos__item-title { font-size: 13px; line-height: 17px; }

/* Resume card 04: keep clear space between the text and the Before/After chart
   (the chart uses margin-top:auto, so the long text otherwise touches it) */
.jr2 .jr-resume-card--match .jr-resume-card__text { margin-bottom: 22px; }
.jr2 .jr-resume-score { padding: 16px; }

/* Testimonials: compact cards, 4 per view on desktop, rest scroll */
.jr2 .jr-testimonials__track { gap: 18px; }
.jr2 .jr-quote {
    flex: 0 0 calc((100% - 54px) / 4);
    padding: 22px 20px 20px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}
.jr2 .jr-quote__top { gap: 12px; padding-right: 0; margin-bottom: 14px; }
.jr2 .jr-quote__photo {
    width: 48px;
    height: 48px;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px rgba(36, 105, 255, 0.18);
}
.jr2 .jr-quote__name { font-size: 15px; line-height: 20px; }
.jr2 .jr-quote__role { font-size: 12px; line-height: 16px; margin-top: 2px; }
.jr2 .jr-quote__plan { margin-top: 6px; font-size: 9px; padding: 4px 8px; }
.jr2 .jr-quote__stars { height: 15px; margin-bottom: 10px; }
.jr2 .jr-quote__text { font-size: 14px; line-height: 22px; margin-bottom: 16px; }
.jr2 .jr-quote__verified {
    position: static;
    order: 4;
    align-self: flex-start;
    margin-top: auto;
    font-size: 10.5px;
}
@media (max-width: 1100px) {
    .jr2 .jr-quote { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 720px) {
    .jr2 .jr-quote { flex-basis: 100%; }
}

/* Video carousel nav: only where the rail actually scrolls */
.jr2 .jr2-video-nav { display: none; margin-top: 8px; }
@media (max-width: 980px) {
    .jr2 .jr2-video-nav { display: flex; }
}

/* Hero without the dashboard preview */
.jr2 .jr-hero { min-height: auto; }
.jr2 .jr-hero__inner { padding-bottom: 84px; }

/* How it works: three big step cards, video kept minimal */
.jr2 .jr-hiw2__grid { display: block; }
.jr2 .jr-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 0;
    padding-bottom: 0;
    counter-reset: jr2step;
}
.jr2 .jr-steps::before { display: none; }
.jr2 .jr-step {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 42px 30px 44px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    counter-increment: jr2step;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jr2 .jr-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.11);
}
.jr2 .jr-step::before {
    content: counter(jr2step);
    position: absolute;
    top: 18px;
    left: 18px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #2469ff;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    line-height: 54px;
    text-align: center;
    letter-spacing: 0;
    box-shadow: 0 10px 22px rgba(36, 105, 255, 0.3);
}
.jr2 .jr-step__icon,
.jr2 .jr-step__icon-img { width: 92px; height: 92px; }
.jr2 .jr-step__title { font-size: 25px; margin-top: 20px; letter-spacing: -0.02em; }
.jr2 .jr-step__text {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 300px;
    color: rgba(15, 23, 42, 0.66);
}

/* Video: one row of small thumbnails, click opens a lightbox */
.jr2 .jr-hiw2__rail {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 18px;
    margin-top: 40px;
    overflow: visible;
    padding-bottom: 0;
}
.jr2 .jr-hiw2__rail .jr-videos__item {
    flex: 0 0 auto;
    width: 176px;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 8px 10px;
    border-radius: 14px;
}
.jr2 .jr-hiw2__rail .jr-videos__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    margin-bottom: 0;
}
.jr2 .jr-hiw2__rail .jr-videos__thumb-play { width: 26px; height: 26px; }
.jr2 .jr-hiw2__rail .jr-videos__thumb-play svg { width: 12px; height: 12px; }
.jr2 .jr-hiw2__rail .jr-videos__item-text { padding: 0; }
.jr2 .jr-hiw2__rail .jr-videos__item-title {
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    text-align: center;
}
.jr2 .jr-hiw2__rail .jr-videos__item-sub { display: none; }

.jr2 .jr2-testi-eyebrow {
    font-size: 16px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.55);
    margin: 0 0 8px;
}

/* Video lightbox */
.jr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(2, 6, 23, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.jr-lightbox[hidden] { display: none; }
.jr-lightbox__dialog { position: relative; width: min(880px, 100%); }
.jr-lightbox__frame {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.jr-lightbox__media { width: 100%; height: 100%; border: 0; display: block; }
.jr-lightbox__close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jr-lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
.jr-lightbox__title {
    margin-top: 12px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}
body.jr-lightbox-open { overflow: hidden; }

@media (max-width: 980px) {
    .jr2 .jr-steps { grid-template-columns: 1fr; gap: 18px; }
    .jr2 .jr2-steps-hero { padding-top: 36px; }
    .jr2 .jr2-steps-hero .jr-h2 { font-size: 32px; }
    .jr2 .jr-step { padding: 32px 24px 34px; }
    /* Videos: swipeable snap carousel on small screens */
    .jr2 .jr-hiw2__rail,
    .jr2 .jr2-steps-hero .jr-hiw2__rail {
flex-wrap: nowrap;
justify-content: flex-start;
gap: 14px;
overflow-x: auto;
overscroll-behavior-x: contain;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding: 4px 0 10px;
    }
    .jr2 .jr-hiw2__rail::-webkit-scrollbar { display: none; }
    .jr2 .jr-hiw2__rail .jr-videos__item,
    .jr2 .jr2-steps-hero .jr-hiw2__rail .jr-videos__item {
flex: 0 0 auto;
width: min(72vw, 280px);
scroll-snap-align: start;
    }
}

/* Pricing: plan switcher on mobile (Basic / Pro / VIP), Pro selected by default */
.jr2 .jr2-plan-tabs { display: none; }
@media (max-width: 980px) {
.jr2 .jr2-plan-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    max-width: 480px;
    margin: 0 auto 14px;
}
.jr2 .jr2-plan-tabs button {
    flex: 1 1 0;
    border: 0;
    border-radius: 9px;
    padding: 10px 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.6);
    background: transparent;
    cursor: pointer;
}
.jr2 .jr2-plan-tabs button.is-active { background: #ffffff; color: #0f172a; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.jr2 .jr-pricing { display: block; }
.jr2 .jr-pricing .jr-price { display: none; }
.jr2 .jr-pricing .jr-price.is-active { display: flex; }
}

/* Resume builder: one summary card on mobile instead of four cards */
.jr2 .jr-resume-summary { display: none; }
@media (max-width: 980px) {
.jr2 .jr-resume-grid { display: none; }
.jr2 .jr-resume-summary {
    display: block;
    max-width: 520px;
    margin: 0 auto;
    padding: 4px 18px 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.jr2 .jr-resume-summary__list { list-style: none; margin: 0; padding: 0; }
.jr2 .jr-resume-summary__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}
.jr2 .jr-resume-summary__item:first-child { border-top: 0; }
.jr2 .jr-resume-summary__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jr2 .jr-resume-summary__icon svg { width: 22px; height: 22px; }
.jr2 .jr-resume-summary__item--blue .jr-resume-summary__icon { background: rgba(36, 105, 255, 0.12); color: #2469ff; }
.jr2 .jr-resume-summary__item--teal .jr-resume-summary__icon { background: rgba(13, 148, 136, 0.12); color: #0d9488; }
.jr2 .jr-resume-summary__item--amber .jr-resume-summary__icon { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.jr2 .jr-resume-summary__item--violet .jr-resume-summary__icon { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.jr2 .jr-resume-summary__title { font-size: 15.5px; font-weight: 800; line-height: 1.3; color: #0f172a; }
.jr2 .jr-resume-summary__text { margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: rgba(15, 23, 42, 0.62); }
.jr2 .jr-resume-summary__caption {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7c3aed;
}
.jr2 .jr-resume-summary .jr-resume-score { margin-top: 8px; }
}

/* ===== Polish pass: micro-interactions, focus states, small niceties ===== */
.jr2 ::selection { background: rgba(36, 105, 255, 0.16); }
.jr2 #videos, .jr2 #pricing, .jr2 #how-it-works { scroll-margin-top: 16px; }

.jr2 .jr-btn { transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.jr2 .jr-btn--primary:hover { transform: translateY(-1px); }
.jr2 .jr-btn:active { transform: translateY(0); }

.jr2 .jr-btn:focus-visible,
.jr2 .jr-videos__item:focus-visible,
.jr2 .jr2-plan-tabs button:focus-visible,
.jr2 .jr-testimonials__btn:focus-visible,
.jr2 .jr-testimonials__dot:focus-visible {
outline: 3px solid rgba(36, 105, 255, 0.4);
outline-offset: 2px;
}

@media (min-width: 981px) {
/* cards respond to hover like the step cards do */
.jr2 .jr-resume-card,
.jr2 .jr-quote { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.jr2 .jr-resume-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1); }
.jr2 .jr-quote:hover { box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1); }

/* featured plan sits a touch proud of its neighbours */
.jr2 .jr-price--pro { transform: translateY(-6px); }
}

/* Video lightbox: reel format (9:16) on mobile, 16:9 stays on desktop */
@media (max-width: 980px) {
.jr-lightbox { padding: 20px; }
/* Size the dialog to the 9:16 frame so the close button (positioned against the
   dialog) lands on the frame's own corner instead of floating off to the right. */
.jr-lightbox__dialog { width: min(100%, calc(76svh * 9 / 16)); }
.jr-lightbox__frame {
    aspect-ratio: 9 / 16;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
}
/* Close pinned to the top-right of the screen (same placement as the Post Job
   video lightbox), clear of the YouTube Shorts player's own controls. */
.jr-lightbox__close {
    position: fixed; top: 12px; right: 12px; z-index: 2;
    width: 42px; height: 42px;
    background: rgba(2, 6, 23, 0.55);
}
}

/* Reels variant: <picture> swaps the still per breakpoint; keep it out of the layout */
.jr-videos__thumb picture { display: contents; }

/* Reels variant: mobile thumbnails are portrait 9:16 reel tiles */
@media (max-width: 980px) {
.jr2 .jr2-steps-hero .jr-hiw2__rail .jr-videos__item {
    width: min(calc((100% - 14px) / 2), 200px);
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #0b1220;
    border-color: rgba(15, 23, 42, 0.18);
}
.jr2 .jr2-steps-hero .jr-hiw2__rail .jr-videos__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 0;
    margin: 0;
}
.jr2 .jr2-steps-hero .jr-hiw2__rail .jr-videos__thumb-play {
    width: 36px;
    height: 36px;
    top: 44%;
}
.jr2 .jr2-steps-hero .jr-hiw2__rail .jr-videos__thumb-play svg { width: 14px; height: 14px; }
.jr2 .jr2-steps-hero .jr-hiw2__rail .jr-videos__item-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 10px 10px;
    background: linear-gradient(transparent, rgba(2, 6, 23, 0.88));
    pointer-events: none;
}
.jr2 .jr2-steps-hero .jr-hiw2__rail .jr-videos__item-title {
    color: #ffffff;
    text-align: left;
    font-size: 12.5px;
    line-height: 16px;
    font-weight: 700;
}
}
