/* ============================================================
   IC Wealth Help Centre — styles
   Brand: IC Wealth live-site palette, Dosis
   ============================================================ */

:root {
  --navy: #002856;
  --navy-700: #002956;
  --navy-050: #f3f7fb;
  --blue-text: #002856;
  --orange: #f4911e;
  --orange-600: #e87200;
  --ink: #202124;
  --muted: #98989a;
  --muted-2: #6f8193;
  --bg: #ffffff;
  --card: #ffffff;
  --soft-bg: #fafafa;
  --line: #e8edf3;
  --line-soft: #f0f2f5;
  --green: #1f9d6b;
  --green-bg: #e7f6ef;
  --red: #d64545;
  --red-bg: #fdecec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 40, 86, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 40, 86, 0.08);
  --shadow-lg: 0 18px 44px rgba(0, 40, 86, 0.13);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Dosis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a[onclick], a[href] { cursor: pointer; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Top navigation (faithful to wealth.ic.africa) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(232, 237, 243, 0.82);
  box-shadow: 0 2px 14px rgba(0, 40, 86, 0.04);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 0; cursor: pointer; text-decoration: none; }
.brand img { height: 50px; width: auto; max-width: 100%; }
.brand .brand-bar { border-left: 2px solid #97a3b9; margin-bottom: -8px; }
.brand .brand-bar-inner { margin-left: 8px; line-height: 2; }
.brand .wordmark {
  font-size: 24px; font-weight: 400; color: #002856; letter-spacing: 0;
  font-family: "PT Sans", sans-serif;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: "PT Sans", sans-serif; font-size: 14px; font-weight: 400; color: #002856;
  padding: 8px; border-radius: 3px; white-space: nowrap; border-bottom: 1px solid transparent;
  cursor: pointer; transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link:hover { color: var(--orange-600); background: transparent; }
.nav-link.active { color: #002856; font-weight: 500; border-bottom: 1px solid var(--orange-600); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  font-family: "PT Sans", sans-serif; font-size: 14px; font-weight: 400; color: #002856;
  padding: 8px; border-radius: 3px; background: transparent; border: none;
  cursor: pointer; transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.btn-ghost:hover { color: var(--orange-600); background: transparent; }
.btn-app {
  font-family: "PT Sans", sans-serif; font-size: 14px; font-weight: 400; color: #fff;
  background: var(--orange-600); border: 1px solid var(--orange-600);
  padding: 8px 18px; border-radius: 999px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-app:hover { background: #d6780b; border-color: #cd730a; }
.btn-app:active { background: #d6780b; }

.nav-toggle {
  display: none; background: none; border: none; padding: 8px; border-radius: 8px;
}
.nav-toggle:hover { background: var(--navy-050); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; transition: 0.2s var(--ease); }

/* ---------- Page shell ---------- */
main { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px 90px; flex: 1 0 auto; }
.view { animation: viewIn 0.32s var(--ease); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 0 calc(50% - 50vw) 34px;
  padding: 58px max(24px, calc((100vw - var(--maxw)) / 2 + 24px)) 52px;
  border-radius: 0;
  background: #002856;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
/* IC orange + grey arc designs anchored in the upper-right corner */
.hero::before {
  content: ""; position: absolute; right: min(-340px, calc(50vw - 1420px)); top: -780px; width: 1040px; height: 1040px;
  border-radius: 50%; border: 16px solid rgba(244, 145, 30, 0.92);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; right: min(-480px, calc(50vw - 1520px)); top: -720px; width: 1140px; height: 1140px;
  border-radius: 50%; border: 13px solid rgba(190, 196, 205, 0.32);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px;
  color: #f7c181; margin: 0 0 12px; font-weight: 700;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 auto 14px; font-weight: 700; letter-spacing: -0.8px; max-width: 680px; color: #fff; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.88); margin: 0 auto 26px; max-width: 560px; }
.hero.report-hero { padding-top: 44px; padding-bottom: 42px; }
.hero.report-hero h1 { font-size: clamp(30px, 4.3vw, 44px); }

.search-wrap { position: relative; max-width: 620px; margin: 0 auto; }
.search-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search {
  width: 100%; height: 56px; padding: 0 18px 0 50px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 40, 86, 0.08); outline: none;
  transition: box-shadow 0.2s var(--ease);
}
.search:focus { box-shadow: 0 0 0 4px rgba(244,145,30,0.35), var(--shadow-md); }
.search::placeholder { color: var(--muted-2); }

/* ---------- Section headings ---------- */
.section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--orange-600);
  font-weight: 700; margin: 34px 0 14px;
}

/* ---------- Pillar cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  position: relative; overflow: hidden;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(244,145,30,0.28); }
.pillar-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; color: #fff;
}
.pillar-icon svg, .cat-tile .ci svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.pillar h3 { font-size: 17px; margin: 0 0 5px; font-weight: 700; color: var(--blue-text); }
.pillar p { font-size: 14px; color: var(--muted); margin: 0 0 14px; min-height: 38px; }
.pillar .meta { font-size: 12.5px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.pillar .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.pillar .arrow { color: var(--orange); font-weight: 700; }

/* ---------- Report banner ---------- */
.report-banner {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(120deg, #003a70, #002856);
  border-radius: var(--radius); padding: 22px 26px; color: #fff; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.report-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.report-banner h4 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
.report-banner p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.78); }
.report-banner .cta {
  background: var(--orange); color: #fff; font-weight: 700; padding: 11px 18px;
  border-radius: 10px; white-space: nowrap; font-size: 14px;
  box-shadow: 0 4px 12px rgba(244,145,30,0.35);
}

/* ---------- Popular / list ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.q-row {
  display: flex; align-items: center; gap: 14px; padding: 15px 20px; cursor: pointer;
  transition: background 0.15s var(--ease);
}
.q-row + .q-row { border-top: 1px solid var(--line-soft); }
.q-row:hover { background: #fffaf4; }
.q-row .num { color: var(--muted-2); font-size: 13px; width: 16px; flex-shrink: 0; font-weight: 700; }
.q-row .row-ic {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-600); background: #fff4e8;
}
.q-row .row-ic svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.q-row .txt { flex: 1; font-size: 15px; color: var(--ink); }
.q-row .chev { color: var(--muted-2); transition: transform 0.15s var(--ease); }
.q-row:hover .chev { transform: translateX(3px); color: var(--orange); }

.badge-video {
  font-size: 11px; font-weight: 700; color: var(--orange-600); background: #fdf0e0;
  padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
}

/* ---------- Breadcrumb / back ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #002856; margin: 24px 0 18px; }
.crumbs a { color: #002856; cursor: pointer; transition: color 0.15s var(--ease); }
.crumbs a:hover { color: var(--orange-600); }
.crumbs .sep { color: #002856; }
.crumbs .here { color: #002856; font-weight: 700; }

.back {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted);
  margin: 24px 0 16px; cursor: pointer; transition: color 0.15s var(--ease);
}
.back:hover { color: var(--navy); }

/* ---------- Category page ---------- */
.cat-hero {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 8px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 18px;
}
.cat-hero .pillar-icon { margin: 0; flex-shrink: 0; }
.cat-hero h2 { font-size: 23px; margin: 0 0 4px; color: var(--blue-text); font-weight: 700; }
.cat-hero p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.article h2 { font-size: 34px; line-height: 1.12; margin: 6px 0 12px; color: var(--blue-text); font-weight: 700; letter-spacing: -0.7px; }
.article-meta { font-size: 13px; color: var(--muted-2); margin: 0 0 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--blue-text); font-weight: 500; }
.prose p { margin: 0 0 16px; }
.prose ol, .prose ul { margin: 0 0 16px; padding-left: 26px; }
.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }
.prose li { margin: 0 0 10px; padding-left: 4px; }
.prose li:last-child { margin-bottom: 0; }
.prose li::marker { color: var(--orange-600); font-weight: 700; }

/* Walkthrough video player. Clips are portrait phone recordings (9:16), so the
   stage is capped by height and centred on a dark backdrop to avoid huge tap
   targets on desktop while still filling the width on mobile. */
.video-player {
  margin: 0 0 22px; border-radius: var(--radius); overflow: hidden;
  background: #001329; box-shadow: var(--shadow-md);
}
/* Stage wraps the <video> so the custom play button can sit centred over it. */
.video-stage { position: relative; display: flex; justify-content: center; background: #001329; }
.video-player .hc-video {
  display: block; width: 100%; max-height: 70vh; margin: 0 auto;
  background: #001329; aspect-ratio: 9 / 16; object-fit: contain;
}
.video-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; padding: 0; border: 0; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s var(--ease), transform 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-play-btn:focus, .video-play-btn:focus-visible { outline: none; }
.video-play-btn svg { display: block; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35)); }
.video-play-btn .vp-icon { display: flex; }
.video-play-btn .vp-pause { display: none; }
/* While playing: hide the overlay. A PAUSE button is revealed only while the
   pointer is MOVING over the video (JS adds .show-controls) and auto-hides
   ~1.5s after movement stops. When paused/ended the PLAY button is always shown. */
.video-stage.is-playing .video-play-btn { opacity: 0; pointer-events: none; }
.video-stage.is-playing.show-controls .video-play-btn { opacity: 1; pointer-events: auto; }
.video-stage.is-playing .vp-play { display: none; }
.video-stage.is-playing .vp-pause { display: flex; }
/* Touch devices have no moving pointer — keep the pause control reachable. */
@media (hover: none) {
  .video-stage.is-playing .video-play-btn { opacity: 1; pointer-events: auto; }
}
.video-player figcaption {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #001b3d, #013a78);
}
.video-player figcaption svg { color: var(--orange); flex: 0 0 auto; }
@media (min-width: 720px) {
  /* Keep the 9:16 ratio (don't switch to auto) so the player reserves its full
     height on first paint — otherwise it briefly collapses until metadata loads. */
  .video-player .hc-video { max-width: 420px; max-height: 78vh; }
}

.shot-note {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-2); font-weight: 600;
  background: var(--navy-050); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 0 0 20px;
}

/* ---------- Help check ---------- */
.helpcheck {
  margin-top: 30px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.helpcheck h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--blue-text); }
.helpcheck p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 11px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 700; border: 1px solid var(--line);
  background: #fff; color: var(--blue-text); transition: all 0.18s var(--ease);
}
.btn:hover { background: #fffaf4; border-color: rgba(244,145,30,0.32); }
.btn.primary { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 8px 18px rgba(244,145,30,0.22); }
.btn.primary:hover { background: var(--orange-600); border-color: var(--orange-600); }
.btn.orange { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 4px 12px rgba(244,145,30,0.3); }
.btn.orange:hover { background: var(--orange-600); }

.resolved {
  margin-top: 30px; padding: 22px 24px; background: var(--green-bg); border-radius: var(--radius);
  border: 1px solid #c9ecdb;
}
.resolved h4 { margin: 0 0 4px; color: var(--green); font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.resolved p { margin: 0; color: #2c7a59; font-size: 14px; }

/* ---------- Report categories grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(244,145,30,0.28); }
.cat-tile .ci {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 700; font-size: 17px;
}
.cat-tile .ct { flex: 1; }
.cat-tile .ct h4 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--blue-text); }
.cat-tile .ct p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted-2); }
.cat-tile .chev { color: var(--muted-2); transition: transform 0.15s var(--ease); }
.cat-tile:hover .chev { transform: translateX(3px); color: var(--orange); }

/* ---------- Intro callout ---------- */
.callout {
  background: linear-gradient(120deg, #eef3f9, #f4f8fc); border: 1px solid var(--line);
  border-left: 4px solid var(--orange); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 8px;
}
.callout h3 { margin: 0 0 5px; font-size: 15px; color: var(--blue-text); font-weight: 700; }
.callout p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #475569; }

.info-screen {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); margin-top: 6px;
}
.info-screen .info-ic { width: 44px; height: 44px; border-radius: 12px; background: #fff4e8; color: var(--orange-600); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.info-screen h3 { margin: 0 0 8px; font-size: 19px; color: var(--blue-text); font-weight: 700; }
.info-screen p { margin: 0 0 10px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.info-screen .prose { font-size: 15px; color: var(--blue-text); line-height: 1.75; font-weight: 500; }
.info-screen .prose p { color: var(--blue-text); }

/* ---------- Awurama AI assist (report leaves) ---------- */
.ai-badge {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12px;
  color: var(--orange-600); letter-spacing: 0.2px;
}
.ai-badge svg { width: 14px; height: 14px; }
.ai-assist {
  background: linear-gradient(120deg, #042a59, #0a3a73); color: #fff;
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.ai-assist .ai-assist-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.ai-assist .ai-badge { color: #ffd9a8; background: rgba(255,255,255,0.12); padding: 3px 9px; border-radius: 999px; }
.ai-assist p { margin: 0 0 16px; font-size: 14px; color: rgba(255,255,255,0.9); line-height: 1.6; }
.ai-assist .btn.primary { background: var(--orange); border-color: var(--orange); }
.ai-assist .btn.primary:hover { background: var(--orange-600); border-color: var(--orange-600); }
.ai-assist.subtle {
  background: linear-gradient(120deg, #eef3f9, #f4f8fc); color: var(--muted);
  border: 1px solid var(--line); border-left: 4px solid var(--orange);
  padding: 14px 18px; font-size: 14px; box-shadow: none;
}
.ai-assist.subtle .ai-badge { color: var(--orange-600); background: transparent; padding: 0; }
.ai-assist.subtle a { color: var(--blue-text); font-weight: 700; cursor: pointer; text-decoration: underline; }
.ai-hint {
  margin-top: 16px; padding: 12px 16px; background: #fff7ee; border: 1px solid #ffe2c2;
  border-radius: var(--radius-sm); font-size: 13.5px; color: #8a5a1c; line-height: 1.55;
}
.ai-hint .ai-badge { margin-right: 4px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px; margin-top: 6px; max-width: 720px;
}
.form-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--blue-text); font-weight: 700; }
.form-card .sub { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); }

.urgent-banner {
  display: flex; align-items: center; gap: 10px; background: var(--red-bg); border: 1px solid #f6cccc;
  color: #b53636; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: 13.5px;
}
.urgent-banner strong { font-weight: 700; }

.field-group {
  background: #fffdfb; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 16px 16px 4px; margin-bottom: 16px;
}
.field-group .fg-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted-2); font-weight: 700; margin-bottom: 12px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.field label .opt { color: var(--muted-2); font-weight: 400; }
.field label .req-star { color: #d64545; font-weight: 700; margin-left: 1px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,145,30,0.15);
}
.field textarea { min-height: 92px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* App store download badges (replaces the location note on the download article) */
.store-badges { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; justify-content: space-between; background: #002856; border-radius: 12px; padding: 18px 20px; margin: 4px 0 20px; }
.store-badges-text { flex: 1 1 200px; min-width: 180px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.store-badges-text strong { font-size: 16px; font-weight: 700; }
.store-badges-text span { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.4; }
.store-badges-arrow { display: inline-flex; align-items: center; color: var(--orange); flex: 0 0 auto; animation: store-arrow 1.2s var(--ease) infinite; }
@keyframes store-arrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.store-badges-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-flex; line-height: 0; transition: transform 0.12s var(--ease), opacity 0.12s var(--ease); }
.store-badge:hover { transform: translateY(-1px); opacity: 0.9; }
.store-badge img { height: 40px; width: auto; display: block; }

/* Email recognition indicator (green check when the email is on record) */
.email-input-wrap { position: relative; }
.email-input-wrap input { padding-right: 40px; }
.email-status { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: none; align-items: center; justify-content: center; pointer-events: none; }
.email-status.checking, .email-status.ok { display: flex; }
.email-status.ok { color: #1a9d52; }
.email-spin { width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: email-spin 0.7s linear infinite; }
@keyframes email-spin { to { transform: rotate(360deg); } }
.email-note { display: none; margin-top: 5px; font-size: 12px; font-weight: 600; color: #d64545; }
.email-note.show { display: block; }

.file-drop {
  border: 1px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center;
  font-size: 13.5px; color: var(--muted); background: #fcfdfe; cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.file-drop:hover { border-color: var(--orange); background: #fffaf3; color: var(--orange-600); }
.file-drop.has-file { border-style: solid; border-color: var(--green); background: var(--green-bg); color: #2c7a59; }
.file-drop { display: block; word-break: break-word; }

.form-error {
  background: var(--red-bg); border: 1px solid #f6cccc; color: #b53636;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px;
}
.form-submit:disabled { opacity: 0.65; cursor: default; transform: none; box-shadow: none; }

.form-submit {
  background: var(--orange); color: #fff; border: none; padding: 13px 26px; border-radius: 11px;
  font-size: 15px; font-weight: 700; margin-top: 6px; box-shadow: 0 6px 16px rgba(244,145,30,0.32);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.form-submit:hover { background: var(--orange-600); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(244,145,30,0.4); }
.form-submit:active { transform: translateY(0); }

/* ---------- Ticket ---------- */
.ticket {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 38px 30px; text-align: center; max-width: 560px; margin: 6px auto 0;
}
.ticket .tick {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  animation: pop 0.4s var(--ease);
}
@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.ticket h3 { margin: 0 0 8px; font-size: 22px; color: var(--blue-text); font-weight: 700; }
.ticket p { margin: 0 0 16px; font-size: 15px; color: var(--muted); line-height: 1.65; }
.ticket .tid {
  display: inline-block; padding: 11px 22px; background: #fff4e8; color: var(--blue-text);
  border-radius: 10px; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.ticket .sla { font-size: 13px; color: var(--muted-2); }

/* ---------- Search results ---------- */
.results-head { font-size: 14px; color: var(--muted); margin: 24px 0 14px; }
.results-head strong { color: var(--ink); }
.res-group + .res-group { margin-top: 8px; }
.res-pill { font-size: 11px; font-weight: 700; color: var(--orange-600); background: #fff4e8; padding: 3px 9px; border-radius: 20px; }
.empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty h3 { color: var(--blue-text); margin: 0 0 6px; }

/* ---------- Footer ---------- */
.footer {
  background: #002856; color: rgba(255,255,255,0.74); margin-top: 40px; flex-shrink: 0;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px 24px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer .f-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.footer .f-brand img { filter: brightness(0) invert(1); }
.footer a:hover { color: #fff; }
.footer .f-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.footer .f-copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-links, .nav-right .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px 18px 18px; box-shadow: var(--shadow-md);
  }
  .nav-links.open .nav-link { padding: 13px 12px; font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 18px 36px; border-radius: 0; margin-top: 0; }
  .hero h1 { font-size: 36px; }
  .hero.report-hero h1 { font-size: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .report-banner { flex-direction: column; align-items: flex-start; }
  .article h2 { font-size: 25px; }
  .cat-hero { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 520px) {
  main { padding: 0 16px 60px; }
  .nav-inner { padding: 0 16px; }
  .brand .brand-bar { display: none; }
  .brand img { height: 44px; }
  .hero h1 { font-size: 34px; }
  .hero.report-hero h1 { font-size: 30px; }
  .search { height: 52px; font-size: 15px; }
  .form-card, .info-screen { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
