/* ==========================================================================
   KOBIL — Secure Messenger & Documents — Section: Pre-footer CTA
   Figma: desktop 6015:101801 (1440x644, full-bleed, copy column 539 at x=80,
   vertically centred) · mobile 6149:70087 (393x572, copy at 24/69).
   ========================================================================== */

.sec-smd-cta {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  align-items: center;
  width: calc(100% + var(--page-pad) * 2);
  min-height: var(--w644);
  margin-left: calc(-1 * var(--page-pad));
  padding: var(--w48) var(--w80);
  border-radius: 0;
}

/* Figma stretches the photo to 100% x 105.7% of the band and anchors it
   5.64% above the top edge (6151:71227) — `fill`, not `cover`, so the crop
   matches the design instead of zooming in on it. */
/* `cover`, and the box is the section — nothing else.
   This used to read `top: -5.64%; height: 105.7%; object-fit: fill`, which drew
   the 2880x1287 photo (aspect 2.238) into a 1440x680 box and stretched it 5.8%
   vertically: the woman at the desk came out visibly elongated. Figma has no
   such overscale — its image node (6151:71227) fills the 1440x644 frame exactly
   at 1440x643.5, i.e. the photo's own aspect. `fill` was the whole bug; `cover`
   crops instead of distorting if the section ever grows taller than the frame. */
.smd-cta__photo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.smd-cta__scrim {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: var(--w688);
  max-width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
}

.smd-cta__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--w48);
  width: 100%;
  max-width: var(--w539);
}

.smd-cta__copy {
  display: flex;
  flex-direction: column;
  gap: var(--w12);
  width: 100%;
}

.smd-cta__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--w14);
  font-weight: 500;
  line-height: var(--w32);
  text-transform: uppercase;
  color: var(--navy);
}

.smd-cta__title {
  font-family: var(--font-serif);
  font-size: var(--w56);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

/* Outlined pill (Figma: 1px System/100% border, no fill) */
.smd-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--w8);
  height: var(--w56);
  padding: var(--w8) var(--w20) var(--w8) var(--w24);
  border: 1px solid var(--navy);
  border-radius: var(--w32);
  background: transparent;
  font-family: var(--font-ui);
  font-size: var(--w16);
  font-weight: 600;
  line-height: var(--w20);
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.smd-cta__btn:hover {
  background: var(--navy);
  color: var(--white);
}

.smd-cta__btn-icon {
  flex: none;
  width: var(--w18);
  height: var(--w18);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.smd-cta__btn:hover .smd-cta__btn-icon {
  transform: translateX(3px);
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .sec-smd-cta {
    min-height: var(--m572);
    padding: var(--m69) var(--m24);
    align-items: flex-start;
  }

  /* The phone frame (6149:70088) is a 393x572 portrait crop of the same
     landscape photo, and it is NOT the middle of it: centred `cover` put the
     city skyline in frame and pushed the woman — the subject — off the right
     edge, leaving only her reflection. Correlating Figma's crop against the
     asset puts it at 80% across (x=1598 of 2880), which is what this restores.
     Only `object-position` is needed here; `top`/`height`/`object-fit` now match
     the desktop rule. */
  .smd-cta__photo {
    object-position: 80% center;
  }

  /* The phone frame shows the photograph without the white wash. */
  .smd-cta__scrim { display: none; }

  .smd-cta__content {
    gap: var(--m32);
    max-width: var(--m321);
  }

  .smd-cta__copy { gap: var(--m8); }
  .smd-cta__eyebrow { font-size: var(--m12); line-height: var(--m32); }
  .smd-cta__title { font-size: var(--m28); line-height: var(--m36); }

  .smd-cta__btn {
    height: var(--m40);
    padding: var(--m4) var(--m12) var(--m4) var(--m16);
    border-radius: var(--m32);
    font-size: var(--m14);
    line-height: var(--m18);
  }
  .smd-cta__btn-icon { width: var(--m18); height: var(--m18); }
}
