/* ==========================================================================
   COMPONENTS — reusable pieces used on more than one page.
   Naming: .block, .block__part, .block--variant (BEM-style).
   ========================================================================== */

/* Buttons ---------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill); border: 1.5px solid transparent;
	font-family: var(--font-head); font-weight: 500; font-size: var(--fs-md); line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 73, 65, 0.24); }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: var(--fs-sm); }
.btn--lg { min-height: 54px; padding: 16px 30px; }
.btn--block { width: 100%; justify-content: space-between; min-height: 64px; border-radius: var(--r); padding: 18px 24px; font-size: 1.125rem; }
.btn--primary { background: var(--c-brand-800); color: var(--c-white); }
.btn--primary:hover { color: var(--c-white); }
.btn--ghost { background: var(--c-white); color: var(--c-brand-800); border-color: var(--c-line-strong); }
.btn--accent { background: var(--c-brand); color: var(--c-on-brand); font-weight: 600; }
.btn--accent:hover { color: var(--c-on-brand); }
.btn--outline-light { background: rgba(255, 255, 255, 0.08); color: var(--c-white); border-color: rgba(255, 255, 255, 0.28); }
.btn--outline-light:hover { color: var(--c-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; text-decoration: none; color: var(--c-brand-800); }

/* Small labels ------------------------------------------------------------------ */
.eyebrow { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; color: var(--c-brand-700); }
.eyebrow--light { color: var(--c-mint-on-dark); }
.badge {
	display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
	background: var(--c-mint-100); color: var(--c-brand-750); border-radius: var(--r-pill);
	padding: 8px 16px 8px 12px; font-size: var(--fs-sm); font-weight: 600;
}
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-brand); flex-shrink: 0; }
.pill { font-size: var(--fs-xs); color: var(--c-muted-2); background: var(--c-surface-3); padding: 5px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.chip {
	display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--c-line); border-radius: var(--r-pill);
	padding: 14px 26px; font-family: var(--font-head); font-size: 1.125rem; font-weight: 500; color: var(--c-ink); background: var(--c-white);
}

/* Dots: brand dot, clinic dot (clinic colour = dot only) ------------------------------ */
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot--brand { background: var(--c-brand); border: 3px solid var(--c-white); box-shadow: 0 0 0 1px var(--c-line-strong); width: 14px; height: 14px; }
.dot--clinic { background: var(--c-clinic-neutral); border: 3px solid var(--c-white); box-shadow: 0 0 0 1px var(--c-line-soft); width: 14px; height: 14px; }

.dot--daria { background: var(--c-clinic-daria); }
.dot--chaewon { background: var(--c-clinic-chaewon); }
.dot--harmony { background: var(--c-clinic-harmony); }
.dot--saijai { background: var(--c-clinic-saijai); }
.dot--neutral { background: var(--c-clinic-neutral); }

/* Section titles --------------------------------------------------------------------- */
.section-title { font-size: var(--fs-h2); }
.section-title--light { color: var(--c-white); }
.section-lead { font-size: var(--fs-md); color: var(--c-muted); max-width: 34em; }
.section-lead--light { color: var(--c-on-dark); }

/* Cards ---------------------------------------------------------------------------------- */
.card {
	display: flex; flex-direction: column; gap: 18px; padding: 34px 30px;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg);
}
.card--hover { transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease; }
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-brand); }
.card__title { font-size: var(--fs-h3); }
.card__title a { color: inherit; text-decoration: none; }
.card__text { color: var(--c-muted); font-size: 1rem; }

.icon-tile {
	width: 56px; height: 56px; border-radius: 16px; background: var(--c-mint-100); color: var(--c-brand-600);
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-tile--glass { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); color: var(--c-mint-on-dark); }

/* Lists ------------------------------------------------------------------------------------- */
.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--c-ink-soft); }
.check-list .icon { color: var(--c-brand-600); flex-shrink: 0; margin-top: 4px; }
.check-list--boxed { padding: 28px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-mint-50); margin-bottom: 32px; }

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; align-items: center; gap: 14px; }

/* Illustration cards (dashboard mockups — visual only, no real numbers) -------------------- */
.mock-card {
	position: relative; display: flex; flex-direction: column; gap: 20px; padding: 26px 28px;
	background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.mock-card--list { gap: 14px; padding: 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25); }
.mock-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.mock-card__title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; }
.mock-card__caption { align-self: flex-end; font-size: 0.75rem; color: var(--c-subtle); }
.mock-card__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mock-kpi { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--c-surface-2); font-size: var(--fs-xs); color: var(--c-muted-2); }
.skeleton { display: block; height: 12px; width: 70%; border-radius: 6px; background: var(--c-skeleton); }
.mock-kpi:nth-child(2) .skeleton { width: 55%; }
.mock-kpi:nth-child(3) .skeleton { width: 80%; }

.mock-chart { display: flex; flex-direction: column; gap: 10px; }
.mock-chart__legend { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--c-muted-2); }
.legend { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend__key { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.legend__key--new { background: var(--c-brand-600); }
.legend__key--old { background: var(--c-old); }
.mock-chart__bars { height: 150px; display: flex; align-items: flex-end; gap: 14px; border-bottom: 1px solid var(--c-line); }
.mock-chart__group { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 4px; }
.bar { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: aes-grow 1.4s var(--ease) 0.4s both; }
.bar--new { background: var(--c-brand-600); }
.bar--old { background: var(--c-old); }
@keyframes aes-grow { from { transform: scaleY(0.08); } to { transform: scaleY(1); } }

.mock-row { display: flex; align-items: center; gap: 14px; }
.mock-row__thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--c-thumb-1); flex-shrink: 0; }
.mock-row:nth-of-type(even) .mock-row__thumb { background: var(--c-thumb-2); }
.mock-row__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mock-row__label { font-size: 0.875rem; color: var(--c-ink-soft); }
.meter { display: block; height: 8px; border-radius: 4px; background: var(--c-track); overflow: hidden; }
.meter__fill { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--c-brand-600); }
.meter__fill.is-muted { background: var(--c-old); }

/* Page header (inner pages) ---------------------------------------------------------------- */
.page-header { background: var(--c-mint-50); border-bottom: 1px solid var(--c-line); padding-block: clamp(40px, 6vw, 72px); }
.page-header .container { display: flex; flex-direction: column; gap: 12px; }
.page-header__title { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-header__lead { color: var(--c-muted); max-width: 40em; }
.breadcrumbs, .rank-math-breadcrumb { font-size: var(--fs-sm); color: var(--c-subtle); }
.breadcrumbs a, .rank-math-breadcrumb a { color: var(--c-brand-700); }

/* CTA panel ---------------------------------------------------------------------------------- */
.cta-panel {
	position: relative; overflow: hidden; display: grid; align-items: center; gap: 36px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
	background: var(--c-brand-800); border-radius: var(--r-xl);
}
.cta-panel__ring { position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(49, 176, 153, 0.12); right: -140px; top: -160px; }
.cta-panel__copy, .cta-panel__actions { position: relative; display: flex; flex-direction: column; gap: 16px; }

/* Pagination ----------------------------------------------------------------------------------- */
.pagination { margin-top: var(--gap-lg); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--c-line); border-radius: var(--r-sm); text-decoration: none; padding: 0 12px;
}
.pagination .page-numbers.current { background: var(--c-brand-800); color: var(--c-white); border-color: var(--c-brand-800); }

/* Designed line breaks in titles (see aesplus_lines()) --------------------------- */
.line { display: inline; }
@media (min-width: 640px) { .line { display: block; } }
