/* LuxTool category landing pages: promotional overview before focused tools. */
.lux-category-page {
  --category-ink: #0b1739;
  --category-copy: #52617a;
  --category-line: #dce6f4;
  --category-blue: #2563eb;
  min-height: 100vh;
  color: var(--category-ink);
  background:
    radial-gradient(circle at 88% 5%, rgba(96, 165, 250, .18), transparent 28rem),
    linear-gradient(180deg, #fff 0, #f6f9fe 36rem, #fff 100%);
}

.lux-category-page .lux-category-hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(560px, 43vw, 720px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #fff;
  text-align: left;
}

.lux-category-page .lux-category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .99) 30%, rgba(255, 255, 255, .88) 42%, rgba(255, 255, 255, .18) 62%, transparent 76%);
  transform: none;
  pointer-events: none;
}

.lux-category-page .lux-category-hero::after {
  display: none;
}

.lux-category-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(calc(100% - 2.5rem), 1380px);
  min-height: clamp(560px, 43vw, 720px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.lux-category-page .page-hero-tag {
  margin: 0 0 1rem;
  color: #2455bd;
  border-color: #d7e4fb;
  background: #f1f6ff;
}

.lux-category-page .lux-category-hero h1 {
  max-width: min(600px, 47%);
  margin: 0;
  color: var(--category-ink);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  filter: none;
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 5.7vw, 5.7rem);
  font-weight: 850;
  line-height: .96;
  letter-spacing: -.06em;
  text-wrap: balance;
}

html.theme-light .lux-category-page .lux-category-hero h1 {
  color: var(--category-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

html.theme-light .lux-category-page .page-hero-tag {
  color: #2455bd;
  border-color: #d7e4fb;
  background: #f1f6ff;
}

.lux-category-page .lux-category-hero p {
  max-width: min(570px, 46%);
  margin: 1.15rem 0 0;
  color: var(--category-copy);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.72;
}

.lux-category-page .page-hero-pills {
  justify-content: flex-start;
  gap: .55rem;
  margin-top: 1.35rem;
}

.lux-category-page .page-hero-pills span {
  position: relative;
  padding: .42rem .72rem .42rem 1.35rem;
  color: #40516b;
  border-color: #dce6f3;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 18px rgba(41, 66, 105, .06);
}

.lux-category-page .page-hero-pills span::before {
  content: '';
  position: absolute;
  left: .62rem;
  top: 50%;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .1);
  transform: translateY(-50%);
}

.lux-category-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.lux-category-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.lux-category-page > .container,
.lux-category-page > main.container {
  width: min(100%, 1380px);
  padding-inline: max(var(--layout-gutter), 1.2rem);
}

.lux-category-page .tools-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.lux-category-page .tool-card {
  min-height: 178px;
  padding: 1.25rem;
  border-color: #e0e8f3;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(38, 65, 105, .07);
  backdrop-filter: none;
}

.lux-category-page .tool-card:hover {
  border-color: #b6cdf5;
  box-shadow: 0 20px 45px rgba(37, 99, 235, .12);
}

.lux-category-page .tool-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: .85rem;
  place-items: center;
  border: 1px solid #d7e5fb;
  border-radius: .85rem;
  color: var(--category-blue);
  background: #edf5ff;
}

.lux-category-page .tool-card-icon .tci-svg,
.lux-category-page .tool-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: currentColor;
}

.lux-category-page .tool-card h3 {
  color: #172342;
  font-size: .98rem;
  font-weight: 790;
}

.lux-category-page .tool-card p {
  color: #6b7b91;
  font-size: .8rem;
  line-height: 1.55;
}

.lux-category-page .lp-seo {
  width: min(100%, 1180px);
  margin-top: 6rem;
}

.lux-category-page .lp-seo-block {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #e3eaf4;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .8);
}

.lux-category-page .lp-seo-title {
  color: #172342;
  font-family: 'Inter', sans-serif;
}

.lux-category-page .lp-seo-lead {
  color: #66768c;
}

.lux-category-page .lp-list li,
.lux-category-page .lp-way-card {
  color: #31415d;
  border-color: #e2e9f3;
  background: #f8fafd;
}

html.theme-dark .lux-category-page {
  --category-ink: #f1f5f9;
  --category-copy: #a8b4c7;
  background: radial-gradient(circle at 88% 5%, rgba(37, 99, 235, .17), transparent 28rem), #070b15;
}

html.theme-dark .lux-category-page .lux-category-hero,
html.theme-dark .lux-category-hero-art {
  background: #fff;
}

html.theme-dark .lux-category-page .lux-category-hero h1 {
  color: #eef4ff;
  -webkit-text-fill-color: currentColor;
}

html.theme-dark .lux-category-page .lux-category-hero p {
  color: #a8b4c7;
}

html.theme-dark .lux-category-page .lux-category-hero .page-hero-tag {
  color: #2455bd;
  border-color: #d7e4fb;
  background: #f1f6ff;
}

html.theme-dark .lux-category-page .tool-card,
html.theme-dark .lux-category-page .lp-seo-block {
  border-color: #263349;
  background: #0e1728;
}

html.theme-dark .lux-category-page .page-hero-pills span,
html.theme-dark .lux-category-page .lp-list li,
html.theme-dark .lux-category-page .lp-way-card {
  color: #cbd5e1;
  border-color: #29364a;
  background: #111b2d;
}

html.theme-dark .lux-category-page .lux-category-hero .page-hero-pills span {
  color: #40516b;
  border-color: #dce6f3;
  background: rgba(255, 255, 255, .9);
}

html.theme-dark .lux-category-page .tool-card h3,
html.theme-dark .lux-category-page .lp-seo-title,
html.theme-dark .lux-category-page .lp-way-card h3 {
  color: #eef4ff;
}

html.theme-dark .lux-category-page .tool-card p,
html.theme-dark .lux-category-page .lp-seo-lead {
  color: #9aa8bc;
}

@media (max-width: 980px) {
  .lux-category-page .lux-category-hero {
    width: 100%;
    min-height: 560px;
    text-align: left;
  }

  .lux-category-hero-copy {
    width: min(calc(100% - 2rem), 820px);
    min-height: 560px;
    padding-block: 3rem;
  }

  .lux-category-page .lux-category-hero h1 {
    max-width: 58%;
  }

  .lux-category-page .lux-category-hero p {
    max-width: 55%;
  }
}

@media (max-width: 600px) {
  .lux-category-page .lux-category-hero {
    min-height: 590px;
  }

  .lux-category-page .lux-category-hero::before {
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .99) 60%, rgba(255, 255, 255, .88) 78%, rgba(255, 255, 255, .5) 100%);
  }

  .lux-category-hero-copy {
    width: calc(100% - 2rem);
    min-height: 590px;
    padding-block: 2.5rem;
  }

  .lux-category-page .lux-category-hero h1 {
    max-width: 86%;
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .lux-category-page .lux-category-hero p {
    max-width: 84%;
  }

  .lux-category-page .page-hero-pills {
    max-width: 90%;
    justify-content: flex-start;
  }

  .lux-category-hero-art img {
    object-position: right center;
    opacity: .34;
  }

  .lux-category-page .tools-grid-wide {
    grid-template-columns: 1fr;
  }

  .lux-category-page .tool-card {
    min-height: 150px;
  }

  .lux-category-page .lp-seo {
    margin-top: 4rem;
  }
}

/* Tool-first category layout: concise introduction, then the complete tool grid. */
.lux-category-page .lux-category-hero {
  min-height: 0;
  overflow: visible;
  border-bottom: 1px solid #e4ebf5;
  background:
    radial-gradient(circle at 82% 12%, rgba(96, 165, 250, .15), transparent 24rem),
    linear-gradient(180deg, #fff, #f7faff);
}

.lux-category-page .lux-category-hero::before { display: none; }

.lux-category-page .lux-category-hero-copy {
  min-height: 0;
  padding: 20px max(var(--layout-gutter), 1.2rem) clamp(2.25rem, 4vw, 3.25rem);
  align-items: center;
  text-align: center;
}

.lux-category-page .lux-category-hero h1 {
  max-width: 1180px;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

@media (min-width: 900px) {
  .lux-category-page .lux-category-hero h1 {
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

.lux-category-page .lux-category-hero p {
  max-width: 760px;
  margin-top: .9rem;
  font-size: clamp(.96rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.lux-category-page .page-hero-pills {
  justify-content: center;
  margin-top: 1.15rem;
}

.lux-category-page > main.container {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.lux-category-story {
  display: grid;
  grid-template-columns: minmax(270px, .7fr) minmax(480px, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(4rem, 8vw, 8rem);
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.lux-category-story > div > span {
  display: block;
  margin-bottom: .7rem;
  color: #2563eb;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lux-category-story h2 {
  margin: 0;
  color: #0b1739;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 830;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.lux-category-story p {
  margin: 1rem 0 0;
  color: #52617a;
  line-height: 1.75;
}

.lux-category-story figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce7f5;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(37, 67, 112, .11);
}

.lux-category-story img {
  display: block;
  width: 100%;
  height: auto;
}

.lux-category-showcase {
  margin-top: clamp(4rem, 8vw, 8rem);
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.lux-showcase-head {
  max-width: 1120px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.lux-showcase-head > span,
.lux-showcase-card > div > span {
  display: block;
  color: #2563eb;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lux-showcase-head h2 {
  margin: .65rem 0 0;
  color: #0b1739;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 840;
  line-height: 1.04;
  letter-spacing: -.05em;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .lux-showcase-head {
    max-width: none;
  }

  .lux-showcase-head h2 {
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

.lux-showcase-head p {
  max-width: 720px;
  margin: 1rem auto 0;
  color: #52617a;
  font-size: 1rem;
  line-height: 1.75;
}

.lux-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.lux-showcase-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce7f5;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 44px rgba(37, 67, 112, .09);
}

.lux-showcase-card figure {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #eef6ff;
}

.lux-showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.lux-showcase-card:hover img { transform: scale(1.015); }

.lux-showcase-card > div {
  padding: clamp(1.15rem, 2.4vw, 1.8rem);
}

.lux-showcase-card h3 {
  margin: .48rem 0 0;
  color: #102044;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.lux-showcase-card p {
  margin: .7rem 0 0;
  color: #5c6b81;
  line-height: 1.65;
}

.lux-showcase-card a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  color: #1d4ed8;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.lux-showcase-card a b {
  font-size: 1.1rem;
  transition: transform .18s ease;
}

.lux-showcase-card a:hover b { transform: translateX(4px); }

.lux-showcase-card--wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: center;
}

.lux-showcase-card--wide figure {
  align-self: stretch;
  min-height: 390px;
  aspect-ratio: auto;
}

html.theme-dark .lux-category-showcase .lux-showcase-head h2,
html.theme-dark .lux-category-showcase .lux-showcase-card h3 { color: #eef4ff; }

html.theme-dark .lux-category-showcase .lux-showcase-head p,
html.theme-dark .lux-category-showcase .lux-showcase-card p { color: #a8b4c7; }

html.theme-dark .lux-showcase-card {
  border-color: #26364d;
  background: #0e1728;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
}

html.theme-dark .lux-category-page .lux-category-hero {
  border-color: #223047;
  background: radial-gradient(circle at 82% 12%, rgba(37, 99, 235, .18), transparent 24rem), #090f1d;
}

html.theme-dark .lux-category-story h2 { color: #eef4ff; }
html.theme-dark .lux-category-story p { color: #a8b4c7; }
html.theme-dark .lux-category-story figure { border-color: #26364d; }

@media (max-width: 850px) {
  .lux-category-story {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lux-showcase-card--wide {
    display: block;
  }

  .lux-showcase-card--wide figure {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .lux-category-page .lux-category-hero,
  .lux-category-page .lux-category-hero-copy {
    min-height: 0;
  }

  .lux-category-page .lux-category-hero-copy {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    padding: 20px 1rem 2rem;
  }

  .lux-category-page .lux-category-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.15rem, 11vw, 3.2rem);
    overflow-wrap: anywhere;
  }

  .lux-category-page .lux-category-hero p,
  .lux-category-page .page-hero-pills {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .lux-category-page > main.container,
  .lux-category-page .tools-grid-wide,
  .lux-category-page .tool-card {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  .lux-category-page .tool-card p { overflow-wrap: anywhere; }

  .lux-category-story figure { border-radius: 1.1rem; }

  .lux-category-showcase {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
  }

  .lux-showcase-head { text-align: left; }

  .lux-showcase-head h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .lux-showcase-grid { grid-template-columns: 1fr; }

  .lux-showcase-card--wide { grid-column: auto; }

  .lux-showcase-card,
  .lux-showcase-card figure {
    min-width: 0;
    max-width: 100%;
  }
}
