/* ==========================================================================
   Minimal Components — Buttons, Pricing, Features, Steps, Articles, FAQ
   ========================================================================== */

/* Buttons & Magnetic CTA */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.84rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 0.94rem;
}

.btn--primary {
  background-color: var(--cta-bg);
  color: var(--text-on-dark);
}

.btn--primary:hover {
  background-color: var(--cta-hover);
  box-shadow: 0 8px 22px rgba(23, 23, 29, 0.14);
}

.btn--brand {
  background-color: var(--brand-primary);
  color: var(--text-on-dark);
}

.btn--brand:hover {
  background-color: var(--brand-primary-hover);
  box-shadow: 0 8px 22px rgba(99, 91, 219, 0.22);
}

.btn--secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn--secondary:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-surface-hover);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn--ghost:hover {
  border-color: var(--text-primary);
}

.btn--full {
  width: 100%;
}

.btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: transform 220ms var(--ease-out-expo);
}

.btn-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 240ms var(--ease-out-expo);
}

.btn:hover .btn-arrow {
  transform: translateX(2.5px);
}

/* Billing Cycle Switcher */
.billing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.cycle-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  gap: 2px;
}

.cycle-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-body);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.cycle-btn:hover {
  color: var(--text-primary);
}

.cycle-btn.is-active,
.cycle-btn[aria-pressed="true"] {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(21, 21, 27, 0.08);
}

.billing-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Minimal Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.pricing-card--featured {
  border-color: rgba(99, 91, 219, 0.34);
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--card-active, 0);
  background: radial-gradient(
    320px circle at var(--card-px, 50%) var(--card-py, 50%),
    rgba(var(--orbital-glow-rgb), 0.16),
    rgba(var(--brand-primary-rgb), 0.03) 42%,
    transparent 72%
  );
  transition: opacity 280ms ease;
}

.pricing-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--brand-primary-rgb), calc(0.18 + var(--card-active, 0) * 0.45)),
    transparent
  );
  transition: opacity 280ms ease;
}

.pricing-card:hover {
  border-color: rgba(99, 91, 219, 0.42);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.plan-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  transition: transform var(--dur-base) var(--ease-out-expo), border-color var(--dur-base) ease;
}

.pricing-card:hover .plan-icon {
  border-color: var(--brand-soft-border);
}

.plan-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background-color: var(--bg-secondary);
  color: var(--text-body);
}

.plan-badge--brand {
  background-color: var(--brand-soft);
  color: var(--brand-primary);
}

.plan-badge--annual {
  background-color: rgba(21, 21, 27, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.plan-price-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.plan-currency {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

.plan-amount {
  font-size: 2.65rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  transition: opacity 180ms ease, transform 220ms var(--ease-out-expo);
}

.plan-amount.is-updating {
  opacity: 0.25;
  transform: translateY(-4px);
}

.plan-unit {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-left: 2px;
}

.plan-submeta {
  margin-top: 8px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  min-height: 1.4em;
}

.plan-quota-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.plan-quota-value {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.plan-quota-note {
  font-size: var(--text-xs);
  color: var(--text-body);
}

.plan-audience {
  position: relative;
  z-index: 1;
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 18px;
}

.plan-points {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.plan-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.5;
}

.plan-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-primary);
  margin-top: 8px;
  flex-shrink: 0;
  opacity: 0.72;
}

.pricing-card-cta {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

/* Comparison Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table thead th {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background-color: var(--bg-main);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table td.num,
.data-table th.num {
  text-align: right;
}

.data-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.table-caption {
  margin-top: 12px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Core Highlights (3 Minimal Items) */
.feature-card {
  padding: 30px 26px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-base) ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--brand-primary);
}

.feature-title {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.68;
}

/* Simple Plan Selector (3 Columns) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}

.choice-item {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--border-subtle);
}

.choice-item:last-child {
  border-right: 0;
}

.choice-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: 0.04em;
}

.choice-title {
  font-size: 1.08rem;
  color: var(--text-primary);
}

.choice-desc {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.65;
}

.choice-link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.choice-link:hover {
  color: var(--brand-primary);
}

.choice-disclaimer {
  margin-top: 16px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

/* 3-Step Quick Start with Hairline & Orbital Node */
.steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 28px;
}

.steps-rail {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--silver-line);
  overflow: visible;
}

.steps-rail-dot {
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 12px rgba(var(--brand-primary-rgb), 0.55);
  animation: railGlide 8s var(--ease-smooth) infinite;
}

.step-card {
  position: relative;
  padding-top: 12px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.12rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.65;
}

/* Knowledge Base Cards */
.article-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.article-card:hover {
  border-color: rgba(99, 91, 219, 0.36);
  box-shadow: var(--shadow-card-hover);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-cat {
  color: var(--brand-primary);
  font-weight: 500;
}

.article-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.article-card-desc {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.62;
  margin-bottom: 18px;
  flex-grow: 1;
}

.article-card-more {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-card:hover .article-card-more {
  color: var(--brand-primary);
}

/* Category Filter Bar */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: var(--text-sm);
  color: var(--text-body);
  transition: all var(--dur-fast) ease;
}

.filter-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-tab.is-active {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--text-on-dark);
}

/* Native HTML <details> FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: color var(--dur-fast) ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--brand-primary);
}

.faq-plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 240ms var(--ease-out-expo), opacity 240ms ease;
}

.faq-plus::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-plus::after {
  transform: rotate(0deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 4px 22px;
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.78;
  max-width: 720px;
}

/* Editorial Article Reading Layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: start;
}

.article-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 48px);
}

.prose {
  font-size: 1rem;
  line-height: var(--leading-relaxed);
  color: #363948;
}

.prose h2 {
  font-size: 1.38rem;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  padding-top: 0.4em;
  color: var(--text-primary);
  scroll-margin-top: 88px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: var(--text-primary);
  scroll-margin-top: 88px;
}

.prose p {
  margin-bottom: 1.15em;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.55em;
}

.prose a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(99, 91, 219, 0.35);
}

.prose a:hover {
  text-decoration-color: var(--brand-primary);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose .table-wrap {
  margin-block: 1.6em;
}

.prose .data-table td,
.prose .data-table th {
  white-space: normal;
  padding: 12px 16px;
}

.prose-callout {
  margin-block: 1.6em;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border-left: 3px solid var(--brand-primary);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.prose-figure {
  margin: 1.8em 0;
  padding: 20px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.prose-figure figcaption {
  margin-top: 12px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
}

/* Sticky Article TOC */
.article-aside {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toc-box {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.toc-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  display: block;
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.45;
  transition: color var(--dur-fast) ease;
}

.toc-list a:hover {
  color: var(--brand-primary);
}

.aside-cta {
  padding: 20px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.aside-cta h3 {
  font-size: 0.96rem;
  margin-bottom: 8px;
}

.aside-cta p {
  font-size: var(--text-xs);
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Article Bottom CTA */
.article-bottom-cta {
  margin-top: 36px;
  padding: 28px 30px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.article-bottom-cta h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.article-bottom-cta p {
  font-size: var(--text-sm);
  color: var(--text-body);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Info Box & Simple Cards for Static Pages */
.info-panel {
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.info-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.info-panel p {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.75;
}

.info-panel p + p {
  margin-top: 12px;
}

/* Mobile Bottom Quick Entry (Non-intrusive) */
.mobile-sticky-bar {
  display: none;
}
