/* DataIQ Labs - mobile web app layer (phones). Mirrors the DataIQ Labs app designs. */
.app-top, .app-top-sp, .app-home, .app-courses, .app-splash, .app-actionbar, .app-prog-bar { display: none; }

:root { --ap-bg: #E2EEF3; --ap-card: #FFFFFF; --ap-line: #CFE0E8; --ap-text: #0F1821; --ap-muted: #64748B; --ap-red: #D6003A; --ap-teal: #003554; }
:root[data-theme="dark"] { --ap-bg: #0F1821; --ap-card: #172533; --ap-line: rgba(255,255,255,.09); --ap-text: #FFFFFF; --ap-muted: #A7B4C2; --ap-red: #FF3D6B; --ap-teal: #FFFFFF; }

@media (max-width: 767px) {
  html { scroll-padding-top: 64px; }
  body { background: var(--ap-bg); }
  .site-header, .mobile-drawer, .back-to-top { display: none !important; }
  .app-desk { display: none !important; }
  .site-footer { display: none !important; }
  main#main-content { padding-top: 0 !important; }
  body { padding-top: 0 !important; }

  /* ---- top bar ---- */
  .app-top { display: flex; position: sticky; top: 0; z-index: 60; align-items: center; justify-content: space-between; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0 16px; background: var(--ap-bg); }
  .app-top__title { margin: 0; font: 600 22px/1.2 Poppins, Inter, sans-serif; letter-spacing: -.02em; color: var(--ap-text); }
  .app-top__logo img { height: 30px; width: auto; display: block; }
  .app-top__logo .site-logo__img--dark { display: none; }
  :root[data-theme="dark"] .app-top__logo .site-logo__img--light { display: none; }
  :root[data-theme="dark"] .app-top__logo .site-logo__img--dark { display: block; }
  .app-top__actions { display: flex; gap: 8px; }
  .app-ib { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ap-card); color: var(--ap-text); border: 0; padding: 0; cursor: pointer; box-shadow: 0 1px 2px rgba(15,24,33,.06); transition: transform .2s var(--ease-out), background-color .2s; }
  .app-ib:active { transform: scale(.94); }

  /* ---- shared parts ---- */
  .app-card { background: var(--ap-card); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,24,33,.05), 0 0 0 1px var(--ap-line); color: var(--ap-text); text-decoration: none; transition: transform .2s var(--ease-out); }
  a.app-card:active { transform: scale(.985); }
  .app-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font: 500 10.5px/1 "JetBrains Mono", ui-monospace, monospace; white-space: nowrap; }
  .app-chip--red { background: #FF0042; color: #FFFFFF; }
  .app-chip--glass { background: rgba(255,255,255,.12); color: #FFFFFF; }
  .app-chip--soft { background: var(--ap-bg); color: var(--ap-teal); }
  .app-chip--pink { background: #FFE5EC; color: #B0002F; height: 20px; }
  .app-sh { display: flex; justify-content: space-between; align-items: baseline; }
  .app-sh h2 { margin: 0; font: 600 16px/1.2 Poppins, Inter, sans-serif; color: var(--ap-text); letter-spacing: -.01em; }
  .app-sh a { font-size: 12.5px; font-weight: 600; color: var(--ap-red); text-decoration: none; }
  .app-empty { margin: 0; padding: 18px 4px; font-size: 14px; color: var(--ap-muted); }
  .app-btn { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 12px; font: 600 14.5px/1 Inter, sans-serif; border: 0; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease-out); }
  .app-btn:active { transform: scale(.98); }
  .app-btn--red { background: #D6003A; color: #FFFFFF; }
  .app-btn--ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

  /* ---- home ---- */
  .app-home { display: flex; flex-direction: column; gap: 18px; padding: 0 16px 24px; }
  .app-offer { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: #0F1821; color: #FFFFFF; }
  .app-offer__ring { position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(255,0,66,.85); animation: apSpin 14s linear infinite; }
  .app-offer .app-chip { align-self: flex-start; position: relative; }
  .app-offer__t { position: relative; display: flex; flex-direction: column; gap: 4px; }
  .app-offer__t strong { font: 600 19px/1.2 Poppins, sans-serif; }
  .app-offer__t span { font-size: 12.5px; color: rgba(255,255,255,.7); }
  .app-offer__p { position: relative; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .app-offer__p b { font: 600 26px/1 Poppins, sans-serif; }
  .app-offer__p s { font-size: 13px; color: rgba(255,255,255,.55); }
  .app-offer__f { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: rgba(255,255,255,.7); }
  .app-offer__link { position: absolute; inset: 0; }
  .countdown--app { display: flex; gap: 4px; }
  .countdown--app .countdown__cell { min-width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 4px; }
  .countdown--app .countdown__num { font: 600 13px/1 "JetBrains Mono", monospace; color: #FFFFFF; }
  .countdown--app .countdown__lbl { font: 500 8px/1 Inter, sans-serif; opacity: .7; margin-top: 2px; text-transform: uppercase; color: #FFFFFF; }
  @keyframes apSpin { to { transform: rotate(360deg); } }

  .app-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .app-quick__i { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ap-text); font-size: 11.5px; font-weight: 500; }
  .app-quick__box { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; transition: transform .2s var(--ease-out); }
  .app-quick__i:active .app-quick__box { transform: scale(.92); }
  .app-quick__box--q1 { background: #003554; color: #FFFFFF; }
  .app-quick__box--q2 { background: var(--ap-card); color: var(--ap-teal); box-shadow: 0 0 0 1px var(--ap-line); }
  .app-quick__box--q3 { background: #FFE5EC; color: #D6003A; }

  .app-sec { display: flex; flex-direction: column; gap: 10px; }
  .app-rail { display: flex; gap: 10px; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .app-rail::-webkit-scrollbar { display: none; }
  .app-rail__c { flex: none; scroll-snap-align: start; width: 150px; height: 128px; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; color: #FFFFFF; text-decoration: none; transition: transform .2s var(--ease-out); }
  .app-rail__c:active { transform: scale(.97); }
  .app-rail__c .app-chip { align-self: flex-start; }
  .app-rail__c strong { margin-top: auto; font: 600 15px/1.25 Poppins, sans-serif; }
  .app-rail__c span:last-child { font-size: 11.5px; opacity: .75; }

  .app-ev, .app-row { padding: 12px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
  .app-ev__d { width: 48px; height: 52px; border-radius: 12px; background: #003554; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .app-ev__d i { font: 500 9.5px/1 "JetBrains Mono", monospace; font-style: normal; opacity: .75; }
  .app-ev__d b { font: 600 18px/1 Poppins, sans-serif; }
  .app-ev__t, .app-row__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .app-ev__t strong, .app-row__t strong { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
  .app-ev__t strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-ev__t small, .app-row__t small { font-size: 11.5px; color: var(--ap-muted); }
  .app-row { color: var(--ap-text); }
  .app-row svg { color: var(--ap-muted); }
  .app-row__m { width: 48px; height: 48px; border-radius: 12px; background: var(--ap-bg); color: var(--ap-teal); display: grid; place-items: center; font: 600 16px/1 Poppins, sans-serif; }

  /* ---- courses ---- */
  .app-courses { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 24px; }
  .app-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--ap-card); box-shadow: 0 0 0 1px var(--ap-line); color: var(--ap-muted); transition: box-shadow .2s; }
  .app-search:focus-within { box-shadow: 0 0 0 2px #FF0042; }
  .app-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 14px Inter, sans-serif; color: var(--ap-text); }
  .app-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .app-chips::-webkit-scrollbar { display: none; }
  .app-pill { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--ap-card); color: var(--ap-text); box-shadow: 0 0 0 1px var(--ap-line); font: 500 12.5px Inter, sans-serif; cursor: pointer; transition: background-color .2s, color .2s; }
  .app-pill.is-on { background: #0F1821; color: #FFFFFF; font-weight: 600; box-shadow: none; }
  :root[data-theme="dark"] .app-pill.is-on { background: #FF0042; }
  .app-list { display: flex; flex-direction: column; gap: 12px; }
  .app-course { padding: 12px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
  .app-course[hidden] { display: none; }
  .app-course svg { color: var(--ap-muted); }
  .app-course__tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 500 12px "JetBrains Mono", monospace; }
  .app-course__tile--dark { background: #0F1821; color: #FFFFFF; }
  .app-course__tile--teal { background: #003554; color: #FFFFFF; }
  .app-course__tile--deep { background: #002E45; color: #FFFFFF; }
  .app-course__tile--soft { background: var(--ap-bg); color: var(--ap-teal); }
  .app-course__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .app-course__body strong { font: 600 14.5px/1.25 Poppins, sans-serif; }
  .app-course__body small { font-size: 11.5px; color: var(--ap-muted); }
  .app-course__price { display: flex; align-items: baseline; gap: 6px; }
  .app-course__price b { font: 600 14px/1 Poppins, sans-serif; }
  .app-course__price s { font-size: 11px; color: var(--ap-muted); }

  /* ---- bottom tab bar ---- */
  .mobile-bottom-nav { height: auto; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ap-card) 96%, transparent); border-top: 1px solid var(--ap-line); }
  .bottom-nav-item { height: 54px; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--ap-muted); position: relative; }
  .bottom-nav-item svg { width: 22px; height: 22px; stroke-width: 1.8; transform: none !important; }
  .bottom-nav-item span { font-size: 10.5px; }
  .bottom-nav-item.is-active { color: var(--ap-red); }
  .bottom-nav-item.is-active span { font-weight: 600; }
  .bottom-nav-item.is-active::before { content: ""; position: absolute; left: 14%; right: 14%; top: -4px; height: 3px; border-radius: 0 0 3px 3px; background: #FF0042; transition: none; }
  main#main-content { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .whatsapp-float { bottom: calc(72px + env(safe-area-inset-bottom)); }

  /* ---- splash ---- */
  .app-splash { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; background: #0F1821; color: #FFFFFF; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 32px 32px; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); padding-top: env(safe-area-inset-top); }
  .app-splash[hidden] { display: none; }
  .app-splash.is-out { opacity: 0; transform: translateY(18px); pointer-events: none; }
  .app-splash__ring { position: absolute; border-radius: 50%; pointer-events: none; }
  .app-splash__ring--a { right: -90px; top: 60px; width: 280px; height: 280px; border: 1px solid rgba(255,0,66,.35); animation: apSpin 30s linear infinite; }
  .app-splash__ring--b { left: -120px; bottom: 180px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.08); }
  .app-splash__mid { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 0 32px; text-align: center; position: relative; }
  .app-splash__logo { position: relative; width: 200px; height: auto; display: block; }
  .app-splash__brand { font: 600 15px/1 Poppins, sans-serif; letter-spacing: .04em; }
  .app-splash__mid h2 { margin: 18px 0 0; font: 600 34px/1.08 Poppins, sans-serif; letter-spacing: -.02em; color: #FFFFFF; }
  .app-splash__mid h2 span { color: #FF0042; }
  .app-splash__mid p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.75); }
  .app-splash__foot { position: relative; padding: 0 24px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
  .app-splash__dots { display: flex; justify-content: center; gap: 6px; padding-bottom: 8px; }
  .app-splash__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.3); }
  .app-splash__dots i.on { width: 22px; background: #FF0042; }

  /* ---- program pages: app detail ---- */
  body.pg-ai-ml-engineer .mobile-bottom-nav, body.pg-data-engineer .mobile-bottom-nav, body.pg-python .mobile-bottom-nav, body.pg-sql .mobile-bottom-nav, body.pg-gen-ai .mobile-bottom-nav,
  body.pg-ai-ml-engineer .whatsapp-float, body.pg-data-engineer .whatsapp-float, body.pg-python .whatsapp-float, body.pg-sql .whatsapp-float, body.pg-gen-ai .whatsapp-float { display: none; }
  body.pg-ai-ml-engineer main#main-content, body.pg-data-engineer main#main-content, body.pg-python main#main-content, body.pg-sql main#main-content, body.pg-gen-ai main#main-content { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .app-actionbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 8px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--ap-card); border-top: 1px solid var(--ap-line); }
  .app-actionbar > * { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; font: 600 14.5px/1 Inter, sans-serif; text-decoration: none; border: 0; transition: transform .2s var(--ease-out); }
  .app-actionbar > *:active { transform: scale(.97); }
  .app-ab__wa { width: 48px; flex: none; background: var(--ap-bg); color: var(--ap-teal); }
  .app-ab__brochure { flex: 1; background: var(--ap-card); color: var(--ap-teal); box-shadow: inset 0 0 0 1.5px var(--ap-teal); }
  .app-ab__brochure svg { display: none; }
  .app-ab__enquire { flex: 1.4; background: #D6003A; color: #FFFFFF; }
  .app-prog-bar { display: flex; position: fixed; left: 0; right: 0; top: 0; padding: calc(10px + env(safe-area-inset-top)) 16px 0; z-index: 70; justify-content: space-between; pointer-events: none; transition: transform .32s cubic-bezier(.22,1,.36,1); }
  .app-prog-bar.is-away { transform: translateY(-110%); }
  .app-prog-bar .app-ib { pointer-events: auto; }
  .app-prog-bar .app-ib { background: #FFFFFF; color: #003554; box-shadow: 0 3px 12px rgba(15,24,33,.22); }
  :root[data-theme="dark"] .app-prog-bar .app-ib { background: #172533; color: #FFFFFF; }
  .app-prog-bar div { display: flex; gap: 8px; }
  .app-has-bar { position: relative; padding-top: calc(72px + env(safe-area-inset-top)) !important; }

  /* ---- profile ---- */
  .pf { padding: 0 0 24px; }
  .pf__wrap { display: flex; flex-direction: column; gap: 14px; }
  .pf__card { padding: 4px 0; overflow: hidden; }
  .pf__card:not(.pf__card--rows) { padding: 14px; }
  .pf__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
  .pf__head h2 { margin: 0; font: 600 15px/1.2 Poppins, sans-serif; }
  .pf__note { font: 500 9.5px "JetBrains Mono", monospace; color: var(--ap-muted); }
  .pf__empty { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ap-muted); }
  .pf__enq { display: flex; flex-direction: column; gap: 8px; }
  .pf__e { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ap-bg); }
  .pf__e strong { display: block; font-size: 13px; }
  .pf__e small { font: 500 10.5px "JetBrains Mono", monospace; color: var(--ap-muted); }
  .pf__e .app-chip { background: #003554; color: #FFFFFF; }
  .pf__row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; color: var(--ap-text); text-decoration: none; border-top: 1px solid var(--ap-line); }
  .pf__row:first-child { border-top: 0; }
  .pf__ico { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ap-bg); color: var(--ap-teal); }
  .pf__ico svg { width: 17px; height: 17px; }
  .pf__ico--red { background: #FFE5EC; color: #D6003A; }
  .pf__lbl { flex: 1; font-size: 14px; }
  .pf__val { font-size: 12px; color: var(--ap-muted); }
  .pf__chev { color: var(--ap-muted); }
  .pf__k { font: 500 10.5px "JetBrains Mono", monospace; color: var(--ap-muted); padding: 6px 2px 0; }
  .pf__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pf__contact .app-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; font-size: 12.5px; font-weight: 500; }
  .app-switch { width: 44px; height: 26px; flex: none; border-radius: 999px; border: 0; padding: 0; background: #D5DEE6; position: relative; cursor: pointer; transition: background-color .25s var(--ease-out); }
  .app-switch i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease-out); }
  .app-switch[aria-checked="true"] { background: #FF0042; }
  .app-switch[aria-checked="true"] i { transform: translateX(18px); }

  /* ---- inner pages: lighter, app-like surfaces ---- */
  .page-header { display: none; }


  /* program hero in app style */
  .prog-hero { padding-bottom: 18px !important; min-height: 0 !important; }
  .prog-hero .breadcrumbs, .prog-hero__actions { display: none !important; }
  .prog-hero__inner { padding-top: 0 !important; padding-bottom: 0 !important; gap: 14px !important; }
  .prog-hero__text { gap: 12px !important; }
  .prog-hero__title { font-size: 26px !important; line-height: 1.1 !important; letter-spacing: -.02em; }
  .prog-hero__desc { font-size: 12.5px !important; line-height: 1.55 !important; color: rgba(255,255,255,.75) !important; }
  .prog-glance { padding: 12px !important; border-radius: 14px !important; gap: 6px !important; }
  .prog-glance__row { font-size: 12.5px !important; padding: 8px 0 !important; }


  /* Learn (blog) list in app style */
  body.pg-blog .sec { padding: 14px 0 24px !important; background: transparent !important; }
  body.pg-blog .filter-strip { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px !important; margin: 0 -16px !important; padding: 2px 16px 6px !important; scrollbar-width: none; align-items: center; }
  body.pg-blog .filter-strip::-webkit-scrollbar { display: none; }
  body.pg-blog .filter-strip .chip { flex: 0 0 auto; height: 36px; padding: 0 14px !important; display: inline-flex; align-items: center; border-radius: 999px !important; background: var(--ap-card) !important; border: 1px solid var(--ap-line) !important; color: var(--ap-muted) !important; font: 600 12.5px/1 inherit; letter-spacing: 0 !important; text-transform: capitalize; }
  body.pg-blog .filter-strip .chip.is-active { background: var(--ap-teal) !important; border-color: var(--ap-teal) !important; color: #fff !important; }
  :root[data-theme="dark"] body.pg-blog .filter-strip .chip.is-active { color: #0F1821 !important; }
  body.pg-blog .filter-strip form { order: -1; flex: 0 0 100%; margin: 0 0 8px !important; width: 100%; position: sticky; left: 0; }
  body.pg-blog .filter-strip form .form-input { flex: 1; width: auto !important; height: 44px !important; min-height: 44px !important; border-radius: 14px !important; background: var(--ap-card) !important; border: 1px solid var(--ap-line) !important; color: var(--ap-text); box-shadow: none !important; }
  body.pg-blog .filter-strip form .btn { height: 44px; border-radius: 14px; }
  body.pg-blog .blog-grid { display: flex !important; flex-direction: column; gap: 10px !important; margin-top: 8px !important; }
  body.pg-blog .blog-card { opacity: 1 !important; transform: none !important; border-radius: 16px !important; background: var(--ap-card) !important; border: 1px solid var(--ap-line) !important; box-shadow: none !important; overflow: hidden; }
  body.pg-blog .blog-card__title { font-size: 16px !important; line-height: 1.3 !important; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  body.pg-blog .blog-card__excerpt { font-size: 12.5px !important; line-height: 1.5 !important; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }


  /* Home hero slider */
  .app-hero { position: relative; }
  .app-hero__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 20px; transition: opacity .17s ease; overscroll-behavior-x: contain; }
  .app-hero__track::-webkit-scrollbar { display: none; }
  .app-hero__track:focus-visible { outline: 2px solid var(--ap-red); outline-offset: 2px; }
  .app-hero__s { position: relative; flex: 0 0 100%; scroll-snap-align: center; overflow: hidden; display: flex; min-height: 206px; border-radius: 20px; background: #0F1821; color: #FFFFFF; }
  .app-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .app-hero__shade { position: absolute; inset: 0; background: #0F1821; }
  .app-hero__c { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 16px; text-shadow: 0 1px 8px rgba(15,24,33,.6); }
  .app-hero__c .app-chip { align-self: flex-start; position: relative; }
  .app-hero__c .app-offer__t span, .app-hero__c .app-offer__f { color: rgba(255,255,255,.86); }
  .app-hero__h { font: 600 20px/1.22 Poppins, sans-serif; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .app-hero__d { margin: 0; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.86); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .app-hero__cta { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 12px; background: #FF0042; color: #FFFFFF; font: 600 13px/1 Inter, sans-serif; text-shadow: none; transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s cubic-bezier(.22,1,.36,1); }
  .app-hero__cta:active { transform: translateY(1px); }
  .app-hero__dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
  .app-hero__dot { width: 22px; height: 22px; padding: 0; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .app-hero__dot i { display: block; width: 6px; height: 6px; border-radius: 999px; background: var(--ap-line); transition: width .28s cubic-bezier(.22,1,.36,1), background-color .28s ease; }
  :root[data-theme="dark"] .app-hero__dot i { background: rgba(255,255,255,.25); }
  .app-hero__dot.is-on i { width: 20px; background: var(--ap-red); }
  .app-hero__dot:focus-visible { outline: 2px solid var(--ap-red); border-radius: 8px; }


  /* Testimonials rail and FAQ on home */
  .app-tst { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 10px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
  .app-tst::-webkit-scrollbar { display: none; }
  .app-tst__c { flex: 0 0 84%; scroll-snap-align: start; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
  .app-tst__s { display: flex; gap: 2px; color: var(--ap-line); }
  .app-tst__s .on { color: #F5A524; }
  .app-tst__c blockquote { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ap-text); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
  .app-tst__c figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
  .app-tst__a { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: #003554; color: #FFFFFF; font: 600 12px/1 Poppins, sans-serif; }
  .app-tst__c figcaption strong { display: block; font-size: 13px; color: var(--ap-text); }
  .app-tst__c figcaption small { display: block; font-size: 11.5px; color: var(--ap-muted); margin-top: 2px; }
  .app-faq { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  .app-faq .accordion-item { background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 16px; box-shadow: none; overflow: hidden; }
  .app-faq .accordion-item.is-open { border-color: rgba(255,0,66,.35); }
  .app-faq .accordion-trigger { width: 100%; min-height: 52px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; background: none; border: 0; font: 600 13.5px/1.4 Inter, sans-serif; color: var(--ap-text); }
  .app-faq .accordion-content__inner { padding: 0 16px 16px; font-size: 13px; line-height: 1.6; color: var(--ap-muted); }

  .app-faq, .app-faq.accordion { border: 0 !important; border-top: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
  .app-faq .accordion-trigger__icon { width: 28px; height: 28px; flex: 0 0 auto; box-shadow: none !important; background: transparent !important; color: var(--ap-muted); }
  .app-faq .accordion-item.is-open .accordion-trigger__icon { color: var(--ap-red); }

  /* Flagship cards: icon tile + motion */
  .app-rail__c { position: relative; overflow: hidden; }
  .app-rail__ico { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #FFFFFF; animation: apBob 3.6s ease-in-out infinite; }
  .app-rail__ico::after { content: ""; position: absolute; inset: -1px; border-radius: 12px; border: 1px solid rgba(255,255,255,.45); animation: apRing 3s ease-out infinite; }
  .app-rail__c:nth-child(2) .app-rail__ico, .app-rail__c:nth-child(2) .app-rail__ico::after { animation-delay: -1.1s; }
  .app-rail__c:nth-child(3) .app-rail__ico, .app-rail__c:nth-child(3) .app-rail__ico::after { animation-delay: -2.2s; }
  .app-rail__c:active .app-rail__ico { background: #FF0042; border-color: #FF0042; }
  .app-rail:not(.is-in) .app-rail__c { opacity: 0; transform: translateY(14px); }
  .app-rail.is-in .app-rail__c { animation: apRise .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .app-rail svg g, .app-rail svg path, .app-rail svg circle { transform-box: fill-box; transform-origin: center; }
  .pi-l1 { animation: apLayer 2.8s ease-in-out infinite; }
  .pi-l2 { animation: apLayer 2.8s ease-in-out -.35s infinite; }
  .pi-l3 { animation: apLayer 2.8s ease-in-out -.7s infinite; }
  .pi-ai circle { fill: currentColor; animation: apNode 2.4s ease-in-out infinite; }
  .pi-n2 { animation-delay: -.5s !important; } .pi-n3 { animation-delay: -1s !important; } .pi-n4 { animation-delay: -1.5s !important; } .pi-n5 { animation-delay: -2s !important; }
  .pi-s1 { fill: currentColor; animation: apSpark 3.2s ease-in-out infinite; }
  .pi-s2 { fill: #FF5C84; stroke: #FF5C84; animation: apTwinkle 1.8s ease-in-out infinite; }
  @keyframes apBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes apRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
  @keyframes apRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes apLayer { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
  @keyframes apNode { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.5); opacity: 1; } }
  @keyframes apSpark { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(18deg); } }
  @keyframes apTwinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
  @media (prefers-reduced-motion: reduce) { .app-rail__ico, .app-rail__ico::after, .app-rail svg * { animation: none !important; } .app-rail:not(.is-in) .app-rail__c { opacity: 1; transform: none; } .app-rail.is-in .app-rail__c { animation: none; } }

  .app-rail__c { background: #003554 !important; }
  .app-rail__ico { background: #FF0042; border-color: #FF0042; color: #FFFFFF; box-shadow: 0 4px 12px rgba(255,0,66,.35); }
  .app-rail__ico::after { border-color: rgba(255,0,66,.7); }
  .pi-s2 { fill: #FFFFFF; stroke: #FFFFFF; }
  .app-rail__c:active .app-rail__ico { background: #D6003A; border-color: #D6003A; }

  /* Home: red header panel with a curved edge, hero slider card floating over it */
  body.pg-index .app-top { background: #FF0042; }
  body.pg-index .app-top__logo .site-logo__img--light { display: none; }
  body.pg-index .app-top__logo .site-logo__img--dark { display: block; }
  body.pg-index .app-top .app-ib { background: rgba(255,255,255,.18); color: #FFFFFF; box-shadow: none; border: 0; }
  body.pg-index .app-home { padding-top: 0; gap: 14px; }
  body.pg-index .app-hero { margin: 0 -16px; padding: 14px 16px 0; }
  body.pg-index .app-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; background: #FF0042; border-radius: 0 0 38px 38px; }
  body.pg-index .app-hero__track { position: relative; z-index: 1; box-shadow: 0 16px 30px rgba(15,24,33,.30), 0 3px 8px rgba(15,24,33,.18); }
  body.pg-index .app-hero__dots { position: relative; z-index: 1; margin-top: 10px; }

  /* Offers on home */
  .app-sh__note { font: 500 11.5px/1 "JetBrains Mono", monospace; color: var(--ap-red); }
  .app-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .app-offerc { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--ap-card); border: 1.5px solid #FF0042; box-shadow: 0 8px 22px rgba(255,0,66,.16); text-decoration: none; color: var(--ap-text); overflow: hidden; transition: transform .22s cubic-bezier(.22,1,.36,1); }
  .app-offerc:active { transform: scale(.97); }
  .app-offerc::after { content: ""; position: absolute; inset: 0; border-radius: 16px; border: 2px solid #FF0042; opacity: 0; animation: apOfferGlow 2.8s ease-in-out infinite; pointer-events: none; }
  .app-offerc:nth-child(2)::after { animation-delay: -1.4s; }
  .app-offerc__badge { align-self: flex-start; padding: 4px 8px; border-radius: 6px; background: #FF0042; color: #FFFFFF; font: 600 10.5px/1 "JetBrains Mono", monospace; letter-spacing: .04em; }
  .app-offerc__ico { width: 36px; height: 36px; margin: 8px 0 4px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #003554; color: #FFFFFF; }
  :root[data-theme="dark"] .app-offerc__ico { background: rgba(255,255,255,.12); }
  .app-offerc strong { font: 600 14px/1.25 Poppins, Inter, sans-serif; }
  .app-offerc small { font-size: 11.5px; color: var(--ap-muted); }
  .app-offerc__p { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
  .app-offerc__p b { font: 600 19px/1 Poppins, sans-serif; color: #FF0042; }
  .app-offerc__p s { font-size: 12px; color: var(--ap-muted); }
  .app-pill--offer.is-on { background: #FF0042 !important; border-color: #FF0042 !important; color: #FFFFFF !important; }
  @keyframes apOfferGlow { 0%, 100% { opacity: 0; } 50% { opacity: .35; } }
  @media (prefers-reduced-motion: reduce) { .app-offerc::after { animation: none; } }

  /* Top bar hide / reveal on scroll */
  .app-top { transition: transform .32s cubic-bezier(.22,1,.36,1), box-shadow .25s ease; will-change: transform; }
  .app-top.is-away { transform: translateY(-100%); }
  .app-top.is-scrolled { box-shadow: 0 6px 18px rgba(15,24,33,.14); }
  body.pg-index .app-top.is-scrolled { box-shadow: 0 6px 18px rgba(255,0,66,.28); }
  @media (prefers-reduced-motion: reduce) { .app-top { transition: none; } }

  /* Splash: loading animation */
  .app-splash__lg { position: relative; display: flex; align-items: center; justify-content: center; width: 220px; height: 110px; animation: apLogoIn .8s cubic-bezier(.16,1,.3,1) both; }
  .app-splash__pr { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 1.5px solid rgba(255,0,66,.7); opacity: 0; animation: apSplashRing 2.4s ease-out .5s infinite; }
  .app-splash__pr--2 { animation-delay: 1.3s; }
  .app-splash__mid h2 { margin-top: 6px; }
  .app-splash__mid h2 b { color: #FF0042; font: inherit; }
  .app-splash__mid h2 .ln { color: #FFFFFF; display: inline-block; animation: apLineUp .7s cubic-bezier(.16,1,.3,1) .45s both; }
  .app-splash__mid h2 .ln + br + .ln { animation-delay: .6s; }
  .app-splash__mid p { animation: apLineUp .7s cubic-bezier(.16,1,.3,1) .8s both; }
  .app-splash__load { width: 160px; height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; animation: apLineUp .5s ease 1s both; }
  .app-splash__load i { display: block; height: 100%; width: 100%; border-radius: 3px; background: #FF0042; transform-origin: left center; transform: scaleX(0); animation: apLoad 1.1s cubic-bezier(.45,.05,.2,1) 1s forwards; }
  .app-splash__foot { transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1); }
  @keyframes apLogoIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
  @keyframes apLineUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes apSplashRing { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
  @keyframes apLoad { to { transform: scaleX(1); } }
  @media (prefers-reduced-motion: reduce) { .app-splash__lg, .app-splash__mid h2 .ln, .app-splash__mid p, .app-splash__load { animation: none; } .app-splash__pr { display: none; } .app-splash__load i { animation: none; transform: scaleX(1); } .app-splash__foot { transition: none; } }

  /* Article cards: compact colour band with a default icon */
  .blog-card__image, .blog-card__image--v2, .blog-card__image--v3 { aspect-ratio: auto !important; height: 96px !important; min-height: 0 !important; padding: 0 !important; background: #003554 !important; }
  .blog-card__image--v2 { background: #0F1821 !important; }
  .blog-card__image--v3 { background: #00466F !important; }
  .blog-card__category { position: absolute !important; top: 12px !important; left: 12px !important; background: #FFFFFF !important; color: #003554 !important; border-radius: 6px !important; padding: 4px 8px !important; font-size: 10.5px; letter-spacing: .06em; }
  .blog-card__body { padding: 12px 16px 14px !important; gap: 6px !important; }
  /* Header: plain, no line or shadow */
  .app-top, .app-top.is-scrolled, body.pg-index .app-top.is-scrolled { box-shadow: none !important; border: 0 !important; }
  body.pg-index .app-hero::before { top: -4px !important; height: 154px !important; }

  /* Top bar is fixed (sticky is blocked by the body overflow rule); a spacer keeps the layout */
  .app-top { position: fixed !important; top: 0; left: 0; right: 0; }
  .app-top-sp { display: block; height: calc(56px + env(safe-area-inset-top)); }

  /* Back button and swipe-back */
  .app-top__back { flex: 0 0 auto; margin-right: 10px; }
  .app-top__title--back { flex: 1; min-width: 0; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-top:has(.app-top__back) { padding-left: 12px; }
  #main-content.is-swiping { will-change: transform, opacity; }
  #main-content.is-swipe-settle { transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .28s ease; }
  .app-swipe-cue { position: fixed; left: 0; top: 50%; z-index: 90; width: 36px; height: 36px; margin-top: -18px; border-radius: 0 18px 18px 0; display: flex; align-items: center; justify-content: center; background: #FF0042; color: #FFFFFF; opacity: 0; transform: translateX(-100%); pointer-events: none; }

  @media (prefers-reduced-motion: reduce) {
    .app-offer__ring, .app-splash__ring--a { animation: none; }
    .app-splash, .app-splash.is-out { transition: none; }
  }

  /* Theme button: shows the moon in light mode and the sun in dark mode */
  [data-theme-toggle].app-ib { position: relative; }
  .app-ib__ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .25s ease, transform .35s cubic-bezier(.16,1,.3,1); }
  .app-ib__ico--sun { opacity: 0; transform: rotate(-70deg) scale(.6); }
  html[data-theme="dark"] .app-ib__ico--moon { opacity: 0; transform: rotate(70deg) scale(.6); }
  html[data-theme="dark"] .app-ib__ico--sun { opacity: 1; transform: none; }
  @media (prefers-color-scheme: dark) {
    html:not([data-theme]) .app-ib__ico--moon { opacity: 0; transform: rotate(70deg) scale(.6); }
    html:not([data-theme]) .app-ib__ico--sun { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) { .app-ib__ico { transition: none; } }

  /* Offers: highlighted heading, card timers, hero view button */
  .app-sh--hot h2 { display: inline-flex; align-items: center; gap: 8px; }
  .app-sh--hot h2 span { position: relative; padding: 0 2px; }
  .app-sh--hot h2 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 3px; background: #FF0042; transform-origin: left center; animation: apHotLine 3.2s cubic-bezier(.22,1,.36,1) infinite; }
  .app-live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #FF0042; flex: none; }
  .app-live::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #FF0042; animation: apLive 1.8s ease-out infinite; }
  .app-sh--hot .app-sh__note { padding: 4px 9px; border-radius: 999px; background: rgba(255,0,66,.10); }
  @keyframes apLive { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }
  @keyframes apHotLine { 0% { transform: scaleX(0); } 35%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
  .countdown--card { display: flex; gap: 4px; margin-top: 10px; }
  .countdown--card .countdown__cell { flex: 1 1 0; min-width: 0; height: 36px; border-radius: 8px; background: rgba(0,53,84,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .countdown--card .countdown__num { font: 600 13px/1 "JetBrains Mono", monospace; color: #003554; }
  .countdown--card .countdown__lbl { font: 500 7.5px/1 Inter, sans-serif; margin-top: 3px; text-transform: uppercase; color: var(--ap-muted); letter-spacing: .03em; }
  :root[data-theme="dark"] .countdown--card .countdown__cell { background: rgba(255,255,255,.10); }
  :root[data-theme="dark"] .countdown--card .countdown__num { color: #FFFFFF; }
  .app-hero__cta--view { margin-top: 2px; gap: 6px; min-height: 38px; padding: 0 16px; }
  @media (prefers-reduced-motion: reduce) { .app-sh--hot h2 span::after, .app-live::before { animation: none; } }
}
