/* ════════════════════════════════════════════════════════════════════════
   Join / Pricing page template — native dual-theme.
   All colors come from theme tokens defined in main.css
   (:root for light, [data-theme="dark"] for dark). No plugin deps.
   ════════════════════════════════════════════════════════════════════════ */

.an-join {
	color: var(--an-text);
	background: var(--an-bg-primary);
}

/* ─────────────────────────────────────────────────────────────
   Red pulsing dot (PRD signature UI motif)
   ───────────────────────────────────────────────────────────── */
.an-red-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--an-accent);
	box-shadow: 0 0 0 0 var(--an-accent);
	animation: an-pulse 2s infinite;
}
.an-red-dot--solid { animation: none; }

@keyframes an-pulse {
	0%   { box-shadow: 0 0 0 0  rgba(225, 29, 46, 0.55); }
	70%  { box-shadow: 0 0 0 10px rgba(225, 29, 46, 0); }
	100% { box-shadow: 0 0 0 0  rgba(225, 29, 46, 0); }
}

/* ─────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────── */
.an-join__hero {
	position: relative;
	padding: 96px 0 56px;
	text-align: center;
	background:
		radial-gradient(1100px 360px at 50% -10%, var(--an-accent-a8), transparent 65%),
		var(--an-bg-primary);
}

.an-join__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--an-text-muted);
	margin-bottom: 18px;
}

.an-join__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 52px;
	line-height: 1.1;
	font-weight: 600;
	margin: 0 0 16px;
	color: var(--an-heading);
	letter-spacing: -0.01em;
}

.an-join__subtitle {
	font-size: 16px;
	line-height: 1.65;
	color: var(--an-text-muted);
	max-width: 620px;
	margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   Plan cards
   ───────────────────────────────────────────────────────────── */
.an-join__plans {
	padding: 48px 0 96px;
	background: var(--an-bg-primary);
}

.an-plans-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	align-items: stretch;
	max-width: 880px;
	margin: 0 auto;
}
@media (max-width: 860px) {
	.an-plans-grid { grid-template-columns: 1fr; gap: 20px; max-width: 460px; }
}

.an-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--an-bg-elevated);
	border: 1px solid var(--an-border);
	border-radius: var(--an-radius-lg);
	padding: 36px 32px;
	box-shadow: 0 2px 8px rgba(var(--an-shadow-color), 0.06);
	transition: transform var(--an-trans-base), box-shadow var(--an-trans-base), border-color var(--an-trans-base);
}
.an-plan:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(var(--an-shadow-color), 0.14);
}

.an-plan--featured {
	border-color: var(--an-accent);
	box-shadow: 0 14px 40px var(--an-accent-a20);
}

.an-plan__badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: var(--an-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--an-radius-pill);
	white-space: nowrap;
	box-shadow: 0 4px 12px var(--an-accent-a35);
}
.an-plan__badge .an-red-dot--solid { background: #fff; width: 6px; height: 6px; }

.an-plan__head {
	padding-bottom: 22px;
	border-bottom: 1px solid var(--an-border);
	margin-bottom: 24px;
}

.an-plan__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-weight: 600;
	color: var(--an-heading);
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}

.an-plan__tagline {
	font-size: 14px;
	color: var(--an-text-muted);
	margin: 0 0 22px;
	line-height: 1.55;
}

.an-plan__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}
.an-plan__currency {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--an-heading);
}
.an-plan__amount {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	color: var(--an-heading);
	letter-spacing: -0.02em;
}
.an-plan__period {
	font-size: 14px;
	color: var(--an-text-muted);
}

.an-plan__billed {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--an-text-muted);
}

.an-plan__features {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.an-plan__feature {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--an-text);
}
.an-plan__feature.is-out { color: var(--an-text-muted); opacity: 0.6; }

.an-plan__feature-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.an-plan__feature-note {
	font-size: 12px;
	color: var(--an-text-muted);
	font-style: italic;
}

.an-plan__feature-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-radius: 50%;
	background: rgba(22, 163, 74, 0.16);
	color: var(--an-success);
}
.an-plan__feature-icon svg { width: 12px; height: 12px; }

.an-plan__feature.is-limited .an-plan__feature-icon {
	background: rgba(245, 158, 11, 0.20);
	color: var(--an-warning);
}
.an-plan__feature.is-out .an-plan__feature-icon {
	background: rgba(128, 128, 128, 0.14);
	color: var(--an-text-muted);
}

.an-plan__footer { margin-top: auto; }

.an-plan__not-live {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--an-text-muted);
	text-align: center;
	line-height: 1.4;
}

/* Outline button — adapts to current theme */
.an-btn--outline-themed {
	background: transparent;
	color: var(--an-heading);
	border: 1px solid var(--an-border-strong);
}
.an-btn--outline-themed:hover {
	background: var(--an-heading);
	color: var(--an-bg-primary);
	border-color: var(--an-heading);
}

/* ─────────────────────────────────────────────────────────────
   Compare table
   ───────────────────────────────────────────────────────────── */
.an-join__compare {
	padding: 80px 0;
	background: var(--an-bg-secondary);
}

.an-join__section-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 32px;
	font-weight: 600;
	text-align: center;
	color: var(--an-heading);
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}

.an-join__section-sub {
	text-align: center;
	font-size: 14px;
	color: var(--an-text-muted);
	margin: 0 0 36px;
}

.an-compare-wrap {
	overflow-x: auto;
	background: var(--an-bg-elevated);
	border: 1px solid var(--an-border);
	border-radius: var(--an-radius-lg);
	box-shadow: 0 2px 8px rgba(var(--an-shadow-color), 0.06);
	max-width: 880px;
	margin: 0 auto;
}

.an-compare {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 560px;
}

.an-compare th,
.an-compare td {
	padding: 16px 20px;
	text-align: center;
	border-bottom: 1px solid var(--an-border);
	vertical-align: middle;
	color: var(--an-text);
}
.an-compare tr:last-child th,
.an-compare tr:last-child td { border-bottom: 0; }

.an-compare thead th {
	background: var(--an-bg-secondary);
	font-weight: 700;
	color: var(--an-heading);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.an-compare__feat-col,
.an-compare tbody th {
	text-align: left;
	font-weight: 500;
	color: var(--an-text);
	width: 50%;
}

.an-compare th.is-featured,
.an-compare td.is-featured { background: var(--an-accent-a8); }
.an-compare th.is-featured { color: var(--an-accent); }

.an-compare__yes {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(22, 163, 74, 0.16);
	color: var(--an-success);
}
.an-compare__yes svg { width: 14px; height: 14px; }

.an-compare__partial {
	display: inline-block;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(245, 158, 11, 0.20);
	color: var(--an-warning);
	border-radius: var(--an-radius-pill);
}
.an-compare__note {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: var(--an-text-muted);
	font-style: italic;
}

.an-compare__no {
	color: var(--an-text-muted);
	opacity: 0.6;
	font-weight: 600;
	font-size: 18px;
}

/* ─────────────────────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────────────────────── */
.an-join__faq {
	padding: 80px 0 112px;
	background: var(--an-bg-primary);
}

.an-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.an-faq__item {
	background: var(--an-bg-elevated);
	border: 1px solid var(--an-border);
	border-radius: var(--an-radius-md);
	padding: 20px 24px;
	transition: border-color var(--an-trans-base), box-shadow var(--an-trans-base);
}
.an-faq__item[open] {
	border-color: var(--an-accent);
	box-shadow: 0 6px 20px var(--an-accent-a12);
}

.an-faq__q {
	list-style: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: var(--an-heading);
	position: relative;
	padding-right: 36px;
}
.an-faq__q::-webkit-details-marker { display: none; }
.an-faq__q::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 400;
	color: var(--an-accent);
	line-height: 1;
	transition: transform var(--an-trans-base);
}
.an-faq__item[open] .an-faq__q::after { content: '–'; }

.an-faq__a {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--an-text);
}

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.an-join__hero          { padding: 64px 0 36px; }
	.an-join__title         { font-size: 36px; }
	.an-join__subtitle      { font-size: 15px; }
	.an-join__plans         { padding: 36px 0 64px; }
	.an-join__compare,
	.an-join__faq           { padding: 56px 0; }
	.an-join__section-title { font-size: 26px; }
	.an-plan                { padding: 30px 24px; }
	.an-plan__amount        { font-size: 40px; }
	.an-plan__title         { font-size: 22px; }
}
