/* Creative templates from the SOP samples. Every size is laid out at its real pixel size.
   .cd = shared parts; .r2 = before/after split (R2); .r3 = family layout (SOP Style 3);
   .crm = CRM banner (bot/skills/crm-creatives). */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: block; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: block; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 600; font-display: block; src: url("../fonts/poppins-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 700; font-display: block; src: url("../fonts/poppins-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: block; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: block; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }
/* The rupee sign (₹) isn't in the latin files: a one-glyph font per weight fills it in. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/poppins-rupee-400-normal.woff") format("woff"); unicode-range: U+20B9; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: block; src: url("../fonts/poppins-rupee-500-normal.woff") format("woff"); unicode-range: U+20B9; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: block; src: url("../fonts/poppins-rupee-600-normal.woff") format("woff"); unicode-range: U+20B9; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: block; src: url("../fonts/poppins-rupee-700-normal.woff") format("woff"); unicode-range: U+20B9; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: block; src: url("../fonts/poppins-rupee-800-normal.woff") format("woff"); unicode-range: U+20B9; }

.cd {
  --orange: #F15A29;
  --black: #1A1617;
  --neutral: #D5D6CC;
  --accent: var(--orange);
  /* SOP 8.1: 8–10% safe padding on all sides, extra bottom padding for UI overlays */
  --pad-x: 108px;
  --pad-top: 108px;
  --pad-bottom: 189px;
  /* SOP type sizes ×2 on a 1080-wide canvas */
  --logo-w: 300px;
  --gap-logo: 56px;
  --fs-hook: 48px;
  --fs-promise: 60px;
  --fs-usp: 50px;
  --fs-num: 38px;
  --fs-label: 28px;
  --fs-cta: 36px;
  --icon: 40px;

  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--black);
  color: #fff;
  font-family: "Poppins", sans-serif;
  line-height: 1.2;
  text-align: left;
}
.cd *, .cd *::before, .cd *::after { box-sizing: border-box; margin: 0; }

/* Square: same layout, about 10% tighter so the photo stays visible */
.cd.fmt-1x1 {
  --pad-bottom: 151px;
  --logo-w: 260px;
  --gap-logo: 36px;
  --fs-hook: 44px;
  --fs-promise: 54px;
  --fs-usp: 46px;
  --fs-num: 34px;
  --fs-label: 26px;
  --fs-cta: 34px;
  --icon: 34px;
}
/* Stories: 250 px top and bottom kept free of text and logo */
.cd.fmt-9x16 { --pad-top: 250px; --pad-bottom: 250px; }
/* Commercial: navy accent (SOP 6) */
.cd.unit-commercial { --accent: #293376; }

.cd .photo { position: absolute; inset: 0; }
.cd .photo img, .cd .photo .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd.mirror .photo img { transform: scaleX(-1); }
.cd.r2 .photo.before, .cd.rw.split .photo.before { -webkit-mask-image: linear-gradient(90deg, #000 44%, transparent 56%); mask-image: linear-gradient(90deg, #000 44%, transparent 56%); }
.cd.r2 .photo.before img, .cd.r2 .photo.before .ph, .cd.rw.split .photo.before img, .cd.rw.split .photo.before .ph { filter: grayscale(1); }
.cd .ph { background: linear-gradient(180deg, #7ea6dc 0%, #c9dbf1 46%, #b8a189 47%, #8c7259 100%); }

.cd.r2 .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(26, 22, 23, 0) 50%,
    rgba(26, 22, 23, 0.80) 76%,
    rgba(26, 22, 23, 0.94) 100%);
}

.cd .content {
  position: absolute;
  inset: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex;
  flex-direction: column;
}

.cd .logo {
  align-self: flex-start;
  padding: 18px 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.cd .logo img { display: block; width: var(--logo-w); height: auto; }

.cd .ribbons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: var(--gap-logo) 0 0 8px;
  transform: rotate(-4deg);
  transform-origin: left center;
}
.cd .rb {
  position: relative;
  padding: 6px 26px 8px;
  font-style: italic;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.cd .hook { z-index: 2; margin: 0 0 -4px 48px; border-radius: 10px; background: var(--black); color: #fff; font-size: var(--fs-hook); font-weight: 700; }
.cd .promise { z-index: 1; border-radius: 6px; background: #fff; color: var(--black); font-size: var(--fs-promise); font-weight: 700; }
.cd .usp { z-index: 2; margin: -6px 0 0 32px; border-radius: 6px; background: var(--accent); color: #fff; font-size: var(--fs-usp); font-weight: 600; }

.cd .spacer { flex: 1; }

.cd.r2 .trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(26, 22, 23, 0.86);
}
.cd.r2 .item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 10px; text-align: center; }
.cd.r2 .item + .item { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.cd.r2 .item svg { width: var(--icon); height: var(--icon); margin-bottom: 6px; color: var(--orange); }
.cd.r2 .item strong { color: #fff; font-size: var(--fs-num); font-weight: 700; line-height: 1.1; }
.cd.r2 .item span { color: var(--neutral); font-size: var(--fs-label); line-height: 1.2; }

.cd .cta {
  align-self: center;
  margin-top: 24px;
  padding: 16px 44px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: var(--fs-cta);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* R3: family layout (SOP Style 3). Trust cards stack down the left; people stand on the right,
   so no face sits under text. No black-and-white half. */
.cd.r3 { --gap-stack: 40px; --card-gap: 14px; --card-w: 330px; --card-pad: 14px 22px 14px 18px; }
.cd.r3.fmt-1x1 { --gap-stack: 24px; --card-gap: 10px; --card-w: 300px; --card-pad: 10px 18px 10px 14px; }
.cd.r3.fmt-9x16 { --gap-stack: 64px; }
.cd.r3 .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 26%),
    linear-gradient(90deg, rgba(26, 22, 23, 0.62) 0%, rgba(26, 22, 23, 0.30) 34%, rgba(26, 22, 23, 0) 52%),
    linear-gradient(180deg, rgba(26, 22, 23, 0) 72%, rgba(26, 22, 23, 0.70) 100%);
}
.cd.r3 .stack { display: flex; flex-direction: column; align-items: flex-start; gap: var(--card-gap); margin-top: var(--gap-stack); }
.cd.r3 .card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: var(--card-w);
  padding: var(--card-pad);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(26, 22, 23, 0.84);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.cd.r3 .card svg { flex: none; width: var(--icon); height: var(--icon); color: var(--orange); }
.cd.r3 .card strong { display: block; color: #fff; font-size: var(--fs-num); font-weight: 700; line-height: 1.1; }
.cd.r3 .card span { display: block; color: var(--neutral); font-size: var(--fs-label); line-height: 1.2; }
.cd.r3 .cta { align-self: flex-start; }

/* CRM banner (CRM skill): one scene fading into a white haze under the text; no blur (SOP 12.8).
   Wide sizes: text on the left, scene on the right. Square and portrait: text on top, scene below.
   Safe area: 10% of the short side on every side (SOP 8.1). */
.cd.crm {
  --pad: 48px;
  --logo-w: 232px;
  --copy-w: 560px;
  --gap: 6px;
  --fs-hook: 22px;
  --fs-eyebrow: 30px;
  --fs-headline: 50px;
  --fs-highlight: 74px;
  --fs-subline: 30px;
  --fs-pill: 26px;
  --fs-cta: 22px;
  --fs-tnc: 12px;
  background: linear-gradient(90deg, #fff 0%, #fdfcfa 45%, #f4f1ec 100%);
  color: var(--black);
}
.cd.crm.fmt-wide-2x1 { --pad: 72px; --logo-w: 300px; --copy-w: 640px; --gap: 10px; --fs-hook: 28px; --fs-eyebrow: 38px; --fs-headline: 64px; --fs-highlight: 96px; --fs-subline: 38px; --fs-pill: 32px; --fs-cta: 28px; --fs-tnc: 15px; }
.cd.crm.fmt-wa-1x1, .cd.crm.tall { --pad: 108px; --logo-w: 300px; --copy-w: 864px; --gap: 10px; --fs-hook: 26px; --fs-eyebrow: 36px; --fs-headline: 60px; --fs-highlight: 90px; --fs-subline: 36px; --fs-pill: 30px; --fs-cta: 26px; --fs-tnc: 15px; }
.cd.crm.fmt-rcs-tall { --pad: 77px; --logo-w: 232px; --copy-w: 616px; --gap: 8px; --fs-hook: 22px; --fs-eyebrow: 30px; --fs-headline: 50px; --fs-highlight: 74px; --fs-subline: 30px; --fs-pill: 26px; --fs-cta: 22px; --fs-tnc: 12px; }

.cd.crm .photo { left: 34%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.cd.crm.fmt-wa-1x1 .photo, .cd.crm.fmt-rcs-tall .photo, .cd.crm.tall .photo {
  top: 46%;
  left: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%);
}
.cd.crm.fmt-wa-1x1 .photo img, .cd.crm.fmt-rcs-tall .photo img, .cd.crm.tall .photo img { object-position: 70% 50%; }
.cd.crm.mirror.fmt-wa-1x1 .photo img, .cd.crm.mirror.fmt-rcs-tall .photo img, .cd.crm.mirror.tall .photo img { object-position: 30% 50%; }

.cd.crm .content { inset: var(--pad); }
.cd.crm.fmt-wa-1x1 .content, .cd.crm.fmt-rcs-tall .content, .cd.crm.tall .content { bottom: 50%; }
/* Stories-like adapts: the top and bottom 13% stay free of text and logo (SOP 8.1) */
.cd.crm.story .content { top: 13%; }
.cd.crm.story .tnc { bottom: 13%; }

.cd.crm .brand-row { display: flex; align-items: center; gap: calc(var(--logo-w) * 0.08); font-size: calc(var(--logo-w) * 0.076); }
.cd.crm .brand-row.badge-right { justify-content: space-between; }
.cd.crm .logo { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.cd.crm .badge-beside .no1 { padding-left: calc(var(--logo-w) * 0.08); border-left: 1.5px solid var(--black); }
.cd.crm .no1 { display: flex; align-items: center; gap: 0.5em; line-height: 1.05; }
.cd.crm .no1-rank { display: flex; flex-direction: column; padding-right: 0.5em; border-right: 1.5px solid var(--black); font-weight: 600; }
.cd.crm .no1-rank b { color: var(--orange); font-size: 1.5em; font-weight: 700; }
.cd.crm .no1-text { font-size: 0.6em; font-weight: 600; line-height: 1.25; }

.cd.crm .copy { flex: 1 1 0; min-height: 0; width: var(--copy-w); margin-top: calc(var(--pad) * 0.3); display: flex; flex-direction: column; justify-content: center; }
.cd.crm.align-center .copy { align-items: center; }
.cd.crm.align-left .copy { align-items: flex-start; }
.cd.crm .stack { display: flex; flex-direction: column; gap: var(--gap); }
.cd.crm.align-center .stack { align-items: center; text-align: center; transform-origin: center; }
.cd.crm.align-left .stack { align-items: flex-start; text-align: left; transform-origin: left center; }

.cd.crm .hook {
  z-index: auto;
  margin: 0 0 4px;
  padding: 0.25em 0.9em 0.3em;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: var(--fs-hook);
  font-style: italic;
  font-weight: 700;
}
/* .eyebrow and .pill also exist in the site styles, so every property they set is reset here. */
.cd.crm .eyebrow { display: flex; align-items: center; gap: 0.45em; margin: 0; color: var(--black); font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1.2; letter-spacing: normal; text-transform: none; }
.cd.crm .eyebrow::before, .cd.crm .eyebrow::after { content: ""; width: 1.4em; height: 2px; background: var(--accent); }
.cd.crm.align-left .eyebrow::before { display: none; }
.cd.crm .eyebrow span { text-wrap: balance; }
.cd.crm .headline { font-size: var(--fs-headline); font-weight: 700; line-height: 1.1; text-wrap: balance; }
.cd.crm .highlight { display: flex; align-items: flex-start; color: var(--accent); font-size: var(--fs-highlight); font-weight: 800; line-height: 1.05; white-space: nowrap; }
.cd.crm .highlight .ast { margin-left: 0.04em; font-size: 0.4em; line-height: 1; }
.cd.crm .highlight.hl-band { margin: 0.12em 0; color: #fff; font-size: calc(var(--fs-highlight) * 0.68); font-weight: 700; }
.cd.crm .hl-band span {
  padding: 0.1em 0.5em 0.14em;
  background: var(--accent);
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
  transform: rotate(-2deg);
}
.cd.crm .hl-band .ast { color: var(--accent); }
.cd.crm .subline { font-size: var(--fs-subline); font-weight: 500; line-height: 1.2; text-wrap: balance; }
.cd.crm .pill { display: block; padding: 0.18em 0.8em 0.24em; border: 0; border-radius: 10px; font-size: var(--fs-pill); font-weight: 500; line-height: 1.2; }
.cd.crm .pill.dark { background: var(--black); color: #fff; }
.cd.crm .pill.light { border: 1.5px solid rgba(26, 22, 23, 0.12); background: #fff; color: var(--black); box-shadow: 0 4px 12px rgba(26, 22, 23, 0.12); }
.cd.crm .offer-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.3em 1.1em 0.5em;
  border: 3px solid var(--accent);
  border-radius: 22px;
  text-align: center;
}
.cd.crm .offer-box .headline { font-size: calc(var(--fs-headline) * 0.72); font-weight: 600; }
.cd.crm .offer-box.has-pill { margin-bottom: calc(var(--fs-pill) * 0.75); padding-bottom: calc(var(--fs-pill) * 0.9); }
.cd.crm .offer-box .pill { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); white-space: nowrap; }
.cd.crm .underline { width: 110px; height: 3px; margin-top: 6px; background: linear-gradient(90deg, var(--accent), rgba(241, 90, 41, 0)); }
.cd.crm .cta { align-self: auto; margin-top: 6px; padding: 0.4em 1.2em 0.45em; font-size: var(--fs-cta); box-shadow: none; }
.cd.crm .tnc {
  position: absolute;
  right: calc(var(--pad) * 0.3);
  bottom: var(--pad);
  color: #fff;
  font-size: var(--fs-tnc);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Wide ad layout for adapts (SOP 8.3): logo top-left, the ribbon stack, the trust items and the button on a
   dark shade over the left; the photo fills the frame and people stand on the right. Sizes are set inline. */
.cd.rw .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(90deg, rgba(26, 22, 23, 0.74) 0%, rgba(26, 22, 23, 0.46) 34%, rgba(26, 22, 23, 0) 56%);
}
.cd.rw .content { inset: var(--pad); }
.cd.rw .logo { padding: calc(var(--logo-w) * 0.06) calc(var(--logo-w) * 0.08); border-radius: 12px; }
.cd.rw .copy { flex: 1 1 0; min-height: 0; width: var(--copy-w); margin-top: calc(var(--pad) * 0.3); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cd.rw .stack { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--fs-cta) * 0.9); transform-origin: left center; }
.cd.rw .ribbons { margin: 0 0 0 4px; }
.cd.rw .trust-row { display: flex; padding: 0.45em 0.3em; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: rgba(26, 22, 23, 0.86); }
.cd.rw .trust-row .item { display: flex; align-items: center; gap: 0.4em; padding: 0 0.6em; }
.cd.rw .trust-row .item + .item { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.cd.rw .trust-row svg { flex: none; width: var(--icon); height: var(--icon); color: var(--orange); }
.cd.rw .trust-row strong { display: block; color: #fff; font-size: var(--fs-num); font-weight: 700; line-height: 1.1; }
.cd.rw .trust-row span { display: block; max-width: 7em; color: var(--neutral); font-size: var(--fs-label); line-height: 1.2; }
.cd.rw .cta { align-self: flex-start; margin-top: 0; padding: 0.45em 1.3em; }
