/* eMudhra Trust Center campaign landing page (/<en|en-in>/trust-center/).
   Loaded only by views/pages/trust-center/index.ejs, after /css/stylesheet.css and /css/common/landing.css.
   Colours = site variables only (blue = --primary-*, orange = --secondary-*). Headings use the site's .h1–.h4.
   Bump ?v= in the page's <link> whenever this file changes (static assets are cached for a year). */

/* Sticky header offset for in-page anchors */
.tc-page [id] { scroll-margin-top: 84px; }

/* Header. stylesheet.css sets html, body { height: 100% }, which caps a sticky element to the first screen;
   let the body grow so the header stays pinned (same fix as the DPDP campaign page). */
body.tc-page { height: auto; }
/* Safety net: nothing (e.g. HubSpot's modal overlay, which sits a few px past the right edge) can add a sideways
   scroll. "clip", not "hidden": hidden would turn body into a scroll container and break the sticky header. */
html:has(body.tc-page), body.tc-page { overflow-x: clip; }
.tc-header { z-index: 1030; }
.tc-header .container { min-height: 68px; }
.tc-header__logo img { display: block; height: 40px; width: auto; }
.tc-header__label { color: var(--neutral-900); border-color: var(--neutral-300) !important; line-height: 1.2; }
.tc-header__nav a { color: var(--neutral-600); transition: color .3s ease; }
.tc-header__nav a:hover, .tc-header__nav a:focus-visible { color: var(--primary-600); }
@media (max-width: 575.98px) {
  .tc-header__logo img { height: 34px; }
}

/* Eyebrow tracking (campaign: tracked-out caps) */
.tc-eyebrow { letter-spacing: .12em; line-height: 1.4; }

/* Icon chips (copied from the DPDP page's .dpdp-ic, with the site's 12px radius well) */
.tc-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius12); font-size: 24px; line-height: 1; }
.tc-ic--lg { width: 56px; height: 56px; font-size: 30px; }
.tc-ic--blue { color: var(--primary-700); background: var(--primary-050); }
.tc-ic--orange { color: var(--secondary-500); background: var(--secondary-100); }
.tc-ic--inline { width: auto; height: auto; font-size: 20px; color: var(--secondary-500); background: none; }
.tc-card h4, .tc-card p.tc-strong { color: var(--neutral-900); }

/* "Build like a fort": blueprint illustration + wall cards as rows */
.tc-bp { width: 100%; border-radius: var(--radius20); overflow: hidden; max-width: 560px; margin-inline: auto; }
.tc-bp__svg { display: block; width: 100%; height: auto; }
.tc-bp__core { font-family: var(--DMSans), sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .1em; fill: var(--secondary-700); }
.tc-bp__num { font-family: var(--DMSans), sans-serif; font-size: 12px; font-weight: 700; fill: var(--white); }
.tc-bp__tag { font-family: var(--DMSans), sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .1em; fill: var(--neutral-900); }
.tc-bp__wall, .tc-bp__towers, .tc-bp__label rect { transition: stroke .4s ease, stroke-width .4s ease, fill .4s ease; }
.tc-bp__ring.is-active .tc-bp__wall, .tc-bp__ring.is-active .tc-bp__towers { stroke: var(--secondary-500); }
.tc-bp__ring.is-active .tc-bp__wall { stroke-width: 10; }
.tc-bp__label.is-active rect { stroke: var(--secondary-500); fill: var(--secondary-100); }
.tc-wall { flex-direction: row !important; align-items: flex-start !important; gap: 16px; padding: 12px 20px; height: auto; cursor: default; border: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease; }
/* Side by side (xl+): the three cards share the column height, which the row stretches to the illustration's height.
   Below xl the illustration stacks above the cards (its column is too narrow beside them). */
@media (min-width: 1200px) {
  .tc-walls .tc-wall { flex: 1 1 0; align-items: center !important; }
}
.tc-wall:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; }
.tc-wall .tc-ic { transition: background-color .3s ease, color .3s ease; }
.tc-wall.is-active { border-color: var(--secondary-300); box-shadow: 0 8px 28px 0 rgba(255, 90, 31, .14); }
.tc-wall.is-active .tc-ic { background: var(--secondary-500); color: var(--white); }
@media (max-width: 575.98px) {
  .tc-wall { flex-direction: column !important; gap: 12px; padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tc-bp__patrol { transform-box: fill-box; transform-origin: center; animation: tcPatrol 24s linear infinite; }
  .tc-bp__halo { transform-box: fill-box; transform-origin: center; animation: tcGlow 2.8s ease-in-out infinite; }
}
@keyframes tcPatrol { to { transform: rotate(360deg); } }

/* Citadel band (light surface, per brand) */
.tc-citadel { flex-direction: row !important; align-items: center !important; justify-content: space-between; gap: 20px; padding: 24px; }
@media (max-width: 767.98px) {
  .tc-citadel { flex-direction: column !important; align-items: flex-start !important; }
}

/* Problem: open grid, no boxes. Hairline dividers between cells only (no outer frame). */
.tc-grid__cell { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 24px; border: 0 solid var(--neutral-200); transition: background-color .3s ease; }
.tc-grid__cell h4 { color: var(--neutral-900); }
.tc-grid__cell .tc-ic { transition: background-color .3s ease, color .3s ease; }
.tc-grid__cell:hover { background: var(--primary-050); }
.tc-grid__cell:hover .tc-ic { background: var(--primary-600); color: var(--white); }
@media (max-width: 767.98px) {            /* 1 column */
  .tc-grid__cell { padding: 24px 4px; }
  .tc-grid__cell:not(:last-child) { border-bottom-width: 1px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {   /* 2 columns */
  .tc-grid__cell:nth-child(odd) { border-right-width: 1px; }
  .tc-grid__cell:nth-child(-n+4) { border-bottom-width: 1px; }
}
@media (min-width: 992px) {               /* 3 columns */
  .tc-grid__cell { padding: 32px; }
  .tc-grid__cell:not(:nth-child(3n)) { border-right-width: 1px; }
  .tc-grid__cell:nth-child(-n+3) { border-bottom-width: 1px; }
}

/* Journey: timeline. Nodes sit on one line that runs from blue (the walls) to orange (the citadel). */
.tc-timeline { position: relative; display: grid; gap: 0; }
.tc-timeline__item { position: relative; display: flex; align-items: flex-start; gap: 20px; padding-bottom: 32px; }
/* Vertical (below lg): one segment per step, node centre → next node centre, so the line ends at the citadel */
.tc-timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: -28px; width: 2px; background: var(--primary-300); }
.tc-timeline__item:nth-last-child(2)::before { background: linear-gradient(180deg, var(--primary-300), var(--secondary-300)); }
.tc-timeline__item:last-child { padding-bottom: 0; }
.tc-timeline__node { position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary-200); color: var(--primary-700); font-size: 26px; box-shadow: 0 0 0 6px var(--white); }
.tc-timeline__item--end .tc-timeline__node { background: var(--secondary-100); border-color: var(--secondary-300); color: var(--secondary-500); box-shadow: 0 0 0 6px var(--white), 0 0 0 14px rgba(255, 138, 76, .18); }
.tc-timeline__body { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.tc-timeline__body h4 { color: var(--neutral-900); }
@media (min-width: 992px) {
  .tc-timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .tc-timeline__item::before { display: none; }
  .tc-timeline::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary-300), var(--secondary-300)); }
  .tc-timeline__item { flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-bottom: 0; }
  .tc-timeline__body { align-items: center; padding-top: 0; }
}

/* Chips: linked product pages and deployment options */
.tc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--neutral-200); background: var(--white); color: var(--neutral-700); line-height: 1.3; }
.tc-chip--link { border-color: var(--primary-200); background: var(--primary-050); color: var(--primary-700); text-decoration: none; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.tc-chip--link:hover, .tc-chip--link:focus-visible { background: var(--primary-600); border-color: var(--primary-600); color: var(--white); }

/* Hero fort illustration */
.tc-fort { position: relative; }   /* no frame: the SVG fades into the hero through its own mask */
.tc-fort__svg { display: block; width: 100%; height: auto; }
@media (max-width: 991.98px) {
  .tc-fort { max-width: 560px; margin-inline: auto; }   /* hero stacks below lg: keep the drawing a sensible size */
}
.tc-fort__num { font-family: var(--DMSans), sans-serif; font-size: 12px; font-weight: 700; fill: var(--white); }
.tc-fort__num--sm { font-size: 12px; }
.tc-fort__label { font-family: var(--DMSans), sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .1em; fill: var(--neutral-900); }
.tc-fort__caption { font-family: var(--DMSans), sans-serif; font-size: 13px; font-weight: 600; fill: var(--neutral-600); }
@media (prefers-reduced-motion: no-preference) {
  .tc-fort__halo { transform-box: fill-box; transform-origin: center; animation: tcGlow 2.8s ease-in-out infinite; }
  .tc-fort__path { animation: tcCreep 1.2s linear infinite; }
}
@keyframes tcGlow { 0%, 100% { transform: scale(.85); opacity: .35; } 50% { transform: scale(1.15); opacity: .6; } }
@keyframes tcCreep { to { stroke-dashoffset: -12; } }

/* Footer */
.tc-footer__logo img { display: block; height: 40px; width: auto; }
.tc-footer__sub { gap: 12px; flex-wrap: wrap; }
