/* Subpage layout */
body.subpage main {
  padding-top: var(--header-h);
  min-height: 60vh;
}

.nav-link.nav-active {
  color: var(--primary);
  font-weight: 600;
}

/* Page hero */
.page-hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}

.page-hero-alt {
  background: linear-gradient(135deg, #06173a 0%, var(--primary-dark) 100%);
  color: #fff;
}

.page-hero-alt .page-badge,
.page-hero-alt .page-hero-sub,
.page-hero-alt .page-hero-desc {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero-alt h1 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.page-hero-sm {
  padding: 48px 0;
}

.page-hero-inner {
  max-width: 720px;
}

.page-hero-about {
  padding: 64px 0;
}

.page-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.page-hero-alt .page-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Hunter detail features */
.detail-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.detail-feature:last-child {
  border-bottom: none;
}

.detail-feature-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.detail-feature-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.detail-feature-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9375rem;
}

/* HR highlights */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.highlight-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.highlight-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.highlight-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.hr-section-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.section-header-left {
  text-align: left;
  margin-bottom: 0;
}

.section-header-left h2 {
  font-size: 1.5rem;
}

.section-header-left p {
  margin-inline: 0;
}

.hr-list {
  list-style: none;
}

.hr-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.hr-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* About */
.about-intro,
.about-product {
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 880px;
}

.about-intro {
  font-size: 1.0625rem;
  margin: 20px 0;
}

.about-product {
  font-size: 0.9375rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.about-card-alt {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: #fff;
}

.about-card-alt .about-label,
.about-card-alt h2,
.about-card-alt p {
  color: #fff;
}

.about-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.about-card h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.about-card:not(.about-card-alt) p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9375rem;
}

.about-card-alt p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  font-size: 0.9375rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.team-card h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
}

/* Articles */
.article-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-list-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.article-list-item:hover {
  background: var(--bg-soft);
  margin-inline: -16px;
  padding-inline: 16px;
  border-radius: var(--radius);
}

.article-list-date .day {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.article-list-date .ym {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-list-body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-list-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.container-narrow {
  max-width: 800px;
}

.back-link {
  display: inline-block;
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

.article-detail-title {
  font-size: 1.75rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-detail-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-detail-body p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 1rem;
}

.article-detail-rich {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1rem;
}

.article-detail-rich p {
  margin-bottom: 20px;
}

.article-detail-rich h2,
.article-detail-rich h3,
.article-detail-rich h4 {
  color: var(--text);
  margin: 28px 0 12px;
  line-height: 1.4;
}

.article-detail-rich img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

.article-detail-rich a {
  color: var(--primary);
}

.article-page {
  padding-top: 32px;
}

/* Legal documents */
.legal-page .article-page {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 64px;
}

.legal-doc {
  max-width: 820px;
  margin: 0 auto;
}

.legal-doc-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-doc-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-doc-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-doc-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 16px;
}

.legal-doc-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.legal-doc-body p strong {
  color: var(--text-primary);
}

.legal-doc-body p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.legal-list {
  margin: 0 0 20px 1.25rem;
  padding: 0;
  color: var(--text-secondary);
  line-height: 1.85;
}

.legal-list li {
  margin-bottom: 10px;
}

.legal-doc-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* Pricing */
.pricing-page {
  padding-top: var(--header-h);
}

.pricing-hero {
  padding: 48px 0 24px;
  background: var(--bg-soft);
  text-align: center;
}

.pricing-hero h1 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.pricing-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: #fff;
  border-radius: 100px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.pricing-tab {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: 0.2s;
}

.pricing-tab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.pricing-edition {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.pricing-plans-section {
  padding-top: 32px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(7, 90, 255, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, #ff812d 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 16px;
}

.pricing-price {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.pricing-card-featured .pricing-amount {
  color: var(--primary);
}

.pricing-unit {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-highlights {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.pricing-highlights li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.btn-block {
  width: 100%;
}

.pricing-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.pricing-legend .cmp-yes {
  color: #21d95e;
  font-weight: 700;
}

.pricing-legend .cmp-no {
  color: #ff4d4f;
  font-weight: 700;
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-table th.cmp-module,
.pricing-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-soft);
  min-width: 160px;
}

.pricing-table thead th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.pricing-table tbody tr:last-child td,
.pricing-table tbody tr:last-child th {
  border-bottom: none;
}

.cmp-yes {
  color: #21d95e;
  font-weight: 700;
  font-size: 1.125rem;
}

.cmp-no {
  color: #d9d9d9;
  font-weight: 700;
  font-size: 1.125rem;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (max-width: 1024px) {
  .highlight-grid,
  .about-cards,
  .team-grid,
  .hr-section-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .detail-feature {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-list-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
