/* Plans — Mission V3 continuous */
.sub-v3 .v3-text-link {
  color: var(--st-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.45rem;
}
.sub-v3 .v3-text-link:hover { color: var(--st-text); }
.sub-v3 .v3-btn.sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 999px;
  background: var(--st-accent);
  color: #fff;
  border: 0;
  font-weight: 650;
  text-decoration: none;
}
.sub-v3 .v3-btn.ghost {
  background: transparent;
  color: var(--st-text);
  border: 1px solid var(--st-border);
}
.sub-v3-main { padding-bottom: 3rem; }
.sub-pos {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--st-radius-sm, 12px);
  border: 1px solid var(--st-border);
  background: var(--st-surface-2, rgba(255,255,255,0.94));
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--st-text);
}
.sub-runtime-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--st-accent);
}
.sub-trial {
  margin: 1.1rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--st-radius-sm, 12px);
  border: 1px solid var(--st-border);
  background: var(--st-surface, #fff);
}
.sub-trial strong { display: block; margin-bottom: 0.2rem; color: var(--st-teal, #0d9488); font-weight: 800; }
.sub-status { color: var(--st-danger, #e24b5a); }

.sub-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}
@media (max-width: 860px) {
  .sub-plans { grid-template-columns: 1fr; }
}
.sub-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1rem;
  border-radius: var(--st-radius, 18px);
  border: 1px solid var(--st-border);
  background: var(--st-surface-2, #fff);
  box-shadow: var(--st-shadow, 0 10px 30px rgba(15,40,80,0.06));
}
.sub-plan.is-hot {
  border-color: color-mix(in srgb, var(--st-accent) 50%, var(--st-border));
  box-shadow: 0 12px 36px var(--st-accent-glow, rgba(0,184,156,0.2));
}
.sub-plan-badge {
  position: absolute;
  top: -0.5rem;
  right: 0.8rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--st-accent);
  color: #fff;
}
.sub-plan h3 { margin: 0; font-size: 1.2rem; }
.sub-plan-price {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sub-plan-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--st-muted);
}
.sub-plan-tag, .sub-plan-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--st-muted);
  line-height: 1.4;
}
.sub-plan-runtime {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--st-text);
}
.sub-plan .v3-btn {
  margin-top: 0.5rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--st-accent);
  color: #fff;
  font-weight: 650;
  border: 0;
}
.sub-plan .v3-btn.ghost {
  background: transparent;
  color: var(--st-text);
  border: 1px solid var(--st-border);
}

.sub-h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  text-align: center;
}
.sub-included { margin-bottom: 1.75rem; }
.sub-included-list {
  list-style: none;
  margin: 0.5rem auto 0;
  padding: 0;
  max-width: 32rem;
  display: grid;
  gap: 0.35rem;
}
.sub-included-list li {
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--st-border);
  background: var(--st-surface-2);
  font-size: 0.88rem;
}

.sub-matrix {
  overflow-x: auto;
  border-radius: var(--st-radius-sm, 14px);
  border: 1px solid var(--st-border);
  background: var(--st-surface-2);
  margin-top: 0.75rem;
}
.sub-matrix table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.sub-matrix th, .sub-matrix td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--st-border);
  text-align: center;
}
.sub-matrix th:first-child, .sub-matrix td:first-child {
  text-align: left;
  font-weight: 650;
  min-width: 12rem;
}
.sub-matrix thead th {
  background: color-mix(in srgb, var(--st-surface) 80%, var(--st-accent) 6%);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--st-muted);
}
.sub-feat-name {
  cursor: help;
  border-bottom: 1px dotted color-mix(in srgb, var(--st-muted) 55%, transparent);
}
.sub-yes { color: var(--st-ok, #00b89c); font-weight: 800; }
.sub-no { color: var(--st-muted); opacity: 0.7; }
.sub-soft { font-weight: 650; font-size: 0.8rem; color: var(--st-text); }

.sub-foot {
  margin: 1.25rem auto;
  max-width: 40rem;
  font-size: 0.8rem;
  color: var(--st-muted);
  line-height: 1.45;
  text-align: center;
}
.sub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.sub-cta-row .v3-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--st-accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  border: 0;
}
.sub-cta-row .v3-btn.ghost {
  background: transparent;
  color: var(--st-text);
  border: 1px solid var(--st-border);
}
.sub-tip {
  position: fixed;
  z-index: 100;
  max-width: 280px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #0f1b2a;
  color: #e8eef7;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  pointer-events: none;
}
.sub-tip.is-on { display: block; }
.sub-tip:not(.is-on), .sub-tip[hidden] { display: none; }

.sub-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) {
  .sub-plans { grid-template-columns: 1fr; max-width: 24rem; }
}

.sub-intervals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 0.85rem 0 0.5rem;
}
.sub-iv {
  border: 1px solid var(--st-border);
  background: var(--st-surface-2);
  color: var(--st-muted);
  font-weight: 650;
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.sub-iv.is-on {
  background: color-mix(in srgb, var(--st-accent) 16%, var(--st-surface-2));
  color: var(--st-text);
  border-color: color-mix(in srgb, var(--st-accent) 40%, var(--st-border));
}

/* Professional disclosure cards — theme-aware (light + dark) */
#sub-foot {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: var(--st-text, var(--v3-text, #e8eef7));
}
#sub-foot .sub-disc {
  border: 1px solid var(--st-border, color-mix(in srgb, var(--st-text, #e8eef7) 18%, transparent));
  border-radius: 12px;
  background: var(--st-surface-2, var(--st-surface, color-mix(in srgb, var(--st-bg, #0b1220) 92%, #fff 8%)));
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  color: var(--st-text, var(--v3-text, #e8eef7));
}
#sub-foot .sub-disc h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-teal, var(--st-accent, #0d9488));
}
#sub-foot .sub-disc p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--st-text, var(--v3-text, #e2e8f0));
  opacity: 0.92;
}
html[data-theme="light"] #sub-foot .sub-disc {
  background: var(--st-surface, #ffffff);
  border-color: var(--st-border, #c5d0dc);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] #sub-foot .sub-disc p {
  color: var(--st-text, #1e293b);
  opacity: 1;
}
html[data-theme="dark"] #sub-foot .sub-disc {
  background: color-mix(in srgb, var(--st-surface, #121a28) 100%, transparent);
  border-color: color-mix(in srgb, var(--st-teal, #0d9488) 22%, var(--st-border, #334155));
}
html[data-theme="dark"] #sub-foot .sub-disc p {
  color: var(--st-text, #e2e8f0);
  opacity: 0.95;
}
html[data-theme="dark"] #sub-foot .sub-disc h4 {
  color: var(--st-teal, #2dd4bf);
}

.sub-trial-policy {
  border-color: rgba(13, 148, 136, 0.35);
}
.sub-trial-status {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--st-teal, #0d9488);
}
.sub-trial-status.is-denied {
  color: var(--st-danger, #b91c1c);
}

html[data-theme="dark"] .sub-trial-status {
  color: var(--st-teal, #2dd4bf);
}
html[data-theme="dark"] .sub-trial-status.is-denied {
  color: var(--st-danger, #f87171);
}
html[data-theme="dark"] .sub-trial {
  background: var(--st-surface-2, #121a28);
  border-color: color-mix(in srgb, var(--st-teal, #0d9488) 30%, transparent);
  color: var(--st-text, #e2e8f0);
}

/* Always-visible trial asterisk note (bottom of plans page) */
.sub-trial-asterisk {
  margin: 1rem auto 0.25rem;
  max-width: 42rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--st-teal, #0d9488) 40%, var(--st-border, #334155));
  background: color-mix(in srgb, var(--st-teal, #0d9488) 10%, var(--st-surface, transparent));
  color: var(--st-text, var(--v3-text, #e2e8f0));
  font-size: 0.88rem;
  line-height: 1.5;
}
.sub-trial-asterisk .sub-asterisk {
  display: inline-block;
  margin-right: 0.25rem;
  font-weight: 900;
  color: var(--st-teal, #0d9488);
  font-size: 1.15rem;
  vertical-align: baseline;
}
html[data-theme="light"] .sub-trial-asterisk {
  background: color-mix(in srgb, var(--st-teal, #0d9488) 8%, #fff);
  color: var(--st-text, #1e293b);
  border-color: color-mix(in srgb, var(--st-teal, #0d9488) 35%, #c5d0dc);
}
html[data-theme="dark"] .sub-trial-asterisk {
  background: color-mix(in srgb, var(--st-teal, #0d9488) 12%, #0b1220);
  color: var(--st-text, #e2e8f0);
}
