/* ==========================================================================
   KOBIL — /trusted-identity/ page-specific styles.
   Figma: 2-Trusted Identity (identity) 5501:32569 (desktop 1440x7412) and
   2-Trusted Identity 5501:32987 (mobile 393x8211).

   The page is assembled from the SuperApp pages' shared section chrome
   (css/superapp/_shared/*): sa-section + sa-head, numbers, features,
   showcase, faq, and cta are reused 1:1 — this file only carries what is
   unique to this page: the hero breadcrumb, the title metrics, the
   overview/approach media, and the six-card benefits grid.
   ========================================================================== */

/* ---- Hero (5821:29416) — sa-hero chrome + a breadcrumb eyebrow and the
   1:1 line metrics of the 82px title (Figma: line-height 100%, 12px gap,
   vs the SuperApp hero's tighter 62px/20px). ---- */

.sec-ti-hero .sec-sa-hero__title {
  gap: var(--w12);
  line-height: 1;
}

.sec-ti-hero__accent {
  background: linear-gradient(90deg, #696ef5 0%, #849ff8 43%, #ca80f4 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #849ff8;
  -webkit-text-fill-color: transparent;
}

.sec-ti-hero__crumbs {
  color: var(--navy-80);
}

.sec-ti-hero__crumb-link {
  color: inherit;
  transition: color 0.2s var(--ease);
}

.sec-ti-hero__crumb-link:hover {
  color: var(--blue);
}

.sec-ti-hero__crumb-dot {
  flex: 0 0 auto;
  width: var(--w3);
  height: var(--w3);
  border-radius: 50%;
  background: currentColor;
}

/* ---- Overview (5501:32582) — the terrace render is a rounded photo. ---- */

/* Overview title (Figma 5501:32665). The gradient there is measured across the
   whole 563 copy column, not across the words it paints — its last stop sits at
   52.929% of that column while the glyphs end near 59% of it. An inline span
   would box the gradient to the glyph run and compress every stop, so the second
   line becomes a block: same width as the column, so the percentages the section
   sets in `--title-gradient` land exactly where Figma puts them. Making it a
   block is also what breaks the line, which is why the markup carries no <br>. */
#trusted-identity-overview .sa-title__accent {
  display: block;
}

.sec-ti-overview__img {
  border-radius: var(--w24);
}

/* ---- Approach (5501:32670) — the flattened Core ID diagram. Its export
   includes the two faint outer rings, so the box is 824px against the
   568px inner circle; Figma puts its right edge ~5px inside the padded
   area, which justify-self: end on .sa-split__media already provides. ---- */

.sec-ti-approach__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Benefits (5501:32695) — six flat cards on white, 3x2 desktop. ---- */

.sec-ti-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--w60);
  margin-top: var(--w60);
}

.sec-ti-benefits__card {
  padding: var(--w24);
}

.sec-ti-benefits__icon {
  display: block;
  width: var(--w48);
  height: var(--w48);
}

.sec-ti-benefits__card-title {
  margin-top: var(--w12);
  font-family: var(--font-sans);
  font-size: var(--w20);
  font-weight: 500;
  line-height: var(--w26);
  color: var(--navy);
}

.sec-ti-benefits__card-text {
  margin-top: var(--w8);
  font-family: var(--font-sans);
  font-size: var(--w16);
  font-weight: 400;
  line-height: var(--w23);
  color: var(--navy-70);
}

/* The two accent words are effectively flat colour: the title-wide Figma
   gradient samples pure blue under "Six" and pure pink under "One". */
.sec-ti-benefits__accent-blue {
  color: #1046cf;
}

.sec-ti-benefits__accent-pink {
  color: #ca80f4;
}

/* ---- Features (5501:32734) — the shield composition is wider than the
   SuperApp pages' 646px default media cap. ---- */

.sec-ti-features__media {
  max-width: var(--w729);
}

/* --------------------------------------------------------------------------
   Responsive — phone frame 5501:32987 (393): benefits go 2-up with 40px
   icons and the smaller type ramp; everything else is handled by the
   shared section CSS.
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .sec-ti-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--m20);
    row-gap: var(--m24);
    margin-top: var(--m40);
  }

  .sec-ti-benefits__card {
    padding: 0;
  }

  .sec-ti-benefits__icon {
    width: var(--m40);
    height: var(--m40);
  }

  .sec-ti-benefits__card-title {
    margin-top: var(--m12);
    font-size: var(--m16);
    font-weight: 600;
    line-height: var(--m23);
  }

  .sec-ti-benefits__card-text {
    margin-top: var(--m4);
    font-size: var(--m14);
    line-height: var(--m20);
  }

  /* The mobile frame centres the smaller circle crop under the copy. */
  .sec-ti-approach__media {
    justify-self: center;
  }
}
