/* Proxy Grove — Feature detail pages (premium layout) */

.pg-feat-page {
  --feat-ink: #13009a;
  --feat-green: #137f15;
  --feat-line: rgb(19 0 154 / 0.1);
  --feat-soft: rgb(19 0 154 / 0.05);
  --feat-radius: 1.15rem;
  background:
    radial-gradient(120% 60% at 50% -10%, rgb(19 0 154 / 0.07), transparent 55%),
    var(--color-bg, #f7f7fb);
}

.pg-feat-page > .container {
  max-width: 72rem;
}

.pg-feat-page .pg-feat-root {
  padding-bottom: 4rem;
}

.pg-feat-empty {
  max-width: 36rem;
  margin: 3rem auto 0;
  text-align: center;
}

.pg-feat-empty .pg-rp-btn {
  margin-top: 1.25rem;
}

/* ---------- Hero ---------- */

.pg-feat-hero {
  position: relative;
  margin: 0.75rem 0 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem);
  border-radius: calc(var(--feat-radius) + 0.25rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(90% 80% at 100% 0%, rgb(59 130 246 / 0.14), transparent 50%),
    radial-gradient(70% 70% at 0% 100%, rgb(19 127 21 / 0.1), transparent 45%),
    linear-gradient(165deg, #fff 0%, #f3f5ff 100%);
  border: 1px solid var(--feat-line);
  box-shadow: 0 18px 48px rgb(19 0 154 / 0.07);
}

.pg-feat-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--feat-green);
  background: rgb(19 127 21 / 0.1);
}

.pg-feat-hero__badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
}

.pg-feat-hero__icon {
  margin: 1.15rem auto 0;
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #0a0078, #3b82f6);
  box-shadow: 0 10px 24px rgb(19 0 154 / 0.25);
}

.pg-feat-hero__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.pg-feat-hero__title {
  margin: 1.15rem auto 0;
  max-width: min(34rem, 100%);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--color-text-heading, #13009a);
  text-wrap: balance;
}

.pg-feat-hero__desc {
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: rgb(27 27 27 / 0.72);
  text-wrap: pretty;
}

.pg-feat-hero__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Sections ---------- */

.pg-feat-block,
.pg-feat-section {
  padding: clamp(2rem, 4vw, 2.75rem) 0 0;
}

.pg-feat-block__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.pg-feat-block__title,
.pg-feat-section__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-heading, #13009a);
  text-align: center;
}

.pg-feat-block__sub {
  margin: 0.55rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgb(27 27 27 / 0.62);
}

.pg-feat-intro {
  margin: 1.35rem auto 0;
  max-width: 46rem;
  display: grid;
  gap: 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgb(27 27 27 / 0.78);
  text-align: center;
}

.pg-feat-intro p {
  margin: 0;
}

.pg-feat-note {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgb(27 27 27 / 0.62);
}

/* ---------- Benefit / use-case cards ---------- */

.pg-feat-card-grid {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pg-feat-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pg-feat-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pg-feat-card {
  height: 100%;
  padding: 1.25rem 1.2rem;
  border-radius: var(--feat-radius);
  border: 1px solid var(--feat-line);
  background: linear-gradient(180deg, #fff 0%, #f8f9ff 100%);
  box-shadow: 0 8px 24px rgb(19 0 154 / 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pg-feat-card:hover {
  transform: translateY(-2px);
  border-color: rgb(19 0 154 / 0.2);
  box-shadow: 0 14px 32px rgb(19 0 154 / 0.08);
}

.pg-feat-card__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text-heading, #13009a);
}

.pg-feat-card__desc {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgb(27 27 27 / 0.68);
}

/* ---------- Consider list ---------- */

.pg-feat-consider-wrap {
  margin: 1.35rem auto 0;
  max-width: 40rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--feat-radius);
  border: 1px solid rgb(19 127 21 / 0.18);
  background: linear-gradient(180deg, #f7fdf8, #fff);
}

.pg-feat-consider {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  color: rgb(27 27 27 / 0.75);
  line-height: 1.55;
  text-align: left;
}

/* ---------- Products ---------- */

.pg-feat-products {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pg-feat-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pg-feat-prod {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.2rem;
  border-radius: var(--feat-radius);
  text-decoration: none;
  border: 1px solid var(--feat-line);
  background: linear-gradient(180deg, #fff 0%, #f7f8ff 100%);
  box-shadow: 0 8px 24px rgb(19 0 154 / 0.04);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 100%;
}

.pg-feat-prod:hover,
.pg-feat-prod:focus-visible {
  border-color: rgb(19 0 154 / 0.28);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgb(19 0 154 / 0.1);
  outline: none;
}

.pg-feat-prod:focus-visible {
  box-shadow: 0 0 0 3px rgb(19 0 154 / 0.2), 0 16px 36px rgb(19 0 154 / 0.1);
}

.pg-feat-prod__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--color-text-heading, #13009a);
}

.pg-feat-prod__tag {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgb(27 27 27 / 0.62);
  flex: 1;
}

.pg-feat-prod__cta {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--feat-ink);
}

/* ---------- Helpful links ---------- */

.pg-feat-ilinks {
  list-style: none;
  margin: 1.25rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 48rem;
}

.pg-feat-ilink {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--feat-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--feat-line);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pg-feat-ilink:hover,
.pg-feat-ilink:focus-visible {
  background: var(--feat-soft);
  border-color: rgb(19 0 154 / 0.22);
  transform: translateY(-1px);
  outline: none;
  text-decoration: none;
}

/* ---------- FAQ ---------- */

.pg-feat-faq {
  margin: 1.35rem auto 0;
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.pg-feat-faq__item {
  border: 1px solid var(--feat-line);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgb(19 0 154 / 0.04);
}

.pg-feat-faq__q {
  margin: 0;
}

.pg-feat-faq__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  color: var(--color-text-heading, #13009a);
}

.pg-feat-faq__trigger:focus-visible {
  outline: 2px solid var(--feat-ink);
  outline-offset: -2px;
}

.pg-feat-faq__icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  color: var(--feat-ink);
  background: var(--feat-soft);
}

.pg-feat-faq__panel {
  padding: 0 1.15rem 1.1rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgb(27 27 27 / 0.7);
  text-align: left;
}

.pg-feat-faq__panel p {
  margin: 0;
}

/* ---------- Related ---------- */

.pg-feat-related-grid {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pg-feat-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pg-feat-related {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem 1.1rem;
  border-radius: var(--feat-radius);
  text-decoration: none;
  border: 1px solid var(--feat-line);
  background: linear-gradient(180deg, #fff 0%, #f8f9ff 100%);
  color: inherit;
  box-shadow: 0 8px 24px rgb(19 0 154 / 0.04);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 100%;
  text-align: left;
}

.pg-feat-related:hover,
.pg-feat-related:focus-visible {
  border-color: rgb(19 0 154 / 0.28);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgb(19 0 154 / 0.1);
  outline: none;
}

.pg-feat-related:focus-visible {
  box-shadow: 0 0 0 3px rgb(19 0 154 / 0.2), 0 16px 36px rgb(19 0 154 / 0.1);
}

.pg-feat-related__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, #0a0078, #3b82f6);
}

.pg-feat-related__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.pg-feat-related__title {
  display: block;
  font-weight: 700;
  color: var(--color-text-heading, #13009a);
}

.pg-feat-related__desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgb(27 27 27 / 0.62);
}

/* ---------- CTA band ---------- */

.pg-feat-cta {
  margin-top: 2.75rem;
  padding: clamp(1.75rem, 3vw, 2.35rem);
  border-radius: calc(var(--feat-radius) + 0.2rem);
  text-align: center;
  background:
    radial-gradient(90% 100% at 100% 0%, rgb(59 130 246 / 0.22), transparent 50%),
    linear-gradient(135deg, #0a0078 0%, #0000ae 55%, #1a3cff 100%);
  border: none;
  color: #fff;
  box-shadow: 0 20px 48px rgb(0 0 174 / 0.22);
}

.pg-feat-cta__title {
  margin: 0 auto;
  max-width: min(28rem, 100%);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.pg-feat-cta__desc {
  margin: 0.65rem auto 0;
  max-width: 34rem;
  color: rgb(255 255 255 / 0.82);
  line-height: 1.55;
}

.pg-feat-cta__actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.pg-feat-cta .pg-rp-btn--primary {
  background: var(--feat-green);
  border-color: var(--feat-green);
  color: #fff;
}

.pg-feat-cta .pg-rp-btn--secondary {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}

.pg-feat-cta .pg-rp-btn--secondary:hover,
.pg-feat-cta .pg-rp-btn--secondary:focus-visible {
  background: rgb(255 255 255 / 0.2);
}

/* ---------- Legacy benefit list (unused but safe) ---------- */

.pg-feat-benefits {
  list-style: none;
  margin: 1rem auto 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}

.pg-feat-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-body);
  text-align: left;
}

.pg-feat-check {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  color: var(--feat-green);
}

.pg-feat-check svg {
  width: 100%;
  height: 100%;
}

html.dark .pg-feat-page {
  background: radial-gradient(120% 60% at 50% -10%, rgb(99 120 255 / 0.12), transparent 55%), #0b0b14;
}

html.dark .pg-feat-hero,
html.dark .pg-feat-card,
html.dark .pg-feat-prod,
html.dark .pg-feat-related,
html.dark .pg-feat-faq__item,
html.dark .pg-feat-consider-wrap {
  background: rgb(255 255 255 / 0.04);
  border-color: rgb(255 255 255 / 0.1);
}

html.dark .pg-feat-hero__title,
html.dark .pg-feat-block__title,
html.dark .pg-feat-card__title,
html.dark .pg-feat-prod__name,
html.dark .pg-feat-related__title,
html.dark .pg-feat-faq__trigger {
  color: #f3f4ff;
}

html.dark .pg-feat-hero__desc,
html.dark .pg-feat-intro,
html.dark .pg-feat-card__desc,
html.dark .pg-feat-prod__tag,
html.dark .pg-feat-related__desc,
html.dark .pg-feat-faq__panel,
html.dark .pg-feat-note,
html.dark .pg-feat-consider {
  color: rgb(230 232 255 / 0.72);
}

@media (max-width: 479px) {
  .pg-feat-hero__actions .pg-rp-btn,
  .pg-feat-cta__actions .pg-rp-btn {
    width: 100%;
    justify-content: center;
  }

  .pg-feat-hero__title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-feat-card,
  .pg-feat-prod,
  .pg-feat-related,
  .pg-feat-ilink {
    transition: none;
  }
}
