/*
 * saas_trial_funnel_demo.css
 * SaaS開発とは｜トライアル方式ごとの「仕組み」を見る体験デモ
 * 転換率などの数値は扱わず、各方式で実際に何が起きるかをタイムラインで表示する。
 * 既存サイトのクラスと衝突しないよう stf- を接頭辞にしています。
 */

#stf-demo {
	box-sizing: border-box;
	margin: 1.4rem 0;
	padding: 1rem 1.1rem 2.2rem;
	background: #f1f0fb;
	border-radius: 1rem;
	scroll-margin-top: 90px;
}

#stf-demo *,
#stf-demo *::before,
#stf-demo *::after {
	box-sizing: border-box;
}

.stf-container {
	max-width: 720px;
	margin: 0 auto;
}

.stf-head {
	text-align: center;
	padding-top: 1.6rem;
	margin-bottom: 1.4rem;
}

.stf-badge {
	display: inline-block;
	padding: .6rem 1.6rem;
	border-radius: 999px;
	background: #635bff;
	color: #fff;
	font-size: .96rem;
	font-weight: 700;
	letter-spacing: .02em;
	margin-bottom: .6rem;
}

h3.stf-headline {
	display: block;
	background: none;
	margin: .7rem auto 0;
	max-width: 34rem;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.6;
	color: #12233f;
}

.stf-lead {
	font-size: .82rem;
	color: #555;
	line-height: 1.85;
	margin: .6rem auto 0;
	max-width: 36rem;
}

.stf-panel {
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 .6rem 1.8rem rgba(0, 30, 70, .08);
	padding: 1.6rem 1.3rem 1.4rem;
}

.stf-modes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .55rem;
	margin-bottom: 1rem;
}

.stf-mode-btn {
	appearance: none;
	cursor: pointer;
	border: .1rem solid #d8d5f5;
	background: #fff;
	color: #445;
	padding: .6rem .5rem;
	border-radius: .7rem;
	font-size: .76rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.stf-mode-btn__sub {
	display: inline-block;
	margin-top: .15rem;
	font-size: .64rem;
	font-weight: 500;
	color: #889;
}

.stf-mode-btn.is-active {
	background: #635bff;
	border-color: #635bff;
	color: #fff;
}

.stf-mode-btn.is-active .stf-mode-btn__sub {
	color: #e3e1ff;
}

.stf-run-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	width: 100%;
	padding: .8rem .6rem;
	border-radius: .7rem;
	font-size: .92rem;
	font-weight: 800;
	color: #fff;
	background: #12233f;
	margin-bottom: 1.2rem;
}

.stf-run-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.stf-timeline {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .1rem;
}

.stf-step {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	padding: .55rem .2rem;
	position: relative;
	opacity: 0;
	transform: translateY(.3rem);
	transition: opacity .35s ease, transform .35s ease;
}

.stf-step.is-shown {
	opacity: 1;
	transform: translateY(0);
}

.stf-step::before {
	content: "";
	position: absolute;
	left: .42rem;
	top: 1.55rem;
	bottom: -.35rem;
	width: .12rem;
	background: #e2e0f5;
}

.stf-step:last-child::before {
	display: none;
}

.stf-step__dot {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: #635bff;
	color: #fff;
	font-size: .6rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: .15rem;
	position: relative;
	z-index: 1;
}

.stf-step__body {
	display: flex;
	flex-direction: column;
	gap: .1rem;
}

.stf-step__title {
	font-size: .84rem;
	font-weight: 800;
	color: #12233f;
}

.stf-step__desc {
	font-size: .74rem;
	color: #667;
	line-height: 1.65;
}

.stf-step__tag {
	display: inline-block;
	margin-top: .2rem;
	padding: .1rem .5rem;
	border-radius: 999px;
	background: #f4f3ff;
	color: #635bff;
	font-size: .62rem;
	font-weight: 700;
	width: fit-content;
}

.stf-snippet {
	display: block;
	margin-top: .5rem;
	border-radius: .6rem;
	overflow: hidden;
	max-width: 26rem;
}

.stf-snippet--email {
	border: .08rem solid #e2e0f5;
	background: #fafaff;
}

.stf-snippet__header {
	display: block;
	padding: .35rem .6rem;
	background: #ecebfb;
	color: #4b45c6;
	font-size: .66rem;
	font-weight: 700;
}

.stf-snippet__subject {
	display: block;
	padding: .4rem .6rem 0;
	font-size: .72rem;
	font-weight: 800;
	color: #12233f;
}

.stf-snippet__body {
	display: block;
	margin: 0;
	padding: .4rem .6rem .6rem;
	font-family: inherit;
	font-size: .7rem;
	line-height: 1.7;
	color: #556;
	white-space: pre-wrap;
	word-break: break-word;
}

.stf-snippet--code {
	background: #12233f;
	padding: .55rem .7rem .65rem;
}

.stf-snippet__label {
	display: block;
	font-size: .62rem;
	font-weight: 700;
	color: #9aa8c9;
	letter-spacing: .03em;
	margin-bottom: .35rem;
}

.stf-snippet__code {
	margin: 0;
	font-family: 'Courier New', monospace;
	font-size: .68rem;
	line-height: 1.65;
	color: #d6e0ff;
	white-space: pre-wrap;
	word-break: break-word;
}

.stf-note {
	padding: .9rem 1rem;
	border-radius: .6rem;
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.8;
	background: #f4f8fb;
	border-left: .25rem solid #cfd8e3;
	color: #445;
}

@media screen and (max-width: 640px) {
	#stf-demo { padding: 1rem .8rem 1.8rem; border-radius: .7rem; }
	.stf-panel { padding: 1.1rem .9rem 1rem; border-radius: .7rem; }
	.stf-modes { grid-template-columns: 1fr; }
	.stf-badge { font-size: .82rem; padding: .5rem 1.1rem; }
}
