/* =====================================================
   Amazon Work From Home – single job page
   Loaded AFTER css/style.css. Everything is scoped to
   body.az-page / .az-* so the landing page is untouched.
   Mobile-first (base = phone, min-width: 600px / 861px).
   ===================================================== */
body.az-page {
  --orange: #FF8A00;
  --orange-d: #F26B00;
  --cream: #FDF0DE;
  --az-gold: #FFC21A;
}

/* ---------- Buttons ---------- */
.az-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 8px 22px; border-radius: 999px; color: #fff; font-weight: 700; white-space: nowrap;
  background: linear-gradient(180deg, #FF9A1F 0%, var(--orange-d) 100%);
  box-shadow: 0 6px 14px rgba(242, 107, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.az-btn i { font-size: .95em; }
.az-btn-lg { min-height: 52px; padding: 10px 28px; font-size: 17px; gap: 10px; }
.az-btn-lg i:first-child { font-size: 1.15em; }

/* Header and footer are NOT styled here: they use the home page's own markup and the shared rules in css/style.css. */

/* ---------- Hero ---------- */
/* MOBILE / TABLET (same idea as the home hero): the hero is the shape of the photo (5:4). The photo is pinned to the
   bottom at full width and is never cropped. The left ~45% of the photo is empty background, so ALL the text sits in
   a left column of half the screen width, on top of the photo. The three checks sit in a 44px strip under the photo. */
.az-hero { position: relative; overflow: hidden; min-height: calc(80vw + 44px); background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%); }
/* The laptop's top edge is at ~52% of the photo height and its left edge at ~35% of the width, so the text block must end
   above it: bottom padding = 44px strip + the lower 48% of the photo (38vw) + a little air. Any extra height this adds
   is plain white above the photo (its top edge fades into it), exactly like the home hero. */
.az-hero-inner { padding-top: 6px; padding-bottom: 54px; }
.az-hero-copy { display: flex; flex-direction: column; align-items: flex-start; width: calc(46vw - 14px); text-align: left; }
.az-hero-copy > *:not(.az-checks) { position: relative; z-index: 2; }
.az-wordmark {
  position: relative; display: inline-block; font-family: Arial, Helvetica, sans-serif; font-weight: 700;
  font-size: clamp(26px, 9.2vw, 66px); line-height: 1; letter-spacing: -.045em; color: #111; padding-bottom: .26em;
}
.az-wordmark svg { position: absolute; left: 11%; bottom: .02em; width: 70%; height: .3em; overflow: visible; }
.az-hero h1 {
  font-family: 'Montserrat', 'Poppins', sans-serif; font-weight: 900; color: var(--navy);
  font-size: clamp(20px, 6.2vw, 46px); line-height: 1.05; letter-spacing: -.03em; margin-top: 1px;
}
.az-hero-sub { margin-top: 4px; font-size: clamp(10px, 2.85vw, 17px); line-height: 1.3; font-weight: 600; color: #0A1F52; max-width: 560px; }
.az-hero-sub b { color: var(--orange-d); font-weight: 800; }
/* one row pinned to the 44px strip under the photo */
.az-checks {
  position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 0; height: 44px;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 4px;
  font-size: clamp(9px, 2.75vw, 13px); font-weight: 600; color: #0A1F52;
}
.az-checks li { position: relative; display: inline-flex; align-items: center; gap: 3px; padding-bottom: 5px; white-space: nowrap; }
.az-checks li i { color: var(--green); font-size: 1.25em; }
.az-checks li::after {
  content: ''; position: absolute; left: 1.6em; right: 0; bottom: 0; height: 3px; background: var(--red);
  border-radius: 50% / 100%; transform: rotate(-1.2deg);
}
.az-hero-copy .az-btn-lg {
  margin-top: clamp(6px, 2vw, 12px); min-height: 44px; padding: 6px 9px; gap: 4px; white-space: nowrap;
  font-size: clamp(9.5px, 2.4vw, 17px);
}

.az-hero-pic { position: absolute; inset: 0; z-index: 0; padding: 0; }
.az-photo { position: absolute; inset: 0; }
/* sized by WIDTH and pinned to the bottom (above the 44px strip), so the woman never moves or gets cropped */
.az-hero-pic img {
  position: absolute; left: 0; bottom: 44px; display: block; width: 100%; height: auto; max-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 90%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 90%, transparent 100%);
}

/* ---------- Layout / panels ---------- */
.az-wrap { padding-top: 14px; padding-bottom: 6px; display: flex; flex-direction: column; gap: 14px; }
.az-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch; }
.az-panel { background: #fff; border: 1px solid #D9E4F8; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(6, 43, 120, .1); }
.az-panel-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  background: linear-gradient(180deg, #0B2F80, #00276B); color: #fff;
  font-family: 'Poppins', sans-serif; font-size: 16.5px; font-weight: 700; line-height: 1.25;
}
.az-panel-head i { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; color: #FFB02E; }
.az-panel-head i.star { color: #FFD21A; }
.az-panel-body { padding: 14px 16px 16px; }

/* About */
.az-about p { font-size: 14px; line-height: 1.55; color: #12265A; }
.az-about p + p { margin-top: 12px; }
.az-about p b { color: #08173F; }
.az-join {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px;
  background: #E6EEFC; border-radius: 8px; border: 1px solid #D2E0FA;
}
.az-join > i { color: var(--orange); font-size: 24px; flex-shrink: 0; }
.az-join span { flex: 1; font-size: 13.5px; font-weight: 500; color: #12265A; line-height: 1.35; }
.az-mini-wordmark { position: relative; flex-shrink: 0; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 34px; letter-spacing: -.045em; color: #111; line-height: 1; padding-bottom: 12px; }
.az-mini-wordmark svg { position: absolute; left: 11%; bottom: 0; width: 70%; height: 11px; overflow: visible; }

/* Highlights */
.az-hl { display: flex; align-items: center; gap: 8px; }
.az-hl-list { flex: 1; min-width: 0; }
.az-hl-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #E3EAF7; }
.az-hl-list li:last-child { border-bottom: 0; }
.az-hl-list li > i { width: 36px; text-align: center; font-size: 28px; color: #1565E8; flex-shrink: 0; }
.az-hl-list li > i.gold { color: #F5A400; }
.az-hl-list b { display: block; font-size: 13.5px; color: #08173F; line-height: 1.25; font-weight: 600; }
.az-hl-list span { display: block; font-size: 12.5px; color: #12265A; line-height: 1.3; }
.az-seal { position: relative; width: 118px; height: 118px; flex-shrink: 0; display: grid; place-items: center; filter: drop-shadow(0 6px 8px rgba(190, 130, 0, .35)); }
.az-seal > i { position: absolute; left: 0; top: 0; font-size: 118px; line-height: 1; color: var(--az-gold); }
.az-seal::before { content: ''; position: absolute; inset: 11%; border-radius: 50%; border: 1.5px solid #E3A100; z-index: 1; }
.az-seal-text { position: relative; z-index: 2; text-align: center; color: var(--navy); font-family: 'Montserrat', sans-serif; font-weight: 800; font-style: italic; line-height: 1.05; font-size: 13.5px; }
.az-seal-text small { display: block; font-size: 8px; letter-spacing: 1px; color: var(--navy); margin-bottom: 3px; }
.az-seal-text em { font-style: italic; position: relative; display: inline-block; }
.az-seal-text em::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2.5px; background: var(--red); border-radius: 50% / 100%; transform: rotate(-3deg); }

/* How to apply */
.az-steps { list-style: none; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 14px 16px; }
.az-steps > li { list-style: none; }
.az-step { position: relative; flex: 1; text-align: center; background: var(--cream); border-radius: 10px; padding: 14px 14px 14px; }
.az-step-num {
  position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #FFA11F, var(--orange-d)); color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 3px 8px rgba(242, 107, 0, .4);
}
.az-step-ico { font-size: 34px; color: #1565E8; line-height: 1; margin-bottom: 6px; }
.az-step-ico.green { color: #1FB52A; }
.az-step h3 { font-size: 15px; font-weight: 700; color: #08173F; line-height: 1.25; }
.az-step p { font-size: 12.5px; color: #25376A; line-height: 1.4; margin-top: 3px; }
.az-step-arrow { align-self: center; color: var(--navy); font-size: 18px; transform: rotate(90deg); padding: 2px 0; }

/* Testimonial */
.az-testi { display: flex; align-items: center; gap: 16px; }
.az-testi img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 3px #DCE8FF; }
.az-testi blockquote { font-style: italic; font-size: 14px; line-height: 1.45; color: #12265A; }
.az-testi cite { display: block; font-style: normal; font-weight: 700; font-size: 13.5px; color: var(--navy); margin-top: 8px; }
.az-testi .stars { display: block; margin-top: 4px; color: #F5B400; font-size: 17px; letter-spacing: 2px; }

/* FAQ in az panel */
.az-faq .faq-list { padding: 4px 16px 8px; }
.az-faq .faq-q { min-height: 48px; font-size: 14.5px; font-weight: 500; color: #08173F; }
.az-faq .faq-q i { font-size: 15px; color: #08173F; }
.az-faq .faq-item.open .faq-q { font-weight: 700; color: var(--navy); }
.az-faq .faq-a p { font-size: 13px; color: #3A4C7A; line-height: 1.5; padding-bottom: 12px; }

/* CTA */
.az-cta { padding: 4px 0 20px; }
.az-cta-inner {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  background: linear-gradient(100deg, #00276B, #0A3A90); border-radius: 12px; padding: 18px 16px;
  box-shadow: 0 8px 22px rgba(0, 39, 107, .3);
}
.az-cta-smile { width: 110px; height: 36px; flex-shrink: 0; overflow: visible; }
.az-cta-text { flex: 1; min-width: 0; }
.az-cta-text h2 { font-family: 'Montserrat', sans-serif; font-weight: 900; color: #fff; font-size: clamp(21px, 6vw, 30px); line-height: 1.15; }
.az-cta-text p { margin-top: 4px; color: #fff; font-style: italic; font-weight: 500; font-size: 14px; line-height: 1.4; }
.az-cta-text p b { color: var(--gold); font-weight: 800; }
.az-cta-inner .az-btn { width: 100%; }

/* ---------- Extra sections (roles, benefits, requirements, tips, process, more jobs) ---------- */
.az-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12.5px; line-height: 1.45; color: #3A4C7A; }
.az-note i { color: #1565E8; margin-top: 2px; flex-shrink: 0; }
.az-note-pad { margin: 0; padding: 0 16px 16px; }

.az-role-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.az-role { background: var(--cream); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; }
.az-role-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1565E8; font-size: 19px; box-shadow: 0 3px 8px rgba(6, 43, 120, .12); }
.az-role h3 { font-size: 15px; font-weight: 700; color: #08173F; line-height: 1.25; align-self: end; }
.az-role p { font-size: 12.5px; line-height: 1.45; color: #25376A; margin-top: 3px; }

.az-ben-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.az-ben-grid li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #E3EAF7; }
.az-ben-grid li:last-child { border-bottom: 0; }
.az-ben-grid li > i { width: 40px; text-align: center; font-size: 26px; color: #1565E8; flex-shrink: 0; }
.az-ben-grid li:nth-child(3n+3) > i { color: #F5A400; }
.az-ben-grid b { display: block; font-size: 14px; color: #08173F; line-height: 1.25; font-weight: 600; }
.az-ben-grid span { display: block; font-size: 12.5px; color: #25376A; line-height: 1.4; }

.az-check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #E3EAF7; font-size: 13.5px; line-height: 1.45; color: #12265A; }
.az-check-list li:last-child { border-bottom: 0; }
.az-check-list li > i { color: var(--green); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.az-tips li > i { color: #F5A400; font-size: 14px; }

.az-timeline { list-style: none; position: relative; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.az-timeline::before { content: ''; position: absolute; left: 35px; top: 34px; bottom: 34px; width: 2px; background: #C9D8F5; }
.az-timeline li { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.az-tl-dot { position: relative; z-index: 1; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #fff; background: linear-gradient(180deg, #FFA11F, var(--orange-d)); box-shadow: 0 3px 8px rgba(242, 107, 0, .4); }
.az-timeline li:last-child .az-tl-dot { background: linear-gradient(180deg, #2BC734, #159A1E); box-shadow: 0 3px 8px rgba(21, 154, 30, .35); }
.az-timeline b { display: block; font-size: 14.5px; color: #08173F; line-height: 1.25; padding-top: 2px; }
.az-timeline span:not(.az-tl-dot) { display: block; font-size: 12.5px; color: #25376A; line-height: 1.4; margin-top: 2px; }

.az-more { padding: 6px 0 10px; text-align: center; }
.az-more-title { font-family: 'Montserrat', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(19px, 5.4vw, 26px); color: var(--navy); line-height: 1.2; }
.az-more-sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.az-more-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 8px 24px;
  border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--navy); background: #fff; border: 2px solid var(--navy);
  transition: background .2s, color .2s;
}
.az-more-link:hover, .az-more-link:active { background: var(--navy); color: #fff; }

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
  .az-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .az-ben-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .az-ben-grid li:nth-last-child(2) { border-bottom: 0; }
  .az-timeline { flex-direction: row; gap: 10px; padding: 18px 16px 12px; }
  .az-timeline::before { left: 8%; right: 8%; top: 39px; bottom: auto; width: auto; height: 2px; }
  .az-timeline li { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .az-timeline b { padding-top: 0; }
  .az-hero { min-height: calc(80vw + 44px); } /* no 584px cap: her hair starts near the top of the photo, so never crop it */
  .az-hero-copy { width: calc(47vw - 24px); }
  .az-checks { left: 24px; right: 24px; }
  .az-steps { flex-direction: row; align-items: stretch; gap: 8px; }
  .az-step-arrow { transform: none; align-self: center; }
  .az-cta-inner { flex-direction: row; align-items: center; gap: 20px; padding: 18px 24px; }
  .az-cta-inner .az-btn { width: auto; }
  .az-cta-smile { width: 140px; }
}

/* ---------- ≥ 861px (desktop) ---------- */
@media (min-width: 861px) {
  /* DESKTOP HERO = the reference banner, scaled. The hero keeps the photo's 2336:992 shape and is a size container:
     every size below is in cqw (1% of the hero width), so the text block and button stay in the same place
     relative to the photo at any desktop width. The photo has its empty copy-space on the left (text). */
  /* No fixed height: the hero is AT LEAST as tall as the photo (42.4vw) but grows with its text, so the button
     can never be cut off at any desktop width (the text block is in normal flow, not absolutely positioned). */
  /* The hero is a BOX exactly as wide as the page content (same left/right edges as the header and the panels below:
     .container = max 1200px minus its 14px side padding). The photo and ALL the text stay inside this box. */
  .az-hero {
    container-type: inline-size; display: flex; align-items: center; overflow: clip;
    width: min(100% - 28px, 1172px); margin: 14px auto 0; border-radius: 10px; box-shadow: 0 4px 14px rgba(6, 43, 120, .1);
    aspect-ratio: 2048 / 1152; min-height: 0; /* the photo's shape; grows only if the text needed more room */
  }
  .az-hero-pic img {
    position: static; width: 100%; height: 100%; object-fit: cover; object-position: right center;
    -webkit-mask-image: none; mask-image: none;
  }
  .az-hero-inner {
    position: relative; z-index: 2; width: 100%; max-width: none; margin: 0;
    padding: 3.2cqw 0 3.6cqw 5.5cqw;
  }
  /* proportions taken from the reference banner: the whole text block ends before 42% of the width (the laptop
     starts at ~43%), wordmark ~19% wide, title wraps to 2 lines ("Work From / Home"), checks in one row */
  .az-hero-copy { position: relative; z-index: 2; padding: 0; width: 34cqw; }
  .az-checks { position: static; height: auto; left: auto; right: auto; bottom: auto; justify-content: flex-start; }
  .az-checks li { gap: .4cqw; }
  .az-wordmark { font-size: 5.7cqw; margin-left: 1cqw; }
  .az-hero h1 { font-size: 4.8cqw; margin-top: .3cqw; letter-spacing: -.025em; max-width: 34cqw; line-height: 1.08; }
  .az-hero-sub { font-size: max(1.72cqw, 14px); margin-top: 1.3cqw; max-width: 34cqw; line-height: 1.32; }
  .az-checks { gap: .6cqw 1.5cqw; font-size: max(1.12cqw, 11px); margin-top: 1.5cqw; flex-wrap: wrap; }
  .az-checks li { white-space: nowrap; padding-bottom: .45cqw; gap: .4cqw; }
  .az-checks li::after { left: 1.5cqw; height: .26cqw; min-height: 2px; }
  .az-hero-copy .az-btn-lg {
    margin: 1.8cqw 0 0 0; padding: 1cqw 3.2cqw; font-size: max(1.75cqw, 14px); min-height: 0; gap: .8cqw;
  }

  .az-wrap { padding-top: 18px; gap: 16px; }
  .az-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .az-grid.az-grid-b { grid-template-columns: 5fr 6fr; }
  .az-role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .az-role { padding: 16px; }
  .az-role h3 { font-size: 15.5px; }
  .az-role p { font-size: 13px; }
  .az-ben-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .az-ben-grid li:nth-last-child(2) { border-bottom: 1px solid #E3EAF7; }
  .az-ben-grid li:nth-last-child(-n+3) { border-bottom: 0; }
  .az-check-list li { font-size: 14px; }
  .az-timeline { padding: 20px 24px 14px; }
  .az-timeline::before { top: 41px; }
  .az-note-pad { padding: 0 24px 18px; }
  .az-more-title { font-size: 28px; }
  .az-more-sub { font-size: 14.5px; }
  .az-panel-head { font-size: 17px; padding: 12px 18px; }
  .az-panel-body { padding: 16px 20px 20px; }
  .az-about p { font-size: 14.5px; }
  .az-hl-list b, .az-hl-list span { font-size: 14px; }
  .az-seal { width: 150px; height: 150px; }
  .az-seal > i { font-size: 150px; }
  .az-seal-text { font-size: 17px; }
  .az-mini-wordmark { font-size: 40px; padding-bottom: 14px; }
  .az-seal-text small { font-size: 10px; }
  .az-steps { gap: 12px; padding: 16px 18px 20px; }
  .az-step { padding: 18px 16px 18px; }
  .az-step-num { left: 16px; top: 16px; width: 34px; height: 34px; font-size: 16px; }
  .az-step-ico { font-size: 40px; }
  .az-step h3 { font-size: 16px; }
  .az-step p { font-size: 13px; }
  .az-step-arrow { font-size: 22px; }
  .az-testi img { width: 100px; height: 100px; }
  .az-testi blockquote { font-size: 14.5px; }
  .az-faq .faq-q { font-size: 15px; min-height: 0; padding: 12px 0; }
  .az-cta-inner { padding: 20px 32px; gap: 28px; }
  .az-cta-smile { width: 170px; height: 54px; }
  .az-cta-text h2 { font-size: 30px; }
  .az-cta-text p { font-size: 16px; }
  .az-cta-inner .az-btn { font-size: 19px; padding: 14px 34px; min-height: 0; }
  .az-cta { padding: 4px 0 24px; }
}
