/* AFFLIGO hub pages - shared premium UI.
   Used by pdf-tools / image-tools / ocr-tools / video-tools / calculator-tools.
   Self-contained on purpose: these pages do NOT load style.css, so nothing in
   the 150KB tool stylesheet can override the layout. */

:root {
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #5b6b80;
  --line: #e3ebf6;
  --line-2: #eef3fb;
  --bg: #f7fafe;
  --blue: #2563eb;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 26px -20px rgba(15, 23, 42, .35);
  --shadow-2: 0 28px 48px -30px rgba(37, 99, 235, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }

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

.hub-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.hub-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 2000;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-1);
}
.hub-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- navbar ---------- */
.hub-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(226, 235, 246, .9);
  transition: box-shadow .25s, border-color .25s;
}
.hub-nav.is-stuck {
  box-shadow: 0 12px 30px -24px rgba(15, 23, 42, .55);
  border-bottom-color: rgba(203, 220, 242, .95);
}
.hub-nav-in {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hub-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.hub-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .14), 0 8px 18px -10px rgba(37, 99, 235, .7);
}
.hub-brand-txt { display: flex; flex-direction: column; line-height: 1; }
.hub-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, #1d4ed8, #7c3aed 55%, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hub-brand-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0891b2;
  margin-top: 3px;
}
.hub-links { display: flex; align-items: center; gap: 2px; }
.hub-links a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.hub-links a:hover { color: #1d4ed8; background: rgba(37, 99, 235, .07); }
.hub-links a[aria-current="page"] { color: #1d4ed8; background: rgba(37, 99, 235, .1); }

.hub-burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  flex: none;
}
.hub-burger span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-2);
  transition: transform .22s, opacity .22s;
}
.hub-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hub-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hub-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .hub-burger { display: inline-flex; }
  .hub-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .hub-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .hub-links a { padding: 11px 12px; border-radius: 10px; font-size: .92rem; }
}

/* ---------- hero ---------- */
.hub-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 54px) 24px clamp(32px, 5vw, 56px);
  background:
    radial-gradient(900px 420px at 12% -10%, #e0ecff 0%, transparent 62%),
    radial-gradient(760px 420px at 92% 0%, #efe7ff 0%, transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 48%, #f7fafe 100%);
}
.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 68%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 68%);
  pointer-events: none;
}
.hub-hero::after {
  content: '';
  position: absolute;
  left: -140px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .09) 0%, transparent 68%);
  pointer-events: none;
}
.hub-hero-in {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 44px;
  align-items: center;
}
.hub-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}
.hub-crumbs a:hover { color: #1d4ed8; }
.hub-crumbs svg { width: 12px; height: 12px; opacity: .55; }
.hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: linear-gradient(120deg, rgba(37, 99, 235, .1), rgba(124, 58, 237, .1));
  border: 1px solid rgba(37, 99, 235, .18);
  padding: 7px 13px;
  border-radius: 99px;
  margin-bottom: 18px;
}
.hub-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, #2563eb, #7c3aed);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.hub-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.025em;
  color: #0b1220;
  margin-bottom: 16px;
}
.hub-h1 .g {
  background: linear-gradient(115deg, #1d4ed8 0%, #7c3aed 52%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hub-lede {
  font-size: clamp(.98rem, 1.6vw, 1.08rem);
  color: var(--ink-2);
  max-width: 54ch;
  line-height: 1.66;
  margin-bottom: 22px;
}
.hub-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 99px;
  font-size: .92rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.hub-btn svg { width: 17px; height: 17px; }
.hub-btn-primary {
  background: linear-gradient(120deg, #2563eb, #1d4ed8 62%, #1e40af);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(37, 99, 235, .8);
}
.hub-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(37, 99, 235, .85); }
.hub-btn-ghost {
  background: #fff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, .25);
  box-shadow: var(--shadow-1);
}
.hub-btn-ghost:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, .5); background: #f8fbff; }
.hub-trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.hub-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 11px;
}
.hub-trust svg { width: 13px; height: 13px; color: #0f9d58; }

.hub-search { position: relative; margin-top: 22px; max-width: 440px; }
.hub-search input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: border-color .2s, box-shadow .2s;
}
.hub-search input::placeholder { color: #8b9bb0; }
.hub-search input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.hub-search > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #8b9bb0;
  pointer-events: none;
}
.hub-result {
  margin-top: 10px;
  min-height: 1.1em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}

/* hero document stack */
.hub-visual { position: relative; height: 328px; }
.hub-doc {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 206px;
  height: 262px;
  margin-left: -103px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6eefb;
  box-shadow: 0 30px 60px -34px rgba(15, 23, 42, .55);
  padding: 18px;
}
.hub-doc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(37, 99, 235, .06), transparent 46%);
  pointer-events: none;
}
.hub-doc.d3 { transform: rotate(-10deg) translate(-34px, 14px); opacity: .55; }
.hub-doc.d2 { transform: rotate(6deg) translate(30px, 8px); opacity: .82; }
.hub-doc.d1 { transform: rotate(-2deg); }
.hub-doc-bar { display: block; height: 8px; width: 58%; border-radius: 99px; background: linear-gradient(90deg, #2563eb, #7c3aed); }
.hub-doc-line { display: block; height: 7px; border-radius: 99px; background: #e9f0fc; margin-top: 10px; }
.hub-doc-line.w1 { width: 92%; }
.hub-doc-line.w2 { width: 72%; }
.hub-doc-line.w3 { width: 84%; }
.hub-doc-line.w4 { width: 46%; }
.hub-doc-tag {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  padding: 8px 10px;
  border-radius: 9px;
  box-shadow: 0 12px 22px -12px rgba(37, 99, 235, .9);
}
.hub-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 14px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 18px 36px -22px rgba(15, 23, 42, .7);
}
.hub-float svg { width: 14px; height: 14px; }
.hub-float.f1 { left: 0; bottom: 26px; color: #0f766e; }
.hub-float.f1 svg { color: #0f9d58; }
.hub-float.f2 { right: -4px; top: 38px; color: #6d28d9; }
@keyframes hubFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hub-float.f1 { animation: hubFloat 6s ease-in-out infinite .7s; }
.hub-float.f2 { animation: hubFloat 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hub-float.f1, .hub-float.f2 { animation: none; }
  .hub-card, .hub-guide, .hub-btn, .hub-chip { transition: none; }
}

/* stats bar */
.hub-stats {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: clamp(24px, 4vw, 36px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 20px;
  box-shadow: 0 26px 50px -42px rgba(15, 23, 42, .7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.hub-stat { padding: 18px 20px; text-align: center; border-left: 1px solid rgba(37, 99, 235, .1); }
.hub-stat:first-child { border-left: 0; }
.hub-stat b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, #1d4ed8, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hub-stat span {
  display: block;
  margin-top: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hub-hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hub-visual { display: none; }
  .hub-hero { padding-top: 24px; }
}

/* ---------- category chips ---------- */
.hub-chips {
  position: sticky;
  top: 64px;
  z-index: 900;
  background: rgba(247, 250, 254, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.hub-chips-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hub-chips-in::-webkit-scrollbar { display: none; }
.hub-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-2);
  transition: transform .18s, border-color .18s, color .18s, box-shadow .18s;
}
.hub-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .45);
  color: #1d4ed8;
  box-shadow: 0 10px 22px -18px rgba(37, 99, 235, .9);
}
.hub-chip em {
  font-style: normal;
  font-size: .66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(37, 99, 235, .1);
  color: #1d4ed8;
}

/* ---------- sections ---------- */
.hub-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px) 24px 0;
  scroll-margin-top: 128px;
}
.hub-section[hidden] { display: none; }
.hub-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.hub-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 64px;
  border-radius: 2px;
  background: var(--tone-grad, #2563eb);
}
.hub-head-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--tone-soft);
  color: var(--tone);
  box-shadow: inset 0 0 0 1px var(--tone-ring);
}
.hub-head-ico svg { width: 21px; height: 21px; }
.hub-head-txt { min-width: 0; }
.hub-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.22rem, 2.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -.015em;
  color: #0b1220;
  margin-bottom: 3px;
}
.hub-head p { font-size: .88rem; color: var(--muted); }
.hub-count {
  margin-left: auto;
  flex: none;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tone);
  background: var(--tone-soft);
  border: 1px solid var(--tone-ring);
  padding: 6px 11px;
  border-radius: 99px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
/* Two-card pages (OCR) read better as a pair of wide cards than as half a row. */
.hub-grid.is-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.hub-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--tone-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
  z-index: 1;
}
.hub-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -60%;
  width: 45%;
  height: 180%;
  background: linear-gradient(100deg, transparent, rgba(37, 99, 235, .07), transparent);
  transform: skewX(-18deg);
  transition: left .7s ease;
  pointer-events: none;
  z-index: 0;
}
.hub-card:hover { transform: translateY(-5px); border-color: rgba(37, 99, 235, .28); box-shadow: var(--shadow-2); }
.hub-card:hover::before { transform: scaleX(1); }
.hub-card:hover::after { left: 120%; }
.hub-card[hidden] { display: none; }
.hub-card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.hub-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--tone-soft);
  color: var(--tone);
  box-shadow: inset 0 0 0 1px var(--tone-ring);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.hub-ico svg { width: 21px; height: 21px; }
.hub-card:hover .hub-ico {
  transform: scale(1.06) rotate(-3deg);
  background: var(--tone-grad);
  color: #fff;
}
.hub-flag {
  margin-left: auto;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 99px;
  color: #b45309;
  background: linear-gradient(120deg, #fef3c7, #ffedd5);
  border: 1px solid #fde68a;
}
.hub-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #0b1220;
  margin-bottom: 6px;
}
.hub-card p { font-size: .855rem; line-height: 1.56; color: var(--muted); flex: 1; }
.hub-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed var(--line-2);
}
.hub-out {
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: #f4f8fe;
  border: 1px solid #e6eefb;
  padding: 4px 8px;
  border-radius: 7px;
}
.hub-go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .77rem;
  font-weight: 800;
  color: var(--tone);
}
.hub-go svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.hub-card:hover .hub-go svg { transform: translateX(3px); }

.hub-empty {
  margin-top: 18px;
  padding: 24px;
  border: 1px dashed #c7d7ee;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.hub-empty[hidden] { display: none; }
.hub-empty-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* tone palettes */
[data-tone="red"] {
  --tone: #e11d48;
  --tone-grad: linear-gradient(120deg, #f43f5e, #fb923c);
  --tone-soft: linear-gradient(140deg, #fff1f2, #ffedd5);
  --tone-ring: #fecdd3;
}
[data-tone="blue"] {
  --tone: #1d4ed8;
  --tone-grad: linear-gradient(120deg, #2563eb, #06b6d4);
  --tone-soft: linear-gradient(140deg, #eff6ff, #ecfeff);
  --tone-ring: #bfdbfe;
}
[data-tone="violet"] {
  --tone: #6d28d9;
  --tone-grad: linear-gradient(120deg, #7c3aed, #c084fc);
  --tone-soft: linear-gradient(140deg, #f5f3ff, #fae8ff);
  --tone-ring: #ddd6fe;
}
[data-tone="teal"] {
  --tone: #0f766e;
  --tone-grad: linear-gradient(120deg, #0d9488, #22c55e);
  --tone-soft: linear-gradient(140deg, #ecfdf5, #f0fdf4);
  --tone-ring: #a7f3d0;
}

[data-tone="amber"] {
  --tone: #b45309;
  --tone-grad: linear-gradient(120deg, #f59e0b, #f97316);
  --tone-soft: linear-gradient(140deg, #fffbeb, #ffedd5);
  --tone-ring: #fde68a;
}

/* ---------- guides ---------- */
.hub-guides { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) 24px 0; }
.hub-guides-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hub-guides-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.015em;
}
.hub-guides-head p { margin-top: 5px; font-size: .9rem; color: var(--muted); }
.hub-guides-head .hub-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: #1d4ed8;
}
.hub-guides-head .hub-more svg { width: 14px; height: 14px; }
.hub-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.hub-guide {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.hub-guide:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .3); box-shadow: 0 22px 40px -30px rgba(37, 99, 235, .5); }
.hub-guide-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(140deg, #eff6ff, #f5f3ff);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #dbeafe;
}
.hub-guide-ico svg { width: 17px; height: 17px; }
.hub-guide b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .93rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.hub-guide span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ---------- FAQ ---------- */
.hub-faq { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) 24px 0; }
.hub-faq-in {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
}
.hub-faq-copy h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}
.hub-faq-copy p { font-size: .9rem; color: var(--muted); }
.hub-faq-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 13px;
  background: linear-gradient(140deg, #eff6ff, #faf5ff);
  border: 1px solid #dbeafe;
  font-size: .83rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.hub-faq-note a { font-weight: 700; color: #1d4ed8; }
.hub-acc { display: flex; flex-direction: column; gap: 10px; }
.hub-acc details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  box-shadow: var(--shadow-1);
  transition: border-color .2s, box-shadow .2s;
}
.hub-acc details[open] { border-color: rgba(37, 99, 235, .3); box-shadow: 0 20px 40px -34px rgba(37, 99, 235, .6); }
.hub-acc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: .89rem;
  font-weight: 700;
  color: #0b1220;
}
.hub-acc summary::-webkit-details-marker { display: none; }
.hub-acc summary::after {
  content: '';
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform .22s;
  flex: none;
}
.hub-acc details[open] summary::after { transform: rotate(-135deg); }
.hub-acc p { font-size: .855rem; line-height: 1.62; color: var(--ink-2); padding-bottom: 14px; }

/* ---------- other categories ---------- */
.hub-other { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) 24px clamp(36px, 6vw, 60px); }
.hub-other h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
.hub-other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hub-other-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .24s var(--ease), border-color .24s, box-shadow .24s;
}
.hub-other-card:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .3); box-shadow: 0 20px 38px -30px rgba(37, 99, 235, .5); }
.hub-other-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(140deg, #f0f9ff, #f5f3ff);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #dbeafe;
}
.hub-other-ico svg { width: 18px; height: 18px; }
.hub-other-card b { display: block; font-size: .9rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.hub-other-card span { display: block; font-size: .74rem; color: var(--muted); }
.hub-other-card .hub-go { font-size: .72rem; }

/* ---------- footer ---------- */
.hub-foot {
  background: linear-gradient(180deg, #0b1220 0%, #111c31 58%, #0b1220 100%);
  color: #cbd5e1;
  padding: 52px 24px 26px;
}
.hub-foot-in {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.hub-foot h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 10px;
}
.hub-foot p { font-size: .83rem; line-height: 1.6; color: #94a3b8; max-width: 34ch; margin-bottom: 14px; }
.hub-foot h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 12px;
}
.hub-foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hub-foot a { color: #94a3b8; font-size: .85rem; transition: color .2s; }
.hub-foot a:hover { color: #93c5fd; }
.hub-foot-bottom {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .77rem;
  color: #64748b;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hub-foot-in { grid-template-columns: 1fr 1fr; }
  .hub-other-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-faq-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 700px) {
  .hub-stats { grid-template-columns: repeat(2, 1fr); border-radius: 16px; }
  .hub-stat { padding: 14px 12px; border-top: 1px solid rgba(37, 99, 235, .1); }
  .hub-stat:nth-child(-n+2) { border-top: 0; }
  .hub-stat:nth-child(3) { border-left: 0; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-grid.is-duo { grid-template-columns: 1fr; }
  .hub-chip { font-size: .75rem; padding: 7px 12px; }
  .hub-count { order: 3; margin-left: 0; }
  .hub-card { padding: 18px; }
  .hub-guide-grid { grid-template-columns: 1fr; }
  .hub-section { padding-left: 18px; padding-right: 18px; scroll-margin-top: 118px; }
  .hub-empty-wrap { padding: 0 18px; }
  .hub-guides, .hub-faq, .hub-other { padding-left: 18px; padding-right: 18px; }
  .hub-hero { padding-left: 18px; padding-right: 18px; }
  .hub-nav-in { padding: 0 18px; }
  .hub-chips-in { padding: 10px 18px; }
}

@media (max-width: 560px) {
  .hub-other-grid { grid-template-columns: 1fr; }
  .hub-foot-in { grid-template-columns: 1fr; gap: 26px; }
  .hub-cta-row { gap: 10px; }
  .hub-btn { width: 100%; justify-content: center; }
  .hub-trust li { font-size: .72rem; padding: 5px 10px; }
  .hub-brand-tag { font-size: 8.5px; letter-spacing: .06em; }
  .hub-stats { margin-top: 22px; }
}
