/* =====================================================================
   Appslin — inner pages (About, Team, Contact, Portfolio, Work Process,
   Privacy, Refund, 404). Built on home-shared.css + home-design-1.css,
   same Blueprint language: blueprint-grid page heroes, navy accents.
   ===================================================================== */

/* ---------------- Page hero ---------------- */
.pg-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 80px) clamp(44px, 6vw, 84px);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(16, 185, 129, .10), transparent 70%),
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(37, 99, 235, .10), transparent 70%),
    #fbfdff;
}
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pg-hero--simple .pg-hero-grid { grid-template-columns: minmax(0, 1fr); }
.pg-hero--simple .pg-hero-grid > div { max-width: 820px; }
.pg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.pg-crumbs a { color: var(--blue-600); }
.pg-crumbs a:hover { color: var(--green-700); }
.pg-crumbs .i { width: 14px; height: 14px; }
.pg-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; color: var(--navy-900); margin-bottom: 18px; }
.pg-hero h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-lede { font-size: clamp(1.02rem, 1.3vw, 1.14rem); max-width: 58ch; }
.pg-hero .d1-actions { margin-bottom: 0; }

/* Stat strip used inside heroes */
.pg-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(10, 31, 68, .08); }
.pg-stats > div { padding: 24px 24px 22px; display: grid; gap: 4px; border-bottom: 1px solid var(--line); }
.pg-stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.pg-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.pg-stats dt { order: 2; font-size: .88rem; color: var(--muted); }
.pg-stats dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1; color: var(--navy-900); font-variant-numeric: tabular-nums; }

/* ---------------- Generic blocks ---------------- */
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.pg-split--top { align-items: start; }
.pg-prose { display: grid; gap: 16px; }
.pg-prose p { max-width: 64ch; }
.pg-photo { margin: 0; border-radius: 22px; overflow: hidden; position: relative; }
.pg-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.pg-photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(255, 255, 255, .94); border-radius: 12px; padding: 12px 14px; font-size: .9rem; font-weight: 600; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.pg-photo figcaption .i { color: var(--green-600); width: 20px; height: 20px; }

.pg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pg-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.d1-sec--tint .pg-card { background: #fff; }
.pg-card > .i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.pg-card h3 { font-size: 1.15rem; }
.pg-card p { font-size: .95rem; }
.pg-card--navy { background: var(--navy-900); border-color: var(--navy-900); color: rgba(255, 255, 255, .75); }
.pg-card--navy h3 { color: #fff; }
.pg-card--navy > .i { background: rgba(255, 255, 255, .08); color: var(--green-500); }

/* Mission / vision pair */
.pg-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pg-mv article { border-radius: 24px; padding: clamp(26px, 4vw, 44px); display: grid; gap: 14px; align-content: start; }
.pg-mv article:first-child { background: var(--navy-900); color: rgba(255, 255, 255, .78); }
.pg-mv article:first-child h2 { color: #fff; }
.pg-mv article:last-child { background: #fff; border: 1px solid var(--line); }
.pg-mv .pg-mv-tag { font-family: var(--f-display); font-weight: 700; font-size: .85rem; color: var(--gold-400); }
.pg-mv article:last-child .pg-mv-tag { color: var(--gold-600); }
.pg-mv h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* Numbered cycle (a real sequence) */
.pg-cycle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; counter-reset: cyc; }
.pg-cycle li { counter-increment: cyc; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.pg-cycle li::before { content: counter(cyc, decimal-leading-zero); font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--blue-600); width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.pg-cycle h3 { font-size: 1.08rem; margin-bottom: 4px; }
.pg-cycle p { font-size: .94rem; }

/* Certification seals */
.pg-seals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pg-seal { display: flex; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pg-seal .i { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: #f8f0df; color: var(--gold-600); }
.pg-seal b { display: block; font-family: var(--f-display); color: var(--ink); font-size: 1.02rem; }
.pg-seal span { font-size: .88rem; color: var(--muted); }

/* Offices */
.pg-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pg-office { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; display: grid; }
.pg-office-map { aspect-ratio: 16 / 8; background: var(--surface); position: relative; }
.pg-office-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pg-office-map--art { background: var(--blue-50); display: grid; place-items: center; }
.pg-office-map--art .i { width: 44px; height: 44px; color: var(--blue-600); filter: drop-shadow(0 8px 12px rgba(37, 99, 235, .3)); }
.pg-office-body { padding: 22px 24px 24px; display: grid; gap: 8px; }
.pg-office-body h3 { font-size: 1.2rem; }
.pg-office-body .d1-link { justify-self: start; margin-top: 4px; }

/* CTA band */
.pg-cta { border-radius: 28px; padding: clamp(30px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: center; color: rgba(255, 255, 255, .78);
  background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(16, 185, 129, .3), transparent 60%), var(--navy-900); }
.pg-cta h2 { color: #fff; margin-bottom: 10px; }
.pg-cta .d1-actions { margin: 0; }
.pg-cta .hx-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.pg-cta .hx-btn--ghost:hover { background: #fff; color: var(--navy-900); }

/* ---------------- Team ---------------- */
.pg-directors { display: grid; gap: 22px; }
.pg-director { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 36px); }
.pg-director:nth-child(even) { grid-template-columns: minmax(0, 1fr) 300px; }
.pg-director:nth-child(even) .pg-portrait { order: 2; }
.pg-portrait { position: relative; aspect-ratio: 1 / 1.08; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, var(--blue-100), var(--green-100)); display: grid; place-items: center; }
.pg-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pg-initials { font-family: var(--f-display); font-weight: 800; font-size: 3.4rem; color: var(--navy-800); letter-spacing: -.02em; }
.pg-director blockquote { margin: 0; display: grid; gap: 14px; }
.pg-director blockquote p { font-size: 1.02rem; color: var(--body); }
.pg-director blockquote p:first-child { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink); }
.pg-director footer { display: grid; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.pg-director footer b { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }
.pg-director footer span { color: var(--gold-600); font-weight: 600; font-size: .92rem; }

.pg-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pg-member { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; transition: transform .3s var(--ease), box-shadow .3s; }
.pg-member:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(10, 31, 68, .1); }
.pg-member .pg-portrait { border-radius: 0; aspect-ratio: 1 / 1; }
.pg-member .pg-initials { font-size: 2.6rem; }
.pg-member-body { padding: 16px 18px 18px; display: grid; gap: 2px; }
.pg-member-body b { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }
.pg-member-body span { font-size: .9rem; color: var(--ink); font-weight: 600; }
.pg-member-body small { font-size: .84rem; color: var(--muted); }
.pg-member--join { background: var(--navy-900); border-color: var(--navy-900); color: rgba(255, 255, 255, .75); padding: 24px; align-content: end; gap: 10px; }
.pg-member--join b { color: #fff; font-family: var(--f-display); font-size: 1.2rem; }
.pg-member--join .d1-link { color: #fff; border-color: rgba(255, 255, 255, .25); justify-self: start; }

.pg-perk { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.pg-perk .i { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--green-100); color: var(--green-700); }

/* ---------------- Contact ---------------- */
.pg-channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.pg-channel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 6px; align-content: start; box-shadow: 0 20px 44px rgba(10, 31, 68, .08); }
.pg-channel .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 6px; }
.pg-channel--wa .i { background: #e3f9ec; color: #128c4b; }
.pg-channel small { font-size: .82rem; color: var(--muted); font-weight: 600; }
.pg-channel a { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; word-break: break-word; }
.pg-channel a:hover { color: var(--blue-600); }
.pg-channel p { font-size: .86rem; }
.pg-contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pg-contact-aside { display: grid; gap: 20px; position: sticky; top: 110px; }
.pg-hours { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: #fff; display: grid; gap: 10px; }
.pg-hours h3 { font-size: 1.05rem; }
.pg-hours ul { display: grid; gap: 8px; font-size: .93rem; }
.pg-hours li { display: flex; gap: 10px; align-items: flex-start; }
.pg-hours .i { color: var(--green-600); margin-top: 4px; }
.pg-form-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 30px 70px rgba(10, 31, 68, .08); min-width: 0; }
.pg-form-card h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 6px; }
.pg-form-card > p { margin-bottom: 22px; }

/* ---------------- Portfolio ---------------- */
.pg-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.pg-filter button { font: inherit; font-weight: 600; font-size: .92rem; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.pg-filter button:hover { border-color: var(--blue-400); }
.pg-filter button[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.pg-filter button small { opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }
[data-cat][hidden] { display: none !important; }

.pg-erp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.pg-erp:first-of-type { border-top: 0; padding-top: 0; }
.pg-erp:nth-of-type(even) .pg-erp-visual { order: 2; }
.pg-erp-visual { position: relative; padding: clamp(18px, 3vw, 34px); border-radius: 26px; background: var(--erp-soft, var(--blue-50)); }
.pg-erp-visual .erp-ui { font-size: 12.5px; box-shadow: 0 30px 60px rgba(10, 31, 68, .14); }
.pg-erp-visual .erp-ui-body { min-height: 250px; }
.pg-erp-visual .erp-ui-kpis b { font-size: 16px; }
.pg-erp-visual .erp-ui-kpis small, .pg-erp-visual .erp-ui-rows em { font-size: 10.5px; }
.pg-erp-visual figcaption { margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; }
.pg-erp--hospital { --erp: #0a9d68; --erp-soft: #e3f7ef; }
.pg-erp--salon { --erp: #a5803a; --erp-soft: #f8f0df; }
.pg-erp--footwear { --erp: #2563eb; --erp-soft: #e6efff; }
.pg-erp-copy { display: grid; gap: 14px; align-content: start; }
.pg-erp-tag { justify-self: start; font-size: .82rem; font-weight: 700; color: var(--erp); background: var(--erp-soft); padding: 5px 12px; border-radius: 100px; }
.pg-erp-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.pg-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 6px 0; }
.pg-modules li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink); line-height: 1.45; }
.pg-modules .i { color: var(--erp); margin-top: 3px; }
.pg-erp-for { font-size: .92rem; color: var(--muted); }
.pg-erp-for b { color: var(--ink); }

.pg-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.pg-work { display: grid; gap: 12px; align-content: start; }
.pg-work .d1-frame { box-shadow: 0 24px 50px rgba(10, 31, 68, .12); border: 1px solid var(--line); }
.pg-work h3 { font-size: 1.3rem; margin-top: 6px; }
.pg-work .d1-tags li { color: var(--blue-600); background: var(--blue-50); border: 0; }

.pg-concepts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------------- Work process ---------------- */
.pg-stages { position: relative; display: grid; gap: 18px; }
.pg-stages::before { display: none; content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(180deg, var(--blue-400) 0 8px, transparent 8px 14px); opacity: .5; }
.pg-stage { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, .8fr); gap: 22px 28px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.pg-stage-n { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--blue-500); color: var(--blue-600); font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; position: relative; z-index: 1; margin: -4px 0 0 -4px; }
.pg-stage:last-child .pg-stage-n { background: var(--grad-brand); color: #fff; border-color: transparent; }
.pg-stage h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pg-stage-get { background: var(--surface); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.pg-stage-get small { font-weight: 700; color: var(--muted); font-size: .8rem; }
.pg-stage-get li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ink); line-height: 1.45; }
.pg-stage-get .i { color: var(--green-600); margin-top: 3px; }

/* ---------------- Legal pages ---------------- */
.pg-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pg-toc { position: sticky; top: 110px; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.pg-toc b { font-family: var(--f-display); color: var(--ink); font-size: .95rem; padding: 0 0 10px 16px; }
.pg-toc a { color: var(--body); font-size: .92rem; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.pg-toc a:hover { color: var(--blue-600); border-color: var(--blue-500); }
.pg-legal-body { display: grid; gap: 0; max-width: 760px; }
.pg-legal-body section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.pg-legal-body section:first-child { border-top: 0; padding-top: 0; }
.pg-legal-body h2 { font-size: 1.35rem; margin-bottom: 10px; }
.pg-legal-body p + p { margin-top: 10px; }
.pg-legal-body ul { display: grid; gap: 8px; margin-top: 10px; }
.pg-legal-body li { display: flex; gap: 10px; align-items: flex-start; }
.pg-legal-body li .i { color: var(--blue-500); margin-top: 4px; }
.pg-legal-body a { color: var(--blue-600); font-weight: 600; }
.pg-note { margin-top: 10px; background: var(--blue-50); border-radius: 14px; padding: 16px 18px; font-size: .94rem; color: var(--ink); }

/* ---------------- 404 ---------------- */
.pg-404 { text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pg-404-code { font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 18vw, 13rem); line-height: .9; letter-spacing: -.06em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-404-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.pg-404-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font-weight: 600; font-size: .94rem; }
.pg-404-links a:hover { border-color: var(--blue-400); color: var(--blue-600); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .pg-hero-grid { grid-template-columns: 1fr; }
  .pg-cards--4, .pg-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-channels { grid-template-columns: 1fr 1fr; }
  .pg-contact { grid-template-columns: 1fr; }
  .pg-contact-aside { position: static; order: 2; }
  .pg-erp { grid-template-columns: 1fr; }
  .pg-erp:nth-of-type(even) .pg-erp-visual { order: 0; }
  .pg-concepts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-stage { grid-template-columns: 64px minmax(0, 1fr); }
  .pg-stage-get { grid-column: 2; }
}
@media (max-width: 860px) {
  .pg-split, .pg-mv, .pg-offices, .pg-404 { grid-template-columns: 1fr; }
  .pg-cards--3, .pg-seals { grid-template-columns: 1fr; }
  .pg-cards--4, .pg-team { grid-template-columns: 1fr 1fr; }
  .pg-cycle { grid-template-columns: 1fr; }
  .pg-director, .pg-director:nth-child(even) { grid-template-columns: 1fr; }
  .pg-director:nth-child(even) .pg-portrait { order: 0; }
  .pg-director .pg-portrait { max-width: 280px; }
  .pg-works { grid-template-columns: 1fr; }
  .pg-legal { grid-template-columns: 1fr; }
  .pg-toc { position: static; grid-template-columns: 1fr 1fr; border-left: 0; gap: 4px; }
  .pg-toc b { grid-column: 1 / -1; padding-left: 0; }
  .pg-toc a { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; }
  .pg-cta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pg-cards { grid-template-columns: 1fr; }
  .pg-channels { grid-template-columns: 1fr; margin-top: -32px; }
  .pg-modules { grid-template-columns: 1fr; }
  .pg-concepts { grid-template-columns: 1fr 1fr; }
  .pg-stages::before { left: 23px; }
  .pg-stage { grid-template-columns: 1fr; padding: 20px; }
  .pg-stage-n { width: 48px; height: 48px; font-size: 1.05rem; margin: 0; }
  .pg-stage-get { grid-column: auto; }
  .pg-404-links { grid-template-columns: 1fr; }
  .pg-erp-visual .erp-ui { font-size: 11px; }
  .pg-erp-visual .erp-ui-body { min-height: 0; grid-template-columns: 1fr; }
  .pg-erp-visual .erp-ui-nav { display: none; }
  .pg-concepts .d1-concept h3 { padding: 14px 14px 4px; font-size: 1rem; }
  .pg-concepts .d1-concept button { margin: 4px 14px 16px; font-size: .84rem; }
}

/* =====================================================================
   v3: team photo fit, legal "at a glance", career, blog, article
   ===================================================================== */
/* Team photos on the live site are PNG cut-outs: show the whole person, anchored to the bottom */
.pg-portrait img { object-fit: contain; object-position: center bottom; }
.pg-member .pg-portrait img { padding-top: 10px; }

/* Legal at-a-glance */
.pg-glance-sec { margin-top: -34px; position: relative; z-index: 2; }
.pg-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pg-glance-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 4px; align-content: start; box-shadow: 0 20px 44px rgba(10, 31, 68, .08); border-top: 4px solid var(--tone); }
.pg-glance-item--blue { --tone: #2563eb; } .pg-glance-item--green { --tone: #10b981; } .pg-glance-item--gold { --tone: #a5803a; } .pg-glance-item--navy { --tone: #0a1f44; }
.pg-glance-item .i { width: 22px; height: 22px; color: var(--tone); margin-bottom: 6px; }
.pg-glance-item small { font-size: .8rem; font-weight: 700; color: var(--muted); }
.pg-glance-item b { font-family: var(--f-display); font-size: 1.08rem; color: var(--ink); line-height: 1.3; }
.pg-glance-item p { font-size: .88rem; }
.pg-legal-body section { counter-increment: legal; }
.pg-legal-body { counter-reset: legal; }
.pg-legal-body section h2::before { content: counter(legal) ". "; color: var(--blue-500); }

/* Career */
.cr-jobs { display: grid; gap: 12px; }
.cr-job { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.cr-job:hover { border-color: var(--blue-400); box-shadow: 0 18px 40px rgba(10, 31, 68, .08); transform: translateY(-2px); }
.cr-job-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.cr-job-ico .i { width: 22px; height: 22px; }
.cr-job small { font-size: .8rem; font-weight: 700; color: var(--green-700); }
.cr-job h3 { font-size: 1.15rem; }
.cr-note { margin-top: 20px; font-size: .95rem; }
.cr-note a { color: var(--blue-600); font-weight: 600; }

/* Blog page */
.bl-feature { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(10, 31, 68, .1); display: grid; }
.bl-feature .bl-body h2 { font-size: 1.35rem; }
.bl-feature .bl-body h2 a { color: var(--ink); }

/* Article */
.ar-progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.ar-progress span { display: block; height: 100%; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(0); }
.ar-hero .bl-meta { margin-bottom: 14px; }
.ar-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.ar-sec { padding-top: clamp(32px, 4vw, 56px); }
.ar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.ar-body { max-width: 720px; font-size: 1.06rem; line-height: 1.8; }
.ar-body > p { margin-bottom: 1.1em; color: var(--body); }
.ar-body h2 { font-size: 1.45rem; margin: 1.6em 0 .5em; scroll-margin-top: 100px; }
.ar-body h3 { font-size: 1.12rem; margin: 1.3em 0 .35em; color: var(--ink); }
.ar-body > ul { margin: 0 0 1.2em; padding-left: 1.3em; color: var(--body); }
.ar-body > ul li { margin-bottom: .35em; }
.ar-body > p strong, .ar-body > p b { color: var(--ink); font-weight: 600; }
.ar-body > p a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.ar-cover { border-radius: 20px; margin-bottom: 28px; aspect-ratio: 16 / 8; }
.ar-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.ar-share b { font-family: var(--f-display); color: var(--ink); margin-right: 6px; }
.ar-share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy-800); }
.ar-share a:hover { background: var(--navy-900); color: #fff; }
.ar-side { position: sticky; top: 110px; display: grid; gap: 22px; }
.ar-cta { background: var(--navy-900); color: rgba(255, 255, 255, .75); border-radius: 20px; padding: 22px; display: grid; gap: 10px; }
.ar-cta h3 { color: #fff; font-size: 1.15rem; }
.ar-cta .hx-btn { justify-self: start; }
.ar-cta .d1-link { color: #fff; border-color: rgba(255, 255, 255, .25); justify-self: start; }

@media (max-width: 1080px) {
  .pg-glance { grid-template-columns: 1fr 1fr; }
  .ar-layout { grid-template-columns: 1fr; }
  .ar-side { position: static; }
}
@media (max-width: 600px) {
  .pg-glance { grid-template-columns: 1fr; }
  .cr-job { grid-template-columns: auto minmax(0, 1fr); }
  .cr-job .hx-btn { grid-column: 1 / -1; width: 100%; }
  .ar-body { font-size: 1rem; }
}
.pg-portrait .pg-initials { display: none; }
.pg-portrait.no-photo .pg-initials { display: block; }

/* =====================================================================
   Our Team v4 — portrait mosaic, director cards, department grid
   ===================================================================== */
.tm-av--dev, .tm-card--dev { --tm: #2563eb; --tm-soft: #dbe8ff; --tm-deep: #1c4ed8; }
.tm-av--mgmt, .tm-card--mgmt { --tm: #0a9d68; --tm-soft: #d4f4e6; --tm-deep: #067a52; }
.tm-av--sales, .tm-card--sales { --tm: #a5803a; --tm-soft: #f5ead2; --tm-deep: #8a6a2c; }
.tm-av--legal, .tm-card--legal { --tm: #102c5e; --tm-soft: #dfe5f0; --tm-deep: #0a1f44; }

/* Hero */
.tm-facts { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.tm-facts > div { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); display: grid; }
.tm-facts > div:last-child { border: 0; margin: 0; padding: 0; }
.tm-facts dt { order: 2; font-size: .84rem; color: var(--muted); }
.tm-facts dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--navy-900); letter-spacing: -.02em; }
.tm-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; padding-bottom: 46px; }
.tm-av { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff 0%, var(--tm-soft) 70%); border: 4px solid #fff; box-shadow: 0 18px 40px rgba(10, 31, 68, .14); }
.tm-av:nth-child(even) { transform: translateY(46px); }
.tm-av img { position: absolute; left: 6%; right: 6%; bottom: 0; width: 88%; height: 92%; object-fit: contain; object-position: center bottom; }
.tm-av--count { display: grid; place-content: center; text-align: center; background: var(--grad-brand); color: rgba(255, 255, 255, .85); }
.tm-av--count b { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: #fff; line-height: 1; }
.tm-av--count span { font-size: .8rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .tm-av { animation: tm-pop .7s var(--ease) both; }
  .tm-av:nth-child(2) { animation-delay: .06s; } .tm-av:nth-child(3) { animation-delay: .12s; } .tm-av:nth-child(4) { animation-delay: .18s; }
  .tm-av:nth-child(5) { animation-delay: .24s; } .tm-av:nth-child(6) { animation-delay: .3s; } .tm-av:nth-child(7) { animation-delay: .36s; } .tm-av:nth-child(8) { animation-delay: .42s; }
}
@keyframes tm-pop { from { opacity: 0; scale: .85; } }

/* Directors */
.tm-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tm-leader { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); box-shadow: 0 24px 60px rgba(10, 31, 68, .08); }
.tm-leader-photo { position: relative; min-height: 360px;
  background: linear-gradient(170deg, #102c5e 0%, #0a1f44 60%, #0a5a4c 140%); }
.tm-leader-photo img { position: absolute; inset: 14px 0 0; width: 100%; height: calc(100% - 14px); object-fit: contain; object-position: center bottom; }
.tm-leader-body { padding: 28px 28px 26px; display: grid; gap: 6px; align-content: start; }
.tm-leader-role { font-size: .84rem; font-weight: 700; color: var(--gold-600); }
.tm-leader h3 { font-size: 1.6rem; margin-bottom: 10px; }
.tm-leader blockquote { margin: 0; display: grid; gap: 12px; }
.tm-quote { position: relative; font-family: var(--f-display); font-weight: 500; font-size: 1.08rem; line-height: 1.55; color: var(--ink); padding-top: 30px; }
.tm-quote::before { content: "\201C"; position: absolute; top: -14px; left: -4px; font-family: Georgia, serif; font-size: 4.2rem; line-height: 1; color: var(--gold-400); }
.tm-leader details { border-top: 1px solid var(--line); padding-top: 12px; }
.tm-leader summary { cursor: pointer; list-style: none; font-family: var(--f-display); font-weight: 600; font-size: .92rem; color: var(--blue-600); display: inline-flex; gap: 8px; align-items: center; }
.tm-leader summary::-webkit-details-marker { display: none; }
.tm-leader summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.tm-leader details[open] summary::after { content: "–"; }
.tm-leader details p { font-size: .94rem; margin-top: 10px; }

/* Team grid */
.tm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tm-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tm-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(10, 31, 68, .12); }
.tm-card-photo { position: relative; margin: 14px 14px 0; aspect-ratio: 1 / 1.02; border-radius: 999px 999px 18px 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #fff 0%, var(--tm-soft) 62%), var(--tm-soft); }
.tm-card-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(10, 31, 68, .06)); pointer-events: none; }
.tm-card-photo img { position: absolute; left: 4%; bottom: 0; width: 92%; height: 90%; object-fit: contain; object-position: center bottom; transition: transform .5s var(--ease); }
.tm-card:hover .tm-card-photo img { transform: scale(1.04); transform-origin: 50% 100%; }
.tm-card-body { padding: 16px 20px 20px; display: grid; gap: 4px; align-content: start; }
.tm-chip { justify-self: start; font-size: .74rem; font-weight: 700; color: var(--tm-deep); background: var(--tm-soft); padding: 3px 10px; border-radius: 100px; margin-bottom: 4px; }
.tm-card h3 { font-size: 1.12rem; }
.tm-card-body p { font-size: .88rem; color: var(--muted); display: grid; line-height: 1.45; }
.tm-card-body p b { color: var(--ink); font-weight: 600; font-size: .92rem; }
.tm-card--join { background: var(--navy-900); border-color: var(--navy-900); }
.tm-join { padding: 26px; display: grid; gap: 10px; align-content: end; height: 100%; color: rgba(255, 255, 255, .75);
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(16, 185, 129, .28), transparent 70%); }
.tm-join > .i { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: var(--green-500); }
.tm-join h3 { color: #fff; font-size: 1.3rem; }
.tm-join .hx-btn { justify-self: start; margin-top: 6px; }

@media (max-width: 1080px) {
  .tm-leaders { grid-template-columns: 1fr; }
  .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-mosaic { max-width: 560px; }
}
@media (max-width: 760px) {
  .tm-leader { grid-template-columns: 1fr; }
  .tm-leader-photo { min-height: 0; aspect-ratio: 1 / .95; }
  .tm-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tm-card-photo { margin: 10px 10px 0; }
  .tm-card-body { padding: 12px 14px 16px; }
  .tm-card h3 { font-size: 1rem; }
}
@media (max-width: 480px) {
  .tm-mosaic { gap: 10px 8px; padding-bottom: 30px; }
  .tm-av { border-width: 3px; }
  .tm-av:nth-child(even) { transform: translateY(30px); }
  .tm-facts > div { padding-right: 16px; margin-right: 16px; }
  .tm-facts dd { font-size: 1.2rem; }
}

/* =====================================================================
   Blog v2 — search, wide feature, bento grid
   ===================================================================== */
.bl-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.bl-hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 40px); }
.bl-hero-top > div { max-width: 640px; }
.bl-hero-top h1 { margin-bottom: 12px; }
.bl-search { position: relative; display: block; width: min(360px, 100%); }
.bl-search .i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.bl-search input { width: 100%; font: inherit; font-size: .95rem; padding: 14px 16px 14px 44px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 10px 26px rgba(10, 31, 68, .06); }
.bl-search input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.bl-feature-wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(10, 31, 68, .1); }
.bl-feature-img { position: relative; display: block; min-height: 300px; background: linear-gradient(135deg, var(--navy-900), #164e63); overflow: hidden; }
.bl-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bl-feature-wide:hover .bl-feature-img img { transform: scale(1.03); }
.bl-feature-body { padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 14px; align-content: center; justify-items: start; }
.bl-feature-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; }
.bl-feature-body h2 a { color: var(--ink); }
.bl-feature-body h2 a:hover { color: var(--blue-600); }
.bl-feature-body .bl-meta span { color: var(--ink); font-weight: 600; }
.bl-chips { margin-bottom: 26px; }
.bl-chips button small { opacity: .6; margin-left: 2px; }
.bl-img { aspect-ratio: 818 / 330; }
.bl-grid--bento { grid-auto-flow: dense; }
.bl-card--wide { grid-column: span 2; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: none; }
.bl-card--wide .bl-img { aspect-ratio: auto; min-height: 100%; }
.bl-card--wide .bl-body { align-content: center; padding: 26px; }
.bl-card--wide .bl-body h2 { font-size: 1.32rem; }
@media (max-width: 1080px) {
  .bl-card--wide { grid-column: span 2; }
}
@media (max-width: 860px) {
  .bl-feature-wide { grid-template-columns: 1fr; }
  .bl-feature-img { min-height: 0; aspect-ratio: 818 / 330; }
}
@media (max-width: 640px) {
  .bl-card--wide { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .bl-card--wide .bl-img { aspect-ratio: 818 / 330; min-height: 0; }
  .bl-card--wide .bl-body { padding: 20px 22px 22px; }
  .bl-search { width: 100%; }
}
.ar-cover { aspect-ratio: 818 / 300; }
.ar-cover img { object-fit: cover; }

/* =====================================================================
   Work process v2 — hero image, sticky stepper, image-led stages
   ===================================================================== */
.wp-hero-img { margin: 0; position: relative; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(10, 31, 68, .12); }
.wp-hero-img img { width: 100%; aspect-ratio: 1100 / 836; object-fit: cover; }
.wp-hero-img figcaption { position: absolute; left: 18px; bottom: 18px; display: grid; background: var(--navy-900); color: rgba(255, 255, 255, .75); border-radius: 14px; padding: 12px 16px; font-size: .84rem; box-shadow: 0 18px 40px rgba(10, 31, 68, .3); }
.wp-hero-img figcaption b { color: #fff; font-family: var(--f-display); font-size: 1.2rem; }

.wp-stepper { position: sticky; top: 76px; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wp-stepper ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.wp-stepper ol::-webkit-scrollbar { display: none; }
.wp-stepper a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background-color .25s, color .25s; position: relative; }
.wp-stepper a span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font-family: var(--f-display); font-size: .82rem; color: var(--ink); background: #fff; flex: none; transition: all .25s; }
.wp-stepper a:hover { color: var(--ink); }
.wp-stepper a.is-on { color: var(--ink); background: var(--blue-50); }
.wp-stepper a.is-on span { background: var(--grad-brand); color: #fff; border-color: transparent; }

.wp-stages .hx-wrap { display: grid; gap: clamp(56px, 8vw, 110px); }
.wp-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: 150px; }
.wp-stage:nth-child(even) .wp-stage-img { order: 2; }
.wp-stage-img { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(10, 31, 68, .14); }
.wp-stage-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.wp-stage:hover .wp-stage-img img { transform: scale(1.03); }
.wp-stage-num { position: absolute; top: 16px; left: 16px; font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; color: #fff; background: rgba(10, 31, 68, .78); backdrop-filter: blur(6px); border-radius: 12px; padding: 8px 12px; letter-spacing: .02em; }
.wp-stage-copy { display: grid; gap: 14px; align-content: center; }
.wp-stage-tag { font-size: .86rem; font-weight: 700; color: var(--gold-600); }
.wp-stage-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.wp-stage-copy > p:not(.wp-stage-tag) { font-size: 1.04rem; max-width: 52ch; }
.wp-get { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; margin-top: 6px; }
.wp-get small { font-weight: 700; color: var(--muted); font-size: .8rem; }
.wp-get ul { display: grid; gap: 8px; }
.wp-get li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .95rem; line-height: 1.45; }
.wp-get .i { color: var(--green-600); margin-top: 3px; }

.wp-promise { background: var(--navy-900); padding-block: clamp(36px, 5vw, 56px);
  background-image: none; background-size: 32px 32px; }
.wp-promise dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.wp-promise dl > div { display: grid; gap: 4px; padding: 6px 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.wp-promise dl > div:first-child { border-left: 0; padding-left: 0; }
.wp-promise dt { order: 2; color: rgba(255, 255, 255, .65); font-size: .88rem; }
.wp-promise dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: #fff; }

@media (max-width: 1199px) { .wp-stepper { top: 66px; } }
@media (max-width: 1080px) {
  .wp-stepper ol { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; }
}
@media (max-width: 860px) {
  .wp-stage { grid-template-columns: 1fr; }
  .wp-stage:nth-child(even) .wp-stage-img { order: 0; }
  .wp-promise dl { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .wp-promise dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) {
  .wp-promise dl > div { padding: 4px 12px; }
}
/* Feature: full banner image on top so the artwork is never cropped */
.bl-feature-wide { grid-template-columns: 1fr; }
.bl-feature-img { min-height: 0; aspect-ratio: 818 / 300; }
.bl-feature-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
.bl-feature-body .bl-meta, .bl-feature-body h2 { grid-column: 1; }
.bl-feature-body > p:not(.bl-meta), .bl-feature-body > .hx-btn { grid-column: 2; }
.bl-feature-body > p:not(.bl-meta) { grid-row: 1 / span 2; align-self: center; }
.bl-feature-body > .hx-btn { grid-row: 3; }
@media (max-width: 860px) { .bl-feature-body { grid-template-columns: 1fr; } .bl-feature-body > * { grid-column: 1 !important; grid-row: auto !important; } }
.bl-feature-img { max-height: 340px; }
.bl-feature-img img { object-position: center 45%; }
.bl-feature-img { max-height: none; aspect-ratio: auto; width: 100%; height: clamp(170px, 27vw, 360px); }

/* Tighter page heroes: less space between the header and the breadcrumb */
.pg-hero { padding-block: clamp(20px, 2.4vw, 32px) clamp(36px, 4.6vw, 64px); }
.pg-crumbs { margin-bottom: 14px; }
.pg-hero-grid > :first-child { align-self: start; }

/* ---------------- Why trust Appslin (About) ---------------- */
.tr-sec { position: relative; overflow: hidden; color: rgba(255, 255, 255, .74);
  background: radial-gradient(ellipse 55% 70% at 100% 0%, rgba(16, 185, 129, .18), transparent 70%), radial-gradient(ellipse 50% 70% at 0% 100%, rgba(37, 99, 235, .3), transparent 70%), var(--navy-950); }
.tr-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
.tr-intro { display: grid; gap: 18px; justify-items: start; }
.tr-intro h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; }
.tr-intro .h5-eyebrow { color: #e9c77b; }
.tr-intro .h5-eyebrow::before { background: linear-gradient(90deg, #a5803a, #f1d993); }
.tr-intro .h5-hl { background-image: linear-gradient(100deg, #f1d993, #c99a45); }
.tr-lead { margin: 0; font-size: 1.04rem; line-height: 1.65; color: rgba(255, 255, 255, .74); }
.tr-points { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 10px; }
.tr-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .86); font-size: .96rem; }
.tr-points .i { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; color: #052e22; background: #6ee7b7; }

.tr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tr-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); transition: transform .35s var(--ease), border-color .35s, background .35s; }
.tr-card::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #e9c77b, transparent); opacity: .7; }
.tr-card:hover { transform: translateY(-3px); border-color: rgba(233, 199, 123, .45); background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)); }
.tr-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tr-badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #3b2a0b; background: radial-gradient(circle at 30% 25%, #fbe9b6, #d9ae5c 55%, #a5803a); box-shadow: 0 0 0 5px rgba(233, 199, 123, .14), 0 10px 24px rgba(0, 0, 0, .3); }
.tr-badge .i { width: 24px; height: 24px; }
.tr-verified { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #6ee7b7; background: rgba(16, 185, 129, .12); border: 1px solid rgba(110, 231, 183, .3); border-radius: 999px; padding: 4px 10px 4px 7px; }
.tr-verified .i { width: 13px; height: 13px; }
.tr-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e9c77b; }
.tr-card h3 { color: #fff; font-size: 1.22rem; }
.tr-card p { margin: 0; font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.tr-card .tr-benefit { margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .82); }
.tr-card .tr-benefit b { color: #6ee7b7; font-weight: 700; }

.tr-strip { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 18px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.tr-strip li { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .84); }
.tr-strip .i { width: 18px; height: 18px; color: #e9c77b; }

@media (max-width: 1080px) {
  .tr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tr-cards { grid-template-columns: 1fr; }
  .tr-card { padding: 20px; }
  .tr-strip { flex-direction: column; padding: 16px 18px; }
  .tr-intro .hx-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .tr-card, .tr-card:hover { transition: none; transform: none; } }

/* Privacy policy hero illustration */
.pv-hero .pg-hero-grid { align-items: start; }
.pv-hero-art { margin: -28px -20px -40px 0; justify-self: end; align-self: center; width: 100%; max-width: 500px; }
.pv-hero-art img { width: 100%; height: auto; display: block; }
@media (max-width: 1080px) { .pv-hero-art { justify-self: center; max-width: 440px; margin: 0 auto -20px; } }
@media (max-width: 560px) { .pv-hero-art { display: none; } }

/* Responsive fix: single-column ERP rows on phones must shrink to the screen width */
@media (max-width: 1080px) {
  .pg-erp { grid-template-columns: minmax(0, 1fr); }
  .pg-erp > * { min-width: 0; }
}
.pg-erp-copy { grid-template-columns: minmax(0, 1fr); }
.pg-erp-copy > * { min-width: 0; }
.pg-erp-copy h3 { overflow-wrap: anywhere; }
.pg-erp-copy .d1-actions, .pg-erp-copy .hx-actions { flex-wrap: wrap; }
.pg-erp-copy .hx-btn { max-width: 100%; white-space: normal; text-align: center; }

/* Article pages: keep the table of contents + CTA in view while reading.
   overflow-x:hidden on body breaks position:sticky; clip prevents sideways scroll without that side effect. */
body:has(.ar-layout) { overflow-x: clip; overflow-y: visible; }
@media (min-width: 992px) {
  .ar-side .pg-toc { max-height: calc(100vh - 400px); min-height: 160px; overflow-y: auto; scrollbar-width: thin; }
}
