/* Artra pricing page — dark theme matching landing.
   Adds pricing-specific surfaces on top of auto_pilot_landing.css tokens. */

/* ─── pricing hero ─── */
.apl .pricing-hero {
  min-height: 60svh;
  padding: 160px var(--pad) 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.apl .pricing-hero .hero-grid-bg,
.apl .pricing-hero .hero-glow { position: absolute; inset: 0; pointer-events: none; }
.apl .pricing-hero .hero-glow {
  background:
    radial-gradient(50vw 50vw at 50% 100%, rgba(139,125,255,0.10), transparent 60%),
    radial-gradient(40vw 40vw at 20% 30%, rgba(92,200,255,0.06), transparent 70%),
    radial-gradient(30vw 30vw at 85% 70%, rgba(196,125,255,0.05), transparent 70%);
}
.apl .pricing-hero .inner { position: relative; z-index: 2; max-width: 60ch; margin: 0 auto; }
.apl .pricing-hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  margin-top: 22px;
  letter-spacing: -0.04em;
}
.apl .pricing-hero h1 .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.apl .pricing-hero p {
  margin-top: 20px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-2);
}

/* ─── bill cycle toggle ─── */
.apl .price-toggle {
  display: inline-flex;
  margin: 40px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: 13px;
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.04em;
}
.apl .price-toggle button {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--fg-3);
  transition: color .2s ease, background .2s ease;
}
.apl .price-toggle button.on {
  background: var(--fg);
  color: var(--bg);
}
.apl .price-toggle .save {
  margin-left: 6px;
  color: var(--accent-2);
  font-weight: 500;
}
.apl .price-toggle button.on .save { color: var(--bg); opacity: 0.6; }

/* ─── pricing cards grid ─── */
.apl .pricing-grid {
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  padding: 0 var(--pad);
  align-items: stretch;
}
@media (max-width: 1100px) {
  .apl .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .apl .pricing-grid { grid-template-columns: 1fr; }
}

.apl .price-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, transform .25s ease;
}
.apl .price-card:hover { border-color: var(--line-2); }
.apl .price-card.featured {
  border-color: rgba(139,125,255,0.45);
  box-shadow: 0 0 0 1px rgba(139,125,255,0.18), 0 24px 60px rgba(0,0,0,0.5);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(139,125,255,0.10), transparent 70%),
    var(--bg-1);
}
.apl .price-card .ribbon {
  position: absolute;
  top: -1px; right: 22px;
  padding: 5px 12px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-grad);
  color: #0a0a0a;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}

.apl .price-card .plan-name {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.apl .price-card .price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.apl .price-card .price .currency { font-size: 22px; font-weight: 500; color: var(--fg-2); }
.apl .price-card .price .num {
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 460;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.apl .price-card .price .per { font-size: 13px; color: var(--fg-3); margin-left: 2px; }
.apl .price-card .billed {
  margin-top: 6px;
  font-size: 12px;
  color: var(--fg-3);
  font-family: "Geist Mono", monospace;
  min-height: 18px;
}
.apl .price-card .summary {
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
  min-height: 56px;
}

.apl .price-card .features {
  list-style: none;
  margin: 18px 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-2);
  flex: 1;
}
.apl .price-card .features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.apl .price-card .features li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--accent-grad);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='black' d='M10.28 2.28L3.989 8.575 1.695 6.28A1 1 0 00.28 7.695l3 3a1 1 0 001.414 0l7-7A1 1 0 0010.28 2.28z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='black' d='M10.28 2.28L3.989 8.575 1.695 6.28A1 1 0 00.28 7.695l3 3a1 1 0 001.414 0l7-7A1 1 0 0010.28 2.28z'/></svg>");
  mask-size: 10px 10px;
  -webkit-mask-size: 10px 10px;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}
.apl .price-card .features li.muted { color: var(--fg-3); }
.apl .price-card .features li.muted::before {
  background: var(--fg-4);
}

.apl .price-card .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  border: 1px solid var(--line-2);
  transition: background .2s ease, transform .2s ease;
}
.apl .price-card .cta:hover { background: rgba(255,255,255,0.10); transform: translateY(-1px); }
.apl .price-card.featured .cta {
  background: var(--fg);
  color: var(--bg);
  border-color: transparent;
}
.apl .price-card.featured .cta:hover { background: var(--fg); box-shadow: 0 12px 30px rgba(255,255,255,0.08); }

/* ─── feature comparison table ─── */
.apl .feature-table-section {
  padding: 120px var(--pad) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.apl .feature-table-section .head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.apl .feature-table-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 16ch;
}
.apl .feature-table-section .head p { max-width: 36ch; font-size: 15px; }

.apl .feature-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.apl .feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.apl .feature-table thead th {
  text-align: center;
  padding: 18px 16px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--line);
}
.apl .feature-table thead th:first-child {
  text-align: left;
  padding-left: 24px;
  color: var(--fg);
}
.apl .feature-table thead th.featured {
  color: var(--fg);
  background: rgba(139,125,255,0.08);
  position: relative;
}
.apl .feature-table thead th.featured::after {
  content:""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-grad);
}

.apl .feature-table tbody td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
}
.apl .feature-table tbody td:first-child {
  text-align: left;
  padding-left: 24px;
  max-width: 280px;
}
.apl .feature-table tbody td.featured {
  background: rgba(139,125,255,0.04);
  color: var(--fg);
}
.apl .feature-table tbody tr:last-child td { border-bottom: 0; }

.apl .feature-table .ft-name {
  font-weight: 500;
  color: var(--fg);
  font-size: 14px;
  margin-bottom: 4px;
}
.apl .feature-table .ft-desc {
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.4;
}

.apl .feature-table .ft-section td {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--line-2);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: left;
  padding: 18px 24px;
}

.apl .feature-table .check {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='black' d='M10.28 2.28L3.989 8.575 1.695 6.28A1 1 0 00.28 7.695l3 3a1 1 0 001.414 0l7-7A1 1 0 0010.28 2.28z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='black' d='M10.28 2.28L3.989 8.575 1.695 6.28A1 1 0 00.28 7.695l3 3a1 1 0 001.414 0l7-7A1 1 0 0010.28 2.28z'/></svg>");
  mask-size: 11px 11px;
  -webkit-mask-size: 11px 11px;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}
.apl .feature-table .x {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-4);
}

@media (max-width: 900px) {
  .apl .feature-table-wrap { overflow-x: auto; }
  .apl .feature-table { min-width: 700px; }
}
