/* =====================================================================
   PAK Super - pak-super.net
   Palette derived from the supplied reference https://pakrummy.bet/
   (warm paper ground, emerald accent, burnt amber status) plus the brand
   logo plate #003D18.

   Locked systems:
     THEME   light, one theme for the whole site.
     ACCENT  emerald --brand. Amber --flag is status only (New / Hot).
     SHAPE   surfaces 14px, pills for interactive (buttons, chips, inputs).
     MEASURE every container is 1200px + 24px gutters, no inner max-width.
   ===================================================================== */

:root {
  /* ground + surfaces */
  --ground:      #F7F3E8;
  --surface:     #FFFAF0;
  --surface-2:   #F1EADB;
  --line:        #E3DAC5;
  --line-soft:   #EFE8D8;

  /* ink */
  --ink:         #172018;
  --ink-2:       #3A463C;
  --muted:       #66715F;

  /* accent */
  --brand:       #047857;
  --brand-deep:  #003D18;
  --brand-dark:  #0B2016;
  --brand-tint:  #E3F0E8;
  --brand-hover: #036348;
  --on-brand:    #FFFFFF;

  /* status */
  --flag:        #9A4708;
  --flag-tint:   #FBEEDD;

  /* shape */
  --r:           14px;
  --r-sm:        10px;
  --r-pill:      999px;

  /* elevation, tinted to the paper hue rather than pure black */
  --sh-1: 0 1px 2px rgba(23, 32, 24, .05), 0 2px 8px rgba(23, 32, 24, .04);
  --sh-2: 0 2px 6px rgba(23, 32, 24, .07), 0 12px 28px rgba(23, 32, 24, .07);

  /* type */
  --display: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --body:    'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;

  /* measure */
  --measure: 1200px;
  --gutter:  24px;
  --side-w:  300px;

  --t: 200ms cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
}

body.is-rtl { font-family: 'Noto Nastaliq Urdu', var(--body); line-height: 2.1; }

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

button, a, summary, input[type="search"], label[for] { cursor: pointer; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand-deep); color: #fff; padding: 10px 18px;
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
  transition: top var(--t);
}
.skip:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------------
   One measure: header, every content row, footer and the safety band all
   share this width and these gutters. Nothing inside gets a narrower cap.
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.split {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-block: 40px;
}
.main-col { flex: 1 1 auto; min-width: 0; }

.side {
  flex: 0 0 var(--side-w);
  width: var(--side-w);
  position: sticky;
  top: 84px;
  align-self: flex-start;
  display: grid;
  gap: 18px;
}

.container.is-block { display: block; margin-block: 40px; }

/* ---------------------------------------------------------------------
   Icons
   --------------------------------------------------------------------- */
.ico { width: 24px; height: 24px; flex: 0 0 auto; }
.ico.sm { width: 18px; height: 18px; }
.ico.lg { width: 34px; height: 34px; }

/* ---------------------------------------------------------------------
   Buttons. Scoped so .entry a cannot win the colour fight.
   --------------------------------------------------------------------- */
.hx-btn,
a.hx-btn,
.entry a.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.hx-btn:active { transform: translateY(1px); }

.hx-btn-primary, a.hx-btn-primary, .entry a.hx-btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.hx-btn-primary:hover, .entry a.hx-btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--on-brand);
}

.hx-btn-ghost, a.hx-btn-ghost, .entry a.hx-btn-ghost {
  background: transparent;
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}
.hx-btn-ghost:hover, .entry a.hx-btn-ghost:hover {
  background: var(--brand-deep);
  color: #fff;
}

.hx-btn-dl, a.hx-btn-dl, .entry a.hx-btn-dl {
  background: var(--brand-deep);
  color: #fff;
  border-color: var(--brand-deep);
  padding: 14px 26px;
  font-size: 16px;
}
.hx-btn-dl:hover, .entry a.hx-btn-dl:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.w-full { width: 100%; }

/* On the dark CTA band the ghost button needs a light stroke to stay legible. */
.cta-band .hx-btn-ghost, .entry .cta-band a.hx-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.cta-band .hx-btn-ghost:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }

/* ---------------------------------------------------------------------
   Masthead
   --------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 240, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mast-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { color: var(--brand-deep); background: var(--brand-tint); }

.nav-cta { margin-inline-start: 8px; }
.nav-cta a {
  background: var(--brand);
  color: var(--on-brand);
  padding: 10px 20px;
}
.nav-cta a:hover { background: var(--brand-hover); color: var(--on-brand); }
.nav-cta a.is-active { background: var(--brand-deep); color: #fff; }

.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
}
.burger .ico-close { display: none; }
.burger[aria-expanded="true"] .ico-close { display: block; }
.burger[aria-expanded="true"] svg:first-child { display: none; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--brand-dark); isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(11, 32, 22, .96) 0%, rgba(11, 32, 22, .88) 42%, rgba(11, 32, 22, .30) 100%),
    linear-gradient(to top, rgba(11, 32, 22, .7), transparent 55%);
}
.hero-in { padding-block: 84px 92px; }
.hero-copy { width: 100%; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
/* Light variant, only where the kicker sits on a dark band. */
.hero .kicker,
.page-hero .kicker,
.apk-hero .kicker { color: var(--brand-tint); font-weight: 600; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 16px;
  max-width: none;
}
.hero-sub {
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  margin-bottom: 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .hx-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .hx-btn-ghost:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }

/* Page hero for static, games index and 404 */
.page-hero { position: relative; overflow: hidden; background: var(--brand-dark); isolation: isolate; }
.page-hero-art { position: absolute; inset: 0; z-index: -1; }
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: blur(2px); transform: scale(1.06); }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11, 32, 22, .95), rgba(11, 32, 22, .7));
}
.page-hero-in { padding-block: 52px 56px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.5rem);
  font-weight: 800;
  margin: 0;
}

/* ---------------------------------------------------------------------
   Trust bar
   --------------------------------------------------------------------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 22px;
}
.trust-i { display: flex; align-items: center; gap: 12px; color: var(--brand); }
.trust-i span { display: flex; flex-direction: column; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.trust-i strong {
  font-family: var(--display);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   Section heads
   --------------------------------------------------------------------- */
.rail { margin-bottom: 44px; }
.rail:last-child { margin-bottom: 0; }
.rail-head { margin-bottom: 20px; }
.rail-head .kicker { margin-bottom: 8px; }
.rail-head h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); margin: 0 0 6px; }
.rail-sub { color: var(--muted); font-size: 15px; margin: 0 0 12px; }

/* Ornament: three emerald dashes stepping down in width. */
.rule {
  display: block;
  height: 4px;
  width: 64px;
  border-radius: var(--r-pill);
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0 / 30px 100% no-repeat,
    linear-gradient(var(--brand), var(--brand)) 36px 0 / 18px 100% no-repeat,
    linear-gradient(var(--flag), var(--flag)) 58px 0 / 6px 100% no-repeat;
}

/* ---------------------------------------------------------------------
   Catalogue grid
   --------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand); }

.card-media {
  position: relative;
  display: block;
  padding: 20px 20px 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.card-media img {
  width: 92px;
  height: 92px;
  margin-inline: auto;
  border-radius: var(--r);
  object-fit: cover;
  border: 1px solid var(--line);
}
.flag {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.flag-new { background: var(--brand-tint); color: var(--brand-deep); }
.flag-hot { background: var(--flag-tint); color: var(--flag); }
/* C7: on the detail page the badge sits in the flow, never absolute. */
.flag.is-static { position: static; margin-inline-start: 8px; }

.card-body { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-t { font-size: 17px; margin: 0 0 6px; }
.card-t a { color: var(--ink); text-decoration: none; }
.card-t a:hover { color: var(--brand); }
.card-d {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.card-cta:hover { background: var(--brand); color: #fff; }

.rail-more { margin: 24px 0 0; text-align: center; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.filters a:hover { border-color: var(--brand); color: var(--brand); }
.filters a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.find-note { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }

.empty {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 44px 28px;
  text-align: center;
  color: var(--ink-2);
}
.empty .ico { margin: 0 auto 14px; color: var(--brand); }
.empty h2 { font-size: 1.4rem; margin-bottom: 8px; }
.empty .cta-actions { justify-content: center; margin-top: 20px; }

/* ---------------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------------- */
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--sh-1);
}
.widget-t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.widget p { font-size: 14px; color: var(--muted); }

.side-search { display: flex; gap: 8px; }
.side-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--ground);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.side-search input::placeholder { color: var(--muted); }
.side-search input:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.side-search button {
  flex: 0 0 auto;
  width: 46px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--t);
}
.side-search button:hover { background: var(--brand-hover); }

.side-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.side-results a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
}
.side-results a:hover { background: var(--brand-tint); color: var(--brand-deep); }
.side-results .no-hit { padding: 8px 12px; color: var(--muted); font-size: 14px; }

.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t);
}
.side-list a:hover { background: var(--surface-2); color: var(--brand-deep); }
.side-list img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line); }

.side-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t);
}
.side-cats a:hover { background: var(--surface-2); color: var(--brand-deep); }
.side-cats span {
  margin-inline-start: auto;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: var(--r-pill);
  padding: 2px 9px;
}

.dl { margin: 0; }
.dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); font-size: 13.5px; }
.dl dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-align: end;
}
.dl-note {
  display: flex;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.dl-note .ico { color: var(--brand); margin-top: 2px; }

.widget-dl { background: var(--brand-tint); border-color: #C6DED1; }
.widget-dl .widget-t { border-bottom-color: #C6DED1; color: var(--brand-deep); }
.widget-dl p { color: var(--ink-2); margin-bottom: 14px; }

.widget-warn { background: var(--flag-tint); border-color: #EBD6B8; }
.widget-warn .widget-t { color: var(--flag); border-bottom-color: #EBD6B8; }
.widget-warn p { color: #6A4416; margin: 0; }

/* ---------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------- */
.crumbs { background: var(--surface); border-bottom: 1px solid var(--line); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 11px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line); }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------
   APK detail hero
   --------------------------------------------------------------------- */
.apk-hero { position: relative; overflow: hidden; background: var(--brand-dark); isolation: isolate; }
.apk-hero-art { position: absolute; inset: 0; z-index: -1; }
.apk-hero-art img { width: 100%; height: 100%; object-fit: cover; filter: blur(42px); transform: scale(1.35); opacity: .5; }
.apk-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11, 32, 22, .93), rgba(11, 32, 22, .74));
}
.apk-hero-in {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-block: 44px 48px;
}
.apk-shot { flex: 0 0 auto; order: 2; }
.apk-shot img {
  width: 150px;
  height: 150px;
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
/* Title block precedes the icon in the DOM for crawlers and screen readers. */
.apk-head { order: 1; flex: 1 1 auto; min-width: 0; }
.apk-head h1 {
  color: #fff;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.7rem);
  font-weight: 800;
  margin: 0 0 12px;
}
.apk-lead { color: rgba(255, 255, 255, .86); font-size: 16px; margin: 0 0 18px; }
.apk-hero .flag.is-static { background: rgba(255, 255, 255, .16); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
}
.apk-hero .hx-btn-dl { background: #fff; color: var(--brand-deep); border-color: #fff; }
.apk-hero .hx-btn-dl:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------------------------------------------------------------------
   Editorial sheet (C11). White surface on the paper ground; cards inside
   are tinted so they never disappear into it.
   --------------------------------------------------------------------- */
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  padding: 34px 38px 38px;
}

.entry { color: var(--ink-2); font-size: 16.5px; }
.entry a { color: var(--brand); font-weight: 600; }

.entry .lede { margin-bottom: 34px; }
.entry .lede h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; }
.entry .lede p { font-size: 18px; line-height: 1.66; color: var(--ink-2); }
.entry .lede p:first-of-type { color: var(--ink); }

.sec { margin-bottom: 38px; }
.sec:last-child { margin-bottom: 0; }

.sec-head { margin-bottom: 16px; }
.sec-head h2 {
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  text-align: start;
  margin: 0 0 10px;
}
.sec-kicker {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 6px;
}
.entry h3 { font-size: 1.12rem; margin: 22px 0 8px; }

/* prose family: plain, the default reading rhythm */
.sec-prose > p { max-width: none; }

/* panel family: tinted aside with an accent edge */
.sec-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand);
  border-radius: var(--r);
  padding: 26px 28px;
}
.sec-panel .sec-head h2 { margin-bottom: 8px; }

/* rail family: the section head sits on a tinted strip, copy runs full width below */
.sec-rail > .sec-head {
  background: var(--brand-tint);
  border-radius: var(--r);
  padding: 20px 24px 18px;
  margin-bottom: 20px;
}
.sec-rail > .sec-head h2 { color: var(--brand-deep); }

/* card grid from a source list */
.cgrid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr));
}
.cgrid[data-cols="2"] { --c: 2; }
.cgrid[data-cols="3"] { --c: 3; }
.cgrid[data-cols="4"] { --c: 4; }

.ccard {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color var(--t), transform var(--t);
}
.ccard:hover { border-color: var(--brand); transform: translateY(-2px); }
.ccard-b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  color: var(--brand-deep);
  margin-bottom: 14px;
}
.ccard-t { font-size: 1.02rem; margin: 0 0 6px; }
.ccard p { font-size: 15px; line-height: 1.6; margin: 0; }

/* step ladder */
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: 0; }
.step-n {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}
.step-b { min-width: 0; }
.step-t { font-size: 1.02rem; margin: 3px 0 4px; }
.step-b p { font-size: 15.5px; margin: 0; }

/* plain list used by the panel and rail families */
.entry ul.plain { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 9px; }
.entry ul.plain li { position: relative; padding-inline-start: 26px; font-size: 15.5px; }
.entry ul.plain li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 12px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--brand);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
  border-radius: var(--r);
  padding: 42px 38px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-start: 50%;
  top: -40%;
  width: 460px;
  height: 460px;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(4, 120, 87, .55), transparent 68%);
}
.cta-band .cta-title {
  color: #fff;
  text-align: center;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  margin: 0 0 14px;
}
.cta-copy { color: rgba(255, 255, 255, .88); font-size: 16.5px; }
.cta-copy p { margin-bottom: .8em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* FAQ accordion */
.faq { display: grid; gap: 10px; margin-top: 16px; }
.faq-intro { margin-bottom: 4px; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item[open] { border-color: var(--brand); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary h3 {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
}
.faq-chev {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brand);
  transition: transform var(--t);
}
.faq-item[open] .faq-chev { transform: rotate(90deg); }
.faq-a { padding: 0 20px 18px 54px; }
.faq-a p { font-size: 15.5px; margin: 0; }

/* ---------------------------------------------------------------------
   Related tiles. Five across, filling the full measure.
   --------------------------------------------------------------------- */
.related { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  box-shadow: var(--sh-1);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.tile:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--sh-2); }
.tile img { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--line); }
.tile-t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
}

/* ---------------------------------------------------------------------
   Safety band + footer
   --------------------------------------------------------------------- */
.safe-band { background: var(--surface); border-top: 1px solid var(--line); margin-top: 52px; }
.safe-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; padding-block: 38px; align-items: center; }
.safe-lead .ico { color: var(--brand); margin-bottom: 10px; }
.safe-lead h2 { font-size: 1.45rem; margin: 0 0 8px; }
.safe-lead p { color: var(--muted); font-size: 15.5px; margin: 0; }
.safe-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.safe-chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.safe-chips .ico { color: var(--brand); }

.foot { background: var(--brand-dark); color: rgba(255, 255, 255, .78); border-top: 3px solid var(--brand); }
.foot-in {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr .8fr;
  gap: 30px;
  padding-block: 46px 34px;
}
.foot-brand img { border-radius: var(--r-sm); margin-bottom: 14px; }
.foot-brand p { font-size: 14.5px; color: rgba(255, 255, 255, .7); margin: 0; }
.foot-col h2 {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a {
  color: rgba(255, 255, 255, .74);
  font-size: 14.5px;
  text-decoration: none;
  transition: color var(--t);
}
.foot-col a:hover { color: #fff; text-decoration: underline; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}
.foot-base p { margin: 0; }
.foot-note { max-width: none; }

.totop {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 45;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--brand-deep);
  color: #fff;
  box-shadow: var(--sh-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--brand); }

/* ---------------------------------------------------------------------
   Reveal on scroll
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 420ms ease, transform 420ms cubic-bezier(.16, 1, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   Breakpoints: 1440 / 1024 / 768 / 519 / 375
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1023px) {
  .split { flex-direction: column; }
  .side { position: static; width: 100%; flex: 1 1 auto; grid-template-columns: repeat(2, 1fr); }
  .side .widget:first-child { grid-column: 1 / -1; }
  .cgrid[data-cols="4"] { --c: 3; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-in { grid-template-columns: repeat(2, 1fr); }
  .safe-in { grid-template-columns: 1fr; }
  .box { padding: 28px 26px 30px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    display: none;
    padding: 14px var(--gutter) 20px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 16px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta a { text-align: center; }
  .burger { display: flex; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgrid[data-cols="4"], .cgrid[data-cols="3"] { --c: 2; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-in { padding-block: 56px 60px; }
  .apk-hero-in { flex-direction: column; align-items: flex-start; gap: 22px; }
  .apk-shot { order: 0; }
  .apk-head { order: 1; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .safe-in { padding-block: 30px; }
}

@media (max-width: 519px) {
  :root { --gutter: 18px; }
  .grid { grid-template-columns: 1fr; }
  .cgrid[data-cols="4"], .cgrid[data-cols="3"], .cgrid[data-cols="2"] { --c: 1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-in { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .box { padding: 22px 20px 24px; }
  .cta-band { padding: 32px 22px; }
  .faq-a { padding-inline: 20px; }
  .hero-actions .hx-btn, .cta-actions .hx-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
