/* hitonoco frontend v0.1.2 */
:where(.hito-page) {
	--hito-ink: #172033;
	--hito-muted: #667085;
	--hito-soft: #fff7ed;
	--hito-warm: #f59e0b;
	--hito-warm-dark: #b45309;
	--hito-line: rgba(23, 32, 51, .10);
	--hito-card: rgba(255, 255, 255, .92);
	--hito-shadow: 0 24px 70px rgba(23, 32, 51, .10);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
	color: var(--hito-ink);
}

.hito-page,
.hitonoco-box {
	background:
		radial-gradient(circle at 20% 0%, rgba(245, 158, 11, .20), transparent 30%),
		radial-gradient(circle at 90% 20%, rgba(59, 130, 246, .12), transparent 28%),
		linear-gradient(180deg, #fffaf3 0%, #ffffff 48%, #f8fafc 100%);
	padding: clamp(28px, 5vw, 72px) 16px;
	border-radius: 0;
}

.hito-shell {
	max-width: 1180px;
	margin: 0 auto;
}

.hito-eyebrow {
	margin: 0 0 10px;
	color: var(--hito-warm-dark);
	font-weight: 900;
	letter-spacing: .10em;
	text-transform: uppercase;
	font-size: 12px;
}

.hito-lead {
	font-size: clamp(16px, 2vw, 20px);
	line-height: 1.9;
	color: #475467;
}

.hito-hero,
.hito-persona-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
	gap: clamp(20px, 4vw, 46px);
	align-items: center;
}

.hito-hero h1,
.hito-persona-hero h1,
.hito-section-head h1 {
	font-size: clamp(34px, 6vw, 68px);
	line-height: 1.08;
	letter-spacing: -.04em;
	margin: 0 0 20px;
	color: var(--hito-ink);
}

.hito-hero--soft,
.hito-persona-hero {
	background: rgba(255, 255, 255, .72);
	border: 1px solid var(--hito-line);
	border-radius: 34px;
	padding: clamp(22px, 5vw, 54px);
	box-shadow: var(--hito-shadow);
	backdrop-filter: blur(10px);
}

.hito-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 24px;
}

.hito-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 20px;
	border-radius: 999px;
	font-weight: 900;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
	border: 1px solid transparent;
	cursor: pointer;
}

.hito-btn:hover {
	transform: translateY(-1px);
}

.hito-btn--primary {
	color: #fff !important;
	background: linear-gradient(135deg, #111827, #263247);
	box-shadow: 0 14px 30px rgba(17, 24, 39, .20);
}

.hito-btn--ghost {
	color: var(--hito-ink) !important;
	background: #fff;
	border-color: var(--hito-line);
}

.hito-btn--full {
	width: 100%;
}

.hito-btn.is-disabled {
	opacity: .58;
	pointer-events: none;
}

.hito-hero__card,
.hito-persona-card,
.hito-content-card,
.hito-sticky-card,
.hito-legal-note,
.hito-feature-card,
.hito-plan-card,
.hito-note-box {
	background: var(--hito-card);
	border: 1px solid var(--hito-line);
	border-radius: 26px;
	box-shadow: 0 16px 45px rgba(23, 32, 51, .08);
}

.hito-hero__card {
	padding: 24px;
}

.hito-mini-card {
	background: #111827;
	color: #fff;
	border-radius: 22px;
	padding: 20px;
	margin-bottom: 16px;
}

.hito-mini-card span {
	display: block;
	color: #fbbf24;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	margin-bottom: 8px;
}

.hito-mini-card strong {
	font-size: 20px;
	line-height: 1.4;
}

.hito-voice-wave {
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 14px 0;
	background: #fff7ed;
	border-radius: 18px;
}

.hito-voice-wave i {
	width: 8px;
	border-radius: 999px;
	background: #f59e0b;
	display: block;
}

.hito-voice-wave i:nth-child(1) { height: 18px; }
.hito-voice-wave i:nth-child(2) { height: 36px; }
.hito-voice-wave i:nth-child(3) { height: 54px; }
.hito-voice-wave i:nth-child(4) { height: 32px; }
.hito-voice-wave i:nth-child(5) { height: 22px; }

.hito-feature-grid,
.hito-plan-grid,
.hito-topic-grid {
	display: grid;
	gap: 16px;
}

.hito-feature-grid {
	grid-template-columns: repeat(3, 1fr);
	margin-top: 22px;
}

.hito-feature-card,
.hito-plan-card,
.hito-content-card,
.hito-sticky-card,
.hito-legal-note,
.hito-note-box {
	padding: 24px;
}

.hito-feature-card span {
	display: inline-flex;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	align-items: center;
	justify-content: center;
	background: #111827;
	color: #fff;
	font-weight: 900;
}

.hito-feature-card h2,
.hito-content-card h2,
.hito-sticky-card h2,
.hito-legal-note h2 {
	margin: 12px 0 10px;
	font-size: clamp(22px, 3vw, 32px);
	letter-spacing: -.03em;
}

.hito-feature-card p,
.hito-content-card p,
.hito-sticky-card p,
.hito-legal-note p,
.hito-note-box p {
	color: #667085;
	line-height: 1.8;
}

.hito-section-head {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 28px;
}

.hito-plan-grid {
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
}

.hito-plan-card {
	position: relative;
	background: #fff;
}

.hito-plan-card.is-featured {
	border-color: rgba(245, 158, 11, .45);
	transform: translateY(-8px);
}

.hito-recommend {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #f59e0b;
	color: #fff;
	font-weight: 900;
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
}

.hito-plan-label {
	color: var(--hito-warm-dark);
	font-weight: 900;
	margin: 0;
}

.hito-plan-price {
	font-size: 30px;
	font-weight: 950;
	color: var(--hito-ink) !important;
	margin: 8px 0 16px;
}

.hito-plan-card ul,
.hito-check-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hito-plan-card li,
.hito-check-list li {
	position: relative;
	padding-left: 26px;
	margin: 10px 0;
	color: #475467;
	line-height: 1.6;
}

.hito-plan-card li::before,
.hito-check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #16a34a;
	font-weight: 900;
}

.hito-note-box {
	margin-top: 18px;
	background: #f8fafc;
}

.hito-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.hito-pill {
	display: inline-flex;
	border: 1px solid var(--hito-line);
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 900;
	background: #fff;
	color: #475467;
}

.hito-pill--warm {
	background: #fffbeb;
	color: #b45309;
	border-color: #fde68a;
}

.hito-small-note {
	font-size: 13px !important;
	color: #667085 !important;
	line-height: 1.7;
}

.hito-persona-card {
	padding: 26px;
	text-align: center;
}

.hito-avatar {
	width: 92px;
	height: 92px;
	border-radius: 30px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f59e0b, #f97316);
	box-shadow: 0 18px 45px rgba(249, 115, 22, .28);
	color: #fff;
	font-size: 38px;
	font-weight: 950;
}

.hito-persona-card h2 {
	margin: 0;
	font-size: 26px;
}

.hito-price-card {
	background: #111827;
	color: #fff;
	border-radius: 22px;
	padding: 18px;
	margin: 20px 0;
	text-align: left;
}

.hito-price-card span,
.hito-side-price span {
	display: block;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	color: #fbbf24;
}

.hito-price-card strong,
.hito-side-price strong {
	display: block;
	font-size: 30px;
	line-height: 1.2;
	margin: 6px 0;
}

.hito-price-card small {
	color: #d1d5db;
}

.hito-persona-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 20px;
	margin-top: 22px;
	align-items: start;
}

.hito-persona-main {
	display: grid;
	gap: 20px;
}

.hito-topic-grid {
	grid-template-columns: repeat(2, 1fr);
	margin-top: 18px;
}

.hito-topic {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 16px;
	padding: 14px 14px;
	font-weight: 800;
	color: #7c2d12;
}

.hito-topic span {
	color: #f97316;
	margin-right: 6px;
}

.hito-flow {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 18px;
}

.hito-flow div {
	background: #f8fafc;
	border-radius: 18px;
	padding: 16px;
	border: 1px solid var(--hito-line);
}

.hito-flow strong {
	display: block;
	margin-bottom: 6px;
}

.hito-chat-sample {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.hito-chat {
	padding: 16px 18px;
	border-radius: 18px;
	line-height: 1.8;
}

.hito-chat--user {
	background: #eff6ff;
	margin-left: 8%;
}

.hito-chat--ai {
	background: #fff7ed;
	margin-right: 8%;
}

.hito-persona-side {
	position: relative;
}

.hito-sticky-card {
	position: sticky;
	top: 24px;
}

.hito-side-price {
	margin: 18px 0;
	padding: 18px;
	border-radius: 18px;
	background: #111827;
	color: #fff;
}

.hito-legal-note {
	margin-top: 22px;
	background: #fffbeb;
	border-color: #fde68a;
}

.hito-status-list {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
}

.hito-status-list li {
	padding: 13px 14px;
	border-radius: 14px;
	margin: 8px 0;
	font-weight: 800;
}

.hito-status-list .is-ok {
	background: #ecfdf5;
	color: #065f46;
}

.hito-status-list .is-wait {
	background: #fffbeb;
	color: #92400e;
}

/* Compatibility for old class names */
.hitonoco-box {
	max-width: none;
	margin: 0;
	border: none;
	box-shadow: none;
}

@media (max-width: 900px) {
	.hito-hero,
	.hito-persona-hero,
	.hito-persona-layout {
		grid-template-columns: 1fr;
	}

	.hito-feature-grid,
	.hito-plan-grid,
	.hito-flow {
		grid-template-columns: 1fr;
	}

	.hito-plan-card.is-featured {
		transform: none;
	}

	.hito-persona-side {
		order: -1;
	}

	.hito-sticky-card {
		position: static;
	}
}

@media (max-width: 640px) {
	.hito-page {
		padding: 16px 10px;
	}

	.hito-hero--soft,
	.hito-persona-hero,
	.hito-content-card,
	.hito-sticky-card,
	.hito-legal-note,
	.hito-feature-card,
	.hito-plan-card,
	.hito-note-box {
		border-radius: 22px;
		padding: 18px;
	}

	.hito-topic-grid {
		grid-template-columns: 1fr;
	}

	.hito-actions {
		display: grid;
	}

	.hito-btn {
		width: 100%;
	}

	.hito-chat--user,
	.hito-chat--ai {
		margin-left: 0;
		margin-right: 0;
	}
}
