/* =============================================================
   AJK Welfare — "Join us with 10p a day"
   Campaign page: poster-style collage, cream paper, poster blue.
   Loaded after home.css (reuses the site header, buttons, footer).
   ============================================================= */

.join-page{
  --jd-blue:#067afc;
  --jd-blue-deep:#0059c8;
  --jd-ink:#101820;
  --jd-body:#3b4048;
  --jd-paper:#f6f2e9;
  --jd-line:#e6e1d5;
  --jd-display:'Anton','Inter Tight',Impact,sans-serif;
}

/* ---------- Shared paper background ---------- */
.jd-hero,
.jd-setup{background:#fff}

.jd-hero{padding:56px 0 34px;overflow:hidden;position:relative}

/* ---------- Polaroids ---------- */
.jd-polaroid{
  position:relative;
  margin:0;
  padding:9px 9px 11px;
  background:#fff;
  border-radius:3px;
  box-shadow:0 2px 2px rgba(16,24,32,.06), 0 18px 34px rgba(16,24,32,.16);
  transform:rotate(var(--rot,0deg));
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change:transform;
  z-index:1;
}
.jd-polaroid img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#e9e3d6;
}
.jd-polaroid:hover{
  transform:rotate(0deg) translateY(-4px);
  box-shadow:0 2px 2px rgba(16,24,32,.06), 0 26px 48px rgba(16,24,32,.2);
  z-index:5;
}

.jd-cap{
  position:absolute;
  left:14px;
  bottom:16px;
  margin:0;
  max-width:calc(100% - 18px);
  padding:.34em .58em .22em;
  background:var(--jd-blue);
  color:#fff;
  font-family:var(--jd-display);
  font-size:clamp(13px,1.12vw,18px);
  font-weight:400;
  line-height:1;
  letter-spacing:.035em;
  text-transform:uppercase;
  transform:rotate(-1.6deg);
  box-shadow:0 4px 12px rgba(6,50,110,.28);
  white-space:nowrap;
}

/* ---------- Top collage ---------- */
.jd-top{
  display:grid;
  grid-template-columns:1.42fr .76fr 1.02fr;
  gap:clamp(14px,2vw,30px);
  align-items:center;
  padding:0 clamp(0px,1vw,14px);
}
.jd-p1{--rot:-4.6deg}
.jd-p1 img{height:clamp(230px,28vw,392px);object-position:58% 38%}
.jd-p2{--rot:2.4deg}
.jd-p2 img{height:clamp(210px,25vw,344px);object-position:50% 30%}
.jd-p3{--rot:3.6deg}
.jd-p3 img{height:clamp(240px,30vw,414px);object-position:50% 42%}

/* ---------- Headline ---------- */
.jd-head{
  position:relative;
  z-index:2;
  max-width:1000px;
  margin:clamp(30px,4.6vw,58px) auto 0;
  text-align:center;
}
.jd-logo{width:clamp(160px,16vw,216px);height:auto;margin:0 auto clamp(14px,1.8vw,22px)}

.jd-title{
  margin:0;
  font-family:var(--jd-display);
  font-weight:400;
  text-transform:none;
  line-height:.9;
  letter-spacing:.008em;
}
.jd-l1{
  display:inline-block;
  padding:.05em .16em .1em;
  background:var(--jd-blue);
  color:#fff;
  font-size:clamp(42px,6.6vw,96px);
  line-height:.92;
  transform:rotate(-.8deg);
  box-shadow:0 10px 28px rgba(6,50,110,.18);
  position:relative;
  z-index:1;
}
.jd-l2{
  display:block;
  margin-top:.14em;
  color:var(--jd-blue);
  font-size:clamp(70px,11.2vw,162px);
  line-height:.82;
  letter-spacing:.005em;
}
.jd-l3{
  display:block;
  margin-top:.22em;
  color:var(--jd-blue);
  width:max-content;
  margin-left:auto;
  margin-right:auto;
  font-size:clamp(28px,4.15vw,62px);
  line-height:.98;
  letter-spacing:.01em;
  white-space:nowrap;
  transform:scaleX(.82);
}

.jd-lede{
  max-width:800px;
  margin:clamp(22px,2.6vw,34px) auto 0;
  font-family:var(--font-alt);
  font-size:clamp(16px,1.4vw,20px);
  line-height:1.65;
  color:var(--jd-body);
}

.jd-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  margin-top:clamp(24px,3vw,36px);
}
.jd-btn-lg{padding:17px 28px;font-size:16.5px;font-weight:600}
.jd-actions .btn-outline{border-color:rgba(16,24,32,.28)}

.jd-hero-note{
  margin-top:16px;
  font-size:13.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#77746c;
}

/* ---------- Set-up section ---------- */
.jd-setup{padding:clamp(48px,5vw,74px) 0 clamp(70px,7vw,104px)}
.jd-setup-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,410px);
  gap:clamp(40px,5vw,84px);
  align-items:center;
}

.jd-setup-art{position:relative;min-height:clamp(420px,46vw,600px)}
.jd-setup-art .jd-polaroid{position:absolute}
.jd-p4{--rot:-4deg;left:0;top:0;width:56%;z-index:1}
.jd-p4 img{height:clamp(280px,32vw,440px);object-position:50% 42%}
.jd-p5{--rot:2.8deg;right:0;bottom:0;width:54%;z-index:2}
.jd-p5 img{height:clamp(300px,35vw,470px);object-position:50% 40%}

/* Payment card */
.jd-pay{
  position:relative;
  background:#fff;
  border:1px solid rgba(16,24,32,.07);
  border-radius:26px;
  padding:clamp(26px,3vw,38px);
  box-shadow:0 34px 80px rgba(16,24,32,.16);
  overflow:hidden;
}
.jd-pay::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:7px;
  background:linear-gradient(90deg,var(--jd-blue),#3aa0ff);
}
.jd-pay-kicker{
  margin:0;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--jd-blue);
}
.jd-pay-title{
  margin:8px 0 0;
  font-family:var(--font-display);
  font-size:clamp(25px,2.4vw,32px);
  line-height:1.1;
  letter-spacing:-.025em;
  font-weight:700;
}
.jd-price{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin:18px 0 0;
  color:var(--jd-ink);
}
.jd-price-amount{
  font-family:var(--jd-display);
  font-size:clamp(58px,6vw,80px);
  line-height:.85;
  color:var(--jd-blue-deep);
}
.jd-price-per{font-size:17px;font-weight:600;color:#6d6a63}
.jd-price-note{margin-top:10px;font-size:15.5px;color:var(--jd-body)}
.jd-price-note strong{color:var(--jd-ink)}

.jd-pay-list{
  list-style:none;
  margin:22px 0 0;
  padding:20px 0 0;
  border-top:1px solid var(--jd-line);
}
.jd-pay-list li{
  position:relative;
  padding-left:27px;
  margin-top:11px;
  font-size:14.5px;
  line-height:1.45;
  color:#4c5158;
}
.jd-pay-list li:first-child{margin-top:0}
.jd-pay-list li::before{
  content:"";
  position:absolute;
  left:2px;
  top:2px;
  width:15px;
  height:15px;
  border-radius:50%;
  background:var(--jd-blue);
  opacity:.14;
}
.jd-pay-list li::after{
  content:"";
  position:absolute;
  left:6.5px;
  top:5.5px;
  width:6px;
  height:3px;
  border-left:1.6px solid var(--jd-blue-deep);
  border-bottom:1.6px solid var(--jd-blue-deep);
  transform:rotate(-45deg);
}

.jd-pay-btn{
  width:100%;
  margin-top:26px;
  padding:17px 18px;
  font-size:16.5px;
  font-weight:600;
}
.jd-pay-fine{
  margin-top:13px;
  text-align:center;
  font-size:12.5px;
  color:#85817a;
}

.jd-pay-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #f0ede6;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.02em;
  color:#9a958c;
}
.jd-pay-mark-p{
  display:inline-grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#0b3b8c;
  color:#fff;
  font-family:var(--font-display);
  font-size:13px;
  font-weight:700;
  font-style:italic;
}

/* ---------- Where it goes ---------- */
.jd-where{padding:clamp(64px,7vw,104px) 0;background:#fff}
.jd-section-head{max-width:780px}
.jd-section-head-center{margin:0 auto;text-align:center}
.jd-eyebrow{
  margin:0;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--jd-blue);
}
.jd-section-head h2{
  margin-top:10px;
  font-family:var(--font-display);
  font-size:clamp(30px,3.6vw,48px);
  line-height:1.08;
  letter-spacing:-.03em;
  font-weight:600;
  color:var(--jd-ink);
}
.jd-section-lede{
  margin-top:16px;
  font-size:clamp(15.5px,1.3vw,18px);
  line-height:1.6;
  color:#5d626a;
}

.jd-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:clamp(14px,1.7vw,22px);
  margin-top:clamp(32px,4vw,50px);
}
.jd-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #ece9e1;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(16,24,32,.06);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
.jd-card:hover{transform:translateY(-5px);box-shadow:0 22px 44px rgba(16,24,32,.12)}
.jd-card-media{position:relative;aspect-ratio:4/4.6;overflow:hidden;background:#ece7db}
.jd-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.jd-card:hover .jd-card-media img{transform:scale(1.04)}
.jd-card-cap{
  position:absolute;
  left:10px;
  bottom:10px;
  margin:0;
  padding:.34em .55em .22em;
  background:var(--jd-blue);
  color:#fff;
  font-family:var(--jd-display);
  font-size:12.5px;
  line-height:1;
  letter-spacing:.04em;
  text-transform:uppercase;
  transform:rotate(-1.5deg);
  box-shadow:0 3px 10px rgba(6,50,110,.28);
}
.jd-card-body{padding:17px 17px 20px}
.jd-card-body h3{
  font-size:16.5px;
  line-height:1.25;
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--jd-ink);
}
.jd-card-body p{margin-top:7px;font-size:14px;line-height:1.5;color:#6b7078}

/* ---------- Steps ---------- */
.jd-steps{padding:clamp(64px,7vw,100px) 0}
.jd-step-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(24px,4vw,56px);
  margin:clamp(36px,4vw,54px) 0 0;
  padding:0;
  list-style:none;
}
.jd-step-num{
  display:block;
  font-family:var(--jd-display);
  font-size:clamp(42px,4.4vw,58px);
  line-height:1;
  color:transparent;
  -webkit-text-stroke:2px var(--jd-blue);
}
.jd-step h3{
  margin-top:16px;
  font-family:var(--font-display);
  font-size:clamp(19px,1.6vw,22px);
  line-height:1.2;
  letter-spacing:-.02em;
  font-weight:600;
  color:var(--jd-ink);
}
.jd-step p{margin-top:9px;font-size:15px;line-height:1.55;color:#5d626a}

/* ---------- FAQ ---------- */
.jd-faq{padding:clamp(64px,7vw,100px) 0;background:#fff}
.jd-faq-grid{
  display:grid;
  grid-template-columns:minmax(240px,360px) minmax(0,1fr);
  gap:clamp(32px,5vw,72px);
  align-items:start;
}
.jd-faq-head h2{
  margin-top:10px;
  font-family:var(--font-display);
  font-size:clamp(30px,3.4vw,44px);
  line-height:1.06;
  letter-spacing:-.03em;
  font-weight:600;
}
.jd-faq-head p:last-child{margin-top:16px;font-size:15px;line-height:1.55;color:#5d626a}
.jd-faq-head a{color:var(--jd-blue-deep);font-weight:600;text-decoration:underline;text-underline-offset:3px}

.jd-faq-list{border-top:1px solid var(--jd-line)}
.jd-faq-item{border-bottom:1px solid var(--jd-line)}
.jd-faq-item summary{
  position:relative;
  padding:20px 44px 20px 0;
  font-size:16.5px;
  font-weight:600;
  line-height:1.35;
  color:var(--jd-ink);
  cursor:pointer;
  list-style:none;
  transition:color .2s;
}
.jd-faq-item summary::-webkit-details-marker{display:none}
.jd-faq-item summary::after{
  content:"+";
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  font-family:var(--font-display);
  font-size:26px;
  line-height:1;
  font-weight:400;
  color:var(--jd-blue);
  transition:transform .25s var(--ease);
}
.jd-faq-item[open] summary{color:var(--jd-blue-deep)}
.jd-faq-item[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.jd-faq-item p{
  padding:0 44px 22px 0;
  font-size:15px;
  line-height:1.65;
  color:#5d626a;
}
.jd-faq-item p a{color:var(--jd-blue-deep);text-decoration:underline;text-underline-offset:3px}

/* ---------- Final CTA ---------- */
.jd-final{padding:clamp(56px,6vw,88px) 0;background:#fff}
.jd-final-panel{
  position:relative;
  overflow:hidden;
  padding:clamp(38px,5.4vw,72px) clamp(22px,5vw,64px);
  border-radius:28px;
  text-align:center;
  color:#fff;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%),
    linear-gradient(135deg,#0a63d6,var(--jd-blue) 58%,#3aa0ff);
  box-shadow:0 30px 70px rgba(6,80,170,.24);
  isolation:isolate;
}
.jd-final-panel::after{
  content:"10p";
  position:absolute;
  right:-.06em;
  bottom:-.34em;
  z-index:-1;
  font-family:var(--jd-display);
  font-size:clamp(180px,26vw,340px);
  line-height:1;
  color:rgba(255,255,255,.1);
  pointer-events:none;
}
.jd-final-eyebrow{
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  opacity:.9;
}
.jd-final-panel h2{
  max-width:820px;
  margin:12px auto 0;
  font-family:var(--font-display);
  font-size:clamp(30px,4.4vw,58px);
  line-height:1.05;
  letter-spacing:-.03em;
  font-weight:600;
  color:#fff;
}
.jd-final-panel p{
  max-width:640px;
  margin:16px auto 0;
  font-size:clamp(15px,1.35vw,18px);
  line-height:1.55;
  color:rgba(255,255,255,.92);
}
.jd-final-btn{
  margin-top:28px;
  padding:17px 30px;
  background:#fff;
  color:var(--jd-blue-deep);
  font-weight:700;
  box-shadow:0 14px 32px rgba(3,30,70,.28);
}
.jd-final-btn:hover{background:#fff;color:var(--jd-blue-deep);transform:translateY(-1px);box-shadow:0 18px 38px rgba(3,30,70,.34)}
.jd-final-fine{
  margin-top:18px !important;
  font-size:13px !important;
  letter-spacing:.05em;
  text-transform:uppercase;
  opacity:.8;
}

/* ---------- Header CTA wordmark tweak ---------- */
.join-page .btn-join{letter-spacing:-.01em}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .jd-cards{grid-template-columns:repeat(2,1fr)}
  .jd-step-grid{gap:32px}
}

@media (max-width:980px){
  .jd-top{grid-template-columns:1.5fr .9fr .95fr}
  .jd-setup-grid{grid-template-columns:1fr;gap:44px}
  .jd-setup-art{min-height:0;display:flex;gap:14px;align-items:flex-start;justify-content:center}
  .jd-setup-art .jd-polaroid{position:relative;width:48%}
  .jd-p4,.jd-p5{left:auto;right:auto;top:auto;bottom:auto}
  .jd-p4 img,.jd-p5 img{height:clamp(300px,46vw,430px)}
  .jd-pay{max-width:440px;width:100%;margin:0 auto}
  .jd-faq-grid{grid-template-columns:1fr;gap:30px}
}

@media (max-width:760px){
  .jd-hero{padding-top:36px}
  .jd-top{
    grid-template-columns:1fr 1fr;
    gap:14px;
    align-items:center;
  }
  .jd-p1{grid-column:1/-1;justify-self:center;width:min(100%,540px);--rot:-3.4deg}
  .jd-p1 img{height:auto;aspect-ratio:16/10;object-position:58% 34%}
  .jd-p2,.jd-p3{width:100%}
  .jd-p2 img{height:clamp(190px,32vw,260px)}
  .jd-p3 img{height:clamp(190px,32vw,260px);object-position:50% 32%}
  .jd-cap{left:9px;bottom:11px;font-size:12.5px;padding:.32em .5em .2em}
  .jd-actions .btn{width:100%;max-width:340px}
  .jd-hero-note{font-size:12px}
  .jd-cards{grid-template-columns:1fr 1fr;gap:12px}
  .jd-step-grid{grid-template-columns:1fr;gap:28px}
  .jd-step{display:grid;grid-template-columns:58px 1fr;column-gap:14px;align-items:start}
  .jd-step-num{grid-row:1/3;font-size:40px}
  .jd-step h3{margin-top:4px}
  .jd-step p{grid-column:2}
}

@media (max-width:560px){
  .jd-hero{padding-top:28px}
  .jd-title{line-height:.94}
  .jd-lede{font-size:15.5px;line-height:1.6}
  .jd-setup-art{gap:10px}
  .jd-p4,.jd-p5{width:49%}
  .jd-p4 img,.jd-p5 img{height:clamp(240px,56vw,340px)}
  .jd-pay{padding:24px 20px;border-radius:20px}
  .jd-pay-list li{font-size:14px}
   .jd-where,.jd-faq,.jd-steps{padding:56px 0}
  .jd-card-body{padding:13px 13px 16px}
  .jd-card-body h3{font-size:14.5px}
  .jd-card-body p{font-size:12.5px}
  .jd-card-cap{font-size:10.5px;left:7px;bottom:7px}
  .jd-final-panel{border-radius:20px}
}

@media (max-width:400px){
  .jd-cards{grid-template-columns:1fr}
  .jd-card-media{aspect-ratio:16/11}
}

/* Touch: don't leave hover transforms stuck */
@media (hover:none){
  .jd-polaroid:hover{transform:rotate(var(--rot,0deg));box-shadow:0 2px 2px rgba(16,24,32,.06),0 18px 34px rgba(16,24,32,.16)}
  .jd-card:hover{transform:none}
  .jd-card:hover .jd-card-media img{transform:none}
}
