/* =====================================================================
   PDFly home page: GREEN theme
   Deep-green gradient hero -> search -> green pill tabs -> soft green cards.
   Loaded last in <head> of index.html. To revert, remove that <link>.
   ===================================================================== */

:root {
  --hx-bg: #f3f8f6;
  --hx-card: #ffffff;
  --hx-line: #d9e7e2;
  --hx-ink: #0b1f1b;
  --hx-mute: #4c6560;
  --hx-brand: #0f766e;
  --hx-brand-d: #0a5a54;
  --hx-brand-l: #14b8a6;
  --hx-tint: #e2f4ef;
  --c: #0f766e;
  --t: #e2f4ef;
}
html.dark {
  --hx-bg: #071412;
  --hx-card: #0d1f1c;
  --hx-line: #17332e;
  --hx-ink: #f2fbf8;
  --hx-mute: #93b0aa;
  --hx-tint: rgba(45,212,191,.12);
  --c: #2dd4bf;
  --t: rgba(45,212,191,.12);
}

/* every category now shares the green family (slight hue shifts keep them distinguishable) */
[data-cat="organize"] { --c: #0f766e; --t: #e2f4ef; }
[data-cat="convert"]  { --c: #15803d; --t: #e4f6e9; }
[data-cat="edit"]     { --c: #0d9488; --t: #dcf5f1; }
[data-cat="security"] { --c: #047857; --t: #dff3ea; }
[data-cat="ai"]       { --c: #4d7c0f; --t: #eaf5d8; }
[data-cat="utility"]  { --c: #0e7490; --t: #dff2f6; }
html.dark [data-cat="organize"] { --c: #2dd4bf; --t: rgba(45,212,191,.13); }
html.dark [data-cat="convert"]  { --c: #4ade80; --t: rgba(74,222,128,.13); }
html.dark [data-cat="edit"]     { --c: #5eead4; --t: rgba(94,234,212,.13); }
html.dark [data-cat="security"] { --c: #34d399; --t: rgba(52,211,153,.13); }
html.dark [data-cat="ai"]       { --c: #a3e635; --t: rgba(163,230,53,.13); }
html.dark [data-cat="utility"]  { --c: #22d3ee; --t: rgba(34,211,238,.13); }

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

/* ---- hero -------------------------------------------------------------- */
.hx-hero {
  position: relative; overflow: hidden;
  padding: 120px 16px 56px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60rem 28rem at 85% -10%, rgba(45,212,191,.35), transparent 60%),
    radial-gradient(44rem 24rem at 5% 110%, rgba(74,222,128,.22), transparent 60%),
    linear-gradient(135deg, #064e46 0%, #0f766e 55%, #0d9488 100%);
}
.hx-hero::after { /* soft curve into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: var(--hx-bg);
  border-radius: 28px 28px 0 0;
}
.hx-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -.025em;
  color: #fff; margin: 0 0 .75rem;
}
.hx-lede {
  max-width: 44rem; margin: 0 auto; text-wrap: balance;
  font-size: 1.075rem; line-height: 1.6; color: rgba(255,255,255,.86);
}
.hx-trust {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 12px; margin: 22px auto 0; max-width: 1100px; position: relative; z-index: 1;
}
.hx-trust > span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #eafaf6;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
}
.hx-trust > span svg { width: 15px; height: 15px; flex: none; color: #86efac; }
.hx-trust a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #064e46; background: #fff;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.hx-trust a:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); }
.hx-trust a svg { width: 12px; height: 12px; }

/* ---- tools section ----------------------------------------------------- */
.hx-tools { background: var(--hx-bg); padding: 18px 16px 88px; }
.hx-wrap { max-width: 1280px; margin: 0 auto; }

#toolsSticky.hx-bar,
html.dark #toolsSticky.hx-bar {
  position: static; top: auto; z-index: auto;
  background: none; border: 0; backdrop-filter: none;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin: 0 0 26px; padding: 0;
}
#toolSearch {
  border-radius: 999px !important;
  border: 1.5px solid var(--hx-line) !important;
  background: var(--hx-card) !important;
  box-shadow: 0 10px 30px -18px rgba(6,78,70,.45);
}
#toolSearch:focus { border-color: var(--hx-brand) !important; box-shadow: 0 0 0 4px rgba(15,118,110,.15) !important; }

#filterTabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 1100px; overflow: visible;
}
#filterTabs .filter-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: var(--hx-card); color: var(--hx-ink);
  border: 1px solid var(--hx-line); border-radius: 999px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
#filterTabs .filter-tab:hover[aria-selected="false"] { border-color: var(--hx-brand); color: var(--hx-brand); background: var(--hx-tint); }
#filterTabs .filter-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #0f766e, #0d9488); color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(15,118,110,.8);
}
#filterTabs .filter-tab:focus-visible { outline: 3px solid var(--hx-brand-l); outline-offset: 2px; }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--hx-brand)); flex: none; }
#filterTabs .filter-tab[aria-selected="true"] .hx-dot { background: #fff; }

#toolsGrid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px)  { #toolsGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { #toolsGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1280px) { #toolsGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

#toolsGrid .tool-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  padding: 22px 18px 18px;
  background: var(--hx-card);
  border: 1px solid var(--hx-line);
  border-radius: 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#toolsGrid .tool-card::before { /* green accent bar that grows on hover */
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--c), var(--hx-brand-l));
  transition: width .25s ease;
}
#toolsGrid .tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--c, var(--hx-brand));
  box-shadow: 0 16px 30px -18px rgba(6,78,70,.55);
}
#toolsGrid .tool-card:hover::before { width: 100%; }
html.dark #toolsGrid .tool-card:hover { box-shadow: 0 0 0 1px var(--c), 0 14px 30px -16px rgba(45,212,191,.35); }
#toolsGrid .tool-card:focus-visible { outline: 3px solid var(--c, var(--hx-brand)); outline-offset: 2px; }

#toolsGrid .tool-card > div:first-child {
  width: 50px; height: 50px; margin-bottom: 14px;
  border-radius: 14px; background: var(--t, var(--hx-tint));
  transition: background .18s ease;
}
#toolsGrid .tool-card:hover > div:first-child { background: var(--c); }
#toolsGrid .tool-card > div:first-child svg { width: 24px; height: 24px; color: var(--c, var(--hx-brand)); transition: color .18s ease; }
#toolsGrid .tool-card:hover > div:first-child svg { color: #fff; }
#toolsGrid .tool-card > div:last-child { width: 100%; flex: none; }
#toolsGrid .tool-card h3 {
  font-size: 16px; line-height: 1.25; font-weight: 700;
  white-space: normal; overflow: visible; text-overflow: clip;
}
#toolsGrid .tool-card .arrow { display: none; }
#toolsGrid .tool-card p {
  margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--hx-mute);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

#toolsGrid > h3.col-span-full { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; }
#noResults { padding: 56px 0; color: var(--hx-mute); }

/* ---- small screens ------------------------------------------------------ */
@media (max-width: 639px) {
  .hx-hero { padding: 96px 16px 48px; }
  .hx-lede { font-size: 1rem; }
  .hx-trust > span { display: none; }
  #filterTabs {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px 4px;
    scrollbar-width: none;
  }
  #filterTabs::-webkit-scrollbar { display: none; }
  #filterTabs .filter-tab { flex: none; }
  #toolsGrid .tool-card { padding: 16px 14px 14px; border-radius: 16px; }
  #toolsGrid .tool-card > div:first-child { width: 42px; height: 42px; margin-bottom: 12px; }
  #toolsGrid .tool-card > div:first-child svg { width: 22px; height: 22px; }
  #toolsGrid .tool-card h3 { font-size: 15px; }
  #toolsGrid .tool-card p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #toolsGrid .tool-card, #filterTabs .filter-tab, .hx-trust a, #toolsGrid .tool-card::before { transition: none; }
  #toolsGrid .tool-card:hover { transform: none; }
}

/* ---- top nav: solid so links stay readable over the green hero --------- */
#navbar {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hx-line);
}
html.dark #navbar { background: rgba(7,20,18,.92); }
.hx-hero { padding-top: 112px; }

/* ---- nav order: logo | ALL PDF TOOLS | quick links ........ language, theme ---- */
@media (min-width: 1024px) {
  #navRight { display: contents; }
  #navbar .flex.h-\[72px\] > a[aria-label="PDFly home"] { order: 0; }
  #megaWrap   { order: 1; margin-left: 18px; }
  #quickLinks { order: 2; margin-left: 4px; }
  #navRight > .flex.items-center.gap-2 { order: 3; }
}

/* ---- hero: bigger one-line-ish headline, no badge row (as in the mockup) ---- */
.hx-hero { padding-bottom: 52px; }
.hx-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  max-width: 62rem; margin-left: auto; margin-right: auto;
  text-wrap: balance;
}
.hx-trust { display: none; }

/* heading on one line on wide screens (wraps naturally on phones) */
.hx-hero h1 { font-size: clamp(1.85rem, 3.2vw, 2.9rem); max-width: 78rem; }

/* =====================================================================
   Homepage redesign (hp-*): light mint hero, popular tools, categories,
   how it works, privacy, guides, FAQ. Appended last so it overrides the
   older green hero rules above.
   ===================================================================== */
.hp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hp-narrow { max-width: 820px; }

/* hero: light mint, two columns */
.hx-hero.hp-hero {
  text-align: left; color: var(--hx-ink); padding: 112px 0 56px;
  background: linear-gradient(180deg, #e4f4ef 0%, var(--hx-bg) 100%);
}
html.dark .hx-hero.hp-hero { background: linear-gradient(180deg, #0b2420 0%, var(--hx-bg) 100%); }
.hx-hero.hp-hero::after { display: none; }
.hp-herogrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hx-hero.hp-hero h1 { color: var(--hx-ink); font-size: clamp(2rem, 4vw, 3.1rem); max-width: none; margin: 0 0 14px; text-wrap: balance; }
.hx-hero.hp-hero .hx-lede { color: var(--hx-mute); margin: 0 0 20px; max-width: 34rem; text-wrap: pretty; }
.hp-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; color: var(--hx-ink); font-size: 15px; line-height: 1.5; }
.hp-points li { display: flex; gap: 9px; align-items: flex-start; }
.hp-points svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--hx-brand); }
.hp-points a, .hp-fine a { color: var(--hx-brand); text-decoration: underline; text-underline-offset: 2px; }
.hp-play {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--hx-line); background: var(--hx-card); color: var(--hx-ink);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.hp-play:hover { border-color: var(--hx-brand); color: var(--hx-brand); }

.hp-panel { background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: 16px; padding: 24px; box-shadow: 0 6px 24px -14px rgba(8,92,86,.25); }
.hp-panel h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; color: var(--hx-ink); }
.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hp-chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--hx-line); background: var(--hx-card); color: var(--hx-ink);
}
.hp-chip:hover { border-color: var(--hx-brand); color: var(--hx-brand); }
.hp-chip[aria-pressed="true"] { background: var(--hx-brand); border-color: var(--hx-brand); color: #fff; }
.hp-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 190px; padding: 24px 16px; border: 2px dashed var(--hx-brand); border-radius: 14px;
  background: var(--hx-tint); color: var(--hx-ink); text-decoration: none;
}
.hp-drop strong { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border-radius: 10px; background: var(--hx-brand); color: #fff; font-size: 16px; }
.hp-drop:hover strong { background: var(--hx-brand-d); }
.hp-drop > span:last-child { font-size: 13px; color: var(--hx-mute); }
.hp-fine { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--hx-mute); }

/* shared bits */
.hp-ic { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--hx-tint); color: var(--hx-brand); }
.hp-ic svg { width: 22px; height: 22px; }
.hp-sec { padding: 56px 0; background: var(--hx-bg); }
.hp-sec.hp-alt { background: var(--hx-card); border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); }
.hp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.hp-head h2, .hp-priv h2, .hp-alltools { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; color: var(--hx-ink); }
.hp-alltools { max-width: 1280px; margin: 0 auto 16px; }
.hp-more { color: var(--hx-brand); font-weight: 600; font-size: 14.5px; text-decoration: none; margin-right: 14px; }
.hp-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.hp-note { margin: 18px 0 0; font-size: 13.5px; color: var(--hx-mute); }
.hp-sec a:focus-visible, .hp-hero a:focus-visible, .hp-chip:focus-visible, .hp-q summary:focus-visible { outline: 3px solid var(--hx-brand-l); outline-offset: 2px; }

/* popular tools */
.hp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.hp-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; min-width: 0;
  background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: 14px; text-decoration: none; color: var(--hx-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hp-card:hover { border-color: var(--hx-brand); box-shadow: 0 8px 22px -14px rgba(8,92,86,.35); }
.hp-ct { display: grid; gap: 3px; }
.hp-ct strong { font-size: 15px; font-weight: 700; }
.hp-ct span { font-size: 13px; line-height: 1.45; color: var(--hx-mute); }

/* categories */
.hp-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hp-cat {
  display: flex; align-items: center; gap: 12px; padding: 14px; min-width: 0; font-weight: 600; font-size: 14.5px;
  background: var(--hx-bg); border: 1px solid var(--hx-line); border-radius: 12px; color: var(--hx-ink); text-decoration: none;
}
html.dark .hp-cat { background: var(--hx-bg); }
.hp-cat:hover { border-color: var(--hx-brand); color: var(--hx-brand); }

/* steps */
.hp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hp-steps li { display: flex; gap: 14px; padding: 20px; background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: 14px; }
.hp-steps b { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--hx-brand); color: #fff; font-size: 15px; }
.hp-steps h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--hx-ink); }
.hp-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--hx-mute); }

/* privacy */
.hp-priv { display: flex; gap: 20px; align-items: flex-start; max-width: 900px; }
.hp-big { width: 56px; height: 56px; border-radius: 14px; }
.hp-big svg { width: 30px; height: 30px; }
.hp-priv h2 { margin-bottom: 10px; }
.hp-priv p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--hx-mute); }
.hp-priv strong { color: var(--hx-ink); }

/* guides */
.hp-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hp-post { padding: 20px; background: var(--hx-card); border: 1px solid var(--hx-line); border-top: 3px solid var(--hx-brand); border-radius: 12px; }
.hp-post time { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--hx-mute); }
.hp-post h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; }
.hp-post a { color: var(--hx-ink); text-decoration: none; }
.hp-post a:hover { color: var(--hx-brand); text-decoration: underline; text-underline-offset: 3px; }

/* faq */
.hp-q { background: var(--hx-bg); border: 1px solid var(--hx-line); border-radius: 12px; margin-bottom: 10px; }
.hp-q summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; font-weight: 600; font-size: 15.5px; color: var(--hx-ink); min-height: 44px; }
.hp-q summary::-webkit-details-marker { display: none; }
.hp-q summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--hx-brand); }
.hp-q[open] summary::after { content: "\2212"; }
.hp-q p { margin: 0; padding: 0 18px 16px; font-size: 14.5px; line-height: 1.65; color: var(--hx-mute); }
.hp-q a { color: var(--hx-brand); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1023px) {
  .hp-herogrid { grid-template-columns: 1fr; gap: 28px; }
  .hp-grid, .hp-cats { grid-template-columns: repeat(3, 1fr); }
  .hp-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .hx-hero.hp-hero { padding: 92px 0 36px; }
  .hp-panel { padding: 16px; }
  .hp-grid, .hp-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hp-card { padding: 14px; }
  .hp-steps, .hp-posts { grid-template-columns: 1fr; }
  .hp-sec { padding: 40px 0; }
  .hp-priv { flex-direction: column; gap: 12px; }
  .hp-cat { padding: 12px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .hp-card { transition: none; } }

/* all-tools section: same width and heading rhythm as the other sections */
.hx-tools { padding: 56px 16px 72px; }
.hx-tools .hx-wrap { max-width: 1148px; }
.hp-alltools { max-width: none; margin: 0 0 22px; }
#toolsSticky.hx-bar:not(:has(button)) { display: none; }

/* =====================================================================
   Tool groups (Sejda-style): colored group heading + 4-column white cards
   ===================================================================== */
.sj { background: var(--hx-bg); padding: 40px 0 72px; scroll-margin-top: 80px; }
.sj-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.sj-jump a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--hx-ink); background: var(--hx-card); border: 1px solid var(--hx-line); }
.sj-jump a:hover { border-color: var(--hx-brand); color: var(--hx-brand); }
.sj-g { margin: 0 0 40px; scroll-margin-top: 84px; }
.sj-h { margin: 0 0 14px; font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; color: var(--gc); }
html.dark .sj-h { color: var(--gcd, var(--gc)); }
.sj-note { margin: -4px 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--hx-mute); }
.sj-note a { color: var(--hx-brand); text-decoration: underline; text-underline-offset: 2px; }
.sj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.sj-card {
  display: block; min-width: 0; padding: 16px 18px; text-decoration: none; color: var(--hx-ink);
  background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: 12px;
  box-shadow: 0 2px 8px -4px rgba(8,92,86,.18);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sj-card:hover { border-color: var(--gc); box-shadow: 0 8px 20px -12px rgba(8,92,86,.4); transform: translateY(-1px); }
.sj-card:focus-visible { outline: 3px solid var(--gc); outline-offset: 2px; }
.sj-card { position: relative; }
.sj-ct { display: block; }
.sj-ic { position: absolute; left: 18px; top: 16px; }
.sj-ic { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--gc); background: color-mix(in srgb, var(--gc) 14%, transparent); }
html.dark .sj-ic { color: var(--gcd, var(--gc)); background: color-mix(in srgb, var(--gcd, var(--gc)) 16%, transparent); }
.sj-ic svg { width: 18px; height: 18px; }
.sj-ct strong { display: flex; align-items: center; min-height: 34px; padding-left: 46px; font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.sj-ct > span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--hx-mute); }
@media (max-width: 1023px) { .sj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) {
  .sj-grid { grid-template-columns: 1fr; gap: 12px; }
  .sj-h { font-size: 1.15rem; }
  .sj-jump { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-bottom: 4px; scrollbar-width: none; }
  .sj-jump a { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .sj-card { transition: none; } .sj-card:hover { transform: none; } }

/* hero: single centered column (no side panel) */
.hp-herogrid { grid-template-columns: 1fr; justify-items: center; }
.hp-copy { max-width: 720px; text-align: center; }
.hx-hero.hp-hero .hx-lede { margin-left: auto; margin-right: auto; }
.hp-points { justify-items: center; }
.hp-points li { text-align: left; }
.hx-hero.hp-hero { padding-bottom: 40px; }
.hp-points { display: inline-grid; justify-items: start; }
.sj { padding-top: 48px; }

/* hero: headline + subtitle only, centered */
.hx-hero.hp-hero { padding: 112px 0 28px; }
.hp-copy { max-width: 820px; }
.hx-hero.hp-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 16px; }
.hx-hero.hp-hero .hx-lede { margin-bottom: 0; font-size: 1.15rem; max-width: 40rem; }
.hp-free { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 12px; border-radius: 999px; font-size: .36em; font-weight: 700; letter-spacing: .02em; color: var(--hx-brand); background: var(--hx-tint); border: 1px solid var(--hx-line); }
.sj { padding-top: 32px; }
.hp-free { margin: 0 2px; }

/* headline: two clean lines on desktop */
.hp-copy { max-width: 1000px; }
@media (min-width: 700px) { .hx-hero.hp-hero h1 { white-space: nowrap; max-width: none; } }
.hx-hero.hp-hero .hx-lede { max-width: 47rem; text-wrap: balance; }
.hp-eyebrow { margin: 0 0 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hx-brand); }
html.dark .hp-eyebrow { color: var(--hx-brand-l); }
.hx-hero.hp-hero { padding-top: 104px; }

/* Same type system as the tool pages: Syne for headings and card titles, DM Sans for body text */
.hx-hero.hp-hero h1, .hp-head h2, .sj-h, .sj-ct strong, .hp-steps h3, .hp-post h3,
.hp-priv h2, .hp-q summary, .hp-eyebrow, .hp-alltools { font-family: 'Syne', 'DM Sans', ui-sans-serif, system-ui, sans-serif; }
.hx-hero.hp-hero h1 { font-weight: 800; letter-spacing: -.02em; }
.sj-h { font-weight: 700; }
.sj-ct strong { font-weight: 700; }
/* Syne is wider than Inter: keep the two-line headline inside its box */
.hx-hero.hp-hero h1 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
.hx-hero.hp-hero .hx-lede { font-size: 1.1rem; }
