/* ============================================================
   All-features section (#all-features)

   Theme-authored, like payment-status.css and wp-bridge.css — it is
   NOT a verbatim copy from the design folder. It replaces the inline
   styles the section used to carry, and builds only on the design's
   own tokens (--ink-*, --line, --surface-*, --accent*, --radius*,
   --shadow-*) so light/dark/RTL all follow the rest of the site.
   ============================================================ */

.allfeat {
  border-top: 1px solid var(--line-2);
}

/* --- Quotable summary ------------------------------------- */

.af-answer {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 20px 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.af-answer p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.af-answer strong { color: var(--ink-1); }

/* --- Category jump nav ------------------------------------ */

.af-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
}
.af-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.af-chip:hover,
.af-chip:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.af-chip .n {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-4);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 7px;
  transition: background .2s ease, color .2s ease;
}
.af-chip:hover .n,
.af-chip:focus-visible .n {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* --- Capability panels ------------------------------------ */

.af-panels {
  display: grid;
  gap: 20px;
}
.af-panel {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-margin-top: 96px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.af-panel:hover,
.af-panel:target {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow-md);
}
.af-panel-head .feature-ico { margin-bottom: 14px; }
.af-panel-head h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}
.af-panel-head p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.af-count {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .af-count { color: #b8c4ff; }

.af-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  align-content: start;
}
.af-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}
.af-list .tick {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.af-list .tick svg { width: 11px; height: 11px; }
[data-theme="dark"] .af-list .tick { color: #b8c4ff; }

/* --- Plan tiers -------------------------------------------- */

.af-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.af-plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.af-plan:hover {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.af-plan-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-4);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.af-plan-tag.free { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
[data-theme="dark"] .af-plan-tag.free { color: #b8c4ff; }
.af-subhead {
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin: 56px 0 0;
}

.af-plan h4 {
  font-size: 19px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.af-plan > p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.af-plan ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.af-plan li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.af-plan li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.af-plan .note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-4);
}

/* --- Field catalog ----------------------------------------- */

.af-subhead-lede {
  max-width: 640px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
}

.af-fieldsets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
/*
 * Basic and Payment are short lists and share the first row; the advanced
 * group holds most of the palette, so it takes a full row of its own below.
 */
.af-fieldset:nth-child(1) { grid-column: 1; grid-row: 1; }
.af-fieldset:nth-child(3) { grid-column: 2; grid-row: 1; }
.af-fieldset:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.af-fieldset {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.af-fieldset:hover {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow-md);
}
.af-fieldset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.af-fieldset-head h4 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
.af-fieldset-head .af-count { margin-top: 0; }
.af-fieldset > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 8px 0 0;
}

.af-fieldlist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.af-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.af-field-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.af-field-tier {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.af-field-tier.is-free { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.af-field-tier.is-plus { background: var(--accent-soft); color: var(--accent-ink); }
.af-field-tier.is-addon { background: rgba(255, 75, 147, 0.12); color: var(--brand-pink); }
[data-theme="dark"] .af-field-tier.is-free { color: #6ee7a8; }
[data-theme="dark"] .af-field-tier.is-plus { color: #b8c4ff; }

.af-fieldnote {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-4);
}

/* --- Release facts + closing actions ----------------------- */

.af-spec {
  margin-top: 28px;
  padding: 22px 28px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.af-spec .trust-row { gap: 24px 36px; }
.af-spec .trust-item strong { font-size: 20px; }

.af-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* --- Responsive -------------------------------------------- */

@media (max-width: 1199.98px) {
  .af-panel { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 991.98px) {
  .af-panel { grid-template-columns: 1fr; gap: 20px; }
  .af-plans { grid-template-columns: 1fr; }
  .af-fieldsets { grid-template-columns: 1fr; }
  .af-fieldset:nth-child(1),
  .af-fieldset:nth-child(2),
  .af-fieldset:nth-child(3) { grid-column: 1; grid-row: auto; }
}

@media (max-width: 575.98px) {
  .af-panel { padding: 22px; }
  .af-list { grid-template-columns: 1fr; }
  .af-answer { padding: 18px; }
  .af-nav { gap: 8px; margin-bottom: 32px; }
  .af-chip { padding: 8px 12px; font-size: 13px; }
  .af-spec { padding: 20px; }
  .af-spec .trust-row { justify-content: flex-start; }
  .af-fieldset { padding: 22px; }
  .af-fieldset-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
