/* ============================================================
   components.css — buttons, cards, form controls, tables,
   accordions, badges, pagination. Reusable across every page.
   ============================================================ */

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  color: #fff;
}

.btn-mint {
  background: var(--accent-2);
  color: #04120f;
  box-shadow: 0 14px 40px rgba(46, 230, 197, 0.22);
}

.btn-mint:hover {
  background: #4df0d3;
  color: #04120f;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn .arrow {
  transition: transform 0.18s var(--ease);
}

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

/* Inline text link with a trailing arrow — used at the foot of cards. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--accent-2);
}

.link-arrow .arrow {
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover {
  color: var(--accent-2);
}

.link-arrow:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease),
    background 0.22s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  background: var(--ink-600);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.96rem;
}

.card p:last-of-type {
  margin-bottom: 0;
}

.card .link-arrow {
  margin-top: auto;
  padding-top: 20px;
}

/* Card that is itself a link */
a.card {
  color: inherit;
}

a.card:hover {
  color: inherit;
}

/* Numbered card — the "how it works" step treatment. */
.card-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-wash);
  border: 1px solid rgba(109, 92, 255, 0.35);
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 0.95rem;
}

/* Icon chip at the top of a service card. */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--accent-wash);
  border: 1px solid rgba(109, 92, 255, 0.3);
  color: var(--accent-bright);
}

.icon-chip svg {
  width: 22px;
  height: 22px;
}

.icon-chip.is-mint {
  background: var(--accent-2-wash);
  border-color: rgba(46, 230, 197, 0.3);
  color: var(--accent-2);
}

/* Spans the full grid row. Used to close a card grid whose item count
   does not divide evenly, instead of leaving a ragged final row. */
.card-span {
  grid-column: 1 / -1;
}

/* Highlighted card — one per grid, marks the recommended path. */
.card-feature {
  background: linear-gradient(
    165deg,
    rgba(109, 92, 255, 0.14),
    rgba(18, 21, 31, 0.9) 60%
  );
  border-color: rgba(109, 92, 255, 0.35);
}

/* ============================================================
   Checklists
   ============================================================ */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 0 0 0 32px;
  margin-bottom: 13px;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-2-wash);
  border: 1px solid rgba(46, 230, 197, 0.4);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 5px;
  height: 9px;
  border: solid var(--accent-2);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist strong {
  color: var(--text);
}

/* Plain bulleted list with violet dots — for non-affirmative lists. */
.dotlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dotlist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.dotlist li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
}

/* ============================================================
   Badges & pills
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.badge-accent {
  border-color: rgba(109, 92, 255, 0.4);
  background: var(--accent-wash);
  color: var(--accent-bright);
}

.badge-mint {
  border-color: rgba(46, 230, 197, 0.4);
  background: var(--accent-2-wash);
  color: var(--accent-2);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ============================================================
   Stat blocks
   ============================================================ */

.stat {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-700);
}

.stat-value {
  display: block;
  font-size: clamp(2.4rem, 4.4vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Compact inline stat row, used in hero and page headers. */
.stat-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.stat-inline .stat-value {
  font-size: 1.9rem;
  margin-bottom: 2px;
}

.stat-inline p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ============================================================
   Comparison table
   ============================================================ */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-700);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare th,
.compare td {
  padding: 17px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.compare tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  width: 32%;
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

/* The APEXMRKTNG column is visually pulled forward. */
.compare .col-us {
  background: var(--accent-wash);
  color: #fff;
  border-left: 1px solid rgba(109, 92, 255, 0.28);
  border-right: 1px solid rgba(109, 92, 255, 0.28);
}

.compare thead .col-us {
  color: var(--accent-bright);
  background: rgba(109, 92, 255, 0.18);
  border-radius: var(--r) var(--r) 0 0;
}

.mark-yes,
.mark-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}

.mark-yes {
  background: var(--accent-2-wash);
  color: var(--accent-2);
}

.mark-no {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

/* ============================================================
   Testimonials
   ============================================================ */

.quote-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.quote-metric {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.quote-metric-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.quote-card blockquote {
  margin: 0 0 22px;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.quote-author {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.quote-author strong {
  display: block;
  color: var(--text);
  font-weight: 650;
}

.quote-author span {
  color: var(--text-dim);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #ffc453;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.rating-line .rating-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

/* ============================================================
   FAQ accordion (native <details>)
   ============================================================ */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-700);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(109, 92, 255, 0.32);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-bright);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 24px 22px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-body p {
  font-size: 0.96rem;
}

/* ============================================================
   Form controls
   ============================================================ */

.form-card {
  padding: 32px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 18px;
}

.field label,
.field .field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text);
}

.field .optional {
  color: var(--text-dim);
  font-weight: 500;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.18s, background 0.18s;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2398a0b8' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-hint {
  margin: 7px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #ff8b8b;
  min-height: 0;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #ff8b8b;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.field-check input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.field-check label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-success {
  text-align: center;
  padding: 20px 0;
}

.form-success .success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent-2-wash);
  border: 1px solid rgba(46, 230, 197, 0.4);
  color: var(--accent-2);
  font-size: 1.6rem;
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-card {
    padding: 24px 20px;
  }
}

/* ============================================================
   Pagination / prev-next
   ============================================================ */

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 34px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
}
